/* =========================================================
   RETIRE — Unified Pure-Black Theme (drop-in replacement)
   ========================================================= */

/* --- Theme tokens (single source of truth) --- */
:root{
    --bg:#000000;                 /* site background */
    --panel:#000000;              /* surfaces/panels default */
    --text:#ffffff;
    --muted:#b9bbc1;
    --line:rgba(255,255,255,.08);
    --radius:16px;
    --gap:16px;
    --shadow:0 10px 30px rgba(0,0,0,.35);
  
    /* Title sizing rhythm (used by .best-title) */
    --best-title-size: clamp(36px, 5vw, 64px);
    --best-title-tracking: 0.06em;
    --best-title-leading: 1.1;

    
        --bg: #000000;
        --panel: #000000;
        --text: #ffffff;
        --muted: #b9bbc1;
        --line: rgba(255,255,255,.08);
        --radius: 16px;
        --shadow: 0 10px 30px rgba(0,0,0,.35);
      }
      
  
  
  /* --- Base/reset --- */
  *{ box-sizing:border-box }
  html,body{ height:100%; overflow-x:hidden }
  html, body{ background:var(--bg); color:var(--text) }
  body{
    margin:0;
    font-family: Helvetica, Arial, system-ui, -apple-system, Segoe UI, Roboto, "Segoe UI", sans-serif;
  }
  a{ color:inherit; text-decoration:none }
  img{ max-width:100%; display:block }
  .container{ max-width:1280px; margin:0 auto; padding:0 20px }
  :focus-visible{ outline:2px solid #fff; outline-offset:2px }
  @media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important } }
  
  /* --- Display Font (unified name) --- */
  @font-face{
    font-family:"DrukXCond-SuperItalic-Trial";
    src:url("/assets/fonts/DrukXCond-SuperItalic-Trial.woff2") format("woff2");
    font-weight:800;
    font-style:italic;
    font-display:swap;
  }
  
  /* --- Titles (match JOIN OUR COMMUNITY) --- */
  .best-title{
    font-family:"DrukXCond-SuperItalic-Trial", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight:800;
    font-style:italic;
    text-transform:uppercase;
    font-size:var(--best-title-size);
    letter-spacing:var(--best-title-tracking);
    line-height:var(--best-title-leading);
    color:#fff;
    margin:12px 0 16px; /* tighter gap by default */
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
  }
  
  /* =========================================================
     Header / Drawer / Cart (pure black surfaces)
     ========================================================= */
  header{
    position:sticky; top:0; z-index:60;
    background:#000000;                    /* was #0b0b0c */
    border-bottom:1px solid #141417;
  }
  .nav{ display:flex; align-items:center; gap:16px; height:74px }
  .menu-btn{ background:transparent; border:0; color:var(--text); font-size:22px; padding:8px 10px; cursor:pointer; line-height:1 }
  .brand{ display:flex; align-items:center; gap:12px }
  .logo-img{ height:56px; width:auto; display:block }
  .spacer{ flex:1 }
  
  /* Search uses solid black & subtle line */
  .search{
    display:flex; align-items:center; gap:10px;
    background:#000000; border:1px solid #1f1f23; border-radius:999px;
    padding:10px 14px; min-width:280px; max-width:680px; width:60%; height:44px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }
  .search input{ flex:1; background:transparent; border:0; outline:0; color:#e9e9ea; font-size:15px }
  .search input::placeholder{ color:#9ea0a7 }
  
  .icons{ position:relative; display:flex; align-items:center; gap:12px }
  .icon-btn{
    position:relative; display:inline-flex; align-items:center; justify-content:center;
    width:38px; height:38px; border-radius:50%;
    border:1px solid #1f1f23; background:#000000; color:#fff
  }
  .icon-btn:hover{ background:#0a0a0a; border-color:#2a2a30 }
  .cart-badge{
    position:absolute; transform:translate(45%,-45%); top:0; right:0;
    min-width:16px; height:16px; padding:0 4px; display:grid; place-items:center;
    background:#fff; color:#000; font-size:11px; font-weight:800; border-radius:999px; border:1px solid #000
  }
  
  /* Mobile header adjustments */
  @media (max-width:900px){ .search{ min-width:0; width:48% } }
  @media (max-width:600px){
    .logo-img{ height:44px }
    .search{ display:none }
    .icon-btn{ width:44px; height:44px }
  }
  
  /* Drawer */
  .drawer-overlay{
    position:fixed; inset:0; background:#000000; /* solid black */
    z-index:55; opacity:0; pointer-events:none; transition:opacity .2s ease
  }
  .drawer{
    position:fixed; inset:0 auto 0 0; max-width:420px; width:100%;
    background:#000000; border-right:1px solid var(--line); z-index:56;
    transform:translateX(-100%); transition:transform .25s ease;
  }
  @media (max-width:900px){ .drawer{ max-width:86% } }
  #drawer-toggle:checked ~ .drawer{ transform:translateX(0) }
  #drawer-toggle:checked ~ .drawer-overlay{ opacity:1; pointer-events:auto }
  .drawer-header{ display:flex; align-items:center; justify-content:space-between; padding:18px; border-bottom:1px solid var(--line) }
  .drawer .logo-img{ height:36px }
  .close-btn{ background:transparent; border:1px solid var(--line); color:#fff; border-radius:8px; padding:6px 10px; cursor:pointer }
  .drawer-nav{ display:grid; padding:12px }
  .drawer-link{ padding:14px 10px; border-radius:12px; border:1px solid transparent; font-weight:900; font-size:18px }
  .drawer-link:hover{ background:#0a0a0a; border-color:#22232a }
  
  /* Cart (site-owned) */
  .cart-overlay{
    position:fixed; inset:0; background:#000000; /* solid black */
    z-index:70; display:none; opacity:0; pointer-events:none; transition:opacity .2s ease
  }
  .cart-overlay.show{ display:block; opacity:1; pointer-events:auto }
  
  .cart-panel{
    position:fixed; top:0; right:0; height:100vh; width:380px; max-width:92vw;
    background:#000000; color:#fff; border-left:1px solid var(--line);
    z-index:71; transform:translateX(100%); transition:transform .25s ease;
    display:flex; flex-direction:column;
  }
  .cart-panel.open{ transform:translateX(0) }
  
  .cart-head{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px; border-bottom:1px solid var(--line);
  }
  .cart-title{ font-weight:800; letter-spacing:.2px }
  .cart-close{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.18); border-radius:10px; padding:6px 10px; cursor:pointer }
  
  .cart-items{ flex:1; overflow:auto; padding:10px }
  .cart-item{
    display:grid; grid-template-columns:64px 1fr auto; gap:10px;
    padding:10px 6px; border-bottom:1px solid rgba(255,255,255,.06);
  }
  .cart-item img{ width:64px; height:64px; object-fit:cover; border-radius:10px; background:#0a0a0a }
  .cart-item .title{ font-weight:700; font-size:14px; margin:0 0 4px }
  .cart-item .meta{ color:#b9bbc1; font-size:12px }
  .cart-item .price{ font-weight:700; white-space:nowrap }
  .cart-qty{ display:flex; align-items:center; gap:8px; margin-top:6px }
  .cart-qty button{
    width:24px; height:24px; border-radius:6px; border:1px solid rgba(255,255,255,.18);
    background:#0a0a0a; color:#fff; cursor:pointer
  }
  .cart-foot{
    border-top:1px solid rgba(255,255,255,.08); padding:14px; display:grid; gap:10px; background:#000000; position:sticky; bottom:0;
  }
  
  /* Unified buttons */
  .btn,
  .rp-btn,
  .more-btn,
  .cart-checkout,
  .contact-form .btn,
  .pdp-actions .btn,
  .pdp-bar .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    min-height:44px; padding:12px 16px; border-radius:999px;
    font-weight:900; font-size:14.5px; letter-spacing:.2px;
    color:#fff; background:transparent; border:1px solid var(--line);
    text-decoration:none; cursor:pointer;
    transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .08s;
  }
  .btn:hover,
  .rp-btn:hover,
  .more-btn:hover,
  .cart-checkout:hover,
  .contact-form .btn:hover,
  .pdp-actions .btn:hover,
  .pdp-bar .btn:hover{
    background:#ffffff !important; color:#000000 !important; border-color:#ffffff !important;
    transform:translateY(-2px) scale(1.02); box-shadow:0 6px 18px rgba(255,255,255,.22);
  }
  .btn:active,
  .rp-btn:active,
  .more-btn:active,
  .cart-checkout:active,
  .contact-form .btn:active,
  .pdp-actions .btn:active,
  .pdp-bar .btn:active{
    transform:translateY(0) scale(.98); box-shadow:none;
  }
  .btn.primary,
  .rp-btn.primary,
  .pdp-actions .btn.primary,
  .pdp-bar .btn.primary,
  .contact-form .btn.primary,
  .cart-checkout{ background:#ffffff; color:#000000; border-color:transparent }
  .btn.primary:hover,
  .rp-btn.primary:hover,
  .pdp-actions .btn.primary:hover,
  .pdp-bar .btn.primary:hover,
  .contact-form .btn.primary:hover,
  .cart-checkout:hover{
    background:transparent !important; color:#ffffff !important; border-color:#ffffff !important;
  }
  
  /* =========================================================
     Hero
     ========================================================= */
  .hero{ position:relative; isolation:isolate; padding-top:50px }
  .hero .frame{
    aspect-ratio:16/9; position:relative; background:#000; overflow:hidden;
    max-width:1200px; margin:16px auto; border-radius:12px; border:1px solid rgba(255,255,255,.06)
  }
  .hero video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:contrast(1.05) saturate(1.05) }
  .overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.2)) }
  .mute-btn{
    position:absolute; right:12px; bottom:12px; z-index:2;
    border:1px solid rgba(255,255,255,.18); border-radius:999px;
    background:rgba(0,0,0,.7); color:#fff; padding:10px 12px; cursor:pointer; backdrop-filter:blur(8px)
  }
  .mute-btn:hover{ background:rgba(0,0,0,.85) }
  .unmute-hint{
    position:absolute; left:12px; bottom:12px; z-index:2;
    border:1px solid rgba(255,255,255,.18); border-radius:10px;
    background:rgba(0,0,0,.7); color:#fff; padding:10px 12px; font-size:14px; backdrop-filter:blur(8px)
  }
  
  /* =========================================================
     Sections / Grid / Cards
     ========================================================= */
  .section{ padding:48px 0 }
  .section h2{ margin:0 0 14px }
  .small-title{ text-align:center; font-size:22px; font-weight:800; opacity:.9; margin-bottom:18px }
  .newsletter-title{ font-size:20px; margin:0 0 10px }
  
  .product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px }
  @media (max-width:1200px){ .product-grid{ grid-template-columns:repeat(3,1fr) } }
  @media (max-width:900px){ .product-grid{ grid-template-columns:repeat(2,1fr) } }
  @media (max-width:480px){ .product-grid{ grid-template-columns:1fr } }
  
  .card{
    background:#000000; border:1px solid var(--line); border-radius:22px; overflow:hidden;
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .card:hover{ transform:translateY(-2px); box-shadow:var(--shadow) }
  .media{ position:relative; aspect-ratio:4/5; background:#000000; padding:12px }
  .media img{ position:absolute; inset:12px; width:calc(100% - 24px); height:calc(100% - 24px); object-fit:cover; border-radius:12px }
  .content{ padding:14px 14px 16px }
  .title{ font-weight:700; margin:0 0 6px; font-size:15px }
  .price{ font-weight:700; letter-spacing:.2px }
  .muted{ color:var(--muted); font-size:13px }
  .actions{ display:flex; gap:10px; margin-top:12px }
  .btn.primary{ background:#ffffff; color:#000 }
  
  /* =========================================================
     Benefits Row (scoped to #benefits)
     ========================================================= */
  #benefits .features{
    display:grid; grid-template-columns:repeat(4, minmax(220px,1fr)); gap:32px; align-items:start;
  }
  #benefits .feature{
    display:flex; align-items:flex-start; gap:14px; padding:0; background:transparent; border:none;
  }
  #benefits .feature svg{ flex:0 0 36px; width:36px; height:36px; opacity:.95 }
  #benefits .feature strong{ display:block; font-size:20px; line-height:1.15 }
  #benefits .feature .muted{ margin-top:4px; font-size:14px }
  @media (max-width:900px){ #benefits .features{ grid-template-columns:repeat(2, minmax(220px,1fr)) } }
  @media (max-width:520px){ #benefits .features{ grid-template-columns:1fr } }
  
  /* =========================================================
     Community (Linktree) block
     ========================================================= */
  #community{ text-align:center }
  .community-subtext{ margin:6px auto 14px; font-size:15px; color:var(--muted); max-width:720px }
  .community-card{
    display:block; margin:0 auto; max-width:1000px; border-radius:16px; overflow:hidden;
    background:#000000; border:1px solid var(--line);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .community-card:hover{ transform:translateY(-1px); box-shadow:var(--shadow) }
  .community-img{ width:100%; height:auto; display:block }
  @media (max-width:520px){
    .community-subtext{ font-size:14px }
    .community-card{ border-radius:14px }
  }
  
  /* =========================================================
     Footer
     ========================================================= */
  footer{
    border-top:1px solid var(--line);
    padding:36px 0 64px; color:#dfe1e6; background:#000000;
  }
  .footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:18px }
  @media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr } }
  @media (max-width:520px){ .footer-grid{ grid-template-columns:1fr } }
  .foot-logo{ display:flex; align-items:center; gap:12px; margin-left:-8px }
  .footer-logo-img{ height:44px; display:block }
  @media (max-width:520px){
    .foot-logo{ margin-left:-5px }
    .footer-logo-img{ height:38px }
  }
  
  /* =========================================================
     Mobile polish
     ========================================================= */
  @media (max-width:520px){
    .container{ padding:0 14px }
    .section{ padding:36px 0 }
    .section h2{ margin:0 0 10px }
    .hero .frame{ margin:10px auto; border-radius:10px }
    .mute-btn{ right:10px; bottom:10px; padding:10px 12px }
    .unmute-hint{ left:10px; bottom:10px; font-size:13px }
    .card{ border-radius:18px }
    .content{ padding:12px }
    .title{ font-size:16px }
    .price{ font-size:15px }
    .actions{ gap:8px }
    .btn{ padding:12px 14px; border-radius:12px }
    .product-grid{ gap:14px }
    #benefits .features{ gap:18px }
    #benefits .feature strong{ font-size:18px }
    #benefits .feature .muted{ font-size:13px }
    footer{ padding:28px 0 80px }
    .best-title{ font-size: clamp(40px, 8vw, 64px) !important; line-height:1.1; text-align:center }
  }
  
  /* =========================================================
     INDEX/CONTACT Page helpers
     ========================================================= */
  .page{ padding:32px 0 64px }
  .page-title{
    font-family:"DrukXCond-SuperItalic-Trial", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-style:italic; font-weight:800; text-transform:uppercase;
    font-size: clamp(36px, 5vw, 64px); letter-spacing:.06em; line-height:1.1; margin:0 0 18px;
  }
  .page-card{ background:#000000; border:1px solid var(--line); border-radius:16px; padding:20px }
  
  /* Contact page (kept consistent with site) */
  .contact-form .form-row{ display:grid; gap:8px; margin-bottom:12px }
  .contact-form input,.contact-form textarea{
    background:#0a0a0a; color:#fff; border:1px solid var(--line); border-radius:10px; padding:12px;
  }
  .contact-form button.btn{ width:fit-content }
  
  /* =========================================================
     RETIREMENT TOOLS (calculator) — lives under #retire-pro
     ========================================================= */
  
  /* Ensure calculators share site black */
  #retire-pro{ padding:32px 0 64px; background:#000000; color:#ffffff }
  #retire-pro .rp-wrap{ max-width:1100px; margin:0 auto }
  
  /* Title inside calculator matches global display title */
  #retire-pro > .best-title{
    margin:12px 0 16px; /* tighter to header */
    font-family:"DrukXCond-SuperItalic-Trial", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight:800; font-style:italic; text-transform:uppercase;
    font-size:var(--best-title-size); letter-spacing:var(--best-title-tracking); line-height:var(--best-title-leading);
  }
  
  /* Currency control row */
  #retire-pro .rp-ctl{ display:flex; gap:8px; align-items:center; margin-bottom:10px }
  #retire-pro .rp-ctl select{
    background:#000000; color:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 12px
  }
  
  /* Live market tiles */
  #retire-pro .rp-tiles{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:18px }
  #retire-pro .rp-tile{ background:#000000; border:1px solid var(--line); border-radius:12px; padding:12px }
  #retire-pro .rp-tile span{ display:block; color:var(--muted); font-size:12px; margin-bottom:6px }
  #retire-pro .rp-tile strong{ font-variant-numeric:tabular-nums; font-size:18px }
  #retire-pro .rp-link{
    display:inline-block; background:#000000; border:1px solid var(--line); border-radius:999px; padding:4px 10px; color:#fff; font-size:12px
  }
  
  /* Tabs and panels */
  #retire-pro .rp-tabs{ display:flex; gap:8px; margin:8px 0 14px }
  #retire-pro .rp-tab{ border:1px solid var(--line); background:#000000; color:#fff; border-radius:999px; padding:8px 12px; cursor:pointer }
  #retire-pro .rp-tab-active{ background:#0a0a0a }
  #retire-pro .rp-panel{ display:none }
  #retire-pro .rp-panel-active{ display:block }
  
  /* Two-column card grid */
  #retire-pro .rp-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px }
  #retire-pro .rp-card{ background:#000000; border:1px solid var(--line); border-radius:12px; padding:16px }
  
  /* Form bits */
  #retire-pro .rp-field{ margin-bottom:10px }
  #retire-pro .rp-field label{ display:block; margin-bottom:6px; font-weight:700 }
  #retire-pro .rp-field input,
  #retire-pro .rp-field select{
    width:100%; background:#000000; border:1px solid var(--line); border-radius:10px; color:#fff; padding:12px 14px
  }
  #retire-pro .rp-row-inline{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:6px 0 }
  #retire-pro .rp-inline{ display:flex; align-items:center; gap:8px }
  #retire-pro .rp-inline-lbl{ min-width:150px }
  #retire-pro .rp-inline-input{ width:160px }
  #retire-pro .rp-check{ display:flex; gap:8px; align-items:center }
  
  /* Buttons in tools use global button system */
  #retire-pro .rp-btn{}
  
  /* Key-value rows */
  #retire-pro .rp-kv{ display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px dashed var(--line) }
  #retire-pro .rp-kv:last-child{ border-bottom:0 }
  #retire-pro .rp-note{ margin:10px 0 0; color:var(--muted) }
  #retire-pro .rp-disclaimer{ display:block; margin-top:8px; color:var(--muted); font-size:12px }
  
  /* Small price chart card */
  #retire-pro .rp-chart-only{ margin-bottom:16px }
  #retire-pro .rp-chart-only h3{ margin:0 0 8px }
  #retire-pro .rp-chart-frame{
    position:relative; width:100%;
    border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#000000;
  }
  #retire-pro .rp-chart-desktop{ height:640px }
  #retire-pro .rp-chart-mobile{ display:none }
  #retire-pro .rp-chart-frame iframe{
    position:absolute; inset:0; width:100%; height:100%; border:0; display:block; aspect-ratio:unset !important;
  }
  
  /* ROI table */
  .roi-grid{
    width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums;
  }
  .roi-grid th, .roi-grid td{
    padding:10px 12px; border-bottom:1px dashed var(--line);
    text-align:right; white-space:nowrap; background:#000000;
  }
  .roi-grid th:first-child, .roi-grid td:first-child{ text-align:left }
  .roi-grid thead th{ font-weight:700; color:#cfd2d7; text-transform:uppercase; letter-spacing:.02em }
  .roi-green{ color:#4ae371; font-weight:700 }
  
  /* Mini charts (if used) */
  .mini-chart-wrap{ margin-top:10px }
  .mini-chart{ width:100%; height:160px }
  @media (max-width:720px){ .mini-chart{ height:150px } }
  
  /* Responsive tweaks for tools */
  @media (max-width:980px){ #retire-pro .rp-tiles{ grid-template-columns:repeat(2,1fr) } }
  @media (max-width:720px){
    #retire-pro .rp-grid{ grid-template-columns:1fr }
    #retire-pro .rp-chart-desktop{ display:none }
    #retire-pro .rp-chart-mobile{ display:block; height:460px }
    #retire-pro .rp-inline-lbl{ min-width:auto }
    #retire-pro .rp-inline-input{ width:140px }
  }
  
  /* =========================================================
     Sticky header spacing helper (shorter so title is closer)
     ========================================================= */
  .header-spacer{ height:48px }            /* reduce top dead space under sticky header */
  @media (max-width:700px){ .header-spacer{ height:38px } }
  
  /* =========================================================
     Misc small helpers
     ========================================================= */
  .more-btn{
    border:1px solid var(--line); background:transparent; color:#fff; font-weight:600;
    transition:all .25s ease;
  }
  .more-btn:hover{ background:#ffffff !important; color:#000000 !important; border-color:#ffffff !important; transform:translateY(-3px) scale(1.03); box-shadow:0 4px 15px rgba(255,255,255,.25) }
  .more-btn:active{ transform:translateY(0) scale(.98); box-shadow:none }
  /* =========================================================
   RETIRE — HOLDINGS CALCULATOR RESTORE (Mini + Full)
   Scope: #retire-mini (index) and #retire-pro (tools page)
   Background stays #000; we bring back the old spacing, borders,
   inputs, buttons, tiles, and KPI emphasis.
   ========================================================= */

/* ---------- Shared tokens (scoped so we don't affect other pages) ---------- */
#retire-mini, #retire-pro{
    --rp-bg: #000000;                          /* page/panel background (stay black) */
    --rp-surface: #000000;                     /* cards also pure black per your rule */
    --rp-text: #ffffff;
    --rp-muted: #b9bbc1;
    --rp-line: rgba(255,255,255,.10);
    --rp-line-dashed: rgba(255,255,255,.12);
    --rp-chip: #0e0e10;                        /* subtle chip tone, still very black */
    --rp-input: #0a0a0a;                       /* inputs background */
    --rp-btn: #0b0b0b;                         /* ghost button fill */
    --rp-btnH: #111111;                        /* hover */
    --rp-radius: 12px;
    --rp-shadow: none;                         /* you asked to avoid grey glows */
    color: var(--rp-text);
  }
  
  /* ---------- Section wrappers ---------- */
  #retire-mini{ padding: clamp(16px, 3vw, 28px); background:#000; }
  #retire-pro{  padding: clamp(18px, 3vw, 36px); background:#000; }
  
  #retire-mini .rm-card,
  #retire-pro .rp-card,
  #retire-pro .rp-chart-only{
    background: var(--rp-surface);
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius);
    padding: 16px;
    box-shadow: var(--rp-shadow);
  }
  
  /* ---------- Titles (use your display font & sizing) ---------- */
  #retire-mini .best-title,
  #retire-pro > .best-title{
    font-family: "DrukXCond-SuperItalic-Trial", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 800; font-style: italic; text-transform: uppercase;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: .06em; line-height: 1.1; color:#fff;
    margin: 0 0 14px;
  }
  
  /* ---------- Layouts ---------- */
  #retire-mini .rm-card{
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px;
  }
  @media (max-width: 900px){ #retire-mini .rm-card{ grid-template-columns: 1fr; } }
  
  #retire-pro .rp-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  @media (max-width: 680px){ #retire-pro .rp-grid{ grid-template-columns:1fr; } }
  
  /* ---------- Controls row (currency / tabs) ---------- */
  #retire-pro .rp-tabs-row{ display:flex; align-items:center; gap:12px; margin: 8px 0 14px; }
  #retire-pro .rp-tabs{ display:flex; gap:8px; flex-wrap:wrap; }
  #retire-pro .rp-tab{
    border:1px solid var(--rp-line);
    background: var(--rp-chip);
    color:#fff; border-radius:999px; padding:8px 12px; cursor:pointer;
  }
  #retire-pro .rp-tab.rp-tab-active{ background:#131313; }
  
  #retire-pro .rp-ctl,
  #retire-mini .rm-ctl{
    display:flex; align-items:center; gap:8px; margin: 6px 0 10px;
  }
  #retire-pro .rp-ctl select,
  #retire-mini .rm-ctl select{
    background: var(--rp-input);
    color:#fff; border:1px solid var(--rp-line);
    border-radius:10px; padding:8px 12px; outline:0;
  }
  
  /* ---------- Fields (labels, inputs, rows) ---------- */
  #retire-pro .rp-field,
  #retire-mini .rm-field{ margin-bottom: 10px; }
  
  #retire-pro .rp-field label,
  #retire-mini .rm-field label{
    display:block; margin-bottom:6px; font-weight:700; font-size:13px; color:#fff;
  }
  
  #retire-pro .rp-field input,
  #retire-pro .rp-field select,
  #retire-mini .rm-field input{
    width:100%;
    background: var(--rp-input);
    color:#fff;
    border:1px solid var(--rp-line);
    border-radius:10px;
    padding:12px 14px;
    outline:0;
    font-variant-numeric: tabular-nums;
  }
  
  #retire-pro .rp-row-inline,
  #retire-mini .rm-row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:6px 0; }
  #retire-pro .rp-inline{ display:flex; align-items:center; gap:8px; }
  #retire-pro .rp-inline-lbl{ min-width:150px; color:#fff; }
  #retire-pro .rp-inline-input{ width:160px; }
  
  /* ---------- Buttons (ghost → white on hover) ---------- */
  #retire-pro .rp-btn,
  #retire-mini .rm-btn{
    display:inline-flex; align-items:center; justify-content:center;
    border:1px solid var(--rp-line);
    background: var(--rp-btn);
    color:#fff;
    padding:12px 16px; border-radius:999px; font-weight:800; cursor:pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .08s ease;
  }
  #retire-pro .rp-btn:hover,
  #retire-mini .rm-btn:hover{ background: var(--rp-btnH); transform: translateY(-1px); }
  #retire-pro .rp-btn-secondary,
  #retire-mini .rm-btn-secondary{ width:100%; margin-top:10px; }
  
  /* ---------- KPI rows & emphasis ---------- */
  #retire-pro .rp-kv,
  #retire-mini .rm-kv{
    display:flex; justify-content:space-between; align-items:center;
    padding:8px 0; border-bottom:1px dashed var(--rp-line-dashed);
  }
  #retire-pro .rp-kv:last-child,
  #retire-mini .rm-kv:last-child{ border-bottom:0; }
  
  #retire-pro .rp-kv span,
  #retire-mini .rm-kv span{ color: var(--rp-muted); }
  
  #retire-pro .rp-kv-emph{
    border:1px solid var(--rp-line);
    border-radius: var(--rp-radius);
    padding: 12px;
    background: #0a0a0a;        /* tiny contrast but still black family */
    margin-bottom: 6px;
  }
  #retire-pro .rp-current-emph{ font-size: clamp(20px, 3.2vw, 34px); font-weight:900; letter-spacing:.2px; }
  
  /* ---------- Notes / disclaimers ---------- */
  #retire-pro .rp-note,
  #retire-mini .rm-sub{ color: var(--rp-muted); margin: 6px 0 10px; }
  #retire-pro .rp-disclaimer{ display:block; margin-top:8px; color:var(--rp-muted); font-size:12px; }
  
  /* ---------- Tiles (price, volume, etc.) ---------- */
  #retire-pro .rp-tiles{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin: 10px 0 16px; }
  @media (max-width:980px){ #retire-pro .rp-tiles{ grid-template-columns: repeat(2,1fr); } }
  @media (max-width:680px){ #retire-pro .rp-tiles{ grid-template-columns: 1fr; } }
  
  #retire-pro .rp-tile{
    background: var(--rp-surface);
    border:1px solid var(--rp-line);
    border-radius: var(--rp-radius);
    padding:12px;
  }
  #retire-pro .rp-tile span{ display:block; color:var(--rp-muted); font-size:12px; margin-bottom:6px; }
  #retire-pro .rp-tile strong{ font-variant-numeric: tabular-nums; font-size: 18px; }
  #retire-pro .rp-link{
    display:inline-block; background: var(--rp-chip); border:1px solid var(--rp-line);
    border-radius:999px; padding:4px 10px; color:#fff; text-decoration:none; font-size:12px;
  }
  
  /* ---------- X-multiple band ---------- */
  #retire-pro .rp-xwrap{
    margin-top:12px; background:#0a0a0a; border:1px solid var(--rp-line);
    border-radius: var(--rp-radius); padding:14px; text-align:center;
  }
  #retire-pro .rp-xlabel{ color: var(--rp-muted); margin-bottom:6px; }
  #retire-pro .rp-xvalue{ font-size: clamp(22px, 3.4vw, 36px); font-weight: 900; letter-spacing: .2px; color:#fff; }
  #retire-pro .rp-xvalue .rp-xnum{ color:#22c55e; font-weight:900; }
  
  /* ---------- Charts (compact, stock-style) ---------- */
  #retire-pro .mini-chart-wrap,
  #retire-mini .mini-chart-wrap{ margin-top: 10px; }
  #retire-pro .mini-chart,
  #retire-mini .mini-chart{ width:100%; height:160px; }
  @media (max-width:720px){
    #retire-pro .mini-chart,
    #retire-mini .mini-chart{ height:150px; }
  }
  
  /* Single large chart card (Dexscreener container) */
  #retire-pro .rp-chart-only h3{ margin: 0 0 8px; }
  #retire-pro .rp-chart-frame{
    position: relative; width: 100%; border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius); overflow: hidden; background:#000;
  }
  #retire-pro .rp-chart-desktop{ height: 640px; }
  #retire-pro .rp-chart-mobile{ display: none; }
  #retire-pro .rp-chart-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; aspect-ratio: unset !important; }
  @media (max-width:720px){
    #retire-pro .rp-chart-desktop{ display:none; }
    #retire-pro .rp-chart-mobile{ display:block; height:460px; }
  }
  
  /* ---------- ROI (landscape table) ---------- */
  #retire-pro .roi-grid{
    width:100%; border-collapse: collapse; font-variant-numeric: tabular-nums;
  }
  #retire-pro .roi-grid th,
  #retire-pro .roi-grid td{
    padding:10px 12px; border-bottom: 1px dashed var(--rp-line-dashed);
    text-align:right; white-space:nowrap; background:#000;
  }
  #retire-pro .roi-grid th:first-child,
  #retire-pro .roi-grid td:first-child{ text-align:left; }
  #retire-pro .roi-grid thead th{
    font-weight:700; color:#cfd2d7; text-transform:uppercase; letter-spacing:.02em;
  }
  
  /* ---------- Little polish that the old version had ---------- */
  #retire-pro h3,
  #retire-mini h3{ margin: 0 0 8px; font-weight: 800; letter-spacing: .2px; }
  
  #retire-pro .rp-panel{ display:none; }
  #retire-pro .rp-panel-active{ display:block; }
  
  #retire-mini .rm-stats{ border:1px dashed var(--rp-line); border-radius: var(--rp-radius); padding:12px; }
  
  /* Ensure calculator-specific links look like links but stay on-brand */
  #retire-pro a.rp-link:hover{ border-color: rgba(255,255,255,.18); }
  
  /* Keep everything pure black; remove any accidental “off-black” from older rules */
  #retire-pro .rp-card,
  #retire-mini .rm-card,
  #retire-pro .rp-tiles,
  #retire-pro .rp-grid,
  #retire-pro .rp-panel,
  #retire-pro .rp-tabs-row{ background: transparent; }
  /* =========================================================
   RETIREMENT TOOLS PAGE — TITLE SPACING & MOBILE CENTER FIX
   ========================================================= */
