/* Photonline - Darkroom Camera Styling */
:root {
  --bg-main: #090a0f;
  --bg-card: #131622;
  --bg-elevated: #1a1e30;
  --bg-input: #10121b;
  --border-subtle: #222738;
  --border-active: #384260;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  
  --color-green: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.25);
  --color-red: #f43f5e;
  --color-red-glow: rgba(244, 63, 94, 0.25);
  --color-amber: #f59e0b;
  --color-blue: #3b82f6;
  --color-blue-glow: rgba(59, 130, 246, 0.25);
  --color-purple: #8b5cf6;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100vw;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Global SVG Safety & Alignment */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-import-primary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-batch-auto svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary-glow svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-compare svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-airdrop-quick svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-reject svg,
.btn-accept svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-auto svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.complete-icon svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.stripe-badge-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-subtle-small svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-icon-subtle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Navigation Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: var(--safe-top);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Nav View Tabs */
.view-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--bg-elevated);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tab-icon {
  width: 16px;
  height: 16px;
}

.tab-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.tab-badge.badge-green {
  background: var(--color-green-glow);
  color: var(--color-green);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-subtle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-icon-subtle:hover {
  color: #fff;
  border-color: var(--border-active);
}

.icon-dollar {
  width: 16px;
  height: 16px;
  color: var(--color-amber);
}

.btn-import-small {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  border: none;
  background: var(--color-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-blue-glow);
  transition: opacity 0.15s;
}

.btn-import-small:hover {
  opacity: 0.9;
}

.icon-plus {
  width: 16px;
  height: 16px;
}

/* Main Area */
.app-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.view-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hidden,
.view-panel.hidden {
  display: none !important;
}

/* Hero Import Area */
.import-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.hero-card {
  max-width: 520px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.hero-icon-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-sd-icon {
  width: 36px;
  height: 36px;
  color: var(--color-blue);
}

.hero-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.privacy-callout {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--color-green);
  font-weight: 600;
}

.callout-lock {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-import-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transition: transform 0.15s, opacity 0.15s;
}

.btn-import-primary:hover {
  transform: translateY(-1px);
}

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

.btn-samples-subtle {
  background: none;
  border: none;
  color: var(--color-amber);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.btn-samples-subtle:hover {
  opacity: 1;
}

.supported-formats {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Tinder Swipe Deck View */
.deck-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  gap: 12px;
}

.deck-hud {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
}

.hud-counter {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hud-num {
  color: #fff;
  font-weight: 700;
}

.hud-stats {
  display: flex;
  gap: 8px;
}

.stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.dot-accept {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
}

.dot-reject {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-red);
}

.hud-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.hud-icon-btn:not(:disabled):hover {
  color: #fff;
  border-color: var(--border-active);
}

.hud-icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.hud-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Card Stage */
.card-stage {
  position: relative;
  width: 100%;
  height: min(62vh, 520px);
  min-height: 380px;
  touch-action: none;
  user-select: none;
  perspective: 1000px;
}

.cull-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px rgba(0,0,0,0.6);
  cursor: grab;
  will-change: transform, opacity;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s ease;
}

.cull-card.swiping {
  transition: none !important;
  cursor: grabbing;
}

.cull-card.below {
  transform: scale(0.95) translateY(12px);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

.cull-card.active-card {
  z-index: 2;
}

.card-media {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Swipe Stamps (Keep / Discard) */
.stamp {
  position: absolute;
  top: 24px;
  padding: 8px 18px;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  border-radius: 12px;
  border-width: 4px;
  border-style: solid;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  text-transform: uppercase;
  transition: opacity 0.1s ease;
}

.stamp-keep {
  left: 24px;
  color: var(--color-green);
  border-color: var(--color-green);
  transform: rotate(-15deg);
  box-shadow: 0 0 20px var(--color-green-glow);
}

.stamp-discard {
  right: 24px;
  color: var(--color-red);
  border-color: var(--color-red);
  transform: rotate(15deg);
  box-shadow: 0 0 20px var(--color-red-glow);
}

.stamp-auto {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-amber);
  border-color: var(--color-amber);
  font-size: 1.3rem;
}

/* Card Info Bar */
.card-info-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4) 60%, transparent);
  padding: 24px 16px 14px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.card-meta-main {
  display: flex;
  flex-direction: column;
}

