/* =========================================
   1. GLOBAL THEME VARIABLES (Merged)
   ========================================= */
:root[data-theme="light"] {
  /* Core Colors */
  --sb-bg: #F5F6F8;
  --sb-surface: #FFFFFF;
  --sb-card: #FFFFFF;
  --sb-soft: #F0F2F6;
  --sb-elev: #E6E8EE;
  --sb-text: #0E1116;
  --sb-muted: #5F6B7A;
  --sb-red: #E30613;
  --sb-red2: #FF2833;
  --sb-accent: #FFCF4D;

  /* New: Glass/Switcher Specifics (Light Mode) */
  --glass-bg: rgba(0, 0, 0, 0.05);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-hover: rgba(0, 0, 0, 0.1);
  --icon-color: #6b7280;
}

:root[data-theme="dark"] {
  /* Core Colors */
  --sb-bg: #0F1216;
  --sb-surface: #151A21;
  --sb-card: #171D25;
  --sb-soft: #12171F;
  --sb-elev: #263041;
  --sb-text: #F5F7FA;
  --sb-muted: #AAB4C3;
  --sb-red: #E30613;
  --sb-red2: #FF2833;
  --sb-accent: #FFCF4D;

  /* New: Glass/Switcher Specifics (Dark Mode) */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --icon-color: #9ca3af;
}

/* =========================================
   2. BASE STYLES
   ========================================= */
* { box-sizing: border-box; min-width: 0; }
html, body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  color: var(--sb-text);
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 700px at 110% -10%, rgba(255, 214, 102, .12), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(255, 40, 51, .06), transparent 60%),
    var(--sb-bg);
}

a { color: #B4000B; text-decoration: none; transition: 0.2s; }
a:hover { color: #7a0007; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (max-width:480px) { .container { padding: 0 12px; } }

/* =========================================
   3. TOPBAR & COMPONENTS
   ========================================= */
.topbar { background: var(--sb-surface); border-bottom: 1px solid var(--sb-elev); }
.topbar .inner { display: flex; gap: 10px; justify-content: space-between; align-items: center; min-height: 40px; font-size: 13px; color: #495467; flex-wrap: wrap; padding: 6px 0; }
.topbar .left, .topbar .right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Mobile Optimization */
@media (max-width: 768px) {
  .topbar .inner {
    margin-left: 0 !important;   /* Remove the 70px side margin */
    justify-content: center;     /* Push everything to the center */
    text-align: center;          /* Ensure text is aligned */
    padding: 10px 20px;          /* Add safe padding for mobile screens */
  }
}


/* --- NEW: Language Switcher Capsule --- */
.lang-switcher-container {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  display: inline-flex;
  transition: background-color 0.3s ease, border-color 0.3s ease;
   margin-left: 14px;
}

.lang-link {
  color: var(--sb-muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 50px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  line-height: 1;
}

.lang-link:hover {
  color: var(--sb-text);
  background-color: var(--glass-hover);
}

.lang-link.active {
  background-color: var(--sb-red);
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* --- NEW: Icon Buttons (Login/Register) --- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  
  /* Use merged theme variables */
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--icon-color);
  
  margin-left: 8px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background-color: var(--glass-hover);
  color: var(--sb-text);
  border-color: var(--sb-muted); /* Slightly visible border on hover */
}

/* Register Button (Red Highlight) */
.icon-btn.register {
  color: var(--sb-red);
  border-color: rgba(227, 6, 19, 0.3);
}

.icon-btn.register:hover {
  background-color: var(--sb-red);
  color: #fff;
  border-color: var(--sb-red);
  box-shadow: 0 0 8px rgba(227, 6, 19, 0.4);
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--sb-elev); transition: all .25s; }
:root[data-theme="dark"] .header { background: rgba(21, 26, 33, .9); }
.header.shrink .inner { height: 58px; }
.header .inner { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height .25s; gap: 10px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--sb-text); min-width: 0; }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sb-red); box-shadow: 0 0 0 6px rgba(227, 6, 19, .12), 0 0 18px rgba(227, 6, 19, .25); }

