/* ── کاور شو — Mobile-First Reset & Design System ── */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700;900&display=swap');

:root {
  --bg-deep: #080c16;
  --bg-card: rgba(14, 20, 38, 0.75);
  --bg-surface: rgba(10, 16, 30, 0.9);
  --bg-input: rgba(30, 42, 66, 0.75);
  --accent: #007aff;
  --accent-soft: #3d9eff;
  --gold: #f59e0b;
  --gold-soft: #facc15;
  --text-primary: #ffffff;
  --text-secondary: #aeaeb2;
  --text-muted: #7c7c82;
  --border: rgba(255,255,255,0.12);
  --border-light: rgba(255,255,255,0.22);
  --danger: #ff453a;
  --success: #30d158;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 24px rgba(0, 122, 255, 0.2);
  --glass-bg: rgba(14, 20, 38, 0.78);
  --glass-border: rgba(255,255,255,0.1);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --font-base: 16px;
  --nav-height: 64px;
  --bottom-nav-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: var(--font-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-xl));
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Bottom Navigation (Mobile) ── */
.bottom-nav {
  position: fixed;
  bottom: var(--space-sm);
  left: var(--space-sm);
  right: var(--space-sm);
  z-index: 100;
  height: var(--bottom-nav-height);
  background: rgba(28, 35, 52, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-md) calc(6px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(50px) saturate(1.8);
  -webkit-backdrop-filter: blur(50px) saturate(1.8);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border: 0.5px solid rgba(255,255,255,0.1);
}

.bottom-nav::before { display: none; }

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 16px;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 48px;
  position: relative;
  letter-spacing: -0.2px;
}

.bottom-nav a .nav-icon {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.bottom-nav a.active .nav-icon {
  transform: scale(1.05);
}

.bottom-nav a:active .nav-icon {
  transform: scale(0.88);
  transition-duration: 0.08s;
}

/* ── Top Navigation (Desktop) ── */
.top-nav {
  display: flex;
  justify-content: center;
  padding: var(--space-sm);
  background: transparent;
  position: relative;
  z-index: 2;
}
.top-nav .logo img { height: 40px; width: auto; }
.top-nav-links { display: none; }

/* ── Container ── */
.container {
  padding: 0 var(--space-sm);
  max-width: 100%;
  margin: 0 auto;
}

/* ── Page Header ── */
.page-header {
  padding: calc(var(--nav-height) + var(--space-md)) var(--space-sm) var(--space-md);
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.4;
}

.page-header h1 span { color: var(--accent); }

.page-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: var(--space-xs);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 50px;
  text-decoration: none;
  border: none;
  letter-spacing: 0.3px;
}

.btn:active { transform: scale(0.96); opacity: 0.85; }

