/* ---------------------------------------------------
    GLOBAL THEME COLORS
    COREBYTE — IMPROVED BUILD
--------------------------------------------------- */
:root {
  /* Palette — UNCHANGED */
  --c-sky:    #A0D2EB;
  --c-ice:    #E5EAF5;
  --c-lav:    #D0BDF4;
  --c-purple: #8458B3;
  --c-slate:  #494D5F;

  /* Semantic aliases */
  --color-primary:    var(--c-sky);
  --color-secondary:  var(--c-ice);
  --color-accent:     var(--c-lav);
  --color-highlight:  var(--c-purple);
  --color-dark:       var(--c-slate);
  --color-background: #1c1f27;

  /* Surfaces */
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);

  /* Borders */
  --border:        rgba(208, 189, 244, 0.22);
  --border-strong: rgba(208, 189, 244, 0.35);

  /* Text */
  --text:       var(--c-ice);
  --text-muted: rgba(229, 234, 245, 0.78);

  /* Shadows */
  --shadow-subtle: 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 20px 55px rgba(0, 0, 0, 0.55);

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  /* Spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;

  /* Hover system */
  --hover-bg:         rgba(229, 234, 245, 0.10);
  --hover-border:     rgba(208, 189, 244, 0.35);
  --hover-shadow:     0 12px 28px rgba(0, 0, 0, 0.35);
  --hover-translate:  -2px;
  --hover-transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav height — used for sticky offsets */
  --nav-height: 66px;
}

/* Light mode */
.light-mode {
  --color-background: #F7F8FC;
  --color-dark:       #FFFFFF;
  --surface-1:        #FFFFFF;
  --surface-2:        #F1F3FB;
  --border:           rgba(73, 77, 95, 0.18);
  --border-strong:    rgba(73, 77, 95, 0.28);
  --text:             #1b1e27;
  --text-muted:       rgba(27, 30, 39, 0.72);
  --shadow-subtle:    0 10px 24px rgba(0, 0, 0, 0.12);
  --shadow-strong:    0 20px 55px rgba(0, 0, 0, 0.18);
}


/* ---------------------------------------------------
    GLOBAL RESET + BASE
--------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.light .user-dropdown,
.light .profile-dropdown,
.light .account-dropdown,
body.light .user-dropdown,
body.light .profile-dropdown,
body.light .account-dropdown {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(120, 120, 160, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}



body {
  background:
    radial-gradient(1100px 650px at 18% 0%,  rgba(132, 88, 179, 0.22), transparent 60%),
    radial-gradient(900px  520px at 88% 12%, rgba(160, 210, 235, 0.16), transparent 55%),
    var(--color-background);
  color: var(--color-secondary);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::selection { background: rgba(208, 189, 244, 0.35); }

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ---------------------------------------------------
    NAV BAR
--------------------------------------------------- */

/* Wrapper */
.cb-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(28, 31, 39, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(208, 189, 244, 0.14);
  box-shadow: 0 1px 0 rgba(208, 189, 244, 0.08), var(--shadow-subtle);
}