.card-filename {
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-specs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--color-amber);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Culling Control Buttons (Tinder Style) */
.culling-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 8px 0;
  margin-bottom: var(--safe-bottom);
}

.control-btn {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.control-btn:active {
  transform: scale(0.92);
}

.btn-reject {
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border: 2px solid var(--color-red);
  color: var(--color-red);
}

.btn-reject:hover {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 0 24px var(--color-red-glow);
}

.btn-auto {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 2px solid var(--color-amber);
  color: var(--color-amber);
}

.btn-auto:hover {
  background: var(--color-amber);
  color: #000;
  box-shadow: 0 0 20px var(--color-amber-glow);
}

.btn-rotate-deck {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 2px solid #60a5fa;
  color: #60a5fa;
}

.btn-rotate-deck:hover {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-accept {
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border: 2px solid var(--color-green);
  color: var(--color-green);
}

.btn-accept:hover {
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 0 24px var(--color-green-glow);
}

.keyboard-hints {
  display: flex;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--text-faint);
}

.keyboard-hints kbd {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Completed Culling Card */
.culling-complete {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.complete-card {
  max-width: 460px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.complete-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-green-glow);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.complete-icon svg {
  width: 32px;
  height: 32px;
}

.complete-stats {
  font-size: 1rem;
  color: var(--text-muted);
}

.text-green {
  color: var(--color-green);
}

.complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.btn-primary-glow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--color-green-glow);
  transition: transform 0.15s;
}

.btn-primary-glow:hover {
  transform: translateY(-1px);
}

.btn-subtle {
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Accepted Gallery View */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-title-group h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.panel-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.panel-actions {
  display: flex;
  gap: 8px;
}

.btn-batch-auto {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-amber);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-batch-auto:hover {
  background: var(--color-amber);
  color: #000;
}

/* Batch Progress Bar */
.batch-progress-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.batch-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-track {
  height: 6px;
  background: var(--bg-input);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-amber), var(--color-green));
  transition: width 0.2s ease;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}

.gallery-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #000;
  cursor: pointer;
}

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

.thumb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.thumb-badge.enhanced {
  color: var(--color-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.card-footer-actions {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--bg-card);
}

.btn-card-edit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-card-edit:hover {
  background: var(--border-active);
}

.btn-card-share {
  width: 32px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-card-remove {
  width: 32px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-card-remove:hover {
  color: var(--color-red);
}

/* Empty Gallery State */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
  gap: 12px;
}

.empty-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}

.empty-icon-circle svg {
  width: 32px;
  height: 32px;
}

/* View 3: Export & AirDrop Hub */
.export-hub {
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0;
}

.export-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.export-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-blue-glow);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.export-icon-ring svg {
  width: 30px;
  height: 30px;
}

.export-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.export-summary-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--color-green-glow);
  color: var(--color-green);
  font-size: 0.8rem;
  font-weight: 700;
}

.export-actions-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-airdrop-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border: none;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s;
}

.btn-airdrop-hero:hover {
  transform: translateY(-2px);
}

.airdrop-logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-airdrop {
  width: 26px;
  height: 26px;
}

.airdrop-btn-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.btn-airdrop-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.btn-airdrop-desc {
  font-size: 0.78rem;
  opacity: 0.85;
}

