/* Sevdo — Mustaqil Moslashuvchan Dizayn Tizimi */
:root {
  --bg-page: #f6f7fb;
  --bg-surface: #ffffff;
  --bg-subtle: #eef0f8;
  --bg-header: #13112b;
  --bg-header-light: #221e4d;
  --text-main: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #e0e7ff;
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --teal-soft: #ccfbf1;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --border: #d1d5db;
  --border-strong: #9ca3af;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(19, 17, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(19, 17, 43, 0.09);
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.58;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility: Skip Link & Focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

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

/* Header & Navigation */
.site-header {
  background: var(--bg-header);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sevdo-anim-logo {
  position: relative;
  width: 46px;
  height: 46px;
  background: transparent;
  overflow: visible;
  display: inline-block;
  flex-shrink: 0;
}

.sevdo-anim-logo-sm {
  width: 42px;
  height: 42px;
}

.logo-piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.logo-piece-top {
  transform-origin: 50% 38%;
  animation: sevdoTopCycle 7.2s cubic-bezier(0.34, 1.35, 0.64, 1) infinite;
}

.logo-piece-bottom {
  transform-origin: 50% 62%;
  animation: sevdoBottomCycle 7.2s cubic-bezier(0.34, 1.35, 0.64, 1) infinite;
}

@keyframes sevdoTopCycle {
  /* 1-bosqich: Yuqoridan pastga aylanib tushish */
  0% {
    transform: translate3d(0, -18px, 0) rotate(-180deg) scale(0.84);
  }
  16% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  /* 2-bosqich: Shu holatda biroz tekis turish */
  48% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  /* 3-bosqich: Yon tomondan harakatlanish va joyiga qaytish */
  56% {
    transform: translate3d(14px, -2px, 0) rotate(22deg) scale(0.95);
  }
  63% {
    transform: translate3d(-12px, 1px, 0) rotate(-15deg) scale(0.97);
  }
  70% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  /* 4-bosqich: Yana shu holatda biroz tekis turish */
  93% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate3d(0, -18px, 0) rotate(180deg) scale(0.84);
  }
}

@keyframes sevdoBottomCycle {
  /* 1-bosqich: Pastdan yuqoriga aylanib chiqish (yuqori belgi bilan qarama-qarshi) */
  0% {
    transform: translate3d(0, 18px, 0) rotate(-180deg) scale(0.84);
  }
  16% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  /* 2-bosqich: Shu holatda biroz tekis turish */
  48% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  /* 3-bosqich: Qarama-qarshi yon tomondan harakatlanish va joyiga qaytish */
  56% {
    transform: translate3d(-14px, 2px, 0) rotate(22deg) scale(0.95);
  }
  63% {
    transform: translate3d(12px, -1px, 0) rotate(-15deg) scale(0.97);
  }
  70% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  /* 4-bosqich: Yana shu holatda biroz tekis turish */
  93% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate3d(0, 18px, 0) rotate(180deg) scale(0.84);
  }
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #6366f1 0%, #0d9488 100%);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.3rem;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.76rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.domain-pill {
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(165, 180, 252, 0.35);
  color: #e0e7ff;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
}

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

.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg-header-light);
  color: #ffffff;
}

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

.cart-pill {
  background: var(--bg-header-light);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-badge {
  background: var(--teal);
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-option {
  color: #cbd5e1;
  text-decoration: none;
  padding: 7px 11px;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.lang-option.current {
  background: var(--primary);
  color: #ffffff;
}

.lang-option:hover:not(.current) {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #13112b 0%, #1e1b4b 60%, #134e4a 100%);
  color: #ffffff;
  padding: 46px 0 52px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 820px;
  gap: 24px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(79, 70, 229, 0.32);
  border: 1px solid rgba(165, 180, 252, 0.45);
  color: #e0e7ff;
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 1.02rem;
  margin: 0 0 24px;
  max-width: 66ch;
}

.hero-search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 620px;
}

.hero-search-input {
  flex: 1;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #64748b;
  font-size: 0.96rem;
  background: #ffffff;
  color: var(--text-main);
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-stat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(13, 148, 136, 0.28);
  color: #5eead4;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

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

.btn-teal {
  background: var(--teal);
  color: #ffffff;
}
.btn-teal:hover {
  background: var(--teal-hover);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg-subtle);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.btn-disabled {
  background: #e5e7eb;
  color: #4b5563;
  border-color: #d1d5db;
  cursor: not-allowed;
}

/* Main Content Layout */
main {
  flex: 1;
  padding: 34px 0 56px;
}

.section-header {
  margin-bottom: 22px;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text-main);
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #a5b4fc;
}

.product-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 240px;
  padding: 16px;
  background: radial-gradient(circle at 50% 25%, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.product-card-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.38));
  transition: transform 0.2s ease;
}

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