/* Inner container */
.cb-nav__container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Brand */
.cb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.cb-brand__logo {
  height: 36px;
  width: auto;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.cb-brand__logo:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.cb-brand__text {
  font-size: 18px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Nav links list */
.cb-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

/* Individual nav link */
.cb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  transition:
    background-color var(--hover-transition),
    color            var(--hover-transition);
}

.cb-link:hover {
  background: rgba(229, 234, 245, 0.07);
  color: var(--c-ice);
}

.cb-link.is-active {
  color: var(--color-primary);
  background: rgba(160, 210, 235, 0.10);
  font-weight: 700;
}

.cb-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* ---------------------------------------------------
    LIGHT MODE NAVBAR + DROPDOWN FIX
--------------------------------------------------- */

/* Navbar background */
.light-mode .cb-nav {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(120, 120, 160, 0.14);
  box-shadow: 0 1px 0 rgba(120, 120, 160, 0.06), var(--shadow-subtle);
}

/* Brand text */
.light-mode .cb-brand__text {
  color: #6eaed6;
}

/* Main nav links */
.light-mode .cb-link {
  color: #3a4254;
}

.light-mode .cb-link:hover {
  background: rgba(132, 88, 179, 0.08);
  color: #6f42c1;
}

.light-mode .cb-link.is-active {
  color: #6f42c1;
  background: rgba(132, 88, 179, 0.10);
}

/* User avatar button */
.light-mode .cb-user__btn:hover {
  box-shadow: 0 0 0 3px rgba(132, 88, 179, 0.18);
}

.light-mode .cb-user__avatar {
  border-color: rgba(132, 88, 179, 0.38);
}

.light-mode .cb-user__btn:hover .cb-user__avatar {
  border-color: #8458b3;
}

/* REAL dropdown menu */
.light-mode .cb-user__menu {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(120, 120, 160, 0.18);
  box-shadow:
    0 0 0 1px rgba(120, 120, 160, 0.04),
    0 20px 40px rgba(0, 0, 0, 0.14),
    0 8px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Header text inside dropdown */
.light-mode .cb-user__header {
  border-bottom: 1px solid rgba(120, 120, 160, 0.14);
}

.light-mode .cb-user__name {
  color: #1f2433;
}

.light-mode .cb-user__email {
  color: #5f677a;
  opacity: 1;
}

.light-mode .cb-user__divider {
  background: rgba(120, 120, 160, 0.12);
}

/* Dropdown links */
.light-mode .cb-user__menu a {
  color: #2f3545;
}

.light-mode .cb-user__menu a:hover {
  background: rgba(132, 88, 179, 0.08);
  color: #6f42c1;
  border-color: rgba(132, 88, 179, 0.16);
}

/* Admin links */
.light-mode .cb-user__menu .admin-item {
  color: #c75f5f !important;
}

.light-mode .cb-user__menu .admin-item:hover {
  background: rgba(255, 80, 80, 0.08) !important;
  border-color: rgba(255, 80, 80, 0.16) !important;
  color: #b94a4a !important;
}

/* Logout link */
.light-mode .cb-user__menu a[href*="logout"] {
  color: #6b7280;
}

.light-mode .cb-user__menu a[href*="logout"]:hover {
  color: #d14b4b;
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 80, 80, 0.16);
}

/* Burger button */
.light-mode .cb-burger {
  color: #4a5263;
  border-color: rgba(120, 120, 160, 0.20);
}

.light-mode .cb-burger:hover {
  background: rgba(132, 88, 179, 0.08);
  color: #6f42c1;
  border-color: rgba(132, 88, 179, 0.24);
}

/* Notification badge on a link */
.notification {
  background-color: var(--color-highlight);
  color: var(--c-ice);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Basket link + badge */
.basket-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.basket-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(132, 88, 179, 0.35);
  border: 1px solid rgba(132, 88, 179, 0.55);
  color: var(--c-ice);
}

/* User area */
.cb-user {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* User button */
.cb-user__btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cb-user__btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 0 3px rgba(208, 189, 244, 0.22);
}

/* Avatar */
.cb-user__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid rgba(208, 189, 244, 0.55);
  object-fit: cover;
  transition: border-color 0.2s ease;
}

.cb-user__btn:hover .cb-user__avatar {
  border-color: var(--color-accent);
}

/* =======================================
   DROPDOWN MENU — REDESIGNED
======================================= */
.cb-user__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 220px;

  background: rgba(22, 25, 35, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(208, 189, 244, 0.16);
  border-radius: 16px;
  padding: 6px;
  z-index: 99999;

  box-shadow:
    0 0 0 1px rgba(208, 189, 244, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.60),
    0 8px 16px rgba(0, 0, 0, 0.30);

  animation: dropdownOpen 0.2s cubic-bezier(0.34, 1.26, 0.64, 1) both;
  transform-origin: top right;
}

@keyframes dropdownOpen {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* User header */
.cb-user__header {
  padding: 12px 12px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(208, 189, 244, 0.10);
}

.cb-user__name {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: var(--c-ice);
  letter-spacing: 0.1px;
}

.cb-user__email {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
  opacity: 0.8;
}

/* Dropdown section divider */
.cb-user__divider {
  height: 1px;
  background: rgba(208, 189, 244, 0.10);
  margin: 4px 6px;
}

/* Dropdown links */
.cb-user__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid transparent;
  position: relative;
  transition:
    background-color   0.15s ease,
    color              0.15s ease,
    border-color       0.15s ease,
    transform          0.15s ease;
}

.cb-user__menu a:hover {
  background: rgba(229, 234, 245, 0.07);
  color: var(--c-ice);
  border-color: rgba(208, 189, 244, 0.12);
  transform: translateX(2px);
}