#retire-pro > .best-title {
    margin-top: 2px;   /* smaller space below header */
    margin-bottom: 24px; /* more balanced gap before chart */
  }
  
  /* On mobile: center title horizontally */
  @media (max-width: 720px) {
    #retire-pro > .best-title {
      text-align: center;
      margin-top: 16px;   /* tighter to header */
      margin-bottom: 20px; /* keep even spacing */
    }
  }
  /* =========================================================
   RETIREMENT TOOLS — tighten header→title, add title→chart space
   (scoped to this page only)
   ========================================================= */
body.retire-page {
    /* shrink the spacer that sits under the sticky header */
    --header-h: 36px; /* was 72px */
  }
  
  /* reduce section top padding */
  body.retire-page #retire-pro {
    padding-top: 10px !important; /* was 40px */
  }
  
  /* title sits inside the chart card: make the top tight, keep air before chart */
  body.retire-page .rp-card.rp-chart-only {
    padding-top: 12px !important;   /* was 18px */
    padding-bottom: 18px;           /* keep your normal bottom padding */
  }
  body.retire-page .rp-card.rp-chart-only > .best-title {
    margin: 0 0 18px !important;    /* no extra gap above; nice gap to the chart */
  }
  
  /* Mobile-only: center the title and balance spacing a touch more */
  @media (max-width: 720px) {
    body.retire-page { --header-h: 28px; }                /* even tighter under header on phones */
    body.retire-page #retire-pro { padding-top: 8px !important; }
  
    body.retire-page .rp-card.rp-chart-only > .best-title {
      text-align: center !important;
      margin: 0 0 16px !important;  /* balanced gap before chart on mobile */
    }
  }
  /* ===== Drawer core (scoped to this page) ===== */
