:root {
  --violet-950: #0a0416;
  --violet-900: #0e061d;
  --violet-850: #130a26;
  --violet-800: #180d2e;
  --violet-750: #1d1136;
  --violet-700: #241540;
  --violet-650: #2b1a4d;
  --violet-600: #34205e;
  --violet-500: #4a2f8c;
  --violet-400: #6b4bc4;
  --violet-300: #8f6ee0;
  --violet-200: #b39ef0;

  --violet: #a376f7;
  --violet-light: #c39bfa;
  --violet-dark: #7a4fd6;
  --violet-glow: rgba(163, 118, 247, 0.1);
  --violet-glow-strong: rgba(163, 118, 247, 0.18);

  --bg-primary: var(--violet-900);
  --bg-secondary: var(--violet-850);
  --bg-card: var(--violet-800);
  --bg-card-hover: var(--violet-750);
  --bg-elevated: var(--violet-700);
  --bg-input: var(--violet-850);

  --text-1: #f0ebfa;
  --text-2: #c9c0e3;
  --text-3: #9a8fc0;
  --text-muted: #7a709c;

  --border-1: rgba(163, 118, 247, 0.1);
  --border-2: rgba(163, 118, 247, 0.2);
  --border-3: rgba(163, 118, 247, 0.3);

  --success: #34d399;
  --danger: #ef4444;
  --warning: #f59e0b;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 12px var(--violet-glow);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --tx: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --tx-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 72px;
}

* { box-sizing: border-box; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--violet-950); }
::-webkit-scrollbar-thumb { background: var(--violet-500); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet-400); }

::selection { background: var(--violet); color: var(--violet-950); }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-height);
}

main { flex: 1; }

a { color: var(--violet); transition: var(--tx); text-decoration: none; }
a:hover { color: var(--violet-light); }

/* ============================
   MOBILE (default, <768px)
   ============================ */

/* Navbar mobile */
.navbar {
  background: linear-gradient(180deg, var(--violet-950) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-1);
  padding: 0;
  min-height: 56px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 1rem;
}

.mobile-menu-btn {
  border: none;
  color: var(--violet);
  font-size: 1.4rem;
  padding: 0.25rem 0.5rem;
  background: rgba(163, 118, 247, 0.08);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:focus { box-shadow: none; }

.desktop-nav,
.desktop-actions { display: none; }

/* Mobile logged-in user info */
.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-3);
  border-top: 1px solid var(--border-1);
  margin-top: 0.5rem;
}

.mobile-user-info .lucide { width: 1rem; height: 1rem; color: var(--violet); }

/* Mobile auth buttons */
.mobile-auth-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
}

.mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--tx);
}

.mobile-btn-gold {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
  color: var(--violet-950) !important;
}

.mobile-btn-outline {
  border: 1px solid var(--border-2);
  color: var(--text-1) !important;
}

.mobile-btn-outline:hover {
  border-color: var(--violet);
  color: var(--violet) !important;
}

/* Offcanvas mobile menu */
.offcanvas {
  background: var(--violet-950);
  border-left: 1px solid var(--border-1);
}

.offcanvas .btn-close { filter: invert(0.8); }

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--tx);
  text-decoration: none;
}

.mobile-nav-link .lucide { width: 1.25rem; height: 1.25rem; color: var(--violet); }

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--violet);
  background: rgba(163, 118, 247, 0.06);
}

.btn-quick-mobile {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet)) !important;
  color: var(--violet-950) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm);
  margin: 0 1.25rem;
  padding: 0.75rem 1.25rem !important;
  text-align: center;
}

.btn-quick {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet)) !important;
  color: var(--violet-950) !important;
  font-weight: 700 !important;
  text-align: center;
}

/* Alert mobile */
.alert-banner {
  background: linear-gradient(135deg, var(--violet-700), var(--violet-600));
  border: 1px solid var(--border-2);
  color: var(--violet-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  text-align: center;
  margin: 0.75rem;
}

/* Hero mobile */
.hero-banner {
  padding: 2rem 1rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--violet-glow) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-banner h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-banner p {
  color: var(--text-3);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(163, 118, 247, 0.1);
  border: 1px solid var(--border-2);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--violet);
  margin-bottom: 1rem;
}

/* Search mobile */
.search-section {
  padding: 0 0.75rem;
  margin-bottom: 1.25rem;
}

.search-wrapper {
  display: flex;
  min-width: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border-1);
  border-radius: 100px;
  overflow: hidden;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: border-color var(--tx), box-shadow var(--tx);
}

.search-icon {
  flex: 0 0 auto;
  padding-left: 1rem;
  color: var(--violet-300);
  font-size: 0.9rem;
}

.search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-1);
  padding: 0.85rem 0.5rem;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.search-input::placeholder { color: var(--text-3); }

.search-select {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-1);
  color: var(--text-2);
  padding: 0.8rem 0.5rem 0.8rem 0.6rem;
  font-size: 0.8rem;
  outline: none;
  min-width: 84px;
  max-width: 96px;
  cursor: pointer;
  font-family: inherit;
}

.search-select option { background: var(--violet-850); color: var(--text-1); }

.search-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin: 4px;
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--violet-glow-strong);
  transition: var(--tx);
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px var(--violet-glow-strong);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.pill {
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: 100px;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tx);
  font-family: inherit;
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
}