.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { padding: 10px 12px; border-radius: 10px; color: var(--sb-text); }
.nav a:hover { background: var(--sb-surface); border: 1px solid var(--sb-elev); }
.nav a[data-active="true"] { position: relative; }
.nav a[data-active="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--sb-red), var(--sb-red2)); }

/* Dropdown Menu */
.nav .mega { position: relative; }
.nav .mega:hover .menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav .menu { position: absolute; top: 120%; left: 0; background: var(--sb-surface); border: 1px solid var(--sb-elev); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .08); padding: 12px; min-width: 280px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: .2s; }
.menu a { display: block; padding: 8px 10px; border-radius: 8px; }
.menu a:hover { background: #F7F9FC; }
:root[data-theme="dark"] .menu a:hover { background: #1d2430; }
.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
    
    /* 👇 This pushes the actions group to the FAR RIGHT */
    margin-left: auto !important; 
    
    /* ❌ Remove margin-right: auto; */
}
/* Search Bar */
.search { display: flex; align-items: center; background: var(--sb-surface); border: 1px solid var(--sb-elev); border-radius: 12px; padding: 8px 10px; gap: 8px; max-width: 100%; }
.search input { border: none; outline: none; background: transparent; min-width: 120px; color: var(--sb-text); width: 180px; }
@media (max-width:420px) { .search input { width: 120px; } }

/* Buttons */
.btn { background: linear-gradient(180deg, var(--sb-red2), var(--sb-red)); color: #fff; border: none; border-radius: 12px; padding: 10px 16px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(227, 6, 19, .18), inset 0 -2px 0 rgba(0, 0, 0, .08); max-width: 100%; }
.btn.secondary { background: var(--sb-surface); border: 1px solid var(--sb-elev); color: var(--sb-text); box-shadow: none; }
.btn:disabled { opacity: .65; cursor: not-allowed; }

/* Mobile Drawer Toggle */
.mobile-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--sb-elev); border-radius: 10px; background: var(--sb-surface); }
.mobile-toggle svg { width: 22px; height: 22px; }

/* =========================================
   5. MOBILE MENU
   ========================================= */
.m-overlay { position: fixed; inset: 0; background: rgba(6, 13, 23, .45); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: .2s; z-index: 1400; }
.m-overlay.show { opacity: 1; pointer-events: auto; }

.m-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 86%; max-width: 360px; background: var(--sb-surface); border-left: 1px solid var(--sb-elev); box-shadow: 0 28px 80px rgba(0, 0, 0, .16); transform: translateX(100%); transition: .25s; z-index: 1500; display: flex; flex-direction: column; }
.m-drawer.open { transform: translateX(0); }
.m-head { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--sb-elev); }
.m-links { display: flex; flex-direction: column; padding: 10px; }
.m-links a, .m-links button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--sb-elev); background: var(--sb-surface); color: var(--sb-text); font-weight: 700; margin-bottom: 10px; width: 100%; }
.m-links .subtle { border-style: dashed; }
.m-footer { margin-top: auto; padding: 12px; border-top: 1px solid var(--sb-elev); display: flex; gap: 10px; }
.m-search { display: flex; gap: 8px; padding: 0 12px 12px; }
.m-search input { flex: 1; border: 1px solid var(--sb-elev); border-radius: 10px; padding: 10px; background: var(--sb-surface); color: var(--sb-text); min-width: 0; max-width: 100%; }
@media (max-width:480px) { .m-drawer { width: 100%; max-width: none; } }

/* =========================================
   6. HERO & CONTENT
   ========================================= */
