:root {
  --bg: #0a0f14;
  --panel: rgba(17, 24, 39, 0.88);
  --panel-border: #1f2937;
  --text: #d1d5db;
  --muted: #94a3b8;
  --blue: #38bdf8;
  --green: #00ff88;
  --danger: #ff4d4f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(0, 255, 136, 0.05), transparent 22%),
    linear-gradient(180deg, #0a0f14, #0b1118 50%, #0a0f14);
  background-color: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/* subtle grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.2;
}

/* links */
a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* layout */
.container {
  width: min(1150px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(10, 15, 20, 0.85);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.nav-inner {
  width: min(1150px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(0,255,136,0.6);
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--blue);
}

/* PAGE HEADERS */
.page-title {
  margin: 28px 0 8px;
  color: var(--green);
  font-size: 2rem;
}

.page-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
}

/* PANELS */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.panel:hover {
  border-color: rgba(56,189,248,0.25);
}

/* SECTION TITLES */
.panel h2 {
  margin-top: 0;
  color: #7dd3fc;
}

/* CARDS */
.card {
  padding: 16px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.card:first-child {
  padding-top: 0;
}

/* COMMAND BLOCKS */
pre {
  margin: 12px 0;
  padding: 14px;
  background: #05080d;
  border: 1px solid #1f2937;
  border-radius: 10px;
  overflow-x: auto;
}

code {
  color: #7dd3fc;
  font-family: monospace;
  font-size: 0.95rem;
}

/* LISTS */
.list-clean {
  padding-left: 18px;
  margin: 0;
}

.list-clean li {
  margin: 10px 0;
}

/* BADGE */
.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #7dd3fc;
  font-size: 0.8rem;
}

/* FUTURE TOOL BLOCK */
.tool-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(56,189,248,0.25);
  background: rgba(5, 8, 13, 0.6);
  border-radius: 10px;
}

.affiliate-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #0a84ff;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.affiliate-btn:hover {
  background: #006fd6;
}

.affiliate-note {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}

/* FOOTER */
.footer {
  margin: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 700px) {
  .container {
    width: min(1150px, calc(100% - 20px));
  }

  .nav-inner {
    width: min(1150px, calc(100% - 20px));
  }

  .page-title {
    font-size: 1.7rem;
  }

  .panel {
    padding: 18px;
  }

  .nav-links {
    gap: 12px;
  }
}
.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

.logo {
  display: block !important;
  height: 20px !important;
  width: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
  flex: 0 0 20px !important;
}

.brand-text {
  display: inline-block !important;
}
