/* ═══════════════════════════════════════════════════════════
   MetaWipe — Main Stylesheet
   Dark theme · Teal/Cyan accents · Mobile-first
═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0A0A0A;
  --card: #141414;
  --card-hover: #1C1C1C;
  --border: rgba(220, 20, 40, 0.15);
  --accent: #E8192C;
  --accent-dim: rgba(220, 20, 40, 0.15);
  --accent-dark: #C01020;
  --success: #FF4D4D;
  --success-dim: rgba(255, 77, 77, 0.12);
  --danger: #FF6B6B;
  --danger-dim: rgba(255, 107, 107, 0.12);
  --text: #F5F5F5;
  --text-muted: rgba(245, 245, 245, 0.55);
  --text-dim: rgba(245, 245, 245, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.2s ease;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Background Canvas ───────────────────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.screen, nav, #toast, .modal-overlay {
  position: relative;
  z-index: 1;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Screens ─────────────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.25s ease;
}

.screen.active {
  display: block;
}

.screen-content {
  padding: 0 16px calc(24px + var(--safe-bottom));
  max-width: 480px;
  margin: 0 auto;
}

.screen-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding-top: 0;
}

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

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

/* ── Buttons ─────────────────────────────────────────────── */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #0A0A0F;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:active { opacity: 0.85; transform: scale(0.98); }

.btn-secondary {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:active { opacity: 0.8; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.btn-big {
  flex: 1;
  padding: 18px 16px;
  font-size: 16px;
  border-radius: var(--radius);
  flex-direction: column;
  gap: 6px;
}

.btn-big .btn-icon {
  font-size: 26px;
  line-height: 1;
}

.btn-full {
  width: 100%;
}

/* ── Screen Headers ──────────────────────────────────────── */
.screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 20px;
}

.screen-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.screen-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.back-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.back-btn svg { width: 20px; height: 20px; color: var(--text-muted); }
.back-btn:active { background: var(--card-hover); }

/* ═══════════════════════════════════════════════════════════
   HOME SCREEN
═══════════════════════════════════════════════════════════ */
.home-header {
  text-align: center;
  padding: 32px 0 24px;
}

.logo-wrap {
  margin-bottom: 12px;
}

.logo-svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 20px rgba(232, 25, 44, 0.4));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.app-title {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #E8192C, #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* User card */
.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.user-greeting span {
  color: var(--text);
  font-weight: 600;
}

.credits-badge {
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(232, 25, 44, 0.3);
}

.credits-badge.empty {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: rgba(255, 71, 87, 0.3);
}

/* Action row */
.action-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

/* Credits button */
.btn-credits {
  width: 100%;
  margin-bottom: 24px;
  font-size: 14px;
}

/* How it works */
.how-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #0A0A0F;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

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

/* Recent activity */
.recent-section {
  margin-bottom: 24px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.recent-file-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.recent-info {
  flex: 1;
  overflow: hidden;
}

.recent-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   UPLOAD SCREEN
═══════════════════════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed rgba(232, 25, 44, 0.25);
  border-radius: var(--radius);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--card);
  margin-bottom: 16px;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(232, 25, 44, 0.06);
}

.upload-icon svg {
  width: 56px;
  height: 56px;
}