.cb-user__menu a:active {
  transform: translateX(1px) scale(0.99);
}

/* Admin links — subtle red tint, NOT a solid block */
.admin-item {
  color: rgba(255, 140, 140, 0.85) !important;
}

.admin-item:hover {
  background: rgba(255, 80, 80, 0.08) !important;
  border-color: rgba(255, 80, 80, 0.20) !important;
  color: #ff9898 !important;
}

/* Sign out — slightly muted */
.cb-user__menu a[href*="logout"] {
  color: rgba(229, 234, 245, 0.55);
  margin-top: 2px;
}

.cb-user__menu a[href*="logout"]:hover {
  color: #ff8080;
  background: rgba(255, 80, 80, 0.07);
  border-color: rgba(255, 80, 80, 0.16);
}

/* Hamburger button */
.cb-burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(208, 189, 244, 0.20);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 18px;
  padding: 7px 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color var(--hover-transition),
    color            var(--hover-transition),
    border-color     var(--hover-transition);
}

.cb-burger:hover {
  background: rgba(229, 234, 245, 0.07);
  color: var(--c-ice);
  border-color: rgba(208, 189, 244, 0.28);
}


/* ---------------------------------------------------
    NAV — RESPONSIVE
--------------------------------------------------- */
@media (max-width: 900px) {
  .cb-burger { display: flex; align-items: center; }

  .cb-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: rgba(22, 25, 35, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(208, 189, 244, 0.14);
    box-shadow: var(--shadow-strong);
    z-index: 9998;
  }

  .cb-links.is-open { display: flex; }

  .cb-link {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-muted);
  }

  .cb-link:hover {
    color: var(--c-ice);
  }

  /* Dropdown on mobile — full width */
  .cb-user__menu {
    position: fixed;
    right: 12px;
    top: calc(var(--nav-height) + 8px);
    width: calc(100vw - 24px);
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .cb-brand__text { display: none; }
  .cb-nav__container { padding: 0 14px; }
}


/* ---------------------------------------------------
    ABOUT PAGE
--------------------------------------------------- */

.about-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}

.about-header {
  margin-bottom: 26px;
}

.page-title {
  font-size: clamp(28px, 4.2vw, 62px);
  font-weight: 900;
  letter-spacing: 0.6px;
  line-height: 1.08;
  margin-bottom: 12px;
  color: var(--color-primary);
  text-shadow: 0 0 18px rgba(160, 210, 235, 0.20);
}

.about-subtitle {
  max-width: 72ch;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Two-column layout */
.about-main-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
  align-items: start;
}

/* Left column */
.grid-text-column {
  display: grid;
  gap: 18px;
}

/* Cards */
.mission-section,
.commitment-section,
.about-stats,
.cta-section {
  border-radius: 22px;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(132, 88, 179, 0.50), rgba(160, 210, 235, 0.22)),
    radial-gradient(900px 500px at 80% 10%, rgba(208, 189, 244, 0.18), transparent 55%);
  border: 1px solid rgba(208, 189, 244, 0.18);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-heading {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.mission-section h2 {
  color: var(--c-ice);
  text-shadow: 0 0 18px rgba(160, 210, 235, 0.20);
}

.mission-section p {
  color: var(--color-secondary);
  opacity: 0.92;
  line-height: 1.8;
}

/* Commitment list */
.commitment-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
  width: 100%;
}

.commitment-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(73, 77, 95, 0.28);
  border: 1px solid rgba(208, 189, 244, 0.14);
  transition: transform var(--hover-transition), background-color var(--hover-transition), border-color var(--hover-transition);
}

.commitment-list li:hover {
  transform: translateY(-1px);
  background: rgba(229, 234, 245, 0.08);
  border-color: rgba(208, 189, 244, 0.24);
}

.icon-check {
  color: var(--color-accent);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Stats */
.about-stats {
  align-items: stretch;
}

.stats-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.stat-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(73, 77, 95, 0.25);
  border: 1px solid rgba(208, 189, 244, 0.16);
  transition: transform var(--hover-transition), border-color var(--hover-transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(208, 189, 244, 0.28);
}

.stat-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 900;
  color: var(--color-primary);
}

.stat-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* CTA section */
.cta-section {
  align-items: center;
  text-align: center;
  gap: 14px;
}

