/* ============================================================
   Tokliat — Global Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #FE2C55;
  --cyan:   #25F4EE;
  --dark:   #0a0a0a;
  --card:   #111111;
  --border: #1e1e1e;
  --muted:  #888;
  --text:   #f0f0f0;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 60px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--red);
  border-radius: 6px;
  font-size: 12px;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn-nav {
  background: var(--red) !important;
  color: white !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}

.btn-nav:hover { opacity: 0.85; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(254,44,85,0.1);
  border: 1px solid rgba(254,44,85,0.3);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--red) 0%, #ff6b8a 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-large { padding: 16px 36px; font-size: 16px; }

.btn-ghost {
  display: inline-block;
  color: var(--muted);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.hero-stats .stat span {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hero-stats .stat p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Section Shared ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: var(--muted);
}

/* ── How It Works ────────────────────────────────────────── */
.how-it-works {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 22px;
  color: var(--border);
  padding-top: 40px;
  flex-shrink: 0;
}

/* ── Before You Start ────────────────────────────────────── */
.before-start {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.bys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.bys-card {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.bys-card-top {
  padding: 24px 24px 20px;
  border-bottom: 1px solid #222;
}

.bys-card-body {
  padding: 20px 24px 24px;
}

.bys-warning {
  border-color: rgba(251,191,36,0.3);
}

.bys-warning .bys-card-top {
  background: rgba(251,191,36,0.06);
  border-bottom-color: rgba(251,191,36,0.15);
}

.bys-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.bys-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #1e1e1e;
  border-radius: 10px;
  font-size: 22px;
  flex-shrink: 0;
}

.bys-warning .bys-icon {
  background: rgba(251,191,36,0.1);
}

.bys-card-top h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.bys-card-body p {
  font-size: 14px;
  color: #999;
  line-height: 1.75;
}

.bys-card-body strong {
  color: #e0e0e0;
  font-weight: 600;
}

.bys-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.bys-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(37,244,238,0.06);
  border: 1px solid rgba(37,244,238,0.2);
  padding: 5px 14px;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.bys-links a:hover {
  background: rgba(37,244,238,0.12);
  border-color: rgba(37,244,238,0.4);
}

.bys-warn-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  margin-top: 16px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .bys-grid { grid-template-columns: 1fr; }
}

/* ── Features ────────────────────────────────────────────── */
.features {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, transparent 0%, rgba(254,44,85,0.03) 50%, transparent 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(254,44,85,0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 26px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color 0.2s;
}

.plan-card:hover { border-color: #333; }

.plan-popular {
  border-color: var(--red) !important;
  background: linear-gradient(180deg, rgba(254,44,85,0.06) 0%, var(--card) 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.plan-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.plan-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.price-period {
  font-size: 14px;
  color: var(--muted);
}

.plan-features {
  list-style: none;
  margin-bottom: 24px;
}

.plan-features li {
  font-size: 13px;
  color: #bbb;
  padding: 5px 0;
  display: flex;
  gap: 8px;
}

.plan-features li::before { content: none; }

.btn-plan {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

.btn-plan:hover { border-color: #555; color: var(--text); }

.btn-plan-primary {
  background: var(--red);
  color: white !important;
  border-color: var(--red) !important;
}

.btn-plan-primary:hover { opacity: 0.88; }

.plan-skeleton {
  height: 280px;
  background: linear-gradient(90deg, var(--card) 25%, #161616 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.load-error {
  color: var(--muted);
  grid-column: 1/-1;
  text-align: center;
  padding: 40px;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(254,44,85,0.08) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0 0;
}

.cta-section h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 40px;
  background: #080808;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
}

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

.footer-copy {
  font-size: 12px;
  color: #444;
  width: 100%;
  text-align: center;
}

/* ============================================================
   Auth Pages
   ============================================================ */
.auth-container {
  max-width: 420px;
  margin: 80px auto;
  padding: 0 20px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 28px;
  justify-content: center;
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: -0.5px;
}

.auth-sub {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 7px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 11px 14px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

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

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.auth-link {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

.auth-link a { color: var(--red); font-weight: 600; }

.form-error {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

.form-success {
  color: #4ade80;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

/* ============================================================
   Dashboard
   ============================================================ */
.dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0d0d0d;
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
  padding: 0 8px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}

.sidebar nav a:hover, .sidebar nav a.active {
  background: rgba(254,44,85,0.08);
  color: var(--red);
}

.main { padding: 36px 40px; }
.main h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 24px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.stat-card .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stat-card .lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Table */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #ccc;
}

.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: rgba(255,255,255,0.02); }

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-green  { background: rgba(74,222,128,0.1); color: #4ade80; }
.badge-red    { background: rgba(248,113,113,0.1); color: #f87171; }
.badge-yellow { background: rgba(251,191,36,0.1);  color: #fbbf24; }
.badge-muted  { background: rgba(136,136,136,0.1); color: var(--muted); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps        { flex-direction: column; }
  .step-arrow   { transform: rotate(90deg); padding: 12px 0; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .plan-grid    { grid-template-columns: 1fr; }
  .dashboard    { grid-template-columns: 1fr; }
  .sidebar      { height: auto; position: static; }
  .hero h1      { letter-spacing: -1px; }
  .footer       { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}