.pill:hover {
  border-color: var(--border-2);
  color: var(--violet);
  box-shadow: 0 0 10px var(--violet-glow);
}

.pill.active {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--violet-glow-strong);
}

/* Product grid mobile */
#products-parent { margin: 0; }

.product-item .card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0;
}

.product-item .card.border-primary { border-color: var(--border-2) !important; }

.product-item .card-body { padding: 0.85rem; }
.product-item .card-footer {
  padding: 0.75rem 0.85rem;
  border-top: 1px solid var(--border-1);
  background: transparent;
}

.product-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--violet-800), var(--violet-750));
  position: relative;
  overflow: hidden;
}

.product-thumb .lucide {
  width: 3rem;
  height: 3rem;
  color: var(--violet);
  opacity: 0.3;
  transition: var(--tx-slow);
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--tx-slow);
}

.product-item .card:hover .product-thumb-img {
  transform: scale(1.08);
}

/* Featured spotlight mobile */
.featured-spotlight {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.75rem 0.5rem;
  margin-bottom: 1rem;
}

.featured-spotlight::-webkit-scrollbar { display: none; }

.featured-card {
  flex: 0 0 75%;
  scroll-snap-align: start;
  background: linear-gradient(135deg, var(--violet-800), var(--violet-750));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: var(--tx);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-1);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet-dark), var(--violet), var(--violet-dark));
}

.featured-card .icon {
  font-size: 1.5rem;
  color: var(--violet);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.featured-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .featured-img {
    width: 80px;
    height: 80px;
  }
}

/* Admin content area mobile */
@media (max-width: 767px) {
  .admin-content-wrap { padding: 0.75rem !important; }
  .admin-content-wrap h3 { font-size: 1rem; }
  .admin-content-wrap .card-body.p-4 { padding: 1rem !important; }

  .option-row .col-md-1 {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
  }

  .option-row .col-md-1 .btn {
    width: 100%;
  }

  .admin-content-wrap .btn-lg {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .admin-content-wrap .admin-section-title {
    font-size: 0.78rem;
  }
}

/* Mobile admin sidebar */
.admin-sidebar {
  padding: 1rem 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-1);
  background: var(--violet-950);
}

.admin-sidebar h5 { display: none; }

.admin-sidebar .nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.admin-sidebar .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.5rem !important;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-2);
  text-decoration: none;
  transition: var(--tx);
}

.admin-sidebar .nav-link .lucide {
  width: 18px;
  height: 18px;
  color: var(--violet);
}

.admin-sidebar .nav-link.active {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
  color: var(--violet-950);
  border-color: var(--violet);
}

.admin-sidebar .nav-link.active .lucide { color: var(--violet-950); }

/* Admin dashboard cards */
.admin-stat-card {
  background: linear-gradient(135deg, var(--violet-800), var(--violet-750));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.admin-stat-card.gold::before { background: linear-gradient(90deg, var(--violet-dark), var(--violet), var(--violet-dark)); }
.admin-stat-card.green::before { background: linear-gradient(90deg, #1a6b3c, var(--success), #1a6b3c); }
.admin-stat-card.orange::before { background: linear-gradient(90deg, #8a5c00, var(--warning), #8a5c00); }

.admin-stat-card .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.admin-stat-card .stat-icon .lucide { width: 20px; height: 20px; }

.admin-stat-card .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.admin-stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-stat-card.gold .stat-icon { background: rgba(163, 118, 247, 0.15); color: var(--violet); }
.admin-stat-card.gold .stat-number { color: var(--violet); }
.admin-stat-card.green .stat-icon { background: rgba(34, 197, 94, 0.12); color: var(--success); }
.admin-stat-card.green .stat-number { color: var(--success); }
.admin-stat-card.orange .stat-icon { background: rgba(234, 179, 8, 0.12); color: var(--warning); }
.admin-stat-card.orange .stat-number { color: var(--warning); }

/* Admin responsive tables */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

.admin-table-wrap table { min-width: 460px; }

.admin-table-wrap th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-weight: 700;
  padding: 0.7rem 1rem !important;
  border-bottom: 1px solid var(--border-1) !important;
  background: var(--violet-900);
}

.admin-table-wrap td {
  padding: 0.7rem 1rem !important;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-1) !important;
  vertical-align: middle;
}

.admin-table-wrap tr:last-child td { border-bottom: none !important; }

@media (max-width: 767px) {
  .admin-table-wrap table,
  .admin-table-wrap thead,
  .admin-table-wrap tbody,
  .admin-table-wrap th,
  .admin-table-wrap td,
  .admin-table-wrap tr {
    display: block;
  }

  .admin-table-wrap thead { display: none; }

  .admin-table-wrap table { min-width: 0; }

  .admin-table-wrap tr {
    padding: 0.85rem;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
  }

  .admin-table-wrap td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: none !important;
    font-size: 0.82rem;
    gap: 0.5rem;
  }

  .admin-table-wrap td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-3);
    font-weight: 600;
    flex-shrink: 0;
  }

  .admin-table-wrap td:last-child { padding-bottom: 0 !important; }
  .admin-table-wrap td:first-child { padding-top: 0 !important; }
}

.admin-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

/* Admin stats grid: 2 cols on mobile, 4 on desktop */
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* 5-column grid for desktop */
@media (min-width: 992px) {
  .col-lg-5th { width: 20%; flex: 0 0 auto; }
}