.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover { background: #d97706; }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-block { width: 100%; }

.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-sm {
  padding: 8px 16px;
  font-size: 0.78rem;
  min-height: 36px;
  border-radius: var(--radius-full);
}


.btn:disabled { opacity: 0.4; pointer-events: none; }

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
  min-height: 36px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-body { padding: var(--space-sm); }

.card-header {
  padding: var(--space-sm) var(--space-sm);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Form Elements ── */
.form-group {
  position: relative;
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  background: var(--bg-input);
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239498b3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

.form-group textarea { min-height: 100px; resize: vertical; }

/* ── Upload Zone ── */
.upload-zone {
  border: 1.5px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--bg-input);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.upload-zone:active { border-color: var(--accent); background: rgba(0, 122, 255, 0.05); }

.upload-zone .icon { font-size: 2.5rem; display: block; margin-bottom: var(--space-xs); }

.upload-zone p { color: var(--text-secondary); font-size: 0.85rem; }

.upload-zone input { display: none; }

/* ── Image Preview ── */
.image-preview {
  margin-top: var(--space-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.image-preview img { width: 100%; display: block; }

.image-preview .remove {
  position: absolute;
  top: 8px; left: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 69, 58, 0.9);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Custom Checkbox ── */
.custom-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 16px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
  user-select: none;
}

.custom-check:active { border-color: var(--accent); }

.custom-check input { display: none; }

.custom-check .check-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.7rem;
  color: #fff;
}

.custom-check input:checked + .check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.custom-check input:checked + .check-box::after {
  content: '✓';
}

.custom-check span:last-child {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Progress Bar ── */
.progress-bar {
  display: -webkit-inline-box;
  justify-content: center;
  gap: 4px;
  padding: var(--space-sm) 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.progress-bar::-webkit-scrollbar { display: none; }

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.step-dot .circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-muted);
  transition: all 0.3s;
}

.step-dot .circle svg {
  width: 22px;
  height: 22px;
}

.step-dot .circle.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.step-dot .circle.done {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.step-dot .label {
  display: none;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
}

.step-dot .label.active { color: var(--accent); }
.step-dot .label.done { color: var(--success); }

.step-connector {
  height: 3px;
  width: 24px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 16px;
  flex-shrink: 0;
  transition: background 0.3s;
}

.step-connector.done { background: var(--success); }

@media (min-width: 480px) {
  .step-dot .label {
    display: block;
    font-size: 0.6rem;
  }
}

@media (min-width: 768px) {
  .step-dot .label {
    font-size: 0.65rem;
  }
}

/* ── Order Page ── */
.order-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) var(--space-sm);
}

.order-page .page-header {
  width: 100%;
  max-width: 600px;
}

.order-page .progress-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

.order-page #orderForm {
  width: 100%;
  max-width: 600px;
}

.order-page .form-nav {
  width: 100%;
  max-width: 600px;
}

/* ── Step Content ── */
.step-content { display: none; }
.step-content.active { display: block; animation: fadeUp 0.35s ease; }

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

.step-title {
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

/* ── Hero ── */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-md)) var(--space-sm) var(--space-lg);
  background: linear-gradient(165deg, #060a16 0%, #0c1430 35%, #0a1628 65%, #060a16 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(0,122,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(48,209,88,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(28, 38, 60, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-md);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  width: 100%;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.5px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* ── Section ── */
.section {
  padding: calc(var(--space-xl) * 1.2) var(--space-md);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.5px;
}

.section-title span { color: var(--accent); }

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-align: center;
  margin-bottom: var(--space-md);
}

/* ── Steps / How It Works (Timeline) ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-sm);
  position: relative;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--border);
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.timeline-icon svg { width: 24px; height: 24px; color: var(--accent); stroke-width: 1.8; }

.timeline-content {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
}

.timeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-deep);
  font-size: 0.78rem;
  font-weight: 900;
  flex-shrink: 0;
}

.timeline-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Slideshow ── */
.slideshow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.slideshow-track {
  position: relative;
}

