:root {
  /* Core palette */
  --bg: #0b0616;
  --bg-soft: #141022;
  --bg-2: #120a24;

  /* Surfaces */
  --bg-card: rgba(255, 255, 255, 0.05);
  --card: rgba(20, 13, 37, 0.92);
  --card-2: rgba(29, 18, 52, 0.95);

  /* Borders / lines */
  --stroke: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(167, 139, 250, 0.2);

  /* Typography */
  --text: #f8f5ff;
  --muted: #c0b8d8;

  /* Brand */
  --primary: #8b5cf6;
  --primary-2: #c084fc;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;

  /* Status */
  --success: #4ade80;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;

  /* Effects */
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

  /* Radius */
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius: 24px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 26%),
    linear-gradient(180deg, #11071f 0%, var(--bg) 42%, #070210 100%);
  color: var(--text);
}

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

img {
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 13px;
  color: #cdc2ed;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0d0818;
  color: #fff;
  outline: none;
  transition: 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
}

/* Utility */
.text-light-emphasis {
  color: var(--muted) !important;
}

.text-muted {
  color: #7f7498 !important;
}

.text-muted-light {
  color: #cfc7e1 !important;
}

.text-secondary-custom {
  color: #b49cff;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 6px;
  border-radius: 8px;
}

.kbd {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 12px;
  color: #e9defe;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 44px;
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stack {
  display: grid;
  gap: 18px;
}

.section-space {
  padding: 90px 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.hero-section h1,
.benefit-item h3,
.plan-head h3,
.feature-card h3,
.section-title h2,
.section-title h3,
.page-header h1,
.sidebar-brand h2,
.login-left h1,
.login-right h2 {
  letter-spacing: -0.03em;
}

/* Header / top */
.page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
}

.page-header p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 700px;
}

.topbar-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  min-width: 220px;
}

.topbar-note strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* Navbar */
.app-navbar {
  background: rgba(10, 6, 20, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand,
.nav-link {
  color: var(--text) !important;
}

.nav-link {
  opacity: 0.88;
}

.nav-link:hover {
  opacity: 1;
}

/* Hero */
.hero-section {
  padding: 110px 0 80px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-badges span {
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-badges i {
  color: var(--success);
  margin-right: 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e9defe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
}

/* Buttons */
.btn,
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.05);
}

.btn.primary,
.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  border: none;
  color: #fff;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.35);
}

.btn.primary:hover,
.btn-gradient:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn.link {
  padding: 8px 0;
  min-height: auto;
  background: none;
  border: none;
  color: #cdbbff;
}

.btn-outline-primary {
  border-color: rgba(139, 92, 246, 0.7);
  color: #dbc8ff;
}

.btn-outline-primary:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.95);
  color: #fff;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Cards / panels */
.card-glass,
.feature-card,
.plan-card,
.cta-box,
.comparison-box,
.hero-card,
.card,
.sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card,
.hero-card,
.sidebar {
  background: linear-gradient(180deg, rgba(27, 17, 49, 0.96), rgba(17, 10, 31, 0.96));
}

.card {
  padding: 24px;
}

.card.compact {
  padding: 18px;
}

.card-glass,
.feature-card,
.plan-card,
.cta-box,
.comparison-box {
  background: var(--bg-card);
}

/* Preview / app blocks */
.app-preview {
  position: relative;
  overflow: hidden;
}

.app-preview::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.34), transparent 70%);
  pointer-events: none;
}

.status-pill {
  background: rgba(74, 222, 128, 0.12);
  color: #9ff1bc;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  font-size: 0.85rem;
}

.search-demo {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px 16px;
  color: #bfb5d8;
  display: flex;
  gap: 10px;
  align-items: center;
}

.folder-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.folder-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.05);
  color: #ddd4ee;
}

.folder-row span:last-child {
  color: #9a90b4;
  font-size: 0.92rem;
}

.folder-row i {
  color: #c084fc;
  margin-right: 8px;
}

.mini-stat,
.stat-card {
  border: 1px solid var(--line);
}

.mini-stat {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}

.mini-stat strong {
  display: block;
  font-size: 1.2rem;
  color: white;
}