body.retire-page #drawer-toggle{ position:absolute; width:0; height:0; opacity:0; }

body.retire-page .drawer-overlay{
  position:fixed;
  left:0; right:0;
  top:var(--header-h);                 /* start below sticky header */
  height:calc(100vh - var(--header-h));
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  z-index:55;
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
}

body.retire-page .drawer{
  position:fixed;
  top:var(--header-h); bottom:0; left:0;
  width:min(420px, 86vw);
  background:#000; color:#fff;
  border-right:1px solid rgba(255,255,255,.1);
  transform:translateX(-100%);
  transition:transform .25s ease;
  z-index:60;
  display:flex; flex-direction:column;
}

body.retire-page #drawer-toggle:checked ~ .drawer{
  transform:translateX(0);
}
body.retire-page #drawer-toggle:checked ~ .drawer-overlay{
  opacity:1; pointer-events:auto;
}

/* Drawer content polish (optional, matches your site) */
body.retire-page .drawer-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px; border-bottom:1px solid rgba(255,255,255,.1);
}
body.retire-page .drawer .logo-img{ height:36px; }
body.retire-page .close-btn{
  background:transparent; color:#fff;
  border:1px solid rgba(255,255,255,.18);
  border-radius:8px; padding:6px 10px; cursor:pointer;
}
body.retire-page .drawer-nav{ display:grid; gap:6px; padding:12px; }
body.retire-page .drawer-link{
  padding:14px 10px; border-radius:12px; font-weight:900; font-size:18px;
  border:1px solid transparent;
}
body.retire-page .drawer-link:hover{
  background:#111; border-color:rgba(255,255,255,.16);
}

