/* ============================================================
   BITFaucet — home.css
   ============================================================ */

:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface-2: #f7fafc;
  --text: #1a1a2e;
  --text-2: #5a6a7e;
  --border: #e8ecf1;
  
  --header-bg: rgba(240, 244, 248, 0.82);
  --header-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.08);
  
  --accent: #00c9a7;
  --accent-2: #00b4d8;
  --accent-glow: rgba(0, 201, 167, 0.28);
  --accent-soft: rgba(0, 201, 167, 0.12);
  --accent-border: rgba(0, 201, 167, 0.28);
  --accent-faint: rgba(0, 201, 167, 0.05);
  --gradient: linear-gradient(135deg, #00c9a7 0%, #00b4d8 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.14);
  
  --radius-sm: 12px;
  --radius: 18px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --live: #22c55e;
  --max-w: 640px;
  --header-h: 69px;
  
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b0f19;
  --surface: #141926;
  --surface-2: #1a2130;
  --text: #e8ecf1;
  --text-2: #8899aa;
  --border: #1e2a3a;
  
  --header-bg: rgba(11, 15, 25, 0.82);
  --header-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.6);
  
  --accent: #00e6c0;
  --accent-2: #00c9ff;
  --accent-glow: rgba(0, 230, 192, 0.35);
  --accent-soft: rgba(0, 230, 192, 0.14);
  --accent-border: rgba(0, 230, 192, 0.30);
  --accent-faint: rgba(0, 230, 192, 0.06);
  --gradient: linear-gradient(135deg, #00e6c0 0%, #00c9ff 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.50);
  
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background var(--transition), color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   SVG ICON PRIMITIVES
   ============================================================ */
.ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  color: inherit;
}

.ico-sm {
  width: 0.72em;
  height: 0.72em;
}

/* Chip icons — fixed sizes, don't scale with text */
.chip-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ============================================================
   BACKGROUND BLUR
   ============================================================ */
.bg-blur {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.blur1 {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -160px;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.6), transparent 70%);
}

.blur2 {
  width: 560px;
  height: 560px;
  bottom: -220px;
  right: -200px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.55), transparent 70%);
}

.blur3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 60%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.3), transparent 70%);
  opacity: 0.25;
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--header-shadow);
  padding-top: env(safe-area-inset-top);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-wrap {
    background: var(--bg);
  }
}

.header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 14px var(--accent-glow);
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* Logo — brand text + tagline stacked */
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 3px;
}

.logo-brand {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--text);
}

.logo-brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-2);
  opacity: 0.85;
  transition: color var(--transition);
}

.logo:hover .logo-tagline {
  color: var(--accent);
}

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

.header-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.header-link:hover {
  color: var(--accent);
  background: var(--surface-2);
}

/* ---------- Theme toggle (dual-SVG, CSS-swapped) ---------- */
.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition),
    color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  position: relative;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(15deg);
}

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

.theme-btn .ico {
  grid-area: 1 / 1;
}

.theme-btn .ico-sun {
  display: none;
}

[data-theme="dark"] .theme-btn .ico-moon {
  display: none;
}

[data-theme="dark"] .theme-btn .ico-sun {
  display: inline-block;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 12px);
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 320px;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  cursor: pointer;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    toastOut 0.4s 3s forwards;
}

.toast-ico {
  font-size: 1.05rem;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.success .toast-ico {
  color: var(--success);
}

.toast.info {
  border-left: 4px solid var(--accent);
}

.toast.info .toast-ico {
  color: var(--accent);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

.toast.warning .toast-ico {
  color: var(--warning);
}

.toast.error,
.toast.danger {
  border-left: 4px solid var(--danger);
}

.toast.error .toast-ico,
.toast.danger .toast-ico {
  color: var(--danger);
}

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

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(60px);
  }
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 20px 40px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-card {
  text-align: center;
  padding: 36px 26px 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-card>* {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-border);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  
  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

.hero-card h1 {
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.hero-card h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-2);
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.stat {
  text-align: center;
  padding: 2px 0;
}

.stat h3 {
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
  letter-spacing: -0.4px;
}

.stat span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  color: var(--text-2);
}

/* ---------- Crypto chips ---------- */
.crypto-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Hero ticker ---------- */
.hero-ticker {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
  will-change: transform;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

/* CSS-only green "live" dot */
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   LOGIN
   ============================================================ */
.login-card {
  padding: 26px 24px;
}

.login-head {
  text-align: center;
  margin-bottom: 20px;
}

.login-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 5px;
}

.login-head p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}

.input-group {
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: border-color var(--transition), background var(--transition),
    box-shadow var(--transition);
  overflow: hidden;
}