.slideshow-track::before {
  content: '';
  display: block;
  padding-bottom: 100%;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active { opacity: 1; z-index: 2; }

.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-btn:active { transform: translateY(-50%) scale(0.92); background: var(--accent); color: #fff; }

.slider-btn-prev { right: 8px; }
.slider-btn-next { left: 8px; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.slider-dots span {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-dots span.active {
  background: var(--accent);
  width: 24px;
}

/* ── Confirmation Cards ── */
.confirm-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.confirm-card-header {
  padding: 12px 16px;
  background: var(--bg-surface);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.confirm-card-body { padding: 4px 16px; }

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.confirm-row:last-child { border-bottom: none; }

.confirm-row span { color: var(--text-secondary); }
.confirm-row strong { color: var(--text-primary); font-weight: 600; }

.confirm-cost { border-color: var(--gold); }
.confirm-cost .confirm-card-header {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ── Cost Feedback ── */
.cost-feedback {
  text-align: center;
  padding: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cost-feedback span {
  color: var(--accent);
  font-weight: 900;
  font-size: 1.1rem;
}

/* ── Form Navigation ── */
.form-nav {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.form-nav .btn { min-height: 48px; }

/* ── Success Message ── */
.success-message {
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
}

.success-message .icon { font-size: 3.5rem; margin-bottom: var(--space-sm); }

.success-message h2 { color: var(--success); font-size: 1.3rem; margin-bottom: var(--space-xs); }

.success-message p { color: var(--text-secondary); font-size: 0.88rem; }

.success-message .tracking-box {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin: var(--space-md) 0;
}

.success-message .tracking-box p:first-child {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.success-message .tracking-box .code {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 2px;
  direction: ltr;
}

/* ── Tracking ── */
.track-search {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.track-search input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-input);
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 2px;
  direction: ltr;
  transition: border-color 0.2s;
}

.track-search input:focus { border-color: var(--accent); outline: none; }
.track-search input::placeholder { letter-spacing: 0; font-size: 0.88rem; }

.track-order-info { text-align: center; margin-bottom: var(--space-md); }

.track-code-label { font-size: 0.78rem; color: var(--text-muted); }

.track-code {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 2px;
  direction: ltr;
}

.track-progress {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-sm) 0;
  max-width: 320px;
  margin: 0 auto;
}

.track-step-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.track-step-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.track-step-row.done .track-step-icon {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.1);
}

.track-step-row.active .track-step-icon {
  border-color: var(--accent);
  background: rgba(0, 122, 255, 0.1);
  box-shadow: var(--shadow-accent);
}

.track-step-info { flex: 1; padding-top: 8px; }

.track-step-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.track-step-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.track-step-row.done .track-step-info strong { color: var(--success); }
.track-step-row.active .track-step-info strong { color: var(--accent); }

.track-connector-v {
  width: 2px;
  height: 24px;
  background: var(--border);
  margin-right: 19px;
  margin-left: auto;
  flex-shrink: 0;
  transition: background 0.3s;
}

.track-connector-v.done { background: var(--success); }

.track-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.track-timeline {
  margin-top: var(--space-md);
}

.track-timeline h4 { font-size: 0.9rem; color: var(--text-primary); margin-bottom: var(--space-sm); }

.track-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
}

.track-timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  margin-top: 6px;
  flex-shrink: 0;
}

.track-timeline-item.done .track-timeline-dot { background: var(--success); }
.track-timeline-item.active .track-timeline-dot { background: var(--accent); box-shadow: 0 0 8px rgba(0, 122, 255, 0.4); }

.track-timeline-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.track-timeline-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.not-found {
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
}

.not-found .icon { font-size: 3rem; margin-bottom: var(--space-sm); }

.not-found h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: var(--space-xs); }

.not-found p { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Blog ── */
.blog-hero {
  padding: calc(var(--nav-height) + var(--space-md)) var(--space-sm) var(--space-lg);
  text-align: center;
  background: linear-gradient(160deg, var(--bg-deep) 0%, #0c0f1e 50%, var(--bg-card) 100%);
  position: relative;
}

.blog-hero h1 { font-size: 2rem; font-weight: 900; }
.blog-hero h1 span { color: var(--accent); }
.blog-hero p { color: var(--text-secondary); font-size: 0.85rem; margin-top: var(--space-xs); }

.blog-search {
  margin-top: var(--space-md);
  position: relative;
}

.blog-search input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--bg-input);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.blog-search input:focus { border-color: var(--accent); outline: none; }
.blog-search input::placeholder { color: var(--text-muted); }

.blog-featured {
  padding: 0 var(--space-sm) var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.blog-featured-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
}

.blog-featured-img {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}

.blog-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}

.blog-featured-content { padding: var(--space-sm); }

.blog-featured-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 122, 255, 0.12);
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.blog-featured-content h2 {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

.blog-featured-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

.blog-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.blog-section {
  padding: 0 var(--space-sm) var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.blog-section-header h2 { font-size: 1rem; font-weight: 800; }

.blog-section-header h2 span { color: var(--text-muted); font-size: 0.85rem; font-weight: 400; }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.blog-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:active { transform: scale(0.98); }

.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card-body { padding: var(--space-sm); flex: 1; display: flex; flex-direction: column; }

.blog-card-body h3 {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 6px;
}

.blog-card-body p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--space-sm);
  border-top: 1px solid var(--border);
}

.blog-card-footer .date { font-size: 0.68rem; color: var(--text-muted); }

.blog-card-footer .read-more {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap 0.2s;
}

/* ── Article ── */
.article-page { padding-top: var(--nav-height); }

.article-cover {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
}

.article-cover-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
}

.article-wrap {
  padding: 0 var(--space-sm) var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: var(--space-xs) 0;
  margin-bottom: var(--space-sm);
  transition: color 0.2s;
}

.article-back:hover { color: var(--accent); }

.article-head {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-sm);
}

.article-head h1 {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.cat-badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 122, 255, 0.12);
  color: var(--accent);
}