.btn-download-bundle {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.btn-download-bundle:hover {
  border-color: var(--border-active);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.zip-logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-zip {
  width: 24px;
  height: 24px;
  color: var(--text-main);
}

.zip-btn-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.btn-zip-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.btn-zip-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Street Pay Card */
.street-pay-card {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.sp-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
}

.sp-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.sp-action-row {
  display: flex;
  gap: 8px;
}

.quick-link-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.btn-primary-small {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
}

.btn-subtle-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* Full Screen Photo Studio / Modal */
.editor-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.editor-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  background: #000;
  z-index: 10;
  overflow: hidden;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.editor-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(19, 22, 34, 0.9);
}

.editor-header-left, .editor-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-meta {
  display: flex;
  flex-direction: column;
}

.editor-filename {
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-specs {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.btn-compare {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.btn-compare:active, .btn-compare.active {
  background: var(--color-amber);
  color: #000;
}

.btn-airdrop-quick {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--color-blue);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-save-edit {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--color-green);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Editor Viewport & Canvas */
.editor-viewport {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  padding: 8px;
}

.canvas-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-canvas {
  max-width: 100%;
  max-height: calc(100vh - 280px);
  object-fit: contain;
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
  border-radius: 8px;
}

.compare-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(245, 158, 11, 0.9);
  color: #000;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

.editor-loader {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

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

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

/* Presets Bar */
.presets-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 12px;
}

.presets-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.presets-scroll::-webkit-scrollbar {
  display: none;
}

.preset-pill {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-pill.active {
  background: var(--color-amber);
  color: #000;
  font-weight: 700;
  border-color: var(--color-amber);
}

/* Sliders Drawer */
.editor-controls-drawer {
  background: var(--bg-card);
  padding: 12px 16px;
  max-height: 180px;
  overflow-y: auto;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 18px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slider-val {
  font-family: var(--font-mono);
  color: #fff;
}

.styled-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: var(--bg-input);
  outline: none;
  cursor: pointer;
}

.styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: 2px solid var(--color-blue);
}

.slider-temp {
  background: linear-gradient(90deg, #3b82f6, #6b7280, #f59e0b);
}

.slider-tint {
  background: linear-gradient(90deg, #10b981, #6b7280, #ec4899);
}

/* Stripe Modal */
.stripe-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  z-index: 10;
  margin: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.stripe-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stripe-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stripe-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-badge {
  font-size: 0.7rem;
  color: var(--color-amber);
  font-weight: 600;
}

.stripe-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-input);
  border-radius: 12px;
  padding: 12px;
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.wf-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.highlight-step {
  color: var(--color-amber);
  font-weight: 600;
}

.highlight-step .wf-num {
  background: var(--color-amber);
  color: #000;
}

/* Checkout Pricing Card */
.checkout-pricing-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 10px;
}

.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.mode-btn.active {
  background: var(--bg-elevated);
  color: #fff;
  border-color: var(--border-active);
}

.mode-title {
  font-weight: 700;
  font-size: 0.84rem;
}

.mode-sub {
  font-size: 0.68rem;
  color: var(--text-faint);
}

.mode-btn.active .mode-sub {
  color: var(--color-amber);
}

.pricing-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pricing-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.curr-prefix {
  position: absolute;
  left: 10px;
  font-weight: 700;
  color: var(--color-amber);
  font-family: var(--font-mono);
  pointer-events: none;
}

.price-number-input {
  width: 100%;
  padding: 8px 10px 8px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.styled-select {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

/* Itemized Line Items Breakdown */
.checkout-breakdown-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breakdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breakdown-title {
  font-size: 0.84rem;
  font-weight: 700;
}

.breakdown-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--color-green-glow);
  color: var(--color-green);
}

.breakdown-items-list {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.breakdown-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  padding: 4px 6px;
  background: var(--bg-card);
  border-radius: 6px;
}

.breakdown-photo-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  color: var(--text-muted);
}

.breakdown-photo-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

.empty-breakdown-notice {
  font-size: 0.76rem;
  color: var(--text-faint);
  text-align: center;
  padding: 8px 0;
}

.breakdown-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.total-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.total-amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-green);
  font-family: var(--font-mono);
}

.qr-info-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mode-pill-demo {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.mode-pill-live {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--color-green-glow);
  color: var(--color-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Accordion */
.stripe-keys-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--bg-input);
}

.accordion-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.accordion-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-desc {
  font-size: 0.72rem;
  color: var(--text-faint);
  line-height: 1.4;
}

.api-key-input-group {
  display: flex;
  gap: 8px;
}

.stripe-qr-section {
  background: var(--bg-input);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-card {
  background: #ffffff;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stripe-qr-box {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stripe-qr-box svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.qr-status-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

.stripe-action-buttons {
  display: flex;
  gap: 8px;
  width: 100%;
}

/* Fullscreen Photo Inspector */
.inspector-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inspector-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}

.inspector-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inspector-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.btn-close-inspector {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.inspector-caption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(26, 30, 48, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-active);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: toastIn 0.2s ease, toastOut 0.2s ease 2.8s forwards;
}

.toast.toast-rate-warning {
  background: rgba(30, 20, 5, 0.98);
  border: 1.5px solid var(--color-amber);
  color: #fff;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
  max-width: 420px;
  text-align: left;
  animation: toastIn 0.2s ease, toastOut 0.2s ease 6.5s forwards;
  pointer-events: auto;
}

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

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

/* Responsive Rules */
.hide-mobile {
  display: inline-flex;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  /* App Container & Main */
  .app-container {
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
  }

  .app-main {
    padding: 10px 8px;
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
  }

  /* Navigation Header: 2-row grid */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "tabs tabs";
    row-gap: 8px;
    padding: 8px 12px 10px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .brand-group {
    grid-area: brand;
    min-width: 0;
  }

  .brand-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .privacy-pill {
    display: none !important;
  }

  .header-actions {
    grid-area: actions;
    gap: 6px;
  }

  .btn-icon-subtle, .btn-import-small {
    padding: 6px 10px;
    font-size: 0.76rem;
    border-radius: 8px;
  }

  .view-tabs {
    grid-area: tabs;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px;
    padding: 3px;
    box-sizing: border-box;
  }

  .tab-btn {
    justify-content: center;
    padding: 7px 4px;
    font-size: 0.74rem;
    gap: 4px;
    min-width: 0;
  }

  .tab-btn .tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tab-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .tab-badge {
    font-size: 0.65rem;
    padding: 1px 5px;
  }

  /* Hero Screen on Mobile */
  .hero-card {
    padding: 24px 16px;
    border-radius: 18px;
    gap: 12px;
    max-width: 100%;
  }

  .hero-card h2 {
    font-size: 1.25rem;
  }

  .hero-subtext {
    font-size: 0.82rem;
  }

  .privacy-callout {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .btn-import-primary {
    padding: 14px 20px;
    font-size: 0.92rem;
    width: 100%;
  }

  /* Swipe Deck on Mobile */
  .deck-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 2px;
    box-sizing: border-box;
    gap: 8px;
  }

  .culling-hud {
    padding: 0 4px;
    width: 100%;
    margin-bottom: 2px;
  }

  .hud-specs {
    font-size: 0.74rem;
  }

  .stat-tag {
    padding: 3px 7px;
    font-size: 0.70rem;
  }

  .hud-icon-btn {
    width: 30px;
    height: 30px;
  }

  .card-stage {
    width: 100%;
    max-width: 100%;
    height: clamp(300px, calc(100dvh - 310px), 520px);
    min-height: 280px;
  }

  .cull-card {
    border-radius: 16px;
  }

  .card-meta {
    padding: 14px 10px 8px;
  }

  .card-filename {
    font-size: 0.82rem;
    max-width: 160px;
  }

  .culling-controls {
    gap: 12px;
    padding: 4px 0 6px;
    width: 100%;
    justify-content: center;
  }

  .btn-reject, .btn-accept {
    width: 56px;
    height: 56px;
  }

  .btn-auto, .btn-rotate-deck {
    width: 44px;
    height: 44px;
  }

  .btn-reject svg, .btn-accept svg {
    width: 22px;
    height: 22px;
  }

  .btn-auto svg, .btn-rotate-deck svg {
    width: 18px;
    height: 18px;
  }

  /* Gallery Grid on Mobile */
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }

  .panel-actions {
    width: 100%;
  }

  .btn-batch-auto {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .gallery-card {
    border-radius: 10px;
  }

  .card-footer-actions {
    padding: 6px 8px;
    gap: 4px;
  }

  .btn-card-edit {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .btn-card-icon {
    width: 28px;
    height: 28px;
  }

  /* Export Hub on Mobile */
  .export-hub {
    width: 100%;
    max-width: 100%;
    padding: 4px 0;
    gap: 14px;
  }

  .export-header-card {
    padding: 20px 14px;
    border-radius: 16px;
    gap: 8px;
  }

  .export-icon-ring {
    width: 50px;
    height: 50px;
  }

  .export-icon-ring svg {
    width: 24px;
    height: 24px;
  }

  .export-header-card h3 {
    font-size: 1.15rem;
  }

  .export-subtitle {
    font-size: 0.8rem;
  }

  .btn-airdrop-hero, .btn-download-bundle {
    padding: 14px 16px;
    border-radius: 14px;
    gap: 12px;
  }

  .airdrop-logo-circle, .zip-logo-circle {
    width: 38px;
    height: 38px;
  }

  .airdrop-logo-circle svg, .zip-logo-circle svg {
    width: 20px;
    height: 20px;
  }

  .btn-airdrop-title, .btn-zip-title {
    font-size: 0.95rem;
  }

  .btn-airdrop-desc, .btn-zip-desc {
    font-size: 0.72rem;
  }

  .street-pay-card {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .airdrop-qr-card {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .airdrop-qr-box {
    max-width: 200px;
    max-height: 200px;
    padding: 10px;
  }

  /* Studio Editor on Mobile */
  .editor-modal {
    padding: 0;
  }

  .editor-container {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    border-radius: 0;
    border: none;
  }

  .editor-header {
    padding: 8px 10px;
    gap: 8px;
  }

  .editor-header-left {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .editor-filename {
    font-size: 0.80rem;
    max-width: 110px;
  }

  #editor-scene-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
  }

  .editor-header-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .btn-compare, .btn-airdrop-quick, .btn-save-edit {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  .preview-canvas {
    max-height: calc(100dvh - 300px);
    width: auto;
    max-width: 100%;
  }

  .presets-bar {
    padding: 6px 10px;
  }

  .preset-pill {
    padding: 5px 11px;
    font-size: 0.72rem;
  }

  .editor-controls-drawer {
    max-height: 160px;
    padding: 10px 12px;
  }

  .controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
  }

  .slider-group label {
    font-size: 0.72rem;
  }

  .slider-group input[type="range"] {
    height: 24px;
  }

  /* Waitlist Modal on Mobile */
  .wip-modal-card {
    width: calc(100% - 24px);
    margin: 12px auto;
    border-radius: 16px;
  }

  .wip-body {
    padding: 16px 14px 22px;
    gap: 12px;
  }

  .wip-hero-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .wip-hero-icon svg {
    width: 22px;
    height: 22px;
  }

  .wip-title {
    font-size: 1.05rem;
  }

  .wip-desc {
    font-size: 0.78rem;
  }

  .wip-input-card {
    flex-direction: column;
    padding: 6px;
    gap: 8px;
    border-radius: 12px;
  }

  .wip-field-group {
    padding: 4px 6px;
  }

  .wip-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.88rem;
  }

  .btn-notify-submit {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.86rem;
    border-radius: 9px;
  }

  /* Footer on Mobile */
  .app-footer {
    padding: 16px 14px calc(20px + var(--safe-bottom));
    margin-top: 24px;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    font-size: 0.72rem;
    text-align: center;
  }

  .footer-dot {
    display: inline;
    opacity: 0.3;
  }
}

/* Desktop & Tablet Responsive Enhancements */
@media (min-width: 768px) {
  .app-main {
    padding: 24px 20px;
  }

  /* Hero Import on Desktop */
  .hero-card {
    max-width: 640px;
    padding: 48px 40px;
    gap: 20px;
  }

  .hero-card h2 {
    font-size: 1.8rem;
  }

  /* Deck Stage on Desktop */
  .deck-wrapper {
    max-width: 680px;
    gap: 16px;
  }

  .card-stage {
    height: min(68vh, 600px);
    min-height: 460px;
  }

  .cull-card {
    border-width: 1.5px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  }

  .culling-controls {
    gap: 28px;
    padding: 12px 0;
  }

  .btn-reject, .btn-accept {
    width: 68px;
    height: 68px;
  }

  .btn-auto {
    width: 54px;
    height: 54px;
  }

  .keyboard-hints {
    font-size: 0.82rem;
    gap: 18px;
    margin-top: 4px;
  }

  .keyboard-hints kbd {
    padding: 2px 8px;
    font-size: 0.8rem;
  }

  /* Accepted Gallery on Desktop */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .gallery-card {
    border-radius: 16px;
  }

  /* Export Hub on Desktop */
  .export-hub {
    max-width: 760px;
    gap: 24px;
  }

  .export-header-card {
    padding: 36px 28px;
  }

  .export-actions-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .btn-airdrop-hero, .btn-download-bundle {
    padding: 22px 20px;
  }

  /* Editor Studio Modal on Desktop */
  .editor-container {
    max-width: 1150px;
    height: 90vh;
    border-radius: 20px;
    border: 1px solid var(--border-active);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
  }

  .preview-canvas {
    max-height: calc(90vh - 280px);
  }

  .editor-controls-drawer {
    max-height: 220px;
    padding: 16px 24px;
  }

  .controls-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 24px;
  }
}

@media (min-width: 1024px) {
  .card-stage {
    height: min(70vh, 640px);
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* WIP Badges & Navbar */
.badge-wip {
  display: inline-flex;
  align-items: center;
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.18);
  color: var(--color-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1;
}

.btn-street-pay-wip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

/* WIP Modal Styling */
.wip-modal-card {
  max-width: 440px;
}

.wip-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 28px;
  gap: 14px;
}

.wip-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--color-amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wip-hero-icon svg {
  width: 28px;
  height: 28px;
}

.wip-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.wip-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.wip-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.wip-form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  letter-spacing: -0.01em;
}

.wip-label-icon {
  width: 15px;
  height: 15px;
  color: var(--color-amber);
}

/* Premium Darkroom Input Card */
.wip-input-card {
  display: flex;
  align-items: stretch;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 4px;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wip-input-card:focus-within {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18), 0 8px 24px rgba(0, 0, 0, 0.6);
  background: #0b0d14;
}

.wip-field-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-width: 0;
}

.wip-input-icon {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.wip-input-card:focus-within .wip-input-icon {
  color: var(--color-amber);
}

.wip-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 500;
  outline: none;
  padding: 10px 0;
}

.wip-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.btn-notify-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  transition: all 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-notify-submit:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-notify-submit:active {
  transform: translateY(0);
}

.wip-btn-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.btn-notify-submit:hover .wip-btn-arrow {
  transform: translateX(2px);
}

.wip-hint {
  font-size: 0.70rem;
  color: var(--text-faint);
  text-align: center;
}

/* Success Box */
.wip-success-box {
  width: 100%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.wip-check-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-green);
  color: #000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wip-success-text h5 {
  margin: 0 0 2px 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.wip-success-text span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Powered by Cyberhorizon Footer */
.app-footer {
  width: 100%;
  padding: 24px 16px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

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

.footer-link {
  color: var(--color-amber);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.footer-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.footer-dot {
  opacity: 0.3;
}

.footer-sub {
  color: var(--text-faint);
}

.editor-specs-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-scene-hud {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.18);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1;
}

/* Privacy & Radical Transparency Modal / Page */
.privacy-modal-card {
  max-width: 620px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.privacy-modal-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.privacy-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-privacy-verified {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Zero Photo Ingestion Hero Box */
.privacy-hero-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.02));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.privacy-shield-emoji {
  font-size: 2rem;
  line-height: 1;
}

.privacy-hero-top h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.privacy-hero-top p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.privacy-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  padding-top: 14px;
}

.spec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 8px 6px;
}

.spec-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-green);
}

