/**
 * Emzy — Professional rebrand inspired by Ace Log layout
 * Dark navy base + accent, hero v2, ticker, bento sections, footer v2
 */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --font-display: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;
  --heading-font: var(--font-display);
  --body-font: var(--font-body);
  /* Navy / dark base */
  --navy: 220 25% 8%;
  --navy-2: 220 22% 12%;
  --navy-3: 220 20% 16%;
  --ink: 220 22% 8%;
  --surface: 220 22% 10%;
  --surface2: 220 20% 14%;
  /* Text */
  --text: 220 15% 95%;
  --text-muted: 220 10% 65%;
  --text-dim: 220 10% 45%;
  /* Accent uses existing --base from main/color.php; fallback */
  --accent: var(--base);
  --accent-dim: var(--base-h) var(--base-s) var(--base-l) / 0.15;
  --accent-border: var(--base-h) var(--base-s) var(--base-l) / 0.35;
  /* UI */
  --border: 220 18% 22%;
  --border-light: 220 15% 88%;
  --card: 220 22% 14%;
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --shadow-glow: 0 8px 32px hsl(var(--base) / 0.2);
}

/* Light theme (body.theme-light) */
body.theme-light {
  --navy: 220 20% 96%;
  --navy-2: 0 0% 100%;
  --ink: 220 15% 98%;
  --surface: 0 0% 100%;
  --surface2: 220 20% 97%;
  --text: 220 25% 12%;
  --text-muted: 220 15% 45%;
  --text-dim: 220 10% 55%;
  --border: 220 13% 88%;
  --border-light: 220 13% 88%;
  --card: 0 0% 100%;
}

body.theme-light .top-header .navbar-brand.logo img,
body.theme-light .header .navbar-brand.logo img {
  filter: none;
}

body.theme-light .footer-block__logo img {
  filter: none;
}

body {
  font-family: var(--font-body);
  color: hsl(var(--text));
  background: hsl(var(--ink));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: hsl(var(--text));
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════
   TOP BAR — minimal, can be merged into nav on scroll
   ═══════════════════════════════════════════════════════════ */
.top-header {
  padding: 10px 0;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--navy-2));
}

.top-header .navbar-brand.logo img {
  max-height: 36px;
  filter: brightness(0) invert(1);
}

.top-header .search-box.style-two {
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

.top-header .search-box.style-two .form--control {
  background: transparent;
  color: hsl(var(--text));
}

.top-header .search-box.style-two .form--control::placeholder {
  color: hsl(var(--text-muted));
}

.top-header .search-box.style-two .search-box__button {
  background: hsl(var(--base));
  color: hsl(var(--white));
}

.top-header .btn--account {
  color: hsl(var(--text-muted));
  font-weight: 500;
}

.top-header .btn--account:hover {
  color: hsl(var(--base));
}

.top-header .btn.btn--base.btn--md {
  background: hsl(var(--base));
  color: hsl(var(--white));
  border: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
}

/* Top header with nav menu (search removed) */
.top-header__inner--with-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.top-header__nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.top-header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.top-header__menu-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--text-muted));
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.top-header__menu-link:hover {
  color: hsl(var(--text));
  background: hsl(var(--surface));
}

.top-header__menu-item.active .top-header__menu-link {
  color: hsl(var(--base));
  background: hsl(var(--base) / 0.1);
}

.top-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   MAIN HEADER — modern nav (sticky, blur, refined menu)
   ═══════════════════════════════════════════════════════════ */
.header,
.site-header {
  background: hsl(var(--navy-2) / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

body.theme-light .site-header {
  background: hsl(var(--surface) / 0.92);
  border-bottom-color: hsl(var(--border));
}

.header.fixed-header,
.header.scrolled,
.site-header.scrolled {
  background: hsl(var(--navy-2) / 0.95);
  border-bottom-color: hsl(var(--border));
  box-shadow: 0 4px 24px hsl(0 0% 0% / 0.12);
}

body.theme-light .site-header.scrolled {
  background: hsl(var(--surface));
  box-shadow: 0 4px 20px hsl(0 0% 0% / 0.06);
}

body.theme-ace .header,
body.theme-ace .site-header,
body.theme-light .site-header {
  position: sticky;
  top: 0;
  z-index: 102;
}

.header .navbar-brand.logo img,
.site-header__logo img {
  max-height: 40px;
  filter: brightness(0) invert(1);
}

body.theme-light .site-header__logo img {
  filter: none;
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  min-height: 64px;
}

.site-header__logo {
  flex-shrink: 0;
  display: block;
}

.site-header__logo img {
  display: block;
  height: 38px;
  width: auto;
}

.site-header__nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.site-header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.site-header__menu-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--text-muted));
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.site-header__menu-link:hover {
  color: hsl(var(--text));
  background: hsl(var(--surface) / 0.8);
}

.site-header__menu-item.active .site-header__menu-link {
  color: hsl(var(--base));
  background: hsl(var(--base) / 0.12);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-header__actions::before {
  content: "";
  width: 1px;
  height: 24px;
  background: hsl(var(--border));
  margin-right: 0.25rem;
}

.site-header__account {
  color: hsl(var(--text-muted));
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.site-header__account:hover {
  color: hsl(var(--base));
  background: hsl(var(--surface) / 0.8);
}

.site-header__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}

.site-header__btn--primary {
  background: hsl(var(--base));
  color: hsl(var(--white));
  box-shadow: 0 2px 8px hsl(var(--base) / 0.35);
}

.site-header__btn--primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px hsl(var(--base) / 0.4);
}