.cta-section p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.cta-button {
  min-width: 160px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 14px;
  padding: 0 20px;
  background: var(--color-highlight);
  color: var(--c-ice);
  border: 2px solid transparent;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  transition:
    transform      var(--hover-transition),
    box-shadow     var(--hover-transition),
    background-color var(--hover-transition),
    border-color   var(--hover-transition);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  background: #9158d6;
  border-color: transparent;
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.cta-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.secondary-cta {
  background: transparent;
  color: var(--c-ice);
  border: 2px solid rgba(208, 189, 244, 0.6);
  box-shadow: none;
}

.secondary-cta:hover {
  background: rgba(229, 234, 245, 0.08);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

/* Image column card */
.grid-image-column {
  background:
    linear-gradient(135deg, rgba(132, 88, 179, 0.50), rgba(160, 210, 235, 0.22)),
    radial-gradient(900px 500px at 80% 10%, rgba(208, 189, 244, 0.18), transparent 55%);
  border: 1px solid rgba(208, 189, 244, 0.18);
  border-radius: 22px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.responsive-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px 18px 0 0;
  object-fit: cover;
  border-bottom: 1px solid rgba(160, 210, 235, 0.26);
}

.image-caption {
  width: 100%;
  padding: 14px 16px;
  background: rgba(73, 77, 95, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(208, 189, 244, 0.16);
  border-radius: 0 0 18px 18px;
  text-align: center;
}

.image-caption p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}

.image-caption strong {
  color: var(--color-primary);
}

/* About — Responsive */
@media (max-width: 900px) {
  .about-main-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .about-page-content {
    padding: 32px 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    text-align: center;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-button {
    min-width: unset;
    width: 100%;
  }
}


/* ---------------------------------------------------
    FOOTER
--------------------------------------------------- */
footer {
  margin-top: 40px;
  background: linear-gradient(
    to bottom,
    rgba(73, 77, 95, 0.85),
    rgba(28, 31, 39, 0.95)
  );
  border-top: 1px solid rgba(208, 189, 244, 0.18);
}

.footer-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-header h3 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: var(--color-primary);
  text-align: center;
}

.footer-header p {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  justify-items: center;
}

.footer-section h3 {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
  color: var(--color-primary);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-block;
  transition:
    color     var(--hover-transition),
    transform var(--hover-transition);
}

.footer-section a:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.copyright {
  padding-top: 18px;
  border-top: 1px solid rgba(208, 189, 244, 0.16);
  font-size: 13px;
  text-align: center;
  color: rgba(229, 234, 245, 0.55);
}

/* Footer — Responsive */
@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-box {
    padding: 28px 18px 24px;
    gap: 28px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section a:hover {
    transform: none;
  }
}


/* ---------------------------------------------------
    HOME — SECTIONS
--------------------------------------------------- */
html { scroll-behavior: smooth; }

section {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 18px;
}

.section-title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.3px;
  margin: 0 0 14px;
  display: flex;
  justify-content: center;
}

/* Horizontal scroll containers */
.trendingcontainer,
.deals-container {
  width: 95%;
  margin: 0 auto;
  padding: 10px 0 16px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(208, 189, 244, 0.3) transparent;
}

.trendingcontainer::-webkit-scrollbar,
.deals-container::-webkit-scrollbar {
  height: 4px;
}

.trendingcontainer::-webkit-scrollbar-thumb,
.deals-container::-webkit-scrollbar-thumb {
  background: rgba(208, 189, 244, 0.3);
  border-radius: 99px;
}

/* Trending card */
.trending-card {
  min-width: 260px;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 18px;
  border: 1px solid rgba(208, 189, 244, 0.18);
  background: rgba(229, 234, 245, 0.05);
  overflow: hidden;
  transition: transform var(--hover-transition), border-color var(--hover-transition), box-shadow var(--hover-transition);
}

.trending-card:hover {
  transform: translateY(-3px);
  border-color: rgba(208, 189, 244, 0.28);
  box-shadow: var(--shadow-strong);
}

.trending-card img,
.deal-card img {
  border-radius: 14px;
  object-fit: cover;
  width: 80%;
  height: 220px;
  transition: transform 0.22s ease;
}

.trending-card:hover img,
.deal-card:hover img {
  transform: scale(1.03);
}

/* Price display */
.old-price {
  font-size: 13px;
  color: rgba(229, 234, 245, 0.50);
  text-decoration: line-through;
  margin-right: 8px;
  display: inline-block;
}

.new-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-primary);
  display: inline-block;
}