.hero { padding: 16px 0; }
.banner { border-radius: 18px; overflow: hidden; border: 1px solid var(--sb-elev); box-shadow: 0 10px 30px rgba(16, 22, 30, .06); padding: 22px 18px; background: linear-gradient(160deg, rgba(255, 40, 51, .12), rgba(255, 255, 255, 0) 45%), linear-gradient(0deg, rgba(0, 0, 0, .02), transparent 60%), var(--sb-surface); }
.banner h1 { margin: 0 0 6px; font-size: clamp(22px, 4vw, 44px); }
.banner p { margin: 0; color: #3a404a; }
.banners { margin-top: 12px; display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width:960px) { .banners { grid-template-columns: 1fr; } }

.bn { background: var(--sb-surface); border: 1px solid var(--sb-elev); border-radius: 16px; padding: 16px; box-shadow: 0 8px 24px rgba(17, 22, 30, .05); display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.bn h3 { margin: 0 0 6px; }
.bn p { margin: 0 0 10px; color: #5c6472; }

/* Info Strips */
.infostrip { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width:640px) { .infostrip { grid-template-columns: 1fr; } }
.iitem { background: var(--sb-surface); border: 1px solid var(--sb-elev); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 16px rgba(17, 22, 30, .03); min-width: 0; }
.iitem b { font-size: 18px; white-space: nowrap; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width:640px) { .cat-grid { grid-template-columns: 1fr; } }
.cat { background: var(--sb-surface); border: 1px solid var(--sb-elev); border-radius: 14px; padding: 16px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--sb-text); box-shadow: 0 6px 18px rgba(17, 22, 30, .04); min-width: 0; }
.cat small { color: var(--sb-muted); font-weight: 600; }

/* Cards & Grid */
.section { padding: 20px 0; }
.section h3 { margin: 6px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width:960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:640px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--sb-card); border: 1px solid var(--sb-elev); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 26px rgba(17, 22, 30, .05); min-width: 0; }
.card .img { aspect-ratio: 16/9; background: var(--sb-soft); display: flex; align-items: center; justify-content: center; color: #5c6472; font-weight: 800; font-size: 18px; letter-spacing: .4px; }
.card .body { padding: 14px; }
.row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--sb-muted); }
.pill { background: var(--sb-surface); border: 1px solid var(--sb-elev); padding: 8px 10px; border-radius: 10px; font-weight: 800; color: var(--sb-text); max-width: 100%; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.progress { height: 8px; background: #EEF1F5; border: 1px solid var(--sb-elev); border-radius: 999px; overflow: hidden; }
.progress>span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sb-accent), #FFF7A1); transition: width .2s; }

/* =========================================
   7. MODAL
   ========================================= */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(6, 13, 23, .35); z-index: 2000; padding: 16px; }
