:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --accent: #06b6d4;
  --dark: #0f172a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all .18s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,70,229,.35); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 800; font-size: 20px; display:flex; align-items:center; gap:8px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--gray-700); font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* HERO */
.hero {
  padding: 100px 0 80px;
  background: radial-gradient(circle at 20% 20%, #eef2ff 0%, #ffffff 55%);
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary);
  padding: 7px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 48px; }
.hero p.lead { font-size: 18px; color: var(--gray-500); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 30px; }
.hero-note { font-size: 13px; color: var(--gray-500); }

.hero-visual {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 24px; border: 1px solid var(--gray-200);
}
.mock-header { display:flex; justify-content: space-between; align-items:center; margin-bottom: 18px; }
.mock-dot { width:10px; height:10px; border-radius:50%; display:inline-block; margin-right:5px;}
.slot { display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-radius:10px; background: var(--gray-100); margin-bottom:8px; font-size: 14px;}
.slot.active { background: var(--primary-light); border:1px solid var(--primary); font-weight:600; color: var(--primary-dark); }

/* SECTIONS */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.section-head h2 { font-size: 34px; margin-top: 10px; }
.section-head p { color: var(--gray-500); font-size: 16px; }
.bg-light { background: var(--gray-100); }

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

.feature-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 30px; transition: all .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px;
}
.feature-card h3 { font-size: 18px; }
.feature-card p { color: var(--gray-500); font-size: 14.5px; margin: 0; }

/* PRICING */
.pricing-card {
  background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  padding: 34px; text-align: center; position: relative;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.pricing-card .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 100px;
}
.price { font-size: 40px; font-weight: 800; margin: 14px 0 4px; }
.price span { font-size: 15px; color: var(--gray-500); font-weight: 500; }
.pricing-card ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.pricing-card li { padding: 9px 0; font-size: 14.5px; color: var(--gray-700); border-bottom: 1px dashed var(--gray-200); }
.pricing-card li:last-child { border: none; }

/* AUTH FORMS */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 20%, #eef2ff 0%, #ffffff 55%); padding: 40px 20px;
}
.auth-card {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 42px; width: 100%; max-width: 420px; border: 1px solid var(--gray-200);
}
.auth-card h2 { text-align: center; font-size: 24px; }
.auth-card .sub { text-align: center; color: var(--gray-500); font-size: 14px; margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: 9px;
  font-size: 14.5px; font-family: inherit; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray-500); }
.auth-footer a { color: var(--primary); font-weight: 600; }

.alert { padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* DASHBOARD */
.app-shell { display: flex; min-height: 100vh; background: var(--gray-100); }
.sidebar {
  width: 250px; background: var(--dark); color: #fff; flex-shrink: 0;
  padding: 24px 0; display: flex; flex-direction: column;
}
.sidebar .logo { padding: 0 24px 24px; color: #fff; }
.sidebar .logo span { color: var(--accent); }
.side-links { flex: 1; }
.side-links a {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  color: #cbd5e1; font-size: 14.5px; font-weight: 500; border-left: 3px solid transparent;
}
.side-links a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-links a.active { background: rgba(79,70,229,.15); color: #fff; border-left-color: var(--accent); }
.side-bottom { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #94a3b8; }

.main-content { flex: 1; padding: 32px 40px; max-width: 100%; overflow-x: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.topbar h1 { font-size: 24px; margin: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--gray-200); }
.stat-card .label { font-size: 13px; color: var(--gray-500); font-weight: 600; margin-bottom: 6px; }
.stat-card .value { font-size: 28px; font-weight: 800; }

.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 26px; margin-bottom: 24px; }
.card h3 { font-size: 17px; margin-bottom: 18px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
table th { text-align: left; padding: 12px 10px; color: var(--gray-500); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--gray-200); }
table td { padding: 14px 10px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
table tr:last-child td { border-bottom: none; }

.badge-status { padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; display: inline-block; }
.badge-active, .badge-confirmed, .badge-trial { background: #dcfce7; color: #166534; }
.badge-expired, .badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #fef3c7; color: #92400e; }

.footer { background: var(--dark); color: #94a3b8; padding: 50px 0 24px; margin-top: 40px;}
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer a { color: #cbd5e1; }
.footer .bottom { text-align: center; font-size: 13px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .stats-grid, .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; }
  .main-content { padding: 20px; }
}