/* Pagination */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 0 2rem;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--tx);
  min-width: 36px;
  text-align: center;
}

.page-btn:hover:not([disabled]) {
  border-color: var(--violet);
  color: var(--violet);
}

.page-btn.active {
  background: var(--violet);
  color: #000;
  border-color: var(--violet);
  font-weight: 700;
}

.page-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-btn .lucide {
  width: 16px;
  height: 16px;
}

.page-ellipsis {
  color: var(--text-3);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0 0.2rem;
}



.featured-card h6 {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  color: var(--text-1);
}

.featured-card .price {
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
  margin-top: auto;
}

/* Forms mobile */
.form-control, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-1);
  color: var(--text-1);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  width: 100%;
}

.form-control:focus, .form-select:focus {
  border-color: var(--violet) !important;
  box-shadow: 0 0 0 3px var(--violet-glow) !important;
  background: var(--bg-card);
  color: var(--text-1);
}

.form-label {
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  display: block;
}

/* Cards mobile */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
}

.card-body { padding: 1.25rem; }

/* Buttons mobile */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--tx);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet)) !important;
  color: var(--violet-950) !important;
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--violet) !important;
  color: var(--violet) !important;
}

.btn-lg { padding: 0.8rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }

/* Modal mobile */
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-1);
  padding: 1rem 1.25rem;
}

.modal-header .btn-close { filter: invert(0.8); }

/* Footer mobile */
footer {
  background: linear-gradient(0deg, var(--violet-950) 0%, transparent 100%);
  border-top: 1px solid var(--border-1);
  padding: 1.5rem 0;
  text-align: center;
  margin-top: auto;
}

footer p { font-size: 0.82rem; color: var(--text-3); margin: 0; }

/* Telegram float */
.btn-float-telegram {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1d93d2, #0f6fa3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(29, 147, 210, 0.4);
  z-index: 999;
  transition: var(--tx);
}

/* Utility */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.text-primary { color: var(--violet) !important; }
.text-success { color: var(--success) !important; }

.border-primary { border-color: var(--border-2) !important; }

.badge-gold {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
  color: var(--violet-950);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  padding: 0.3em 0.7em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-gold .lucide { width: 10px; height: 10px; }

.star-rating { color: var(--violet); font-size: 0.75rem; letter-spacing: 0.1em; }
.star-rating .star-filled { color: var(--violet); fill: var(--violet); }
.star-filled { color: var(--violet); fill: var(--violet); }
.star-input { display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:0.15rem; }
.star-input input { display:none; }
.star-input label { cursor:pointer; color:var(--text-3); font-size:1.2rem; transition:color .15s; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color:var(--violet); }
.star-input input:checked ~ label svg,
.star-input label:hover svg,
.star-input label:hover ~ label svg { fill:var(--violet); }

.table {
  width: 100%;
  font-size: 0.85rem;
}

.table-dark {
  background: var(--bg-card);
  color: var(--text-1);
}

.table-dark th,
.table-dark td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-1);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-item { animation: fadeInUp 0.5s ease both; }
.product-item:nth-child(1) { animation-delay: 0.03s; }
.product-item:nth-child(2) { animation-delay: 0.07s; }
.product-item:nth-child(3) { animation-delay: 0.11s; }
.product-item:nth-child(4) { animation-delay: 0.15s; }
.product-item:nth-child(5) { animation-delay: 0.19s; }
.product-item:nth-child(6) { animation-delay: 0.23s; }
.product-item:nth-child(7) { animation-delay: 0.27s; }
.product-item:nth-child(8) { animation-delay: 0.31s; }

/* Vouch card */
.vouch-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  color: var(--violet-950);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Empty state */
.empty-state-icon {
  color: var(--text-3);
  opacity: 0.5;
}

/* ============================
   TABLET (576px+)
   ============================ */
@media (min-width: 576px) {
  .search-wrapper {
    flex-direction: row;
  }
  .search-select { min-width: 140px; max-width: 160px; }
  .search-input { flex: 1; }
  .search-btn { width: 46px; height: 46px; margin: 5px; }
  .hero-banner h1 { font-size: 2.5rem; }
  .hero-banner { padding: 2.5rem 2rem 1.5rem; }

  .featured-spotlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    overflow: visible;
    padding: 0 0.75rem;
  }

  .featured-card {
    flex: none;
  }
}

/* ============================
   DESKTOP (768px+)
   ============================ */
