
:root {
  --bg: #101214;
  --bg-soft: #15181b;
  --panel: #191c1f;
  --panel-2: #1f2327;
  --line: #2a2f34;
  --text: #f4f6ef;
  --muted: #999fa8;
  --green: #36e58f;
--green-dark: #1fbd70;
--green-soft: rgba(54, 229, 143, .11);
--accent-2: #9af0c1;
  --radius: 22px;
  --shadow: 0 20px 70px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.top-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(
  90deg,
  #1fbd70,
  #63e6a3,
  #c4f6dc
);
  position: fixed;
  top: 0;
  z-index: 1000;
}

.site-header {
  height: 82px;
  border-bottom: 1px solid var(--line);
  background: rgba(16,18,20,.86);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  position: sticky;
  top: 3px;
  z-index: 100;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.7px;
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
}
.brand-accent { color: var(--green); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 600;
}
.main-nav > a { color: #d5d8d1; transition: .2s ease; }
.main-nav > a:hover { color: var(--green); }

.menu-toggle, .sidebar-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
}

.btn {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-gradient {
  color: #07120c;

  background: var(--green);

  box-shadow:
    0 10px 30px rgba(57, 217, 138, 0.12);
}
.btn-outline {
  color: var(--text);
  background: transparent;
  border: 1px solid #465049;
}
.btn-outline:hover { border-color: var(--green); }
.btn-small { padding: 12px 18px; }
.btn-large { padding: 17px 25px; min-width: 170px; }
.btn-full { width: 100%; padding: 15px 18px; }

.hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);

  background:
    radial-gradient(
      circle at 75% 40%,
      rgba(57, 217, 138, 0.08),
      transparent 35%
    ),
    #101214;
}

.hero-layout {
  width: min(1240px, 92vw);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;

  gap: 80px;

  padding: 100px 0;
}

.eyebrow {
  color: #c1c6c0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  display: block;

  width: 8px;
  height: 8px;

  background: var(--green);
  border-radius: 999px;

  box-shadow: 0 0 22px rgba(57, 217, 138, 0.7);
}

.hero-copy {
  max-width: 650px;
}

.hero-copy h1 {
  margin: 18px 0 24px;

  font-size: clamp(52px, 6vw, 82px);
  line-height: 1.02;

  letter-spacing: -4px;
}

.hero-copy h1 span {
  display: block;

  color: var(--green);

  background: none;
  -webkit-background-clip: initial;
}

.hero-copy p {
  max-width: 590px;

  margin: 0;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;

  gap: 14px;

  margin-top: 32px;
}

.hero-mini-stats {
  display: flex;

  gap: 35px;

  margin-top: 50px;
}

.hero-mini-stats div {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.hero-mini-stats strong {
  font-size: 17px;
}

.hero-mini-stats span {
  color: var(--muted);

  font-size: 12px;
}

.hero-preview {
  display: flex;
  justify-content: flex-end;
}

.preview-window {
  width: 100%;
  max-width: 520px;

  border: 1px solid #343b37;

  border-radius: 24px;

  background: #171a1c;

  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.35);

  transform: rotate(1deg);
}

.preview-topbar {
  height: 48px;

  border-bottom: 1px solid var(--line);

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 0 18px;
}

.preview-topbar span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #414744;
}

.preview-content {
  padding: 34px;
}

