:root{
    --blue-500:#3B6EF6;
    --blue-600:#2F5FE0;
    --purple-500:#8B6EF0;
    --ink-900:#0E1730;
    --ink-700:#22304A;
    --ink-500:#5B6B85;
    --ink-300:#94A3B8;
    --line:#E7EAF0;
    --bg-soft:#F6F7FB;
    --card-bg:#FFFFFF;
    --yellow:#FFB020;
    --radius-lg:20px;
    --radius-md:14px;
    --radius-sm:10px;
  }
  *{box-sizing:border-box;}
  body{margin:0;font-family:'Segoe UI',Arial,Helvetica,sans-serif;color:var(--ink-900);background:#fff;}
  body.lang-bn{font-family:'Hind Siliguri','Segoe UI',Arial,sans-serif;}
  a{text-decoration:none;color:inherit;}
  button{font-family:inherit;cursor:pointer;}
  img{max-width:100%;display:block;}
  .wrap{max-width:1240px;margin:0 auto;padding:0 24px;}

  /* HEADER */
  header{
    border-bottom:1px solid rgba(255,255,255,.6);
    padding:16px 0;
    position:sticky;top:0;z-index:100;
    background:rgba(255,255,255,.55);
    backdrop-filter:blur(18px) saturate(180%);
    -webkit-backdrop-filter:blur(18px) saturate(180%);
    box-shadow:0 8px 30px rgba(60,90,180,.06);
  }
  header::before{
    content:'';position:absolute;left:0;right:0;top:-46px;height:100px;
    background:linear-gradient(90deg,#8fdcec 0%,#a9c6f7 22%,#c3b3f4 45%,#e5b9ef 68%,#ffd7c2 100%);
    filter:blur(34px);opacity:.55;pointer-events:none;z-index:-1;
  }
  header .wrap{display:flex;align-items:center;justify-content:space-between;}
  .header-search{
    display:flex;align-items:center;flex-shrink:1;
    max-width:0;opacity:0;overflow-x:hidden;overflow-y:visible;
    transition:max-width .4s ease, opacity .3s ease, margin .4s ease;
    margin:0;
  }
  header.scrolled .header-search{
    max-width:480px;opacity:1;margin:0 16px;
  }
  .header-search-bar{
    display:flex;align-items:center;background:#fff;border:1px solid var(--line);
    border-radius:999px;padding:4px 4px 4px 18px;width:100%;overflow:hidden;
    filter:drop-shadow(0 8px 16px rgba(30,40,80,.10));
  }
  .header-search-bar input{border:none;outline:none;background:transparent;flex:1;font-size:14px;padding:9px 0;color:var(--ink-900);min-width:0;}
  .header-search-bar input::placeholder{color:var(--ink-300);}
  .header-search-btn{
    width:36px;height:36px;border-radius:50%;flex-shrink:0;border:1px solid var(--line);
    background:#fff;color:var(--ink-900);display:flex;align-items:center;justify-content:center;
    transition:background .15s,transform .15s;
  }
  .header-search-btn:hover{background:var(--bg-soft);transform:scale(1.05);}
  .header-search-btn svg{width:16px;height:16px;stroke:var(--ink-900);stroke-width:1.8;fill:none;stroke-linecap:round;}
  .header-search-icon{display:none;}
  @media (max-width:768px){
    .header-search-bar{display:none;}
    .header-search-icon{
      display:flex;align-items:center;justify-content:center;
      width:42px;height:42px;border-radius:14px;border:none;background:var(--bg-soft);color:var(--ink-900);flex-shrink:0;
      box-shadow:0 2px 8px rgba(20,30,60,.07);
    }
    .header-search-icon svg{width:18px;height:18px;stroke:var(--ink-900);stroke-width:2;fill:none;stroke-linecap:round;}
    header.scrolled .header-search{max-width:64px;margin:0 8px;}
  }
  .logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:22px;color:var(--ink-900);}
  .logo .dot{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--blue-500),var(--purple-500));display:inline-block;position:relative;}
  .menu-wrap{position:relative;}
  .menu-trigger{
    display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);
    width:44px;height:44px;border-radius:50%;color:var(--ink-700);position:relative;
    transition:background .15s,border-color .15s;
  }
  .menu-trigger .badge{position:absolute;top:-6px;right:-6px;background:var(--purple-500);color:#fff;font-size:10px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;}
  .menu-trigger:hover{background:var(--bg-soft);border-color:#d7dce6;}
  .menu-trigger .burger{width:18px;height:13px;stroke:var(--ink-700);stroke-width:1.6;fill:none;stroke-linecap:round;}
  .menu-dropdown{
    position:absolute;top:calc(100% + 10px);left:0;background:#fff;border:1px solid var(--line);
    border-radius:14px;box-shadow:0 16px 34px rgba(20,30,60,.12);padding:10px;min-width:190px;
    display:flex;flex-direction:column;gap:2px;opacity:0;visibility:hidden;transform:translateY(-6px);
    transition:opacity .15s,transform .15s,visibility .15s;z-index:50;
  }
  .menu-dropdown.show{opacity:1;visibility:visible;transform:translateY(0);}
  .menu-dropdown a{padding:10px 14px;border-radius:10px;font-weight:600;font-size:14.5px;color:var(--ink-700);}
  .menu-dropdown a:hover{background:var(--bg-soft);color:var(--blue-600);}
  .main-menu-wrap .menu-dropdown{left:auto;right:0;}
  .menu-dropdown a.cart-link{display:flex;align-items:center;justify-content:space-between;gap:10px;}
  .menu-dropdown a.cart-link .cart-link-left{display:flex;align-items:center;gap:8px;}
  .menu-dropdown a.cart-link .cart-count-badge{background:var(--purple-500);color:#fff;font-size:11px;min-width:20px;height:20px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 6px;flex-shrink:0;}
  .menu-dropdown .dropdown-divider{height:1px;background:var(--line);margin:6px 4px;}
  .header-right{display:flex;align-items:center;gap:12px;}
  .icon-btn{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;position:relative;color:var(--ink-700);}
  .icon-btn .badge{position:absolute;top:-6px;right:-6px;background:var(--purple-500);color:#fff;font-size:10px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;}
  .icon-btn .globe{width:19px;height:19px;stroke:var(--ink-700);stroke-width:1.4;fill:none;}
  .icon-btn .person{width:19px;height:19px;stroke:#fff;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round;}
  .create-account-btn{background:linear-gradient(135deg,var(--blue-500),var(--purple-500));border:none;}
  .lang-wrap{position:relative;}
  .lang-wrap .lang-dropdown{left:auto;right:0;}
  .lang-dropdown{min-width:130px;}
  .lang-option{background:transparent;border:none;text-align:left;padding:10px 14px;border-radius:10px;font-weight:600;font-size:14.5px;color:var(--ink-700);width:100%;}
  .lang-option:hover{background:var(--bg-soft);color:var(--blue-600);}
  .lang-option.active{color:var(--blue-600);background:var(--bg-soft);}
  .theme-icon{width:19px;height:19px;flex-shrink:0;}
  .theme-icon.sun-icon{stroke:var(--ink-700);stroke-width:1.8;fill:none;stroke-linecap:round;}
  .theme-icon.sun-icon circle{fill:none;}
  .theme-icon.moon-icon{fill:var(--ink-700);stroke:none;}
  .theme-wrap .theme-dropdown{left:auto;right:0;}
  .theme-dropdown{min-width:230px;padding:10px;}
  .theme-option{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;font-weight:600;font-size:14.5px;color:var(--ink-700);background:transparent;border:none;text-align:left;width:100%;}
  .theme-option:hover{background:var(--bg-soft);}
  .theme-option .check-icon{width:15px;height:15px;stroke:var(--blue-600);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;opacity:0;}
  .theme-option.active .check-icon{opacity:1;}
  .theme-option .opt-icon{width:17px;height:17px;flex-shrink:0;}
  .theme-option .opt-icon.sun-icon{stroke:var(--ink-500);stroke-width:1.8;fill:none;stroke-linecap:round;}
  .theme-option .opt-icon.moon-icon{fill:var(--ink-500);stroke:none;}
  .theme-option.active{background:#EAF1FF;color:var(--blue-600);}
  .theme-option.active .opt-icon.sun-icon{stroke:var(--blue-600);}
  .theme-option.active .opt-icon.moon-icon{fill:var(--blue-600);}
  .theme-divider{height:1px;background:var(--line);margin:8px 4px;}
  .theme-style-label{font-size:12.5px;color:var(--ink-300);font-weight:600;padding:6px 12px 8px;}
  .theme-style-option{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;font-weight:600;font-size:14.5px;color:var(--ink-700);background:transparent;border:none;text-align:left;width:100%;}
  .theme-style-option:hover{background:var(--bg-soft);}
  .theme-style-option .check-icon{width:15px;height:15px;stroke:var(--blue-600);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;opacity:0;}
  .theme-style-option .check-icon-placeholder{width:15px;height:15px;flex-shrink:0;}
  .theme-style-option.active{background:#EAF1FF;color:var(--blue-600);}
  .theme-style-option.active .check-icon{opacity:1;}
  .theme-style-section.hidden{display:none;}
  .btn-primary{background:linear-gradient(135deg,var(--blue-500),var(--purple-500));color:#fff;border:none;padding:11px 20px;border-radius:24px;font-weight:600;font-size:14px;}

  /* HERO */
  .hero{background:linear-gradient(120deg,#EAF1FF 0%,#F1EEFF 60%,#F7EEFB 100%);padding:64px 0 72px;position:relative;overflow:hidden;text-align:center;}
  .hero h1{font-size:42px;font-weight:800;margin:0 0 18px;color:var(--ink-900);line-height:1.25;}
  .hero p{max-width:620px;margin:0 auto 30px;color:var(--ink-500);font-size:15.5px;line-height:1.6;}
  .search-bar{max-width:640px;margin:0 auto;display:flex;align-items:center;background:#fff;border-radius:999px;padding:6px 6px 6px 22px;box-shadow:0 12px 30px rgba(30,40,80,.08);}
  .search-bar input{flex:1;border:none;outline:none;background:transparent;font-size:15px;padding:12px 0;color:var(--ink-900);}
  .search-bar input::placeholder{color:var(--ink-300);}
  .search-bar button{width:44px;height:44px;border-radius:50%;flex-shrink:0;border:1px solid var(--line);background:#fff;color:var(--ink-900);display:flex;align-items:center;justify-content:center;transition:transform .15s,background .15s;box-shadow:0 2px 6px rgba(20,30,60,.05);}
  .search-bar button:hover{transform:scale(1.05);background:var(--bg-soft);}
  .search-bar button svg{width:18px;height:18px;stroke:var(--ink-900);stroke-width:1.8;fill:none;stroke-linecap:round;}
  .blob{position:absolute;border-radius:50%;opacity:.55;filter:blur(1px);}
  .blob.b1{width:140px;height:140px;left:-30px;top:120px;background:radial-gradient(circle at 30% 30%,#9be8f0,#5cc7e0);}
  .blob.b2{width:150px;height:150px;right:-30px;top:70px;background:radial-gradient(circle at 30% 30%,#c9b6f5,#9a7ce8);}

  /* FILTER BAR */
  .filters-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:36px 0 20px;}
  .filter-pill-btn{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:24px;padding:10px 18px;font-weight:600;font-size:14px;background:#fff;color:var(--ink-700);}
  .tabs{display:flex;gap:10px;flex-wrap:wrap;}
  .tab{padding:9px 18px;border-radius:24px;font-size:14px;font-weight:600;border:1px solid var(--line);background:#fff;color:var(--ink-500);}
  .tab.active{background:var(--ink-900);color:#fff;border-color:var(--ink-900);}
  .view-toggle{display:flex;gap:8px;}
  .view-toggle button{width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;}
  .view-toggle button.active{background:var(--ink-900);color:#fff;border-color:var(--ink-900);}

  /* SECONDARY FILTERS */
  .filters-row{display:flex;gap:20px;padding:8px 0 28px;flex-wrap:wrap;}
  .filter-field{flex:1;min-width:220px;}
  .filter-field label{display:flex;justify-content:space-between;font-size:13px;font-weight:700;color:var(--ink-900);margin-bottom:8px;}
  .filter-field label .clear{font-weight:500;color:var(--ink-300);cursor:pointer;font-size:12.5px;}
  .filter-field .field-box{border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:10px;color:var(--ink-300);font-size:14px;}
  .filter-field select{border:none;outline:none;width:100%;background:transparent;font-size:14px;color:var(--ink-700);appearance:none;}

  /* LAYOUT: sidebar removed (no tags/category per request), keep a slim sort sidebar for rating/date */
  .content-layout{display:flex;gap:32px;align-items:flex-start;}
  .sidebar{width:250px;flex-shrink:0;}
  .side-block{border-bottom:1px solid var(--line);padding:18px 0;}
  .side-block:first-child{padding-top:0;}
  .side-block h4{display:flex;justify-content:space-between;font-size:15px;font-weight:700;margin:0 0 14px;color:var(--ink-900);}
  .radio-row{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--ink-700);padding:6px 0;}
  .radio-row .count{color:var(--ink-300);}
  .radio-row input{margin-right:10px;accent-color:var(--blue-500);}

  .products-area{flex:1;}
  .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
  .card{border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;background:#fff;transition:transform .2s, box-shadow .2s;}
  .card:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(20,30,60,.09);}
  .thumb{height:190px;position:relative;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;text-align:center;font-size:15px;padding:16px;}
  .thumb .heart{position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;color:#334;font-size:14px;}
  .card-body{padding:16px 18px 18px;}
  .card-body h3{font-size:16px;font-weight:700;margin:0 0 8px;line-height:1.35;color:var(--ink-900);}
  .price-row{display:flex;justify-content:space-between;align-items:center;font-size:13.5px;color:var(--ink-500);margin-bottom:12px;}
  .price-row .price{font-weight:800;color:var(--ink-900);font-size:15px;}
  .price-row .price .old{font-weight:500;color:var(--ink-300);text-decoration:line-through;font-size:13px;margin-left:6px;}
  .meta-row{display:flex;justify-content:space-between;align-items:center;}
  .stars{color:var(--yellow);font-size:13px;}
  .stars span{color:var(--ink-300);font-weight:600;margin-left:4px;}
  .demo-btn{border:1px solid var(--line);border-radius:20px;padding:7px 16px;font-size:13px;font-weight:600;color:var(--ink-700);background:#fff;}

  .pagination{display:flex;justify-content:center;gap:10px;margin:44px 0 10px;}
  .pagination button{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:#fff;font-weight:700;color:var(--ink-700);}
  .pagination button.active{background:var(--ink-900);color:#fff;border-color:var(--ink-900);}
  .pagination .next{width:auto;padding:0 18px;display:flex;align-items:center;gap:6px;}

  /* FREE RESOURCES */
  .resources{background:var(--bg-soft);padding:70px 0;margin-top:60px;position:relative;overflow:hidden;}
  .res-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:36px;flex-wrap:wrap;gap:20px;}
  .res-head h2{font-size:30px;font-weight:800;margin:0 0 10px;}
  .res-head p{max-width:520px;color:var(--ink-500);font-size:14.5px;line-height:1.6;margin:0;}
  .res-slider{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
  .dots{display:flex;justify-content:center;gap:8px;margin-top:30px;}
  .dots span{width:8px;height:8px;border-radius:50%;background:var(--line);}
  .dots span.active{background:var(--blue-500);width:22px;border-radius:5px;}

  /* BRANDS */
  .brands{background:var(--ink-900);padding:36px 0;border-radius:32px 32px 0 0;}
  .brands .wrap{display:flex;justify-content:space-around;align-items:center;flex-wrap:wrap;gap:24px;}
  .brand{display:flex;align-items:center;gap:8px;color:#cfd6e6;font-weight:700;font-size:15px;opacity:.85;}
  .brand .ic{width:26px;height:26px;border-radius:50%;background:#28324a;display:flex;align-items:center;justify-content:center;font-size:12px;}

  /* FOOTER */
  footer{background:var(--ink-900);color:#B9C1D4;padding:56px 0 24px;}
  .footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:32px;padding-bottom:36px;border-bottom:1px solid #26304A;}
  footer h5{color:#fff;font-size:15px;margin:0 0 16px;}
  footer p{font-size:13.5px;line-height:1.7;color:#8D96AC;}
  footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;}
  footer ul a{font-size:13.5px;color:#B9C1D4;}
  .socials{display:flex;gap:10px;margin-top:18px;}
  .socials a{width:34px;height:34px;border-radius:50%;background:#1C2740;display:flex;align-items:center;justify-content:center;font-size:13px;color:#fff;}
  .newsletter-form{display:flex;flex-direction:column;gap:12px;margin-top:6px;}
  .newsletter-form input{padding:12px 16px;border-radius:24px;border:1px solid #2B3652;background:transparent;color:#fff;font-size:13.5px;outline:none;}
  .newsletter-form button{padding:12px 16px;border-radius:24px;border:none;background:linear-gradient(135deg,var(--blue-500),var(--purple-500));color:#fff;font-weight:700;font-size:14px;}
  .footer-bottom{display:flex;justify-content:space-between;padding-top:20px;font-size:13px;color:#7B85A0;flex-wrap:wrap;gap:10px;}
  .footer-bottom .links{display:flex;gap:20px;}

  /* Product content generator (fake data blocks) */
  .thumb.t1{background:linear-gradient(135deg,#5B3BE0,#B93BE0);}
  .thumb.t2{background:linear-gradient(135deg,#3B6EF6,#7B8CF6);}
  .thumb.t3{background:linear-gradient(135deg,#101828,#334066);}
  .thumb.t4{background:linear-gradient(135deg,#0EA5A5,#1E293B);}
  .thumb.t5{background:linear-gradient(135deg,#1E293B,#0F1B33);}
  .thumb.t6{background:linear-gradient(135deg,#F1F5F9,#E2E8F0);color:#0E1730;}
  .thumb.t7{background:linear-gradient(135deg,#E2E8F0,#CBD5E1);color:#0E1730;}
  .thumb.t8{background:linear-gradient(135deg,#111827,#7C3AED);}
  .thumb.t9{background:linear-gradient(135deg,#F97316,#1D4ED8);}
  .thumb.t10{background:linear-gradient(135deg,#312E81,#1E293B);}
  .thumb.t11{background:linear-gradient(135deg,#0F172A,#334155);}
  .thumb.t12{background:linear-gradient(135deg,#E2E8F0,#F8FAFC);color:#0E1730;}

  /* ---------- WARM LIGHT STYLE ---------- */
  body.style-warm{--blue-500:#F97316;--purple-500:#EF4444;--blue-600:#EA580C;}

  /* ---------- DARK MODE ---------- */
  body.theme-dark{background:#0B1220;}
  body.theme-dark header{background:rgba(11,18,32,.65);border-color:rgba(30,42,62,.7);}
  body.theme-dark .logo{color:#EDF1F9;}
  body.theme-dark .icon-btn{background:#131B2C;border-color:#232F45;color:#EDF1F9;}
  body.theme-dark .icon-btn .globe{stroke:#EDF1F9;}
  body.theme-dark .menu-trigger{background:#131B2C;border-color:#232F45;color:#EDF1F9;}
  body.theme-dark .menu-trigger .burger{stroke:#EDF1F9;}
  body.theme-dark .theme-icon.sun-icon{stroke:#EDF1F9;}
  body.theme-dark .theme-icon.moon-icon{fill:#EDF1F9;}
  body.theme-dark .menu-dropdown{background:#131B2C;border-color:#232F45;box-shadow:0 16px 34px rgba(0,0,0,.5);}
  body.theme-dark .menu-dropdown a{color:#C9D2E3;}
  body.theme-dark .menu-dropdown a:hover{background:#1B2436;color:#8FB4FF;}
  body.theme-dark .lang-option,
  body.theme-dark .theme-option,
  body.theme-dark .theme-style-option{color:#C9D2E3;}
  body.theme-dark .lang-option:hover,
  body.theme-dark .theme-option:hover,
  body.theme-dark .theme-style-option:hover{background:#1B2436;}
  body.theme-dark .lang-option.active,
  body.theme-dark .theme-option.active,
  body.theme-dark .theme-style-option.active{background:#1B2740;color:#8FB4FF;}
  body.theme-dark .theme-divider{background:#232F45;}
  body.theme-dark .theme-style-label{color:#6B7690;}
  body.theme-dark .theme-option .opt-icon.sun-icon{stroke:#9AA6BD;}
  body.theme-dark .theme-option .opt-icon.moon-icon{fill:#9AA6BD;}
  body.theme-dark .theme-option.active .opt-icon.sun-icon{stroke:#8FB4FF;}
  body.theme-dark .theme-option.active .opt-icon.moon-icon{fill:#8FB4FF;}
  body.theme-dark .theme-option .check-icon,
  body.theme-dark .theme-style-option .check-icon{stroke:#8FB4FF;}

  body.theme-dark .hero{background:linear-gradient(120deg,#111A2E 0%,#161022 60%,#1A1424 100%);}
  body.theme-dark .hero h1{color:#F1F4FA;}
  body.theme-dark .hero p{color:#9AA6BD;}
  body.theme-dark .search-bar{background:#131B2C;box-shadow:0 12px 30px rgba(0,0,0,.5);}
  body.theme-dark .search-bar input{color:#EDF1F9;}
  body.theme-dark .search-bar input::placeholder{color:#6B7690;}
  body.theme-dark .search-bar button{background:#1B263B;border-color:#232F45;}
  body.theme-dark .search-bar button svg{stroke:#EDF1F9;}
  body.theme-dark .search-bar button:hover{background:#22304A;}
  body.theme-dark .header-search-bar{background:#131B2C;border-color:#232F45;box-shadow:0 8px 20px rgba(0,0,0,.4);}
  body.theme-dark .header-search-bar input{color:#EDF1F9;}
  body.theme-dark .header-search-bar input::placeholder{color:#6B7690;}
  body.theme-dark .header-search-btn{background:#1B263B;border-color:#232F45;color:#EDF1F9;}
  body.theme-dark .header-search-btn svg{stroke:#EDF1F9;}
  body.theme-dark .header-search-btn:hover{background:#22304A;}
  body.theme-dark .header-search-icon{background:#1B263B;color:#EDF1F9;}
  body.theme-dark .header-search-icon svg{stroke:#EDF1F9;}

  body.theme-dark .filter-pill-btn{background:#131B2C;border-color:#232F45;color:#C9D2E3;}
  body.theme-dark .tab{background:#131B2C;border-color:#232F45;color:#9AA6BD;}
  body.theme-dark .tab.active{background:#3B6EF6;border-color:#3B6EF6;color:#fff;}
  body.theme-dark .view-toggle button{background:#131B2C;border-color:#232F45;color:#C9D2E3;}
  body.theme-dark .view-toggle button.active{background:#3B6EF6;border-color:#3B6EF6;color:#fff;}

  body.theme-dark .filter-field label{color:#EDF1F9;}
  body.theme-dark .filter-field .clear{color:#6B7690;}
  body.theme-dark .filter-field .field-box{border-color:#232F45;color:#6B7690;background:#131B2C;}
  body.theme-dark .filter-field select{color:#C9D2E3;}

  body.theme-dark .side-block{border-color:#232F45;}
  body.theme-dark .side-block h4{color:#EDF1F9;}
  body.theme-dark .radio-row{color:#C9D2E3;}
  body.theme-dark .radio-row .count{color:#6B7690;}

  body.theme-dark .card{background:#131B2C;border-color:#232F45;}
  body.theme-dark .card-body h3{color:#EDF1F9;}
  body.theme-dark .price-row{color:#9AA6BD;}
  body.theme-dark .price-row .price{color:#EDF1F9;}
  body.theme-dark .price-row .price .old{color:#6B7690;}
  body.theme-dark .demo-btn{background:#0E1524;border-color:#232F45;color:#C9D2E3;}
  body.theme-dark .thumb .heart{background:rgba(19,27,44,.85);color:#EDF1F9;}

  body.theme-dark .pagination button{background:#131B2C;border-color:#232F45;color:#C9D2E3;}
  body.theme-dark .pagination button.active{background:#3B6EF6;border-color:#3B6EF6;color:#fff;}

  body.theme-dark .resources{background:#0E1524;}
  body.theme-dark .res-head h2{color:#EDF1F9;}
  body.theme-dark .res-head p{color:#9AA6BD;}
  body.theme-dark .dots span{background:#232F45;}
  body.theme-dark .dots span.active{background:#3B6EF6;}

  @media(max-width:1024px){
    .grid{grid-template-columns:repeat(2,1fr);}
    .res-slider{grid-template-columns:repeat(2,1fr);}
    .footer-grid{grid-template-columns:1fr 1fr;}
    .sidebar{display:none;}
  }
  @media(max-width:640px){
    .menu-wrap{display:none;}
    .hero h1{font-size:28px;}
    .grid{grid-template-columns:1fr;}
    .res-slider{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr;}
  }

  /* ---------- AUTH MODAL (Register / Login popup) ---------- */
  .auth-overlay{
    position:fixed;inset:0;background:rgba(14,23,48,.55);backdrop-filter:blur(4px);
    display:none;align-items:center;justify-content:center;z-index:300;padding:20px;
  }
  .auth-overlay.show{display:flex;}
  .auth-modal{
    position:relative;background:#fff;border-radius:24px;padding:40px 40px 32px;
    max-width:440px;width:100%;box-shadow:0 30px 70px rgba(20,30,60,.28);
    max-height:92vh;overflow-y:auto;
    scrollbar-width:thin;
    scrollbar-color:rgba(139,110,240,.45) transparent;
  }
  .auth-modal::-webkit-scrollbar{width:6px;}
  .auth-modal::-webkit-scrollbar-track{background:transparent;}
  .auth-modal::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,var(--blue-500),var(--purple-500));
    border-radius:10px;
  }
  .auth-modal::-webkit-scrollbar-thumb:hover{background:var(--purple-500);}
  body.theme-dark .auth-modal{scrollbar-color:rgba(139,110,240,.55) transparent;}
  .auth-close{
    position:absolute;top:18px;right:18px;width:34px;height:34px;border-radius:50%;
    border:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;
    font-size:20px;color:var(--ink-500);line-height:1;transition:background .15s;
  }
  .auth-close:hover{background:var(--bg-soft);}
  .auth-logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:20px;color:var(--ink-900);margin-bottom:26px;}
  .auth-logo .dot{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--blue-500),var(--purple-500));display:inline-block;}
  .auth-view h2{font-size:24px;font-weight:800;margin:0 0 22px;color:var(--ink-900);}

  .auth-field{margin-bottom:18px;}
  .auth-field label{display:block;font-size:13px;font-weight:700;color:var(--ink-900);margin-bottom:7px;}
  .auth-field-box{position:relative;}
  .auth-field-box input{
    width:100%;border:1px solid var(--line);background:var(--bg-soft);border-radius:12px;
    padding:13px 42px 13px 15px;font-size:14px;color:var(--ink-900);outline:none;
    transition:border-color .15s,background .15s;
  }
  .auth-field-box input::placeholder{color:var(--ink-300);}
  .auth-field-box input:focus{border-color:var(--blue-500);background:#fff;}
  .auth-field-box svg{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;stroke:var(--ink-300);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}

  .auth-agree-row{display:flex;align-items:center;gap:9px;margin-bottom:20px;font-size:13.5px;color:var(--ink-500);}
  .auth-agree-row input{width:17px;height:17px;accent-color:var(--blue-500);}
  .auth-agree-row a{color:var(--blue-600);font-weight:600;}

  .auth-row-between{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;font-size:13.5px;color:var(--ink-500);flex-wrap:wrap;gap:8px;}
  .auth-row-between label{display:flex;align-items:center;gap:9px;}
  .auth-row-between input{width:17px;height:17px;accent-color:var(--blue-500);}
  .auth-row-between a{color:var(--blue-600);font-weight:600;}

  .auth-btn-gradient{
    width:100%;border:none;border-radius:14px;padding:14px;font-size:14.5px;font-weight:700;color:#fff;
    background:linear-gradient(120deg,#3fc7e8,var(--blue-500) 55%,var(--purple-500));
    box-shadow:0 14px 28px rgba(59,110,246,.28);margin-bottom:12px;transition:transform .15s,box-shadow .15s;
  }
  .auth-btn-gradient:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(59,110,246,.34);}

  .auth-btn-outline{
    width:100%;border:1px solid var(--line);border-radius:14px;padding:13px;font-size:14px;font-weight:600;
    background:#fff;color:var(--ink-700);display:flex;align-items:center;justify-content:center;gap:10px;
    transition:background .15s,border-color .15s;
  }
  .auth-btn-outline:hover{background:var(--bg-soft);border-color:#d7dce6;}

  .auth-switch-line{margin-top:20px;text-align:center;font-size:14px;color:var(--ink-500);}
  .auth-switch-line a{color:var(--blue-600);font-weight:700;}

  body.theme-dark .auth-modal{background:#0F1728;}
  body.theme-dark .auth-close{background:#131B2C;border-color:#232F45;color:#C9D2E3;}
  body.theme-dark .auth-logo{color:#EDF1F9;}
  body.theme-dark .auth-view h2{color:#EDF1F9;}
  body.theme-dark .auth-field label{color:#EDF1F9;}
  body.theme-dark .auth-field-box input{background:#131B2C;border-color:#232F45;color:#EDF1F9;}
  body.theme-dark .auth-field-box input::placeholder{color:#6B7690;}
  body.theme-dark .auth-btn-outline{background:#131B2C;border-color:#232F45;color:#EDF1F9;}
  body.theme-dark .auth-btn-outline:hover{background:#1B2438;}