.site-header__toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--text));
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.site-header__toggler:hover {
  background: hsl(var(--surface2));
  color: hsl(var(--base));
}

@media (max-width: 991px) {
  .site-header__actions {
    display: none !important;
  }
  .site-header__actions::before {
    display: none;
  }
  .site-header__toggler--end {
    margin-left: auto;
  }
}

/* Mobile menu — modern list */
.site-header__mobile-menu {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border));
}

.site-header__mobile-link {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--text-muted));
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  margin: 0 0 2px;
}

.site-header__mobile-link:hover,
.site-header__mobile-link.active {
  color: hsl(var(--base));
}

.site-header__mobile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 1.25rem 0 0;
  margin-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.site-header__mobile-actions .site-header__account,
.site-header__mobile-actions .site-header__btn {
  flex: none;
}

.header .nav-link {
  color: hsl(var(--text-muted)) !important;
  font-weight: 500;
  font-size: 14px;
}

.header .nav-link:hover,
.header .nav-item.active .nav-link {
  color: hsl(var(--text)) !important;
}

.header .search-box.style-two {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  border-radius: var(--radius-sm);
}

.header .search-box.style-two .form--control {
  color: hsl(var(--text));
  background: transparent;
}

.category-nav__button {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--text));
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.category-nav__button:hover {
  border-color: hsl(var(--base) / 0.5);
  color: hsl(var(--base));
}

.dropdown--menu {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 12px 40px hsl(0 0% 0% / 0.25);
}

.dropdown--menu__link {
  color: hsl(var(--text-muted));
}

.dropdown--menu__link:hover {
  color: hsl(var(--base));
  background: hsl(var(--base) / 0.08);
}

/* ═══════════════════════════════════════════════════════════
   HERO V2 — full viewport style (acelognew hero-v2)
   ═══════════════════════════════════════════════════════════ */
.banner-section.hero-v2 {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  background: hsl(var(--ink));
  position: relative;
  overflow: hidden;
}

.banner-section.hero-v2 .banner-section-bg-img {
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.banner-section.hero-v2 .banner-section-bg-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 20%, hsl(var(--base) / 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.banner-section.hero-v2 .banner-ac-imgs {
  display: none;
}

.banner-section.hero-v2 .banner-content {
  position: relative;
  z-index: 2;
}

.banner-section.hero-v2 .hero-v2-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--base));
  margin-bottom: 16px;
}

.banner-section.hero-v2 .banner-content__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: hsl(var(--text));
  margin-bottom: 16px;
}

.banner-section.hero-v2 .banner-content__title .hero-v2-accent {
  color: hsl(var(--base));
  display: block;
  margin-top: 0.05em;
}

.banner-section.hero-v2 .banner-content__desc {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: hsl(var(--text-muted));
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.banner-section.hero-v2 .banner-category-list {
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.banner-section.hero-v2 .banner-category-list .item {
  margin: 0;
  padding: 0;
}

.banner-section.hero-v2 .banner-category-list .item::before {
  display: none;
}

.banner-section.hero-v2 .banner-category-list .link {
  padding: 8px 16px;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--text-muted));
  transition: all var(--transition);
}

.banner-section.hero-v2 .banner-category-list .link:hover {
  border-color: hsl(var(--base) / 0.5);
  color: hsl(var(--base));
}

.banner-section.hero-v2 .banner-content__buttons {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.banner-section.hero-v2 .banner-content__buttons .btn--base {
  background: hsl(var(--base));
  color: hsl(var(--white));
  border: none;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.banner-section.hero-v2 .banner-content__buttons .btn--base:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.banner-section.hero-v2 .banner-content__buttons .btn-outline--base {
  background: transparent;
  color: hsl(var(--text-muted));
  border: 1px solid hsl(var(--border));
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.banner-section.hero-v2 .banner-content__buttons .btn-outline--base:hover {
  border-color: hsl(var(--base) / 0.5);
  color: hsl(var(--text));
}

/* Hero stats row */
.hero-v2-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: hsl(var(--text));
  display: block;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--text-dim));
}

/* ═══════════════════════════════════════════════════════════
   TICKER STRIP (acelognew ticker-v2)
   ═══════════════════════════════════════════════════════════ */
.ticker-strip {
  background: hsl(var(--navy-2));
  padding: 14px 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  overflow: hidden;
}

.ticker-strip-inner {
  display: flex;
  animation: ticker-scroll 35s linear infinite;
  white-space: nowrap;
  gap: 48px;
}

.ticker-strip-item {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--base));
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   SECTION COMMONS — tag + title (acelognew section-tag-v2)
   ═══════════════════════════════════════════════════════════ */
.section-heading__subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--base));
  margin-bottom: 12px;
}

.section-heading__subtitle::before,
.section-heading__subtitle::after {
  display: none;
}

.section-heading__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--text));
  margin-bottom: 12px;
}

.section-heading__title span {
  color: hsl(var(--base));
}

.section-heading__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--text-muted));
}

/* ═══════════════════════════════════════════════════════════
   FEATURES — bento-style cards (acelognew features-v2)
   ═══════════════════════════════════════════════════════════ */
.features {
  padding: 80px 0;
  background: hsl(var(--ink));
}