.mini-stat span {
  color: #ab9fc6;
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(29, 18, 52, 0.92), rgba(16, 10, 29, 0.92));
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-foot {
  margin-top: 8px;
  color: #d7ccf3;
  font-size: 13px;
}

/* Feature cards */
.feature-card {
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.38);
}

.icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.14));
  color: #f2e9ff;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card p {
  color: #b8aece;
  margin-bottom: 0;
}

/* Plans */
.plan-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.featured {
  border-color: rgba(192, 132, 252, 0.4);
  transform: scale(1.02);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(255,255,255,0.05));
}

.plan-card.platinum-card {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(192, 132, 252, 0.08));
}

.popular-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  border-radius: 999px;
}

.plan-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #cdbdff;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-list li {
  display: flex;
  gap: 10px;
  color: #ddd5ee;
}

.plan-list i {
  color: var(--success);
}

/* Benefits / comparison */
.benefit-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.benefit-item p {
  color: #b6abc9;
  margin-bottom: 0;
}

.comparison-box {
  color: #e2daf0;
}

.comparison-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row span {
  color: #b8adcf;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 20px;
  padding: 20px;
}

.sidebar-brand {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.sidebar-brand h2 {
  margin: 0;
  font-size: 22px;
}

.sidebar-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  color: #ede6ff;
  border: 1px solid transparent;
  font-weight: 600;
}

.nav a span {
  color: #ab9fd0;
  font-weight: 500;
  font-size: 13px;
}

.nav a:hover,
.nav a.active {
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(167,139,250,.08));
  border-color: rgba(167,139,250,.28);
}

.sidebar-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Tables / sections */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
}

/* Forms */
.field {
  display: grid;
  gap: 8px;
}

.field small {
  color: var(--muted);
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(139,92,246,.3);
  margin-bottom: 16px;
}

.error {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa;
}

.badge.active::before,
.badge.basic::before {
  background: var(--green);
}

.badge.business::before {
  background: var(--yellow);
}

.badge.platinum::before {
  background: var(--accent-2);
}

.badge.disabled::before,
.badge.inactive::before {
  background: var(--red);
}

.empty-state {
  padding: 26px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
}

/* CTA / footer */
.section-cta {
  padding-top: 20px;
  padding-bottom: 100px;
}

.cta-box {
  padding: 50px 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.08));
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  color: #a99ebf;
}

.footer-links a {
  color: #c6bbdc;
}

.footer-links a:hover {
  color: white;
}

/* Login */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  max-width: 1080px;
  width: 100%;
  overflow: hidden;
}

.login-left {
  padding: 38px;
}

.login-left h1 {
  font-size: 50px;
  line-height: 0.98;
  margin: 14px 0;
}

.login-left p {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.feature-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}

.login-right {
  padding: 38px;
  background: linear-gradient(180deg, rgba(17,10,31,.88), rgba(10,6,19,.97));
  border-left: 1px solid var(--line);
}

.login-right h2 {
  margin-top: 0;
  font-size: 28px;
}

.login-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 90px;
  }

  .plan-card.featured {
    transform: none;
  }
}

@media (max-width: 980px) {
  .layout,
  .login-card,
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .login-right {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 72px 0;
  }

  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .folder-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-box {
    padding: 40px 24px;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 22px 14px 36px;
  }

  .page-header {
    flex-direction: column;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .login-left,
  .login-right,
  .card {
    padding: 22px;
  }

  .login-left h1 {
    font-size: 38px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.actions-inline{display:flex;gap:8px;flex-wrap:wrap}
.btn.danger{background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.35);color:#fecaca}
.btn.danger:hover{background:rgba(239,68,68,.18)}
.plan-price{font-size:34px;font-weight:800;line-height:1;margin:12px 0 4px}
.plan-price small{font-size:14px;color:var(--muted);font-weight:600}
.plan-meta{color:var(--muted);font-size:14px;margin-bottom:16px}
.buy-form{display:grid;gap:10px;margin-top:auto}
.buy-form input[type=email]{background:rgba(0,0,0,.18)}
.inline-portal{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.notice-box{padding:16px 18px;border-radius:18px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--muted)}
