/* ============================================================
   NexaPosting Mini App — Design System
   Inspired by clean Telegram-native UX (Crypto Bot style)
   ============================================================ */

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

/* ─── CSS Variables ───────────────────────────────────────── */
:root {
  /* Colors (Premium Theme) */
  --accent: #7B2CFF;
  --accent-light: #F5EAFD;
  --accent-dark: #4B006E;
  --bg: #F7F8FC;
  --card: #FFFFFF;
  --text: #000000;
  --text-secondary: #A0A0AA;
  --text-tertiary: #C8C8CC;
  --border: rgba(0,0,0,0.06);
  --border-light: rgba(0,0,0,0.03);
  
  /* Additional Accents */
  --soft-blue: #EAF6FF;

  /* Status colors */
  --green: #34C759;
  --green-light: #E8F9EE;
  --orange: #FF9500;
  --orange-light: #FFF3E0;
  --red: #FF3B30;
  --red-light: #FFEBEA;
  --blue: #2AABEE;
  --blue-light: #E8F5FD;
  --purple: #AF52DE;
  --purple-light: #F5EAFD;
  --gray: #8E8E93;
  --gray-light: #F2F2F7;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-accent: 0 4px 16px rgba(42,171,238,0.30);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.12s ease;
  --transition-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Navbar */
  --navbar-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* ─── App Shell ──────────────────────────────────────────── */
#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ─── Pages ──────────────────────────────────────────────── */
.page {
  display: none;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.page.active {
  display: flex;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-md);
  padding-bottom: calc(var(--navbar-h) + var(--safe-bottom) + var(--space-md));
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.page-content::-webkit-scrollbar { display: none; }

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
  padding: var(--space-md) var(--space-md) 0;
  padding-top: max(var(--space-md), env(safe-area-inset-top, 16px));
  background: var(--bg);
  flex-shrink: 0;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.card + .card {
  margin-top: var(--space-sm);
}

.card-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: none;
}

.card-accent .label,
.card-accent .text-secondary {
  color: rgba(255,255,255,0.75);
}

/* ─── Section Title ──────────────────────────────────────── */
.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: var(--space-lg) 0 var(--space-sm);
}

/* ─── Stats Grid ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.stats-grid.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}

.stat-icon {
  font-size: 22px;
  margin-bottom: var(--space-xs);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

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

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-accent);
  width: 100%;
}

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

.btn-secondary {
  background: var(--accent-light);
  color: var(--accent);
}

.btn-secondary:hover {
  background: #d4ebf9;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-ghost:active {
  background: var(--gray-light);
}

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid transparent;
}

.btn-danger:active {
  background: var(--red-light);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
  font-size: 18px;
}

/* ─── Quick Actions ──────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--space-md) var(--space-sm);
  background: var(--card);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.quick-action:active { transform: scale(0.94); }

.quick-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.quick-action span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}

/* ─── List Items ─────────────────────────────────────────── */
.list-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
}

.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--gray-light); }

.list-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--accent-light);
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chevron {
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 600;
}

/* ─── Badges / Status ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-green { background: var(--green-light); color: var(--green); }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-gray { background: var(--gray-light); color: var(--gray); }
.badge-purple { background: var(--purple-light); color: var(--purple); }

/* Pulsing dot for active */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.running {
  background: var(--green);
  animation: pulse-dot 2s ease infinite;
}
.status-dot.paused { background: var(--orange); }
.status-dot.stopped { background: var(--gray); }
.status-dot.error { background: var(--red); }
.status-dot.active { background: var(--green); }

/* ─── Inputs ──────────────────────────────────────────────── */
.input-group {
  margin-bottom: var(--space-md);
}

.input-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,171,238,0.15);
}

.input::placeholder { color: var(--text-tertiary); }

textarea.input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* ─── Empty State ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  min-height: 240px;
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 240px;
  line-height: 1.5;
}

/* ─── Bottom Navigation ──────────────────────────────────── */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(56px + var(--safe-bottom));
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: var(--safe-bottom);
  z-index: 100;
  transition: transform var(--transition-spring);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 56px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}

.nav-item:active { transform: scale(0.95); }

.nav-icon {
  width: 48px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 2px;
  transition: all var(--transition-fast);
}

.nav-item.active {
  color: var(--accent);
}

.nav-item.active .nav-icon {
  background: var(--soft-blue);
  color: var(--accent);
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition-fast);
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: color var(--transition-fast);
}

.nav-item.active .nav-icon svg {
  stroke: var(--accent);
}

.nav-item.active .nav-label {
  color: var(--accent);
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid white;
}

/* ─── Profile Avatar ─────────────────────────────────────── */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

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

.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 30px;
}

/* ─── Progress Bar ────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: var(--space-xs);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ─── Modals / Sheets ─────────────────────────────────────── */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.sheet-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sheet {
  width: 100%;
  background: var(--bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-md);
  padding-bottom: calc(var(--space-md) + var(--safe-bottom));
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--transition-spring);
  position: relative;
  display: flex;
  flex-direction: column;
}

.sheet-overlay.open .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto var(--space-md);
  flex-shrink: 0;
}

.sheet-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-align: center;
  flex-shrink: 0;
}