.feature-item-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-item {
  padding: 28px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: all var(--transition);
  height: 100%;
}

.feature-item:hover {
  border-color: hsl(var(--base) / 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px hsl(0 0% 0% / 0.2);
}

.feature-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsl(var(--base) / 0.12);
  border: 1px solid hsl(var(--base) / 0.3);
  color: hsl(var(--base));
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.feature-item__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: hsl(var(--text));
  margin-bottom: 8px;
}

.feature-item__desc {
  font-size: 14px;
  color: hsl(var(--text-muted));
  line-height: 1.6;
}

.feature-item__number {
  color: hsl(var(--text-dim) / 0.5);
  font-size: 2rem;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — clean block
   ═══════════════════════════════════════════════════════════ */
.about-us {
  padding: 80px 0;
  background: hsl(var(--navy-2));
}

.about-us__thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
}

.about-content .text-list__item {
  color: hsl(var(--text-muted));
}

.about-content .text-list__item .icon {
  color: hsl(var(--base));
}

/* ═══════════════════════════════════════════════════════════
   CATALOG / PRODUCT CARDS
   ═══════════════════════════════════════════════════════════ */
.catalog-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.catalog-item:hover {
  border-color: hsl(var(--base) / 0.35);
  box-shadow: 0 8px 24px hsl(0 0% 0% / 0.15);
}

.catalog-item__thumb {
  background: hsl(var(--surface));
}

.catalog-item__title,
.catalog-item__link {
  color: hsl(var(--text));
}

.catalog-item__link:hover {
  color: hsl(var(--base));
}

.catalog-item__info {
  color: hsl(var(--text-muted));
}

.catalog-item__price .amount {
  color: hsl(var(--base));
  font-weight: 700;
}

.catalog-item .btn--base {
  background: hsl(var(--base));
  color: hsl(var(--white));
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.catalog-item .btn--base:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS GLOBAL
   ═══════════════════════════════════════════════════════════ */
.btn--base {
  background: hsl(var(--base));
  color: hsl(var(--white));
  border: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn--base:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline--base {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--text-muted));
  background: transparent;
  border-radius: var(--radius-sm);
}

.btn-outline--base:hover {
  border-color: hsl(var(--base) / 0.5);
  color: hsl(var(--base));
}

/* ═══════════════════════════════════════════════════════════
   FOOTER V2 (acelognew footer-v2)
   ═══════════════════════════════════════════════════════════ */
.footer-area {
  background: hsl(var(--navy-2));
  border-top: 1px solid hsl(var(--border));
  padding-top: 0;
  margin-top: auto;
}

.footer-main {
  padding: 40px 0 24px;
}

.footer-block__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--text-dim));
  margin-bottom: 1rem;
}

.footer-block__logo img {
  filter: brightness(0) invert(1);
}

.footer-block__desc {
  color: hsl(var(--text-muted));
  font-size: 14px;
  line-height: 1.65;
  max-width: 280px;
}

.footer-menu__link,
.footer-contact .footer-menu__link {
  color: hsl(var(--text-muted));
  font-size: 14px;
}

.footer-menu__link:hover,
.footer-contact .footer-menu__link:hover {
  color: hsl(var(--base));
}

.footer-social__link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--text-muted));
  transition: all var(--transition);
}

.footer-social__link:hover {
  background: hsl(var(--base));
  border-color: hsl(var(--base));
  color: hsl(var(--white));
}

.footer-area .bottom-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 20px 0;
}

.footer-area .bottom-footer__text,
.footer-area .bottom-footer__link {
  color: hsl(var(--text-dim));
  font-size: 13px;
}

.footer-area .bottom-footer__link:hover {
  color: hsl(var(--base));
}

/* ═══════════════════════════════════════════════════════════
   BLOG & TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.blog-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-item:hover {
  border-color: hsl(var(--base) / 0.3);
  box-shadow: 0 8px 24px hsl(0 0% 0% / 0.12);
}

.blog-item__title-link {
  color: hsl(var(--text));
}

.blog-item__title-link:hover {
  color: hsl(var(--base));
}

.testimonial-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 24px;
}

.testimonials.section-bg {
  background: hsl(var(--navy-2));
}

/* Section backgrounds (catalog, product detail, how we work, etc.) */
.theme-ace .section-bg,
.theme-ace .catalog-section,
.theme-ace .catalog-details-section,
.theme-ace .how-we-work,
.theme-ace .blog,
.theme-ace .contact-section {
  background: hsl(var(--navy-2));
}

.theme-ace .blog-details {
  background: hsl(var(--ink));
}

/* ═══════════════════════════════════════════════════════════
   FORMS & MISC
   ═══════════════════════════════════════════════════════════ */
.form--control {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--text));
  border-radius: var(--radius-sm);
}

.form--control:focus {
  border-color: hsl(var(--base) / 0.6);
  box-shadow: 0 0 0 3px hsl(var(--base) / 0.15);
}

.scroll-top {
  background: hsl(var(--base));
  color: hsl(var(--white));
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow);
}

.preloader .loader-p {
  border-color: hsl(var(--base) / 0.2);
  border-top-color: hsl(var(--base));
}

.fixed-card .card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

.fixed-card .card-header {
  background: hsl(var(--surface));
  border-color: hsl(var(--border));
  color: hsl(var(--text));
}

