/* ═══════════════════════════════════════════════
   FLYSKYMODS — app.css
   Additional styles for authenticated pages.
   Extends style.css — does NOT modify it.
   ═══════════════════════════════════════════════ */

/* ── Shared nav additions (auth user button) ── */
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: rgba(25,168,245,0.1);
  border: 1px solid rgba(25,168,245,0.2);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition);
  text-decoration: none;
}
.nav-user-btn:hover { background: rgba(25,168,245,0.18); }
.nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-user-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-logout-btn {
  padding: 8px;
  border-radius: 8px;
  color: var(--grey);
  transition: color var(--transition), background var(--transition);
}
.nav-logout-btn:hover { color: #ef4444; background: rgba(239,68,68,0.1); }

/* ── Auth pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 60px;
  background: var(--bg);
  position: relative;
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 600px at 50% 30%, rgba(25,168,245,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%; max-width: 440px;
  background: rgba(13,27,51,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(25,168,245,0.05);
  backdrop-filter: blur(20px);
}
.auth-logo {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 6px;
}
.auth-logo span { color: var(--blue); }
.auth-subtitle {
  text-align: center;
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 36px;
}
.auth-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  text-align: center;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: rgba(25,168,245,0.5);
  box-shadow: 0 0 0 3px rgba(25,168,245,0.12);
}
.form-input::placeholder { color: var(--muted); }
.form-input.error { border-color: #ef4444; }
.form-error {
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}
.form-error.show { display: block; }
.auth-btn {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
  margin-top: 8px;
}
.auth-btn:hover:not(:disabled) { background: #0d96e0; transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-link {
  text-align: center;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--grey);
}
.auth-link a { color: var(--blue); font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }
.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: none;
}
.auth-alert.show { display: block; }
.auth-alert.success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.auth-alert.error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }

/* ── Password visibility toggle ── */
.pass-wrap { position: relative; }
.pass-wrap .form-input { padding-right: 44px; }
.pass-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); padding: 4px; border-radius: 4px;
  transition: color var(--transition);
}
.pass-toggle:hover { color: var(--blue); }

/* ── Password strength indicator ── */
.pass-strength {
  height: 4px; background: rgba(255,255,255,0.07);
  border-radius: 4px; margin-top: 8px; overflow: hidden;
}
.pass-strength-bar {
  height: 100%; width: 0; border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}
.pass-strength-label { font-size: 0.75rem; font-weight: 600; margin-top: 4px; min-height: 1em; }

/* ── Remember Me checkbox ── */
.remember-row { margin-bottom: 20px; }
.remember-label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 0.88rem; color: var(--grey); user-select: none;
}
.remember-check { display: none; }
.remember-custom {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 5px; background: var(--card); position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.remember-check:checked + .remember-custom { border-color: var(--blue); background: var(--blue); }
.remember-check:checked + .remember-custom::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 6px; height: 10px; border: 2px solid #fff;
  border-top: none; border-left: none; transform: rotate(45deg);
}

.auth-divider { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 18px 0; position: relative; }
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute; top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── Dashboard layout ── */
.dash-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 68px;
  background: var(--bg);
}
.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(7,18,37,0.95);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}
.dash-main {
  flex: 1;
  padding: 40px 48px;
  max-width: calc(100% - 240px);
  overflow-x: hidden;
}
.dash-nav-section { margin-bottom: 8px; }
.dash-nav-label {
  padding: 6px 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  background: none;
  font-family: var(--font);
}
.dash-nav-link:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.dash-nav-link.active {
  color: var(--blue);
  background: rgba(25,168,245,0.08);
  border-right: 2px solid var(--blue);
}
.dash-nav-link svg { opacity: 0.7; flex-shrink: 0; }
.dash-nav-link.active svg { opacity: 1; }