@media (min-width: 768px) {
  :root { --nav-height: 72px; }

  body { padding-top: var(--nav-height); }

  .container {
    max-width: 1400px;
  }

  /* --- DESKTOP NAVBAR --- */
  .navbar {
    min-height: var(--nav-height);
    background: linear-gradient(180deg, var(--violet-950) 0%, rgba(14,6,29,0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .navbar .container {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .navbar-brand { margin-right: 0; }

  .mobile-menu-btn { display: none !important; }

  .desktop-nav {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .nav-list {
    display: flex;
    gap: 0.15rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-list .nav-link {
    font-size: 0.88rem;
    padding: 0.5rem 0.9rem;
    color: var(--text-2);
    font-weight: 500;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--tx);
    text-decoration: none;
  }

  .nav-list .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 2px;
    background: var(--violet);
    border-radius: 1px;
    transition: transform 0.3s ease;
  }

  .nav-list .nav-link:hover::after,
  .nav-list .nav-link.active::after { transform: translateX(-50%) scaleX(1); }

  .nav-list .nav-link:hover,
  .nav-list .nav-link.active {
    color: var(--violet) !important;
    background: rgba(163, 118, 247, 0.06);
  }

  .desktop-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .desktop-actions .nav-link {
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
    color: var(--text-2);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--tx);
    text-decoration: none;
  }

  .desktop-actions .nav-link:hover,
  .desktop-actions .nav-link.active {
    color: var(--violet) !important;
    background: rgba(163, 118, 247, 0.06);
  }

  .user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    background: rgba(163, 118, 247, 0.1);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--violet);
    font-weight: 600;
  }

  .btn-quick-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--violet-dark), var(--violet));
    border-radius: var(--radius-sm);
    color: var(--violet-950) !important;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--tx);
  }

  .btn-quick-sm:hover {
    box-shadow: 0 0 12px var(--violet-glow-strong);
    transform: translateY(-1px);
  }

  .cart-link {
    position: relative;
    font-size: 1.1rem !important;
    padding: 0.45rem 0.7rem !important;
  }

  /* --- DESKTOP ALERT --- */
  .alert-banner {
    margin: 1rem auto;
    max-width: 1200px;
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    padding: 0.85rem 1.25rem;
  }

  /* --- DESKTOP HERO --- */
  .hero-banner {
    padding: 5rem 0 3rem;
  }

  .hero-banner h1 {
    font-size: 4rem;
    letter-spacing: -0.04em;
  }

  .hero-banner p {
    font-size: 1.05rem;
    max-width: 540px;
  }

  @keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
  }

  /* --- DESKTOP SEARCH --- */
  .search-section {
    margin: 0 auto 2rem;
    padding: 0;
  }

  .search-wrapper {
    max-width: 680px;
    margin: 0 auto;
    border-radius: 100px;
    border-width: 2px;
  }

  .search-select {
    min-width: 140px;
    max-width: 180px;
  }

  .category-pills {
    justify-content: center;
    margin-top: 1rem;
  }

  .pill {
    font-size: 0.82rem;
    padding: 0.45rem 1.05rem;
    flex: 0 1 auto;
  }

  /* --- DESKTOP FEATURED SPOTLIGHT --- */
  .featured-spotlight {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .featured-card {
    background: linear-gradient(135deg, var(--violet-800), var(--violet-750));
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: var(--tx);
    position: relative;
    overflow: hidden;
  }

  .featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--violet-dark), var(--violet), var(--violet-dark));
  }

  .featured-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 12px var(--violet-glow);
  }

  .featured-card .icon {
    font-size: 1.8rem;
    color: var(--violet);
    margin-bottom: 0.75rem;
    opacity: 0.8;
  }

  .featured-card h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .featured-card .price {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: auto;
  }

  .featured-card .badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }

  /* --- DESKTOP PRODUCT GRID --- */
  #products-parent {
    margin: 0;
  }

  .product-item {
    animation: none;
  }

  .product-item .card {
    border-radius: var(--radius-lg);
    transition: var(--tx-slow);
    position: relative;
  }

  .product-item .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 15px var(--violet-glow);
    border-color: var(--border-2);
    background: var(--bg-card-hover);
  }

  .product-item .card.border-primary {
    box-shadow: 0 0 10px var(--violet-glow);
  }

  .product-thumb {
    height: 185px;
    position: relative;
  }

  .product-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(0deg, var(--bg-card) 0%, transparent 100%);
    opacity: 0;
    transition: var(--tx);
  }

  .product-item .card:hover .product-thumb::after { opacity: 1; }

  .product-item .card:hover .product-thumb .lucide {
    transform: scale(1.15);
    opacity: 0.5;
  }

  .product-item .card:hover .product-thumb-img {
    transform: scale(1.08);
  }

  .product-item .card-body { padding: 1rem 1.1rem 0.5rem; }
  .product-item .card-footer { padding: 0.5rem 1.1rem 1.1rem; }

  .product-item .card-footer .btn-primary {
    border-radius: var(--radius-sm) !important;
  }

  .product-item .card-footer .btn-primary:hover {
    box-shadow: 0 0 12px var(--violet-glow-strong) !important;
  }

  /* Section heading */
  .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
  }

  .section-heading h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .section-heading .view-all {
    font-size: 0.82rem;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--tx);
  }

  .section-heading .view-all:hover { color: var(--violet); }

  /* --- DESKTOP BUTTON HOVER --- */
  .btn-primary:hover {
    box-shadow: 0 0 12px var(--violet-glow-strong) !important;
    transform: translateY(-1px);
  }

  .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--violet-dark), var(--violet)) !important;
    color: var(--violet-950) !important;
    border-color: transparent !important;
  }

  /* --- DESKTOP FOOTER --- */
  footer {
    text-align: left;
    padding: 2rem 0;
  }

  footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
  }

  footer .footer-links {
    display: flex;
    gap: 1.5rem;
  }

  footer .footer-links a {
    font-size: 0.82rem;
    color: var(--text-3);
    transition: var(--tx);
  }

  footer .footer-links a:hover { color: var(--violet); }

  /* --- DESKTOP MODAL --- */
  .modal-dialog { max-width: 520px; }

  /* --- DESKTOP TELEGRAM --- */
  .btn-float-telegram {
    bottom: 28px;
    right: 28px;
    width: 54px;
    height: 54px;
  }

  .btn-float-telegram:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(29, 147, 210, 0.6);
  }

  /* --- DESKTOP FORM LAYOUT --- */
  .auth-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .auth-card .card {
    border-radius: var(--radius-xl);
  }

  /* --- DESKTOP ADMIN --- */
  .admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - var(--nav-height));
  }

  .admin-sidebar {
    background: linear-gradient(180deg, var(--violet-950) 0%, rgba(24,13,46,0.98) 100%);
    border-right: 1px solid var(--border-1);
    padding: 1.5rem 1rem;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-1);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .admin-sidebar-header .lucide {
    width: 1.3rem;
    height: 1.3rem;
    color: var(--violet);
  }

  .admin-sidebar-header span { color: var(--violet); }
  .admin-sidebar-header span span { color: var(--text-1); }

  .admin-sidebar .nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .admin-sidebar .nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    padding: 0.7rem 0.85rem !important;
    border-radius: var(--radius-md);
    margin: 0;
    border: 1px solid transparent;
    background: transparent;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-2);
    transition: all 0.2s ease;
  }

  .admin-sidebar .nav-link .lucide {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--text-3);
    transition: color 0.2s ease;
  }

  .admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.03);
    border-color: var(--border-1);
    color: var(--text-1);
  }

  .admin-sidebar .nav-link:hover .lucide { color: var(--violet); }

  .admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.05));
    border-color: rgba(212,175,55,0.25);
    color: var(--violet) !important;
    font-weight: 600;
  }

  .admin-sidebar .nav-link.active .lucide { color: var(--violet); }

  .admin-content-wrap {
    padding: 2rem 2.5rem !important;
    background: var(--bg-secondary);
  }

  .admin-content-wrap h3 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .admin-content-wrap .card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  }

  .admin-content-wrap .card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }

  .admin-stats-grid {
    gap: 1rem;
  }

  .admin-stat-card {
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  }

  .admin-stat-card .stat-number {
    font-size: 1.75rem;
  }

  .admin-table-wrap th {
    font-size: 0.7rem;
    padding: 0.85rem 1.25rem !important;
  }

  .admin-table-wrap td {
    padding: 0.85rem 1.25rem !important;
    font-size: 0.88rem;
  }

  .admin-content-wrap .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.88rem;
  }

  .admin-content-wrap .btn-primary:hover {
    box-shadow: 0 0 14px var(--violet-glow-strong);
    transform: translateY(-1px);
  }

  /* --- DESKTOP CART --- */
  .cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--tx);
  }

  .cart-item:hover { border-color: var(--border-2); }

  .order-summary-card {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
  }

  /* --- DESKTOP VOUCHES --- */
  .vouches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .vouch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--tx);
  }

  .vouch-card:hover {
    border-color: var(--border-2);
    transform: translateY(-2px);
  }

  /* --- DESKTOP PRODUCT DETAIL --- */
  .product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .product-detail-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
  }

  .product-detail-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
  }
}