.selected {
  background-color: hsl(var(--base)) !important;
  color: hsl(var(--white)) !important;
}

.cookies-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

/* Container max-width */
@media (min-width: 1320px) {
  .header .container,
  .site-header .container,
  .footer-area .container,
  .banner-section .container {
    max-width: 1200px;
  }
}

@media (max-width: 991px) {
  .banner-section.hero-v2 {
    min-height: auto;
    padding: 60px 0 50px;
  }
  .hero-v2-stats {
    gap: 24px;
  }
}

@media (max-width: 575px) {
  .banner-section.hero-v2 .banner-content__buttons .btn {
    display: block;
    width: 100%;
    margin: 8px 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE (dark/light)
   ═══════════════════════════════════════════════════════════ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--text-muted));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: hsl(var(--base));
  border-color: hsl(var(--base) / 0.4);
}

.theme-toggle__icon {
  position: absolute;
  font-size: 1.25rem;
  transition: opacity var(--transition), transform var(--transition);
}

.theme-toggle__icon--sun { opacity: 0; }
.theme-toggle__icon--moon { opacity: 1; }

body.theme-light .theme-toggle__icon--sun { opacity: 1; }
body.theme-light .theme-toggle__icon--moon { opacity: 0; }

.theme-toggle {
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS PAGE — layout, grid, cards
   ═══════════════════════════════════════════════════════════ */
.products-page {
  padding: 2rem 0 4rem;
  background: hsl(var(--ink));
}

.theme-light .products-page {
  background: hsl(var(--ink));
}

.products-page__header {
  margin-bottom: 2rem;
}

.products-page__breadcrumb {
  font-size: 0.8125rem;
  color: hsl(var(--text-dim));
  margin-bottom: 0.5rem;
}

.products-page__breadcrumb a {
  color: hsl(var(--text-muted));
  text-decoration: none;
}

.products-page__breadcrumb a:hover {
  color: hsl(var(--base));
}

.products-page__breadcrumb-sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.products-page__breadcrumb-current {
  color: hsl(var(--text-muted));
}

.products-page__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.products-page__subtitle {
  font-size: 0.9375rem;
  color: hsl(var(--text-muted));
  margin-bottom: 1.25rem;
}

/* Screenshot-style: green overview banner */
.products-page--screenshot .products-page__banner {
  background: linear-gradient(90deg, hsl(var(--base)) 0%, hsl(var(--base-h) var(--base-s) calc(var(--base-l) + 15%)) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
}

.products-page--screenshot .products-page__banner-tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: hsl(0 0% 100% / 0.9);
  margin-bottom: 0.35rem;
}

.products-page--screenshot .products-page__title {
  color: hsl(var(--white));
  margin-bottom: 0.25rem;
}

.products-page--screenshot .products-page__subtitle {
  color: hsl(0 0% 100% / 0.85);
  margin-bottom: 0;
  font-size: 0.875rem;
}

.products-page__banner-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: hsl(0 0% 100% / 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.products-page__banner-balance-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.products-page__banner-balance-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(0 0% 100% / 0.75);
}

.products-page__banner-balance-amount {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--white));
  line-height: 1.2;
}

.products-page__banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--base));
  background: hsl(var(--white));
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px hsl(0 0% 0% / 0.15);
}

.products-page__banner-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  color: hsl(var(--base));
  box-shadow: 0 4px 16px hsl(0 0% 0% / 0.2);
}

.products-page__banner-btn i {
  font-size: 1.125rem;
}

/* Greeting banner — mobile */
@media (max-width: 767px) {
  .products-page--screenshot .products-page__banner {
    padding: 1.25rem 1.25rem;
  }
  .products-page--screenshot .products-page__title {
    font-size: 1.35rem;
  }
  .products-page__banner-balance {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    gap: 0.75rem 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .products-page__banner-balance-inner {
    min-width: 0;
  }
  .products-page__banner-balance-amount {
    font-size: 1.25rem;
  }
  .products-page__banner-btn {
    padding: 10px 16px;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }
}

@media (max-width: 575px) {
  .products-page--screenshot .products-page__banner {
    padding: 1rem 1rem;
    border-radius: var(--radius);
  }
  .products-page__banner-balance {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
  }
  .products-page__banner-balance-inner {
    align-items: center;
  }
  .products-page__banner-balance-label {
    font-size: 0.6875rem;
  }
  .products-page__banner-balance-amount {
    font-size: 1.375rem;
  }
  .products-page__banner-btn {
    justify-content: center;
    width: 100%;
  }
}

/* Search row: search + category dropdown at end */
.products-page__search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.products-page__search-row .products-page__search {
  flex: 1;
  min-width: 200px;
  max-width: none;
  margin-bottom: 0;
}

.products-page__search {
  display: flex;
  align-items: center;
  max-width: 420px;
  margin-bottom: 1rem;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.products-page__category-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.products-page__category-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--text-muted));
  margin: 0;
  white-space: nowrap;
}

.products-page__category-select {
  padding: 10px 36px 10px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--text));
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 160px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.products-page__category-select:hover,
.products-page__category-select:focus {
  border-color: hsl(var(--base) / 0.5);
  outline: none;
}

.products-page__search:focus-within {
  border-color: hsl(var(--base) / 0.5);
  box-shadow: 0 0 0 3px hsl(var(--base) / 0.1);
}

.products-page__search-icon {
  padding: 0 12px;
  color: hsl(var(--text-dim));
  font-size: 1.125rem;
}