/* ─── Segmented Control ──────────────────────────────────── */
.segmented-control {
  display: flex;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 2px;
  margin-bottom: var(--space-md);
}

.segmented-control .seg-btn {
  flex: 1;
  text-align: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segmented-control .seg-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Sticky Bottom Action inside Sheet */
.sheet-sticky-bottom {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  padding: var(--space-md) 0 0;
  margin-top: auto;
  z-index: 10;
}

/* ─── Subscription Tier Cards ────────────────────────────── */
.tier-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  background: var(--card);
  margin-bottom: var(--space-sm);
}

.tier-card.active-tier {
  border-color: var(--accent);
  background: var(--accent-light);
}

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

.tier-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.tier-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin: 4px 0;
}

.tier-features {
  list-style: none;
  margin-top: var(--space-sm);
}

.tier-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}

.active-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ─── Notification Items ─────────────────────────────────── */
.notif-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notif-icon.error { background: var(--red-light); }
.notif-icon.warning { background: var(--orange-light); }
.notif-icon.info { background: var(--blue-light); }

.notif-content { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--text); }
.notif-message { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ─── Step indicator ─────────────────────────────────────── */
.steps {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: var(--space-md) 0;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition-fast);
}

.step-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}

/* ─── Loading overlay ─────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  gap: var(--space-md);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ─── Misc utilities ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-md) 0;
}

.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* Modern Telegram-native theme layer */
:root {
  color-scheme: light;
  --button-text: #FFFFFF;
  --surface: rgba(255,255,255,0.72);
  --surface-strong: rgba(255,255,255,0.94);
  --hairline: rgba(0,0,0,0.06);
}

body.theme-dark {
  color-scheme: dark;
  --accent: #5AC8FA;
  --accent-light: rgba(90,200,250,0.16);
  --accent-dark: #2AABEE;
  --bg: #0F1117;
  --card: #171A22;
  --text: #F4F6FB;
  --text-secondary: #9EA7B8;
  --text-tertiary: #727B8E;
  --border: rgba(255,255,255,0.12);
  --border-light: rgba(255,255,255,0.07);
  --green-light: rgba(52,199,89,0.16);
  --orange-light: rgba(255,149,0,0.17);
  --red-light: rgba(255,59,48,0.18);
  --blue-light: rgba(90,200,250,0.16);
  --purple-light: rgba(191,90,242,0.16);
  --gray-light: rgba(255,255,255,0.08);
  --surface: rgba(23,26,34,0.72);
  --surface-strong: rgba(23,26,34,0.94);
  --hairline: rgba(255,255,255,0.08);
  --shadow-sm: 0 1px 0 rgba(255,255,255,0.03), 0 8px 22px rgba(0,0,0,0.20);
  --shadow-md: 0 12px 30px rgba(0,0,0,0.28);
  --shadow-lg: 0 22px 48px rgba(0,0,0,0.36);
  --shadow-accent: 0 10px 28px rgba(90,200,250,0.22);
}

@media (prefers-color-scheme: dark) {
  body:not(.theme-light) {
    color-scheme: dark;
    --accent: #7B2CFF;
    --accent-light: rgba(123,44,255,0.16);
    --accent-dark: #4B006E;
    --bg: #0F1117;
    --card: #171A22;
    --text: #F4F6FB;
    --text-secondary: #9EA7B8;
    --text-tertiary: #727B8E;
    --border: rgba(255,255,255,0.12);
    --border-light: rgba(255,255,255,0.07);
    --gray-light: rgba(255,255,255,0.08);
    --surface: rgba(23,26,34,0.72);
    --surface-strong: rgba(23,26,34,0.94);
    --hairline: rgba(255,255,255,0.08);
  }
}

body {
  background:
    radial-gradient(circle at 18% -10%, rgba(42,171,238,0.13), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg), var(--card) 18%) 0%, var(--bg) 40%);
}

.page-header {
  background: linear-gradient(180deg, var(--bg) 70%, color-mix(in srgb, var(--bg), transparent 100%));
}

.card,
.stat-card,
.quick-action,
.list-card,
.notif-item,
.tier-card {
  background: var(--surface-strong);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}

.stat-card,
.quick-action,
.notif-item,
.tier-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-accent {
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent), transparent 68%);
}

.quick-action {
  min-height: 128px;
  justify-content: center;
}

.quick-action-icon,
.list-item-icon,
.notif-icon {
  background: color-mix(in srgb, var(--accent), transparent 88%);
  overflow: hidden;
}

.input {
  background: var(--surface-strong);
}

.input:focus {
  background: var(--card);
}

#bottom-nav {
  background: var(--surface);
  border-top-color: var(--hairline);
  box-shadow: 0 -10px 32px rgba(0,0,0,0.08);
}

.nav-item.active .nav-icon {
  background: var(--accent-light);
}

.sheet-overlay {
  background: rgba(0,0,0,0.55);
}

.sheet {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.25);
}

.payment-method-btn {
  background: var(--surface-strong) !important;
  border-color: var(--hairline) !important;
}

.payment-method-btn:active,
.tier-card:active,
.list-item:active {
  background: var(--gray-light) !important;
}

.lottie-loading {
  position: relative;
}

.lottie-loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.lottie-error {
  background: color-mix(in srgb, var(--red), transparent 88%) !important;
}