/* ============================
   NEW COMPONENTS (blikri-inspired)
   ============================ */

/* Offcanvas (mobile menu) */
.offcanvas {
  --bs-offcanvas-width: 300px;
  width: 300px;
  background: var(--violet-950);
  border-left: 1px solid var(--border-1);
}

.offcanvas-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-1);
}

.offcanvas-header .btn-close { filter: invert(0.8); }

.offcanvas-body { padding: 1rem 0; }

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--tx);
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--violet);
  background: rgba(163, 118, 247, 0.06);
}

.mobile-nav-link.active .lucide { color: var(--violet); }

.btn-quick-mobile .lucide { color: var(--violet-950) !important; }

.hero-banner-content { position: relative; z-index: 1; }

.search-wrapper:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-glow), var(--shadow-md);
}

.search-btn:hover {
  box-shadow: 0 0 16px var(--violet-glow-strong);
}

/* Section heading */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.75rem;
}

.section-heading h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-heading .view-all {
  font-size: 0.78rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--tx);
}

.section-heading .view-all:hover { color: var(--violet); }

/* Accordion FAQ */
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a376f7'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion-button:not(.collapsed) { color: var(--violet); }

/* ============================
   AUTH PAGES (SPLIT LAYOUT)
   ============================ */
.auth-page {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-brand-panel {
  display: none;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.auth-form-panel-inner {
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-header-brand .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
}

.auth-header-brand .brand-text {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--text-2);
}

.auth-header h2 {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  color: var(--text-1);
}

.auth-header p {
  font-size: 0.88rem;
  color: var(--text-3);
  margin: 0;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.auth-footer-link {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

.auth-footer-link a {
  color: var(--violet);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

.forgot-link {
  font-size: 0.8rem;
  color: var(--text-3);
  text-decoration: none;
}

.forgot-link:hover {
  color: var(--violet);
}

.auth-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-1);
  font-size: 0.83rem;
  color: var(--violet);
  text-decoration: none;
}

.auth-quick:hover {
  opacity: 0.85;
}

.auth-quick .lucide {
  width: 15px;
  height: 15px;
}

.auth-body { padding-top: 0 !important; }

.auth-page-register {
  overflow: hidden;
}

@media (min-width: 768px) {
  .auth-page {
    flex-direction: row;
    background: var(--bg-canvas);
  }

  .auth-brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44%;
    min-width: 380px;
    padding: 3rem;
    background:
      radial-gradient(1100px 700px at -10% -20%, rgba(122, 79, 214, 0.28) 0%, transparent 55%),
      radial-gradient(800px 600px at 115% 115%, rgba(163, 118, 247, 0.2) 0%, transparent 50%),
      linear-gradient(160deg, #170d2e 0%, var(--violet-950) 55%, #1a0f33 100%);
    position: relative;
    overflow: hidden;
  }

  .brand-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      repeating-linear-gradient(90deg, transparent 0 46px, rgba(163, 118, 247, 0.05) 46px 47px),
      repeating-linear-gradient(0deg, transparent 0 46px, rgba(163, 118, 247, 0.05) 46px 47px);
    -webkit-mask-image: radial-gradient(85% 85% at 50% 25%, #000 25%, transparent 75%);
    mask-image: radial-gradient(85% 85% at 50% 25%, #000 25%, transparent 75%);
  }

  .brand-aurora {
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(40% 40% at 22% 18%, rgba(163, 118, 247, 0.18) 0%, transparent 60%),
      radial-gradient(36% 36% at 82% 72%, rgba(122, 79, 214, 0.22) 0%, transparent 60%),
      radial-gradient(30% 46% at 72% 22%, rgba(199, 125, 255, 0.12) 0%, transparent 55%),
      radial-gradient(28% 34% at 30% 84%, rgba(139, 92, 246, 0.14) 0%, transparent 55%);
    filter: blur(28px);
    animation: brand-aurora 18s ease-in-out infinite alternate;
  }

  .brand-mono {
    position: absolute;
    z-index: 1;
    top: -8%;
    right: -4%;
    font-size: 26rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.08em;
    pointer-events: none;
    user-select: none;
    background: linear-gradient(160deg, rgba(163, 118, 247, 0.16) 0%, rgba(122, 79, 214, 0.05) 55%, rgba(199, 125, 255, 0.12) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .auth-brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(199, 125, 255, 0.6), transparent);
    z-index: 2;
    pointer-events: none;
  }

  .brand-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
  }

  .brand-orb-1 {
    width: 420px;
    height: 420px;
    background: rgba(122, 79, 214, 0.4);
    top: -150px;
    left: -130px;
    animation: brand-float 14s ease-in-out infinite;
  }

  .brand-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(163, 118, 247, 0.26);
    bottom: -120px;
    right: -80px;
    animation: brand-float 18s ease-in-out infinite reverse;
  }

  .brand-orb-3 {
    width: 160px;
    height: 160px;
    background: rgba(200, 160, 255, 0.16);
    top: 55%;
    right: 12%;
    animation: brand-float 11s ease-in-out infinite 2s;
  }

  .brand-watermark {
    position: absolute;
    z-index: 1;
    pointer-events: none;
  }

  .brand-watermark-text {
    display: block;
    font-size: 20rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.08em;
    color: rgba(163, 118, 247, 0.03);
  }

  .brand-watermark-1 { top: 0; right: -80px; }
  .brand-watermark-2 { bottom: -60px; left: -90px; }
  .brand-watermark-2 .brand-watermark-text { font-size: 14rem; }

  .brand-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }

  .brand-circle-1 {
    width: 380px;
    height: 380px;
    border: 1px solid rgba(163, 118, 247, 0.07);
    top: -90px;
    right: -130px;
    animation: brand-spin 40s linear infinite;
  }

  .brand-circle-2 {
    width: 240px;
    height: 240px;
    border: 1px dashed rgba(163, 118, 247, 0.08);
    bottom: 8%;
    left: -70px;
    animation: brand-spin 32s linear infinite reverse;
  }

  .auth-brand-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 4, 22, 0) 0%, rgba(10, 4, 22, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .auth-brand-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 380px;
    text-align: left;
  }

  .brand-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.4rem;
  }

  .auth-brand-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    filter: drop-shadow(0 0 14px rgba(163, 118, 247, 0.35));
  }

  .auth-brand-icon::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(163, 118, 247, 0.22);
    animation: brand-ping 3s ease-out infinite;
  }

  .brand-logo-svg {
    width: 52px;
    height: 52px;
    display: block;
  }

  .auth-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.1;
    margin-bottom: 0.2rem;
    background: linear-gradient(120deg, var(--violet-light), var(--violet) 50%, #c77dff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .auth-brand-name .brand-shop {
    background: none;
    color: var(--text-1);
    -webkit-text-fill-color: var(--text-1);
  }

  .auth-brand-sub {
    font-size: 0.78rem;
    color: var(--text-3);
    letter-spacing: 0.04em;
  }

  .brand-title {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.18;
    color: #fff;
    margin: 0 0 0.9rem;
  }

  .brand-title span {
    background: linear-gradient(120deg, var(--violet-light), var(--violet-300), var(--violet-200));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: brand-shimmer 5s linear infinite;
  }

  .brand-desc {
    font-size: 0.9rem;
    color: var(--text-3);
    line-height: 1.65;
    margin: 0 0 1.9rem;
  }

  .brand-features {
    list-style: none;
    margin: 0 0 1.9rem;
    padding: 0;
    display: grid;
    gap: 0.8rem;
  }

  .brand-features li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.8rem 0.95rem;
    background: rgba(10, 4, 22, 0.45);
    border: 1px solid rgba(163, 118, 247, 0.14);
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
    transition: var(--tx);
  }

  .brand-features li:hover {
    transform: translateX(4px);
    border-color: rgba(163, 118, 247, 0.32);
    background: rgba(163, 118, 247, 0.08);
  }

  .brand-feature-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
    color: #fff;
    box-shadow: var(--shadow-glow);
  }

  .brand-feature-icon .lucide { width: 17px; height: 17px; }

  .brand-features strong {
    display: block;
    font-size: 0.86rem;
    color: #eadffc;
    margin-bottom: 0.12rem;
  }

  .brand-features small {
    display: block;
    font-size: 0.76rem;
    color: var(--text-3);
    line-height: 1.45;
  }

  .brand-stats {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.9rem;
  }

  .stat {
    flex: 1;
    padding: 0.8rem 0.4rem;
    text-align: center;
    background: rgba(10, 4, 22, 0.5);
    border: 1px solid rgba(163, 118, 247, 0.14);
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
  }

  .stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(120deg, var(--violet-light), var(--violet-200));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .stat span {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: 0.25rem;
  }

  .brand-quote {
    position: relative;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.6rem;
    background: rgba(10, 4, 22, 0.5);
    border: 1px solid rgba(163, 118, 247, 0.16);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
  }

  .brand-quote::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), transparent);
  }

  .brand-quote > p {
    font-size: 0.86rem;
    color: var(--text-2);
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 0.95rem;
  }

  .brand-quote-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .brand-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
    border: 1px solid rgba(163, 118, 247, 0.4);
  }

  .brand-avatar .lucide { width: 17px; height: 17px; color: #fff; }

  .brand-quote-author strong { display: block; font-size: 0.84rem; color: var(--text-1); }
  .brand-quote-author small { font-size: 0.73rem; color: var(--text-3); }

  .auth-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.95rem;
    border: 1px solid rgba(163, 118, 247, 0.2);
    border-radius: 100px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--violet);
    text-transform: uppercase;
    background: rgba(163, 118, 247, 0.06);
  }

  .auth-brand-tag .lucide { width: 13px; height: 13px; }

  .auth-brand-content > * { animation: brand-in 0.6s ease both; }
  .auth-brand-content > *:nth-child(2) { animation-delay: 0.07s; }
  .auth-brand-content > *:nth-child(3) { animation-delay: 0.14s; }
  .auth-brand-content > *:nth-child(4) { animation-delay: 0.21s; }
  .auth-brand-content > *:nth-child(5) { animation-delay: 0.28s; }
  .auth-brand-content > *:nth-child(6) { animation-delay: 0.35s; }
  .auth-brand-content > *:nth-child(7) { animation-delay: 0.42s; }

  .auth-form-panel {
    flex: 1;
    padding: 2rem;
    position: relative;
    background: radial-gradient(ellipse at 100% 100%, rgba(163, 118, 247, 0.03) 0%, transparent 50%);
    align-items: center;
    overflow: hidden;
  }

  .auth-card {
    padding: 2rem;
  }
}