.products-page__search-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 8px 10px 0;
  font-size: 0.9375rem;
  color: hsl(var(--text));
  min-width: 0;
}

.products-page__search-input::placeholder {
  color: hsl(var(--text-dim));
}

.products-page__search-input:focus {
  outline: none;
}

.products-page__search-btn {
  padding: 10px 16px;
  background: hsl(var(--base));
  color: hsl(var(--white));
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
}

.products-page__search-btn:hover {
  opacity: 0.95;
}

/* Section header: dark bar with "See all" (screenshot style) */
.products-page--screenshot .products-category-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: hsl(var(--navy-2));
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid hsl(var(--border));
  border-bottom: none;
}

.theme-light .products-page--screenshot .products-category-block__header {
  background: hsl(220 25% 18%);
  border-color: hsl(220 20% 25%);
}

.products-page--screenshot .products-category-block__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--white));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.products-page--screenshot .products-category-block__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--white));
  opacity: 0.95;
}

.products-page--screenshot .products-category-block__link:hover {
  opacity: 1;
  color: hsl(var(--white));
}

.products-page--screenshot .products-category-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  margin-bottom: 1.5rem;
}

.products-page--screenshot .products-list {
  margin: 0;
  padding: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: hsl(var(--card));
}

.theme-light .products-page--screenshot .product-card {
  background: hsl(0 0% 100%);
  border-color: hsl(var(--border-light));
}

.products-page--screenshot .products-list > li {
  border-bottom: 1px solid hsl(var(--border));
}

.products-page--screenshot .products-list > li:last-child {
  border-bottom: none;
}

/* Screenshot: product card — content middle, cart/actions at end */
.products-page--screenshot .product-card--list .product-card__body {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.products-page--screenshot .product-card__time,
.products-page--screenshot .product-card__title,
.products-page--screenshot .product-card__excerpt,
.products-page--screenshot .product-card__meta {
  margin-bottom: 0;
}

.products-page--screenshot .product-card__actions {
  margin-left: auto;
  margin-top: 0;
}

.products-page--screenshot .product-card__btn--primary.product-card__btn--icon {
  padding: 10px;
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.products-page__content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.products-category-block__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.products-category-block__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.products-category-block__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--base));
  text-decoration: none;
  transition: opacity var(--transition);
}

.products-category-block__link:hover {
  opacity: 0.9;
}

/* Products list (one row per product, not grid) */
.products-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.products-list > li {
  margin: 0;
}

/* Product card */
.product-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  border-color: hsl(var(--base) / 0.3);
  box-shadow: 0 8px 24px hsl(0 0% 0% / 0.12);
}

/* List layout: image left, body right — image aligned with title/description */
.product-card--list {
  flex-direction: row;
  align-items: flex-start;
}

.product-card--list .product-card__thumb {
  width: 80px;
  min-width: 80px;
  aspect-ratio: 1;
  flex-shrink: 0;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--surface));
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-card--list .product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .products-list {
    gap: 0.75rem;
    padding: 0 0.25rem;
  }
  .product-card--list {
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 0;
  }
  .product-card--list .product-card__thumb {
    width: 72px;
    min-width: 72px;
    height: 72px;
    padding: 10px;
    box-sizing: border-box;
    aspect-ratio: 1;
    border-radius: 10px;
    align-self: flex-start;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--surface));
    overflow: hidden;
  }
  .product-card--list .product-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
  }
  .product-card--list .product-card__body {
    flex-direction: row;
    align-items: flex-start;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    gap: 0.5rem;
    min-width: 0;
  }
  .product-card__main {
    min-width: 0;
    flex: 1;
  }
  .product-card__time {
    font-size: 0.6875rem;
    margin: 0;
    padding: 0 0 0.1rem;
  }
  .product-card__title {
    font-size: 0.9375rem;
    padding: 0 0 0.1rem;
  }
  .product-card__title-link {
    -webkit-line-clamp: 2;
  }
  .product-card__excerpt {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    padding: 0.05rem 0 0.1rem;
    margin: 0;
  }
  .product-card__meta {
    padding: 0.1rem 0 0;
    margin: 0;
    gap: 0.5rem;
  }
  .product-card__pill {
    padding: 3px 8px;
    font-size: 0.75rem;
  }
  .product-card__actions {
    flex-shrink: 0;
    gap: 0.35rem;
    align-items: center;
  }
  .product-card__btn--icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 8px;
  }
  .product-card__btn--icon i {
    font-size: 1.125rem;
  }
}

@media (max-width: 575px) {
  .products-list {
    gap: 0.625rem;
  }
  .product-card--list {
    align-items: flex-start;
  }
  .product-card--list .product-card__thumb {
    width: 70px;
    min-width: 70px;
    height: 70px;
    padding: 8px;
    box-sizing: border-box;
    aspect-ratio: 1;
    border-radius: 10px;
    align-self: flex-start;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--surface));
    overflow: hidden;
  }
  .product-card--list .product-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
  }
  .product-card--list .product-card__body {
    flex-wrap: nowrap;
    align-items: flex-start;
    padding: 0.5rem 0.625rem 0.5rem 0.5rem;
    gap: 0.5rem;
  }
  .product-card__main {
    flex: 1;
    min-width: 0;
  }
  .product-card__time {
    margin: 0;
    padding: 0 0 0.08rem;
  }
  .product-card__title {
    padding: 0 0 0.08rem;
  }
  .product-card__excerpt {
    padding: 0.04rem 0 0.08rem;
    margin: 0;
  }
  .product-card__meta {
    padding: 0.06rem 0 0;
    margin: 0;
  }
  .product-card__actions {
    flex-shrink: 0;
    gap: 0.35rem;
    margin-top: 0;
    width: auto;
    justify-content: flex-end;
  }
  .product-card__btn--icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 6px;
  }
  .product-card__btn--icon i {
    font-size: 1rem;
  }
}