/* Mobile width */
@media (max-width:900px){
  body.retire-page .drawer{ width:min(86vw, 420px); }
}
/* ===== RETIREMENT TOOLS drawer polish (page-scoped) ===== */

/* Keep header always above the drawer */
body.retire-page header { z-index: 70; }

/* Drawer + overlay start BELOW the sticky header and never cover it */
body.retire-page .drawer,
body.retire-page .drawer-overlay {
  top: var(--header-h, 72px) !important;
  height: calc(100vh - var(--header-h, 72px)) !important;
  z-index: 60; /* overlay/panel under header, over page */
}

/* Pure black, thin divider like your “clean” look */
body.retire-page .drawer {
  background: #000 !important;
  border-right: 1px solid rgba(255,255,255,.10);
}

/* Dim overlay but not the header */
body.retire-page .drawer-overlay {
  background: rgba(0,0,0,.55) !important;
}

/* Remove the extra RETIRE logo INSIDE the drawer on this page */
body.retire-page .drawer-header .brand,
body.retire-page .drawer .logo-img {
  display: none !important;
}

/* Keep only the close (X) button; tighten header spacing */
body.retire-page .drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Make sure the hamburger label is on top and clickable */
body.retire-page .menu-btn { position: relative; z-index: 75; }

/* Checkbox-driven open/close still works */
#drawer-toggle:checked ~ .drawer        { transform: translateX(0); }
#drawer-toggle:checked ~ .drawer-overlay{ opacity: 1; pointer-events: auto; }
/* ===== Retirement Tools: put Currency selector on the far right ===== */
#retire-pro .rp-tabs-row{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;              /* make the row span full width */
  }
  
  #retire-pro .rp-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  
  #retire-pro .rp-ctl{
    margin-left:auto;        /* <-- pushes the currency to the right */
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;      /* keep label + select on one line */
  }
  
  #retire-pro .rp-ctl label{ opacity:.9; font-size:13px; }
  #retire-pro .rp-ctl select{
    background:#000; color:#fff; border:1px solid rgba(255,255,255,.10);
    border-radius:10px; padding:8px 12px;
  }
  
  /* Mobile: stack, centered spacing */
  @media (max-width:720px){
    #retire-pro .rp-tabs-row{
      flex-direction:column;
      align-items:flex-start;   /* keep the same look as the rest of the page */
      gap:10px;
    }
    #retire-pro .rp-ctl{ margin-left:0; }
  }
  /* ========== 1) GLOBAL: center header logo on mobile (all pages) ========== */