.article-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 2;
  white-space: pre-wrap;
}

.article-notfound { text-align: center; padding: var(--space-xl) var(--space-sm); }
.article-notfound h2 { font-size: 1.2rem; margin-bottom: var(--space-xs); }

/* ── Footer ── */
footer {
  padding: var(--space-lg) var(--space-sm) var(--space-lg);
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
}

footer .logo-footer { margin-bottom: var(--space-xs); }

footer .logo-footer img { height: 28px; width: auto; margin: 0 auto; opacity: 0.5; }

footer p {
  color: rgba(255,255,255,0.25);
  font-size: 0.65rem;
  line-height: 1.8;
  max-width: 280px;
  margin: 0 auto;
}

.footer-links {
  display: none;
}

/* ── Admin Styles ── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.admin-login-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-md);
  width: 100%;
  max-width: 400px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.admin-login-box h1 { font-size: 1.3rem; margin-bottom: var(--space-xs); }
.admin-login-box p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: var(--space-md); }

.admin-login-box input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--bg-input);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-xs);
}

.admin-login-box input:focus { border-color: var(--accent); outline: none; }

.admin-login-error { color: var(--danger); font-size: 0.82rem; margin-top: var(--space-xs); display: none; }

.admin-panel { display: none; }

.admin-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-sm);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav h2 { color: var(--accent); font-size: 0.95rem; font-weight: 900; }
.admin-nav .admin-user { color: var(--text-muted); font-size: 0.75rem; }

.admin-logout {
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  transition: all 0.2s;
}

.admin-logout:hover { border-color: var(--danger); color: var(--danger); }

.admin-body { padding: var(--space-sm); }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.admin-stat {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.admin-stat .num { font-size: 1.4rem; font-weight: 900; color: var(--accent); }
.admin-stat .label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
.admin-stat.green .num { color: var(--success); }
.admin-stat.blue .num { color: #60a5fa; }
.admin-stat.purple .num { color: #a78bfa; }

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  padding: 4px;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex: 1;
  text-align: center;
}

.admin-tab.active {
  background: var(--glass-bg);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.admin-toolbar-row {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.admin-toolbar select,
.admin-toolbar input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  background: var(--bg-input);
  color: var(--text-primary);
  flex: 1;
  min-width: 100px;
}

.admin-toolbar select:focus,
.admin-toolbar input:focus { border-color: var(--accent); outline: none; }

.admin-table-wrap {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.admin-table th {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.62rem;
  text-align: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 8px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

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

.admin-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.admin-card-header {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.admin-card-body {
  padding: var(--space-md);
}
.admin-input, .admin-select {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  flex: 1;
  min-width: 100px;
}
.admin-input:focus, .admin-select:focus { border-color: var(--accent); outline: none; }
.admin-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239498b3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

.admin-empty {
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
  color: var(--text-muted);
}

.admin-empty .icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 700;
}

.status-badge.ordered { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.status-badge.design_approved { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }
.status-badge.in_production { background: rgba(0, 122, 255, 0.12); color: var(--accent); }
.status-badge.packaging { background: rgba(251, 146, 60, 0.12); color: #fb923c; }
.status-badge.shipped { background: rgba(34, 197, 94, 0.12); color: var(--success); }
.status-badge.delivered { background: rgba(34, 197, 94, 0.12); color: var(--success); }

/* ── Admin Modal ── */
.admin-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}

.admin-modal-overlay.show { display: flex; }

