/* LunchSync Member Web Stylesheet - Modern Glassmorphic Design System */
:root {
  --font-main: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --bg-app: #0B0F19;
  --bg-card: rgba(23, 31, 51, 0.75);
  --bg-card-hover: rgba(30, 41, 69, 0.85);
  --bg-input: rgba(15, 23, 42, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #3B82F6;

  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --secondary: #8B5CF6;
  --secondary-glow: rgba(139, 92, 246, 0.25);
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #F59E0B;
  --danger: #EF4444;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  position: relative;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 20px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.user-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #34D399;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

.btn-text-logout {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16px;
  margin-left: 4px;
  transition: var(--transition);
}

.btn-text-logout:hover {
  color: var(--danger);
}

/* Views & Cards */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.view-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.hidden {
  display: none !important;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Camera Wrapper & Face Oval Guide */
.camera-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.camera-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror view */
}

.face-oval-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58%;
  height: 78%;
  border: 2px dashed rgba(59, 130, 246, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60A5FA, transparent);
  box-shadow: 0 0 8px #60A5FA;
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% { top: 0%; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.camera-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Heroes & Bubbles */
.passkey-hero, .enroll-hero {
  text-align: center;
  padding: 24px 12px;
}

.passkey-icon-bubble, .enroll-icon-bubble {
  font-size: 40px;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passkey-hero h2, .enroll-hero h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.text-muted {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.text-hint {
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
}

/* Inputs & Form */
.form-group {
  margin: 16px 0 20px;
}

.input-code {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 6px;
  text-transform: uppercase;
  outline: none;
  transition: var(--transition);
}

.input-code:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.input-helper {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 6px;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: rgba(139, 92, 246, 0.15);
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--success-glow);
}

.btn-lg {
  padding: 16px 24px;
  font-size: 15px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* Wizard Steps */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.step-header {
  margin-bottom: 20px;
}

.step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.step-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.identity-confirm-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.identity-info .label {
  font-size: 12px;
  color: var(--text-dim);
}

.name-highlight {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 2px 0 4px;
}

.badge-role {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.consent-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: #FEF3C7;
  line-height: 1.4;
}

.checkbox-container input {
  margin-top: 3px;
  accent-color: var(--warning);
  width: 16px;
  height: 16px;
}

.step-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.passkey-prompt-card {
  text-align: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  margin-bottom: 20px;
}

.passkey-icon-lg {
  font-size: 36px;
  margin-bottom: 12px;
}

.passkey-prompt-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.passkey-prompt-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.status-text {
  display: block;
  font-size: 11px;
  margin-top: 8px;
}

/* Dashboard & Welcome */
.member-welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.greeting {
  font-size: 12px;
  color: var(--text-muted);
}

.member-meta h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 2px 0 4px;
}

.member-balance-box {
  text-align: right;
}

.balance-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

.balance-value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #34D399;
}

.balance-value.negative {
  color: var(--danger);
}

.balance-sub {
  font-size: 10px;
  color: var(--text-dim);
}

/* Dashboard Sections */
.dashboard-section {
  margin-bottom: 24px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title-row h3 {
  font-size: 15px;
  font-weight: 700;
}

.session-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

.session-badge.open {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.session-badge.locked {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.session-badge.closed {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.session-empty-state {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.session-empty-state h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.session-empty-state p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.session-active-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.session-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.session-meta-row h4 {
  font-size: 15px;
  font-weight: 700;
}

.session-timer {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.order-status-tag {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Menu Grid */
.menu-items-section h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.menu-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  transition: var(--transition);
}

.menu-card.selected {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

.menu-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.menu-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.menu-card-text .name {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.menu-card-text .price {
  font-size: 12px;
  color: #34D399;
  font-weight: 700;
}

.badge-tag {
  font-size: 9px;
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 6px;
}

.menu-qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-qty {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qty-display {
  font-size: 13px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.my-order-box {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.order-total-row .total-price {
  font-size: 16px;
  font-weight: 800;
  color: #34D399;
}

/* History List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.history-note {
  font-size: 13px;
  font-weight: 600;
}

.history-date {
  font-size: 11px;
  color: var(--text-dim);
}

.history-amount {
  font-size: 14px;
  font-weight: 700;
}

.history-amount.negative {
  color: var(--danger);
}

.history-amount.positive {
  color: #34D399;
}

.history-empty {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  padding: 16px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1E293B;
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Price Edit Alerts Banner */
.price-alerts-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.price-alert-item {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: #FDE68A;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

/* Session Lock / Closed Status Banner */
.session-status-banner {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-status-banner.locked {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FBBF24;
}

.session-status-banner.closed {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

/* Sold Out & Note inputs */
.menu-card.sold-out {
  opacity: 0.55;
  filter: grayscale(0.8);
  pointer-events: none;
}

.menu-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-note-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 6px;
}

.input-note {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.input-note:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
}

/* Inline Topup Button */
.btn-topup-inline {
  margin-top: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-topup-inline:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

/* 3-Tier Debt Warning Banner */
.debt-tier-banner {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.debt-tier-banner.tier1 {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FDE68A;
}

.debt-tier-banner.tier2 {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #FDBA74;
}

.debt-tier-banner.tier3 {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #FCA5A5;
  font-weight: 600;
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1100;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: #131B2E;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.amount-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.chip-btn {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn.active, .chip-btn:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.15);
  color: #FFFFFF;
}

.input-amount {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.input-amount:focus {
  border-color: var(--primary);
}

/* QR Presentation */
.topup-qr-area {
  margin-top: 16px;
  text-align: center;
}

.qr-image-wrapper {
  background: #FFFFFF;
  padding: 12px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 12px;
}

.qr-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
}

.qr-poll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  margin-top: 8px;
}

.spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(5, 150, 105, 0.2);
  border-top-color: #059669;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.transfer-info-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.info-row .lbl {
  color: var(--text-dim);
}

.info-row .val {
  font-weight: 700;
  color: #FFFFFF;
}

.info-row .val.highlight {
  color: #60A5FA;
  font-family: var(--font-mono);
}

.info-row .val.code-val {
  color: #FBBF24;
  font-family: var(--font-mono);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

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

/* Footer */
.app-footer {
  text-align: center;
  padding: 24px 0 12px;
  font-size: 11px;
  color: var(--text-dim);
}