@keyframes brand-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, 26px); }
}

@keyframes brand-aurora {
  from { transform: translate(-2%, -1%) rotate(-2deg) scale(1); }
  to { transform: translate(2%, 1%) rotate(2deg) scale(1.08); }
}

@keyframes brand-spin {
  to { transform: rotate(360deg); }
}

@keyframes brand-ping {
  0% { transform: scale(1); opacity: 0.9; }
  80%, 100% { transform: scale(1.25); opacity: 0; }
}

@keyframes brand-shimmer {
  to { background-position: 200% center; }
}

@keyframes brand-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Keep the auth split viewport-fixed on shorter screens */
@media (min-width: 768px) and (max-height: 840px) {
  .auth-brand-panel { padding: 2rem; }
  .brand-head { margin-bottom: 1.6rem; }
  .auth-brand-icon { width: 48px; height: 48px; }
  .brand-logo-svg { width: 43px; height: 43px; }
  .auth-brand-name { font-size: 1.2rem; letter-spacing: 0.12em; }
  .brand-title { font-size: 1.55rem; margin-bottom: 0.6rem; }
  .brand-desc { margin-bottom: 1.3rem; font-size: 0.84rem; }
  .brand-features { gap: 0.6rem; margin-bottom: 1.3rem; }
  .brand-features li { padding: 0.6rem 0.85rem; }
  .brand-features strong { font-size: 0.82rem; }
  .brand-features small { font-size: 0.72rem; }
  .brand-stats { margin-bottom: 1.3rem; }
  .brand-quote { display: none; }
}