/* ── Dashboard panels ── */
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-panel-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.dash-panel-sub {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

/* ── Stat cards (admin overview) ── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 40px; }
.stat-box {
  background: rgba(13,27,51,0.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.stat-box-label { font-size: 0.8rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.stat-box-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.stat-box-value.blue  { color: var(--blue); }
.stat-box-value.green { color: #4ade80; }
.stat-box-value.gold  { color: var(--gold); }

/* ── Tables ── */
.fsm-table-wrap { overflow-x: auto; margin-bottom: 24px; }
.fsm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.fsm-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--grey);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.fsm-table td {
  padding: 14px 16px;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.fsm-table tr:hover td { background: rgba(255,255,255,0.02); }
.fsm-table .truncate { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Status badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}
.badge-paid, .badge-delivered   { background: rgba(34,197,94,0.15);  color: #4ade80; }
.badge-pending_payment          { background: rgba(250,204,21,0.15); color: var(--gold); }
.badge-processing               { background: rgba(25,168,245,0.15); color: var(--blue); }
.badge-shipped                  { background: rgba(168,85,247,0.15); color: #c084fc; }
.badge-cancelled                { background: rgba(239,68,68,0.15);  color: #f87171; }

/* ── Action buttons ── */
.btn-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font);
  transition: background var(--transition), color var(--transition);
}
.btn-action.edit   { background: rgba(25,168,245,0.1); color: var(--blue); border-color: rgba(25,168,245,0.2); }
.btn-action.edit:hover { background: rgba(25,168,245,0.2); }
.btn-action.delete { background: rgba(239,68,68,0.1); color: #f87171; border-color: rgba(239,68,68,0.2); }
.btn-action.delete:hover { background: rgba(239,68,68,0.2); }
.btn-action.publish { background: rgba(34,197,94,0.1); color: #4ade80; border-color: rgba(34,197,94,0.2); }
.btn-action.publish:hover { background: rgba(34,197,94,0.2); }
.btn-action.secondary { background: rgba(255,255,255,0.06); color: var(--grey); border-color: var(--border); }
.btn-action.secondary:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--card-navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  padding: 6px; border-radius: 6px;
  color: var(--grey);
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }

/* ── Upload zone ── */
.upload-zone {
  border: 2px dashed rgba(25,168,245,0.3);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  background: rgba(25,168,245,0.03);
}
.upload-zone:hover { border-color: var(--blue); background: rgba(25,168,245,0.06); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone-icon { color: var(--blue); margin-bottom: 10px; }
.upload-zone-text { color: var(--grey); font-size: 0.9rem; }
.upload-zone-text strong { color: var(--white); }
.upload-progress {
  height: 4px; border-radius: 2px;
  background: var(--border);
  margin-top: 12px;
  overflow: hidden;
  display: none;
}
.upload-progress-bar {
  height: 100%;
  background: var(--blue);
  width: 0%;
  transition: width 0.3s ease;
}
.upload-preview {
  max-width: 120px;
  border-radius: 8px;
  margin: 10px auto 0;
  display: none;
}

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.skeleton-img  { height: 200px; }
.skeleton-line { height: 12px; margin: 10px 0; }
.skeleton-line.short { width: 60%; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--grey);
}
.empty-state svg { opacity: 0.25; margin: 0 auto 16px; display: block; }
.empty-state h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p  { font-size: 0.9rem; }

/* ── Toast ── */
.toast { bottom: 28px; right: 28px; }

/* ── Checkout page ── */
.checkout-page {
  padding-top: 100px;
  min-height: 100vh;
  background: var(--bg);
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.checkout-section {
  background: rgba(13,27,51,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.checkout-section-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}
.order-summary-card {
  background: rgba(13,27,51,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 88px;
}
.order-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}
.order-line:last-child { border-bottom: none; }
.order-line.total {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  padding-top: 16px;
}

/* ── Downloads card ── */
.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(13,27,51,0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}
.download-card:hover { border-color: rgba(25,168,245,0.3); }
.download-thumb {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: rgba(25,168,245,0.12);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  overflow: hidden;
}
.download-thumb img { width: 100%; height: 100%; object-fit: cover; }
.download-info { flex: 1; min-width: 0; }
.download-name { font-weight: 600; color: var(--white); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.download-meta { font-size: 0.8rem; color: var(--grey); margin-top: 2px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: rgba(25,168,245,0.1);
  border: 1px solid rgba(25,168,245,0.3);
  color: var(--blue);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition);
  flex-shrink: 0;
}
.btn-download:hover { background: rgba(25,168,245,0.2); }
.btn-download:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Profile form ── */
.profile-section {
  background: rgba(13,27,51,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px;
}
.profile-avatar-row {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 28px;
}
.profile-avatar-big {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar-info h4 { font-weight: 600; color: var(--white); }
.profile-avatar-info p  { font-size: 0.85rem; color: var(--grey); }

/* ── Select field ── */
.form-select {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.88rem;
  cursor: pointer;
}
.form-select option { background: var(--card-navy); color: var(--white); }

/* ── Product image in table ── */
.product-thumb-sm {
  width: 42px; height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(25,168,245,0.1);
}

/* ── Section header row ── */
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.panel-header-left h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.panel-header-left p  { color: var(--grey); font-size: 0.88rem; margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .dash-main { padding: 32px 24px; }
}
@media (max-width: 768px) {
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; display: flex; overflow-x: auto; }
  .dash-main { max-width: 100%; padding: 24px 16px; }
  .stats-row { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .dash-nav-label { display: none; }
  .dash-nav-link { flex-direction: column; gap: 4px; padding: 10px 16px; font-size: 0.72rem; text-align: center; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* ── Checkout page layout ── */
.checkout-page {
  min-height: 100vh;
  padding: 100px 24px 60px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.checkout-form-card {
  background: rgba(13,27,51,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-name { color: var(--white); font-weight: 500; }
.checkout-item-price { color: var(--blue); font-weight: 600; white-space: nowrap; margin-left: 12px; }
.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 8px;
}
.checkout-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(25,168,245,0.06);
  border: 1px solid rgba(25,168,245,0.15);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--grey);
  margin: 16px 0;
  line-height: 1.5;
}
.checkout-note svg { flex-shrink: 0; margin-top: 1px; color: var(--blue); }

/* ── Cart empty state box ── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ── Upload drag-over ── */
.upload-zone.drag-over {
  border-color: var(--blue);
  background: rgba(25,168,245,0.08);
}

/* ── Dashboard panel sub-heading ── */
.dash-panel-sub {
  color: var(--grey);
  font-size: 0.88rem;
  margin-top: -8px;
  margin-bottom: 24px;
}

/* ── Skeleton lines ── */
.skeleton-img {
  width: 100%;
  padding-bottom: 60%;
  border-radius: 12px;
}
.skeleton-line {
  height: 14px;
  border-radius: 4px;
  width: 80%;
}

/* ═══════════════════════════════════════════════
   PRODUCT CARD — "Details" link (homepage grid)
   ═══════════════════════════════════════════════ */
.product-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-details {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--grey);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-details:hover {
  color: var(--blue);
  border-color: rgba(25,168,245,0.3);
  background: rgba(25,168,245,0.08);
}

/* ═══════════════════════════════════════════════
   PRODUCT DETAIL PAGE  (product.html)
   ═══════════════════════════════════════════════ */

/* ── Page wrapper ── */
.pd-page {
  padding-top: 88px;
  min-height: 100vh;
}

/* ── Breadcrumb ── */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 28px 0 36px;
  flex-wrap: wrap;
}
.pd-breadcrumb a { color: var(--grey); transition: color var(--transition); }
.pd-breadcrumb a:hover { color: var(--blue); }
.pd-breadcrumb .pd-bc-sep { opacity: 0.35; }
.pd-breadcrumb .pd-bc-cur { color: var(--white); }

/* ── Two-column layout ── */
.pd-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 110px;
}

/* ── Image column ── */
.pd-image-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0a1424;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}
.pd-image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.pd-image-frame:hover img { transform: scale(1.04); }
.pd-image-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Info column ── */
.pd-info-col {
  display: flex;
  flex-direction: column;
}

.pd-badge-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pd-badge {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pd-badge-cat {
  background: rgba(25,168,245,0.13);
  color: var(--blue);
  border: 1px solid rgba(25,168,245,0.28);
}
.pd-badge-sim {
  background: rgba(255,255,255,0.05);
  color: var(--grey);
  border: 1px solid var(--border);
}

.pd-name {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.pd-price {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--white);
}
.pd-price-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.pd-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.pd-description {
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 30px;
}

/* ── Features checklist ── */
.pd-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 38px;
}
.pd-features li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--grey);
}
.pd-feat-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(25,168,245,0.12);
  border: 1px solid rgba(25,168,245,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

/* ── Action buttons ── */
.pd-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 30px;
}
.pd-btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
}
.pd-btn-cart:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.pd-btn-cart:active { transform: scale(0.97); }
.pd-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 8px 30px rgba(25,168,245,0.35);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.pd-btn-buy:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(25,168,245,0.5); }
.pd-btn-buy:active { transform: scale(0.97); }

/* ── Trust strip ── */
.pd-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  padding-top: 4px;
}
.pd-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Meta info ── */
.pd-meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pd-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pd-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.pd-meta-value {
  font-size: 0.92rem;
  color: var(--grey);
  font-weight: 500;
}

/* ── Shimmer skeleton ── */
.skel {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: pd-shimmer 1.6s infinite;
}
@keyframes pd-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pd-sk-bc   { height: 14px; width: 220px; border-radius: 4px; margin-bottom: 36px; }
.pd-sk-img  { border-radius: 22px; aspect-ratio: 4/3; }
.pd-sk-tag  { height: 24px; width: 90px; border-radius: 100px; }
.pd-sk-h1   { height: 48px; width: 78%; border-radius: 10px; margin: 16px 0 14px; }
.pd-sk-pr   { height: 38px; width: 42%; border-radius: 8px; margin-bottom: 24px; }
.pd-sk-ln   { height: 13px; border-radius: 4px; margin-bottom: 10px; }
.pd-sk-btn  { height: 52px; border-radius: 14px; flex: 1; }
.pd-sk-btns { display: flex; gap: 14px; margin-top: 24px; }
.pd-sk-right { display: flex; flex-direction: column; }
.pd-sk-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 920px) {
  .pd-sk-layout { grid-template-columns: 1fr; gap: 36px; }
  .pd-sk-img { max-width: 560px; }
}