/* ---------------------------------------------------
    HERO
--------------------------------------------------- */
.hero-banner {
  margin: 18px;
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(132, 88, 179, 0.50), rgba(160, 210, 235, 0.22)),
    radial-gradient(900px 500px at 80% 10%, rgba(208, 189, 244, 0.18), transparent 55%);
  border: 1px solid rgba(208, 189, 244, 0.18);
  box-shadow: var(--shadow-strong);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 680px;
  padding: 36px 32px;
}

.hero-content h1 {
  font-size: clamp(26px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.4px;
  color: var(--c-ice);
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  margin-bottom: 12px;
}

.hero-content p {
  color: rgba(229, 234, 245, 0.85);
  line-height: 1.65;
  font-size: clamp(14px, 1.6vw, 16px);
  margin-bottom: 20px;
}

.hero-btn {
  border: none;
  cursor: pointer;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 15px;
  background: var(--color-highlight);
  color: var(--c-ice);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  transition:
    transform      var(--hover-transition),
    box-shadow     var(--hover-transition),
    background-color var(--hover-transition);
}

.hero-btn:hover {
  transform: translateY(-2px);
  background: #9158d6;
  box-shadow: var(--shadow-strong);
}

.hero-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.hero-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .hero-banner {
    margin: 12px;
    min-height: auto;
  }

  .hero-content {
    padding: 24px 20px;
  }
}


/* ---------------------------------------------------
    CATEGORIES
--------------------------------------------------- */
.categories-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.category-card {
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  gap: 8px;
  align-items: center;
  display: inline-flex;
  white-space: nowrap;
  background: rgba(229, 234, 245, 0.06);
  border: 1px solid rgba(208, 189, 244, 0.18);
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition:
    transform          var(--hover-transition),
    background-color   var(--hover-transition),
    border-color       var(--hover-transition),
    color              var(--hover-transition);
}

.category-card:hover {
  transform: translateY(-2px);
  background: rgba(229, 234, 245, 0.10);
  border-color: rgba(208, 189, 244, 0.28);
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .categories-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .category-card {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}


/* ---------------------------------------------------
    PLATFORM LOGOS
--------------------------------------------------- */
.platform-logos .logo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(229, 234, 245, 0.05);
  border: 1px solid rgba(208, 189, 244, 0.18);
  box-shadow: var(--shadow-subtle);
  flex-wrap: wrap;
}

.logo-row img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.80;
  transition: transform var(--hover-transition), opacity var(--hover-transition);
}

.logo-row img:hover {
  transform: translateY(-2px);
  opacity: 1;
}


/* ---------------------------------------------------
    NEWSLETTER
--------------------------------------------------- */
.newsletter-section {
  text-align: center;
  padding-bottom: 30px;
}