.spec-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Sections & Titles */
.privacy-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  width: 18px;
  height: 18px;
  color: var(--color-blue);
}

.section-title-row h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.badge-live-json {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.2);
  color: var(--color-blue);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 6px;
  padding: 1px 6px;
  text-transform: uppercase;
}

.privacy-section-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Live Terminal / Console Card */
.transparency-console {
  background: #08090e;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.console-header {
  background: #11131c;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.console-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #10b981; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 6px;
  flex: 1;
}

.btn-console-refresh {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-console-refresh:hover {
  color: #fff;
  border-color: var(--border-active);
  background: var(--bg-elevated);
}

.console-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #38bdf8;
  padding: 14px;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre;
}

/* GDPR Text */
.gdpr-content {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.gdpr-content h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin: 12px 0 4px;
}

.gdpr-content h5:first-child {
  margin-top: 0;
}

.gdpr-content ul {
  padding-left: 18px;
  margin: 6px 0;
}

.gdpr-content li {
  margin-bottom: 6px;
}

/* Standalone Header Consistency */
.header-standalone {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.header-standalone .header-inner-standalone {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  grid-template-columns: unset !important;
  grid-template-areas: unset !important;
  row-gap: 0 !important;
  padding: 0 20px !important;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: var(--header-height, 60px);
}

@media (max-width: 767px) {
  .header-standalone .header-inner-standalone {
    padding: 0 14px !important;
  }
}

/* Privacy Page Container & Consistency */
.privacy-main {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 20px;
}

@media (max-width: 767px) {
  .privacy-main {
    padding: 14px 12px;
  }
}

.privacy-page-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.privacy-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Stats Visualization UI */
.stats-tab-group {
  margin-left: auto;
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.btn-stats-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-stats-tab:hover {
  color: #fff;
}

.btn-stats-tab.active {
  background: var(--bg-elevated);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stats-visual-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Metric Cards */
.stats-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-label {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-card-icon {
  width: 14px;
  height: 14px;
  color: var(--color-blue);
  opacity: 0.8;
}

.stat-card-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-card-sub {
  font-size: 0.65rem;
  color: var(--text-faint);
}

/* Daily Activity Chart */
.stats-chart-card {
  background: #08090e;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-title {
  font-size: 0.80rem;
  font-weight: 700;
  color: #fff;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.70rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.dot-views { background: #3b82f6; }
.dot-uniques { background: #10b981; }

.chart-canvas-container {
  width: 100%;
}

/* Distribution Grid */
.stats-distribution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dist-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dist-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.segmented-dist-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.seg-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.seg-ios { background: #38bdf8; }
.seg-android { background: #10b981; }
.seg-mac { background: #a855f7; }
.seg-windows { background: #3b82f6; }
.seg-other { background: #f59e0b; }

.dist-legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.70rem;
  color: var(--text-muted);
}

.dev-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dist-referrer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ref-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.ref-name {
  color: var(--text-muted);
  width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.ref-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.ref-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 3px;
}

.ref-count {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: #fff;
  min-width: 20px;
  text-align: right;
}

@media (max-width: 640px) {
  .stats-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-distribution-grid {
    grid-template-columns: 1fr;
  }
}