.product-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: hsl(var(--surface));
  overflow: hidden;
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.product-card--list .product-card__thumb img {
  object-fit: contain;
}

.product-card:hover .product-card__thumb img {
  transform: scale(1.04);
}

.product-card__body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.product-card--list .product-card__body {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  min-height: 0;
}

.product-card__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.product-card__time {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  margin: 0 0 0.35rem;
  padding: 0 0.05rem 0 0;
  line-height: 1.3;
  order: -1;
}

.product-card__title {
  margin: 0;
  padding: 0.2rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-card__title-link {
  color: hsl(var(--text));
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.product-card__title-link:hover {
  color: hsl(var(--base));
}

.product-card__excerpt {
  font-size: 0.8125rem;
  color: hsl(var(--text-muted));
  line-height: 1.5;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.4rem 0 0;
  font-size: 0.8125rem;
}

.product-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.8125rem;
  background: hsl(0 0% 0%);
  color: hsl(var(--white));
}

body.theme-light .product-card__pill {
  background: hsl(220 20% 12%);
  color: hsl(var(--white));
}

.product-card__pill--stock {
  min-width: 2rem;
}

.product-card__pill--price {
  background: hsl(0 0% 0%);
  color: hsl(var(--white));
}

body.theme-light .product-card__pill--price {
  background: hsl(220 20% 12%);
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border: none;
  flex: none;
  min-width: 0;
  white-space: nowrap;
}

.product-card__btn--icon {
  padding: 10px;
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.product-card__btn--icon i {
  font-size: 1.25rem;
  margin: 0;
}

.product-card__btn i {
  font-size: 1rem;
}

.product-card__btn--primary {
  background: hsl(var(--base));
  color: hsl(var(--white));
  box-shadow: 0 1px 3px hsl(var(--base) / 0.3);
}

.product-card__btn--primary:hover {
  background: hsl(var(--base-d-200, var(--base)));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px hsl(var(--base) / 0.35);
}

.product-card__btn--secondary {
  background: hsl(var(--surface));
  color: hsl(var(--text));
  border: 1px solid hsl(var(--border));
}

.product-card__btn--secondary:hover {
  border-color: hsl(var(--base) / 0.5);
  color: hsl(var(--base));
  background: hsl(var(--base) / 0.06);
}

.product-card__btn--disabled {
  background: hsl(var(--surface));
  color: hsl(var(--text-dim));
  cursor: not-allowed;
  opacity: 0.8;
}

.products-page__empty {
  text-align: center;
  padding: 4rem 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
}

.products-page__empty-icon {
  font-size: 4rem;
  color: hsl(var(--text-dim));
  margin-bottom: 1rem;
  opacity: 0.6;
}

.products-page__empty-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.products-page__empty-desc {
  color: hsl(var(--text-muted));
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.products-page__pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.products-page__pagination nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.products-page__pagination .pagination {
  margin: 0;
}

.products-page__pagination .page-link {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--text));
}

.products-page__pagination .page-link:hover {
  background: hsl(var(--surface));
  border-color: hsl(var(--base) / 0.4);
  color: hsl(var(--base));
}

.products-page__pagination .page-item.active .page-link {
  background: hsl(var(--base));
  border-color: hsl(var(--base));
  color: hsl(var(--white));
}

/* ═══════════════════════════════════════════════════════════
   DEPOSIT PAGE (Fund Wallet) — modern redesign
   ═══════════════════════════════════════════════════════════ */
.deposit-page--modern {
  background: hsl(var(--ink));
}

.deposit-page__header {
  text-align: center;
}

.deposit-page__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: hsl(var(--text));
}

.deposit-page__subtitle {
  font-size: 0.9375rem;
  color: hsl(var(--text-muted));
  margin: 0;
}

.deposit-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 4px 24px hsl(0 0% 0% / 0.08);
}

.deposit-card__heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: hsl(var(--text));
}

.deposit-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.deposit-method {
  display: block;
  cursor: pointer;
  margin: 0;
}

.deposit-method__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.deposit-method__box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: hsl(var(--surface));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}

.deposit-method__input:checked + .deposit-method__box {
  border-color: hsl(var(--base));
  background: hsl(var(--base) / 0.08);
}

.deposit-method__thumb {
  width: 48px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--navy-2));
  border-radius: 6px;
  overflow: hidden;
}

.deposit-method__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.deposit-method__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--text));
}

.deposit-method__show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--base));
  background: none;
  border: none;
  cursor: pointer;
}

.deposit-amount__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--text));
  margin-bottom: 0.5rem;
}

.deposit-amount__input-wrap {
  display: flex;
  align-items: center;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.deposit-amount__input-wrap:focus-within {
  border-color: hsl(var(--base) / 0.6);
  box-shadow: 0 0 0 3px hsl(var(--base) / 0.1);
}

.deposit-amount__symbol {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--text-muted));
  background: hsl(var(--navy-2));
}