.upload-text {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.upload-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.format-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.pill {
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(232, 25, 44, 0.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* File selected */
.file-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.file-icon-wrap svg { width: 40px; height: 40px; }

.file-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

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

.clear-btn {
  background: var(--danger-dim);
  color: var(--danger);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Credit bar */
.credit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
}

.credit-bar-label {
  font-size: 14px;
  color: var(--text-muted);
}

.credit-bar-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   PROCESSING SCREEN
═══════════════════════════════════════════════════════════ */
.spinner-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 32px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  animation: spinRing 1s linear infinite;
}

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

.spinner-inner {
  position: absolute;
  inset: 16px;
  background: var(--card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinnerPulse 2s ease-in-out infinite;
}

@keyframes spinnerPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

.spinner-inner svg { width: 36px; height: 36px; }

.processing-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.processing-sub {
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.processing-counter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.counter-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.counter-value {
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  animation: counterGlow 1s ease-in-out infinite alternate;
}

@keyframes counterGlow {
  from { text-shadow: 0 0 10px rgba(232, 25, 44, 0.3); }
  to   { text-shadow: 0 0 24px rgba(232, 25, 44, 0.8); }
}

/* ═══════════════════════════════════════════════════════════
   RESULTS SCREEN
═══════════════════════════════════════════════════════════ */
.done-badge {
  margin-left: auto;
  padding: 6px 12px;
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(255, 77, 77, 0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.result-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.result-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.result-thumb svg { width: 36px; height: 36px; }

.result-file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-filename {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.result-done-tag {
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
}

/* Stats */
.stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 4px;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-stripped .stat-number { color: var(--danger); }
.stat-stripped .stat-label  { color: var(--danger); }
.stat-stripped              { border-color: rgba(255, 71, 87, 0.2); }

.stat-injected .stat-number { color: var(--success); }
.stat-injected .stat-label  { color: var(--success); }
.stat-injected              { border-color: rgba(255, 77, 77, 0.2); }

/* Meta card */
.meta-card {
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
}

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

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

.meta-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  max-width: 60%;
}

/* Tag details */
.tag-details {
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
}

.tag-toggle {
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tag-toggle:active { background: var(--card-hover); }

.chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.chevron.open { transform: rotate(180deg); }

.tag-details-body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tag-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.stripped-label { color: var(--danger); }
.injected-label { color: var(--success); }

.tag-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tag-item {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.tag-item .tag-key {
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   HISTORY SCREEN
═══════════════════════════════════════════════════════════ */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}

.history-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.history-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.history-item-header:active { background: var(--card-hover); }

.history-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.history-info {
  flex: 1;
  overflow: hidden;
}

.history-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.history-expand {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.history-expand.open { transform: rotate(180deg); }

.history-expand svg { width: 16px; height: 16px; }

.history-detail {
  padding: 0 14px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  display: none;
}

.history-detail.open { display: block; }

.history-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.history-detail-row span:first-child { color: var(--text-muted); }
.history-detail-row span:last-child  { color: var(--text); font-weight: 500; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
}

.empty-icon { font-size: 48px; }

.empty-state p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════
   PRICING SCREEN
═══════════════════════════════════════════════════════════ */
.pricing-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pricing-balance-label {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-balance-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.pricing-card {
  position: relative;
  padding: 20px;
  transition: border-color var(--transition);
}

.pricing-card.popular {
  border-color: rgba(232, 25, 44, 0.5);
  background: linear-gradient(135deg, rgba(232, 25, 44, 0.08), rgba(192, 16, 32, 0.04));
}

.popular-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--accent);
  color: #0A0A0F;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.06em;
}

.pricing-tier-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-credits-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-credits-amount span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.pricing-eur {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-buy {
  width: 100%;
}

/* Coupon section */
.coupon-section {
  margin-bottom: 16px;
}

.coupon-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.coupon-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color 0.2s;
}

.coupon-input:focus {
  border-color: var(--accent);
}

.coupon-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0;
}

.btn-redeem {
  white-space: nowrap;
  padding: 13px 18px;
  flex-shrink: 0;
}

.coupon-msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.coupon-msg.success {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(255, 77, 77, 0.2);
}

.coupon-msg.error {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.2);
}

.free-tier-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.free-tier-note strong {
  color: var(--success);
}

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease;
}

.toast.success { border-color: rgba(255, 77, 77, 0.4); color: var(--success); }
.toast.error   { border-color: rgba(255, 71, 87, 0.4); color: var(--danger); }

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

/* ═══════════════════════════════════════════════════════════
   INFO SCREEN
═══════════════════════════════════════════════════════════ */
.info-section {
  margin-bottom: 20px;
}

.info-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(232, 25, 44, 0.06);
  border: 1px solid rgba(232, 25, 44, 0.15);
  border-radius: var(--radius-sm);
}

.info-section-icon {
  font-size: 14px;
}

.info-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  padding: 0 2px;
}

.info-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

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

.info-feature-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-feature-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.info-feature-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.camera-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.camera-pill {
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.about-rows {
  padding: 0;
  overflow: hidden;
}

.about-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.about-badge {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(232, 25, 44, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.about-value {
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAV
═══════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(64px + var(--safe-bottom));
  background: rgba(12, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 8px;
  padding-bottom: var(--safe-bottom);
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  padding: 4px 8px;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: stroke 0.2s ease;
}

.nav-item span {
  font-size: 10px;
  font-weight: 600;
}

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

.nav-item.active svg {
  filter: drop-shadow(0 0 6px rgba(232, 25, 44, 0.5));
}

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

/* Add padding to screens so content doesn't hide behind nav */
.screen-content {
  padding-bottom: calc(80px + var(--safe-bottom)) !important;
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   V2 ADDITIONS
═══════════════════════════════════════════════════════════ */

/* Plan expiry under username */
.plan-expiry {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Global stats bar on home */
.global-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 16px;
}

.global-stats-label {
  font-size: 13px;
  color: var(--text-muted);
}

.global-stats-count {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Referral button on home */
.btn-referral {
  width: 100%;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--success);
  border-color: rgba(255, 77, 77, 0.2);
  background: rgba(255, 77, 77, 0.05);
}

.btn-referral:active {
  background: rgba(255, 77, 77, 0.1);
}

/* Current plan highlight on pricing */
.pricing-card.current-plan {
  border-color: rgba(255, 77, 77, 0.4);
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.06), rgba(232, 25, 44, 0.04));
}

.current-plan-text {
  color: var(--success);
}

/* Plan badge for pricing screen */
#current-plan-badge {
  font-size: 16px;
  font-weight: 700;
}

/* Batch upload section divider */
.batch-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  gap: 12px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.batch-divider::before,
.batch-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.upload-zone-batch {
  padding: 24px 20px;
  border-style: dashed;
  border-color: rgba(255, 77, 77, 0.25);
  background: rgba(255, 77, 77, 0.03);
}

.upload-zone-batch:hover {
  border-color: var(--success);
  background: rgba(255, 77, 77, 0.06);
}

/* Agency options row */
.agency-options-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: stretch;
}

.btn-agency-opt {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-agency-opt:active { background: var(--card-hover); }

.btn-agency-opt.selected {
  border-color: rgba(232, 25, 44, 0.5);
  color: var(--accent);
  background: var(--accent-dim);
}

.camera-select-wrap {
  flex: 1;
}

.camera-select {
  width: 100%;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 12px 14px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.camera-select:focus {
  border-color: var(--accent);
  color: var(--text);
}

/* Before cleaning section */
#before-cleaning-section {
  margin-bottom: 14px;
}

/* Referral screen */
.referral-link-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  margin-bottom: 14px;
}

.referral-link-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.referral-link-text {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
  background: rgba(232, 25, 44, 0.06);
  border: 1px solid rgba(232, 25, 44, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  line-height: 1.4;
}

.btn-copy {
  background: var(--accent);
  color: #0A0A0F;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.btn-copy:active { opacity: 0.85; transform: scale(0.98); }

/* Info screen global stats */
.info-global-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
}

.info-global-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-global-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

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

.btn-share-cs {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-share-cs:active { opacity: 0.8; }

/* Location picker modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
  padding: 0;
}

.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  padding: 20px 16px;
  padding-bottom: calc(20px + var(--safe-bottom));
}

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

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: var(--card-hover);
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.modal-body {
  padding-bottom: 8px;
}

.location-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-pill {
  background: var(--card-hover);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.location-pill:active,
.location-pill.selected {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(232, 25, 44, 0.4);
}

/* btn-link text button */
.btn-link {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  padding: 0;
}

.btn-link:active { opacity: 0.7; }

/* free-tier-note upgrade */
.free-tier-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.free-tier-note strong {
  color: var(--success);
}