.modal.open { display: flex; }
.panel { background: var(--sb-surface); border: 1px solid var(--sb-elev); border-radius: 18px; max-width: 1100px; width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, .10); overflow: hidden; color: var(--sb-text); }
.panel .top { display: grid; grid-template-columns: 1.2fr 1.1fr 1fr; }
@media (max-width:960px) { .panel .top { grid-template-columns: 1fr; } }
.gallery { background: #FAFBFD; min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 18px; }
:root[data-theme="dark"] .gallery { background: #111720; }
.glow { width: 100%; height: 100%; border: 1px dashed #D9DEE7; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #667288; font-weight: 800; text-align: center; padding: 10px; }
.center { padding: 16px; border-left: 1px solid var(--sb-elev); border-right: 1px solid var(--sb-elev); background: var(--sb-surface); }
@media (max-width:960px) { .center { border-left: none; border-right: none; border-top: 1px solid var(--sb-elev); border-bottom: 1px solid var(--sb-elev); } }
.right { padding: 16px; background: var(--sb-surface); }
.title { margin: 0 0 6px; font-size: 26px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width:420px) { .kv { grid-template-columns: 1fr; } }
.kv .item { display: flex; gap: 8px; align-items: center; background: #FAFBFD; border: 1px solid var(--sb-elev); border-radius: 12px; padding: 8px 10px; min-width: 0; }
:root[data-theme="dark"] .kv .item { background: #0f141d; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.badges .tag { background: var(--sb-surface); border: 1px solid var(--sb-elev); border-radius: 999px; padding: 6px 10px; font-weight: 700; color: var(--sb-text); max-width: 100%; }
.center .desc { margin-top: 10px; color: #253041; line-height: 1.55; }
:root[data-theme="dark"] .center .desc { color: #cfd6e3; }

.qty { display: flex; gap: 10px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
select { background: var(--sb-surface); border: 1px solid var(--sb-elev); color: var(--sb-text); padding: 8px 10px; border-radius: 10px; max-width: 100%; }
.range-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; }
@media (max-width:420px) { .range-wrap { min-width: 0; } }
input[type="range"] { appearance: none; width: 100%; height: 10px; background: #EEF1F5; border: 1px solid var(--sb-elev); border-radius: 999px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, var(--sb-red2), var(--sb-red)); border: 1px solid #9b0b12; box-shadow: 0 0 0 4px rgba(227, 6, 19, .15); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, var(--sb-red2), var(--sb-red)); border: 1px solid #9b0b12; box-shadow: 0 0 0 4px rgba(227, 6, 19, .15); }
.codes { background: #FAFBFD; border: 1px dashed #D9DEE7; border-radius: 12px; padding: 10px; max-height: 180px; overflow: auto; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--sb-text); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
:root[data-theme="dark"] .codes { background: #0f141d; border-color: #334057; }

/* =========================================
   8. FOOTER
   ========================================= */
footer { margin-top: 30px; background: var(--sb-surface); border-top: 1px solid var(--sb-elev); }
.foot-cta .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.foot-badges .inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; }
.foot-badges .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.trust { display: flex; gap: 8px; align-items: center; border: 1px solid var(--sb-elev); border-radius: 12px; padding: 8px 10px; background: var(--sb-surface); max-width: 100%; }
.payments svg { width: 36px; height: 22px; }
.foot-links { padding: 24px 0; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; }
@media (max-width:960px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width:640px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-col h5 { margin: 0 0 10px; }
.foot-col a { display: block; padding: 6px 0; color: #253041; word-break: break-word; }
:root[data-theme="dark"] .foot-col a { color: #cfd6e3; }
.newsletter { background: #FAFBFD; border: 1px solid var(--sb-elev); border-radius: 14px; padding: 10px; }
:root[data-theme="dark"] .newsletter { background: #0f141d; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { flex: 1; border: 1px solid var(--sb-elev); border-radius: 10px; padding: 10px; background: var(--sb-surface); color: var(--sb-text); min-width: 200px; max-width: 100%; }
.foot-bottom { border-top: 1px solid var(--sb-elev); padding: 12px 0; color: #5f6b7a; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--sb-elev); border-radius: 10px; background: var(--sb-surface); }
.toTop { position: fixed; right: 14px; bottom: 14px; border: 1px solid var(--sb-elev); background: var(--sb-surface); border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .08); cursor: pointer; display: none; }

/* Responsive Adjustments */
@media (max-width:1200px) {
  .header .inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
  .nav { display: none; }
  .actions .search, .actions a.btn, .actions #openVerify, .actions #themeToggle { display: none; }
  .mobile-toggle { display: inline-flex; }
}
@media (max-width:1100px) { .nav .menu { left: auto; right: 0; } }














  /* --- 1. THEME VARIABLES (Light by Default) --- */
  /* --- 1. THEME VARIABLES --- */
  :root {
    --f-bg: #ffffff;
    --f-bg-alt: #f9fafb;
    --f-text: #374151;
    --f-heading: #111827;
    --f-border: #e5e7eb;
    --f-accent: #e50914;
    /* Brand Red */
    --f-hover-bg: #f3f4f6;
  }

  /* --- DARK MODE OVERRIDES --- */
  [data-theme="dark"] {
    --f-bg: #161920;
    --f-bg-alt: #1f242d;
    --f-text: #d1d5db;
    --f-heading: #ffffff;
    --f-border: #374151;
    --f-hover-bg: #2d3748;
  }

  /* --- BASE FOOTER STRUCTURE --- */
  .site-footer {
    background-color: var(--f-bg);
    color: var(--f-text);
    border-top: 1px solid var(--f-border);
    margin-top: 60px;
    font-family: system-ui, -apple-system, sans-serif;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* --- CTA SECTION --- */
  .foot-cta {
    background-color: var(--f-bg);
    border-bottom: 1px solid var(--f-border);
    padding: 30px 0;
  }

  .foot-cta .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .cta-text h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--f-heading);
  }

  .cta-text p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.8;
  }

  .cta-buttons {
    display: flex;
    gap: 10px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
  }

  .btn-primary {
    background: var(--f-accent);
    color: white;
    border: none;
  }

  .btn-primary:hover {
    opacity: 0.9;
  }

  .btn-secondary {
    background: var(--f-bg-alt);
    color: var(--f-heading);
    border: 1px solid var(--f-border);
  }

  .btn-secondary:hover {
    border-color: var(--f-heading);
  }

  /* --- BADGES & PAYMENTS --- */
  .foot-badges {
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--f-border) !important;
    background-color: var(--f-bg-alt);
  }

  .foot-badges .inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
  }

  .badge-row,
  .payment-row {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  /* Trust Badges (Pills) */
  .trust-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 15px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;

    /* Light/Dark Logic managed via variables above would be cleaner, 
       but using important as requested for specific override */
    background: var(--f-bg) !important;
    border: 1px solid var(--f-border) !important;
    color: var(--f-text) !important;
  }

  /* --- MAIN COLUMNS --- */
  .foot-links {
    padding: 50px 0;
  }

  .foot-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 10px;
  }

  .foot-col h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--f-heading);
  }

  .muted {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 15px;
  }

  /* Link Lists */
  .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .link-list li {
    margin-bottom: 10px;
  }

  .link-list a {
    text-decoration: none;
    color: var(--f-text);
    font-size: 14px;
    transition: 0.2s;
  }

  .link-list a:hover {
    color: var(--f-accent);
    padding-left: 5px;
  }

  /* Newsletter Form */
  .newsletter-form {
    display: flex;
    background: var(--f-bg);
    border: 1px solid var(--f-border);
    border-radius: 8px;
    overflow: hidden;
  }

  .newsletter-form input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    background: transparent;
    color: var(--f-text);
  }

  .newsletter-form button {
    background: var(--f-accent);
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  /* --- SOCIAL ICONS (Fixed & Centered) --- */
  .social-row {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .social-btn {
    /* Shape & Size */
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;

    /* Flex Center Logic */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Visuals */
    background: var(--f-bg-alt) !important;
    color: var(--f-heading) !important;
    border: 1px solid var(--f-border) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
  }

  /* Ensure Icon inside is Centered */
  .social-btn svg {
    display: block !important;
    margin: 0 !important;
  }

  /* Hover State */
  .social-btn:hover {
    background: var(--f-accent) !important;
    color: #ffffff !important;
    border-color: var(--f-accent) !important;
    transform: translateY(-3px) !important;
  }

  /* --- BOTTOM COPYRIGHT --- */
  .foot-bottom {
    border-top: 1px solid var(--f-border);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--f-text);
    opacity: 0.8;
  }

  /* --- RESPONSIVE MEDIA QUERIES --- */

  /* Tablet (2 Columns) */
  @media (max-width: 900px) {
    .foot-cols {
      grid-template-columns: 1fr 1fr;
    }
  }

  /* Mobile (1 Column Stack) */
  @media (max-width: 600px) {

    /* Stack CTA */
    .foot-cta .inner {
      flex-direction: column;
      text-align: center;
    }

    /* Stack Badges */
    .foot-badges .inner {
      flex-direction: column;
      align-items: center;
    }

    .badge-row,
    .payment-row {
      justify-content: center;
      width: 100%;
    }

    /* Stack Main Columns */
    .foot-cols {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 30px;
    }

    /* Center Social Icons on Mobile */
    .social-row {
      justify-content: center !important;
    }

    /* Remove hover slide effect on touch */
    .link-list a:hover {
      padding-left: 0;
      color: var(--f-accent);
    }

    .foot-bottom {
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }



  }

  /* --- MOBILE OPTIMIZATIONS (Max Width 768px) --- */
  @media (max-width: 768px) {

    /* 1. Use 2 Columns for Links (Ajutor & Legal) */
    .foot-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      /* Two equal columns */
      gap: 30px 15px;
      /* Vertical gap 30px, Horizontal gap 15px */
      text-align: left;
      /* Align text to the left */
    }

    /* 2. Make Brand & Social Full Width */
    .foot-col:first-child,
    /* Despre  */
    .foot-col:last-child {
      /* Social */
      grid-column: 1 / -1;
      /* Span full width */
      text-align: center;
      /* Keep center alignment for Brand/Social */
    }

    /* 3. Align Headings & Lists properly */
    .foot-col h5 {
      font-size: 15px;
      margin-bottom: 15px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* Force Lists to Left Align inside the 2-column grid */
    .foot-col:nth-child(2) h5,
    .foot-col:nth-child(2) ul,
    .foot-col:nth-child(3) h5,
    .foot-col:nth-child(3) ul {
      text-align: left;
    }

    /* 4. Center Social Icons */
    .social-row {
      justify-content: center;
      margin-top: 10px;
    }

    /* 5. Fix Badges Stacking */
    .foot-badges .inner {
      flex-direction: column;
      gap: 15px;
    }

    .badge-row {
      justify-content: center;
      flex-wrap: wrap;
    }
  }











  

  /* Drawer Container */
  .m-drawer {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    /* Light background like screenshot */
    height: 100vh;
  }

  .m-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Space between cards */
  }

  /* THE "CARD" STYLE (Matches your screenshot) */
  .m-card {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }

  .m-card:active {
    transform: scale(0.98);
  }

  /* Contact Cards Specifics */
  .contact-card {
    color: #4b5563;
    /* Slightly greyer text */
    font-size: 14px;
  }

  /* Auth Grid (Side by Side) */
  .m-auth-grid {
    display: flex;
    gap: 10px;
  }

  .auth-btn {
    justify-content: center;
    /* Center text */
    text-align: center;
  }

  /* Register Button Highlight */
  .auth-btn.register {
    background: #111;
    color: #fff;
    border-color: #111;
  }

  /* Logout Button */
  .auth-card.logout {
    color: #ef4444;
    /* Red text */
    background: #fff;
  }

  /* Divider */
  .m-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 10px 0;
  }

  /* Footer Fixed at Bottom */
  .m-footer {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
  }

  .btn-main-cta {
    display: block;
    width: 100%;
    background: #e50914;
    /* Red CTA */
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
  }

  /* Dark Mode Support (Optional, prevents white flash in dark theme) */
  [data-theme="dark"] .m-drawer {
    background: #161920;
  }

  [data-theme="dark"] .m-card,
  [data-theme="dark"] .m-footer {
    background: #1f242d;
    border-color: #2d3748;
    color: #fff;
  }

  [data-theme="dark"] .contact-card {
    color: #a0aec0;
  }




/* Container Spacing */
.bootstrap-search-container {
    padding: 0 20px;       /* Matches the side padding of other items */
    margin: 20px 0 20px 0; /* Vertical spacing */
}

/* The White Box (Acts like form-control) */
.input-group-custom {
    display: flex;
    align-items: center;
    width: 100%;
    height: 45px;          /* Fixed height like your other buttons */
    background-color: #fff;
    border: 1px solid #ced4da; /* Bootstrap standard gray border */
    border-radius: 12px;   /* Matches your other menu cards */
    overflow: hidden;
    transition: border-color 0.2s;
}

/* Hover/Focus State */
.input-group-custom:focus-within {
    border-color: #86b7fe; /* Bootstrap focus blue */
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* The Icon */
.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 15px;
    padding-right: 10px;
    color: #6c757d; /* Muted text color */
}

/* The Input Field */
.input-group-custom input {
    flex: 1;              /* Take remaining width */
    border: none !important; /* CRITICAL: Removes the inner box border */
    outline: none !important;
    background: transparent;
    height: 100%;
    font-size: 14px;
    color: #212529;
    padding-right: 15px;
}


/* Button Styles for Footer */
.btn-main-cta {
    background: #e50914;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: flex; align-items: center; justify-content: center;
}

.btn-secondary-cta {
    background: #e9ecef;
    color: #333;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: flex; align-items: center; justify-content: center;
}





@media(max-width: 768px) {
    .topbar .right span {
        display: none;
    }
}




/* ================================
   PAGE TEMPLATE (BREADCRUMB + PANEL)
   ================================ */

/* Breadcrumb */
.page-breadcrumb {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sb-muted);
}

.page-breadcrumb a {
    color: var(--sb-muted);
    text-decoration: none;
}

.page-breadcrumb .sep {
    color: var(--sb-muted);
}

.page-breadcrumb .current {
    font-weight: 700;
    color: var(--sb-text);
}

/* Page Wrapper */
.page-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* Page Panel */
.page-panel {
    background: var(--sb-surface);
    border: 1px solid var(--sb-elev);
    border-radius: 14px;
    padding: 35px 40px;
    color: var(--sb-text);
}

/* Title */
.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--sb-text);
}

/* Subtitle */
.page-subtitle {
    font-size: 15px;
    margin-bottom: 25px;
    color: var(--sb-muted);
}

/* Content */
.page-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--sb-text);
}