@media (min-width: 768px) and (max-height: 700px) {
  .brand-features { display: none; }
  .brand-desc { display: none; }
  .auth-brand-content { max-width: 340px; }
}

/* ============================
   LARGE (992px+)
   ============================ */
@media (min-width: 992px) {
  .hero-banner h1 { font-size: 4.2rem; }
  .hero-banner { padding: 5rem 2rem 3rem; }

  #products-parent .product-item { animation: none; }
}

/* ============================
   EXTRA LARGE (1200px+)
   ============================ */
@media (min-width: 1200px) {
  .container { max-width: 1400px; }
}

@media print {
  .navbar, .btn-float-telegram, .alert-banner { display: none !important; }
  body { padding-top: 0; background: white; color: black; }
}

/* ============================
   LUCIDE ICONS
   ============================ */
.lucide {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 1.5;
}

.product-detail-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* Context icon sizes */
.featured-card .icon .lucide { width: 1.8rem; height: 1.8rem; }
.product-thumb .lucide { width: 3rem; height: 3rem; opacity: 0.3; }
.star-rating .lucide { width: 0.65rem; height: 0.65rem; }
.cart-link .lucide { width: 1.1rem; height: 1.1rem; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--violet);
  color: var(--violet-950);
  font-size: .65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  padding: 0 4px;
}
.cart-link { position: relative; }
.search-icon .lucide { width: 0.9rem; height: 0.9rem; color: var(--violet-300); }