@media (max-width:700px){
    header .nav{ position: relative; }
  
    /* Center the brand/logo perfectly */
    header .brand{
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      margin: 0;
      z-index: 1;              /* sit above the flex row */
    }
  
    /* Keep hamburger left, icons right */
    header .menu-btn{ position: relative; z-index: 2; }
    header .icons{
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
    }
  
    /* Spacer not needed when brand is absolutely centered */
    header .spacer{ display: none; }
  }
  
  /* ========== 2) RETIREMENT TOOLS (mobile): center tabs, currency below ========== */
  @media (max-width:720px){
    /* The row becomes a vertical stack centered */
    #retire-pro .rp-tabs-row{
      display: flex;
      flex-direction: column;
      align-items: center;   /* center the stack */
      gap: 10px;
      width: 100%;
    }
  
    /* Tabs: centered & evenly spaced with wrap */
    #retire-pro .rp-tabs{
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;             /* even spacing between the 3 buttons */
      flex-wrap: wrap;
      width: 100%;
    }
  
    /* Make each tab consistent size without stretching full width */
    #retire-pro .rp-tab{
      border: 1px solid rgba(255,255,255,.10);
      background: #000;
      color: #fff;
      border-radius: 999px;
      padding: 10px 14px;
      min-width: 140px;      /* gives a tidy pill width */
      text-align: center;
    }
  
    /* Currency control: centered under the tabs */
    #retire-pro .rp-ctl{
      order: 2;              /* ensure it sits below the tabs */
      margin: 0 auto;        /* center horizontally */
      display: flex;
      align-items: center;
      gap: 8px;
    }
    #retire-pro .rp-ctl label{
      font-size: 13px;
      opacity: .9;
    }
    #retire-pro .rp-ctl select{
      background: #000;
      color: #fff;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 10px;
      padding: 8px 12px;
    }
  }
  
  /* (Desktop/tablet keep existing layout where Currency is at the right end) */
  /* ========== MOBILE: Larger section titles on Merch page ========== */