/* ── 404 state ── */
.pd-404-wrap {
  padding-top: 88px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
}
.pd-404-inner {
  text-align: center;
  max-width: 500px;
  padding: 0 24px;
}
.pd-404-num {
  font-family: var(--font-head);
  font-size: clamp(6rem, 16vw, 10rem);
  font-weight: 800;
  color: var(--blue);
  opacity: 0.12;
  line-height: 1;
  user-select: none;
}
.pd-404-icon {
  font-size: 3.5rem;
  margin: -20px 0 16px;
  opacity: 0.35;
  display: block;
}
.pd-404-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.pd-404-text {
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 36px;
}
.pd-404-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 920px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pd-image-frame { max-width: 560px; }
  .pd-name { font-size: 2rem; }
}
@media (max-width: 600px) {
  .pd-price { font-size: 1.75rem; }
  .pd-actions { grid-template-columns: 1fr; }
  .pd-meta { grid-template-columns: 1fr 1fr; }
  .pd-trust { gap: 12px; }
}
.skeleton-line.short { width: 50%; height: 28px; margin-top: 12px; }
.skeleton-card .product-info { padding: 16px; }

/* ── Table wrap (horizontal scroll on small screens) ── */
.fsm-table-wrap { overflow-x: auto; }
.truncate { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── select element inherits form-input style ── */
select.form-input { cursor: pointer; }
select.form-input option { background: #0d1b33; color: var(--white); }

/* ── btn-action secondary variant ── */
.btn-action.secondary {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-color: rgba(255,255,255,0.12);
}
.btn-action.secondary:hover { background: rgba(255,255,255,0.1); }

/* ── Hidden catalogue card (during filter) ── */
#catalogueGrid .product-card.hidden { display: none !important; }

@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-form-card, .order-summary-card { padding: 24px 18px; }
}

/* ═══════════════════════════════════════════════
   CART SIDEBAR — view full cart button
   ═══════════════════════════════════════════════ */
.cart-view-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════
   CART PAGE  (/cart.html)
   ═══════════════════════════════════════════════ */
.cart-pg {
  min-height: 80vh;
  padding: 110px 0 80px;
  background: var(--bg);
}
.cart-pg-header {
  margin-bottom: 36px;
}
.cart-pg-title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.cart-pg-subtitle {
  color: var(--grey);
  margin-top: 6px;
  font-size: 0.95rem;
}
.cart-pg-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* ── Column header row ── */
.cp-col-headers {
  display: grid;
  grid-template-columns: 88px 1fr 130px 100px 40px;
  gap: 16px;
  align-items: center;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cp-col-headers span:nth-child(3) { text-align: center; }
.cp-col-headers span:nth-child(4) { text-align: right; }

/* ── Individual cart item row ── */
.cp-item {
  display: grid;
  grid-template-columns: 88px 1fr 130px 100px 40px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.cp-item-img {
  width: 88px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1424;
  flex-shrink: 0;
}
.cp-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cp-item-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.cp-item-info { min-width: 0; }
.cp-item-name {
  display: block;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.cp-item-name:hover { color: var(--blue); }
.cp-item-unit { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

/* ── Quantity control ── */
.cp-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto;
}
.cp-qty-btn {
  width: 34px;
  height: 34px;
  color: var(--grey);
  font-size: 1.15rem;
  line-height: 1;
  transition: background 0.18s, color 0.18s;
  flex-shrink: 0;
}
.cp-qty-btn:hover { background: rgba(25,168,245,0.15); color: var(--blue); }
.cp-qty-val {
  min-width: 38px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  padding: 0 4px;
}
.cp-item-subtotal {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  text-align: right;
}
.cp-item-remove {
  color: var(--muted);
  padding: 7px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s, background 0.18s;
}
.cp-item-remove:hover { color: #ef4444; background: rgba(239,68,68,0.1); }

/* ── Cart summary card ── */
.cart-summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: sticky;
  top: 90px;
}
.cart-summary-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--grey);
  font-size: 0.92rem;
}
.cart-sum-row span:last-child { color: var(--white); font-weight: 500; }
.cart-sum-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.cart-sum-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 20px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}
.cart-sum-total .cart-sum-total-amount {
  font-size: 1.4rem;
  color: var(--blue);
}
.cart-checkout-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(25,168,245,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}
.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(25,168,245,0.45);
}
.cart-continue-link {
  display: block;
  text-align: center;
  color: var(--grey);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
  margin-top: 4px;
}
.cart-continue-link:hover { color: var(--blue); }
.cart-trust-strip {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Empty cart page state ── */
.cart-empty-pg {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  text-align: center;
  gap: 0;
  padding: 60px 24px;
}
.cart-empty-pg-icon {
  color: var(--muted);
  margin-bottom: 24px;
  opacity: 0.4;
}
.cart-empty-pg h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.cart-empty-pg p {
  color: var(--grey);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 380px;
}
.cart-empty-pg-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .cart-pg-layout { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
}
@media (max-width: 680px) {
  .cp-col-headers { display: none; }
  .cp-item {
    grid-template-columns: 72px 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 14px;
  }
  .cp-item-img { width: 72px; height: 54px; }
  .cp-item-info { grid-column: 2; grid-row: 1; }
  .cp-qty { grid-column: 2; grid-row: 2; margin: 0; }
  .cp-item-subtotal { grid-column: 3; grid-row: 1; text-align: right; }
  .cp-item-remove { grid-column: 3; grid-row: 2; justify-self: end; }
  .cart-pg-title { font-size: 1.7rem; }
}

/* ═══════════════════════════════════════════════
   CHECKOUT PAGE  (/checkout.html)
   ═══════════════════════════════════════════════ */
.co-pg {
  min-height: 80vh;
  padding: 110px 0 80px;
  background: var(--bg);
}
.co-pg-header {
  margin-bottom: 36px;
}
.co-pg-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.co-pg-subtitle {
  color: var(--grey);
  margin-top: 6px;
  font-size: 0.95rem;
}
.co-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* ── Customer form card ── */
.co-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.co-form-card h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.co-form-card h2 svg { color: var(--blue); }

/* ── Field error ── */
.field-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}
.field-error.show { display: block; }

