:root {
  color-scheme: dark;
  --bg: #050b14;
  --surface: #081426;
  --surface-2: #0b1b30;
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(56, 189, 248, 0.11);
  --border: rgba(255, 255, 255, 0.14);
  --border-blue: rgba(56, 189, 248, 0.38);
  --text: #eef7ff;
  --muted: #9fb2c7;
  --muted-2: #c8d5e2;
  --blue: #38bdf8;
  --blue-strong: #0ea5e9;
  --green: #22c55e;
  --green-strong: #16a34a;
  --warning: #f8c35d;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 38, 0.92), rgba(5, 11, 20, 1) 420px),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.container.narrow {
  width: min(100% - 32px, 850px);
}

.section-pad {
  padding: 72px 0;
}

.surface {
  background: rgba(8, 20, 38, 0.68);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 20, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.12);
}

.brand-mark span {
  display: block;
  border-radius: 999px 999px 2px 2px;
  background: var(--blue);
}

.brand-mark span:nth-child(1) {
  height: 14px;
}

.brand-mark span:nth-child(2) {
  height: 24px;
  background: var(--green);
}

.brand-mark span:nth-child(3) {
  height: 18px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
}

.main-nav a {
  color: var(--muted-2);
  padding: 10px 9px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  color: #03111e;
  background: var(--blue);
  border-color: var(--blue);
}

.btn-secondary {
  color: #02140a;
  background: var(--green);
  border-color: var(--green);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.btn.full {
  width: 100%;
}

.hero {
  padding-top: 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(2.25rem, 7vw, 4.9rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

h3 {
  font-size: 1.1rem;
}

.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 1.12rem;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-panel {
  min-height: 360px;
  display: flex;
  align-items: center;
}

.chart-card {
  width: 100%;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(34, 197, 94, 0.08)), var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.chart-top,
.chart-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.chart-top strong {
  color: var(--green);
}

.mock-chart {
  position: relative;
  height: 230px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 16px;
  margin: 26px 0;
  padding: 20px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 44px, rgba(255, 255, 255, 0.05) 45px),
    repeating-linear-gradient(90deg, transparent 0 56px, rgba(255, 255, 255, 0.035) 57px);
  overflow: hidden;
}

.candle {
  position: relative;
  width: 20px;
  height: 76px;
  justify-self: center;
  border-radius: 4px;
  background: var(--green);
}

.candle::before {
  content: "";
  position: absolute;
  left: 9px;
  top: -30px;
  width: 2px;
  height: calc(100% + 58px);
  background: currentColor;
  opacity: 0.65;
}

.candle.down {
  color: #fb7185;
  height: 96px;
  background: #fb7185;
}

.candle.up {
  color: var(--green);
}

.candle.tall {
  height: 138px;
}

.candle.short {
  height: 58px;
}

.trend-line {
  position: absolute;
  left: 36px;
  right: 30px;
  bottom: 72px;
  height: 2px;
  background: var(--blue);
  transform: rotate(-14deg);
  transform-origin: left center;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.trust-grid article,
.guide-card,
.video-card,
.rule-card,
.sidebar-box,
.quick-note,
.important-box,
.support-card,
.video-callout,
.not-found {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.trust-grid article {
  padding: 18px;
}

.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  color: var(--blue);
  background: rgba(56, 189, 248, 0.12);
  font-size: 0.82rem;
  font-weight: 850;
}

.trust-grid strong {
  display: block;
  margin-bottom: 5px;
}

.trust-grid p,
.guide-card p,
.video-card p,
.section-note,
.support-band p,
.article-hero p,
.step-card p,
.sidebar-box p {
  color: var(--muted);
}

.search-section {
  padding: 28px 0;
}

.search-box {
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.1);
  padding: 18px;
}

.search-box label,
.sidebar-box label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 800;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-row input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(5, 11, 20, 0.75);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.search-row.compact input {
  min-height: 44px;
}

.search-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.icon-button {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.empty-state,
.mini-empty {
  color: var(--warning);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-note {
  max-width: 360px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.featured-grid,
.guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.featured-card {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.11), rgba(255, 255, 255, 0.055));
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.14);
}

.category-pill,
.status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-badge {
  color: var(--warning);
  border-color: rgba(248, 195, 93, 0.3);
  background: rgba(248, 195, 93, 0.1);
}

.guide-card h3,
.video-card h3 {
  margin-bottom: 10px;
}

.guide-card p {
  margin: 0 0 18px;
}

.guide-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.guide-meta span,
.meta-row span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
}

.card-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--green);
  font-weight: 850;
}