.newsletter-section h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.newsletter-section p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.newsletter-box {
  display: inline-flex;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(229, 234, 245, 0.05);
  border: 1px solid rgba(208, 189, 244, 0.18);
  box-shadow: var(--shadow-subtle);
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-box input {
  width: 280px;
  max-width: 60vw;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(208, 189, 244, 0.20);
  background: rgba(0, 0, 0, 0.15);
  color: var(--c-ice);
  font-size: 15px;
  outline: none;
  transition: border-color var(--hover-transition), box-shadow var(--hover-transition);
}

.newsletter-box input::placeholder {
  color: rgba(229, 234, 245, 0.50);
}

.newsletter-box input:focus {
  border-color: rgba(160, 210, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(160, 210, 235, 0.16);
}

.newsletter-box button {
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 15px;
  background: var(--color-highlight);
  color: var(--c-ice);
  transition:
    transform          var(--hover-transition),
    background-color   var(--hover-transition);
}

.newsletter-box button:hover {
  transform: translateY(-2px);
  background: #9158d6;
}

.newsletter-box button:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 480px) {
  .newsletter-box {
    flex-direction: column;
    width: 92%;
  }

  .newsletter-box input {
    width: 100%;
    max-width: 100%;
  }

  .newsletter-box button {
    width: 100%;
  }
}


/* ---------------------------------------------------
    INTERACTIVE — GENERIC CARD HOVER HELPER
--------------------------------------------------- */
.is-interactive {
  transition:
    transform          var(--hover-transition),
    box-shadow         var(--hover-transition),
    background-color   var(--hover-transition),
    border-color       var(--hover-transition);
}

.is-interactive:hover {
  transform: translateY(var(--hover-translate));
  box-shadow: var(--hover-shadow);
  background: var(--hover-bg);
  border-color: var(--hover-border);
}

.is-interactive:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* ---------------------------------------------------
    PAGE NAME BAR
--------------------------------------------------- */
.page-name {
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px 18px 8px;
}

.page-name h1 {
  font-size: clamp(22px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: 0.3px;
  color: var(--color-primary);
  text-shadow: 0 0 18px rgba(160, 210, 235, 0.16);
}

.page-name p {
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.6;
  margin-top: 4px;
}


/* ---------------------------------------------------
    PRODUCTS PAGE
--------------------------------------------------- */
.products-page-wrapper {
  max-width: 1800px;
  margin: 0 auto;
  padding: 18px 18px 40px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}

/* Sidebar */
.filter-bar {
  position: sticky;
  top: calc(var(--nav-height) + 12px);
  border-radius: 18px;
  padding: 18px;
  background: rgba(229, 234, 245, 0.05);
  border: 1px solid rgba(208, 189, 244, 0.18);
  box-shadow: var(--shadow-subtle);
}

.filter-bar h2 {
  font-size: 17px;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.filter-bar label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(229, 234, 245, 0.75);
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(208, 189, 244, 0.20);
  color: var(--c-ice);
  font-size: 14px;
  outline: none;
  transition: border-color var(--hover-transition), box-shadow var(--hover-transition);
}

.filter-bar input::placeholder { color: rgba(229, 234, 245, 0.45); }

.filter-bar select { appearance: none; cursor: pointer; }

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(160, 210, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(160, 210, 235, 0.14);
}

.filter-bar button {
  width: 100%;
  margin-top: 14px;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 13px 14px;
  font-weight: 900;
  font-size: 15px;
  color: var(--c-ice);
  background: rgba(132, 88, 179, 0.85);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.30);
  transition:
    transform          var(--hover-transition),
    box-shadow         var(--hover-transition),
    background-color   var(--hover-transition);
}

.filter-bar button:hover {
  transform: translateY(-2px);
  background: #9158d6;
  box-shadow: var(--shadow-strong);
}

.filter-bar button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

/* Product grid */
.main-content-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Product card */
.product {
  border-radius: 18px;
  padding: 16px;
  background: rgba(229, 234, 245, 0.05);
  border: 1px solid rgba(208, 189, 244, 0.18);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition:
    transform      var(--hover-transition),
    border-color   var(--hover-transition),
    box-shadow     var(--hover-transition);
}

.product:hover {
  transform: translateY(-3px);
  border-color: rgba(208, 189, 244, 0.30);
  box-shadow: var(--shadow-strong);
}

/* Edition tag */
.product > p:first-child {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(229, 234, 245, 0.65);
  margin-bottom: 10px;
}

/* Product image */
.product img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(160, 210, 235, 0.16);
  background: rgba(0, 0, 0, 0.18);
  margin-bottom: 12px;
  transition: transform 0.22s ease;
}

.product:hover img {
  transform: scale(1.02);
}

/* Title */
.product h3 {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  margin: 2px 0 8px;
  color: var(--c-ice);
  flex: 1;
}