.product-card-video-container {
  padding: 0;
  background: #0f172a;
}

.product-card-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.rolik-corner-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.detail-video-player {
  width: 100%;
  max-height: 400px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  border: 1px solid var(--border);
}

.product-card-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(19, 78, 74, 0.85) 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  gap: 8px;
}

.product-card-placeholder[hidden] {
  display: none !important;
}

.placeholder-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #0d9488 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.placeholder-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.placeholder-sub {
  font-size: 0.8rem;
  color: #cbd5e1;
  max-width: 28ch;
}

.product-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-os {
  background: #e2e8f0;
  color: #1e293b;
}

.badge-category {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.badge-version {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.badge-paid {
  background: var(--teal-soft);
  color: var(--teal-hover);
}

.badge-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge-failed {
  background: var(--danger-soft);
  color: var(--danger);
}

.product-card-title {
  font-size: 1.34rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}

.product-card-title a {
  color: var(--text-main);
  text-decoration: none;
}
.product-card-title a:hover {
  color: var(--primary);
}

.product-card-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

.price-box {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.price-value {
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-pending {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid #fcd34d;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-actions .btn,
.card-action-form {
  flex: 1;
  display: flex;
}

/* Category Chips */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  border-color: var(--primary);
  background: #f5f3ff;
}

/* Filter Bar */
.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--text-main);
  width: 100%;
}

textarea.form-control {
  min-height: 92px;
  resize: vertical;
}

/* Product Detail Page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: start;
}

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.sticky-buy-card {
  position: sticky;
  top: 86px;
}

.screenshot-slot {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--bg-page);
}

.screenshot-figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
}

.screenshot-img-wrap {
  width: 100%;
  height: 220px;
  padding: 12px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.screenshot-caption {
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: var(--bg-page);
}

.admin-image-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.admin-image-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.admin-image-preview {
  width: 240px;
  height: 150px;
  object-fit: contain;
  background: #0f172a;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.admin-two-windows-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 22px;
  margin-bottom: 22px;
  align-items: start;
}

.admin-window-card {
  margin-bottom: 0;
  border-top: 4px solid var(--primary);
}

.admin-window-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.stat-metric-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-metric-value {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-main);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.tech-table th {
  width: 36%;
  color: var(--text-muted);
  font-weight: 600;
  background: #f9fafb;
}

.mono-code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  background: #eef2ff;
  padding: 4px 8px;
  border-radius: 4px;
  word-break: break-all;
  display: inline-block;
}

.alert-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  background: #eef2ff;
  color: #312e81;
  font-size: 0.91rem;
  margin: 14px 0;
}

.alert-warning {
  border-left-color: var(--amber);
  background: var(--amber-soft);
  color: #78350f;
}

.alert-success {
  border-left-color: var(--teal);
  background: var(--teal-soft);
  color: #115e59;
}

.alert-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: #7f1d1d;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.data-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-secondary);
}

/* Payment Radio Cards */
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 18px;
}

.payment-option-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  background: #fff;
}

.payment-option-card:hover {
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--bg-header);
  color: #cbd5e1;
  padding: 40px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Breakpoints (Tablet & Mobile) */
@media (max-width: 960px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .hero-grid,
  .product-detail-layout,
  .admin-two-windows-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .sticky-buy-card {
    position: static;
  }
  .hero-title {
    font-size: 1.78rem;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-card-media {
    height: 210px;
  }
  .hero-search-form {
    flex-direction: column;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .header-actions {
    justify-content: space-between;
  }
}

/* Admin Panel Bo'limlar Navigatsiyasi (Tabs) */
.admin-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.16s ease;
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: #e2e8f0;
  border-color: var(--border-strong);
}

.admin-tab-btn.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.admin-tab-btn.active .admin-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.admin-tab-pane[hidden] {
  display: none !important;
}
