/* ================================================================
   HotSub — Stylesheet
   Brand colors sampled directly from the official logo:
   Orange: #FF6410 -> #FD6710   Navy: #081F41
   ================================================================ */

:root {
  --orange: #FF6410;
  --orange-light: #FF8A45;
  --orange-dark: #E8490A;
  --navy: #081F41;
  --navy-light: #123166;
  --navy-dark: #05142B;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --text: #1C2430;
  --text-muted: #667085;
  --border: #E4E7EC;
  --success: #12B76A;
  --error: #F04438;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(8, 31, 65, 0.08);
  --shadow-lg: 0 12px 40px rgba(8, 31, 65, 0.14);
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--navy); font-weight: 800; line-height: 1.25; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 100, 16, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(255, 100, 16, 0.45); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: var(--error); color: var(--white); }

/* ---------------- Header ---------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.brand-logo { height: 42px; width: auto; }
.main-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.main-nav a { font-weight: 600; color: var(--text); font-size: 15px; transition: color .15s; }
.main-nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.wallet-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
}
.wallet-pill strong { color: var(--navy); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------------- Alerts ---------------- */
.alert {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
}
.alert-success { background: #ECFDF3; color: var(--success); border: 1px solid #ABEFC6; }
.alert-error { background: #FEF3F2; color: var(--error); border: 1px solid #FECDCA; }
.alert-info { background: #EFF8FF; color: #175CD3; border: 1px solid #B2DDFF; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255,100,16,0.25) 0%, transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 100, 16, 0.15);
  color: var(--orange-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 100, 16, 0.3);
}
.hero h1 { color: var(--white); font-size: 46px; margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.hero p { color: #C4CDDE; font-size: 17px; margin-bottom: 32px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 28px; color: var(--white); }
.hero-stat span { font-size: 13px; color: #9AA6BC; }

.hero-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.hero-card h3 { margin-bottom: 4px; font-size: 18px; }
.hero-card p.sub { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.quick-buy-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.quick-buy-tabs button {
  flex: 1;
  min-width: 70px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
}
.quick-buy-tabs button.active { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ---------------- Sections ---------------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-tag {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 13px;
  text-transform: uppercase;
}
.section-head h2 { font-size: 34px; margin: 10px 0 12px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ---------------- Services grid ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14px; }

/* ---------------- How it works ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ---------------- Pricing / stats band ---------------- */
.stats-band {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 24px; text-align: center; }
.stats-grid strong { display: block; font-size: 32px; color: var(--orange-light); }
.stats-grid span { font-size: 14px; color: #B7C0D4; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  transition: max-height .25s ease, padding .25s ease;
}
.faq-item.open .faq-answer { padding: 0 22px 18px; max-height: 300px; }
.faq-item.open .faq-question { color: var(--orange); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  text-align: center;
  border-radius: 24px;
  padding: 56px 24px;
  margin: 0 24px;
}
.cta-band h2 { color: var(--white); font-size: 30px; margin-bottom: 12px; }
.cta-band p { margin-bottom: 28px; opacity: .9; }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--orange); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-dark); color: #B7C0D4; margin-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 24px 40px;
}
.footer-logo { height: 36px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--orange-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 24px; font-size: 13px; text-align: center; }

/* ---------------- Auth pages ---------------- */
.auth-wrap {
  min-height: calc(100vh - 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.auth-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}
.auth-card h2 { text-align: center; margin-bottom: 6px; }
.auth-card p.sub { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--navy); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  background: var(--bg);
  transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--orange); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-foot a { color: var(--orange); font-weight: 700; }

/* ---------------- Dashboard ---------------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 74px); }
.dash-sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 28px 16px;
}
.dash-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #C4CDDE;
  margin-bottom: 4px;
}
.dash-sidebar a:hover, .dash-sidebar a.active { background: rgba(255,100,16,0.15); color: var(--orange-light); }
.dash-main { padding: 32px; background: var(--bg); }

.balance-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.balance-card .label { font-size: 13px; color: #9AA6BC; margin-bottom: 6px; }
.balance-card .amount { font-size: 36px; font-weight: 800; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 16px; margin-bottom: 32px; }
.quick-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.quick-tile:hover { border-color: var(--orange); transform: translateY(-3px); }
.quick-tile .ic { font-size: 26px; margin-bottom: 8px; }
.quick-tile span { font-size: 13px; font-weight: 700; color: var(--navy); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.card h3 { font-size: 17px; margin-bottom: 18px; }

table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 12px 10px; font-size: 14px; border-bottom: 1px solid var(--border); }
table th { color: var(--text-muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.badge { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-successful { background: #ECFDF3; color: var(--success); }
.badge-pending { background: #FFFAEB; color: #B54708; }
.badge-failed, .badge-reversed { background: #FEF3F2; color: var(--error); }

/* ---------------- JS-driven states ---------------- */
.hidden { display: none !important; }
.spin { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.skeleton { background: linear-gradient(90deg, var(--border) 25%, #f0f1f3 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; color: transparent !important; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: flex; overflow-x: auto; gap: 6px; padding: 14px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 28px; }
  section { padding: 56px 0; }
}