/* ── Submit button ── */
.co-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright, #38bdf8) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(25,168,245,0.3);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.co-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(25,168,245,0.45);
}
.co-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.co-submit-btn .co-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.co-submit-btn.loading .co-spinner { display: block; }
.co-submit-btn.loading .co-btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Order summary card ── */
.co-summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: sticky;
  top: 90px;
}
.co-summary-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ── Order item row ── */
.co-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.co-item:last-child { border-bottom: none; }
.co-item-img {
  width: 56px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(13,27,51,0.8);
  flex-shrink: 0;
}
.co-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.co-item-info { flex: 1; min-width: 0; }
.co-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-item-qty { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.co-item-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Totals ── */
.co-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  color: var(--grey);
  font-size: 0.9rem;
}
.co-sum-row span:last-child { color: var(--white); font-weight: 500; }
.co-sum-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.co-sum-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 4px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.co-sum-total-amount {
  font-size: 1.35rem;
  color: var(--blue);
}

/* ── Payment notice ── */
.co-payment-notice {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(25,168,245,0.07);
  border: 1px solid rgba(25,168,245,0.18);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--grey);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.co-payment-notice svg { flex-shrink: 0; margin-top: 1px; color: var(--blue); }

/* ── Confirmation section ── */
.co-confirmation {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 60px 24px;
  gap: 0;
}
.co-confirm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(25,168,245,0.15), rgba(25,168,245,0.05));
  border: 2px solid rgba(25,168,245,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #22C55E;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ═══════════════════════════════════════════════
   ADMIN ORDERS DASHBOARD
   ═══════════════════════════════════════════════ */

/* ── Badge: refunded ── */
.badge-refunded { background: rgba(147,51,234,0.18); color: #c084fc; }

/* ── Stats row ── */
.ao-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .ao-stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ao-stats-row { grid-template-columns: 1fr; } }

.ao-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.ao-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.ao-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.ao-stat-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

/* ── Filter tabs ── */
.ao-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 16px;
}
.ao-filter-tab {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--grey);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.ao-filter-tab:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.ao-filter-tab.active {
  background: rgba(25,168,245,0.15);
  border-color: rgba(25,168,245,0.4);
  color: var(--blue);
}