.admin-modal {
  background: rgba(30, 30, 40, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(30, 30, 40, 0.95);
  z-index: 2;
}

.admin-modal-header h3 { font-size: 0.95rem; font-weight: 700; }
.admin-modal-header-left { display: flex; align-items: center; gap: var(--space-xs); }
.admin-modal-header-status { font-size: 0.65rem; padding: 3px 8px; border-radius: var(--radius-full); font-weight: 600; }

.admin-modal-close {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.admin-modal-close:active { background: rgba(255,255,255,0.15); }

.admin-modal-body { padding: var(--space-sm) 20px 20px; }

.admin-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.admin-modal-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.admin-modal-card.full { grid-column: 1 / -1; }

.admin-modal-card-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-modal-card-body { display: flex; flex-direction: column; gap: 6px; }

.admin-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.admin-modal-row span { color: var(--text-muted); font-size: 0.72rem; }
.admin-modal-row strong { color: var(--text-primary); font-weight: 600; font-size: 0.82rem; }

.admin-modal-photo-wrap { display: flex; flex-direction: column; gap: var(--space-xs); }

.admin-modal-photo {
  width: 100%;
  max-width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-photo img { width: 100%; height: 100%; object-fit: cover; }

.admin-modal-photo-empty {
  width: 100%;
  max-width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.admin-modal-price { font-size: 1.1rem; font-weight: 900; color: var(--accent); }

.admin-modal-status-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.admin-status-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.admin-status-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-input);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239498b3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

.admin-status-select:focus { border-color: var(--accent); outline: none; }

.admin-ship-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg-input);
  color: var(--text-primary);
}

.admin-ship-input:focus { border-color: var(--accent); outline: none; }

.admin-ship-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 4px; display: block; }

.admin-modal-actions { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: var(--space-sm); }

.admin-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s;
}

.admin-btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

/* ── Admin Toast ── */
.admin-toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-sm));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--success);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: none;
  animation: toastUp 0.3s ease;
  text-align: center;
  max-width: 90vw;
}

.admin-toast.error { background: var(--danger); }

@keyframes toastUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Admin Timeline ── */
.admin-timeline {
  position: relative;
  padding-right: 16px;
}

.admin-timeline::before {
  content: '';
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}

.admin-timeline-item {
  position: relative;
  padding: 8px 0;
  padding-right: 14px;
}

.admin-timeline-item:last-child { padding-bottom: 0; }

.admin-timeline-dot {
  position: absolute;
  right: -11px;
  top: 12px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg-card);
  z-index: 1;
  transition: all 0.3s;
}

.admin-timeline-item.done .admin-timeline-dot { background: var(--success); }
.admin-timeline-item.active .admin-timeline-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2); }

.admin-timeline-text strong { display: block; color: var(--text-primary); font-size: 0.82rem; font-weight: 600; }
.admin-timeline-text span { color: var(--text-muted); font-size: 0.7rem; }

/* ── Blog Management (Admin) ── */
.blog-categories { display: flex; gap: 6px; flex-wrap: wrap; }

.blog-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent);
}

.blog-form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xs); }
.blog-form-grid .full { grid-column: 1 / -1; }
.blog-form-group { margin-bottom: var(--space-xs); }

.blog-form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.blog-form-group input,
.blog-form-group select,
.blog-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg-input);
  color: var(--text-primary);
}

.blog-form-group input:focus,
.blog-form-group select:focus,
.blog-form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.blog-form-group textarea { min-height: 100px; resize: vertical; }

.blog-form-check {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px 14px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
}

.blog-form-check:hover { border-color: var(--accent); }
.blog-form-check input { display: none; }

.blog-form-check .check-box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--bg-deep);
  transition: all 0.2s;
}

.blog-form-check input:checked + .check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.blog-form-check input:checked + .check-box::after { content: '✓'; }
.blog-form-check span { color: var(--text-secondary); font-size: 0.82rem; font-weight: 600; }

.blog-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent);
}

.blog-table-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ── Design Service (order step 2) ── */
.design-service {
  margin-top: var(--space-sm);
}

/* ── Photo Preview in Confirm (order step 5) ── */
.confirm-photo-preview {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  max-width: 160px;
  margin: 0 auto var(--space-sm);
}

.confirm-photo-preview img { width: 100%; display: block; }

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==================================================================
   TABLET (min-width: 480px)
   ================================================================== */