.page-content p {
    margin-bottom: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-panel {
        padding: 22px 20px;
    }
    .page-title {
        font-size: 26px;
    }
    .page-breadcrumb {
        justify-content: center;
    }
}



/* ================================
   CHECKOUT PAGE (THEMED)
================================ */

.checkout-page {
    max-width: 1150px;
    margin: 40px auto;
    padding: 10px;
    color: var(--sb-text);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: var(--sb-muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--sb-muted); text-decoration: none; }
.breadcrumb .sep { margin: 0 5px; }
.breadcrumb .current { font-weight: 700; color: var(--sb-text); }

/* Grid Layout */
.checkout-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Left Panel */
.checkout-panel {
    flex: 2;
    min-width: 300px;
    background: var(--sb-surface);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--sb-elev);
}

.panel-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--sb-text);
}

.logged-in-info,
.error-box,
.email-status {
    font-size: 14px;
    margin-bottom: 15px;
}

.error-box { color: #ff4444; }
.email-status.ok { color: #44ff44; }
.email-status.warn { color: #ffbb33; }
.email-status.error { color: #ff4444; }

/* Form Grid */
.form-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.form-block {
    flex: 1;
    min-width: 260px;
    margin-bottom: 18px;
}
.form-block label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}
.form-block input {
    width: 100%;
    padding: 12px;
    background: var(--sb-soft);
    border: 1px solid var(--sb-elev);
    border-radius: 8px;
    color: var(--sb-text);
    font-size: 14px;
}

/* Submit Button */
.checkout-btn {
    margin-top: 10px;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: linear-gradient(180deg, var(--sb-red2), var(--sb-red));
    border: none;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(227, 6, 19, .18);
}

/* Summary Panel */
.summary-panel {
    flex: 1;
    min-width: 260px;
    background: var(--sb-surface);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--sb-elev);
    color: var(--sb-text);
}

.summary-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
}

.divider {
    border-color: var(--sb-elev);
    margin: 15px 0;
}

.total {
    font-size: 20px;
    font-weight: 800;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .checkout-grid {
        flex-direction: column;
    }
}
