/* Exabyte Digital Store — Cyber Blues & Neon Tech + Liquid Glass UI
 * IMPORTANT: This is the ONLY file where raw hex color literals may appear.
 */

@font-face {
  font-family: "Noto Sans Myanmar";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local("Noto Sans Myanmar"), local("Padauk"), local("Myanmar Text");
}

@font-face {
  font-family: "Noto Serif Myanmar";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: local("Noto Serif Myanmar"), local("Noto Sans Myanmar"), local("Myanmar Text");
}

:root,
[data-theme="dark"] {
  /* Cyber Obsidian Navy Backgrounds */
  --bg: #070B14;
  --bg-elev: #0C1222;
  --surface: #10192E;
  --surface-2: #16223D;
  --text: #F0F6FC;
  --text-muted: #94A3B8;
  --border: rgba(56, 189, 248, 0.28);
  --border-strong: rgba(56, 189, 248, 0.58);

  /* Electric Cyan & Cyber Blue Accents */
  --gold: #00F0FF;
  --gold-light: #70F7FF;
  --gold-deep: #0284C7;
  --gold-text: #38BDF8;
  --on-gold: #040E1A;

  --cyber-blue: #0284C7;
  --cyber-glow-color: rgba(0, 240, 255, 0.28);

  /* Cyber Status Colors */
  --red: #F43F5E;
  --red-deep: #9F1239;
  --red-text: #FFE4E6;

  --jade: #10B981;
  --jade-deep: #065F46;
  --jade-text: #A7F3D0;

  --warning: #F59E0B;
  --danger: #F43F5E;

  /* Cyber Glass Surfaces */
  --glass-bg: rgba(16, 25, 46, 0.78);
  --glass-bg-2: rgba(22, 34, 61, 0.84);
  --glass-dock: rgba(11, 18, 34, 0.90);
  --glass-sheen: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.16) 0%,
    rgba(2, 132, 199, 0.04) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  --glass-shadow: 0 12px 32px rgba(2, 6, 23, 0.56), inset 0 1px 0 rgba(56, 189, 248, 0.26);
  --glow-gold: 0 0 28px rgba(0, 240, 255, 0.25);
  --ring-track: rgba(240, 246, 252, 0.12);
  --shimmer-a: rgba(2, 132, 199, 0.08);
  --shimmer-b: rgba(56, 189, 248, 0.24);
}

[data-theme="light"] {
  /* Crisp Tech Frost Backgrounds */
  --bg: #F4F7FB;
  --bg-elev: #E8EEF6;
  --surface: #FFFFFF;
  --surface-2: #E8EEF6;
  --text: #0B132B;
  --text-muted: #475569;
  --border: rgba(2, 132, 199, 0.28);
  --border-strong: rgba(2, 132, 199, 0.55);

  /* Deep Cyber Cobalt on light backgrounds (passes WCAG AAA >= 7:1) */
  --gold: #0284C7;
  --gold-light: #38BDF8;
  --gold-deep: #0369A1;
  --gold-text: #0369A1;
  --on-gold: #FFFFFF;
  --red-text: #FFFFFF;
  --jade-text: #065F46;

  --cyber-blue: #0284C7;
  --cyber-glow-color: rgba(2, 132, 199, 0.16);

  --glass-bg: rgba(255, 255, 255, 0.86);
  --glass-bg-2: rgba(232, 238, 246, 0.90);
  --glass-dock: rgba(244, 248, 253, 0.92);
  --glass-sheen: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(2, 132, 199, 0.06) 100%
  );
  --glass-shadow: 0 10px 28px rgba(11, 19, 43, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --glow-gold: 0 4px 22px rgba(2, 132, 199, 0.18);
  --ring-track: rgba(11, 19, 43, 0.12);
  --shimmer-a: rgba(2, 132, 199, 0.06);
  --shimmer-b: rgba(56, 189, 248, 0.20);
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Myanmar", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Ambient cyber mesh glow */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 380px;
  background:
    radial-gradient(circle at 20% 25%, rgba(0, 240, 255, 0.15), transparent 60%),
    radial-gradient(circle at 80% 15%, rgba(2, 132, 199, 0.14), transparent 55%),
    radial-gradient(circle at 50% 65%, rgba(99, 102, 241, 0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3 {
  font-family: "Noto Serif Myanmar", "Noto Sans Myanmar", system-ui, sans-serif;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.65;
}

p {
  margin: 0 0 10px 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 14px 104px;
}

/* ---------------- Header with Exabyte Logo & Cyber HUD Horizon ---------------- */
.hero-header {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  background-image: var(--glass-sheen);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--glass-shadow);
  padding: 16px 16px 14px;
  margin-bottom: 14px;
}

.hero-pagoda-bg {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 170px;
  height: 92px;
  opacity: 0.18;
  pointer-events: none;
  color: var(--gold);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: var(--glow-gold);
}

.brand-title {
  font-size: 1.12rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold-text);
  line-height: 1.4;
}

[data-theme="light"] .brand-title {
  background: none;
  color: var(--gold-text);
}

.brand-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.theme-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--gold-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 160ms ease, border-color 160ms ease;
}

