/* ==========================================================================
   Volt Miner — Design System
   ========================================================================== */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-accent: #f59e0b;

  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-danger: #dc2626;
  --color-success: #16a34a;

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

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  --container-width: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-danger {
  background: #fee2e2;
  color: var(--color-danger);
}

.btn-danger:hover {
  background: var(--color-danger);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.header-inner-minimal {
  justify-content: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-mark {
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
  transform: translateY(-1px) rotate(-4deg);
}

.logo-text {
  line-height: 1;
}

.logo-accent {
  color: var(--color-text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover {
  color: var(--color-text);
}

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

.nav-link.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.nav-toggle:hover {
  background: var(--color-bg-alt);
}

.nav-toggle svg {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-toggle .menu-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.nav-toggle.open .menu-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.nav-toggle.open .menu-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Top bars ---------------------------------------------------------------- */

.promo-bar {
  background: var(--color-text); /* deep slate */
  color: #e2e8f0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 8px 16px;
}

.promo-bar strong {
  color: #fff;
  font-weight: 700;
}

.icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text);
  transition: background 0.15s ease;
}

.icon-link:hover {
  background: var(--color-bg-alt);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
  color: #fff;
  padding: 72px 20px;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 280px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  max-width: 480px;
}

.btn-hero-primary {
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-hero-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.3);
}

.btn-hero-primary .btn-arrow {
  transition: transform 0.22s ease;
}

.btn-hero-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Trust bar
   ------------------------------------------------------------------------- */

.trust-bar {
  position: relative;
  z-index: 5;
  margin-top: -46px;
  margin-bottom: 8px;
  padding: 0 20px;
}

.trust-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.trust-ico {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.trust-item:hover .trust-ico {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
}

.trust-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.trust-text span {
  font-size: 13px;
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .trust-bar { margin-top: -32px; }
}

@media (max-width: 720px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 440px) {
  .trust-inner { grid-template-columns: 1fr; }
  .trust-bar { margin-top: 4px; }
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */

.section {
  padding: 56px 20px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 26px;
}

.section-header a {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 14px;
}

/* -------------------------------------------------------------------------
   Category chips
   ------------------------------------------------------------------------- */

.category-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.category-chip {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.category-chip:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Product grid / card
   ------------------------------------------------------------------------- */

.product-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card .category-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.product-card .price {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: auto;
}

.product-card .btn {
  margin-top: 8px;
}

/* -------------------------------------------------------------------------
   Product detail
   ------------------------------------------------------------------------- */

.product-detail {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-detail .thumb-large {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail .thumb-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail .price {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 12px 0 20px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-control button {
  background: var(--color-bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
}

.qty-control input {
  width: 44px;
  text-align: center;
  border: none;
  font-size: 15px;
  height: 36px;
}

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-card {
  max-width: 420px;
  margin: 60px auto;
  padding: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.auth-card h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.auth-card .sub {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.auth-switch a {
  color: var(--color-primary);
  font-weight: 600;
}

.form-message {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.form-message.error {
  background: #fee2e2;
  color: var(--color-danger);
  display: block;
}

.form-message.success {
  background: #dcfce7;
  color: var(--color-success);
  display: block;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.forgot-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Phone input with a fixed, non-editable country-code prefix. The wrapper is
   styled to look like the input; the inner field drops its own border/ring. */
.phone-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  overflow: hidden;
}

.phone-field:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border-right: 1px solid var(--color-border);
  white-space: nowrap;
  user-select: none;
}

/* Inline SVG flag — renders identically on every OS (unlike flag emoji). */
.phone-flag {
  display: block;
  width: 22px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.phone-code {
  line-height: 1;
}

.phone-field input {
  flex: 1;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------
   Cart
   ------------------------------------------------------------------------- */

.cart-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item .thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.cart-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item .name {
  font-weight: 600;
  font-size: 15px;
}

.cart-item .unit-price {
  color: var(--color-text-muted);
  font-size: 13px;
}

.cart-item .line-total {
  font-weight: 700;
  min-width: 80px;
  text-align: right;
}

.remove-link {
  color: var(--color-danger);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.summary-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.summary-row.total {
  color: var(--color-text);
  font-weight: 700;
  font-size: 18px;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "thumb info info"
      "thumb qty  total";
    column-gap: 12px;
    row-gap: 10px;
    padding: 18px 0;
  }

  .cart-item .thumb {
    grid-area: thumb;
    align-self: start;
    justify-self: start;
    width: 64px;
    height: 64px;
  }

  .cart-item-info {
    grid-area: info;
    min-width: 0;
  }

  .cart-item-info .name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cart-item .qty-control {
    grid-area: qty;
    align-self: center;
    justify-self: start;
  }

  .cart-item .line-total {
    grid-area: total;
    align-self: center;
    justify-self: end;
    font-size: 16px;
    min-width: 0;
    white-space: nowrap;
  }
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Admin
   ------------------------------------------------------------------------- */

.admin-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 20px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.admin-tab {
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.admin-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card h2 {
  font-size: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-active {
  background: #dcfce7;
  color: var(--color-success);
}

.badge-inactive {
  background: #f1f5f9;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Account
   ------------------------------------------------------------------------- */

.order-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.order-card .order-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.order-card .order-id {
  font-weight: 700;
}

.order-card .order-status {
  text-transform: capitalize;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  background: #0b1220;
  color: #94a3b8;
  border-top: 3px solid var(--color-primary);
  margin-top: 72px;
}

.footer-top {
  padding: 56px 20px 40px;
}

.footer-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.6fr;
  gap: 40px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 14px;
  max-width: 34ch;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.footer-logo .logo-mark {
  border-radius: 7px;
}

.logo-accent-light {
  color: #93c5fd;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #1e293b;
  color: #cbd5e1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Placeholder socials (no destination) — still hover, but signal they're inert. */
.social-dead {
  cursor: default;
}

/* Widened Telegram button — the real support channel, so it reads as a label. */
.socials a.social-telegram {
  width: auto;
  padding: 0 16px;
  gap: 8px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: #229ed9;
  border-color: #229ed9;
  color: #fff;
}

.socials a.social-telegram:hover {
  background: #1b8bc0;
  border-color: #1b8bc0;
}

/* Floating Telegram support bubble (opt-in per page). */
#support-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #229ed9;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#support-widget:hover {
  background: #1b8bc0;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(34, 158, 217, 0.55);
}

.support-widget-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 13px;
}

.support-widget-text strong {
  font-size: 14px;
}

@media (max-width: 520px) {
  .support-widget-text {
    display: none;
  }
  #support-widget {
    padding: 14px;
  }
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 3px;
}

.footer-newsletter p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid #1e293b;
  background: #111a2e;
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: #64748b;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.newsletter-done {
  color: #93c5fd;
  font-weight: 600;
  margin: 0;
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
}

.payments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  background: #111a2e;
  border: 1px solid #1e293b;
  padding: 4px 9px;
  border-radius: 6px;
}

.legal {
  display: flex;
  gap: 18px;
}

.legal a {
  color: #64748b;
  transition: color 0.18s ease;
}

.legal a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand,
  .footer-newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------------------------
   Auth field enhancements — password visibility toggle
   ------------------------------------------------------------------------- */

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.password-toggle:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.password-toggle .eye-off { display: none; }
.password-toggle.revealed .eye-open { display: none; }
.password-toggle.revealed .eye-off { display: block; }

/* -------------------------------------------------------------------------
   Checkout — payment method selection
   ------------------------------------------------------------------------- */

.checkout-step {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 28px 0 14px;
}

.pay-note {
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  margin: 0 0 16px;
}

.pay-note strong {
  color: var(--color-text);
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.pay-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-group-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.pay-method {
  display: block;
  cursor: pointer;
}

.pay-method input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pay-method-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pay-method:hover .pay-method-inner {
  border-color: var(--color-primary);
}

.pay-method input:checked + .pay-method-inner {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.pay-method input:focus-visible + .pay-method-inner {
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.pay-ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.pay-method-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.pay-method-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}

.pay-method-blurb {
  font-size: 13px;
  color: var(--color-text-muted);
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.pay-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px 7px;
}

.pay-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s ease;
}

.pay-method input:checked + .pay-method-inner .pay-check {
  border-color: var(--color-primary);
}

.pay-method input:checked + .pay-method-inner .pay-check::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-primary);
}

.pay-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 14px;
}

/* -------------------------------------------------------------------------
   Payment return / confirmation
   ------------------------------------------------------------------------- */

.pay-result {
  text-align: center;
}

.pay-result h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.pay-result > p {
  color: var(--color-text-muted);
  max-width: 48ch;
  margin: 0 auto 8px;
}

.pay-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  margin: 0 auto 22px;
  animation: vm-spin 0.8s linear infinite;
}

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

.pay-badge-check,
.pay-badge-state {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.pay-badge-check {
  background: #dcfce7;
  color: var(--color-success);
}

.pay-badge-state.error {
  background: #fee2e2;
  color: var(--color-danger);
}

.pay-badge-state.pending {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.pay-receipt {
  text-align: left;
  max-width: 420px;
  margin: 24px auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}

.pay-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* -------------------------------------------------------------------------
   Page hero + Support / info page
   ------------------------------------------------------------------------- */

.page-hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 20px;
}

.page-hero h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--color-text-muted);
  font-size: 16px;
  margin: 0;
  max-width: 60ch;
}

.support-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 60px;
  align-items: start;
}

.support-nav {
  position: sticky;
  top: 88px;
}

.support-nav nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--color-border);
}

.support-nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.support-nav a:hover {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.support-section {
  scroll-margin-top: 96px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.support-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.support-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.support-section h3 {
  font-size: 16px;
  margin: 18px 0 4px;
}

.support-content ul,
.support-content ol {
  color: var(--color-text-muted);
  font-size: 15px;
  padding-left: 20px;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-content a {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 760px) {
  .support-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .support-nav {
    position: static;
  }
  .support-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    gap: 6px;
  }
  .support-nav a {
    border: 1px solid var(--color-border);
    border-radius: 20px;
    margin-left: 0;
    padding: 6px 12px;
  }
  .support-nav a:hover {
    border-color: var(--color-primary);
  }
}

/* -------------------------------------------------------------------------
   Utility / responsive
   ------------------------------------------------------------------------- */

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

.mt-0 { margin-top: 0; }
.hidden { display: none !important; }

.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  /* Nav is absolutely positioned on mobile, so push the actions flush right. */
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }

  .main-nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 14px;
    left: auto;
    width: max-content;
    min-width: 210px;
    max-width: calc(100vw - 28px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    /* Zoom in from the top-right corner (by the menu button). */
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.82);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
      visibility 0.22s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-link {
    padding: 13px 12px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .nav-link::after { display: none; }

  .nav-link:hover,
  .nav-link.active {
    background: var(--color-bg-alt);
  }

  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .cart-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