.deposit-amount__input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: hsl(var(--text));
  min-width: 0;
}

.deposit-amount__input::placeholder {
  color: hsl(var(--text-dim));
}

.deposit-summary {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}

.deposit-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: hsl(var(--text-muted));
}

.deposit-summary__row--total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--text));
}

.deposit-summary__info {
  margin-left: 0.25rem;
  color: hsl(var(--base));
  cursor: help;
}

.deposit-submit {
  padding: 12px 24px !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAILS PAGE — modern redesign
   ═══════════════════════════════════════════════════════════ */
.product-details-page {
  padding: 2rem 0 4rem;
  background: hsl(var(--ink));
}

.product-details-page .product-details-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  align-items: stretch;
}

@media (max-width: 991px) {
  .product-details-page .product-details-card {
    grid-template-columns: 1fr;
  }
}

.product-details-page .product-details-card__image-wrap {
  background: hsl(var(--surface));
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.product-details-page .product-details-card__image {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.product-details-page .product-details-card__body {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.product-details-page .product-details-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: hsl(var(--text));
  line-height: 1.3;
}

.product-details-page .product-details-card__desc {
  font-size: 0.9375rem;
  color: hsl(var(--text-muted));
  line-height: 1.6;
  margin: 0 0 1.5rem;
  flex: 1;
}

.product-details-page .product-details-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-details-page .product-details-meta__pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--text));
}

.product-details-page .product-details-meta__pill--price {
  background: hsl(var(--base) / 0.15);
  border-color: hsl(var(--base) / 0.4);
  color: hsl(var(--base));
}

.product-details-page .product-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.product-details-page .product-details-actions .btn--base {
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius);
}

.product-details-page .related-products-section {
  margin-top: 3rem;
}

.product-details-page .related-products-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: hsl(var(--text));
}

/* ═══════════════════════════════════════════════════════════
   PURCHASE MODAL — redesigned popup
   ═══════════════════════════════════════════════════════════ */
.purchase-modal .modal-dialog {
  max-width: 440px;
}

.purchase-modal__content {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: hsl(var(--card));
  box-shadow: 0 24px 48px hsl(0 0% 0% / 0.25);
}

.purchase-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

.purchase-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: hsl(var(--text));
}

.purchase-modal__close {
  opacity: 0.7;
  padding: 0.5rem;
}

.purchase-modal__close:hover {
  opacity: 1;
}

body.theme-light .purchase-modal__close {
  filter: invert(1);
}

.purchase-modal__body {
  padding: 1.5rem;
}

.purchase-modal__product {
  margin-bottom: 1.25rem;
}

.purchase-modal__product-desc {
  font-size: 0.8125rem;
  color: hsl(var(--text-muted));
  line-height: 1.5;
  margin: 0;
  max-height: 4.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.purchase-modal__summary {
  background: hsl(var(--surface));
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
}

.purchase-modal__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.875rem;
}

.purchase-modal__row:first-child {
  padding-top: 0;
}

.purchase-modal__row:last-child {
  padding-bottom: 0;
}

.purchase-modal__label {
  color: hsl(var(--text-muted));
}

.purchase-modal__value {
  font-weight: 600;
  color: hsl(var(--text));
}

.purchase-modal__qty-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--text));
  margin-bottom: 0.5rem;
}

.purchase-modal__qty-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  color: hsl(var(--text));
  transition: border-color 0.2s;
}

.purchase-modal__qty-input:focus {
  outline: none;
  border-color: hsl(var(--base));
  box-shadow: 0 0 0 3px hsl(var(--base) / 0.15);
}

.purchase-modal__footer {
  padding: 0;
  border-top: 1px solid hsl(var(--border));
}

.purchase-modal__submit {
  margin: 0 !important;
  padding: 1rem 1.5rem !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  border: none !important;
}

.purchase-modal__login-msg {
  font-size: 0.9375rem;
  color: hsl(var(--text-muted));
}

/* Extra space under header on dashboard */
.main-content--dashboard {
  padding-top: 3rem !important;
}

@media (min-width: 576px) {
  .main-content--dashboard {
    padding-top: 3.5rem !important;
  }
}

@media (min-width: 992px) {
  .main-content--dashboard {
    padding-top: 4.5rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   USER DASHBOARD — modern redesign
   ═══════════════════════════════════════════════════════════ */
.dashboard-page {
  padding: 0 0 2rem;
  background: hsl(var(--ink));
}

.dashboard-sidebar__card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.dashboard-sidebar__card-head {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: hsl(var(--base));
  color: hsl(var(--white));
  text-align: center;
}

.dashboard-sidebar__card-body {
  padding: 1rem;
}

.dashboard-sidebar__name {
  font-weight: 600;
  font-size: 1rem;
  color: hsl(var(--text));
  margin: 0 0 0.5rem;
}

.dashboard-sidebar__line {
  font-size: 0.8125rem;
  color: hsl(var(--text-muted));
  margin: 0 0 0.25rem;
  line-height: 1.4;
}

.dashboard-sidebar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--base));
  background: hsl(var(--base) / 0.1);
  border: 1px solid hsl(var(--base) / 0.3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.dashboard-sidebar__btn:hover {
  background: hsl(var(--base) / 0.2);
  color: hsl(var(--base));
}

.dashboard-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.25rem;
}

