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

:root {
  /* Soft warm-neutral — easy on eyes */
  --bg-base:       #EDEEF3;
  --bg-card:       #F4F5F9;
  --bg-elevated:   #E6E8EF;
  --bg-hover:      #DCDFE9;
  --bg-deep:       #F4F5F9;

  --border:        rgba(9,12,28,0.08);
  --border-bright: rgba(9,12,28,0.14);
  --border-gold:   rgba(58,92,197,0.30);

  --text-primary:  #090C1C;
  --text-secondary:#4A5280;
  --text-muted:    #9099B8;

  /* Accent — deep navy blue */
  --gold:          #3A5CC5;
  --gold-light:    #5A7AE5;
  --gold-bright:   #7A96F0;
  --gold-dim:      rgba(58,92,197,0.08);
  --gold-glow:     rgba(58,92,197,0.14);

  --green:         #16A34A;
  --green-dim:     rgba(22,163,74,0.10);

  --red:           #DC2626;
  --red-dim:       rgba(220,38,38,0.08);

  /* Light graphite */
  --graphite-1:    #ECEEF5;
  --graphite-2:    #E2E5F0;
  --graphite-3:    #D5D9EA;
  --graphite-4:    #9099B8;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --radius-2xl:    32px;
  --radius-full:   999px;

  --shadow-card:   0 1px 0 rgba(9,12,28,0.04), 0 4px 16px rgba(9,12,28,0.07);
  --shadow-deep:   0 8px 40px rgba(9,12,28,0.12);
  --shadow-gold:   0 4px 24px rgba(58,92,197,0.20);
  --transition:    0.18s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--graphite-3); border-radius: 3px; }

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { max-width: 1200px; padding: 0 40px; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== TYPOGRAPHY ===== */
.text-xs   { font-size: 11px; line-height: 1.4; }
.text-sm   { font-size: 13px; line-height: 1.5; }
.text-base { font-size: 15px; line-height: 1.6; }
.text-lg   { font-size: 18px; line-height: 1.5; }
.text-xl   { font-size: 22px; line-height: 1.4; }
.text-2xl  { font-size: 28px; line-height: 1.3; }
.text-3xl  { font-size: 36px; line-height: 1.2; }
.text-4xl  { font-size: 48px; line-height: 1.1; }

.font-light   { font-weight: 300; }
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold{font-weight: 800; }
.font-black   { font-weight: 900; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-gold      { color: var(--gold); }
.text-green     { color: var(--green); }
.text-red       { color: var(--red); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: #090C1C;
  color: #FFFFFF;
  font-weight: 700;
  border: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15), 0 4px 16px rgba(9,12,28,0.20);
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-18deg);
  animation: btnShimmer 3.5s ease infinite;
}
@keyframes btnShimmer {
  0%     { left: -80%; opacity: 0; }
  10%    { opacity: 1; }
  40%, 100% { left: 140%; opacity: 0; }
}
.btn-gold:hover {
  background: #1A2040;
  box-shadow: 0 2px 0 rgba(0,0,0,0.12), 0 8px 24px rgba(9,12,28,0.28);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(9,12,28,0.16);
  color: var(--text-secondary);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(9,12,28,0.04);
  border-color: rgba(9,12,28,0.28);
  color: var(--text-primary);
}

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

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-full { width: 100%; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  /* Inner highlight at top = depth */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-bright); }

.card-elevated {
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-gold {
  background: rgba(100,130,255,0.10);
  color: var(--gold-light);
  border: 1px solid rgba(100,130,255,0.22);
}
.badge-green {
  background: rgba(74,222,128,0.10);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.22);
}
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-gray {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.07);
}

/* ===== INPUTS ===== */
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.input {
  width: 100%;
  background: #EDEEF3;
  border: 1.5px solid rgba(9,12,28,0.10);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  box-shadow: 0 1px 3px rgba(9,12,28,0.06);
}
.input:focus {
  border-color: var(--gold);
  box-shadow: 0 1px 3px rgba(9,12,28,0.06), 0 0 0 3px rgba(58,92,197,0.12);
}
.input::placeholder { color: var(--graphite-4); }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #F4F5F9;
  border-bottom: 1px solid rgba(9,12,28,0.07);
  height: 62px;
}

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em;
  color: #090C1C;
}
.navbar-logo span { color: inherit; }
.navbar-logo-icon {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.navbar-actions {
  display: flex; align-items: center; gap: 10px;
}


/* Bottom Nav (mobile) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #F4F5F9;
  border-top: 1px solid rgba(9,12,28,0.07);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  padding: 10px 0;
  color: var(--graphite-4);
  font-size: 9px; font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}
.bottom-nav-item svg { width: 20px; height: 20px; }
.bottom-nav-item.active { color: var(--gold); }

.bottom-nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}
.bottom-nav-item:hover { color: var(--text-secondary); }

@media (min-width: 768px) {
  .bottom-nav { display: none; }
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ===== PROGRESS ===== */
.progress-bar {
  height: 4px; border-radius: 2px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #3A5CC5, #5A7AE5);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed; top: 80px; right: 20px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--gold); }

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

/* ===== PAGE WRAPPER ===== */
.page {
  padding-top: 64px;
  padding-bottom: 80px;
  min-height: 100vh;
}
@media (min-width: 768px) {
  .page { padding-bottom: 0; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.animate-fade-up  { animation: fadeUp 0.55s 0.05s ease both; }
.animate-fade-up-1{ animation: fadeUp 0.55s 0.12s ease both; }
.animate-fade-up-2{ animation: fadeUp 0.55s 0.22s ease both; }
.animate-fade-up-3{ animation: fadeUp 0.55s 0.34s ease both; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* ===== LINE ===== */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(9,12,28,0.08) 30%, rgba(9,12,28,0.14) 50%, rgba(9,12,28,0.08) 70%, transparent 100%);
  opacity: 1;
}

/* ===== SECTION ===== */
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }

.section-title {
  font-size: 30px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 6px;
}
@media (min-width: 768px) { .section-title { font-size: 44px; } }

.section-subtitle {
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 32px; line-height: 1.7;
}
@media (min-width: 768px) { .section-subtitle { font-size: 16px; margin-bottom: 48px; } }

/* ===== PERFORMANCE: reduce continuous repaint work ===== */
/* On phones, stop purely-decorative looping animations that repaint every frame */
@media (max-width: 767px) {
  .btn-gold::after { animation: none; display: none; }
  .hero-title-accent { animation: none !important; }
}

/* Respect reduced-motion / battery-saver — disable all looping animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
