:root {
  --bg: #05070d;
  --panel: #0d1322;
  --panel-2: #121a2b;
  --text: #f4f7fb;
  --muted: #9dadc5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #8bd3ff;
  --accent-2: #c084fc;
  --green: #4ade80;
  --red: #fb7185;
  --gold: #f5c56b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.2), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(192, 132, 252, 0.16), transparent 30rem),
    radial-gradient(circle at 60% 80%, rgba(245, 197, 107, 0.08), transparent 28rem),
    var(--bg);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.75rem;
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.nav-button {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero,
.section,
.article-page {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 2rem;
  align-items: center;
  padding: 5.5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-subtitle {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.primary-button,
.secondary-button,
.article-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.secondary-button,
.article-card button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.trust-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card,
.article-card,
.metric-card,
.price-card,
.login-section,
.chart-panel,
.article-body {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-card {
  padding: 1.4rem;
}

.card-header,
.signal-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.card-header {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.hero-card h2 {
  font-size: 1.7rem;
  line-height: 1.15;
}

.hero-card p,
.section-heading p,
.article-card p,
.chart-panel p,
.price-card li,
.login-section p,
.article-body p {
  color: var(--muted);
  line-height: 1.75;
}

.signal-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.signal-list div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.signal-list span {
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.login-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.article-grid,
.dashboard-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.section-card {
  display: block;
  min-height: 13rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(139, 211, 255, 0.11), rgba(192, 132, 252, 0.07)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, border-color 160ms ease;
}

.section-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 211, 255, 0.5);
}

.section-card span {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-card p {
  color: var(--muted);
  line-height: 1.75;
}

.article-card,
.price-card,
.metric-card {
  padding: 1.25rem;
}

.article-card h3 {
  min-height: 4.5rem;
  margin: 0.9rem 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.article-card a {
  color: var(--accent);
  font-weight: 800;
}

.tag,
.badge {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.free {
  color: #052e16;
  background: var(--green);
}

.tag.paid,
.badge {
  color: #211006;
  background: var(--gold);
}

.locked {
  position: relative;
  overflow: hidden;
}

.locked::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(8, 17, 31, 0.9));
  pointer-events: none;
}

.metric-card {
  background: var(--panel);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 0.55rem 0;
  font-size: 1.8rem;
}

.metric-card.up small {
  color: var(--green);
}

.metric-card.down small {
  color: var(--red);
}

.chart-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.25rem;
}

.chart-line {
  height: 220px;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, transparent 18%, rgba(125, 211, 252, 0.4) 18% 20%, transparent 20% 35%, rgba(245, 197, 107, 0.55) 35% 37%, transparent 37% 58%, rgba(167, 139, 250, 0.5) 58% 60%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.price-card {
  position: relative;
  background: var(--panel);
}

.price-card.featured {
  border-color: rgba(125, 211, 252, 0.6);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.12), rgba(255, 255, 255, 0.04));
}

.price {
  margin: 0.7rem 0 1rem;
  font-size: 2.5rem;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
}

.price-card ul {
  min-height: 9rem;
  padding-left: 1.2rem;
}

.login-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 1.5rem;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.login-form small {
  color: var(--muted);
}

.form-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  color: #fecdd3;
  border: 1px solid rgba(251, 113, 133, 0.5);
  border-radius: 0.9rem;
  background: rgba(127, 29, 29, 0.32);
  line-height: 1.6;
}

.login-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
}

.login-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
}

.login-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  resize: vertical;
}

.nav-user {
  max-width: 14rem;
  overflow: hidden;
  color: var(--accent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-box,
.admin-table {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(0, 0, 0, 0.16);
}

.qr-placeholder {
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.admin-table {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
}

.admin-table input {
  width: 5rem;
  padding: 0.4rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.admin-table button {
  margin-left: 0.4rem;
  padding: 0.45rem 0.7rem;
  color: #06111f;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.checkbox-label {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem !important;
}

.checkbox-label input {
  width: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.paywall-dialog {
  max-width: 520px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--panel-2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.paywall-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.dialog-close {
  float: right;
  width: 2rem;
  height: 2rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.article-page {
  padding: 3rem 0 5rem;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 3rem);
}

.article-body h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.article-body h2 {
  margin-top: 2rem;
}

.article-meta,
.back-link {
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
}

.article-disclaimer {
  margin-top: 2rem;
  padding: 1rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.article-image {
  margin: 2rem 0;
}

.article-image.size-25 {
  width: 25%;
  margin-left: auto;
  margin-right: auto;
}

.article-image.size-50 {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.article-image.size-75 {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.article-image.size-100 {
  width: 100%;
}

.article-image.is-selected {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.article-image img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.article-image figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.editor-toolbar button {
  padding: 0.55rem 0.8rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.rich-editor {
  min-height: 460px;
  padding: 1rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.24);
  line-height: 1.8;
  outline: none;
}

.rich-editor:focus {
  border-color: rgba(139, 211, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 211, 255, 0.12);
}

.rich-editor img {
  max-width: 100%;
  border-radius: 0.9rem;
}

.rich-editor blockquote {
  margin: 1rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
}

@media (max-width: 860px) {
  .article-image.size-25,
  .article-image.size-50,
  .article-image.size-75 {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero,
  .article-grid,
  .dashboard-grid,
  .pricing-grid,
  .section-grid,
  .chart-panel,
  .login-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .article-card h3,
  .price-card ul {
    min-height: auto;
  }
}
