/* ═══════════════════════════════════════════════════
   GOAT PICKER — Design System
   goatpicker.com · contact@goatpicker.com
   ═══════════════════════════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;0,9..40,900;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  /* Colors */
  --black:       #0a0a0a;
  --white:       #ffffff;
  --green:       #00c853;
  --green-dark:  #00874a;
  --green-light: #d1fae5;
  --green-glow:  rgba(0,200,83,0.18);

  /* Surfaces */
  --surface-0:   #ffffff;
  --surface-1:   #f9f9f9;
  --surface-2:   #f4f4f4;
  --surface-dark:#0a0a0a;
  --surface-dark-2: #141414;

  /* Text */
  --text-primary:   #0a0a0a;
  --text-secondary: #666666;
  --text-tertiary:  #aaaaaa;
  --text-on-dark:   #ffffff;
  --text-on-green:  #003d1a;

  /* Borders */
  --border:      rgba(0,0,0,0.07);
  --border-dark: rgba(255,255,255,0.08);
  --border-green: rgba(0,200,83,0.25);

  /* Tier colors */
  --tier-free:    #00c853;
  --tier-premium: #1d4ed8;
  --tier-epic:    #7c3aed;
  --tier-legend:  #b45309;
  --tier-ultra:   #b91c1c;

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

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Typography */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-green: 0 8px 32px rgba(0,200,83,0.2);

  /* Liquid Glass */
  --glass-bg:    rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.9);
  --glass-blur:  blur(24px) saturate(180%);

  --glass-dark-bg:     rgba(10,10,10,0.65);
  --glass-dark-border: rgba(255,255,255,0.08);
  --glass-dark-blur:   blur(24px) saturate(160%);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── LIQUID GLASS ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.6);
}
.glass-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-dark-blur);
  -webkit-backdrop-filter: var(--glass-dark-blur);
  border: 1px solid var(--glass-dark-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.glass-green {
  background: rgba(0,200,83,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,200,83,0.25);
}

/* ── TYPOGRAPHY ── */
.h1 { font-size: clamp(36px, 8vw, 56px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.0; }
.h2 { font-size: clamp(26px, 6vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.05; }
.h3 { font-size: clamp(20px, 4vw, 28px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; }
.h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.h5 { font-size: 15px; font-weight: 600; }
.body { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.small { font-size: 12px; color: var(--text-secondary); }
.micro { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-tertiary); }
.mono { font-family: var(--font-mono); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  border: none; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-weight: 700; font-size: 13px;
  cursor: pointer; transition: all var(--t-fast);
  white-space: nowrap; padding: 11px 22px;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #222; }

.btn-green { background: var(--green); color: var(--text-on-green); }
.btn-green:hover { background: #00b84a; box-shadow: var(--shadow-green); }

.btn-ghost {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-1); }

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-glass:hover { background: rgba(255,255,255,0.85); }

.btn-sm { padding: 7px 14px; font-size: 11px; }
.btn-lg { padding: 14px 28px; font-size: 14px; }
.btn-full { width: 100%; }

.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--r-md);
  background: var(--surface-1); border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-icon:hover { background: var(--surface-2); color: var(--text-primary); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  border-radius: var(--r-sm);
  padding: 2px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
}
.badge-green  { background: rgba(0,200,83,.12); color: var(--green-dark); border: 1px solid rgba(0,200,83,.2); }
.badge-blue   { background: rgba(29,78,216,.09); color: #1d4ed8; border: 1px solid rgba(29,78,216,.14); }
.badge-purple { background: rgba(124,58,237,.09); color: #6d28d9; border: 1px solid rgba(124,58,237,.14); }
.badge-amber  { background: rgba(217,119,6,.09); color: #b45309; border: 1px solid rgba(217,119,6,.14); }
.badge-red    { background: rgba(220,38,38,.09); color: #b91c1c; border: 1px solid rgba(220,38,38,.14); }
.badge-gray   { background: var(--surface-1); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-black  { background: var(--black); color: var(--white); }

/* Tier badges */
.badge-free    { background: rgba(0,200,83,.1); color: #00874a; border:1px solid rgba(0,200,83,.2); }
.badge-premium { background: rgba(29,78,216,.09); color:#1d4ed8; border:1px solid rgba(29,78,216,.14); }
.badge-epic    { background: rgba(124,58,237,.09); color:#6d28d9; border:1px solid rgba(124,58,237,.14); }
.badge-legend  { background: rgba(180,83,9,.09); color:#b45309; border:1px solid rgba(180,83,9,.14); }
.badge-ultra   { background: rgba(185,28,28,.09); color:#b91c1c; border:1px solid rgba(185,28,28,.14); }

/* ── FORM ELEMENTS ── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.2px;
}
.field-hint {
  font-size: 10px; color: var(--text-tertiary); line-height: 1.4;
}

.input {
  border: 1px solid #e8e8e8;
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-size: 13px; font-family: var(--font-sans);
  color: var(--text-primary); background: var(--surface-1);
  outline: none; width: 100%;
  transition: border-color var(--t-fast), background var(--t-fast);
  -webkit-appearance: none;
}
.input:focus { border-color: #bbb; background: var(--white); }
.input::placeholder { color: var(--text-tertiary); }
.input.mono { font-family: var(--font-mono); font-size: 12px; }

textarea.input { resize: vertical; line-height: 1.5; min-height: 80px; }
select.input { cursor: pointer; }

/* search bar */
.search-bar {
  display: flex; align-items: center; gap: 0;
  border: 1px solid #e8e8e8; border-radius: var(--r-lg);
  background: var(--surface-1); overflow: hidden;
}
.search-bar input {
  flex: 1; border: none; outline: none; padding: 11px 14px;
  font-size: 13px; background: transparent; font-family: var(--font-sans);
  color: var(--text-primary);
}
.search-bar input::placeholder { color: var(--text-tertiary); }
.search-bar .search-icon {
  padding: 11px 13px; display: flex; align-items: center;
  color: var(--text-tertiary);
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-dark {
  background: var(--surface-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-surface {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md);
}

/* ── TOGGLE ── */
.toggle {
  width: 40px; height: 23px; border-radius: 12px;
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background var(--t-base);
  background: #e0e0e0;
}
.toggle.on { background: var(--green); }
.toggle-thumb {
  position: absolute; top: 4px; left: 4px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--white);
  transition: left var(--t-base);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.toggle.on .toggle-thumb { left: 21px; }

/* ── TABLE ROWS ── */
.trow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.trow:last-child { border-bottom: none; }
.trow-label { font-size: 12px; color: var(--text-secondary); }
.trow-value { font-size: 12px; color: var(--text-primary); font-weight: 500; }

/* ── STAT CARD ── */
.stat-card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 13px 15px;
}
.stat-card .stat-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 5px;
}
.stat-card .stat-value {
  font-size: 24px; font-weight: 900; color: var(--text-primary);
  line-height: 1; letter-spacing: -0.5px;
}
.stat-card .stat-delta {
  font-size: 10px; margin-top: 4px; color: var(--text-tertiary);
}
.stat-card .stat-delta.up { color: var(--green-dark); }
.stat-card .stat-delta.down { color: #b91c1c; }

/* ── STATUS DOT ── */
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.status-dot.green { background: var(--green); animation: pulse-dot 2s ease-in-out infinite; }
.status-dot.red   { background: #ef4444; animation: pulse-dot 2s ease-in-out infinite; }
.status-dot.amber { background: #f59e0b; }
.status-dot.gray  { background: #ccc; }

/* ── PROGRESS BAR ── */
.progress {
  height: 4px; border-radius: 2px; background: #f0f0f0; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.6s ease;
}

/* ── ALERT BOXES ── */
.alert {
  border-radius: var(--r-md); padding: 11px 13px;
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 11px; line-height: 1.5;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-warn  { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-blue  { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ── CERT BADGE ── */
.cert-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,200,83,0.1); border: 1px solid rgba(0,200,83,0.22);
  border-radius: var(--r-sm);
  padding: 4px 10px; font-size: 10px; font-weight: 700;
  color: var(--green-dark); font-family: var(--font-mono);
}
.cert-badge svg { color: var(--green); }

/* ── WATERMARK ── */
.watermark {
  font-family: var(--font-mono); font-size: 7px;
  color: rgba(255,255,255,0.22); letter-spacing: 0.4px;
  pointer-events: none; user-select: none;
}

/* ── NAVIGATION ── */
.navbar {
  height: 52px; padding: 0 var(--space-lg);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky; top: 0; z-index: 100;
}

.nav-link {
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: color var(--t-fast);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--text-primary); border-bottom-color: var(--text-primary); }

/* Tab nav (scrollable) */
.tab-nav {
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px var(--space-md);
  border-bottom: 1px solid var(--border);
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  cursor: pointer; border: none; background: transparent;
  color: var(--text-secondary); transition: all var(--t-fast);
  white-space: nowrap; flex-shrink: 0;
  font-family: var(--font-sans);
}
.tab-btn:hover { background: var(--surface-1); color: var(--text-primary); }
.tab-btn.active {
  background: var(--black); color: var(--white);
}
.tab-btn.active svg { stroke: var(--white); }

/* Tier tabs */
.tab-btn.tier-free.active    { background: var(--tier-free); color: #003d1a; }
.tab-btn.tier-premium.active { background: var(--tier-premium); color: var(--white); }
.tab-btn.tier-epic.active    { background: var(--tier-epic); color: var(--white); }
.tab-btn.tier-legend.active  { background: var(--tier-legend); color: var(--white); }
.tab-btn.tier-ultra.active   { background: var(--tier-ultra); color: var(--white); }

/* ── PHONE FRAME ── */
.phone-frame {
  width: 200px; height: 360px;
  border-radius: 40px; overflow: hidden; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.25);
  box-shadow: 0 32px 72px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.4);
  position: relative;
}
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 5px; border-radius: 3px;
  background: rgba(0,0,0,0.2); z-index: 10;
}

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 9px 0; background: #fafafa;
}
.ticker-inner {
  display: flex; gap: 40px; align-items: center;
  width: max-content;
  animation: ticker 22s linear infinite;
}
.ticker-item { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }
.ticker-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #ddd; flex-shrink: 0;
}

/* ── LOCK OVERLAY ── */
.lock-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(2px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  border-radius: inherit;
  border: 1.5px dashed #ddd;
}
.lock-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}

/* ── LAYOUT UTILITIES ── */
.container { max-width: 420px; margin: 0 auto; }
.section { padding: var(--space-xl) var(--space-md); }
.section-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: var(--space-sm); }
.divider { height: 1px; background: var(--border); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-col     { display: flex; flex-direction: column; }
.full-width   { width: 100%; }

/* ── CERT PAGE ── */
.cert-header {
  background: linear-gradient(135deg, #0a0a0a, #1c1c1c);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  position: relative; overflow: hidden;
}
.cert-verified {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,200,83,0.15); border: 1px solid rgba(0,200,83,0.28);
  border-radius: 6px; padding: 3px 8px;
  font-size: 9px; font-weight: 700; color: #00e676;
  font-family: var(--font-mono);
  margin-left: auto; flex-shrink: 0;
}
.cert-body { padding: 14px 16px; }
.cert-footer {
  background: #f0fdf4; border-top: 1px solid #d1fae5;
  padding: 10px 16px; display: flex; align-items: center; gap: 8px;
}

/* ── HERO SLIDE ── */
.hero-slide {
  min-height: 480px; padding: 32px var(--space-md) 28px;
  display: flex; flex-direction: column; gap: var(--space-lg);
  position: relative; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: orb-float 8s ease-in-out infinite;
}

/* ── RANGE SLIDER ── */
input[type="range"].styled {
  -webkit-appearance: none; width: 100%;
  height: 4px; border-radius: 2px; background: #e8e8e8;
  outline: none; cursor: pointer;
}
input[type="range"].styled::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--black);
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ── ANIMATIONS ── */
@keyframes pulse-dot {
  0%,100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes orb-float {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%     { transform: translate(14px, -10px) scale(1.06); }
  66%     { transform: translate(-8px, 7px) scale(0.95); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes roulette-tick {
  0%,100% { opacity: 1; }
  45%     { opacity: 0; }
  55%     { opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes conf-fall {
  0%   { transform: translateY(-8px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110%) rotate(540deg); opacity: 0; }
}
@keyframes bounce-in {
  0%  { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.12); }
  100%{ transform: scale(1); opacity: 1; }
}
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 0 0 transparent; }
  50%     { box-shadow: 0 0 20px 4px rgba(0,200,83,0.22); }
}
@keyframes countdown {
  0%  { transform: scale(1.4); opacity: 0; }
  40% { opacity: 1; }
  80% { transform: scale(1); }
  100%{ transform: scale(0.8); opacity: 0; }
}

/* animation helpers */
.anim-fade-up   { animation: fade-up 0.35s ease both; }
.anim-fade-in   { animation: fade-in 0.3s ease both; }
.anim-scale-in  { animation: scale-in 0.3s ease both; }
.anim-spin      { animation: spin 0.8s linear infinite; }
.anim-pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* stagger helpers */
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.18s; }
.stagger > *:nth-child(5) { animation-delay: 0.24s; }

/* ── MOBILE UTILS ── */
@media (max-width: 480px) {
  .hide-mobile { display: none !important; }
  .section { padding: var(--space-lg) var(--space-md); }
}
@media (min-width: 481px) {
  .hide-desktop { display: none !important; }
  .container { padding: 0 var(--space-md); }
}