/* ── Pagination ── */
.ao-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.ao-page-info {
  font-size: 0.82rem;
  color: var(--muted);
}
.ao-page-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ao-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--grey);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.ao-page-btn:hover:not(:disabled) { background: rgba(255,255,255,0.06); color: var(--white); }
.ao-page-btn.active {
  background: rgba(25,168,245,0.15);
  border-color: rgba(25,168,245,0.4);
  color: var(--blue);
  font-weight: 700;
}
.ao-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Order details modal ── */
.ao-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-top: 20px;
}
@media (max-width: 680px) { .ao-detail-grid { grid-template-columns: 1fr; } }

.ao-detail-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}

.ao-detail-info-grid {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.ao-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  gap: 12px;
}
.ao-detail-row:last-child { border-bottom: none; }
.ao-detail-row span:first-child { color: var(--muted); flex-shrink: 0; }
.ao-detail-row strong { color: var(--white); text-align: right; word-break: break-all; }

.ao-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ao-detail-item:last-child { border-bottom: none; }
.ao-detail-thumb {
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.ao-detail-thumb-placeholder {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.ao-detail-item-info { flex: 1; min-width: 0; }
.ao-detail-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-detail-item-meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.ao-detail-item-price { font-weight: 700; color: var(--white); white-space: nowrap; font-size: 0.9rem; }

.ao-sum-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.ao-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--grey);
  padding: 5px 0;
  gap: 8px;
}

