:root {
  --bg: #060a12;
  --bg-elevated: #0d1424;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f4fc;
  --text-muted: #8b9bb8;
  --accent: #00d4aa;
  --accent-2: #3b82f6;
  --accent-glow: rgba(0, 212, 170, 0.35);
  --danger: #ff6b6b;
  --warning: #fbbf24;
  --success: #34d399;
  --radius: 16px;
  --font: "Be Vietnam Pro", system-ui, sans-serif;
  --font-display: "Syne", "Be Vietnam Pro", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-cursor {
  cursor: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Custom cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin: -4px 0 0 -4px;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(0, 212, 170, 0.6);
  margin: -20px 0 0 -20px;
}

/* Background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0, 212, 170, 0.12), transparent),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #041018;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: var(--surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: #041018;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn[data-cursor="hover"] {
  position: relative;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title .gradient {
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pipeline visual */
.pipeline-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.pipeline-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.4), transparent 50%, rgba(59, 130, 246, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.pipeline-step:last-child {
  border-bottom: none;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-text strong {
  display: block;
  font-size: 0.95rem;
}

.step-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pipeline-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.15rem 0;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.pricing-amount small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}

.pricing-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Dashboard */
.dashboard {
  display: none;
  padding: 6rem 0 3rem;
  min-height: 100vh;
}

.dashboard.active {
  display: block;
}

.landing.hidden {
  display: none;
}

.dash-header {
  margin-bottom: 2rem;
}

.dash-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.35rem;
}

.dash-header p {
  color: var(--text-muted);
  margin: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.dash-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.dash-card.full {
  grid-column: 1 / -1;
}

.dash-card h2 {
  font-size: 1rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credit-display {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.credit-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-connected {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
}

.status-disconnected {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 320px;
  overflow-y: auto;
}

.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-radius: 10px;
  font-size: 0.88rem;
}

.job-status {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.job-status.running { color: var(--accent-2); }
.job-status.completed { color: var(--success); }
.job-status.failed { color: var(--danger); }
.job-status.pending { color: var(--warning); }

.coming-soon {
  opacity: 0.6;
  position: relative;
}

.coming-soon::after {
  content: "Sắp ra mắt";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  background: var(--warning);
  color: #041018;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  width: min(420px, 100%);
  position: relative;
}

.modal h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.modal-tab {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.modal-tab.active {
  background: var(--accent);
  color: #041018;
  border-color: var(--accent);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 360px;
  font-size: 0.9rem;
}

.toast.show {
  transform: translateY(0);
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--text-muted);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

/* Guide A-Z */
.guide-section {
  background: linear-gradient(180deg, transparent, rgba(0, 212, 170, 0.03));
}

.notice-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.notice-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--warning);
}

.notice-box p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.notice-box-sm {
  margin-bottom: 1rem;
  padding: 1rem;
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.phases-grid-compact .phase-card {
  padding: 1.25rem;
}

.phase-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.phase-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018;
  font-family: var(--font-display);
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.phase-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.phase-time {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0 0 1rem;
}

.phase-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.phase-list li {
  margin-bottom: 0.5rem;
}

.phase-list a {
  color: var(--accent);
}

.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.flow-item {
  padding: 0.4rem 0.85rem;
  background: var(--bg-elevated);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.flow-arrow {
  color: var(--accent);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Checklist */
.checklist-card {
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.checklist-card.is-collapsed {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.checklist-collapsed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.checklist-collapsed-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--success);
}

.checklist-collapsed-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.checklist-expandable {
  overflow: hidden;
}

.checklist-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checklist-collapse-btn {
  font-size: 0.78rem !important;
  padding: 0.35rem 0.75rem !important;
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.checklist-header h2 {
  margin: 0;
}

.checklist-progress-label {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.checklist-progress {
  height: 6px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.checklist-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.checklist-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checklist-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, opacity 0.2s, background 0.2s;
  cursor: pointer;
}

.checklist-step:hover {
  background: var(--surface-hover);
}

.checklist-step:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checklist-step.done {
  border-color: rgba(52, 211, 153, 0.35);
  opacity: 0.85;
}

.checklist-step.optional {
  opacity: 0.75;
}

.checklist-check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.checklist-step.done .checklist-check {
  border-color: var(--success);
  background: rgba(52, 211, 153, 0.15);
}

.checklist-body {
  flex: 1;
  min-width: 0;
}

.checklist-body strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.checklist-body span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.checklist-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.checklist-optional {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Post-run */
.post-run-card {
  margin-bottom: 1.25rem;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.05);
}

.post-run-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-run-steps li {
  margin-bottom: 0.5rem;
}

/* Guide details in dashboard */
.guide-details {
  margin-bottom: 1.25rem;
}

.guide-summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
}

.guide-summary::-webkit-details-marker {
  display: none;
}

.guide-details-body {
  margin-top: 1rem;
}

.modal-wide {
  width: min(560px, 100%);
}

.help-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.help-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.help-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #041018;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.help-step strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

.help-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.help-step code {
  background: var(--surface);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .phases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .features-grid,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.btn) {
    display: none;
  }
}

/* Topup */
.topup-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.topup-preset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.topup-preset strong {
  font-size: 0.9rem;
}

.topup-preset span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topup-preset.active {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.08);
}

.topup-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.topup-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.topup-qr-img {
  max-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.job-item.clickable {
  cursor: pointer;
  transition: background 0.2s;
}

.job-item.clickable:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Welcome bonus */
.welcome-bonus-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.12), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(0, 212, 170, 0.25);
}

.welcome-bonus-text strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.welcome-bonus-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.welcome-claimed-badge {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}

/* Profit calculator */
.profit-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.profit-calc-result {
  margin-top: 1rem;
}

.profit-result {
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profit-result.profit-good {
  border-color: rgba(0, 212, 170, 0.35);
}

.profit-result.profit-bad {
  border-color: rgba(255, 107, 107, 0.35);
}

.profit-result-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.profit-result-main strong {
  font-size: 1.35rem;
  color: var(--accent);
}

.profit-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.profit-breakdown div {
  display: flex;
  justify-content: space-between;
}

.profit-summary {
  margin: 0;
  font-size: 0.85rem;
}

/* Demo modal */
.demo-modal-body {
  max-height: min(65vh, 520px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.demo-notice {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 1rem;
}

.demo-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.demo-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.demo-muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.demo-list {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.demo-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
}

.demo-image {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  margin: 0.5rem 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.demo-pricing-grid div {
  background: var(--surface);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
}

.demo-pricing-grid span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.demo-pricing-grid strong {
  font-size: 1rem;
}

.demo-profit {
  color: var(--success);
}

.demo-loading,
.demo-error {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.demo-error {
  color: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}
