/* ==========================================================================
   Computer Dokan — public storefront (cd-home.css)

   STANDALONE stylesheet for the pre-login landing SPA (route "/").
   Ported verbatim from the client mockup "computer dokan.html" (lines 10-951)
   so the public site's design is byte-for-byte the approved mockup.

   This file is deliberately SELF-CONTAINED and is NOT loaded together with
   computerdokan.css (the portal/admin design system). The two share generic
   selector names (.btn, .brand, .brand-mark, .org, .toast, #toast,
   .status-chip) with different meanings, so mixing them would corrupt both.
   The storefront layout (layouts/storefront.blade.php) loads ONLY this file;
   the logged-in portal + admin load ONLY computerdokan.css.
   ========================================================================== */
  :root{
    --navy-900:#0D1626;
    --navy-800:#141F38;
    --navy-700:#1C2A4A;
    --navy-600:#2A3B60;
    --ink:#1C2436;
    --muted:#6B7488;
    --line:#E4E7EE;
    --paper:#F5F6F9;
    --card:#FFFFFF;
    --gold:#C8932A;
    --gold-dark:#A9761E;
    --gold-soft:#F4E3C2;
    --peach:#FBEEDD;
    --peach-2:#F5DDB6;
    --teal:#0F7B72;
    --teal-soft:#DCEFEC;
    --red:#C3392D;
    --red-soft:#F7DEDB;
  }

  /* ---------- Dark theme (flips on header toggle, remaps the tokens) ----------
     The whole storefront is driven by the variables above, so overriding them
     under body[data-theme="dark"] recolours every section at once. Brand golds
     stay as accents; surfaces/text invert to a deep navy palette. */
  body[data-theme="dark"]{
    --navy-900:#F5F6F9;
    --navy-800:#E7EAF2;
    --navy-700:#CBD3E4;
    --navy-600:#9FAAC6;
    --ink:#E7EAF2;
    --muted:#9AA3B8;
    --line:#26304A;
    --paper:#141C2E;
    --card:#1A2338;
    --peach:#1E2740;
    --peach-2:#26304A;
    --gold-soft:#3A2F1A;
    --teal-soft:#123A36;
    --red-soft:#3A1E1B;
  }
  body[data-theme="dark"]{
    background:#0D1424;
    color:var(--ink);
  }
  body[data-theme="dark"] .site-header,
  body[data-theme="dark"] .modal-box,
  body[data-theme="dark"] .cart-dropdown{background:var(--card);}
  body[data-theme="dark"] img{opacity:.94;}
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  html,body{margin:0;padding:0;}
  body{
    font-family:'Hind Siliguri','Inter',sans-serif;
    background:var(--paper);
    color:var(--ink);
    line-height:1.5;
  }
  .num{font-family:'Inter','Hind Siliguri',sans-serif;font-variant-numeric:tabular-nums;}
  img{max-width:100%;display:block;}
  a{color:inherit;text-decoration:none;}
  ul{margin:0;padding:0;list-style:none;}
  section{padding:76px 0;}
  .wrap{max-width:1180px;margin:0 auto;padding:0 28px;}
  h1,h2,h3,h4{margin:0;font-weight:700;}
  .eyebrow{font-size:13px;font-weight:600;color:var(--gold-dark);margin:0 0 10px 0;}
  .section-head{max-width:640px;margin:0 auto 40px auto;text-align:center;}
  .section-head.left{text-align:left;margin:0 0 40px 0;}
  .section-head h2{font-size:28px;line-height:1.28;color:var(--navy-900);}
  .section-head p{margin:12px 0 0 0;color:var(--muted);font-size:15px;}
  .section-top-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:30px;flex-wrap:wrap;}
  .section-top-row h2{font-size:26px;color:var(--navy-900);}
  .view-all{font-size:13.5px;font-weight:600;color:var(--gold-dark);white-space:nowrap;display:flex;align-items:center;gap:5px;}
  .view-all:hover{text-decoration:underline;}
  .btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    padding:12px 22px;border-radius:6px;font-size:14.5px;font-weight:600;
    cursor:pointer;border:1px solid transparent;transition:transform .12s ease, background .15s ease, border-color .15s ease;
    font-family:inherit;
  }
  .btn:active{transform:translateY(1px);}
  .btn-gold{background:var(--gold);color:#fff;}
  .btn-gold:hover{background:var(--gold-dark);}
  .btn-outline{background:transparent;border-color:rgba(255,255,255,0.35);color:#fff;}
  .btn-outline:hover{border-color:#fff;background:rgba(255,255,255,0.08);}
  .btn-navy{background:var(--navy-900);color:#fff;}
  .btn-navy:hover{background:var(--navy-700);}
  .btn-line{background:transparent;border-color:var(--line);color:var(--navy-900);}
  .btn-line:hover{border-color:var(--navy-600);}
  .btn-white{background:#fff;color:var(--navy-900);}
  .btn-white:hover{background:var(--gold-soft);}
  .btn-sm{padding:8px 14px;font-size:13.5px;}
  .btn-block{width:100%;}
  .status-chip{font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:20px;}
  .status-chip.processing{background:var(--gold-soft);color:var(--gold-dark);}
  .status-chip.done{background:var(--teal-soft);color:var(--teal);}
  .status-chip.rejected{background:var(--red-soft);color:var(--red);}

  /* ---------- Topbar ---------- */
  .topbar{background:var(--navy-900);color:#AEB6C9;font-size:12.5px;}
  .topbar .wrap{display:flex;align-items:center;justify-content:space-between;padding:7px 28px;flex-wrap:wrap;gap:6px;}
  .topbar .left{display:flex;gap:20px;align-items:center;flex-wrap:wrap;}
  .topbar .left span{display:flex;align-items:center;gap:6px;}
  .topbar .right{display:flex;gap:16px;align-items:center;}
  .topbar .right a:hover{color:#fff;}

  /* ---------- Header (kept from previous design) ---------- */
  header.site{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line);}
  .site .wrap{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;gap:12px;max-width:1360px;}
  .brand{display:flex;align-items:center;gap:10px;}
  .brand-logo{height:38px;width:auto;max-width:190px;flex:none;object-fit:contain;display:block;}
  /* logo already contains the wordmark, so hide the duplicate text beside it */
  .brand .brand-logo ~ .brand-text{display:none;}
  .footer-brand .brand-logo{height:34px;max-width:180px;}
  .footer-brand .brand .brand-logo ~ .brand-text{display:none;}
  .brand-mark{
    width:38px;height:38px;border-radius:8px;flex:none;
    background:linear-gradient(155deg,var(--gold) 0%, var(--gold-dark) 100%);
    display:flex;align-items:center;justify-content:center;
    font-weight:800;color:var(--navy-900);font-size:16px;font-family:'Inter',sans-serif;
  }
  .brand-text .name{font-weight:700;font-size:15.5px;color:var(--navy-900);line-height:1.1;}
  .brand-text .role{font-size:11.5px;color:var(--muted);margin-top:1px;letter-spacing:.01em;}
  nav.main-nav{display:flex;align-items:center;gap:1px;flex:1;justify-content:flex-start;white-space:nowrap;}
  nav.main-nav a, nav.main-nav .nav-item > a{padding:9px 9px;border-radius:6px;font-size:13.2px;font-weight:500;color:var(--ink);white-space:nowrap;}
  nav.main-nav a:hover{background:var(--paper);color:var(--navy-900);}
  .header-actions{display:flex;align-items:center;gap:10px;flex:none;}
  .header-actions .btn-sm{padding:8px 12px;font-size:13.5px;}
  .header-carts{display:flex;align-items:center;gap:5px;}
  .cart-widget{position:relative;}
  .cart-icon-btn{position:relative;background:none;border:1px solid var(--line);border-radius:8px;width:38px;height:38px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--navy-800);}
  .cart-icon-btn:hover{background:var(--paper);border-color:var(--navy-600);}
  .cart-badge{position:absolute;top:-6px;right:-6px;background:var(--gold);color:#fff;font-size:10px;font-weight:700;min-width:17px;height:17px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 3px;}
  .cart-dropdown{
    display:none;position:absolute;top:calc(100% + 8px);right:0;background:#fff;border:1px solid var(--line);border-radius:10px;
    box-shadow:0 20px 40px -16px rgba(13,22,38,0.3);width:280px;z-index:80;overflow:hidden;
  }
  .cart-dropdown.show{display:block;}
  .cart-dd-head{padding:12px 16px;font-size:13px;font-weight:700;color:var(--navy-900);border-bottom:1px solid var(--line);background:var(--paper);}
  .cart-dd-list{max-height:280px;overflow-y:auto;padding:6px;}
  .cart-dd-empty{padding:24px 16px;text-align:center;font-size:12.5px;color:var(--muted);}
  .cart-dd-item{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:8px;}
  .cart-dd-item:hover{background:var(--paper);}
  .cart-dd-item .dd-thumb{width:32px;height:32px;border-radius:6px;background:var(--paper);color:var(--navy-800);display:flex;align-items:center;justify-content:center;flex:none;}
  .cart-dd-item .dd-info{flex:1;min-width:0;}
  .cart-dd-item .dd-name{font-size:12.5px;font-weight:600;color:var(--navy-900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .cart-dd-item .dd-price{font-size:11px;color:var(--muted);margin-top:1px;}
  .cart-dd-item .dd-remove{color:var(--red);font-size:11px;cursor:pointer;flex:none;padding:2px 4px;}
  .cart-dd-foot{padding:10px 12px;border-top:1px solid var(--line);}
  .menu-toggle{display:none;flex:none;background:none;border:1px solid var(--line);border-radius:6px;width:38px;height:38px;align-items:center;justify-content:center;cursor:pointer;}

  /* ---------- Hero v2 (AllApply-style light hero) ---------- */
  .hero{background:var(--peach);position:relative;overflow:hidden;padding:60px 0 130px 0;}
  .hero::before{
    content:'';position:absolute;top:-120px;right:-120px;width:480px;height:480px;border-radius:50%;
    background:radial-gradient(circle at 35% 35%, var(--peach-2), transparent 70%);
  }
  .hero .wrap{position:relative;display:grid;grid-template-columns:1.05fr 0.95fr;gap:40px;align-items:center;}
  .hero-badge{
    display:inline-flex;align-items:center;gap:8px;background:#fff;border-radius:30px;padding:7px 16px 7px 10px;
    font-size:12.5px;font-weight:600;color:var(--navy-800);box-shadow:0 6px 16px -8px rgba(13,22,38,0.18);margin-bottom:20px;
  }
  .hero-badge .dot{width:7px;height:7px;border-radius:50%;background:var(--gold);flex:none;}
  .hero-copy h1{font-size:42px;line-height:1.24;color:var(--navy-900);max-width:15ch;}
  .hero-copy h1 .accent{color:var(--gold-dark);}
  .hero-copy p.lead{font-size:15.5px;color:var(--muted);margin:18px 0 30px 0;max-width:46ch;}
  .hero-cta{display:flex;gap:12px;flex-wrap:wrap;}
  .hero-dots{display:flex;gap:6px;margin-top:32px;}
  .hero-dots span{width:9px;height:9px;border-radius:50%;background:#DCC9A6;cursor:pointer;transition:all .2s ease;}
  .hero-dots span.active{background:var(--gold);width:24px;border-radius:5px;}
  .hero-visual{position:relative;display:flex;align-items:center;justify-content:center;height:380px;}
  .hero-blob{
    width:340px;height:340px;border-radius:50%;background:radial-gradient(circle at 32% 28%, #FFFCF7, var(--peach-2) 72%);
    display:flex;align-items:center;justify-content:center;position:relative;
  }
  .hero-scene{position:absolute;inset:0;transition:opacity .6s ease;opacity:0;display:flex;align-items:center;justify-content:center;}
  .hero-scene.active{opacity:1;}
  .hero-caption{
    position:absolute;bottom:14px;left:50%;transform:translateX(-50%);background:#fff;border-radius:20px;
    padding:6px 16px;font-size:12px;font-weight:600;color:var(--navy-800);box-shadow:0 10px 20px -10px rgba(13,22,38,0.25);white-space:nowrap;
  }

  /* ---------- Search card (floating over hero) ---------- */
  .search-card-wrap{max-width:1180px;margin:-84px auto 0 auto;padding:0 28px;position:relative;z-index:5;}
  .search-card{background:#fff;border-radius:12px;box-shadow:0 30px 60px -24px rgba(13,22,38,0.28);overflow:hidden;}
  .search-widget-tabs{display:flex;gap:2px;background:var(--paper);padding:0 10px;}
  .sw-tab{padding:14px 20px;font-size:13.5px;font-weight:700;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent;white-space:nowrap;}
  .sw-tab.active{color:var(--navy-900);border-bottom-color:var(--gold);background:#fff;}
  .search-grid{display:grid;grid-template-columns:repeat(4,1fr) auto;gap:14px;align-items:end;padding:22px 26px 24px 26px;}
  #sw-panel-training.search-grid{grid-template-columns:1fr 1fr 1fr auto;}
  #sw-panel-products.search-grid{grid-template-columns:1fr 1fr auto;}
  .search-field label{display:block;font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.03em;margin-bottom:6px;}
  .search-field select, .search-field input{
    width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:7px;font-family:inherit;font-size:13.5px;color:var(--ink);background:var(--paper);
  }

  /* ---------- Stats ---------- */
  .stats-section{padding-top:52px;}
  .stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
  .stat-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px 18px;text-align:center;}
  .stat-card .ic{
    width:44px;height:44px;border-radius:50%;background:var(--gold);color:#fff;margin:0 auto 14px auto;
    display:flex;align-items:center;justify-content:center;
  }
  .stat-card .n{font-size:22px;font-weight:800;color:var(--navy-900);}
  .stat-card .l{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4;}

  /* ---------- Services grid (AllApply "Our All Services") ---------- */
  .svc-tabs{display:flex;gap:8px;justify-content:center;margin-bottom:32px;border-bottom:1px solid var(--line);}
  .svc-tab{padding:11px 4px;margin:0 16px;font-size:14.5px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;}
  .svc-tab.active{color:var(--navy-900);border-bottom-color:var(--gold);}
  .svc-panel{display:none;}
  .svc-panel.active{display:block;}
  .svc-placeholder{border:1px dashed var(--line);border-radius:10px;padding:50px 24px;text-align:center;color:var(--muted);background:#fff;}
  .svc-placeholder .ic{width:44px;height:44px;border-radius:10px;background:var(--gold-soft);color:var(--gold-dark);
    display:flex;align-items:center;justify-content:center;margin:0 auto 14px auto;}
  .svc-placeholder h4{color:var(--navy-900);font-size:15px;margin-bottom:6px;}
  .svc-placeholder p{font-size:13.5px;margin:0;}
  .svc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px;}
  .svc-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px 20px;transition:box-shadow .15s ease,transform .15s ease;}
  .svc-card:hover{box-shadow:0 16px 30px -18px rgba(13,22,38,0.22);transform:translateY(-2px);}
  .svc-card .top-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px;}
  .svc-card .ic{width:38px;height:38px;border-radius:8px;background:var(--gold-soft);color:var(--gold-dark);display:flex;align-items:center;justify-content:center;flex:none;}
  .svc-card .badge{font-size:10.5px;font-weight:600;padding:3px 8px;border-radius:20px;background:var(--paper);color:var(--muted);}
  .svc-card h4{font-size:14.5px;color:var(--gold-dark);margin-bottom:8px;}
  .svc-card p{font-size:12.5px;color:var(--muted);margin:0 0 14px 0;line-height:1.55;min-height:52px;}
  .svc-card .meta-row{display:flex;justify-content:space-between;align-items:center;font-size:11.5px;color:var(--muted);padding-top:12px;border-top:1px solid var(--line);}
  .svc-card .meta-row .fee{font-weight:700;color:var(--navy-900);}
  .svc-card .explore{color:var(--gold-dark);font-weight:600;font-size:12.5px;display:flex;align-items:center;gap:4px;margin-top:12px;}

  /* ---------- Org carousel ---------- */
  .org-carousel-section{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
  .carousel-row{display:flex;align-items:center;gap:14px;}
  .carousel-arrow{
    flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;
    display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--navy-800);transition:background .15s ease,border-color .15s ease;
  }
  .carousel-arrow:hover{background:var(--paper);border-color:var(--navy-600);}
  .org-track-wrap{flex:1;overflow:hidden;}
  .org-track{display:flex;gap:16px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;padding:4px 2px;}
  .org-track::-webkit-scrollbar{display:none;}
  .org-card{
    flex:none;width:220px;border:1px solid var(--line);border-radius:9px;padding:20px 18px;
    display:flex;align-items:flex-start;gap:12px;background:var(--card);transition:box-shadow .15s ease,border-color .15s ease;
  }
  .org-card:hover{box-shadow:0 14px 26px -16px rgba(13,22,38,0.22);border-color:var(--navy-600);}
  .org-card .org-logo{
    width:44px;height:44px;border-radius:8px;background:var(--navy-900);color:var(--gold);
    display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;font-family:'Inter',sans-serif;flex:none;
  }
  .org-card .org-full{font-weight:700;font-size:14.5px;color:var(--navy-900);line-height:1.35;}
  .org-card .org-sub{font-size:11.5px;color:var(--muted);margin-top:3px;}

  /* ---------- Get-started 3-card (Professional Services style) ---------- */
  .get-started-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
  .get-started-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px;}
  .get-started-card .ic{
    width:52px;height:52px;border-radius:50%;background:var(--gold-soft);color:var(--gold-dark);
    display:flex;align-items:center;justify-content:center;margin-bottom:18px;
  }
  .get-started-card h4{font-size:16.5px;color:var(--navy-900);margin-bottom:8px;}
  .get-started-card p{font-size:13.5px;color:var(--muted);margin:0 0 18px 0;line-height:1.6;}
  .get-started-card a{font-size:13.5px;font-weight:700;color:var(--gold-dark);display:inline-flex;align-items:center;gap:5px;}
  .get-started-card a:hover{text-decoration:underline;}

  /* ---------- Popular-style carousel cards (services / resources) ---------- */
  .pop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
  .pop-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;}
  .pop-cover{height:130px;display:flex;align-items:center;justify-content:center;position:relative;flex:none;}
  .pop-cover .tag{position:absolute;top:10px;left:10px;font-size:10.5px;font-weight:700;background:#fff;color:var(--gold-dark);padding:4px 10px;border-radius:20px;}
  .pop-body{padding:18px 20px;display:flex;flex-direction:column;flex:1;}
  .pop-org-row{display:flex;align-items:center;gap:9px;margin-bottom:12px;}
  .pop-avatar{width:28px;height:28px;border-radius:50%;background:var(--navy-800);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none;}
  .pop-org-row .org-name{font-size:12.5px;font-weight:600;color:var(--navy-900);}
  .pop-org-row .org-meta{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:4px;}
  .pop-body h4{font-size:15px;color:var(--navy-900);margin-bottom:6px;}
  .pop-body p{font-size:12.5px;color:var(--muted);margin:0 0 12px 0;line-height:1.55;flex:1;}
  .pop-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px;}
  .pop-tags span{font-size:10.5px;background:var(--paper);color:var(--navy-700);padding:4px 9px;border-radius:20px;}
  .pop-foot{display:flex;justify-content:space-between;align-items:center;padding-top:14px;border-top:1px solid var(--line);}
  .pop-foot .price{font-weight:700;color:var(--navy-900);font-size:14.5px;}
  .pop-foot .price .unit{font-size:11px;color:var(--muted);font-weight:500;}
  .pop-grid.list-mode{display:flex;flex-direction:column;gap:14px;}
  .pop-grid.list-mode .pop-card{flex-direction:row;}
  .pop-grid.list-mode .pop-cover{width:170px;height:auto;flex:none;}
  .pop-grid.list-mode .pop-body{flex:1;}

  /* ---------- Agent list ---------- */
  .agent-panel{background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden;}
  .agent-search{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;gap:10px;flex-wrap:wrap;background:var(--paper);}
  .agent-search input,.agent-search select{padding:10px 12px;border:1px solid var(--line);border-radius:6px;font-family:inherit;font-size:13.5px;background:#fff;color:var(--ink);}
  .agent-search input{flex:1;min-width:180px;}
  table.agent-table{width:100%;border-collapse:collapse;}
  table.agent-table th{text-align:left;font-size:12px;color:var(--muted);font-weight:600;padding:12px 22px;border-bottom:1px solid var(--line);}
  table.agent-table td{padding:14px 22px;font-size:13.5px;border-bottom:1px solid var(--line);}
  table.agent-table tr:last-child td{border-bottom:none;}
  .agent-name{display:flex;align-items:center;gap:10px;}
  .agent-avatar{width:32px;height:32px;border-radius:50%;background:var(--navy-700);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;flex:none;}
  .verified-badge{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--teal);font-weight:600;}
  .agent-foot{padding:16px 22px;background:var(--paper);text-align:center;}

  /* ---------- How it works (boxed steps with connector) ---------- */
  .steps-box-wrap{background:var(--peach);border-radius:16px;padding:44px 36px;}
  .steps-box{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;position:relative;}
  .step-box{background:#fff;border-radius:10px;padding:26px 18px;text-align:center;position:relative;}
  .step-box .idx{
    width:38px;height:38px;border-radius:50%;background:var(--gold);color:#fff;font-weight:800;font-size:15px;
    display:flex;align-items:center;justify-content:center;margin:0 auto 14px auto;position:relative;z-index:2;
  }
  .step-box.last .idx{background:var(--teal);}
  .step-box::before{
    content:'';position:absolute;top:39px;right:-8px;width:16px;height:2px;background:var(--line);z-index:1;
  }
  .step-box:last-child::before{display:none;}
  .step-box .ic{margin:0 auto 12px auto;color:var(--navy-700);}
  .step-box h4{font-size:14.5px;color:var(--navy-900);margin-bottom:8px;}
  .step-box p{font-size:12.5px;color:var(--muted);margin:0;line-height:1.55;}

  /* ---------- Status checkers ---------- */
  .checker-section{background:var(--navy-900);color:#fff;}
  .checker-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;}
  .checker-card{background:var(--navy-800);border:1px solid rgba(255,255,255,0.08);border-radius:10px;padding:26px;}
  .checker-card h3{color:#fff;font-size:16.5px;margin-bottom:6px;}
  .checker-card p{color:#8C97B2;font-size:13px;margin:0 0 18px 0;}
  .checker-form{display:flex;gap:10px;flex-wrap:wrap;}
  .checker-form input{flex:1;min-width:160px;background:var(--navy-900);border:1px solid rgba(255,255,255,0.14);border-radius:6px;padding:11px 13px;color:#fff;font-family:inherit;font-size:14px;}
  .checker-form input::placeholder{color:#5C6684;}
  .checker-result{margin-top:16px;padding:14px 16px;border-radius:7px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);display:none;}
  .checker-result.show{display:block;}
  .checker-result .row{display:flex;justify-content:space-between;align-items:center;font-size:13.5px;padding:6px 0;}
  .checker-result .row .k{color:#8C97B2;}
  .checker-result .row .v{font-weight:600;}

  /* ---------- Why choose (tabbed) ---------- */
  .why-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:34px;}
  .why-tab{padding:10px 16px;border-radius:20px;font-size:13px;font-weight:600;border:1px solid var(--line);color:var(--navy-700);cursor:pointer;}
  .why-tab.active{background:var(--gold);border-color:var(--gold);color:#fff;}
  .why-content{display:grid;grid-template-columns:0.85fr 1.15fr;gap:44px;align-items:center;}
  .why-visual{
    aspect-ratio:1/0.78;border-radius:14px;background:var(--gold-soft);
    display:flex;align-items:center;justify-content:center;color:var(--gold-dark);
  }
  .why-text h3{font-size:24px;color:var(--navy-900);line-height:1.35;margin-bottom:14px;}
  .why-text p{font-size:14.5px;color:var(--muted);margin:0 0 22px 0;line-height:1.7;}

  /* ---------- Quote strip ---------- */
  .quote-strip{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
  .quote-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:40px;align-items:center;}
  .quote-grid blockquote{margin:0;font-size:19px;line-height:1.55;color:var(--navy-900);font-weight:500;}
  .quote-grid cite{display:block;margin-top:16px;font-style:normal;font-size:13.5px;color:var(--muted);}
  .quote-stats{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
  .quote-stats .n{font-size:26px;font-weight:800;color:var(--navy-900);}
  .quote-stats .l{font-size:12.5px;color:var(--muted);margin-top:4px;}

  /* ---------- About ---------- */
  .about-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start;}
  .about-copy p{color:var(--muted);font-size:14.5px;margin:0 0 14px 0;}
  .about-points{margin-top:18px;}
  .about-points li{display:flex;gap:10px;padding:8px 0;font-size:14px;color:var(--ink);}
  .about-points li .ic{color:var(--teal);flex:none;}
  .disclaimer-box{background:var(--paper);border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:6px;padding:18px 20px;}
  .disclaimer-box h4{font-size:13.5px;color:var(--navy-900);margin-bottom:6px;}
  .disclaimer-box p{font-size:12.5px;color:var(--muted);margin:0;line-height:1.6;}

  /* ---------- Dual CTA cards ---------- */
  .dual-cta{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
  .dual-card{border-radius:14px;padding:32px;}
  .dual-card.light{background:#fff;border:1px solid var(--line);}
  .dual-card.gold{background:linear-gradient(120deg,var(--gold) 0%, var(--gold-dark) 100%);color:#fff;}
  .dual-card h3{font-size:22px;margin-bottom:8px;}
  .dual-card.light h3{color:var(--navy-900);}
  .dual-card p{font-size:13.5px;margin:0 0 22px 0;}
  .dual-card.light p{color:var(--muted);}
  .dual-card.gold p{color:rgba(255,255,255,0.9);}

  /* ---------- Big CTA banner ---------- */
  .cta-banner{background:linear-gradient(120deg,var(--gold) 0%, var(--gold-dark) 120%);border-radius:18px;padding:52px 44px;position:relative;overflow:hidden;color:#fff;}
  .cta-banner::before{content:'';position:absolute;top:-60px;right:-40px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,0.08);}
  .cta-banner::after{content:'';position:absolute;bottom:-90px;right:120px;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,0.06);}
  .cta-inner{position:relative;display:grid;grid-template-columns:1.2fr 1fr;gap:30px;align-items:center;}
  .cta-inner-badge{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,0.16);border-radius:20px;padding:6px 14px;font-size:12px;font-weight:600;margin-bottom:16px;}
  .cta-inner h2{font-size:28px;color:#fff;max-width:14ch;margin-bottom:12px;}
  .cta-inner p{font-size:14px;color:rgba(255,255,255,0.9);max-width:44ch;margin:0 0 24px 0;}
  .cta-inner .actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px;}
  .cta-avatars{display:flex;align-items:center;gap:10px;font-size:12.5px;color:rgba(255,255,255,0.85);}
  .avatar-stack{display:flex;}
  .avatar-stack span{
    width:28px;height:28px;border-radius:50%;background:var(--navy-800);border:2px solid var(--gold-dark);color:#fff;
    font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-left:-8px;
  }
  .avatar-stack span:first-child{margin-left:0;}
  .cta-decor{position:relative;height:220px;display:none;}
  .float-card{position:absolute;background:rgba(255,255,255,0.14);backdrop-filter:blur(2px);border-radius:10px;padding:12px 16px;font-size:12.5px;font-weight:600;color:#fff;border:1px solid rgba(255,255,255,0.25);}
  .float-card.fc1{top:10px;left:10px;}
  .float-card.fc2{bottom:10px;right:0;background:#fff;color:var(--navy-900);}
  .float-card .approved{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:800;}

  /* ---------- Footer ---------- */
  footer.site-footer{background:var(--navy-900);color:#8C97B2;}
  .footer-top{border-bottom:1px solid rgba(255,255,255,0.08);padding:32px 0;}
  .footer-top-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
  .footer-top-item{display:flex;gap:14px;align-items:flex-start;}
  .footer-top-item .ic{
    width:42px;height:42px;border-radius:50%;background:rgba(200,147,42,0.16);color:var(--gold);flex:none;
    display:flex;align-items:center;justify-content:center;
  }
  .footer-top-item h5{color:#fff;font-size:14px;margin-bottom:4px;}
  .footer-top-item p{font-size:12.5px;color:#8C97B2;margin:0 0 6px 0;line-height:1.55;}
  .footer-top-item a{font-size:12.5px;color:var(--gold);font-weight:600;}
  .footer-main{padding:48px 0 0 0;}
  .footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr 1.2fr;gap:30px;padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,0.08);}
  .footer-brand .brand{margin-bottom:14px;}
  .footer-brand .brand-text .name{color:#fff;}
  .footer-brand p{font-size:12.5px;color:#8C97B2;max-width:32ch;line-height:1.6;}
  .footer-col h5{color:#fff;font-size:13px;margin-bottom:14px;font-weight:600;}
  .footer-col li{margin-bottom:9px;}
  .footer-col a{font-size:12.5px;color:#8C97B2;}
  .footer-col a:hover{color:#fff;}
  .newsletter-input{display:flex;gap:0;margin-bottom:18px;}
  .newsletter-input input{flex:1;padding:10px 12px;border:1px solid rgba(255,255,255,0.14);border-radius:6px 0 0 6px;background:var(--navy-800);color:#fff;font-family:inherit;font-size:12.5px;}
  .newsletter-input input::placeholder{color:#5C6684;}
  .newsletter-input button{border-radius:0 6px 6px 0;padding:10px 14px;}
  .footer-contact{list-style:none;margin:0;padding:0;}
  .footer-contact li{display:flex;gap:8px;align-items:flex-start;margin-bottom:11px;font-size:12.5px;color:#8C97B2;line-height:1.5;}
  .footer-contact li svg{flex:none;margin-top:2px;color:var(--gold,#C8932A);}
  .footer-contact li a{font-size:12.5px;color:#8C97B2;}
  .footer-contact li a:hover{color:#fff;}
  .footer-bottom a{color:#8C97B2;}
  .footer-bottom a:hover{color:#fff;}
  .pay-badges{display:flex;gap:7px;flex-wrap:wrap;}
  .pay-badges span{font-size:10.5px;font-weight:600;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);color:#C7CEDE;padding:5px 9px;border-radius:5px;}
  .social-row{display:flex;gap:10px;margin-top:16px;}
  .social-row a{width:32px;height:32px;border-radius:6px;background:rgba(255,255,255,0.06);display:flex;align-items:center;justify-content:center;}
  .social-row a:hover{background:rgba(255,255,255,0.12);}
  .footer-bottom{display:flex;justify-content:space-between;align-items:center;padding:20px 0;font-size:12.5px;color:#5C6684;flex-wrap:wrap;gap:10px;}

  /* ---------- Modal (login/signup) ---------- */
  .modal-overlay{position:fixed;inset:0;background:rgba(13,22,38,0.6);display:none;align-items:center;justify-content:center;z-index:200;padding:20px;}
  .modal-overlay.show{display:flex;}
  .modal-box{background:#fff;border-radius:10px;width:100%;max-width:420px;overflow:hidden;max-height:92vh;overflow-y:auto;}
  .modal-box.wide{max-width:600px;}
  .modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line);}
  .modal-head h3{font-size:16px;color:var(--navy-900);}
  .modal-close{background:none;border:none;cursor:pointer;color:var(--muted);width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;}
  .modal-close:hover{background:var(--paper);}
  .modal-tabs{display:flex;border-bottom:1px solid var(--line);}
  .modal-tab{flex:1;text-align:center;padding:13px;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;}
  .modal-tab.active{color:var(--navy-900);border-bottom-color:var(--gold);}
  .modal-body{padding:22px;}
  .field{margin-bottom:14px;}
  .field label{display:block;font-size:12.5px;font-weight:600;color:var(--ink);margin-bottom:6px;}
  .field input,.field select{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:6px;font-family:inherit;font-size:14px;color:var(--ink);}
  .field input:focus,.field select:focus{outline:2px solid var(--gold);outline-offset:0;border-color:var(--gold);}
  .field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
  .form-hint{font-size:12px;color:var(--muted);margin-top:10px;text-align:center;}
  .form-hint a{color:var(--gold-dark);font-weight:600;}
  .form-section-label{font-size:12.5px;font-weight:700;color:var(--gold-dark);text-transform:uppercase;letter-spacing:.03em;margin:22px 0 12px 0;padding-top:16px;border-top:1px solid var(--line);}
  .form-section-label:first-child{margin-top:0;padding-top:0;border-top:none;}
  .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;}
  .form-grid .field{margin-bottom:0;}
  .form-grid .field.full{grid-column:1/-1;}
  .photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
  .photo-box{
    border:1.5px dashed var(--line);border-radius:8px;padding:16px 10px;text-align:center;cursor:pointer;
    display:flex;flex-direction:column;align-items:center;gap:8px;transition:border-color .15s ease,background .15s ease;
  }
  .photo-box:hover{border-color:var(--gold);background:var(--paper);}
  .photo-box.has-file{border-color:var(--teal);border-style:solid;background:var(--teal-soft);}
  .photo-box .ph-preview{color:var(--muted);}
  .photo-box.has-file .ph-preview{color:var(--teal);}
  .photo-box .ph-label{font-size:11.5px;color:var(--muted);line-height:1.4;}
  .photo-box.has-file .ph-label{color:var(--navy-900);font-weight:600;}
  .photo-box input[type="file"]{display:none;}
  .success-state{text-align:center;padding:6px 0 4px 0;}
  .success-state .ic-circle{
    width:60px;height:60px;border-radius:50%;background:var(--teal-soft);color:var(--teal);
    display:flex;align-items:center;justify-content:center;margin:0 auto 18px auto;
  }
  .success-state h3{font-size:17px;color:var(--navy-900);margin-bottom:14px;}
  .success-state p{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 12px 0;text-align:left;}

  #toast{
    position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(120%);
    background:var(--navy-900);color:#fff;padding:12px 20px;border-radius:8px;font-size:13.5px;
    z-index:300;transition:transform .25s ease;box-shadow:0 12px 24px -8px rgba(0,0,0,0.4);
  }
  #toast.show{transform:translateX(-50%) translateY(0);}

  .mobile-nav{display:none;position:fixed;top:0;right:0;bottom:0;width:78%;max-width:300px;background:#fff;z-index:120;
    box-shadow:-14px 0 30px -12px rgba(0,0,0,0.25);transform:translateX(100%);transition:transform .22s ease;
    flex-direction:column;padding:18px;overflow-y:auto;}
  .mobile-nav.show{display:flex;transform:translateX(0);}
  .mobile-nav a{padding:13px 10px;font-size:15px;color:var(--ink);border-bottom:1px solid var(--line);font-weight:500;}
  .mobile-overlay{display:none;position:fixed;inset:0;background:rgba(13,22,38,0.45);z-index:110;}
  .mobile-overlay.show{display:block;}
  /* Desktop (≥1220px) shows the full nav bar — never let the mobile slide-out panel appear there */
  @media(min-width:1220px){
    .mobile-nav, .mobile-overlay{display:none !important;}
  }

  @media(max-width:1020px){
    .hero .wrap{grid-template-columns:1fr;}
    .hero-visual{height:260px;}
    .hero-blob{width:230px;height:230px;}
    .search-grid{grid-template-columns:1fr 1fr;}
    .search-grid button{grid-column:span 2;}
    .stats-grid{grid-template-columns:repeat(3,1fr);}
    .get-started-grid{grid-template-columns:1fr;}
    .pop-grid{grid-template-columns:1fr 1fr;}
    .steps-box{grid-template-columns:1fr 1fr;gap:16px;}
    .step-box::before{display:none;}
    .why-content{grid-template-columns:1fr;}
    .why-visual{aspect-ratio:16/9;}
    .checker-grid{grid-template-columns:1fr;}
    .quote-grid{grid-template-columns:1fr;}
    .about-grid{grid-template-columns:1fr;}
    .dual-cta{grid-template-columns:1fr;}
    .cta-inner{grid-template-columns:1fr;}
    .cta-decor{display:none !important;}
    .footer-top-grid{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr 1fr;}
  }
  /* Single header breakpoint: above it the full nav bar + login/signup show and there is NO
     hamburger; below it ONLY the hamburger shows (nav links + the same buttons live inside the
     slide-out panel). The nav-hide, CTA-button-hide and hamburger-show all flip together at ONE
     width, so a browser-zoom shift can never produce "hamburger + duplicate login/signup" side by
     side — each side of the breakpoint is a clean, complete state. */
  @media(max-width:1219px){
    nav.main-nav{display:none;}
    .menu-toggle{display:flex;}
    .header-actions .btn{display:none;}
  }
  @media(max-width:760px){
    .header-actions .btn{display:none;}
    .header-carts{gap:3px;}
    /* The header row (logo 159px + actions 200px + gaps) was ~18px wider
       than a 375px phone, pushing the hamburger half off-screen and giving
       the page a horizontal scroll. Shrink the logo and tighten the
       actions so the row fits the content box. */
    .brand-logo{height:27px;max-width:120px;}
    .header-actions{gap:6px;}
    .menu-toggle{width:34px;height:34px;}
    .cart-icon-btn{width:34px;height:34px;}
    .cart-dropdown{width:calc(100vw - 32px);max-width:300px;right:-6px;}
    section{padding:52px 0;}
    .hero{padding-bottom:150px;}
    .hero-copy h1{font-size:30px;}
    .search-card-wrap{margin-top:-112px;}
    .search-widget-tabs{overflow-x:auto;}
    .search-grid{grid-template-columns:1fr;}
    .search-grid button{grid-column:auto;}
    .stats-grid{grid-template-columns:repeat(2,1fr);}
    .svc-grid{grid-template-columns:repeat(2,1fr);}
    .pop-grid{grid-template-columns:1fr;}
    .steps-box{grid-template-columns:1fr;}
    .steps-box-wrap{padding:28px 20px;}
    table.agent-table{font-size:12.5px;}
    table.agent-table th:nth-child(3),table.agent-table td:nth-child(3){display:none;}
    .field-row{grid-template-columns:1fr;}
    .form-grid{grid-template-columns:1fr;}
    .photo-grid{grid-template-columns:1fr 1fr;}
    .modal-box.wide{max-width:420px;}
    .topbar .left span:nth-child(2){display:none;}
    .org-card{width:180px;padding:16px 14px;}
    .footer-grid{grid-template-columns:1fr;}
  }
  /* ---------- Multi "page" view system ---------- */
  .page-view{display:none;}
  .page-view.active{display:block;}
  .page-header{background:var(--peach);padding:40px 0;}
  .page-header .wrap{position:relative;}

  /* ---------- Portal mode: hide marketing chrome, let the portal iframe own the full viewport ---------- */
  body.portal-mode > .topbar,
  body.portal-mode > header.site,
  body.portal-mode > .mobile-overlay,
  body.portal-mode > .mobile-nav,
  body.portal-mode > footer.site-footer{display:none !important;}
  body.portal-mode{overflow:hidden;height:100vh;}
  body.portal-mode > main{height:100vh;}
  body.portal-mode #page-portal{height:100vh;}
  #page-portal iframe{height:calc(100vh - 46px) !important;}
  .page-header .back-link{font-size:12.5px;font-weight:600;color:var(--gold-dark);display:inline-flex;align-items:center;gap:5px;margin-bottom:14px;cursor:pointer;}
  .page-header h1,.page-header h2{font-size:27px;color:var(--navy-900);}
  .page-header p{margin:8px 0 0 0;color:var(--muted);font-size:14px;max-width:56ch;}

  /* ---------- Nav dropdown (status/tracking) ---------- */
  .nav-item{position:relative;}
  .nav-dropdown{
    display:none;position:absolute;top:calc(100% + 6px);left:0;background:#fff;border:1px solid var(--line);
    border-radius:8px;box-shadow:0 16px 30px -14px rgba(13,22,38,0.28);min-width:220px;overflow:hidden;z-index:60;
  }
  .nav-dropdown.show{display:block;}
  .nav-dropdown a{display:block;padding:11px 16px;font-size:13.5px;color:var(--ink);}
  .nav-dropdown a:hover{background:var(--paper);}
  .nav-dropdown a + a{border-top:1px solid var(--line);}
  nav.main-nav a.active-nav{color:var(--navy-900);background:var(--paper);font-weight:700;}

  /* ---------- Grouped service cards (teaser + detail) ---------- */
  .svc-group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;}
  .svc-group-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px 22px 18px 22px;}
  .svc-group-card .ic{width:40px;height:40px;border-radius:9px;background:var(--gold-soft);color:var(--gold-dark);display:flex;align-items:center;justify-content:center;margin-bottom:14px;}
  .svc-group-card h4{font-size:15.5px;color:var(--navy-900);margin-bottom:6px;}
  .svc-group-card p.desc{font-size:12.5px;color:var(--muted);margin:0 0 14px 0;line-height:1.55;}
  .svc-group-card .incl-label{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.03em;margin-bottom:8px;text-transform:uppercase;}
  .svc-group-card ul.incl-list{margin:0;padding:0;list-style:none;}
  .svc-group-card ul.incl-list li{font-size:13px;color:var(--navy-800);padding:6px 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:8px;}
  .svc-group-card ul.incl-list li:first-child{border-top:none;}
  .svc-group-card ul.incl-list li::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--gold);flex:none;}

  /* ---------- Detail org card (Services page, with fee/day) ---------- */
  .detail-org-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;}
  .detail-org-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;}
  .detail-org-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;background:var(--navy-900);}
  .detail-org-head .org-logo{width:36px;height:36px;border-radius:7px;background:rgba(200,147,42,0.16);color:var(--gold);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;font-family:'Inter',sans-serif;flex:none;}
  .detail-org-head h3{color:#fff;font-size:15.5px;}
  .detail-org-head .sub{font-size:11.5px;color:#8C97B2;margin-top:2px;}
  .detail-row{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;gap:10px;}
  .detail-row + .detail-row{border-top:1px solid var(--line);}
  .detail-row .name{font-size:13.5px;font-weight:600;color:var(--navy-900);}
  .detail-row .meta{text-align:right;flex:none;}
  .detail-row .fee{font-weight:700;font-size:13.5px;color:var(--navy-900);}
  .detail-row .days{font-size:11px;color:var(--muted);margin-top:1px;}

  /* ---------- Search cascade selects (kept from search-grid, no extra) ---------- */

  /* ---------- Testimonial (redesigned) ---------- */
  .testimonial-card{max-width:680px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:40px 44px;text-align:center;box-shadow:0 24px 50px -32px rgba(13,22,38,0.28);}
  .testimonial-card .quote-ic{color:var(--gold-soft);margin-bottom:8px;}
  .testimonial-card .stars{color:var(--gold);letter-spacing:3px;font-size:15px;margin-bottom:16px;}
  .testimonial-card blockquote{margin:0 0 22px 0;font-size:17.5px;line-height:1.65;color:var(--navy-900);font-weight:500;}
  .testi-person{display:flex;align-items:center;justify-content:center;gap:12px;}
  .testi-person .tp-name{font-weight:700;font-size:14px;color:var(--navy-900);}
  .testi-person .tp-role{font-size:12px;color:var(--muted);}
  .testi-stats{display:flex;justify-content:center;gap:44px;margin-top:36px;flex-wrap:wrap;}
  .testi-stats > div{text-align:center;}
  .testi-stats .n{display:block;font-size:20px;font-weight:800;color:var(--navy-900);}
  .testi-stats .l{display:block;font-size:11.5px;color:var(--muted);margin-top:3px;}

  .pop-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
  .course-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
  .course-grid-3 .course-card{width:auto;}
  @media(max-width:1020px){ .course-grid-3{grid-template-columns:1fr 1fr;} }
  @media(max-width:760px){ .course-grid-3{grid-template-columns:1fr;} }

  @media(max-width:1020px){
    .detail-org-grid{grid-template-columns:1fr;}
    .pop-grid-4{grid-template-columns:1fr 1fr;}
  }
  @media(max-width:760px){
    .svc-group-grid{grid-template-columns:1fr;}
    .pop-grid-4{grid-template-columns:1fr;}
    .testimonial-card{padding:30px 22px;}
    .testi-stats{gap:24px;}
  }
  /* ---------- Course browse toolbar ---------- */
  .course-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:var(--paper);border-radius:10px;padding:6px 8px;margin-bottom:28px;}
  .course-tabs{display:flex;gap:4px;flex-wrap:wrap;}
  .course-tab{padding:10px 16px;border-radius:8px;font-size:13.5px;font-weight:600;color:var(--navy-700);cursor:pointer;white-space:nowrap;}
  .course-tab.active{background:var(--navy-900);color:#fff;}
  .view-toggle{display:flex;gap:4px;flex:none;padding-right:6px;}
  .view-toggle button{
    display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 10px;border-radius:7px;border:1px solid transparent;
    background:none;cursor:pointer;font-size:10px;font-weight:600;color:var(--muted);font-family:inherit;
  }
  .view-toggle button.active{background:#fff;border-color:var(--line);color:var(--navy-900);}

  /* ---------- Course page layout: filters + content ---------- */
  .course-layout{display:grid;grid-template-columns:250px 1fr;gap:28px;align-items:start;}
  .filters-panel{background:var(--navy-900);border-radius:12px;padding:24px 20px;color:#fff;position:sticky;top:88px;}
  .filters-panel h5{color:#fff;font-size:12px;text-transform:uppercase;letter-spacing:.04em;margin:0 0 18px 0;opacity:0.7;}
  .filter-group{margin-bottom:22px;}
  .filter-group-dd{border-top:1px solid rgba(255,255,255,0.1);padding-top:14px;margin-bottom:14px;}
  .filter-group-dd summary{
    font-size:14px;font-weight:700;color:#fff;cursor:pointer;list-style:none;display:flex;justify-content:space-between;
    align-items:center;margin-bottom:10px;
  }
  .filter-group-dd summary::-webkit-details-marker{display:none;}
  .filter-group-dd summary .chev{transition:transform .15s ease;flex:none;}
  .filter-group-dd[open] summary .chev{transform:rotate(180deg);}
  .filter-group-dd .fg-body{max-height:170px;overflow-y:auto;}
  .filter-group-dd .fg-body::-webkit-scrollbar{width:5px;}
  .filter-group-dd .fg-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.18);border-radius:3px;}
  .filter-group h6{font-size:14px;font-weight:700;color:#fff;margin-bottom:10px;}
  .filter-check{display:flex;align-items:center;gap:8px;font-size:13px;color:#C7CEDE;padding:5px 0;cursor:pointer;}
  .filter-check input{accent-color:var(--gold);width:14px;height:14px;flex:none;}
  .filter-stars{color:var(--gold);letter-spacing:1px;font-size:12px;}
  .filter-group input[type="text"]{
    width:100%;padding:9px 10px;border-radius:6px;border:1px solid rgba(255,255,255,0.16);background:var(--navy-800);
    color:#fff;font-family:inherit;font-size:12.5px;margin-top:4px;
  }
  .filter-group input[type="text"]::placeholder{color:#5C6684;}

  /* ---------- Status section (Enroll/Upcoming/Ongoing carousels) ---------- */
  .status-section{margin-bottom:34px;}
  .status-section-head{background:var(--paper);border-radius:8px;padding:12px 18px;margin-bottom:16px;}
  .status-section-head h3{font-size:16.5px;color:var(--navy-900);}
  .status-carousel-row{display:flex;align-items:center;gap:10px;}
  .status-track-wrap{flex:1;overflow:hidden;}
  .status-track{display:flex;gap:16px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;padding:4px 2px 10px 2px;}
  .status-track::-webkit-scrollbar{display:none;}
  .status-track.list-view{flex-direction:column;overflow-x:visible;}
  .show-all-btn{
    display:block;width:100%;text-align:center;padding:11px;margin-top:6px;border:1px solid var(--line);border-radius:8px;
    background:#fff;color:var(--navy-800);font-weight:600;font-size:13.5px;cursor:pointer;font-family:inherit;
  }
  .show-all-btn:hover{background:var(--paper);}

  /* ---------- Course card ---------- */
  .course-card{
    flex:none;width:250px;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;cursor:pointer;
    transition:box-shadow .15s ease,transform .15s ease;display:flex;flex-direction:column;
  }
  .course-card:hover{box-shadow:0 18px 34px -18px rgba(13,22,38,0.3);transform:translateY(-2px);}
  .status-track.list-view .course-card{width:100%;flex-direction:row;}
  .status-track.list-view .course-banner{width:220px;height:auto;flex:none;}
  .status-track.list-view .course-body{flex:1;}
  .course-banner{
    height:118px;position:relative;display:flex;align-items:center;padding:14px;color:#fff;flex:none;overflow:hidden;
  }
  .course-banner .banner-title{font-weight:800;font-size:15px;line-height:1.3;position:relative;z-index:1;text-shadow:0 2px 6px rgba(0,0,0,0.25);}
  .course-banner .banner-badge{position:absolute;top:10px;right:10px;font-size:10px;font-weight:700;padding:3px 9px;border-radius:20px;background:rgba(255,255,255,0.92);color:var(--navy-900);z-index:1;}
  .course-banner::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 85% 90%, rgba(255,255,255,0.14), transparent 60%);}
  .course-body{padding:14px 16px;display:flex;flex-direction:column;gap:8px;flex:1;}
  .course-rating-row{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);flex-wrap:wrap;}
  .course-rating-row .stars{color:var(--gold);font-weight:700;}
  .course-title{font-size:14px;font-weight:700;color:var(--navy-900);line-height:1.35;}
  .course-meta-icons{display:flex;gap:10px;flex-wrap:wrap;font-size:10.5px;color:var(--muted);}
  .course-meta-icons span{display:flex;align-items:center;gap:3px;}
  .course-people-row{display:flex;align-items:center;gap:6px;font-size:11.5px;}
  .course-people-row .avatars{display:flex;}
  .course-people-row .avatars span{
    width:22px;height:22px;border-radius:50%;background:var(--navy-700);color:#fff;font-size:9px;font-weight:700;
    display:flex;align-items:center;justify-content:center;border:2px solid #fff;margin-left:-7px;flex:none;
  }
  .course-people-row .avatars span:first-child{margin-left:0;}
  .course-people-row .names{color:var(--navy-800);font-weight:600;}
  .course-institute-row{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px;}
  .course-dates-row{font-size:10.5px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap;}
  .course-dates-row b{color:var(--navy-800);font-weight:600;}
  .course-price-row{display:flex;align-items:center;justify-content:space-between;margin-top:2px;}
  .course-price-row .price{font-size:16px;font-weight:800;color:var(--navy-900);}
  .course-price-row .old-price{font-size:12px;color:var(--muted);text-decoration:line-through;margin-left:5px;}
  .course-cta-btn{
    display:block;width:100%;text-align:center;padding:11px;font-weight:700;font-size:13.5px;color:#fff;border:none;cursor:pointer;font-family:inherit;
  }
  .course-cta-btn.enroll{background:var(--teal);}
  .course-cta-btn.upcoming{background:var(--navy-800);}
  .course-cta-btn.ongoing{background:var(--gold-dark);}
  .mode-pill{font-size:9.5px;font-weight:700;padding:2px 8px;border-radius:20px;}
  .mode-pill.live{background:var(--red-soft);color:var(--red);}
  .mode-pill.recorded{background:var(--teal-soft);color:var(--teal);}

  /* ---------- Course details page ---------- */
  .course-hero{background:linear-gradient(100deg,var(--navy-900) 0%,var(--navy-800) 100%);padding:30px 0 40px 0;color:#fff;}
  .course-hero .wrap{display:block;}
  .course-hero-info{max-width:760px;}
  .cd-breadcrumb{font-size:12px;color:#8C97B2;margin-bottom:16px;}
  .cd-breadcrumb a{color:#C7CEDE;cursor:pointer;}
  .cd-breadcrumb a:hover{color:#fff;text-decoration:underline;}
  .course-hero-badge{display:inline-block;background:var(--teal);color:#fff;font-size:12px;font-weight:700;padding:5px 14px;border-radius:6px;margin-bottom:14px;}
  .course-hero h1,.course-hero h2{font-size:28px;color:#fff;margin-bottom:10px;line-height:1.32;}
  .course-hero-tagline{font-size:15px;color:#C7CEDE;margin-bottom:16px;line-height:1.6;}
  .course-hero-desc{font-size:14px;color:#C7CEDE;line-height:1.75;margin-bottom:16px;}
  .course-hero-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:#C7CEDE;margin-bottom:10px;align-items:center;}
  .course-hero-meta .rating-num{color:var(--gold);font-weight:800;}
  .course-hero-meta .stars-inline{color:var(--gold);letter-spacing:1px;}
  .course-hero-by{font-size:13px;color:#C7CEDE;margin-bottom:14px;}
  .course-hero-by a{color:#7FB8FF;cursor:pointer;}
  .course-hero-by a:hover{text-decoration:underline;}
  .course-hero-dates{display:flex;gap:18px;flex-wrap:wrap;font-size:12.5px;color:#8C97B2;}
  .course-hero-dates b{color:#C7CEDE;font-weight:600;}

  /* ---- Two-column detail layout (Udemy-style sticky purchase card) ---- */
  .cd-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:40px;align-items:start;padding-top:8px;}
  .cd-detail-main{min-width:0;}
  .cd-detail-aside{position:relative;align-self:stretch;}
  .cd-purchase-floating{position:sticky;top:84px;}
  /* lift the sticky card up into the dark hero so it overlaps like Udemy */
  .cd-detail-aside{margin-top:-150px;}
  @media(max-width:1020px){
    .cd-detail-grid{grid-template-columns:1fr;gap:0;}
    .cd-detail-aside{margin-top:24px;order:-1;}
    .cd-purchase-floating{position:static;}
  }

  .purchase-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 26px 54px -22px rgba(0,0,0,0.45);}
  .purchase-banner{height:170px;position:relative;display:flex;align-items:center;justify-content:center;padding:18px;color:#fff;cursor:pointer;}
  .purchase-banner .banner-title{font-weight:800;font-size:19px;line-height:1.3;position:relative;z-index:1;text-align:center;}
  .purchase-banner .play-btn{
    position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(13,22,38,0.28);
  }
  .purchase-banner .play-btn .circle{
    width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,0.94);display:flex;align-items:center;justify-content:center;
    box-shadow:0 8px 20px rgba(0,0,0,0.3);
  }
  .purchase-body{padding:20px;}
  .purchase-price-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
  .purchase-price-row .price{font-size:26px;font-weight:800;color:var(--navy-900);}
  .purchase-price-row .old-price{font-size:15px;color:var(--muted);text-decoration:line-through;margin-left:6px;}
  .purchase-timer{font-size:12px;color:var(--red);font-weight:600;margin-bottom:16px;}
  .purchase-cta{display:flex;flex-direction:column;gap:10px;margin-bottom:16px;}
  .purchase-guarantee{text-align:center;font-size:11.5px;color:var(--muted);margin-bottom:18px;}
  .purchase-share-row{display:flex;justify-content:center;gap:22px;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid var(--line);}
  .purchase-share-row button{background:none;border:none;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--navy-700);cursor:pointer;font-family:inherit;font-weight:600;}
  .purchase-share-row button:hover{color:var(--navy-900);}
  .includes-title{font-size:13px;font-weight:700;color:var(--navy-900);margin-bottom:12px;}
  .includes-list{margin-bottom:18px;}
  .includes-list li{display:flex;gap:10px;align-items:center;font-size:13px;color:var(--navy-800);padding:6px 0;}
  .includes-list li .ic{color:var(--navy-700);flex:none;}
  .purchase-list{border-top:1px solid var(--line);}
  .syllabus-controls{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:10px;}
  .syllabus-summary-line{font-size:13px;color:var(--muted);}
  .expand-all-btn{background:none;border:none;color:var(--gold-dark);font-weight:700;font-size:13px;cursor:pointer;font-family:inherit;}
  .expand-all-btn:hover{text-decoration:underline;}
  .show-more-toggle{color:var(--gold-dark);font-weight:700;font-size:13px;cursor:pointer;display:inline-block;margin-top:10px;}
  .show-more-toggle:hover{text-decoration:underline;}
  .cd-desc-extra{display:none;}
  .cd-desc-extra.show{display:block;}
  .cd-plain-list li{display:flex;gap:10px;font-size:13.5px;color:var(--navy-800);padding:6px 0;align-items:flex-start;}
  .cd-plain-list li::before{content:'•';color:var(--gold-dark);font-weight:800;flex:none;}
  .instructor-stats-row{display:flex;gap:20px;flex-wrap:wrap;margin:10px 0 12px 0;font-size:12.5px;color:var(--muted);}
  .instructor-stats-row b{color:var(--navy-900);}
  .instructor-bio{font-size:13.5px;color:var(--navy-800);line-height:1.7;}
  .purchase-list .p-row{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px;}
  .purchase-list .p-row .k{color:var(--muted);}
  .purchase-list .p-row .v{font-weight:600;color:var(--navy-900);}
  .purchase-call-box{background:var(--paper);border-radius:8px;padding:16px;text-align:center;margin-top:16px;}
  .purchase-call-box p{font-size:12px;color:var(--muted);margin:0 0 8px 0;}
  .purchase-call-box a{font-weight:700;color:var(--gold-dark);}

  .cd-section{padding:28px 0;border-top:1px solid var(--line);}
    .cd-section--first{border-top:none;padding-top:4px;}
    .cd-section h2{font-size:19px;color:var(--navy-900);margin-bottom:18px;}
  .cd-instructor-card{display:flex;gap:14px;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:10px;margin-bottom:14px;}
  .cd-instructor-card .agent-avatar{width:52px;height:52px;font-size:16px;}
  .cd-instructor-card .name{font-weight:700;color:var(--navy-900);font-size:14.5px;}
  .cd-instructor-card .role{font-size:12px;color:var(--muted);margin-top:2px;}
  .cd-institute-card{display:flex;gap:14px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:10px;}
  .cd-institute-card .org-logo{width:50px;height:50px;font-size:15px;border-radius:10px;}
  .cd-institute-card .name{font-weight:700;color:var(--navy-900);font-size:14.5px;}
  .cd-institute-card .loc{font-size:12px;color:var(--muted);margin-top:2px;}

  .syllabus-box{border:1px solid var(--line);border-radius:10px;overflow:hidden;}
  .syllabus-box details{border-bottom:1px solid var(--line);}
  .syllabus-box details:last-child{border-bottom:none;}
  .syllabus-box summary{
    padding:16px 18px;font-weight:700;font-size:14px;color:var(--navy-900);cursor:pointer;display:flex;justify-content:space-between;
    align-items:center;list-style:none;gap:10px;
  }
  .syllabus-box summary::-webkit-details-marker{display:none;}
  .syllabus-box summary .dur{font-size:11.5px;font-weight:600;color:var(--muted);background:var(--paper);padding:3px 9px;border-radius:20px;margin-left:auto;margin-right:10px;}
  .syllabus-lesson{display:flex;justify-content:space-between;align-items:center;padding:11px 18px;font-size:13px;color:var(--navy-800);border-top:1px solid var(--line);}
  .syllabus-lesson .l-name{display:flex;align-items:center;gap:8px;}

  .learn-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;border:1px solid var(--line);border-radius:10px;padding:22px;}
  .learn-grid li{display:flex;gap:10px;font-size:13.5px;color:var(--navy-800);align-items:flex-start;}
  .learn-grid li .ic{color:var(--teal);flex:none;margin-top:2px;}

  .rating-summary{display:flex;gap:32px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:22px;margin-bottom:20px;flex-wrap:wrap;}
  .rating-big{text-align:center;flex:none;}
  .rating-big .n{font-size:38px;font-weight:800;color:var(--navy-900);}
  .rating-big .stars{color:var(--gold);font-size:14px;}
  .rating-bars{flex:1;min-width:220px;}
  .rating-bar-row{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin-bottom:6px;}
  .rating-bar-row .stars{color:var(--gold);width:66px;flex:none;}
  .rating-bar-track{flex:1;height:6px;background:var(--line);border-radius:4px;overflow:hidden;}
  .rating-bar-fill{height:100%;background:var(--gold);}
  .review-card{display:flex;gap:14px;padding:16px 0;border-top:1px solid var(--line);}
  .review-card .agent-avatar{width:40px;height:40px;font-size:14px;flex:none;}
  .review-card .name{font-weight:700;font-size:13.5px;color:var(--navy-900);}
  .review-card .stars{color:var(--gold);font-size:12px;margin:2px 0 6px 0;}
  .review-card p{font-size:13px;color:var(--muted);margin:0;line-height:1.6;}

  .faq-box details{border-bottom:1px solid var(--line);padding:14px 0;}
  .faq-box summary{font-weight:600;font-size:14px;color:var(--navy-900);cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;}
  .faq-box summary::-webkit-details-marker{display:none;}
  .faq-box p{font-size:13px;color:var(--muted);margin:10px 0 0 0;line-height:1.65;}

  /* ---- Mobile sticky bottom enroll bar (hidden on desktop) ---- */
  .cd-mobile-buybar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;
    background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 24px -12px rgba(0,0,0,0.3);
    padding:10px 16px;align-items:center;justify-content:space-between;gap:14px;}
  .cd-mobile-buybar-price .price{font-size:20px;font-weight:800;color:var(--navy-900);}
  .cd-mobile-buybar-price .old{font-size:13px;color:var(--muted);text-decoration:line-through;margin-left:6px;}
  .cd-mobile-buybar .btn{flex:none;padding:11px 26px;}

  @media(max-width:1020px){
    .course-layout{grid-template-columns:1fr;}
    .filters-panel{position:static;}
    .course-hero .wrap{grid-template-columns:1fr;}
    .learn-grid{grid-template-columns:1fr;}
  }
  @media(max-width:760px){
    .course-toolbar{flex-direction:column;align-items:stretch;}
    .course-card{width:230px;}
    .status-track.list-view .course-card{flex-direction:column;}
    .status-track.list-view .course-banner{width:100%;height:118px;}
    .rating-summary{flex-direction:column;align-items:flex-start;}
    .course-hero h1,.course-hero h2{font-size:23px;}
    #page-course-details.page-view.active ~ .cd-mobile-buybar,
    #page-course-details .cd-mobile-buybar{display:flex;}
    #page-course-details .cd-detail-grid{padding-bottom:76px;}
  }
  /* ---------- Products page: search bar ---------- */
  .product-search-bar{display:flex;gap:0;margin-bottom:22px;box-shadow:0 14px 30px -20px rgba(13,22,38,0.3);border-radius:8px;overflow:hidden;}
  .product-search-bar select{
    flex:none;width:170px;border:1px solid var(--line);border-right:none;background:var(--paper);color:var(--navy-800);
    font-family:inherit;font-size:13px;padding:0 12px;
  }
  .product-search-bar input{flex:1;border:1px solid var(--line);padding:13px 16px;font-family:inherit;font-size:14px;color:var(--ink);}
  .product-search-bar button{
    flex:none;background:var(--gold);color:#fff;border:none;padding:0 26px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit;
  }
  .product-search-bar button:hover{background:var(--gold-dark);}

  /* ---------- Category sidebar ---------- */
  .category-list{max-height:520px;overflow-y:auto;margin:0 -20px;padding:0 20px;}
  .category-list::-webkit-scrollbar{width:5px;}
  .category-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.18);border-radius:3px;}
  .cat-item{
    display:flex;align-items:center;gap:10px;padding:9px 6px;font-size:13px;color:#C7CEDE;cursor:pointer;border-radius:6px;
  }
  .cat-item:hover{background:rgba(255,255,255,0.06);color:#fff;}
  .cat-item.active{background:var(--gold);color:#fff;font-weight:700;}
  .cat-item .cat-ic{
    width:26px;height:26px;border-radius:6px;flex:none;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.08);
  }
  .cat-item .cat-count{margin-left:auto;font-size:10.5px;opacity:0.7;flex:none;}

  /* ---------- Products toolbar (result count / sort / view) ---------- */
  .products-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px;}
  .products-toolbar .count{font-size:13.5px;color:var(--muted);}
  .products-toolbar .count b{color:var(--navy-900);}
  .sort-select{padding:9px 12px;border:1px solid var(--line);border-radius:6px;font-family:inherit;font-size:13px;color:var(--navy-800);background:#fff;}

  /* ---------- Product grid & card ---------- */
  .product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
  .product-grid.list-mode{grid-template-columns:1fr;}
  .product-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;cursor:pointer;transition:box-shadow .15s ease,transform .15s ease;display:flex;flex-direction:column;}
  .product-card:hover{box-shadow:0 16px 30px -18px rgba(13,22,38,0.28);transform:translateY(-2px);}
  .product-grid.list-mode .product-card{flex-direction:row;}
  .product-grid.list-mode .product-thumb{width:150px;height:auto;flex:none;}
  .product-grid.list-mode .product-body{flex:1;}
  .product-thumb{height:130px;position:relative;display:flex;align-items:center;justify-content:center;flex:none;}
  .product-thumb .badge-corner{position:absolute;top:8px;left:8px;font-size:10px;font-weight:700;padding:3px 8px;border-radius:20px;background:var(--red);color:#fff;}
  .product-body{padding:13px 14px;display:flex;flex-direction:column;gap:6px;flex:1;}
  .product-cat{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.02em;}
  .product-title{font-size:13.5px;font-weight:600;color:var(--navy-900);line-height:1.4;min-height:37px;}
  .product-rating{font-size:11px;color:var(--muted);}
  .product-rating .stars{color:var(--gold);font-weight:700;}
  .product-price-row{display:flex;align-items:baseline;gap:7px;margin-top:2px;}
  .product-price-row .price{font-size:15.5px;font-weight:800;color:var(--navy-900);}
  .product-price-row .old-price{font-size:11.5px;color:var(--muted);text-decoration:line-through;}
  .product-stock{font-size:10.5px;color:var(--teal);font-weight:600;}
  .product-stock.low{color:var(--red);}
  .product-cart-btn{
    margin-top:auto;width:100%;padding:9px;background:var(--navy-900);color:#fff;border:none;font-weight:600;font-size:12.5px;
    cursor:pointer;font-family:inherit;
  }
  .product-cart-btn:hover{background:var(--navy-700);}

  .pagination-row{display:flex;justify-content:center;gap:6px;margin-top:28px;}
  .pagination-row button{
    width:36px;height:36px;border-radius:7px;border:1px solid var(--line);background:#fff;color:var(--navy-800);
    font-family:inherit;font-size:13px;cursor:pointer;font-weight:600;
  }
  .pagination-row button.active{background:var(--navy-900);color:#fff;border-color:var(--navy-900);}
  .pagination-row button:hover:not(.active){background:var(--paper);}

  /* ---------- Product details page ---------- */
  .pd-breadcrumb{font-size:12.5px;color:var(--muted);margin-bottom:16px;}
  .pd-breadcrumb a{color:var(--gold-dark);cursor:pointer;}
  .pd-breadcrumb a:hover{text-decoration:underline;}
  .pd-layout{display:grid;grid-template-columns:0.85fr 1.15fr;gap:40px;align-items:start;}

  /* ---- Product detail two-column (sticky buy card) ---- */
  .pd-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:40px;align-items:start;padding-top:8px;}
  .pd-detail-main{min-width:0;}
  .pd-detail-aside{position:relative;align-self:stretch;}
  .pd-buy-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;box-shadow:0 26px 54px -22px rgba(0,0,0,0.3);}
  .pd-buy-card .pd-title{font-size:19px;margin-top:10px;}
  .pd-gallery-wrap{margin-bottom:8px;}
  @media(max-width:1020px){
    .pd-detail-grid{grid-template-columns:1fr;gap:0;}
    .pd-detail-aside{margin-top:24px;order:-1;}
    .pd-buy-card.cd-purchase-floating{position:static;}
  }
  .pd-gallery-main{
    aspect-ratio:1/0.85;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;
    position:relative;
  }
  .pd-gallery-main .badge-corner{position:absolute;top:14px;left:14px;font-size:11px;font-weight:700;padding:4px 12px;border-radius:20px;background:var(--red);color:#fff;}
  .pd-thumbs{display:flex;gap:10px;}
  .pd-thumbs .thumb{
    width:60px;height:60px;border-radius:8px;border:2px solid var(--line);cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none;
  }
  .pd-thumbs .thumb.active{border-color:var(--gold);}
  .pd-title{font-size:23px;color:var(--navy-900);margin-bottom:10px;line-height:1.35;}
  .pd-meta-row{display:flex;align-items:center;gap:14px;font-size:12.5px;color:var(--muted);margin-bottom:16px;flex-wrap:wrap;}
  .pd-meta-row .stars{color:var(--gold);font-weight:700;}
  .pd-price-block{background:var(--paper);border-radius:10px;padding:18px 20px;margin-bottom:18px;}
  .pd-price-block .price{font-size:28px;font-weight:800;color:var(--navy-900);}
  .pd-price-block .old-price{font-size:16px;color:var(--muted);text-decoration:line-through;margin-left:8px;}
  .pd-price-block .save{display:inline-block;margin-left:10px;font-size:11.5px;font-weight:700;color:var(--red);background:var(--red-soft);padding:3px 9px;border-radius:20px;}
  .pd-stock-row{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:13px;color:var(--teal);font-weight:600;}
  .pd-highlights{margin-bottom:18px;}
  .pd-highlights li{display:flex;gap:9px;font-size:13.5px;color:var(--navy-800);padding:5px 0;align-items:flex-start;}
  .pd-highlights li .ic{color:var(--teal);flex:none;margin-top:1px;}
  .qty-row{display:flex;align-items:center;gap:14px;margin-bottom:18px;}
  .qty-stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;overflow:hidden;}
  .qty-stepper button{width:36px;height:38px;border:none;background:var(--paper);font-size:16px;cursor:pointer;color:var(--navy-800);font-family:inherit;}
  .qty-stepper span{width:44px;text-align:center;font-weight:700;font-size:14px;}
  .cart-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);}
  .cart-row:last-child{border-bottom:none;}
  .cart-row .cr-thumb{width:44px;height:44px;border-radius:8px;background:var(--paper);color:var(--navy-800);display:flex;align-items:center;justify-content:center;flex:none;}
  .cart-row .cr-info{flex:1;min-width:0;}
  .cart-row .cr-name{font-size:13.8px;font-weight:600;color:var(--navy-900);}
  .cart-row .cr-price{font-size:12px;color:var(--muted);margin-top:2px;}
  .cart-row .cr-remove{color:var(--red);font-size:12px;font-weight:600;cursor:pointer;flex:none;}
  .pd-cta-row{display:flex;gap:12px;margin-bottom:20px;}
  .pd-info-list{border-top:1px solid var(--line);}
  .pd-info-list .row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px;}
  .pd-info-list .row .k{color:var(--muted);}
  .pd-info-list .row .v{font-weight:600;color:var(--navy-900);}

  .specs-table{width:100%;border-collapse:collapse;border:1px solid var(--line);border-radius:10px;overflow:hidden;}
  .specs-table tr:nth-child(even){background:var(--paper);}
  .specs-table td{padding:12px 18px;font-size:13.5px;border-bottom:1px solid var(--line);}
  .specs-table td:first-child{color:var(--muted);width:38%;}
  .specs-table td:last-child{color:var(--navy-900);font-weight:600;}
  .specs-table tr:last-child td{border-bottom:none;}

  @media(max-width:1020px){
    .product-grid{grid-template-columns:repeat(3,1fr) !important;}
    .pd-layout{grid-template-columns:1fr;}
    /* Related products -> one-line horizontal slider (like related courses) */
    #pd-related-products{
      display:flex !important;grid-template-columns:none !important;
      overflow-x:auto;gap:14px;padding-bottom:8px;
      scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    }
    #pd-related-products::-webkit-scrollbar{display:none;}
    #pd-related-products .product-card{flex:0 0 230px;scroll-snap-align:start;}
  }
  @media(max-width:760px){
    .product-search-bar{flex-wrap:wrap;}
    .product-search-bar select{width:100%;border-right:1px solid var(--line);border-bottom:none;}
    .product-grid{grid-template-columns:repeat(2,1fr) !important;}
    #pd-related-products .product-card{flex:0 0 62%;}
    .product-grid.list-mode .course-card,.product-grid.list-mode .product-card{flex-direction:column;}
    .product-grid.list-mode .product-thumb{width:100%;height:130px;}
    #page-product-details .cd-mobile-buybar{display:flex;}
    #page-product-details .pd-detail-grid{padding-bottom:76px;}
  }

/* R4: freemium pro-feature lock (cd-tool-gate.js) */
.cd-pro-locked{opacity:.55;filter:grayscale(.3);cursor:not-allowed !important;position:relative;}
.cd-pro-locked:hover{opacity:.7;}

/* Universal password show/hide toggle (pw-toggle.js) — storefront auth modal.
   Wrapper keeps the input full-width; the eye button overlays its right edge
   and the input gets right padding so text never slides under the icon. */
.pw-field{position:relative;display:block;width:100%;}
.pw-field > input{width:100%;padding-right:40px !important;box-sizing:border-box;}
.pw-toggle-btn{position:absolute;top:50%;right:8px;transform:translateY(-50%);
  width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  padding:0;margin:0;border:none;background:transparent;cursor:pointer;
  color:var(--muted,#8a94a6);font-size:14px;line-height:1;border-radius:6px;
  transition:color .15s ease,background .15s ease;}
.pw-toggle-btn:hover{color:var(--gold,#A9761E);background:rgba(0,0,0,.04);}
.pw-toggle-btn:focus-visible{outline:2px solid var(--gold,#A9761E);outline-offset:1px;}