/* Price */
.product > p:nth-of-type(2) {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* View details button */
.product button {
  width: 100%;
  border: 1px solid rgba(208, 189, 244, 0.22);
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  color: var(--c-ice);
  background: rgba(73, 77, 95, 0.55);
  transition:
    transform          var(--hover-transition),
    background-color   var(--hover-transition),
    border-color       var(--hover-transition);
}

.product button:hover {
  transform: translateY(-2px);
  background: rgba(229, 234, 245, 0.08);
  border-color: rgba(208, 189, 244, 0.34);
}

.product button:active {
  transform: translateY(0) scale(0.98);
}

/* Products — Responsive */
@media (max-width: 1300px) {
  .main-content-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .products-page-wrapper {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    position: relative;
    top: 0;
  }

  .main-content-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .main-content-wrapper {
    grid-template-columns: 1fr;
  }

  .product img {
    height: 200px;
  }
}


/* ---------------------------------------------------
    MODAL
--------------------------------------------------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-modal-content {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 20px;
  background: rgba(73, 77, 95, 0.96);
  border: 1px solid rgba(208, 189, 244, 0.22);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: dropdownOpen 0.18s ease;
}

#product-close-btn {
  align-self: flex-end;
  border: 1px solid rgba(208, 189, 244, 0.22);
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  background: rgba(229, 234, 245, 0.10);
  color: var(--c-ice);
  transition:
    transform          var(--hover-transition),
    background-color   var(--hover-transition);
}

#product-close-btn:hover {
  transform: translateY(-1px);
  background: rgba(229, 234, 245, 0.16);
}

.product-modal-content h1 {
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 900;
  color: var(--color-primary);
}

.product-modal-content img {
  width: min(320px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(160, 210, 235, 0.20);
  background: rgba(0, 0, 0, 0.18);
}

.product-modal-content p {
  color: rgba(229, 234, 245, 0.85);
  line-height: 1.7;
}

.product-modal-content h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--c-ice);
}

.product-modal-content form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-modal-content form button,
.product-modal-content input[type="submit"] {
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 15px;
  color: var(--c-ice);
  background: rgba(132, 88, 179, 0.85);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.30);
  transition:
    transform          var(--hover-transition),
    background-color   var(--hover-transition),
    box-shadow         var(--hover-transition);
}

.product-modal-content form button:hover,
.product-modal-content input[type="submit"]:hover {
  transform: translateY(-2px);
  background: #9158d6;
  box-shadow: var(--shadow-strong);
}

.product-modal-content textarea,
.product-modal-content input[type="number"] {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(208, 189, 244, 0.20);
  color: var(--c-ice);
  font-size: 14px;
  outline: none;
  transition: border-color var(--hover-transition), box-shadow var(--hover-transition);
}

.product-modal-content textarea:focus,
.product-modal-content input[type="number"]:focus {
  border-color: rgba(160, 210, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(160, 210, 235, 0.14);
}


/* ---------------------------------------------------
    LOGIN & REGISTER
--------------------------------------------------- */
.register-container,
.login-container {
  width: 480px;
  max-width: 92%;
  margin: 5vh auto;
  padding: 36px 32px;
  background-color: rgba(73, 77, 95, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(196, 155, 255, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.register-container h1,
.login-container h1 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--color-primary);
  text-align: center;
}

.register-container p,
.login-container p {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.register-container a,
.login-container a {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: color var(--hover-transition), transform var(--hover-transition);
}

.register-container a:hover,
.login-container a:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* Forms */
.registration-form form,
.login-form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Input fields */
.registration-form input[type="email"],
.registration-form input[type="text"],
.registration-form input[type="password"],
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 13px 16px;
  margin: 6px 0;
  background-color: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(208, 189, 244, 0.30);
  border-radius: 12px;
  color: var(--color-secondary);
  font-size: 15px;
  outline: none;
  transition:
    border-color     0.22s ease,
    box-shadow       0.22s ease,
    background-color 0.22s ease;
}

.registration-form input:focus,
.login-form input:focus {
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 3px rgba(132, 88, 179, 0.28);
  background-color: rgba(0, 0, 0, 0.30);
}

.registration-form input::placeholder,
.login-form input::placeholder {
  color: rgba(229, 234, 245, 0.42);
}

/* Submit button */
.registration-form input[type="submit"],
.login-form input[type="submit"] {
  width: 70%;
  padding: 14px 12px;
  background: var(--color-highlight);
  color: var(--c-ice);
  font-size: 16px;
  font-weight: 900;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 22px;
  box-shadow: 0 10px 26px rgba(132, 88, 179, 0.40);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.registration-form input[type="submit"]:hover,
.login-form input[type="submit"]:hover {
  transform: translateY(-3px);
  background: #9158d6;
  box-shadow: 0 16px 36px rgba(132, 88, 179, 0.55);
}

.registration-form input[type="submit"]:active,
.login-form input[type="submit"]:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

/* Messages */
.error-message {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  background-color: rgba(255, 77, 77, 0.18);
  border: 1px solid rgba(255, 77, 77, 0.55);
  color: #ff8080;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.success-message {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  background-color: rgba(75, 181, 67, 0.18);
  border: 1px solid rgba(75, 181, 67, 0.55);
  color: #7de87a;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 520px) {
  .register-container,
  .login-container {
    padding: 28px 20px;
    margin: 3vh auto;
  }

  .registration-form input[type="submit"],
  .login-form input[type="submit"] {
    width: 100%;
  }
}
/* Static GitHub Pages helpers */
.category-card{text-decoration:none;}
.product-details-info > p{margin-bottom:10px;}
.success-message.hidden{display:none !important;}
