/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-glow: rgba(34, 197, 94, .25);
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #1a1a1a;
  --border: #262626;
  --text: #f4f4f5;
  --muted: #71717a;
  --red: #ef4444;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.5px;
}

.nav-logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--green);
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--green-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: .5rem .75rem;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
}

.btn-lg {
  padding: .85rem 2rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
}

.form-group input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  padding: .7rem 1rem;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}

.form-group input:focus {
  border-color: var(--green);
}

.form-group input::placeholder {
  color: var(--muted);
}

.form-error {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: var(--radius);
  color: #fca5a5;
  font-size: .875rem;
  padding: .65rem 1rem;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ── Password Requirements ────────────────────────────────────────────────── */
.password-requirements {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.requirement-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.requirement {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.25rem 0;
  color: var(--muted);
  transition: color 0.2s;
}

.requirement.passed {
  color: var(--green);
}

.requirement.failed {
  color: var(--red);
}

.req-icon {
  font-weight: 700;
  min-width: 16px;
  display: inline-block;
}

.sub-requirements {
  margin-left: 1.5rem;
  margin-top: 0.25rem;
}

.sub-requirement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0;
  color: var(--muted);
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.sub-requirement.passed {
  color: var(--green);
}

.sub-requirement.failed {
  color: var(--red);
}

.message {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-top: 1rem;
  display: none;
}

.message.success {
  display: block;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #86efac;
}

.message.error {
  display: block;
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #fca5a5;
}

.form-links {
  text-align: right;
  margin-top: -.5rem;
  margin-bottom: 1rem;
}

.form-links a {
  font-size: .875rem;
  color: var(--green);
}

.form-links a:hover {
  text-decoration: underline;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

/* ── Page: Landing ────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--green-glow);
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .9rem;
  margin-bottom: 1.5rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--green);
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features */
.features {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color .2s;
}

.feature-card:hover {
  border-color: var(--green);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.feature-card p {
  color: var(--muted);
  font-size: .9rem;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.section-header p {
  color: var(--muted);
  margin-top: .5rem;
}

/* Pricing */
.pricing {
  padding: 4rem 2rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.price-card {
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 2rem;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.03em;
  line-height: 1;
}

.price-period {
  color: var(--muted);
  font-size: 1rem;
  margin-top: .25rem;
  margin-bottom: 1.75rem;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
}

.price-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.price-note {
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--green);
}

/* ── Page: Auth (Login / Signup) ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
}

.auth-logo .logo-text span {
  color: var(--text);
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.auth-subtitle {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--muted);
}

/* ── Page: Subscribe ─────────────────────────────────────────────────────── */
.subscribe-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.subscribe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
  text-align: center;
}

.subscribe-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.subscribe-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.subscribe-card .sub-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  margin: 1rem 0 .25rem;
}

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

.subscribe-why {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}

.subscribe-why p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
}

.subscribe-why strong {
  color: var(--text);
}

.subscribe-list {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.subscribe-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .925rem;
}

.subscribe-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

/* ── Page: Dashboard ─────────────────────────────────────────────────────── */
.dashboard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.dashboard-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 65px);
  padding: 2rem;
  gap: 2rem;
}

.status-ring {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-ring svg {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.ring-bg {
  stroke: var(--border);
}

.ring-progress {
  stroke: var(--green);
  stroke-linecap: round;
  transition: stroke-dashoffset .5s linear;
}

.status-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  gap: .2rem;
}

.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: background .3s;
  margin-bottom: .25rem;
}

.status-dot.active {
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 8px var(--green-glow);
  }

  50% {
    box-shadow: 0 0 20px rgba(34, 197, 94, .5);
  }
}

.status-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}

.status-label.active {
  color: var(--green);
}

.time-remaining {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.duration-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: .5rem;
}

.duration-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-bottom: .5rem;
}

.preset-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem .25rem;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}

.preset-btn:hover,
.preset-btn.selected {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

.custom-duration {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.custom-duration input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .95rem;
  padding: .5rem .75rem;
  outline: none;
  width: 80px;
  transition: border-color .15s;
}

.custom-duration input:focus {
  border-color: var(--green);
}

.custom-duration span {
  color: var(--muted);
  font-size: .875rem;
}

.main-btn {
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  width: 100%;
}

.start-btn {
  background: var(--green);
  color: #000;
}

.start-btn:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 20px var(--green-glow);
  transform: translateY(-1px);
}

.stop-btn {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #fca5a5;
}

.stop-btn:hover {
  background: rgba(239, 68, 68, .22);
}

.info-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .825rem;
  color: var(--muted);
  max-width: 420px;
  width: 100%;
}

.info-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Moving dot overlay */
#mover-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  z-index: 9999;
  box-shadow: 0 0 10px var(--green-glow);
  transform: translate(-50%, -50%);
}

#mover-dot.visible {
  opacity: .7;
}

/* ── Page: Success ────────────────────────────────────────────────────────── */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.success-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.success-card p {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ── Page: Legal ──────────────────────────────────────────────────────────── */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: var(--text);
}

.legal-date {
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 3rem;
}

.legal-page section {
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.legal-page h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 .75rem;
  color: var(--text);
}

.legal-page p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-page ul,
.legal-page ol {
  color: var(--muted);
  line-height: 1.7;
  margin: 1rem 0 1rem 1.5rem;
}

.legal-page li {
  margin-bottom: .5rem;
}

.legal-page a {
  color: var(--green);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  transition: color .15s;
}

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

.footer-copy {
  color: var(--muted);
  font-size: .75rem;
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav {
    padding: 1rem;
  }

  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .features,
  .pricing {
    padding: 2.5rem 1.25rem;
  }

  .auth-card,
  .subscribe-card {
    padding: 1.75rem;
  }

  .controls {
    padding: 1.5rem;
  }
}