@media (max-width:700px){
    /* target section headers on merch/product pages */
    body.products-page h2,
    body.products-page .section-title,
    body.products-page h3.section-title {
      font-size: clamp(22px, 6vw, 28px); /* scales naturally by viewport */
      text-align: center;
      letter-spacing: 0.05em;
      margin-top: 20px;
      margin-bottom: 12px;
    }
  
    /* optional: ensure boldness and clarity on dark bg */
    body.products-page h2,
    body.products-page .section-title {
      font-weight: 800;
      color: #fff;
    }
  }
  /* ========== CONTACT PAGE — Full width form & centered buttons ========== */
body.contact-page .contact-form,
body.contact-page form {
  width: 100%;
  max-width: none;
  background: #000;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 32px;
  box-sizing: border-box;
}

/* Make form stretch inside its section container */
body.contact-page .container {
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

/* Center the buttons row */
body.contact-page .form-buttons,
body.contact-page form .button-row,
body.contact-page form div:last-of-type {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* Ensure buttons look uniform */
body.contact-page button,
body.contact-page input[type="submit"] {
  min-width: 100px;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
}

/* Mobile refinements */
@media (max-width:720px){
  body.contact-page .contact-form,
  body.contact-page form {
    padding: 20px;
  }

  body.contact-page .form-buttons,
  body.contact-page form .button-row {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
}
/* CONTACT page: full-width form + centered buttons */
body.contact-page .contact-card{
    width: 100% !important;
    max-width: none !important;        /* defeats the 860px in contact.html */
    box-sizing: border-box !important;
  }
  
  body.contact-page .actions{
    display: flex !important;
    justify-content: center !important; /* center Send / Clear */
    align-items: center !important;
    gap: 12px !important;
    margin-top: 18px !important;
  }
  
  /* Make the container breathe edge-to-edge while staying inside your site container */
  body.contact-page .container.page{
    max-width: 1280px;                  /* keep your site’s standard width */
    padding-left: 24px;
    padding-right: 24px;
  }
  
  /* Mobile padding tweak */
  @media (max-width: 720px){
    body.contact-page .contact-card{ padding: 20px !important; }
  }
  /* Reduce space between header/nav and page titles on mobile */
@media (max-width: 720px) {
    main.container.page {
      margin-top: 10px !important; /* reduce gap */
      padding-top: 0 !important;
    }
  
    .best-title {
      margin-top: 10px !important;
      margin-bottom: 20px !important;
    }
  
    header {
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }
  }
  /* =========================
   CART POLISH — spacing & layout
   ========================= */

/* Drawer sizing & edge crispness */
.cart-panel{
    width: 420px;
    max-width: min(92vw, 420px);
    background:#0b0b0c;
    color:#fff;
    border-left:1px solid rgba(255,255,255,.08);
    display:grid;
    grid-template-rows:auto 1fr auto;
    box-shadow: -10px 0 30px rgba(0,0,0,.35);
  }
  @media (max-width:520px){
    .cart-panel{ max-width:100vw; }
  }
  
  /* Header */
  .cart-head{
    padding:16px 16px;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .cart-title{
    font-weight:900;
    font-size:18px;
    letter-spacing:.2px;
  }
  .cart-close{
    background:transparent;
    color:#fff;
    border:1px solid rgba(255,255,255,.18);
    border-radius:10px;
    padding:6px 10px;
    cursor:pointer;
  }
  
  /* Items area */
  .cart-items{
    padding:10px 12px;
    overflow:auto;
    overscroll-behavior:contain;
  }
  
  /* Each item row */
  .cart-item{
    display:grid;
    grid-template-columns:72px 1fr auto;
    gap:12px;
    align-items:start;
    padding:10px 6px;
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .cart-item:last-child{ border-bottom:0; }
  
  .cart-thumb{
    width:72px; height:72px;
    border-radius:10px;
    overflow:hidden;
    background:#121216;
  }
  .cart-thumb img{ width:100%; height:100%; object-fit:cover; }
  
  .cart-meta{ min-width:0; }              /* allow text ellipsis */
  .cart-meta .title{
    font-weight:800;
    font-size:14px;
    line-height:1.25;
    margin:0 0 2px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .cart-meta .muted{
    color:#b9bbc1; font-size:12px; line-height:1.2;
  }
  
  .cart-price{
    font-weight:800;
    white-space:nowrap;
    align-self:center;
  }
  
  /* Quantity pill */
  .cart-qty{
    display:inline-grid;
    grid-auto-flow:column;
    gap:6px;
    align-items:center;
    margin-top:6px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    padding:6px 8px;
  }
  .cart-qty button{
    width:auto; height:auto;
    background:transparent;
    color:#fff; border:0; font-weight:900;
    cursor:pointer;
  }
  
  /* Footer: sticky, safe-area aware, consistent spacing */
  .cart-foot{
    position:sticky; bottom:0;
    background:rgba(11,11,12,.96);
    backdrop-filter:blur(6px);
    border-top:1px solid rgba(255,255,255,.08);
    padding:14px 16px calc(14px + env(safe-area-inset-bottom));
    display:grid; gap:10px;
  }
  .cart-row{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px;
  }
  .cart-sub{ font-weight:900; }
  
  .cart-checkout{
    display:inline-flex; align-items:center; justify-content:center;
    gap:10px;
    width:100%; height:52px;
    padding:0 18px;
    border:0; border-radius:999px;
    background:#ffffff; color:#000;
    font-weight:900; font-size:16px;
    box-shadow:0 10px 24px rgba(255,255,255,.06), 0 2px 0 rgba(0,0,0,.35) inset;
    cursor:pointer;
    transition:transform .08s ease, box-shadow .2s ease, background .2s ease;
  }
  .cart-checkout:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 28px rgba(255,255,255,.08), 0 2px 0 rgba(0,0,0,.4) inset;
  }
  .cart-checkout:active{
    transform:translateY(0);
    box-shadow:0 6px 18px rgba(255,255,255,.06), 0 1px 0 rgba(0,0,0,.45) inset;
  }
  .cart-checkout:focus-visible{
    outline:2px solid #fff; outline-offset:2px;
  }
  
  /* Tighten on small screens */
  @media (max-width:520px){
    .cart-item{ grid-template-columns:64px 1fr auto; gap:10px; }
    .cart-thumb{ width:64px; height:64px; }
    .cart-meta .title{ font-size:13px; }
    .cart-checkout{ height:50px; font-size:15px; }
  }
  
  /* Prevent stray horizontal scroll & ensure smooth edges */
  html, body{ overflow-x:hidden; }
  /* ===========================
 
 /* RETIREMENT TOOLS — visual polish to match Contact Us page */
body.retire-page {
    background: var(--bg);
    color: var(--text);
  }
  
  /* Card / box styling */
  body.retire-page .rp-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
  }
  
  /* Chart frame */
  body.retire-page .rp-chart-frame {
    background: #101013;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  /* Inputs and selects */
  body.retire-page input,
  body.retire-page select {
    background: #101013;
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
  }
  body.retire-page input:focus,
  body.retire-page select:focus {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,.15);
  }
  
  /* Tabs row + tiles */
  body.retire-page .rp-tabs-row,
  body.retire-page .rp-tiles {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
  }
  
  /* Buttons */
  body.retire-page .rp-btn {
    background: #fff;
    color: #000;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    padding: 10px 14px;
    transition: all .15s ease;
  }
  body.retire-page .rp-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(255,255,255,.1);
  }
  
 
  /* ===== Cart/Drawer clickability hardening ===== */

/* Overlays must NEVER catch clicks unless actively shown/open */
.drawer-overlay,
.cart-overlay {
  pointer-events: none;                     /* default: inert */
}

#drawer-toggle:not(:checked) ~ .drawer-overlay {
  opacity: 0 !important;
  pointer-events: none !important;
}

#drawer-toggle:checked ~ .drawer-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;          /* only when drawer is open */
}

/* Make sure overlays start below the sticky header */
:root { --header-h: 72px; }
.drawer,
.drawer-overlay {
  top: var(--header-h) !important;
  height: calc(100vh - var(--header-h)) !important;
}

/* Header should sit above regular content but below an OPEN cart/drawer */
header {
  position: sticky;
  top: 0;
  z-index: 60;                               /* drawer overlay ~55, cart overlay ~70 */
}

/* Cart overlay: hidden by default, only interactive when .show is added */
.cart-overlay {
  display: none;                             /* no click-capture when closed */
  z-index: 70;
}
.cart-overlay.show {
  display: block;
  pointer-events: auto;
}

/* Ensure the cart panel doesn't block header when closed */
.cart-panel {
  z-index: 71;
  transform: translateX(100%);
  pointer-events: none;                      /* closed: inert */
}
.cart-panel.open {
  transform: translateX(0);
  pointer-events: auto;                      /* open: interactive */
}

/* Prevent any full-width element (e.g., hero iframes) from covering header */
.rp-chart-frame,
.hero .frame {
  position: relative;
  z-index: 0;
}
/* ===== Cart/Drawer clickability hardening ===== */
:root { --header-h: 72px; }

header { position: sticky; top: 0; z-index: 60; }

/* Drawer overlay should only catch clicks when drawer is open */
.drawer-overlay { top: var(--header-h); height: calc(100vh - var(--header-h)); }

/* Cart overlay is inert when closed */
.cart-overlay { display: none; z-index: 70; }
.cart-overlay.show { display: block; pointer-events: auto; }

/* Cart panel must be non-interactive when closed */
.cart-panel { z-index: 71; transform: translateX(100%); pointer-events: none; }
.cart-panel.open { transform: translateX(0); pointer-events: auto; }

/* Prevent content layers from covering header/clicks */
.rp-chart-frame,
.hero .frame { position: relative; z-index: 0; }
/* ===== FINAL: make the drawer start BELOW the full nav/header on this page ===== */
body.retire-page { 
    --header-h: 74px !important;     /* match .nav height (74px) */
  }
  
  body.retire-page .drawer,
  body.retire-page .drawer-overlay {
    top: var(--header-h) !important;
    height: calc(100vh - var(--header-h)) !important;
    left: 0;
  }
  
  body.retire-page .drawer {
    transform: translateX(-100%);
    border-right: 1px solid rgba(255,255,255,.10);
    z-index: 60;                      /* below header (header is 60–70) */
  }
  
  body.retire-page #drawer-toggle:checked ~ .drawer {
    transform: translateX(0);
  }
  
  body.retire-page #drawer-toggle:checked ~ .drawer-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  /* keep header above the overlay/panel */
  body.retire-page header { z-index: 70 !important; }
  /* ===== PDP — never crop product photos on mobile/anywhere ===== */