.video-card {
  overflow: hidden;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 11, 20, 0.35));
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #03111e;
  background: var(--blue);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.28);
}

.video-body {
  padding: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.faq-item summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rule-card {
  display: flex;
  gap: 14px;
  padding: 18px;
}

.rule-card span {
  color: var(--blue);
  font-weight: 900;
}

.rule-card p {
  margin: 0;
}

.support-band {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(34, 197, 94, 0.1)), var(--surface);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: center;
}

.support-actions {
  display: grid;
  gap: 10px;
}

.support-actions p {
  margin: 0;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 8px;
}

.floating-contact a {
  min-width: 112px;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 850;
  text-align: center;
  color: #03111e;
  box-shadow: var(--shadow);
}

.floating-contact a:first-child {
  background: var(--blue);
}

.floating-contact a:last-child {
  background: var(--green);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #030811;
  padding: 26px 0 92px;
}

.footer-inner,
.footer-inner div {
  display: flex;
  gap: 14px;
}

.footer-inner {
  justify-content: space-between;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--text);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.guide-article {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--blue);
}

.article-hero {
  margin-bottom: 24px;
}

.article-hero h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.article-hero p {
  max-width: 780px;
  margin: 18px 0 20px;
  font-size: 1.08rem;
}

.quick-note,
.video-callout,
.support-card,
.not-found {
  padding: 22px;
}

.quick-note {
  margin-bottom: 28px;
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.09);
}

.quick-note p,
.support-card p,
.video-callout p {
  margin-bottom: 0;
  color: var(--muted-2);
}

.article-section {
  margin: 34px 0;
}

.article-section h2 {
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.check-list,
.important-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted-2);
}

.important-box {
  padding: 22px;
  border-color: rgba(248, 195, 93, 0.32);
  background: rgba(248, 195, 93, 0.08);
}

.step-list {
  display: grid;
  gap: 18px;
}

.step-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.step-number {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #03111e;
  background: var(--blue);
  font-weight: 950;
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.step-card p {
  margin: 0 0 16px;
}

.step-image {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-note {
  margin-top: 12px !important;
  border-left: 3px solid var(--green);
  padding: 10px 12px;
  background: rgba(34, 197, 94, 0.09);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.compact-guide,
.sidebar-link {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.compact-guide span {
  font-size: 1.2rem;
}

.compact-guide small,
.sidebar-link small {
  color: var(--muted);
}

.guide-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.sidebar-box {
  padding: 16px;
}

.sidebar-box h3 {
  margin-bottom: 12px;
}

.sidebar-box [data-sidebar-related],
.sidebar-box [data-sidebar-videos],
.mini-results {
  display: grid;
  gap: 10px;
}

.contact-box {
  background: var(--card-strong);
}

.not-found {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
  }

  .featured-grid,
  .guide-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section-pad {
    padding: 48px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .header-inner {
    min-height: auto;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 220px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .header-cta {
    flex: 0 0 auto;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.9rem;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .hero-panel {
    min-height: 0;
  }

  .mock-chart {
    height: 190px;
  }

  .hero-actions,
  .card-actions {
    display: grid;
  }

  .trust-grid,
  .featured-grid,
  .guide-grid,
  .video-grid,
  .rules-grid,
  .support-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-row {
    align-items: stretch;
  }

  .search-row input {
    min-height: 50px;
  }

  .step-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .step-number {
    width: 42px;
    height: 42px;
  }

  .floating-contact {
    right: 12px;
    bottom: 12px;
    grid-template-columns: repeat(2, 1fr);
    left: 12px;
  }

  .floating-contact a {
    min-width: 0;
  }

  .site-footer {
    padding-bottom: 112px;
  }

  .footer-inner,
  .footer-inner div {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .btn {
    width: 100%;
  }

  .header-cta {
    width: auto;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .chart-card {
    padding: 14px;
  }
}