.preview-label {
  color: var(--green);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.preview-content h3 {
  margin: 10px 0 30px;

  font-size: 28px;
}

.preview-usage {
  padding: 18px;

  border: 1px solid var(--line);

  background: #121516;

  border-radius: 15px;
}

.preview-usage div:first-child {
  display: flex;
  justify-content: space-between;

  gap: 20px;
}

.preview-usage span {
  color: var(--muted);

  font-size: 12px;
}

.preview-usage strong {
  font-size: 13px;
}

.mini-progress {
  height: 5px;

  margin-top: 17px;

  background: #303532;

  border-radius: 100px;

  overflow: hidden;
}

.mini-progress span {
  display: block;

  width: 74%;
  height: 100%;

  background: var(--green);
}

.preview-stats {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

  margin-top: 12px;
}

.preview-stats div {
  padding: 16px;

  border: 1px solid var(--line);

  border-radius: 13px;

  background: #121516;
}

.preview-stats span,
.preview-stats strong {
  display: block;
}

.preview-stats span {
  color: var(--muted);

  font-size: 10px;

  margin-bottom: 7px;
}

.preview-stats strong {
  font-size: 12px;
}

.preview-button {
  width: 100%;

  margin-top: 12px;

  padding: 15px;

  border: none;
  border-radius: 13px;

  background: var(--green);

  color: #08130d;

  font-weight: 800;

  cursor: pointer;
}

.section { padding: 110px 5vw; }
.section-alt { background: #0d1012; border-block: 1px solid var(--line); }
.section-heading {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-heading h2 {
  margin: 14px 0;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -2px;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.feature-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card, .pricing-card, .faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-card {
  padding: 30px;
  min-height: 225px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: #3e4a43; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border: 1px solid rgba(57,217,138,.22);
  color: var(--green);
  font-size: 23px;
}
.feature-card h3 { margin: 24px 0 10px; }
.feature-card p { color: var(--muted); line-height: 1.7; margin: 0; }

.plan-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -20px auto 35px;
}
.plan-tab, .range-tabs button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 17px;
  cursor: pointer;
  font-weight: 700;
}
.plan-tab.active, .range-tabs button.active {
  background: var(--green);
  color: #08130e;
  border-color: var(--green);
}
.plan-panel { display: none !important; }
.plan-panel.active { display: grid !important; }
.pricing-grid {
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pricing-grid[data-plan-panel="residential"] {
  max-width: 1400px;
  grid-template-columns: repeat(4, 1fr);
}
.pricing-card {
  padding: 31px;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.pricing-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(57,217,138,.08), var(--shadow);
  transform: translateY(-8px);
}
.plan-label {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(57,217,138,.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  align-self: flex-start;
}
.pricing-card h3 { font-size: 21px; margin: 21px 0 8px; }
.price { font-weight: 800; font-size: 42px; letter-spacing: -2px; }
.price span { font-size: 12px; color: var(--muted); letter-spacing: 0; font-weight: 600; }
.pricing-card ul {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  flex: 1;
}
.pricing-card li {
  color: #c7cbc5;
  padding: 10px 0 10px 25px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.pricing-card li::before {
  content: "✓";
  color: var(--green);
  position: absolute;
  left: 0;
  font-weight: 800;
}

.faq-list { max-width: 850px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 23px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.faq-question span { color: var(--green); font-size: 23px; transition: transform .2s ease; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-answer p { color: var(--muted); line-height: 1.7; margin: 0; padding: 0 25px 23px; }
.faq-item.open .faq-answer { max-height: 220px; }
.faq-item.open .faq-question span { transform: rotate(45deg); }

.cta-section {
  max-width: 1160px;
  margin: 0 auto 30px;
  background:
    radial-gradient(circle at 90% 20%, rgba(57,217,138,.13), transparent 28%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.cta-section h2 { font-size: 36px; margin: 14px 0 10px; }
.cta-section p { color: var(--muted); margin: 0; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 5vw 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

/* Footer legal links */

.footer-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-right p {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-legal-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.footer-legal-link:hover {
  color: var(--green);
}

/* =========================
   TERMS & PRIVACY MODALS
   ========================= */

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 32px;
}

.legal-modal.open {
  display: flex;
}

.legal-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.legal-modal-dialog {
  position: relative;
  z-index: 1;

  width: min(1100px, 94vw);
  height: min(820px, 88vh);

  display: flex;
  flex-direction: column;

  background: #17191b;
  border: 1px solid #34393d;
  border-radius: 24px;

  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);

  overflow: hidden;
}


/* Header */

.legal-modal-header {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 28px 34px;

  border-bottom: 1px solid var(--line);
}

.legal-modal-header h2 {
  margin: 0;

  color: var(--text);

  font-size: 30px;
  letter-spacing: -1px;
}


/* X button */

.legal-modal-x {
  width: 42px;
  height: 42px;

  border: 0;
  background: transparent;

  color: var(--muted);

  font-size: 32px;
  line-height: 1;

  cursor: pointer;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.legal-modal-x:hover {
  color: var(--text);
  transform: scale(1.08);
}


/* Scrollable legal text */

.legal-modal-content {
  flex: 1;

  overflow-y: auto;

  padding: 38px 42px;

  scrollbar-width: thin;
  scrollbar-color: #465049 #17191b;
}

.legal-modal-content h3 {
  margin: 0 0 14px;

  color: var(--text);

  font-size: 23px;
  letter-spacing: -0.5px;
}

.legal-modal-content h3:not(:first-child) {
  margin-top: 38px;
}

.legal-modal-content p {
  margin: 0;

  color: #a5abb3;

  font-size: 16px;
  line-height: 1.75;
}

.legal-modal-content ul {
  color: #a5abb3;

  line-height: 1.75;

  padding-left: 22px;
}

.legal-modal-content p + p {
  margin-top: 18px;
}

.legal-modal-content h4 {
  margin: 24px 0 14px;
  color: var(--text);
  font-size: 18px;
}

.legal-modal-content ol {
  color: #a5abb3;
  line-height: 1.75;
  padding-left: 22px;
}

.legal-modal-content li {
  margin-bottom: 8px;
}

.legal-acknowledgments {
  list-style: none;
  padding-left: 0;
}


/* Bottom section */

.legal-modal-footer {
  flex-shrink: 0;

  padding: 20px 34px 26px;

  border-top: 1px solid var(--line);
}

.legal-close-button {
  width: 100%;

  border: 1px solid #39413d;
  border-radius: 14px;

  background: transparent;
  color: var(--text);

  padding: 15px 20px;

  font-weight: 800;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.legal-close-button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}


/* Prevent homepage from scrolling behind popup */

body.legal-modal-open {
  overflow: hidden;
}

.site-footer .brand { color: var(--text); }

/* Dashboard loading screen */

.dashboard-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #0d0f10;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.dashboard-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dashboard-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 14px;

  text-align: center;
}

.dashboard-loader-logo {
  width: 68px;
  height: 68px;

  object-fit: contain;
  border-radius: 14px;
}

.dashboard-loader-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.dashboard-loader-brand span {
  color: var(--green);
}

.dashboard-loader-spinner {
  width: 28px;
  height: 28px;

  margin-top: 8px;

  border: 3px solid rgba(54, 229, 143, 0.15);
  border-top-color: var(--green);

  border-radius: 50%;

  animation: dashboardLoaderSpin 0.75s linear infinite;
}

.dashboard-loader-text {
  color: var(--muted);

  font-size: 12px;
  font-weight: 600;
}

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

/* Dashboard */
.dashboard-body { background: #0d0f10; min-height: 100vh; }
.sidebar {
  position: fixed;
  top: 3px;
  left: 0;
  bottom: 0;
  width: 265px;
  background: #17191b;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 24px 15px 15px;
  z-index: 200;
}
.dashboard-brand { padding: 0 11px 30px; }
.side-group { margin: 12px 0 22px; }
.side-heading {
  display: block;
  padding: 0 12px 10px;
  color: #777d83;
  font-size: 11px;
  letter-spacing: .13em;
  font-weight: 800;
}
.side-link {
  width: 100%;
  border: 0;
  color: #a7adb1;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}
.side-link:hover, .side-link.active { color: var(--text); background: #0f1112; }
.side-link.active { box-shadow: inset 3px 0 0 var(--green); }
.side-link span { width: 20px; text-align: center; color: #8d9690; }
.side-link.locked {
  opacity: 0.35;
  cursor: not-allowed;
}

.side-link.locked:hover {
  background: transparent;
  color: #a7adb1;
  cursor: not-allowed;
}

.lock-badge {
  margin-left: auto;
  width: auto !important;
  font-size: 12px;
  opacity: 0.8;
}
.sidebar-user {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 10px 4px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--yellow));
  color: #0b1710; font-weight: 900;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.discord-fallback-icon {
  width: 24px;
  height: 24px;
  color: rgba(57,217,138,.22);
}
.sidebar-user strong, .sidebar-user span { display: block; }
.sidebar-user strong { font-size: 13px; }
.sidebar-user div span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.chevron { color: var(--muted); }

.dashboard-main { margin-left: 265px; min-height: 100vh; }
.dashboard-announcement {
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: #244b1e;
  color: #dfffd5;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  padding: 0 15px;
}
.dashboard-topbar {
  min-height: 80px;
  border-bottom: 1px solid var(--line);
  background: rgba(15,17,18,.88);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 15px 28px;
  position: sticky;
  top: 3px;
  z-index: 90;
}
.dashboard-title-wrap { display: flex; align-items: center; gap: 12px; }
.dashboard-title-wrap h1 { font-size: 19px; margin: 3px 0 0; }
.muted-label {
  color: #7f858b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.dashboard-actions { display: flex; align-items: center; gap: 9px; }
.quick-buy {
  border: 1px solid rgba(57,217,138,.28);
  background: var(--green-soft);
  color: var(--green);
  padding: 11px 15px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
}
.quick-buy:hover { background: var(--green); color: #07150e; }
.quick-buy-group {
  display: none;
  align-items: center;
  gap: 9px;
}
.quick-buy-group.active {
  display: flex;
}
.dashboard-content { padding: 28px; max-width: 1600px; margin: 0 auto; }
.metric-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}
.metric-card, .chart-card, .generator-card, .quick-plans-card {
  background: var(--panel);
  border: 1px solid #34393d;
  border-radius: 18px;
}
.metric-card { padding: 24px; position: relative; overflow: hidden; }
.metric-label { color: var(--muted); display: block; font-size: 13px; margin-bottom: 17px; }
.metric-label b { color: #c8cdc7; }
.metric-card strong { font-size: 26px; letter-spacing: -1px; }
.metric-foot { display: block; color: #73797f; font-size: 11px; margin-top: 15px; }
.progress-track {
  height: 5px; background: #373b3e;
  position: absolute; left: 0; right: 0; bottom: 0;
}
.progress-fill { height: 100%; width: 82%; background: var(--green); transition: width .3s ease; }

.chart-card {
  margin-top: 18px;
  padding: 22px 22px 13px;
}
.chart-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.range-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.range-tabs button { border-radius: 10px; padding: 8px 12px; font-size: 11px; }
.chart-legend { color: var(--muted); font-size: 11px; }
.chart-legend span {
  width: 8px; height: 8px; display: inline-block; border-radius: 50%;
  background: var(--green); margin-right: 5px;
}
#usageChart { width: 100%; height: 260px; display: block; margin-top: 18px; }
.chart-axis-labels { display: flex; justify-content: space-between; color: #73797f; font-size: 11px; padding: 6px 4px 0; }

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: 1.8fr .8fr;
  gap: 18px;
  margin-top: 18px;
}

.dashboard-lower-grid .generator-card {
  grid-column: 1 / -1;
}
.generator-card, .quick-plans-card { padding: 24px; }
.card-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.generator-card h2, .quick-plans-card h2 { margin: 5px 0 20px; font-size: 21px; }
.generator-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
}
.generator-controls label {
  color: #9ca2a6;
  font-size: 11px;
  font-weight: 700;
}
.generator-controls input, .generator-controls select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #3a4044;
  background: #111315;
  color: var(--text);
  border-radius: 11px;
  padding: 12px;
  outline: none;
}
.generator-controls select {
  -webkit-appearance: none;
  appearance: none;

  padding: 12px;
  padding-right: 42px;

  background-image:
    linear-gradient(45deg, transparent 50%, #8f9994 50%),
    linear-gradient(135deg, #8f9994 50%, transparent 50%);

  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;

  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.generator-controls input:focus, .generator-controls select:focus { border-color: var(--green); }
.wide-control { grid-column: span 4; }
.generator-button { margin-top: 14px; }
#proxyOutput {
  width: 100%;
  height: 180px;
  resize: vertical;
  border: 1px solid #353b3e;
  background: #0f1112;
  color: #aef3cb;
  border-radius: 12px;
  margin-top: 14px;
  padding: 14px;
  outline: none;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}
.helper-text { color: #6f767b; font-size: 10px; margin: 9px 0 0; }
.quick-plans-card p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.quick-plan-list { display: grid; gap: 10px; margin-top: 19px; }
.quick-plan-list a {
  padding: 15px;
  border: 1px solid #353a3d;
  background: #141719;
  border-radius: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.quick-plan-list a:hover { border-color: var(--green); transform: translateY(-2px); }
.quick-plan-list strong, .quick-plan-list span { display: block; }
.quick-plan-list strong { font-size: 12px; }
.quick-plan-list span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.quick-plan-list b { color: var(--green); font-size: 12px; white-space: nowrap; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #202522;
  border: 1px solid #3c5044;
  color: #dcfbe8;
  padding: 13px 17px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(120px);
  opacity: 0;
  transition: .25s ease;
  z-index: 9999;
  font-size: 13px;
  font-weight: 700;
}
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1000px) {
  .feature-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .hero-stats { grid-template-columns: 1fr; max-width: 500px; }
  .metric-grid { grid-template-columns: 1fr; }
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .generator-controls { grid-template-columns: 1fr 1fr; }
  .wide-control { grid-column: span 2; }
  .dashboard-actions .quick-buy:nth-child(1) { display: none; }
}
@media (max-width: 780px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 4vw;
    right: 4vw;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; }
  .hero-content { padding-top: 70px; }
  .hero h1 { letter-spacing: -2px; }
  .hero p { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: min(100%, 350px); }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .cta-section { margin-inline: 5vw; flex-direction: column; align-items: flex-start; }
  .site-footer { flex-direction: column; gap: 20px; }

  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .dashboard-topbar { align-items: flex-start; }
  .dashboard-actions .quick-buy { display: none; }
}

/* Launch promotion banner */

.promo-banner {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 10px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #ffffff;
  box-sizing: border-box;
  z-index: 1000;
}

.promo-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 16px;
}

.promo-code {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: inherit;
  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.promo-code:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.promo-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.promo-close:hover {
  opacity: 1;
}

@media (max-width: 560px) {

  .section { padding: 80px 5vw; }

  .hero h1 { font-size: 47px; }

  .generator-controls { grid-template-columns: 1fr; }

  .wide-control { grid-column: span 1; }

  .dashboard-content { padding: 16px; }

  .dashboard-topbar { padding: 14px 16px; }

  .chart-header { 
    flex-direction: column; 
    align-items: flex-start; 
  }

  .promo-banner {
  padding: 10px 45px 10px 16px;
}

.promo-banner-content {
  gap: 8px;
  font-size: 13px;
}

.promo-code {
  padding: 6px 10px;
}

.promo-close {
  right: 14px;
}


  /* Terms & Privacy modal */

  .legal-modal {
    padding: 12px;
  }

  .legal-modal-dialog {
    width: 100%;
    height: 92vh;
    border-radius: 18px;
  }

  .legal-modal-header {
    padding: 22px;
  }

  .legal-modal-header h2 {
    font-size: 24px;
  }

  .legal-modal-content {
    padding: 26px 22px;
  }

  .legal-modal-content h3 {
    font-size: 19px;
  }

  .legal-modal-content p {
    font-size: 14px;
  }

  .legal-modal-footer {
    padding: 16px 22px 20px;
  }

  .site-footer {
    gap: 20px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 14px;
  }

}

/* 
   DISCOUNT PROGRAM
 */

.discount-program-view {
  display: grid;
  gap: 22px;
}

.discount-program-view[hidden] {
  display: none;
}

.discount-program-header {
  padding: 4px 2px;
}

.discount-program-header h2 {
  margin: 8px 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.discount-program-header p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.discount-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.discount-referral-count {
  display: block;
  margin: 10px 0 6px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.discount-progress-card .progress-track {
  margin-top: 18px;
}


/* Referral Link */

.referral-link-card,
.referral-rules-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.referral-link-card h2,
.referral-rules-card h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.referral-link-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.referral-link-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.referral-link-row input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;

  background: rgba(0, 0, 0, 0.18);
  color: inherit;

  font-family: inherit;
  font-size: 14px;

  outline: none;
}

.referral-link-row input:focus {
  border-color: rgba(110, 231, 168, 0.45);
}


/* Rules */

.referral-rules-card ul {
  display: grid;
  gap: 11px;

  margin: 18px 0 0;
  padding-left: 20px;

  color: var(--muted);
  line-height: 1.55;
}

.referral-rules-card li::marker {
  color: #6ee7a8;
}


/* Mobile */

@media (max-width: 800px) {
  .discount-program-grid {
    grid-template-columns: 1fr;
  }

  .referral-link-row {
    flex-direction: column;
  }

  .referral-link-row .btn {
    width: 100%;
  }
}

/* Discount Program - Referral Plan */

.referral-plan-label {
  display: block;
  margin-bottom: 8px;

  color: #a8b0ac;
  font-size: 13px;
  font-weight: 600;
}

.referral-plan-select {
  display: block;
  width: 200px;
  max-width: 100%;
  min-height: 46px;

  appearance: none;
  -webkit-appearance: none;

  padding: 0 42px 0 14px;

  background-color: #151918;
  color: #f5f7f6;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  outline: none;

  /* Custom arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, #8f9994 50%),
    linear-gradient(135deg, #8f9994 50%, transparent 50%);

  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 13px) 19px;

  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.referral-plan-select:hover {
  background-color: #191e1c;
  border-color: rgba(110, 231, 168, 0.35);
}

.referral-plan-select:focus {
  border-color: #6ee7a8;
  box-shadow: 0 0 0 3px rgba(110, 231, 168, 0.1);
}

.referral-plan-select option {
  background-color: #151918;
  color: #f5f7f6;
}


#residentialQuickBuy,
#mobileQuickBuy,
#ispQuickBuy {
  gap: 7px;
}

/* Mobile dashboard purchase buttons */
@media (max-width: 780px) {

  .dashboard-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .dashboard-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #residentialQuickBuy,
  #mobileQuickBuy,
  #ispQuickBuy {
    width: 100%;
    gap: 8px;
  }

  #residentialQuickBuy .quick-buy,
  #mobileQuickBuy .quick-buy,
  #ispQuickBuy .quick-buy {
    flex: 1 1 0;
    min-width: 0;
  }

  .dashboard-actions > .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Sidebar close button */

.sidebar-close {
  display: none;
}

@media (max-width: 780px) {
  .sidebar-close {
    display: flex;

    position: absolute;
    top: 14px;
    right: 14px;

    width: 40px;
    height: 40px;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;

    background: #111315;
    color: #f5f7f6;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
    z-index: 20;
  }

  .sidebar-close:hover {
    background: #1b1f21;
  }
}

.sale-banner {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;

  background: #35e29a;
  color: #07110d;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.sale-banner-track {
  display: inline-block;
  padding-left: 100%;

  animation: saleBannerScroll 25s linear infinite;
}

.sale-banner-track strong {
  margin-left: 4px;
  padding: 3px 8px;

  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;

  font-weight: 800;
  letter-spacing: 0.5px;
}

@keyframes saleBannerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Residential pricing tablet */
@media (max-width: 1000px) {
  .pricing-grid[data-plan-panel="residential"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

/* Residential pricing mobile */
@media (max-width: 780px) {
  .pricing-grid[data-plan-panel="residential"] {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
  }
}

/* 
   Dashboard mobile touch UI
    */

.sidebar-backdrop,
.mobile-quick-buy-toggle,
.mobile-quick-buy-panel {
  display: none;
}

@media (max-width: 780px) {

  /* Allow sidebar contents to scroll */
  .sidebar {
    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior: contain;

    max-height: 100dvh;
  }

  /*
   * Keep the account/user area reachable
   * instead of forcing it below the viewport
   */
  .sidebar-user {
    flex-shrink: 0;
  }


  /* Dark area behind open sidebar */
  .sidebar-backdrop {
    display: block;

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;
    visibility: hidden;

    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;

    z-index: 190;
  }

  .sidebar-backdrop.open {
    opacity: 1;
    visibility: visible;
  }


  /* Mobile Quick Buy button */
  .mobile-quick-buy-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-left: auto;

    border: 1px solid #3a4044;
    border-radius: 11px;

    background: #171a1c;
    color: var(--text);

    padding: 11px 14px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
  }

  .mobile-quick-buy-toggle span {
    color: var(--green);

    transition: transform 0.2s ease;
  }

  .mobile-quick-buy-toggle.open span {
    transform: rotate(180deg);
  }


  /* Dropdown/panel below dashboard header */
  .mobile-quick-buy-panel {
    display: block;

    position: relative;

    max-height: 0;
    overflow: hidden;

    opacity: 0;

    border-bottom: 0 solid var(--line);

    background: #111315;

    transition:
      max-height 0.25s ease,
      opacity 0.2s ease,
      padding 0.25s ease;

    padding: 0 16px;
  }

  .mobile-quick-buy-panel.open {
    max-height: 420px;

    opacity: 1;

    padding: 14px 16px;

    border-bottom-width: 1px;
  }

  .mobile-quick-buy-panel-inner {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .mobile-quick-buy-panel .quick-buy {
    width: 100%;

    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
  }


  /*
   * Existing desktop quick-buy controls remain
   * hidden in the topbar on mobile
   */
  .dashboard-actions {
    display: none !important;
  }


  /*
   * Keep the title + hamburger + Quick Buy
   * aligned
   */
  .dashboard-topbar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .dashboard-title-wrap {
    min-width: 0;
  }
}

/* Discord Community CTA */

.discord-community-section {
  position: relative;
  padding: 55px 5vw;
  margin-top: 30px;
  margin-bottom: 40px;
}

.discord-community-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 560px;

  height: 1px;
  background: var(--line);
}

.discord-community-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 560px;

  height: 1px;
  background: var(--line);
}

.discord-community-card {
  width: min(560px, 100%);
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 16px;

  padding: 18px 20px;

  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.discord-community-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  background: #1b1f21;
}

.discord-community-icon {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  background: #111315;
  border: 1px solid #30363a;
  border-radius: 14px;

  color: #5865f2;
}

.discord-community-icon svg {
  width: 28px;
  height: 28px;
}

.discord-community-copy {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-community-copy strong {
  color: var(--text);
  font-size: 17px;
}

.discord-community-copy span {
  color: var(--muted);
  font-size: 13px;
}

.discord-community-arrow {
  flex-shrink: 0;

  color: var(--muted);

  font-size: 34px;
  line-height: 1;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.discord-community-card:hover
.discord-community-arrow {
  color: var(--green);
  transform: translateX(3px);
}

/* Need Support card attention */
.discord-community-card {
  animation: supportShake 6s ease-in-out infinite;
}

.discord-community-card:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
}

@keyframes supportShake {
  0%, 88%, 100% {
    transform: translateX(0);
  }

  90% {
    transform: translateX(-5px);
  }

  92% {
    transform: translateX(5px);
  }

  94% {
    transform: translateX(-4px);
  }

  96% {
    transform: translateX(4px);
  }

  98% {
    transform: translateX(0);
  }
}


/* Mobile */

@media (max-width: 780px) {
  .discord-community-section {
    padding: 50px 5vw;
    margin-top: 25px;
    margin-bottom: 35px;
  }

  .discord-community-card {
    width: 100%;
    padding: 17px;
  }

  .discord-community-icon {
    width: 48px;
    height: 48px;
  }

  .discord-community-copy strong {
    font-size: 16px;
  }

  .discord-community-copy span {
    font-size: 12px;
  }
}

.chart-legend {
  color: var(--muted);
  font-size: 11px;
}

.chart-legend .traffic-legend-label {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.chart-legend .traffic-legend-label > span:first-child {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
}

.chart-legend #trafficTotal {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.chart-legend .traffic-consumed-text {
  width: auto;
  height: auto;
  display: inline;
  border-radius: 0;
  background: none;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}