.theme-btn:active {
  transform: scale(0.94);
}

/* ---------------- Liquid Cyber Glass Cards & Corner Brackets ---------------- */
.card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  background-image: var(--glass-sheen);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--glass-shadow);
  padding: 16px;
  margin-bottom: 14px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.card-ornament {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  color: var(--gold);
  opacity: 0.45;
  pointer-events: none;
}

/* Cyber Diamond Divider */
.lotus-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--gold-text);
  opacity: 0.75;
}

.lotus-divider::before,
.lotus-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ---------------- Status Badges ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid var(--border);
}

.badge-active {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--jade);
  color: var(--jade-text);
}

.badge-expired {
  background: rgba(244, 63, 94, 0.22);
  border-color: var(--red);
  color: var(--danger);
}

.badge-none {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--border);
  color: var(--gold-text);
}

/* ---------------- Usage Ring ---------------- */
.ring-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
}

.ring-svg {
  width: 116px;
  height: 116px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--ring-track);
  stroke-width: 10;
}

.ring-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 450ms ease, stroke 250ms ease;
}

.ring-progress.warn {
  stroke: var(--warning);
}

.ring-progress.crit {
  stroke: var(--red);
}

.ring-center-label {
  position: relative;
  width: 116px;
  height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ring-center-label svg {
  position: absolute;
  inset: 0;
}

.ring-value {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-text);
  line-height: 1.3;
}

.ring-sub {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  line-height: 1.25;
  max-width: 82px;
  color: var(--text-muted);
}

.ring-meta {
  flex: 1;
  min-width: 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.95rem;
}

.stat-label {
  color: var(--text-muted);
}

.stat-val {
  font-weight: 700;
  color: var(--text);
}

/* ---------------- Cyber Buttons (min 48px touch targets) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--on-gold);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.28);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--gold);
  color: var(--gold-text);
}

.btn-danger {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border-color: var(--red);
  color: var(--red-text);
}

.btn-jade {
  background: linear-gradient(135deg, var(--jade) 0%, var(--jade-deep) 100%);
  color: var(--red-text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn-row > .btn {
  flex: 1 1 130px;
}

.btn-sm {
  min-height: 42px;
  padding: 7px 12px;
  font-size: 0.9rem;
  border-radius: 11px;
}

/* ---------------- Plan Cards ---------------- */
.plan-card {
  position: relative;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--glass-bg-2);
  background-image: var(--glass-sheen);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
}

.plan-card.plan-1m {
  border-left: 4px solid var(--jade);
}

.plan-card.plan-3m {
  border-left: 4px solid var(--gold);
}

.plan-card.plan-6m {
  border: 1.5px solid var(--gold);
  box-shadow: var(--glass-shadow), var(--glow-gold);
}

.plan-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.plan-3m .plan-ribbon {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid var(--gold);
  color: var(--gold-text);
}

.plan-6m .plan-ribbon {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.plan-price-wrap {
  text-align: right;
}

.plan-old-price {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.plan-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-text);
}

.plan-features {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 8px 0 12px;
}

/* ---------------- Monospace Key / Copy Boxes ---------------- */
.mono-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--gold-text);
  word-break: break-all;
  margin: 8px 0;
  cursor: pointer;
}

.qr-frame {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 10px auto;
  max-width: 220px;
}

.qr-frame img {
  width: 188px;
  height: 188px;
  border-radius: 8px;
  display: block;
}

.shot-preview {
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.shot-preview:hover {
  transform: scale(1.02);
}

/* ---------------- Inputs & Forms (Admin + Screenshot Upload) ---------------- */
.field {
  margin-bottom: 12px;
}

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

.input,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.6;
}

.textarea {
  min-height: 84px;
  resize: vertical;
}

/* ---------------- Collapsible Guides ---------------- */
.guide-item {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  margin-bottom: 10px;
  overflow: hidden;
}

.guide-summary {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.guide-body {
  padding: 0 16px 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}

/* ---------------- Floating Cyber Glass Bottom Dock ---------------- */
.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 460px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--glass-dock);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--glass-shadow);
  display: flex;
  justify-content: space-around;
  padding: 6px;
  z-index: 50;
}

.dock-tab {
  flex: 1;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 150ms ease;
}

.dock-tab.active {
  background: rgba(56, 189, 248, 0.18);
  color: var(--gold-text);
  border: 1px solid var(--border);
}

.dock-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* ---------------- Skeleton Shimmer & Splash ---------------- */
.skeleton {
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--shimmer-a) 25%, var(--shimmer-b) 50%, var(--shimmer-a) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 12px;
}

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

.hidden {
  display: none !important;
}

.splash-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 200;
  transition: opacity 220ms ease;
}

.splash-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Toast notification */
.toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 420px;
  width: calc(100% - 28px);
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--gold);
  color: var(--text);
  box-shadow: var(--glass-shadow);
  z-index: 150;
  font-weight: 700;
  text-align: center;
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.hidden {
  opacity: 0;
  transform: translate(-50%, -12px);
  pointer-events: none;
}

/* Admin Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat-tile {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.stat-tile-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-text);
}

.stat-tile-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
}