.input-wrap:focus-within {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.input-ico {
  width: 16px;
  height: 16px;
  margin-left: 14px;
  color: var(--text-2);
  transition: color var(--transition);
  flex-shrink: 0;
}

.input-wrap:focus-within .input-ico {
  color: var(--accent);
}

.input-wrap input {
  flex: 1;
  padding: 13px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.input-wrap input::placeholder {
  color: var(--text-2);
  opacity: 0.65;
}

.input-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  margin-right: 12px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.input-wrap.valid .input-check {
  opacity: 1;
  transform: scale(1);
}

.input-wrap.valid {
  border-color: var(--success);
}

.input-wrap.valid:focus-within {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.input-wrap.invalid {
  border-color: var(--danger);
}

.input-wrap.invalid:focus-within {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.76rem;
  margin-top: 7px;
  font-weight: 500;
  line-height: 1.4;
}

.error-msg.visible {
  display: block;
  animation: shake 0.35s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }
  
  25% {
    transform: translateX(-4px);
  }
  
  75% {
    transform: translateX(4px);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
  filter: brightness(1.04);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.btn-ico {
  font-size: 1rem;
}

.btn-primary.loading .btn-label,
.btn-primary.loading>.btn-ico {
  display: none;
}

.btn-primary.loading::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

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

.signup-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.signup-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-faint);
}

.signup-link .ico {
  font-size: 0.85rem;
}

.signup-link .ico-sm {
  font-size: 0.72rem;
  opacity: 0.6;
  transition: transform var(--transition), opacity var(--transition);
}

.signup-link:hover .ico-sm {
  transform: translateX(3px);
  opacity: 1;
}

/* ============================================================
   NOTICE
   ============================================================ */
.notice-card {
  padding: 0;
  overflow: hidden;
}

.notice-card summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  user-select: none;
  transition: color var(--transition);
}

.notice-card summary::-webkit-details-marker {
  display: none;
}

.notice-card summary:hover {
  color: var(--accent);
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.notice-title {
  flex: 1;
}

.notice-chevron {
  color: var(--text-2);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.notice-card[open] .notice-chevron {
  transform: rotate(180deg);
}

.notice-list {
  list-style: none;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
}

.notice-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}

.notice-list li .ico {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.notice-list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.notice-list a:hover {
  text-decoration: none;
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-2);
  padding: 10px 4px 0;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.step:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
  border: 1px solid var(--accent-border);
}

.step h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.step p {
  font-size: 0.74rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.feature h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.feature p {
  font-size: 0.76rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* ============================================================
   TRUST
   ============================================================ */
.trust-card {
  text-align: center;
  padding: 20px;
}

.trust-card h3 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 14px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.trust-row>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}

.trust-row>div .ico {
  color: var(--accent);
  font-size: 1rem;
}

.trust-row>div:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

.faq-h {
  font-size: inherit;
  font-weight: inherit;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q .ico {
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-q .ico {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 18px;
}

.faq-a p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.6;
}

.faq-item.open .faq-a {
  max-height: 240px;
  padding: 0 18px 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 24px 10px 10px;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-note {
  font-size: 0.68rem;
  opacity: 0.6;
  margin-top: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
  :root {
    --header-h: 63px;
  }
  
  .header {
    padding: 11px 14px;
  }
  
  .container {
    padding: 16px 14px 32px;
    gap: 12px;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  
  .logo-brand {
    font-size: 1.1rem;
  }
  
  .logo-tagline {
    font-size: 0.56rem;
    letter-spacing: 1.3px;
  }
  
  .hero-card {
    padding: 28px 18px 20px;
  }
  
  .hero-card h1 {
    font-size: 1.65rem;
    letter-spacing: -0.9px;
  }
  
  .subtitle {
    font-size: 0.84rem;
    margin-bottom: 20px;
  }
  
  .hero-stats {
    padding: 14px 8px;
    gap: 4px;
  }
  
  .stat h3 {
    font-size: 1rem;
  }
  
  .stat span {
    font-size: 0.6rem;
  }
  
  .chip {
    font-size: 0.7rem;
    padding: 5px 10px 5px 6px;
    gap: 5px;
  }
  
  .chip-ico {
    width: 16px;
    height: 16px;
  }
  
  .ticker-track span {
    font-size: 0.7rem;
  }
  
  .card {
    padding: 20px 16px;
  }
  
  .login-card {
    padding: 22px 18px;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn-primary {
    padding: 14px 20px;
    font-size: 0.9rem;
  }
  
  .faq-q {
    padding: 14px 15px;
    font-size: 0.84rem;
  }
  
  .faq-a p {
    font-size: 0.8rem;
  }
  
  .faq-item.open .faq-a {
    padding: 0 15px 15px;
  }
  
  .toast-container {
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .toast {
    font-size: 0.8rem;
    padding: 11px 14px;
  }
  
  .theme-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  
  .header-link {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero-card h1 {
    font-size: 1.45rem;
  }
  
  .stat h3 {
    font-size: 0.9rem;
  }
  
  .crypto-chips {
    gap: 5px;
  }
  
  .chip {
    font-size: 0.66rem;
    padding: 4px 8px 4px 5px;
  }
  
  .chip-ico {
    width: 14px;
    height: 14px;
  }
  
  .logo-brand {
    font-size: 1.02rem;
  }
  
  .logo-tagline {
    font-size: 0.52rem;
    letter-spacing: 1.1px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  
  .ticker-track {
    animation: none;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

  .header-wrap,
  .toast-container,
  .bg-blur,
  .hero-ticker,
  .signup-link {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .container {
    max-width: 100%;
    padding-top: 0;
  }
}