/* ============================
   SKELETON LOADING
   ============================ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-thumb {
  height: 160px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.skeleton-text {
  height: 14px;
  width: 80%;
  margin-bottom: 8px;
}

.skeleton-text-sm {
  height: 10px;
  width: 50%;
  margin-bottom: 6px;
}

.skeleton-price {
  height: 18px;
  width: 30%;
}

#skeleton-grid .card {
  border: 1px solid var(--border-1);
  overflow: hidden;
}

#skeleton-grid .card-body {
  padding: 0.85rem;
}

#skeleton-grid .card-footer {
  padding: 0.75rem 0.85rem;
  border-top: 1px solid var(--border-1);
}

@media (min-width: 768px) {
  .skeleton-thumb { height: 185px; }
}

/* ============================
   DEPOSIT / CRYPTO CARDS
   ============================ */
.payment-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 576px) {
  .payment-card-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }
}

.payment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 100px;
}

.payment-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.payment-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-card:has(input:checked) {
  border-color: var(--violet);
  background: var(--violet-750);
  box-shadow: 0 0 16px var(--violet-glow), inset 0 0 20px var(--violet-glow);
}

.payment-card .crypto-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.payment-card .crypto-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.payment-card .crypto-label {
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-2);
  line-height: 1.2;
}

.payment-card:has(input:checked) .crypto-label {
  color: var(--violet);
}

.payment-card .crypto-min-note {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  font-size: .6rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-3);
  line-height: 1.2;
}

.payment-card .check-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--violet-800);
  border: 1.5px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.payment-card:has(input:checked) .check-badge {
  opacity: 1;
  background: var(--violet);
  border-color: var(--violet);
}

.payment-card .check-badge svg {
  width: 10px;
  height: 10px;
  color: var(--violet-950);
}

@media (min-width: 992px) {
  .payment-card {
    min-height: 110px;
    padding: 20px 14px;
  }
  .payment-card .crypto-icon-wrap {
    width: 44px;
    height: 44px;
  }
  .payment-card .crypto-icon-wrap svg {
    width: 26px;
    height: 26px;
  }
  .payment-card .crypto-label {
    font-size: .82rem;
  }
}

/* Balance card */
.balance-card {
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--violet-light), var(--violet));
}

.balance-card .balance-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--success);
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
  line-height: 1;
}

@media (min-width: 992px) {
  .balance-card .balance-amount {
    font-size: 3rem;
  }
}

/* Accepted methods badges */
.accepted-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.accepted-badges .badge-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .72rem;
  transition: all 0.2s;
}

.accepted-badges .badge-item:hover {
  border-color: var(--border-2);
  color: var(--text-1);
}

.accepted-badges .badge-item svg {
  width: 12px;
  height: 12px;
}

/* Deposit history cards */
.deposit-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deposit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.2s;
}

.deposit-card:hover {
  border-color: var(--border-2);
}

.deposit-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deposit-card-body {
  border-top: 1px solid var(--border-1);
  padding: 16px 0 0;
  margin-top: 8px;
}

.deposit-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.deposit-history-item:hover {
  border-color: var(--border-2);
}

.deposit-history-item .hist-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 700;
}

.deposit-history-item .hist-icon.btc { background: rgba(247,147,26,0.15); color: #f7931a; }
.deposit-history-item .hist-icon.sol { background: rgba(0,210,159,0.15); color: #00d29f; }
.deposit-history-item .hist-icon.usdt-eth,
.deposit-history-item .hist-icon.usdt-trc20 { background: rgba(38,174,140,0.15); color: #26ae8c; }
.deposit-history-item .hist-icon.trx { background: rgba(239,51,63,0.15); color: #ef333f; }
.deposit-history-item .hist-icon.eth { background: rgba(98,126,234,0.15); color: #627eea; }
.deposit-history-item .hist-icon.default { background: rgba(163,118,247,0.15); color: var(--violet); }

.deposit-history-item .hist-info {
  flex: 1;
  min-width: 0;
}

.deposit-history-item .hist-amount {
  font-weight: 700;
  font-size: .9rem;
  color: var(--success);
}

.deposit-history-item .hist-meta {
  font-size: .75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.deposit-history-item .hist-status {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .deposit-table-wrap { display: block; }
}

@media (max-width: 767.98px) {
  .deposit-table-wrap { display: none; }
}

/* ============================
   MICRO-ANIMATIONS (reveal)
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================
   LANGUAGE SWITCHER
   ============================ */
.lang-switch {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: var(--tx);
  text-decoration: none;
}

.lang-switch.active {
  background: var(--violet);
  color: var(--violet-950);
  border-color: var(--violet);
}

.lang-switch:hover {
  color: var(--violet-light);
  border-color: var(--violet);
}

/* ============================
   PURCHASES / OUT-OF-STOCK
   ============================ */
.purchase-item .purchase-content::-webkit-scrollbar { width: 4px; }

.badge.status-completed { color: var(--success); }