.dashboard-sidebar__link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: hsl(var(--text-muted));
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.dashboard-sidebar__link:hover {
  color: hsl(var(--base));
}

.dashboard-sidebar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--text));
  border-radius: var(--radius);
  font-size: 1.5rem;
}

.dashboard-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, hsl(var(--base)) 0%, hsl(var(--base-h) var(--base-s) calc(var(--base-l) + 10%)) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.dashboard-balance__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(0 0% 100% / 0.8);
}

.dashboard-balance__amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--white));
  letter-spacing: -0.02em;
}

.dashboard-balance__btn {
  padding: 0.6rem 1.25rem !important;
  font-weight: 600 !important;
  background: hsl(var(--white)) !important;
  color: hsl(var(--base)) !important;
  border: none !important;
  border-radius: var(--radius) !important;
}

.dashboard-balance__btn:hover {
  opacity: 0.95;
  color: hsl(var(--base)) !important;
}

.dashboard-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.dashboard-card:hover {
  border-color: hsl(var(--base) / 0.3);
  box-shadow: 0 8px 24px hsl(0 0% 0% / 0.1);
}

.dashboard-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.dashboard-card__content {
  min-width: 0;
}

.dashboard-card__label {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  margin-bottom: 0.2rem;
}

.dashboard-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--text));
}

.dashboard-card--fund .dashboard-card__icon { background: hsl(var(--base) / 0.15); color: hsl(var(--base)); }
.dashboard-card--spent .dashboard-card__icon { background: hsl(220 70% 50% / 0.15); color: hsl(220 70% 50%); }
.dashboard-card--orders .dashboard-card__icon { background: hsl(280 60% 50% / 0.15); color: hsl(280 60% 50%); }
.dashboard-card--tickets .dashboard-card__icon { background: hsl(0 65% 50% / 0.15); color: hsl(0 65% 50%); }

.dashboard-section {
  margin-top: 2rem;
}

.dashboard-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: hsl(var(--text));
}

.dashboard-table-wrap {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.dashboard-table {
  margin: 0;
}

.dashboard-table thead th {
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--text-muted));
  background: hsl(var(--surface));
  border-bottom: 1px solid hsl(var(--border));
}

.dashboard-table tbody td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--text));
  border-bottom: 1px solid hsl(var(--border));
}

.dashboard-table tbody tr:last-child td {
  border-bottom: none;
}

.dashboard-table tbody tr:hover td {
  background: hsl(var(--surface) / 0.5);
}

/* Sidebar mobile (collapable) */
@media (max-width: 991px) {
  .dashboard-sidebar.collapable-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    min-width: 300px;
    max-width: 85vw;
    height: 100vh;
    z-index: 9999;
    background: hsl(var(--card));
    border-right: 1px solid hsl(var(--border));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .dashboard-sidebar.collapable-sidebar.show {
    transform: translateX(0);
  }

  .collapable-sidebar__close {
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--surface));
    border: none;
    color: hsl(var(--text));
    font-size: 1.25rem;
    z-index: 1;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: hsl(0 0% 0% / 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }

  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — login & register (modern card)
   ═══════════════════════════════════════════════════════════ */
.auth-page {
  padding: 3rem 0 4rem;
  background: hsl(var(--ink));
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.auth-page__inner {
  width: 100%;
}

.auth-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.12);
}

body.theme-light .auth-card {
  box-shadow: 0 4px 24px hsl(0 0% 0% / 0.06);
}

.auth-card__header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: hsl(var(--text));
  letter-spacing: -0.02em;
}

.auth-card__subtitle {
  font-size: 0.9375rem;
  color: hsl(var(--text-muted));
  margin: 0 0 1rem;
  line-height: 1.5;
}

.auth-card__header .social-login-btn,
.auth-card__header .social-login {
  margin-top: 0.5rem;
}

.auth-card__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-field__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--text));
}

.auth-field__input.form--control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border-radius: var(--radius);
}

.auth-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.auth-field--full {
  grid-column: 1 / -1;
}

.auth-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.auth-card__check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--text-muted));
  cursor: pointer;
  margin: 0;
}

.auth-card__check input {
  width: 1rem;
  height: 1rem;
  accent-color: hsl(var(--base));
}

.auth-card__agree {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--text-muted));
  cursor: pointer;
  margin: 0;
}

.auth-card__agree input {
  margin-top: 0.2rem;
  accent-color: hsl(var(--base));
}

.auth-card__agree a,
.auth-card__link {
  color: hsl(var(--base));
  text-decoration: none;
  font-weight: 500;
}

.auth-card__agree a:hover,
.auth-card__link:hover {
  text-decoration: underline;
}

.auth-card__submit {
  margin-top: 0.25rem;
  padding: 0.875rem 1.25rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
}

.auth-card__footer {
  text-align: center;
  font-size: 0.9375rem;
  color: hsl(var(--text-muted));
  margin: 0;
  padding-top: 0.25rem;
}

/* Captcha inside auth form */
.auth-card__form .form-group {
  margin: 0;
}

.auth-card__form .form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--text));
}

@media (max-width: 575px) {
  .auth-page {
    padding: 2rem 0 3rem;
  }
  .auth-card {
    padding: 1.5rem 1.25rem;
  }
  .auth-card__title {
    font-size: 1.25rem;
  }
  .auth-card__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
