/* =====================================================
   addon.css — addon detail page (redesign)
   ===================================================== */

:root {
  --bg: #08090c;
  --bg-gradient-top: #142042;
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --bg-elevated-hover: rgba(255, 255, 255, 0.05);

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-blue: rgba(74, 124, 255, 0.4);

  --text: #f5f6f8;
  --text-muted: #8a92a8;
  --text-dim: #4f6080;

  --gold-bright: #e8c47e;
  --blue: #4a7cff;
  --blue-bright: #6b94ff;
  --red-bright: #ff7878;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;

  /* Safe area tokens */
  --tg-safe-area-inset-top: 0px;
  --tg-content-safe-area-inset-top: 0px;
  --tg-safe-area-inset-bottom: 0px;
  --tg-content-safe-area-inset-bottom: 0px;
  --app-safe-area-top: max(
    env(safe-area-inset-top, 0px),
    var(--tg-safe-area-inset-top, 0px),
    var(--tg-content-safe-area-inset-top, 0px)
  );
  --app-safe-area-bottom: max(
    env(safe-area-inset-bottom, 0px),
    var(--tg-safe-area-inset-bottom, 0px),
    var(--tg-content-safe-area-inset-bottom, 0px)
  );
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* ============ PHONE SHELL ============ */
.phone {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, var(--bg-gradient-top) 0%, var(--bg) 60%);
  position: relative;
  overflow: hidden;
  padding-bottom: calc(180px + var(--app-safe-area-bottom));
}

.phone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  z-index: 1;
}

/* ============ COVER HERO ============ */
.cover-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-gradient-top);
  margin-top: -4px;
}

.cover-discount {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #2f5cd8 0%, #6a91ff 100%);
  border-radius: var(--radius-sm);
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 2px 10px rgba(47,92,216,0.35);
}

.cover-platform {
  position: absolute;
  bottom: 44px;
  left: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.platform-badge {
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

/* ============ HERO PLATE ============ */
.hero-plate {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  padding: 22px 20px 20px;
  border-radius: 24px 24px 0 0;
  background: radial-gradient(ellipse at top, var(--bg-gradient-top) 0%, var(--bg) 60%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.28) inset,
    0 2px 0 rgba(255,255,255,0.08) inset;
}

/* ============ ADDON INFO ============ */
.addon-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 4px;
}

.addon-parent {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.addon-parent span { color: var(--blue-bright); }

.addon-price-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.addon-discount-inline {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, #2f5cd8 0%, #6a91ff 100%);
  border-radius: 6px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(47,92,216,0.3);
}

.addon-price-val {
  font-family: 'Geist', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.addon-price-val .currency { margin-left: 2px; }

/* ============ INFO BAR ============ */
.addon-info-bar {
  display: flex;
  margin: 20px -20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-bar-item {
  flex: 1;
  padding: 12px 10px;
  text-align: center;
}
.info-bar-item + .info-bar-item { border-left: 1px solid var(--border); }

.info-bar-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-bar-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.info-bar-value.blue { color: var(--blue-bright); }

/* ============ SECTION LABEL ============ */
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 24px;
  margin-bottom: 10px;
}

/* ============ DESCRIPTION ============ */
.addon-description {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA styles moved to purchase_cta.css */