@media (min-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .page-header { padding: calc(var(--nav-height) + var(--space-lg)) var(--space-md) var(--space-md); }
  .page-header h1 { font-size: 1.8rem; }
  .section { padding: calc(var(--space-xl) * 1.2) var(--space-lg); }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.95rem; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { flex: 1; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .hero {
    min-height: 85vh;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg);
  }

  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1rem; }
  .hero-actions .btn { flex: none; }

  .steps-scroll { justify-content: center; }

  .blog-featured-card {
    flex-direction: row;
  }

  .blog-featured-img {
    width: 45%;
    height: auto;
    min-height: 280px;
  }

  .blog-featured-content { padding: var(--space-md); }
  .blog-featured-content h2 { font-size: 1.3rem; }

  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

  .track-details { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }

  .track-progress {
    flex-direction: row;
    max-width: 100%;
    justify-content: center;
    gap: 0;
  }

  .track-step-row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }

  .track-step-info { text-align: center; padding-top: 0; }
  .track-connector-v {
    width: 40px;
    height: 3px;
    margin: 0;
    margin-top: 18px;
  }

  /* Admin modals: center on desktop */
  .admin-modal-overlay { align-items: center; }
  .admin-modal { max-width: 600px; border-radius: var(--radius-lg); }

  .admin-modal-grid { grid-template-columns: 1fr 1fr; }

  .admin-toast { bottom: var(--space-lg); }

  .form-nav .btn { flex: none; min-width: 140px; }

  /* ── Flex-center all content boxes on desktop ── */
  .section,
  .page-header,
  .blog-hero,
  .blog-section,
  .article-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .section-title,
  .section-subtitle {
    width: 100%;
  }

  /* ── Desktop timeline: horizontal card row ── */
  .timeline {
    flex-direction: row;
    max-width: 896px;
    width: 100%;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
  .timeline-item {
    flex-direction: column;
    text-align: center;
    flex: 1;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
  }
  .timeline-item + .timeline-item { border-top: none; }
  .timeline-content { flex-direction: column; text-align: center; }
  .timeline-icon { width: 56px; height: 56px; }

  /* ── Desktop footer: multi-column ── */
  footer {
    text-align: start;
    padding: var(--space-xl) var(--space-lg) var(--space-xl);
  }
  footer::before { width: 100%; max-width: 1100px; left: 50%; transform: translateX(-50%); }
  footer p { max-width: none; margin: 0; }
  .footer-brand p { max-width: 260px; }
  .footer-inner {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: var(--space-xl);
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }
  .footer-links h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
  }
  .footer-links a,
  .footer-links span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
  }
  .footer-links a:hover { color: var(--accent); }

  /* ── Desktop top nav: polish ── */
  .top-nav-links a {
    padding: 10px 18px;
    font-size: 0.82rem;
  }
  .top-nav-links .nav-cta { padding: 10px 24px; }

  .article-wrap { padding: 0 var(--space-lg) var(--space-xl); }
  .article-cover { max-height: 360px; }
  .article-head h1 { font-size: 1.8rem; }
  .article-body { font-size: 0.95rem; }

  /* ── Desktop slideshow: larger, centered ── */
  .slideshow { max-width: 600px; width: 100%; margin: 0 auto; }
  .slider-btn { width: 44px; height: 44px; font-size: 1.4rem; }
  .slider-btn:hover { background: var(--accent); color: #fff; }
  .slider-btn-prev { right: 12px; }
  .slider-btn-next { left: 12px; }
  .slider-dots { bottom: 16px; }

  /* ── Desktop order form: card-like step ── */
  #orderForm {
    padding: var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
  }
  .form-nav { justify-content: flex-end; }
  .form-nav .btn { flex: none; min-width: 140px; }

  .admin-body { padding: var(--space-lg); }
  .admin-table { font-size: 0.78rem; }
}

/* ==================================================================
   TABLET LANDSCAPE / SMALL DESKTOP (min-width: 768px)
   ================================================================== */
@media (min-width: 768px) {
  :root { --bottom-nav-height: 0; }

  .bottom-nav { display: none; }

  .top-nav {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(20, 20, 30, 0.85);
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-md);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
  }

  .top-nav-inner {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .top-nav .logo img { height: 44px; width: auto; }

  .top-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
  }

  .top-nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
  }

  .top-nav-links a:hover,
  .top-nav-links a.active {
    color: var(--accent);
    background: rgba(0, 122, 255, 0.06);
  }

  .top-nav-links .nav-cta {
    background: var(--gold);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
  }

  .top-nav-links .nav-cta:hover {
    background: #d97706;
    color: #fff !important;
  }

  body { padding-bottom: 0; }
}

/* ==================================================================
   DESKTOP (min-width: 1024px)
   ================================================================== */
