/* ============================================================
   Spot Startups — Shared Stylesheet
   Used by every page. Design tokens (colors, fonts, spacing)
   live in :root — change them here to restyle the whole site.
   ============================================================ */

  :root{
    --ink:#0A0C0F; --ink-2:#12151A; --ink-3:#1B1F26;
    --line: rgba(255,255,255,0.08); --line-strong: rgba(255,255,255,0.14);
    --paper:#F5F6F7; --paper-dim:#A6ACB2; --paper-faint:#767C83;
    --accent:#2DD4BF; --accent-dim: rgba(45,212,191,0.12); --accent-text:#5EEAD4;
    --heart:#F43F5E;
    --font:'Inter', -apple-system, sans-serif;
    --mono:'JetBrains Mono', monospace;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{background:var(--ink); color:var(--paper); font-family:var(--font); line-height:1.6; -webkit-font-smoothing:antialiased; font-size:15px;}
  a{color:inherit; text-decoration:none;}
  ul{list-style:none;}
  .wrap{max-width:1440px; margin:0 auto; padding:0 40px;}

  /* ===== 3-COLUMN SHELL ===== */
  .shell{display:grid; grid-template-columns:220px minmax(0,1fr) 320px; gap:40px; padding:32px 0 64px; align-items:start;}
  .shell-form-only{grid-template-columns:1fr !important;}
  .shell-form-only > main{max-width:740px; margin:0 auto; width:100%;}

  /* ===== LEFT: NAV + CATEGORIES ===== */
  .left{position:sticky; top:28px; display:flex; flex-direction:column; gap:2px;}
  .nav-item{display:flex; align-items:center; gap:11px; padding:9px 12px; border-radius:7px; font-size:14px; font-weight:500; color:var(--paper-dim);}
  .nav-item svg{width:18px; height:18px; flex-shrink:0; color:var(--paper-faint);}
  .nav-item-icon-img{width:18px; height:18px; flex-shrink:0; object-fit:contain;}
  .nav-item:hover{background:var(--ink-2); color:var(--paper);}
  .nav-item:hover svg{color:var(--paper-dim);}
  .nav-item.active{background:var(--accent-dim); color:var(--accent-text);}
  .nav-item.active svg{color:var(--accent-text);}
  .side-divider{height:1px; background:var(--line); margin:18px 4px 14px;}
  .side-label{font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:var(--paper-faint); padding:0 12px 8px; font-weight:600;}
  .cat-item{display:flex; align-items:center; justify-content:space-between; padding:7px 12px; border-radius:7px; font-size:13.5px; color:var(--paper-dim);}
  .cat-item:hover{background:var(--ink-2); color:var(--paper);}
  .cat-item .n{font-family:var(--mono); font-size:11.5px; color:var(--paper-faint); font-variant-numeric:tabular-nums;}
  .cat-item.more{color:var(--accent-text); font-weight:600; margin-top:2px;}

  /* ===== MIDDLE: HERO ===== */
  .hero{padding-top:4px; padding-bottom:40px; border-bottom:1px solid var(--line); margin-bottom:32px;}

  .hero-top{display:flex; align-items:center; gap:20px; margin-bottom:40px;}
  .account-menu, .auth-buttons{margin-left:auto;}
  .logo{display:flex; align-items:center; gap:10px; font-weight:700; font-size:19px; letter-spacing:-0.01em; text-decoration:none; color:var(--paper);}
  .logo .mark{width:27px; height:27px; flex-shrink:0; display:block; object-fit:contain;}

  .search-sm{display:flex; align-items:center; gap:9px; background:var(--ink-2); border:1px solid var(--line); border-radius:9px; padding:10px 14px; width:280px;}
  .search-sm input{background:none; border:none; outline:none; color:var(--paper); font-size:13.5px; width:100%; font-family:var(--font);}
  .search-sm input::placeholder{color:var(--paper-faint);}
  .search-sm svg{color:var(--paper-faint); width:17px; height:17px; flex-shrink:0;}

  .eyebrow{display:inline-flex; align-items:center; gap:7px; font-size:11.5px; font-weight:600; letter-spacing:0.05em; text-transform:uppercase; color:var(--accent-text); background:var(--accent-dim); border:1px solid rgba(45,212,191,0.25); padding:6px 13px; border-radius:100px; margin-bottom:20px;}
  .eyebrow .dot{width:5px; height:5px; border-radius:50%; background:var(--accent-text);}
  h1{font-size:clamp(30px,3.6vw,44px); font-weight:800; letter-spacing:-0.025em; line-height:1.08; margin-bottom:14px;}
  .hero-sub{color:var(--paper-dim); font-size:16px; max-width:480px; margin-bottom:28px;}

  .countdown-inline{display:flex; align-items:center; gap:10px; margin-bottom:24px; font-size:14px; color:var(--paper-dim); font-weight:500;}
  .countdown-inline .bolt{color:var(--accent-text);}
  .countdown-inline .digits{font-family:var(--mono); font-size:15px; font-weight:600; color:var(--paper); letter-spacing:0.01em;}
  .countdown-inline .digits .u{font-size:12px; color:var(--paper-faint); font-family:var(--font); font-weight:500;}

  .cta-row{display:flex; align-items:center; gap:12px;}
  .btn-submit-lg{background:var(--accent); color:#00201C; padding:13px 26px; border-radius:9px; font-weight:700; font-size:15px; cursor:pointer; border:none;}
  .btn-submit-lg:disabled{background:var(--ink-3); color:var(--paper-faint); cursor:not-allowed; opacity:1;}
  .btn-submit-lg:hover{background:var(--accent-text);}
  .btn-browse{background:var(--ink-2); color:var(--paper); border:1px solid var(--line-strong); padding:13px 26px; border-radius:9px; font-weight:600; font-size:15px; cursor:pointer;}
  .btn-browse:hover{background:var(--ink-3); border-color:var(--paper-faint);}

  /* ===== MIDDLE: EDITOR'S PICKS (weekly, 2-3 cards — distinct card treatment
     from the boxless daily feed below, since this is a small curated set, not a repeating list) ===== */
  .spotlight-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:14px;}
  .spotlight-head h2{font-size:17px; font-weight:700;}
  .spotlight-head .period{font-size:12.5px; color:var(--paper-faint); font-weight:500;}
  .spotlight-head .view-prev{font-size:12.5px; color:var(--paper-faint); font-weight:500;}
  .spotlight-head .view-prev:hover{color:var(--paper-dim);}

  .spotlight-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin-bottom:36px;}
  .sp-card{background:var(--ink-2); border:1px solid var(--line); border-radius:12px; padding:20px; transition:border-color .15s ease, transform .15s ease;}
  .sp-card:hover{border-color:var(--line-strong); transform:translateY(-2px);}
  .sp-card .sp-thumb{width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; color:rgba(255,255,255,0.65); margin-bottom:14px; position:relative; overflow:hidden;}
  .sp-card .sp-thumb img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit;}
  .sp-card .sp-tag{display:inline-block; font-size:10.5px; font-weight:600; letter-spacing:0.03em; text-transform:uppercase; color:var(--accent-text); background:var(--accent-dim); padding:4px 10px; border-radius:100px; margin-bottom:12px;}
  .sp-card h3{font-size:15.5px; font-weight:700; margin-bottom:7px;}
  .sp-card p.pitch{font-size:13px; color:var(--paper-dim); line-height:1.55; margin-bottom:14px; min-height:40px;}
  .sp-card .sp-foot{display:flex; align-items:center; justify-content:space-between; padding-top:12px; border-top:1px solid var(--line);}
  .sp-card .sp-heart{display:flex; align-items:center; gap:6px; cursor:pointer; color:var(--paper-dim); background:var(--ink-3); border:1px solid var(--line); border-radius:8px; padding:7px 11px; font-size:12.5px; transition:all .15s ease;}
  .sp-card .sp-heart-icon{width:16px; height:16px; object-fit:contain;}
  .sp-card .sp-heart:hover{border-color:var(--accent); color:var(--accent-text); background:var(--accent-dim);}
  .sp-card .sp-heart.voted{border-color:var(--accent); color:var(--accent-text); background:var(--accent-dim);}
  .sp-card .sp-heart .num{font-family:var(--mono); font-weight:600; color:var(--accent-text);}
  .sp-card .sp-heart:disabled{opacity:0.6; cursor:default;}
  .sp-card .sp-visit{font-size:11.5px; color:var(--paper-faint);}


  .feed-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:6px;}
  .feed-head h2{font-size:17px; font-weight:700;}
  .feed-head .count{font-size:13px; color:var(--paper-faint); font-family:var(--mono);}

  .day-group{margin-bottom:4px;}
  .day-label{display:flex; align-items:baseline; gap:9px; padding:26px 2px 8px; font-size:19px; font-weight:700; color:var(--paper);}
  .day-label span{font-size:14px; font-weight:500; color:var(--paper-dim); font-family:var(--font);}

  .feed{border-top:1px solid var(--line);}
  .feed-item{display:flex; gap:16px; align-items:flex-start; padding:20px 14px; margin:0 -14px; border-bottom:1px solid var(--line); border-radius:10px; transition:background-color .15s ease;}
  .feed-item:hover{background:var(--ink-2);}
  .feed-item:last-child{border-bottom:none;}
  .feed-rank{width:26px; flex-shrink:0; text-align:center; font-family:var(--mono); font-size:15px; font-weight:600; color:var(--paper-faint); padding-top:11px;}
  .f-thumb{width:44px; height:44px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; color:rgba(255,255,255,0.65); position:relative; overflow:hidden;}
  .f-thumb img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit;}
  .f-body{flex:1; min-width:0;}
  .f-body h3{font-size:15.5px; font-weight:600; margin-bottom:5px;}
  .f-body p{font-size:13.5px; color:var(--paper-dim); line-height:1.55;}
  .f-tags{margin-top:11px;}
  .tag{font-size:11.5px; color:var(--paper-dim); border:1px solid var(--line); padding:4px 11px; border-radius:100px;}
  .f-right{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; flex-shrink:0; cursor:pointer; color:var(--paper-dim); background:var(--ink-3); border:1px solid var(--line); border-radius:10px; padding:11px 15px; min-width:56px; transition:all .15s ease;}
  .f-right-icon{width:19px; height:19px; object-fit:contain;}
  .f-right:hover{border-color:var(--accent); color:var(--accent-text); background:var(--accent-dim);}
  .f-right.voted{border-color:var(--accent); color:var(--accent-text); background:var(--accent-dim);}
  .f-right .num{font-family:var(--mono); font-size:12.5px; font-weight:600; color:var(--accent-text);}
  .f-right:disabled{opacity:0.6; cursor:default;}

  .load-more{display:block; text-align:center; padding:13px; margin:26px 0 56px; border:1px solid var(--line); border-radius:10px; color:var(--paper-dim); font-size:14px; font-weight:500;}
  .load-more:hover{border-color:var(--line-strong); color:var(--paper);}

  /* ===== MIDDLE: FAQ ===== */
  .faq{border-top:1px solid var(--line); padding-top:40px;}
  .faq h2{font-size:20px; font-weight:700; margin-bottom:6px;}
  .faq .faq-sub{color:var(--paper-dim); font-size:14px; margin-bottom:24px;}
  .faq-item{border-bottom:1px solid var(--line);}
  .faq-item summary{list-style:none; cursor:pointer; padding:18px 2px; font-size:15px; font-weight:600; display:flex; justify-content:space-between; align-items:center;}
  .faq-item summary::-webkit-details-marker{display:none;}
  .faq-item summary::after{content:'+'; font-size:20px; color:var(--paper-faint); font-weight:400;}

  /* Charts (app/includes/charts.php) — dashboard analytics */
  .chart-svg{width:100%; height:auto; display:block;}
  .chart-axis-label{font-size:9px; fill:var(--paper-faint); font-family:var(--font);}
  .chart-legend{display:flex; gap:16px; justify-content:center; margin-top:8px;}
  .chart-legend-item{display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--paper-dim);}
  .chart-dot{width:8px; height:8px; border-radius:50%; display:inline-block;}

  .traffic-bars{display:flex; flex-direction:column; gap:10px;}
  .traffic-bar-row{display:flex; align-items:center; gap:10px;}
  .traffic-label{width:52px; font-size:12px; color:var(--paper-dim); flex-shrink:0;}
  .traffic-track{flex:1; height:8px; background:var(--ink-3); border-radius:100px; overflow:hidden;}
  .traffic-fill{height:100%; background:var(--accent); border-radius:100px;}
  .traffic-pct{width:36px; text-align:right; font-family:var(--mono); font-size:11.5px; color:var(--paper);}

  .comparison-bars{display:flex; flex-direction:column; gap:18px;}
  .comparison-metric-label{font-size:12.5px; font-weight:600; color:var(--paper); margin-bottom:8px;}
  .comparison-row{display:flex; align-items:center; gap:10px; margin-bottom:6px;}
  .comparison-row:last-child{margin-bottom:0;}
  .comparison-tag{width:34px; font-size:10.5px; font-weight:600; color:var(--accent-text); flex-shrink:0;}
  .comparison-tag-avg{color:var(--paper-faint);}
  .comparison-track{flex:1; height:10px; background:var(--ink-3); border-radius:100px; overflow:hidden;}
  .comparison-fill{height:100%; border-radius:100px;}
  .comparison-fill-mine{background:var(--accent);}
  .comparison-fill-avg{background:var(--paper-faint);}
  .comparison-val{width:28px; text-align:right; font-family:var(--mono); font-size:11.5px; color:var(--paper);}

  /* Back-to-Home link (account sidebar mode) */
  .back-home-link{display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--paper-dim); margin-bottom:4px;}
  .back-home-link svg{width:16px; height:16px;}
  .back-home-link:hover{color:var(--paper);}

  /* Auth buttons (logged out) */
  .auth-buttons{display:flex; align-items:center; gap:10px; flex-shrink:0;}
  .auth-btn-login{font-size:13.5px; font-weight:600; color:var(--paper-dim); padding:9px 14px;}
  .auth-btn-login:hover{color:var(--paper);}
  .auth-btn-signup{font-size:13.5px; font-weight:700; color:#00201C; background:var(--accent); padding:9px 18px; border-radius:8px;}
  .auth-btn-signup:hover{opacity:0.9;}

  /* Account menu (logged in) */
  .account-menu{position:relative; flex-shrink:0;}
  .account-trigger{display:flex; align-items:center; gap:9px; background:var(--ink-2); border:1px solid var(--line); border-radius:100px; padding:6px 14px 6px 6px; cursor:pointer; color:var(--paper);}
  .account-trigger:hover{border-color:var(--line-strong);}
  .account-avatar{width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#2E3A5C,#12151A); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; color:rgba(255,255,255,0.75); overflow:hidden; flex-shrink:0; position:relative;}
  .account-avatar img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
  .account-name{font-size:13px; font-weight:600; max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}

  .account-dropdown{position:absolute; top:calc(100% + 8px); right:0; background:var(--ink-2); border:1px solid var(--line-strong); border-radius:12px; padding:8px; min-width:200px; box-shadow:0 12px 32px rgba(0,0,0,0.4); display:none; z-index:50;}
  .account-dropdown.open{display:block;}
  .account-dropdown-email{font-size:11.5px; color:var(--paper-faint); padding:8px 12px 10px; border-bottom:1px solid var(--line); margin-bottom:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .account-dropdown a{display:block; padding:9px 12px; font-size:13.5px; color:var(--paper-dim); border-radius:8px;}
  .account-dropdown a:hover{background:var(--ink-3); color:var(--paper);}
  .account-dropdown-divider{height:1px; background:var(--line); margin:6px 0;}

  @media (max-width: 640px){
    .account-name{display:none;}
    .account-trigger{padding:6px;}
    .auth-btn-login{padding:8px 10px; font-size:13px;}
    .auth-btn-signup{padding:8px 14px; font-size:13px;}
  }

  /* Account summary card (right rail on dashboard/spotted/settings) */
  .account-summary{text-align:center; padding:28px 20px;}
  .account-summary-avatar{width:56px; height:56px; border-radius:50%; margin:0 auto 14px; background:linear-gradient(135deg,#2E3A5C,#12151A); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:20px; color:rgba(255,255,255,0.75); overflow:hidden; position:relative;}
  .account-summary-avatar img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
  .account-summary-name{font-size:15px; font-weight:700; color:var(--paper); margin-bottom:4px;}
  .account-summary-email{font-size:12px; color:var(--paper-dim); margin-bottom:12px; word-break:break-word;}
  .account-summary-since{font-size:11px; color:var(--paper-faint); padding-top:12px; border-top:1px solid var(--line);}

  /* Auth pages (login/register/forgot-password/reset-password) — a
     standalone centered-card layout, not the 3-column site shell */
  .auth-page{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; background:var(--ink);}
  .auth-card{width:100%; max-width:400px; background:var(--ink-2); border:1px solid var(--line); border-radius:16px; padding:36px 32px;}
  .auth-logo{display:flex; align-items:center; justify-content:center; gap:9px; margin-bottom:28px; text-decoration:none; color:var(--paper); font-weight:700; font-size:18px;}
  .auth-logo img{width:26px; height:26px;}
  .auth-title{font-size:21px; font-weight:800; text-align:center; margin-bottom:6px;}
  .auth-sub{font-size:13px; color:var(--paper-dim); text-align:center; margin-bottom:26px;}
  .auth-google-btn{display:flex; align-items:center; justify-content:center; gap:10px; width:100%; background:var(--paper); color:var(--ink); border-radius:9px; padding:12px; font-weight:600; font-size:14px; margin-bottom:20px; text-decoration:none;}
  .auth-google-btn:hover{opacity:0.9;}
  .auth-google-btn svg{width:18px; height:18px;}
  .auth-divider{display:flex; align-items:center; gap:12px; margin:20px 0; color:var(--paper-faint); font-size:11.5px; text-transform:uppercase; letter-spacing:0.04em;}
  .auth-divider::before, .auth-divider::after{content:''; flex:1; height:1px; background:var(--line);}
  .auth-forgot-link{display:block; text-align:right; font-size:12.5px; color:var(--accent-text); margin:-12px 0 20px;}
  .auth-footer-link{text-align:center; font-size:13px; color:var(--paper-dim); margin-top:22px;}
  .auth-footer-link a{color:var(--accent-text); font-weight:600;}
  .auth-error{background:rgba(244,63,94,0.1); border:1px solid var(--heart); color:var(--heart); border-radius:9px; padding:12px 14px; font-size:13px; margin-bottom:20px;}
  .auth-success{background:var(--accent-dim); border:1px solid var(--accent); color:var(--accent-text); border-radius:9px; padding:12px 14px; font-size:13px; margin-bottom:20px;}

  /* Generic form styling — shared by submit.php and settings.php (and any
     future form page), so this stays consistent in one place */
  .form-section{margin-bottom:26px;}
  .form-section label{display:block; font-size:13.5px; font-weight:600; margin-bottom:9px; color:var(--paper);}
  .field-hint{font-weight:400; color:var(--paper-faint); font-size:12px;}
  .form-section input[type="text"], .form-section input[type="url"], .form-section input[type="password"], .form-section input[type="email"], .form-section input[type="date"], .form-section textarea, select{
    width:100%; background:var(--ink-2); border:1px solid var(--line); border-radius:9px; padding:12px 14px; color:var(--paper); font-size:14px; font-family:var(--font); transition:border-color .15s ease;
  }
  .form-section input[type="date"]{color-scheme:dark;}
  .form-section textarea{resize:vertical; min-height:90px; line-height:1.5;}
  .form-section input:focus, .form-section textarea:focus, select:focus{outline:none; border-color:var(--accent);}
  .form-section input::placeholder, .form-section textarea::placeholder{color:var(--paper-faint);}
  input[type="radio"], input[type="checkbox"]{accent-color:var(--accent);}
  select{cursor:pointer;}
  .two-col{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
  .form-errors{background:rgba(244,63,94,0.1); border:1px solid var(--heart); border-radius:9px; padding:14px 16px; margin-bottom:24px;}
  .form-errors p{color:var(--heart); font-size:13px; margin-bottom:4px;}
  .form-errors p:last-child{margin-bottom:0;}
  .hp-field{position:absolute; left:-9999px; width:1px; height:1px; opacity:0;}
  @media (max-width: 640px){ .two-col{grid-template-columns:1fr;} }

  /* Boxed form-section panel — shared by settings.php and review-form.php */
  .settings-panel{background:var(--ink-2); border:1px solid var(--line); border-radius:14px; padding:28px; margin-bottom:24px;}
  .settings-panel h2{font-size:17px; font-weight:700; margin-bottom:6px;}
  .settings-sub{font-size:13px; color:var(--paper-dim); margin-bottom:22px; line-height:1.5;}
  .settings-success{background:var(--accent-dim); border:1px solid var(--accent); color:var(--accent-text); border-radius:9px; padding:12px 16px; font-size:13.5px; margin-bottom:20px;}

  /* Custom rich text editor (assets/js/rich-editor.js) — shared component,
     not page-specific, so any page using it gets consistent styling */
  .rte-toolbar{display:flex; align-items:center; gap:2px; background:var(--ink-3); border:1px solid var(--line); border-bottom:none; border-radius:9px 9px 0 0; padding:8px;}
  .rte-toolbar button{background:none; border:none; color:var(--paper-dim); width:32px; height:32px; border-radius:6px; cursor:pointer; font-size:13px; font-family:var(--font); display:flex; align-items:center; justify-content:center;}
  .rte-toolbar button:hover{background:var(--ink-2); color:var(--paper);}
  .rte-sep{width:1px; height:20px; background:var(--line); margin:0 4px;}
  .rte-content{min-height:160px; max-height:400px; overflow-y:auto; background:var(--ink-2); border:1px solid var(--line); border-radius:0 0 9px 9px; padding:14px; color:var(--paper); font-size:14px; line-height:1.6;}
  .rte-content:focus{outline:none; border-color:var(--accent);}
  .rte-content h4{font-size:15px; font-weight:700; margin:12px 0 6px;}
  .rte-content h4:first-child{margin-top:0;}
  .rte-content ul, .rte-content ol{padding-left:22px; margin:8px 0;}
  .rte-content li{margin-bottom:4px;}
  .rte-content p{margin:0 0 10px;}
  .rte-content:empty::before{content:attr(data-placeholder); color:var(--paper-faint);}
  .rte-status{font-size:11px; color:var(--paper-faint); margin-left:auto; padding:0 8px;}
  .rte-content img{max-width:100%; border-radius:6px; margin:8px 0; display:block;}

  /* Upload box - shared between submit.php and admin/news-form.php */
  .upload-row{display:flex; align-items:center; gap:16px;}
  .upload-box{width:64px; height:64px; border-radius:12px; background:var(--ink-2); border:1px dashed var(--line-strong); display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; color:var(--paper-faint);}
  .upload-box svg{width:24px; height:24px;}
  .upload-box img{width:100%; height:100%; object-fit:cover;}
  .upload-controls{display:flex; align-items:center; gap:12px;}
  .file-btn{background:var(--ink-3); border:1px solid var(--line-strong); border-radius:8px; padding:10px 18px; font-size:13.5px; font-weight:600; color:var(--paper); cursor:pointer; position:relative;}
  .file-btn:hover{background:var(--ink-2);}
  .file-btn input[type="file"]{position:absolute; inset:0; opacity:0; cursor:pointer; width:100%;}
  .file-name{font-size:13px; color:var(--paper-faint);}

  /* Range/window filter tabs — shared by browse.php and trending.php,
     kept here (not duplicated per-page) so they can never drift apart */
  .range-tabs{display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap;}
  .chip{font-size:13px; padding:8px 16px; border-radius:100px; border:1px solid var(--line); color:var(--paper-dim); background:var(--ink-2); white-space:nowrap;}
  .chip:hover{color:var(--paper); border-color:var(--line-strong);}
  .chip.active{background:var(--accent); color:#00201C; border-color:var(--accent); font-weight:600;}
  .faq-item[open] summary::after{content:'\2212';}
  .faq-item p{color:var(--paper-dim); font-size:14px; padding:0 2px 20px; max-width:600px;}

  /* ===== RIGHT: WIDGETS ===== */
  .right{position:sticky; top:28px; display:flex; flex-direction:column; gap:14px;}
  .widget{background:var(--ink-2); border:1px solid var(--line); border-radius:12px; padding:18px 18px;}
  .widget .w-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:13px;}
  .w-head-label{display:flex; align-items:center; gap:8px;}
  .w-head-label svg{width:15px; height:15px; color:var(--accent-text); flex-shrink:0;}
  .widget .w-head h3{font-size:13px; font-weight:700;}
  .widget .w-head span{font-size:10.5px; color:var(--paper-faint); font-family:var(--mono);}

  .stat-line{display:flex; align-items:center; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--line); font-size:13px; color:var(--paper-dim);}
  .stat-line:last-child{border-bottom:none;}
  .stat-line b{font-family:var(--mono); font-weight:600; color:var(--paper); font-variant-numeric:tabular-nums;}
  .stat-line .dot{width:6px; height:6px; border-radius:50%; background:var(--accent); display:inline-block; margin-right:7px;}

  .bar-row{display:flex; align-items:center; gap:9px; margin-bottom:10px;}
  .bar-row .cat-label{width:88px; font-size:12px; color:var(--paper-dim); flex-shrink:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .bar-track{flex:1; height:6px; background:var(--ink-3); border-radius:100px; overflow:hidden;}
  .bar-fill{height:100%; background:var(--accent); border-radius:100px;}
  .bar-num{width:22px; text-align:right; font-family:var(--mono); font-size:11.5px; color:var(--paper-dim);}

  .poll-opt{margin-bottom:10px;}
  .poll-opt .label{font-size:12px; color:var(--paper-dim); margin-bottom:5px; display:block;}
  .poll-track{height:22px; background:var(--ink-3); border-radius:6px; overflow:hidden; position:relative;}
  .poll-fill{height:100%; background:var(--accent-dim); border-right:2px solid var(--accent);}
  .poll-pct{position:absolute; right:9px; top:50%; transform:translateY(-50%); font-family:var(--mono); font-size:11px; color:var(--paper);}
  .poll-foot{font-size:11px; color:var(--paper-faint); margin-top:8px;}

  .lb-row{display:flex; align-items:center; gap:10px; padding:6px 0;}
  .lb-rank{font-family:var(--mono); font-size:11px; color:var(--paper-faint); width:14px;}
  .lb-thumb{width:26px; height:26px; border-radius:6px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:9.5px; color:rgba(255,255,255,0.6); position:relative; overflow:hidden;}
  .lb-thumb img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit;}
  .lb-name{flex:1; font-size:12.5px; color:var(--paper);}
  .lb-votes{font-family:var(--mono); font-size:11px; color:var(--paper-dim);}

  .trend-row{display:flex; align-items:center; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--line); font-size:12.5px; color:var(--paper-dim);}
  .trend-row:last-child{border-bottom:none;}
  .trend-row .arrow{color:var(--accent-text); font-family:var(--mono); font-size:11.5px;}

  /* ===== PRODUCT DETAIL PAGE ===== */
  .page-top{display:flex; align-items:center; justify-content:space-between; padding:4px 0 22px; border-bottom:1px solid var(--line); margin-bottom:20px;}

  .breadcrumb{display:flex; align-items:center; flex-wrap:wrap; gap:7px; font-size:12.5px; color:var(--paper-faint); margin-bottom:22px;}
  .breadcrumb a:hover{color:var(--paper-dim);}
  .breadcrumb .sep{color:var(--paper-faint); opacity:0.6;}
  .breadcrumb .current{color:var(--paper-dim);}

  .featured-image{width:100%; border-radius:12px; overflow:hidden; margin-bottom:28px; background:linear-gradient(135deg,#1B1F26,#0A0C0F); border:1px solid var(--line); display:flex; align-items:center; justify-content:center;}
  .featured-image img{width:100%; height:auto; display:block;}
  .featured-image.empty{color:var(--paper-faint); font-size:13px; flex-direction:column; gap:8px; aspect-ratio:16/9;}
  .featured-image.empty svg{width:28px; height:28px; opacity:0.5;}

  /* Rich-text output from the description editor — the submission form's editor
     MUST support these elements (headings, bullets, multiple paragraphs) */
  .about-box p{color:var(--paper-dim); font-size:14.5px; line-height:1.75; margin-bottom:14px;}
  .about-box p:last-child{margin-bottom:0;}
  .about-box h4{color:var(--paper); font-size:14.5px; font-weight:700; margin:20px 0 10px;}
  .about-box h4:first-child{margin-top:0;}
  .about-box ul{margin:0 0 14px 0; padding-left:20px;}
  .about-box li{color:var(--paper-dim); font-size:14.5px; line-height:1.65; margin-bottom:6px;}
  .about-box strong{color:var(--paper); font-weight:600;}

  .p-header{display:flex; gap:18px; align-items:flex-start; justify-content:space-between; padding-bottom:24px; border-bottom:1px solid var(--line); margin-bottom:24px;}
  .p-header-left{display:flex; gap:16px; align-items:flex-start;}
  .p-header .p-thumb-lg{width:64px; height:64px; border-radius:14px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:20px; color:rgba(255,255,255,0.65);}
  .p-header h1{font-size:23px; font-weight:800; letter-spacing:-0.015em; margin-bottom:9px;}
  .p-header-actions{display:flex; align-items:center; gap:10px; flex-shrink:0;}
  .p-vote-btn{display:flex; align-items:center; gap:7px; background:var(--ink-3); border:1px solid var(--line); border-radius:9px; padding:11px 16px; color:var(--paper-dim); cursor:pointer; transition:all .15s ease;}
  .p-vote-btn svg{width:18px; height:18px;}
  .p-vote-btn .num{font-family:var(--mono); font-weight:600; color:var(--accent-text); font-size:14px;}
  .p-vote-btn:hover{border-color:var(--accent); background:var(--accent-dim);}
  .p-vote-btn.voted{border-color:var(--accent); background:var(--accent-dim); color:var(--accent-text);}
  .p-vote-btn:disabled{opacity:0.6; cursor:default;}
  .btn-visit{background:var(--ink-2); color:var(--paper); border:1px solid var(--line-strong); padding:11px 18px; border-radius:9px; font-weight:600; font-size:14px; white-space:nowrap;}
  .btn-visit:hover{background:var(--ink-3); border-color:var(--paper-faint);}

  .p-tagline{color:var(--paper-dim); font-size:15.5px; max-width:640px; margin-bottom:28px;}

  .about-box{background:var(--ink-2); border:1px solid var(--line); border-radius:12px; padding:24px 26px; margin-bottom:36px;}
  .about-box .label{font-size:11px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:var(--paper-faint); margin-bottom:12px;}

  .similar-head{font-size:17px; font-weight:700; padding-top:8px; margin-bottom:6px; border-top:1px solid var(--line); padding-top:24px;}

  /* Right column: product-context widgets */
  .fact-row{display:flex; align-items:center; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--line); font-size:12.5px; color:var(--paper-dim);}
  .fact-row:last-child{border-bottom:none;}
  .fact-row b{font-weight:600; color:var(--paper); text-align:right; max-width:150px;}
  .fact-tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:4px;}
  .fact-tags .tag{font-size:10.5px; padding:3px 8px;}
  .verified-badge{display:inline-flex; align-items:center; gap:5px; color:var(--accent-text); font-size:11.5px; font-weight:600;}
  .verified-badge svg{width:13px; height:13px;}

  .rank-big{font-family:var(--mono); font-size:26px; font-weight:600; color:var(--paper); margin-bottom:4px;}
  .rank-sub{font-size:12.5px; color:var(--paper-dim);}

  .cat-volume-text{font-size:12.5px; color:var(--paper-dim); line-height:1.6;}
  .cat-volume-text b{color:var(--paper); font-family:var(--mono); font-weight:600;}

  .share-row{display:flex; gap:8px;}
  .share-btn{flex:1; display:flex; align-items:center; justify-content:center; background:var(--ink-3); border:1px solid var(--line); border-radius:8px; padding:12px; color:var(--paper-dim); cursor:pointer; transition:all .15s ease;}
  .share-btn svg{width:17px; height:17px;}
  .share-btn:hover{border-color:var(--line-strong); color:var(--paper);}

  /* ===== FOOTER ===== */

  footer{border-top:1px solid var(--line); padding:36px 0;}
  .foot-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--paper-dim); font-size:13px; flex-wrap:wrap;}
  .foot-links{display:flex; gap:22px; flex-wrap:wrap;}
  .foot-links a:hover{color:var(--paper);}

  @media (max-width: 600px){
    .foot-inner{flex-direction:column; align-items:flex-start; gap:14px;}
    .foot-links{gap:14px 20px;}
  }

  /* ===== MOBILE NAV: hamburger + slide-in drawer ===== */
  .hamburger{display:none; align-items:center; justify-content:center; width:38px; height:38px; background:var(--ink-2); border:1px solid var(--line); border-radius:8px; cursor:pointer; flex-shrink:0;}
  .hamburger span{display:block; width:16px; height:2px; background:var(--paper); position:relative;}
  .hamburger span::before, .hamburger span::after{content:''; position:absolute; left:0; width:16px; height:2px; background:var(--paper);}
  .hamburger span::before{top:-5px;}
  .hamburger span::after{top:5px;}

  .drawer-overlay{display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:90;}
  .drawer-overlay.open{display:block;}

  .drawer{position:fixed; top:0; left:0; bottom:0; width:280px; max-width:82vw; background:var(--ink-2); border-right:1px solid var(--line); z-index:91; padding:22px; transform:translateX(-100%); transition:transform .25s ease; overflow-y:auto;}
  .drawer.open{transform:translateX(0);}
  .drawer-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:24px;}
  .drawer-close{width:32px; height:32px; display:flex; align-items:center; justify-content:center; background:var(--ink-3); border:1px solid var(--line); border-radius:8px; color:var(--paper-dim); cursor:pointer; font-size:16px;}

  @media (max-width: 1180px){
    .shell{grid-template-columns:200px minmax(0,1fr); }
    .right{display:none;}
    .spotlight-grid{grid-template-columns:repeat(2, 1fr);}
  }

  @media (max-width: 860px){
    .hamburger{display:flex;}
    .shell{grid-template-columns:1fr; gap:20px;}
    .left{display:none;} /* replaced by the slide-in drawer on mobile */
    .wrap{padding:0 20px;}
    .hero-top{gap:14px;}
    .search-sm{max-width:220px;}
    .cta-row{flex-wrap:wrap;}
    .spotlight-grid{grid-template-columns:1fr;}
  }

  @media (max-width: 520px){
    .search-sm{display:none;} /* keep mobile header from getting cramped — search still reachable via drawer/future search page */
  }


  /* ===== NEWS / ARTICLES ===== */
  .news-hero{padding-top:4px; padding-bottom:28px; border-bottom:1px solid var(--line); margin-bottom:32px;}
  .news-hero h1{font-size:clamp(28px,3.4vw,40px); font-weight:800; letter-spacing:-0.025em; line-height:1.1; margin-bottom:12px;}
  .news-hero h1 .dim{color:var(--paper-dim);}
  .news-hero-sub{color:var(--paper-dim); font-size:15.5px; max-width:640px;}

  .news-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:24px; margin-bottom:8px;}
  .news-card{border-radius:14px; overflow:hidden; border:1px solid var(--line); background:var(--ink-2); transition:border-color .15s ease, transform .15s ease;}
  .news-card:hover{border-color:var(--line-strong); transform:translateY(-2px);}
  .news-card-img{display:block; aspect-ratio:16/9; background:linear-gradient(135deg,#1B1F26,#0A0C0F); position:relative; overflow:hidden;}
  .news-card-img img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
  .news-card-img.empty{display:flex; align-items:center; justify-content:center; color:var(--paper-faint);}
  .news-card-img.empty svg{width:28px; height:28px; opacity:0.5;}
  .news-card-body{padding:20px 22px 22px;}
  .news-date{font-size:11px; font-weight:600; letter-spacing:0.04em; color:var(--paper-faint);}
  .news-card-body h2{font-size:19px; font-weight:700; letter-spacing:-0.01em; line-height:1.3; margin:8px 0 10px;}
  .news-card-body h2 a:hover{color:var(--accent-text);}
  .news-card-body p{font-size:13.5px; color:var(--paper-dim); line-height:1.6; margin-bottom:14px;}
  .news-read-link{display:inline-flex; align-items:center; gap:5px; font-size:13.5px; font-weight:600; color:var(--accent-text);}
  .news-read-link:hover{color:var(--paper);}

  @media (max-width: 720px){
    .news-grid{grid-template-columns:1fr;}
  }

  /* ===== RICH TEXT EDITOR — new elements (link/table/pre/select/source) ===== */
  .rte-toolbar{flex-wrap:wrap; row-gap:6px;}
  .rte-block-select{background:var(--ink-2); border:1px solid var(--line); color:var(--paper); font-size:12.5px; font-family:var(--font); border-radius:6px; padding:5px 8px; cursor:pointer; height:32px;}
  .rte-block-select:focus{outline:none; border-color:var(--accent);}

  .rte-content a{color:var(--accent-text); text-decoration:underline; text-underline-offset:2px;}

  /* Category multi-select removable badges — shared so both submit.php
     and the admin startup form get identical styling, not two copies */
  .category-badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px;}
  .cat-badge{display:inline-flex; align-items:center; gap:8px; background:var(--accent-dim); color:var(--accent-text); border-radius:100px; padding:7px 8px 7px 14px; font-size:13px; font-weight:500;}
  .cat-badge button{background:none; border:none; color:var(--accent-text); cursor:pointer; display:flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; padding:0;}
  .cat-badge button:hover{background:rgba(45,212,191,0.2);}
  .rte-content pre{background:var(--ink-3); border:1px solid var(--line); border-radius:8px; padding:12px 14px; font-family:var(--mono); font-size:12.5px; color:var(--paper); overflow-x:auto; margin:10px 0;}
  .rte-content table{width:100%; border-collapse:collapse; margin:12px 0; font-size:13px;}
  .rte-content th, .rte-content td{border:1px solid var(--line); padding:8px 10px; text-align:left;}
  .rte-content th{background:var(--ink-3); font-weight:600; color:var(--paper);}
  .rte-content td{color:var(--paper-dim);}

  .rte-source{width:100%; min-height:160px; max-height:400px; background:var(--ink-2); border:1px solid var(--line); border-radius:0 0 9px 9px; padding:14px; color:var(--paper); font-family:var(--mono); font-size:12.5px; line-height:1.6; resize:vertical;}
  .rte-source:focus{outline:none; border-color:var(--accent);}

  /* Rendered article output on the public article page needs the same
     table/pre/link treatment as the editor, since content is saved as raw HTML */
  .about-box a{color:var(--accent-text); text-decoration:underline; text-underline-offset:2px;}
  .about-box pre{background:var(--ink-2); border:1px solid var(--line); border-radius:8px; padding:14px 16px; font-family:var(--mono); font-size:13px; color:var(--paper); overflow-x:auto; margin:0 0 16px;}
  .about-box table{width:100%; border-collapse:collapse; margin:0 0 20px; font-size:14px;}
  .about-box th, .about-box td{border:1px solid var(--line); padding:10px 12px; text-align:left;}
  .about-box th{background:var(--ink-2); font-weight:600; color:var(--paper);}

  /* ===== SUBMIT PAGE — backlink benefits callout ===== */
  .backlink-perk-widget{position:relative; border:1px solid var(--accent); background:linear-gradient(160deg, rgba(60,220,190,0.10), var(--ink-2) 60%); overflow:hidden;}
  .backlink-perk-widget::before{content:""; position:absolute; top:-40px; right:-40px; width:120px; height:120px; background:var(--accent); opacity:0.12; border-radius:50%; filter:blur(10px);}
  .backlink-perk-badge{display:inline-flex; align-items:center; gap:8px; background:var(--accent); color:#08201C; font-size:13px; font-weight:700; letter-spacing:0.02em; padding:8px 16px; border-radius:999px; margin-bottom:14px;}
  .backlink-perk-badge svg{width:16px; height:16px;}
  .backlink-perk-widget .w-head h3{font-size:15px; line-height:1.35;}
  .backlink-perk-list{list-style:none; padding:0; margin:0 0 14px;}
  .backlink-perk-list li{font-size:13px; color:var(--paper); padding-left:22px; position:relative; margin-bottom:14px; line-height:1.4;}
  .backlink-perk-list li:last-child{margin-bottom:0;}
  .backlink-perk-list li::before{content:'\2713'; position:absolute; left:0; top:1px; color:var(--accent-text); font-weight:700; font-size:14px;}
  .backlink-perk-list li strong{display:block; font-size:13.5px; color:var(--paper); margin-bottom:2px;}
  .backlink-perk-list .perk-desc{display:block; font-size:12px; color:var(--paper-dim); font-weight:400;}

  /* ===== THANK YOU / POST-SUBMIT QUIZ ===== */
  .ty-card{background:var(--ink-2); border:1px solid var(--line); border-radius:16px; padding:40px; text-align:center; margin-bottom:20px;}
  .ty-card.hidden{display:none;}
  .ty-icon{font-size:40px; margin-bottom:14px;}
  .ty-title{font-size:26px; font-weight:800; letter-spacing:-0.02em; margin-bottom:8px;}
  .ty-sub{color:var(--paper-dim); font-size:14.5px;}
  .ty-sub-highlight{display:inline-block; background:var(--accent-dim); border:1px solid var(--accent); color:var(--paper); border-radius:10px; padding:12px 18px; font-size:14px; line-height:1.55; max-width:520px;}
  .ty-sub-highlight.warn{background:rgba(244,63,94,0.10); border-color:var(--heart);}
  .ty-divider{height:1px; background:var(--line); margin:28px 0;}

  .ty-ask-box{background:var(--ink-3); border:1px solid var(--line); border-radius:12px; padding:26px; text-align:left; max-width:560px; margin:0 auto;}
  .ty-ask-heading{font-weight:700; font-size:15px; margin-bottom:10px;}
  .ty-ask-body{font-size:13.5px; color:var(--paper-dim); line-height:1.65; margin-bottom:16px;}
  .ty-ask-question{font-size:14px; font-weight:600; margin-bottom:16px; text-align:center;}
  .ty-btn-row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap;}

  .ty-quiz-intro{color:var(--paper-dim); font-size:14px; margin-bottom:16px;}
  .ty-progress-track{height:6px; background:var(--ink-3); border-radius:999px; overflow:hidden; margin-bottom:28px;}
  .ty-progress-fill{height:100%; background:var(--accent); border-radius:999px; width:0%; transition:width .3s ease;}
  .ty-skip-link{font-size:12.5px; color:var(--paper-faint); text-decoration:underline; text-underline-offset:2px;}
  .ty-skip-link:hover{color:var(--paper-dim);}
  .ty-quiz-block{text-align:left; max-width:560px; margin:0 auto 28px; padding-bottom:24px; border-bottom:1px solid var(--line);}
  .ty-quiz-block:last-child{border-bottom:none;}
  .ty-quiz-q{font-weight:700; font-size:15px; margin-bottom:14px;}
  .ty-quiz-options{display:flex; flex-direction:column; gap:8px;}
  .ty-quiz-option{text-align:left; background:var(--ink-3); border:1px solid var(--line); color:var(--paper); font-size:13.5px; padding:12px 16px; border-radius:9px; cursor:pointer; transition:border-color .15s ease, background .15s ease;}
  .ty-quiz-option:hover:not(:disabled){border-color:var(--accent);}
  .ty-quiz-option.selected{border-color:var(--accent); background:var(--accent-dim); color:var(--accent-text); font-weight:600;}
  .ty-quiz-option:disabled{cursor:default;}
  .ty-quiz-recommendation{margin-top:12px; background:var(--accent-dim); border:1px solid var(--accent); border-radius:9px; padding:12px 16px; font-size:13px; color:var(--paper); line-height:1.5;}
  .ty-quiz-recommendation.warn{background:rgba(244,63,94,0.10); border-color:var(--heart); color:var(--paper);}
  .ty-q-label{font-size:11px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:var(--paper-faint); margin-bottom:8px;}
  .ty-quiz-done{padding:20px 0;}
  .ty-quiz-done h3{font-size:18px; font-weight:700; margin-bottom:8px;}
  .ty-quiz-done p{color:var(--paper-dim); font-size:14px;}

  .ty-answer-badge{display:inline-flex; align-items:center; font-size:12px; font-weight:700; letter-spacing:0.02em; padding:4px 12px; border-radius:999px; background:var(--accent-dim); color:var(--accent-text); margin:12px 0 4px;}
  .ty-answer-badge.no{background:rgba(244,63,94,0.12); color:var(--heart);}
  .ty-quiz-followup-q{font-size:13px; color:var(--paper-dim); margin-bottom:4px;}
  .ty-quiz-nav{display:flex; align-items:center; justify-content:space-between; margin-top:20px;}
  .ty-quiz-prev-link{background:none; border:none; color:var(--paper-dim); font-size:13px; font-weight:600; cursor:pointer; padding:0; text-decoration:underline; text-underline-offset:2px;}
  .ty-quiz-prev-link:hover{color:var(--paper);}

  .ty-final-box{max-width:620px; margin:0 auto;}
  .ty-offer-lead{font-size:14px; font-weight:600; margin:24px 0 12px; text-align:left;}
  .ty-offer-list{list-style:none; padding:0; margin:0 0 28px; display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; text-align:left;}
  @media (max-width: 560px){ .ty-offer-list{grid-template-columns:1fr;} }
  .ty-offer-list li{display:flex; align-items:flex-start; gap:10px;}
  .ty-offer-icon{flex-shrink:0; margin-top:1px;}
  .ty-offer-text{display:flex; flex-direction:column; gap:2px;}
  .ty-offer-text strong{font-size:13.5px; color:var(--paper);}
  .ty-offer-text span{font-size:12.5px; color:var(--paper-dim);}

  .ty-offer-card{background:var(--ink-3); border:1px solid var(--accent); border-radius:14px; padding:30px; text-align:center;}
  .ty-offer-hook{font-size:18px; font-weight:800; letter-spacing:-0.01em; margin-bottom:16px; line-height:1.4;}
  .ty-hook-highlight{color:var(--accent-text); background:var(--accent-dim); padding:1px 8px; border-radius:5px;}
  .ty-offer-disclaimer{font-size:11px; color:var(--paper-faint); line-height:1.5; text-align:left; margin-bottom:4px; font-style:italic;}

  /* ===== LEGAL CONTENT (review-terms.php etc.) ===== */
  .legal-content{max-width:680px; margin:0 auto; padding:8px 0 60px;}
  .legal-content h1{font-size:28px; font-weight:800; letter-spacing:-0.02em; margin-bottom:6px;}
  .legal-updated{font-size:12.5px; color:var(--paper-faint); margin-bottom:32px;}
  .legal-content h2{font-size:16px; font-weight:700; margin:32px 0 12px;}
  .legal-content p{font-size:13.5px; color:var(--paper-dim); line-height:1.7; margin-bottom:14px;}
  .legal-content ul{margin:0 0 14px; padding-left:20px;}
  .legal-content li{font-size:13.5px; color:var(--paper-dim); line-height:1.7; margin-bottom:6px;}
  .legal-content a{color:var(--accent-text); text-decoration:underline; text-underline-offset:2px;}
  .legal-content strong{color:var(--paper);}
  .legal-jurisdiction{margin-top:32px; padding:14px 18px; background:rgba(245,158,11,0.10); border:1px solid #F59E0B; border-radius:9px; color:#F59E0B; font-size:12.5px; font-style:italic;}

  /* ===== ALL CATEGORIES PAGE ===== */
  .cat-page-hero{padding-top:4px; padding-bottom:28px; border-bottom:1px solid var(--line); margin-bottom:28px;}
  .cat-page-hero h1{font-size:clamp(28px,3.4vw,40px); font-weight:800; letter-spacing:-0.025em; line-height:1.1; margin-bottom:12px;}
  .cat-page-hero h1 .dim{color:var(--paper-dim);}
  .cat-page-sub{color:var(--paper-dim); font-size:15px; max-width:600px;}

  .cat-list{display:flex; flex-direction:column; gap:14px;}
  .cat-block{background:var(--ink-2); border:1px solid var(--line); border-radius:14px; padding:22px 24px;}
  .cat-block-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap;}
  .cat-block-name{font-size:17px; font-weight:700; color:var(--paper);}
  .cat-block-name:hover{color:var(--accent-text);}
  .cat-block-count{font-size:12px; color:var(--paper-faint); font-family:var(--mono);}
  .cat-tag-row{display:flex; flex-wrap:wrap; gap:8px;}
  .cat-tag-pill{font-size:12.5px; color:var(--paper-dim); background:var(--ink-3); border:1px solid var(--line); padding:6px 13px; border-radius:999px; transition:border-color .15s ease, color .15s ease;}
  .cat-tag-pill:hover{border-color:var(--accent); color:var(--paper);}
  .cat-tag-empty{font-size:12.5px; color:var(--paper-faint); font-style:italic;}

  /* ===== FOUNDERS DIRECTORY (makers.php) ===== */
  .mk-page-hero{padding-top:4px; padding-bottom:28px; border-bottom:1px solid var(--line); margin-bottom:28px;}
  .mk-page-hero h1{font-size:clamp(28px,3.4vw,40px); font-weight:800; letter-spacing:-0.025em; line-height:1.1; margin-bottom:12px;}
  .mk-page-hero h1 .dim{color:var(--paper-dim);}
  .mk-page-sub{color:var(--paper-dim); font-size:15px; max-width:600px;}
  .mk-stats-row{display:flex; align-items:center; gap:10px; margin-top:16px; font-size:13px; color:var(--paper-dim);}
  .mk-stats-row b{color:var(--paper); font-family:var(--mono); font-weight:700;}
  .mk-stat-dot{color:var(--paper-faint);}

  .mk-name-row{display:flex; align-items:center; gap:8px;}
  .mk-badge{font-size:10px; font-weight:700; letter-spacing:0.03em; text-transform:uppercase; padding:2px 9px; border-radius:100px;}
  .mk-badge-maker{background:var(--accent-dim); color:var(--accent-text);}
  .mk-badge-spotter{background:var(--ink-3); color:var(--paper-dim); border:1px solid var(--line-strong);}

  .mk-list{display:flex; flex-direction:column; gap:12px;}
  .mk-card{background:var(--ink-2); border:1px solid var(--line); border-radius:14px; overflow:hidden;}
  .mk-summary{display:flex; align-items:center; gap:14px; padding:18px 22px; cursor:pointer; list-style:none;}
  .mk-summary::-webkit-details-marker{display:none;}
  .mk-avatar{width:44px; height:44px; border-radius:50%; flex-shrink:0; background:linear-gradient(135deg,#2E3A5C,#12151A); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; color:rgba(255,255,255,0.75); overflow:hidden;}
  .mk-avatar.mk-avatar-legacy{background:var(--ink-3); color:var(--paper-faint); border:1px dashed var(--line-strong);}
  .mk-avatar img{width:100%; height:100%; object-fit:cover;}
  .mk-info{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px;}
  .mk-name{font-weight:700; font-size:14.5px; color:var(--paper);}
  .mk-public-link{font-size:12px; color:var(--paper-faint); width:fit-content;}
  .mk-public-link:hover{color:var(--accent-text);}
  .mk-count{font-size:12px; font-weight:600; color:var(--paper-dim); background:var(--ink-3); padding:5px 12px; border-radius:999px; flex-shrink:0; white-space:nowrap;}
  .mk-chevron{width:18px; height:18px; color:var(--paper-faint); flex-shrink:0; transition:transform .15s ease;}
  .mk-card[open] .mk-chevron{transform:rotate(180deg);}

  .mk-products{border-top:1px solid var(--line); padding:8px 14px 14px;}
  .mk-product-row{display:flex; align-items:center; gap:12px; padding:10px 8px; border-radius:9px; transition:background .15s ease;}
  .mk-product-row:hover{background:var(--ink-3);}
  .mk-product-thumb{width:28px; height:28px; border-radius:7px; flex-shrink:0; background:var(--ink-3); display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; font-size:10px; font-weight:700; color:rgba(255,255,255,0.6);}
  .mk-product-thumb img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
  .mk-product-name{flex:1; min-width:0; font-size:13.5px; font-weight:600; color:var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .mk-product-date{font-size:12px; color:var(--paper-faint); flex-shrink:0;}
  .mk-product-votes{display:flex; align-items:center; gap:5px; font-size:12.5px; font-weight:600; color:var(--accent-text); flex-shrink:0; font-family:var(--mono);}
  .mk-product-votes-icon{width:14px; height:14px; object-fit:contain;}

  @media (max-width: 600px){
    .mk-summary{flex-wrap:wrap;}
    .mk-product-date{display:none;}
  }
  .ty-offer-copy{font-size:13px; color:var(--paper-dim); line-height:1.65; margin-bottom:14px; text-align:left;}
  .ty-offer-price{font-family:var(--mono); font-size:40px; font-weight:700; color:var(--accent-text); margin:18px 0 6px;}
  .ty-offer-fineprint{font-size:11.5px; color:var(--paper-faint); margin-bottom:18px;}
  .ty-offer-paypal-container{max-width:320px; margin:0 auto;}
  .ty-razorpay-btn{background:#0C2451; color:#fff; border:none; font-size:14.5px; font-weight:700; padding:13px 28px; border-radius:9px; cursor:pointer; transition:opacity .15s ease;}
  .ty-razorpay-btn:hover{opacity:0.88;}

  /* ===== REVIEW FORM (post-payment) ===== */
  .rf-intro{text-align:center; padding:8px 0 36px; border-bottom:1px solid var(--line); margin-bottom:32px;}
  .rf-success-icon{width:52px; height:52px; border-radius:50%; background:var(--accent-dim); color:var(--accent-text); display:flex; align-items:center; justify-content:center; margin:0 auto 18px;}
  .rf-success-icon svg{width:26px; height:26px;}
  .rf-intro h1{font-size:26px; font-weight:800; letter-spacing:-0.02em; margin-bottom:10px;}
  .rf-intro-sub{color:var(--paper-dim); font-size:14.5px; max-width:480px; margin:0 auto 16px; line-height:1.6;}
  .rf-order-pill{display:inline-block; background:var(--ink-3); border:1px solid var(--line); color:var(--paper-dim); font-size:12px; font-weight:600; padding:6px 14px; border-radius:999px;}

  .rf-radio-row{display:flex; gap:24px; flex-wrap:wrap; margin-top:14px; margin-bottom:22px;}
  .rf-radio{display:flex; align-items:center; gap:9px; font-size:14px; color:var(--paper); cursor:pointer;}
  .rf-radio input{width:16px; height:16px; cursor:pointer;}

  .rf-function-row{background:var(--ink-3); border:1px solid var(--line); border-radius:10px; padding:20px; margin-bottom:16px; position:relative;}
  .rf-function-row:last-child{margin-bottom:0;}
  .rf-function-row .form-section:last-child{margin-bottom:0;}
  .rf-remove-row{position:absolute; top:16px; right:16px; background:none; border:1px solid var(--line); color:var(--paper-dim); font-size:11.5px; font-weight:600; padding:5px 10px; border-radius:7px; cursor:pointer;}
  .rf-remove-row:hover{border-color:var(--heart); color:var(--heart);}

  .rf-success-box{background:var(--accent-dim); border:1px solid var(--accent); border-radius:14px; padding:32px; text-align:center;}
  .rf-success-icon{width:44px; height:44px; border-radius:50%; background:var(--accent); color:#08201C; display:flex; align-items:center; justify-content:center; margin:0 auto 16px;}
  .rf-success-icon svg{width:22px; height:22px;}
  .rf-success-box h2{font-size:20px; font-weight:800; letter-spacing:-0.01em; margin-bottom:8px; color:var(--paper);}
  .rf-success-eta{font-size:14.5px; color:var(--paper); margin-bottom:16px;}
  .rf-success-eta strong{color:var(--accent-text);}
  .rf-success-copy{font-size:13.5px; color:var(--paper-dim); line-height:1.65; max-width:520px; margin:0 auto 12px; text-align:left;}
  .rf-success-copy:last-child{margin-bottom:0;}
  .rf-success-copy a{color:var(--accent-text); text-decoration:underline; text-underline-offset:2px;}

  @media (max-width: 600px){
    .ty-card{padding:28px 20px;}
    .ty-btn-row{flex-direction:column;}
    .ty-btn-row .btn-submit-lg, .ty-btn-row .btn-browse{width:100%;}
  }