/* ── Order timeline ── */
.ao-timeline {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
  margin: 4px 0;
}
.ao-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 60px;
  position: relative;
}
.ao-timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
  transition: all 0.2s;
  z-index: 1;
}
.ao-timeline-step.done .ao-timeline-dot  { background: var(--blue); border-color: var(--blue); }
.ao-timeline-step.current .ao-timeline-dot { box-shadow: 0 0 0 4px rgba(25,168,245,0.25); }
.ao-timeline-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
  line-height: 1.3;
}
.ao-timeline-step.done .ao-timeline-label  { color: var(--blue); }
.ao-timeline-step.current .ao-timeline-label { color: var(--white); font-weight: 600; }
.ao-timeline-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 6px;
  min-width: 12px;
}
.ao-timeline-line.done { background: var(--blue); }

/* ── Table truncation helper ── */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* ── Make the order modal scrollable ── */
#orderModal .modal-box {
  max-height: 90vh;
  overflow-y: auto;
}

/* ═══════════════════════════════════════════════
   DIGITAL DOWNLOAD SYSTEM
   ═══════════════════════════════════════════════ */

/* ── Version tag ── */
.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(25,168,245,0.1);
  border: 1px solid rgba(25,168,245,0.2);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── Update available badge ── */
.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.65; }
}