@media (min-width: 1024px) {
  .container { max-width: 960px; }

  /* ── Hero: centered on desktop ── */
  .hero-content { max-width: 600px; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 0.95rem; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { flex: 1; min-width: 0; }

  /* ── Blog cards: hover lift ── */

  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-section-header h2 { font-size: 1.15rem; }

  /* ── Progress bar: larger gap on desktop ── */
  .progress-bar { gap: 8px; }

  .admin-body { max-width: 1100px; margin: 0 auto; }
  .admin-modal-grid { grid-template-columns: 1fr 1fr; }
  .blog-form-grid { grid-template-columns: 1fr 1fr; }
}

/* ==================================================================
   LARGE DESKTOP (min-width: 1440px)
   ================================================================== */
@media (min-width: 1440px) {
  .container { max-width: 1100px; }
  .hero h1 { font-size: 3.2rem; }
  .hero p { font-size: 1.05rem; }
  .hero-content { max-width: 680px; padding: var(--space-xl) var(--space-lg); }
  .page-header h1 { font-size: 2.5rem; }
  .section { padding: calc(var(--space-xl) * 1.4) var(--space-xl); }
  .timeline { max-width: 1024px; }
  .admin-body { max-width: 1200px; }
}

/* ==================================================================
   TV / ULTRAWIDE (min-width: 1920px)
   ================================================================== */
@media (min-width: 1920px) {
  .container { max-width: 1200px; }
  .hero h1 { font-size: 3.6rem; }
  .top-nav-inner { max-width: 1200px; }
  .admin-body { max-width: 1200px; }
  .footer-inner { max-width: 1200px; }
  footer::before { max-width: 1200px; }
  .timeline { max-width: 1152px; }
}

/* ── Hover Animations ── */
.card,
.confirm-card,
.blog-featured-card,
.admin-stat,
.admin-modal-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}
.card:hover,
.confirm-card:hover,
.blog-featured-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.admin-stat:hover { transform: translateY(-3px); }
.admin-modal-card:hover { border-color: rgba(255,255,255,0.15); }

.upload-zone { transition: border-color 0.2s ease, background 0.2s ease; }
.upload-zone:hover { border-color: var(--accent); background: rgba(0, 122, 255, 0.05); }

.custom-check { transition: border-color 0.2s ease; }
.custom-check:hover { border-color: var(--accent); }

.bottom-nav a { transition: color 0.2s ease; }
.bottom-nav a:hover { color: var(--accent); }

.step-dot .circle { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s; }
.step-dot .circle:hover { transform: scale(1.08); }

.slider-dots span { transition: width 0.3s, background 0.3s, transform 0.25s; }
.slider-dots span:hover { transform: scale(1.4); }

.admin-tab { transition: color 0.2s, background 0.2s; }
.admin-tab:hover { background: rgba(255,255,255,0.04); }

.admin-table tbody tr { transition: background 0.15s ease; }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.blog-cat-tag { transition: background 0.2s, color 0.2s; }
.blog-cat-tag:hover { background: rgba(0, 122, 255, 0.15); color: var(--accent); }

.blog-card { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-on-scroll.appeared {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.fade-in {
  transform: translateY(0);
}
.animate-on-scroll.fade-in.appeared {
  opacity: 1;
}

.animate-on-scroll.slide-left {
  transform: translateX(40px);
}
.animate-on-scroll.slide-left.appeared {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll.slide-right {
  transform: translateX(-40px);
}
.animate-on-scroll.slide-right.appeared {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll.scale-in {
  transform: scale(0.92);
}
.animate-on-scroll.scale-in.appeared {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for lists */
.animate-on-scroll.delay-1 { transition-delay: 0.05s; }
.animate-on-scroll.delay-2 { transition-delay: 0.1s; }
.animate-on-scroll.delay-3 { transition-delay: 0.15s; }
.animate-on-scroll.delay-4 { transition-delay: 0.2s; }
.animate-on-scroll.delay-5 { transition-delay: 0.25s; }

/* ── Nav entrance ── */
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.top-nav {
  animation: navSlideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ==================================================================
   PRINT
   ================================================================== */
@media print {
  .bottom-nav, .top-nav, footer, .btn { display: none !important; }
  body { padding-bottom: 0; background: #fff; color: #000; }
  .hero { min-height: auto; padding: 2rem; }
}