/* 1) Let the hero container size to the image; no hard 1:1 box */
.pdp-hero{
    /* remove the square & cropping */
    aspect-ratio: auto !important;
    overflow: visible !important;
  
    /* keep your styling */
    background:#121216;
    border-radius:16px;
    display:flex;                 /* center the image neatly */
    align-items:center;
    justify-content:center;
  }
  
  /* 2) Images scale to fit without cropping */
  .pdp-hero img{
    width: 100%;
    height: auto;                 /* keep natural aspect ratio */
    max-height: 100%;             /* don’t overflow the box */
    object-fit: contain !important;
    object-position: center;
    display:block;
    background:#0f0f11;
    transition: transform .22s ease;
  }
  
  /* 3) On small screens, cap height to viewport so the hero never
        runs under the sticky add-to-cart bar or off-screen */
  @media (max-width: 700px){
    .pdp-hero{
      /* keep the image fully visible on short viewports */
      max-height: calc(100vh - 220px);
    }
    .pdp-hero img{
      max-height: calc(100vh - 220px); /* match container cap */
    }
  }
  
  /* 4) Thumbnails should also never crop */
  .pdp-thumb img{
    width: 100%;
    height: auto;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    display: block;
  }
  
  /* 5) Give the page bottom breathing room so the sticky bar
        never covers gallery/info content on mobile */
  @media (max-width: 900px){
    .pdp{
      padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .pdp-bar{
      padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    }
  }
  
  /* 6) Small polish: keep the info card from overlapping the header
        and make its sticky behavior friendlier on mobile */
  .pdp-info{
    top: 92px; /* already present; keep it explicit */
  }
  @media (max-width: 1000px){
    .pdp-info{ position: static; }
  }
 /* ===== Catalog cards — never crop product photos (all pages) ===== */
.product-grid .media img,
.preview-row .media img,
.card .media img,
#recoGrid .media img{
  object-fit: contain !important;  /* show full image */
  object-position: center;
  background:#0f0f11;              /* subtle letterbox for odd ratios */
}

