/*
 * Studio Dashboard UI — styles.css
 * =================================
 * Part of the Studio Dashboard UI template by Ricky Januari.
 * Licence: see LICENSE.md (unlimited personal and client projects).
 *
 * HOW TO CUSTOMISE — change the tokens in :root below and the whole
 * template follows. No other file needs to change for a recolour.
 *
 *   --accent / --accent-2 : brand colour (buttons, links, chart line)
 *   --bg / --bg-2         : page and hero background
 *   --surface ...         : card backgrounds (lightest -> darkest)
 *   --text / --muted      : main text and secondary text
 *   --radius              : corner roundness of cards
 *   --font-sans / --font-mono : font families (loaded in index.html)
 *
 * All demo numbers on the page are SAMPLE DATA for illustration only.
 * Replace them in script.js (DASH, PLANS) and in index.html with real data.
 */
:root{
    --bg:#0a0a0b; --bg-2:#0f0f10;
    --surface:#141415; --surface-2:#1a1a1b; --surface-3:#222223;
    --line:#262627; --line-2:#343435;
    --text:#f6f3ed; --muted:#a6a199; --faint:#6f6a63;
    --accent:#ff5c0a; --accent-2:#ff7a2e; --accent-soft:#2a180d;
    --green:#2fbf8f; --green-soft:#0f2a20;
    --amber:#e8a33d; --amber-soft:#2e2208;
    --blue:#5b8cff; --blue-soft:#162544;
    --violet:#b79cff; --violet-soft:#241a3d;
    --shadow:0 1px 2px rgba(0,0,0,.45),0 10px 28px rgba(0,0,0,.35);
    --shadow-lg:0 18px 44px rgba(0,0,0,.55);
    --radius:18px;
  }
  *{box-sizing:border-box}
  html,body{margin:0;padding:0;scroll-behavior:smooth}
  @media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} *{animation:none !important;transition:none !important} }
  body{font-family:"Manrope",system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
  button{font:inherit;cursor:pointer;color:inherit}
  a{color:inherit}
  .mono{font-family:"JetBrains Mono",ui-monospace,monospace}
  .wrap{max-width:1220px;margin:0 auto;padding:0 24px}
  @media (max-width:640px){ .wrap{padding:0 16px} }

  /* ---------- TOP BAR ---------- */
  .topbar{position:sticky;top:0;z-index:50;background:rgba(10,10,11,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
  .topbar-in{display:flex;align-items:center;gap:14px;padding-top:13px;padding-bottom:13px}
  .mark{width:38px;height:38px;border-radius:10px;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px;flex:0 0 38px;box-shadow:0 8px 20px rgba(255,92,10,.35)}
  .brand b{display:block;font-size:14.5px;line-height:1.1;letter-spacing:-.01em}
  .brand span{display:block;font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.09em;text-transform:uppercase;margin-top:2px}
  .topnav{margin-left:auto;display:flex;gap:4px;align-items:center}
  .topnav a{text-decoration:none;font-weight:700;font-size:14px;color:var(--muted);padding:10px 14px;border-radius:999px;min-height:40px;display:inline-flex;align-items:center}
  .topnav a:hover{color:var(--text);background:var(--surface-2)}
  @media (max-width:720px){ .topnav a.sec{display:none} }
  .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;font-weight:800;font-size:14px;min-height:44px;padding:0 20px;text-decoration:none;border:0;transition:transform .15s ease, background .15s ease}
  .btn:active{transform:scale(.98)}
  .btn-accent{background:var(--accent);color:#fff}
  .btn-accent:hover{background:var(--accent-2)}
  .btn-ghost{background:var(--surface-2);color:var(--text);border:1px solid var(--line-2)}
  .btn-ghost:hover{background:var(--surface-3)}
  .btn-dark{background:#fff;color:#111110}
  .btn-sm{min-height:38px;padding:0 16px;font-size:13px}

  /* ---------- HERO ---------- */
  .hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line);
    background:
      radial-gradient(640px 300px at 85% -60px, rgba(255,92,10,.16), transparent 65%),
      radial-gradient(500px 260px at 8% 110%, rgba(91,140,255,.08), transparent 60%),
      var(--bg-2);}
  .hero-in{padding-top:64px;padding-bottom:56px;max-width:820px}
  @media (max-width:640px){ .hero-in{padding-top:44px;padding-bottom:40px} }
  .pill{display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line-2);border-radius:999px;padding:7px 13px;font-size:12.5px;font-weight:700;color:var(--muted)}
  .pill i{width:8px;height:8px;border-radius:50%;background:var(--green);animation:pulse 1.8s infinite}
  @keyframes pulse{0%{box-shadow:0 0 0 0 rgba(47,191,143,.45)}70%{box-shadow:0 0 0 7px rgba(47,191,143,0)}100%{box-shadow:0 0 0 0 rgba(47,191,143,0)}}
  .hero h1{font-size:clamp(34px,5.4vw,58px);line-height:1.04;letter-spacing:-.03em;margin:20px 0 0;font-weight:800}
  .hero h1 em{font-style:normal;color:var(--accent)}
  .hero .lede{font-size:clamp(16px,2vw,19px);line-height:1.55;color:var(--muted);margin:18px 0 0;max-width:56ch}
  .hero .lede b{color:var(--text)}
  .hero-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}
  .hero-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:30px}
  .hero-meta span{font-size:12.5px;font-weight:700;color:var(--muted);border:1px solid var(--line);background:var(--surface);padding:7px 12px;border-radius:999px}
  .hero-meta span b{color:var(--text)}

  /* ---------- SECTIONS ---------- */
  section.block{padding:56px 0 8px}
  .sec-head{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:space-between;margin-bottom:22px}
  .sec-head h2{font-size:clamp(24px,3.4vw,34px);letter-spacing:-.02em;margin:0;font-weight:800}
  .sec-head p{margin:6px 0 0;color:var(--muted);font-size:15px;max-width:60ch;line-height:1.5}
  .sec-count{font-size:12.5px;font-weight:800;color:var(--muted);border:1px solid var(--line-2);border-radius:999px;padding:7px 12px;background:var(--surface)}

  /* ---------- PRODUCT CARDS ---------- */
  .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
  @media (max-width:1020px){ .grid{grid-template-columns:repeat(2,1fr)} }
  @media (max-width:620px){ .grid{grid-template-columns:1fr} }
  .grid-2col{grid-template-columns:repeat(2,1fr)}
  @media (max-width:820px){ .grid-2col{grid-template-columns:1fr} }
  .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
  .demo{height:196px;background:var(--surface-2);border-bottom:1px solid var(--line);position:relative;display:grid;place-items:center;overflow:hidden;padding:16px}
  .demo.tall{height:216px}
  .card-body{padding:18px;display:flex;flex-direction:column;gap:0;flex:1}
  .card-body h3{margin:0;font-size:16.5px;letter-spacing:-.01em;font-weight:800}
  .card-body p{margin:6px 0 0;font-size:13.5px;line-height:1.55;color:var(--muted);flex:1}
  .buy-row{display:flex;align-items:center;gap:10px;margin-top:16px}
  .price{font-size:20px;font-weight:800;letter-spacing:-.02em}
  .price small{display:block;font-size:11px;color:var(--faint);font-weight:700;letter-spacing:.05em;text-transform:uppercase}
  .buy-row .btn{margin-left:auto}
  .live-tag{position:absolute;top:12px;left:12px;z-index:3;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:rgba(10,10,11,.72);color:#fff;border:1px solid rgba(255,255,255,.16);padding:4px 9px;border-radius:999px;display:inline-flex;gap:6px;align-items:center;backdrop-filter:blur(6px)}
  .live-tag i{width:6px;height:6px;border-radius:50%;background:var(--green)}

  /* demo controls */
  .demo-btn{background:var(--surface-3);border:1px solid var(--line-2);color:var(--text);border-radius:999px;padding:8px 14px;font-weight:800;font-size:12.5px;min-height:36px}
  .demo-btn:hover{border-color:var(--accent);color:var(--accent-2)}
  .demo-btn.on{background:var(--accent);border-color:var(--accent);color:#fff}

  /* component demos */
  .eq{display:flex;gap:5px;align-items:flex-end;height:74px}
  .eq i{width:9px;border-radius:5px;background:linear-gradient(180deg,var(--accent-2),var(--accent));animation:eq 0.9s ease-in-out infinite alternate}
  .eq.paused i{animation-play-state:paused}
  @keyframes eq{from{height:14%}to{height:96%}}
  .ring-wrap{display:flex;align-items:center;gap:16px}
  .ring-num{font-size:26px;font-weight:800;letter-spacing:-.02em}
  .ring-num small{display:block;font-size:11.5px;color:var(--muted);font-weight:700}
  .tilt-scene{perspective:700px;width:100%;display:grid;place-items:center}
  .tilt-card{width:210px;border-radius:14px;padding:16px;background:linear-gradient(135deg,#232324,#171718);border:1px solid var(--line-2);transform-style:preserve-3d;transition:transform .18s ease;box-shadow:var(--shadow-lg)}
  .tilt-card b{font-size:14px;display:block}
  .tilt-card span{font-size:12px;color:var(--muted)}
  .tilt-card .chiprow{display:flex;gap:6px;margin-top:12px}
  .tilt-card .chiprow i{height:8px;border-radius:99px;background:var(--surface-3);flex:1}
  .tilt-card .chiprow i:first-child{background:var(--accent);flex:0 0 34%}
  .mini-preview{width:230px;border-radius:12px;border:1px solid var(--line-2);padding:14px;transition:.25s ease}
  .mini-preview.light{background:#f4f2ec;color:#171512;border-color:#ddd8cb}
  .mini-preview.dark{background:#171718;color:var(--text)}
  .mini-preview b{font-size:13.5px;display:block}
  .mini-preview span{font-size:12px;opacity:.65}
  .mini-preview .ln{height:8px;border-radius:99px;margin-top:10px;background:currentColor;opacity:.14}
  .switch{width:62px;height:34px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface-3);position:relative;flex:0 0 62px}
  .switch::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:var(--amber);transition:.25s ease}
  .switch.on::after{left:31px;background:var(--blue)}
  .glass-side{width:230px;height:150px;border-radius:14px;background:linear-gradient(120deg,rgba(255,92,10,.35),rgba(91,140,255,.22) 55%,rgba(47,191,143,.2));position:relative;overflow:hidden}
  .glass-panel{position:absolute;top:0;left:0;bottom:0;width:158px;background:rgba(16,16,17,.55);backdrop-filter:blur(10px);border-right:1px solid rgba(255,255,255,.14);padding:12px;transition:width .3s ease;display:flex;flex-direction:column;gap:8px}
  .glass-panel.closed{width:52px}
  .glass-panel .gi{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;color:#fff;white-space:nowrap}
  .glass-panel .gi i{width:22px;height:22px;border-radius:7px;background:rgba(255,255,255,.16);flex:0 0 22px;display:grid;place-items:center;font-style:normal;font-size:11px}
  .glass-panel.closed .gi span{display:none}
  .glass-toggle{position:absolute;right:10px;bottom:10px;z-index:2}

  /* template mini previews */
  .week{display:flex;gap:6px;width:100%;max-width:300px}
  .week button{flex:1;background:var(--surface);border:1px solid var(--line-2);border-radius:11px;padding:9px 2px;color:var(--muted);font-weight:800;font-size:11px;min-height:52px}
  .week button b{display:block;font-size:15px;color:var(--text);margin-top:2px}
  .week button.sel{background:var(--accent);border-color:var(--accent);color:#ffe9db}
  .week button.sel b{color:#fff}
  .orders{width:100%;max-width:320px;display:flex;flex-direction:column;gap:8px}
  .order{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:9px 12px;font-size:12.5px}
  .order b{font-size:12.5px}
  .order span{color:var(--muted)}
  .pill-status{margin-left:auto;border:0;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:800;min-height:28px}
  .pill-status.pend{background:var(--amber-soft);color:var(--amber)}
  .pill-status.ship{background:var(--green-soft);color:var(--green)}
  .pulse-num{font-size:30px;font-weight:800;letter-spacing:-.02em}
  .pulse-num small{font-size:12px;color:var(--muted);font-weight:700}

  /* ---------- FEATURED ---------- */
  .featured{display:grid;grid-template-columns:1.55fr .85fr;gap:14px;align-items:stretch}
  @media (max-width:1020px){ .featured{grid-template-columns:1fr} }
  .browser{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-lg);display:flex;flex-direction:column}
  .browser-bar{display:flex;align-items:center;gap:8px;padding:11px 14px;border-bottom:1px solid var(--line);background:var(--surface-2)}
  .browser-bar i{width:11px;height:11px;border-radius:50%}
  .url{margin-left:8px;flex:1;background:var(--surface-3);border-radius:8px;font-size:12px;color:var(--muted);padding:6px 12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dash{display:grid;grid-template-columns:52px 1fr;min-height:340px}
  .dash-side{border-right:1px solid var(--line);background:var(--surface-2);padding:12px 0;display:flex;flex-direction:column;align-items:center;gap:6px}
  .dash-side button{width:38px;height:38px;border-radius:11px;border:0;background:transparent;display:grid;place-items:center}
  .dash-side button svg{width:18px;height:18px;stroke:var(--faint)}
  .dash-side button.active{background:var(--accent)}
  .dash-side button.active svg{stroke:#fff}
  .dash-main{padding:16px;min-width:0}
  .dash-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
  .dash-top b{font-size:14.5px;letter-spacing:-.01em}
  .seg{display:inline-flex;background:var(--surface-3);border-radius:999px;padding:3px;gap:2px}
  .seg button{border:0;background:transparent;padding:6px 12px;border-radius:999px;font-weight:800;font-size:12px;color:var(--muted);min-height:30px}
  .seg button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.4)}
  .dash-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
  @media (max-width:520px){ .dash-stats{grid-template-columns:1fr 1fr 1fr;gap:6px} }
  .dstat{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:11px 12px}
  .dstat span{font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--faint);display:block}
  .dstat b{font-size:17px;letter-spacing:-.01em;display:block;margin-top:3px}
  .dstat small{font-size:11px;color:var(--green);font-weight:800}
  .dash-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;margin-top:10px}
  @media (max-width:620px){ .dash-grid{grid-template-columns:1fr} }
  .dcard{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:13px}
  .dcard h5{margin:0 0 9px;font-size:12.5px;font-weight:800}
  .dtask{display:flex;gap:9px;align-items:flex-start;padding:6px 0;font-size:12.5px}
  .dtask input{width:17px;height:17px;accent-color:var(--accent);margin-top:1px;flex:0 0 17px;cursor:pointer}
  .dtask.done span{text-decoration:line-through;color:var(--faint)}
  .dbar{margin-top:9px}
  .dbar label{display:flex;justify-content:space-between;font-size:11.5px;font-weight:700;color:var(--muted);margin-bottom:5px}
  .track{height:7px;background:var(--surface-3);border-radius:99px;overflow:hidden}
  .track i{display:block;height:100%;background:var(--accent);border-radius:99px;transition:width .7s ease}
  .feat-info{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);display:flex;flex-direction:column}
  .feat-info .badge{align-self:flex-start;background:var(--accent);color:#fff;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;padding:5px 11px;border-radius:999px}
  .feat-info h3{font-size:24px;letter-spacing:-.02em;margin:14px 0 0}
  .feat-info>p{color:var(--muted);font-size:14.5px;line-height:1.6;margin:10px 0 0}
  .feat-list{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
  .feat-list li{display:flex;gap:10px;font-size:14px;align-items:flex-start}
  .feat-list li::before{content:"✓";color:var(--green);font-weight:800;flex:0 0 auto}
  .feat-buy{margin-top:auto;padding-top:22px}
  .feat-price{display:flex;align-items:baseline;gap:10px}
  .feat-price .amount{font-size:34px;font-weight:800;letter-spacing:-.03em}
  .feat-price .was{color:var(--faint);text-decoration:line-through;font-weight:700}
  .feat-price .once{font-size:12px;font-weight:800;color:var(--green);background:var(--green-soft);padding:4px 9px;border-radius:999px}
  .feat-buy .btn{width:100%;margin-top:14px;min-height:48px;font-size:15px}
  .feat-note{font-size:12.5px;color:var(--faint);text-align:center;margin-top:10px}

  /* ---------- STRIP + FOOTER ---------- */
  .strip{margin:56px 0 0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden}
  @media (max-width:900px){ .strip{grid-template-columns:1fr 1fr} }
  @media (max-width:480px){ .strip{grid-template-columns:1fr} }
  .strip div{padding:20px;border-right:1px solid var(--line)}
  .strip div:last-child{border-right:0}
  .strip b{display:block;font-size:14.5px;margin-bottom:4px}
  .strip span{font-size:13px;color:var(--muted);line-height:1.5;display:block}
  footer{margin-top:56px;border-top:1px solid var(--line);padding:26px 0 110px}
  @media (min-width:901px){ footer{padding-bottom:34px} }
  .foot-in{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;color:var(--faint);font-size:13px}
  .foot-in a{color:var(--muted);font-weight:700;text-decoration:none}
  .foot-in a:hover{color:var(--accent-2)}
  .toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(16px);background:#fff;color:#111110;padding:11px 18px;border-radius:999px;font-size:13.5px;font-weight:800;opacity:0;pointer-events:none;transition:.25s ease;z-index:80;box-shadow:var(--shadow-lg);max-width:92vw;text-align:center}
  .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
