/* ===== Elitebay Global Design Tokens ===== */
:root {
  /* Colors */
  --canvas: #f2f7fd;
  --surface: #ffffff;
  --navy-deep: #0f172a;
  --navy-mid: #0f3460;
  --gold: #ffc107;
  --gold-hover: #e5ac00;
  --cyan: #00d4ff;
  --text-primary: #252b2f;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #d6dee6;
  --hero-gradient: linear-gradient(120deg, #0a1628 0%, #0f3460 45%, #1a1a4e 100%);
  --brand-gradient: linear-gradient(135deg, #ffffff 0%, #e8d5a0 40%, #ffc107 100%);
  --shadow-sm: rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
  --shadow-md: rgba(0, 0, 0, 0.08) 0px 4px 12px 0px;

  /* Typography */
  --font-en: 'Poppins', 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-zh: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;

  /* Spacing */
  --section-gap: 64px;
  --card-padding: 24px;
  --element-gap: 16px;

  /* Radius */
  --radius-pill: 45px;
  --radius-card: 16px;
  --radius-input: 8px;
  --radius-circle: 9999px;

  /* Layout */
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-zh);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, .font-en {
  font-family: var(--font-en);
}

.display {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.14;
}

.heading {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.14;
}

.heading-sm {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.subheading {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.body-lg {
  font-size: 17px;
  line-height: 1.5;
}

.body {
  font-size: 15px;
  line-height: 1.5;
}

.caption {
  font-size: 13px;
  line-height: 1.2;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-zh);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  min-height: 48px;
}

.btn-primary {
  background: var(--gold);
  color: var(--text-primary);
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy-mid);
  color: var(--navy-mid);
}
.btn-outline:hover {
  background: var(--navy-mid);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.04);
}

.btn-white {
  background: #ffffff;
  color: var(--navy-deep);
}
.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

/* ===== Brand Logo Text ===== */
/* Brand text on light backgrounds */
.brand-text {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, #0b182a 0%, #ffc107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Brand text on dark backgrounds (hero, dark sections) */
.brand-text-light {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(to bottom, #ffffff 20%, #ffc107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
}

/* ===== Inputs ===== */
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font-zh);
  font-size: 17px;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color 0.2s ease;
  outline: none;
  min-height: 48px;
}
.input:focus {
  border-color: var(--navy-mid);
}
.input::placeholder {
  color: var(--text-muted);
}

/* ===== Section ===== */
.section {
  padding: var(--section-gap) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  margin-bottom: 8px;
}
.section-title p {
  color: var(--text-secondary);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Error state */
.error-state {
  text-align: center;
  padding: 24px;
  color: #dc2626;
  font-size: 13px;
}
.error-state button {
  margin-top: 8px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 13px;
}