/* ── Download card enhancements ── */
.download-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.download-count-tag {
  font-size: 0.75rem;
  color: var(--muted);
}
.dl-filesize {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Download log table ── */
.dlog-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dlog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.dlog-ua {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ── Upload panel version row ── */
.version-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 12px;
}
.version-row-label {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.version-row-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  flex: 1;
}

/* ── Stat number for downloads panel ── */
.dl-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

/* ── Admin upload product info card ── */
.upload-product-info {
  background: rgba(25,168,245,0.06);
  border: 1px solid rgba(25,168,245,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: none;
}
.upload-product-info.show { display: block; }
.upload-product-info-row {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 4px;
}
.upload-product-info-row:last-child { margin-bottom: 0; }
.upload-product-info-row strong { color: var(--white); }
.co-confirm-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.co-confirm-subtitle {
  color: var(--grey);
  font-size: 1rem;
  max-width: 440px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.co-order-id-box {
  background: var(--card);
  border: 1px solid rgba(25,168,245,0.25);
  border-radius: 14px;
  padding: 18px 28px;
  margin-bottom: 32px;
}
.co-order-id-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.co-order-id-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.04em;
}
.co-confirm-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.co-confirm-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
}
.co-confirm-whatsapp:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ── Buy Now button (product cards on homepage/catalogue) ── */
.btn-buy {
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--blue) 0%, #38bdf8 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 0 12px rgba(25,168,245,0.25);
}
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(25,168,245,0.4); }
.btn-buy:active { transform: scale(0.96); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-summary-card { position: static; order: -1; }
}
@media (max-width: 600px) {
  .co-pg-title { font-size: 1.6rem; }
  .co-form-card { padding: 22px 18px; }
  .co-summary-card { padding: 20px 16px; }
}

/* ────────────────────────────────────────────────────────
   Product Access & User Detail Modal
   ──────────────────────────────────────────────────────── */

/* Source badges on download cards */
.source-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.source-badge.purchased {
  background: rgba(25,168,245,0.12);
  border: 1px solid rgba(25,168,245,0.25);
  color: var(--blue);
}
.source-badge.granted {
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  color: #c084fc;
}

/* User detail modal tabs */
.ud-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.ud-tab {
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.ud-tab:hover { color: var(--white); }
.ud-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.ud-tab-panel { display: none; }
.ud-tab-panel.active { display: block; }

/* Grant product checklist */
.grant-product-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}
.grant-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.grant-product-item:hover { background: rgba(255,255,255,0.04); }
.grant-product-item.locked { opacity: 0.55; cursor: default; }

/* Custom checkbox for grant list */
.grant-product-item input[type="checkbox"] { display: none; }
.grant-check-visual {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: var(--card);
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.grant-product-item input:checked + .grant-check-visual {
  background: var(--blue); border-color: var(--blue);
}
.grant-product-item input:checked + .grant-check-visual::after {
  content: '';
  position: absolute; left: 3px; top: 0px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