/* (optional) keep a consistent card box on phones */
@media (max-width:700px){
  .product-grid .media,
  .preview-row .media,
  #recoGrid .media{
    aspect-ratio: 1 / 1;           /* square cards feel cleaner on mobile */
  }
}
 /* ====== NO-CROP PRODUCT IMAGES ====== */

/* A) Catalog/listing cards (Merch, “Lifestyle”, etc.) */
body.products-page .product-grid .media img,
body.products-page .preview-row .media img,
body.products-page .card .media img,
#recoGrid .media img{
  object-fit: contain !important;   /* show whole image */
  object-position: center;
  /* keep your 12px padding look */
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border-radius: 12px;
  background: #0f0f11;              /* gentle letterbox for odd ratios */
}

/* (optional) keep equal card heights on small screens */
@media (max-width:700px){
  body.products-page .product-grid .media,
  body.products-page .preview-row .media,
  #recoGrid .media{ aspect-ratio: 1 / 1; }
}

/* B) PDP hero + thumbnails (all product detail pages) */
body.product-page .pdp-hero{
  aspect-ratio: auto !important;     /* no square box */
  overflow: visible !important;
  display: flex; align-items: center; justify-content: center;
}
body.product-page .pdp-hero img{
  width: 100%; height: auto;
  object-fit: contain !important; object-position: center;
  max-height: 100%;
}
@media (max-width:700px){
  body.product-page .pdp-hero,
  body.product-page .pdp-hero img{
    max-height: calc(100vh - 220px); /* avoid sticky bar overlap */
  }
}
body.product-page .pdp-thumb img{
  object-fit: contain !important; aspect-ratio: auto !important;
  width: 100%; height: auto; display: block;
}
/* ===== PDP mobile hardening — never crop, never overflow ===== */

/* Hero: always shrink-to-fit (no square box forcing crop) */
.pdp-hero{
    aspect-ratio: auto !important;
    overflow: visible !important;
    display: flex; align-items: center; justify-content: center;
    background:#121216; border-radius:16px;
  }
  .pdp-hero img{
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
  }
  
  /* Cap hero height on short phones so nothing hides under the sticky bar */
  @media (max-width:700px){
    .pdp-hero,
    .pdp-hero img{
      max-height: calc(100vh - 220px);
    }
  }
  
  /* Thumbs: no crop */
  .pdp-thumb img{
    width: 100%;
    height: auto;
    object-fit: contain !important;
    aspect-ratio: auto !important;
  }
  
  /* Product description content can contain big images/tables from Shopify.
     Constrain everything so it can’t blow up the layout. */
  #pdpDesc, #accRoot{
    overflow-wrap: anywhere;
  }
  #pdpDesc img, #pdpDesc video, #pdpDesc iframe{
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
  }
  #pdpDesc table{
    width: 100% !important;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
  }
  #pdpDesc *{
    max-width: 100% !important;
    box-sizing: border-box;
  }
  
  /* Extra padding so the sticky add-to-cart never covers content on phones */
  @media (max-width:900px){
    .pdp{ padding-bottom: calc(110px + env(safe-area-inset-bottom,0px)) !important; }
  }
  .grid-more-wrap{display:flex;justify-content:center;margin-top:16px}
.show-more-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 18px;border-radius:999px;
  border:1px solid var(--line);
  background:transparent;color:var(--text);
  font-weight:600;text-decoration:none;cursor:pointer
}
.show-more-btn:hover{background:#151517}
.footer-title{
    display:block;
    font-weight:800;
    font-size:1rem;        /* ~16px on mobile */
    letter-spacing:.02em;
    color:var(--text);
    margin-bottom:10px;
  }
  @media (min-width:768px){
    .footer-title{font-size:1.125rem;} /* ~18px on desktop */
  }
  .grid-more-wrap{
    display:flex;
    justify-content:flex-start;   /* left-align */
    margin-top:16px;
  }
  
  .show-more-btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:12px 18px; border-radius:999px;
    text-decoration:none;
    border:1px solid var(--line);   /* keep outline like merch */
    background:transparent;         /* let .rp-btn hover take over */
  }
  /* JOIN OUR COMMUNITY image full-width, scoped to this section only */
#community .community-card{
    display:block;
    width:100%;
    border-radius:24px;      /* keep your rounded corners */
    overflow:hidden;         /* clip the image to the radius */
    /* If this section sits in a grid, span full width */
    grid-column:1 / -1;
  }
  
  #community .community-img{
    display:block;
    width:100% !important;   /* force full width */
    max-width:100% !important;
    height:auto;             /* keep aspect ratio */
  }
  #community .community-card { padding:0; }
/* JOIN OUR COMMUNITY — force full-width image */
#community .community-card{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:24px;
    overflow:hidden;
    grid-column:1 / -1 !important;     /* if parent is a grid */
    align-self:stretch !important;      /* if parent is flex */
  }
  
  #community .community-img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;             /* keep aspect ratio */
  }
  .tools-more-wrap{
    display:flex;
    justify-content:flex-start;
    margin-top:16px;
  }
  .show-all-btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:12px 18px; border-radius:999px;
    text-decoration:none;
    border:1px solid var(--line);
    background:transparent;
  }
  @media (max-width: 600px) {
    #fitness-section   h2.merch-title,
    #lifestyle-section h2.merch-title,
    #accessories-section h2.merch-title {
      font-size: 38px !important;
    }
  }
  