:root {
  --primary: #7f56d9;
  --primary-light: #9c6cff;
  --primary-dark: #5b2ec6;
  --primary-50: #f8f6ff;
  --primary-100: #ece7fb;
  --primary-200: #d6c8fb;
  --secondary: #10B981;
  --secondary-light: #34D399;
  --danger: #EF4444;
  --danger-light: #FCA5A5;
  --warning: #F59E0B;
  --warning-light: #FCD34D;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1f1741;
  --gray-900: #111827;
  --bg: #f8f6ff;
  --panel: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Tahoma", sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;
  --sidebar-width: 260px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: radial-gradient(900px 460px at -8% -16%, #ede2ff 0%, transparent 55%), radial-gradient(820px 480px at 108% 8%, #ebddff 0%, transparent 58%), var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--gray-900);
  line-height: 1.3;
}

p {
  margin: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 10px 24px rgba(127,86,217,0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(127,86,217,0.35);
}

.btn-secondary {
  color: var(--primary-dark);
  background: #f2ecff;
  border: 1px solid #d6c8fb;
}

.btn-secondary:hover {
  background: var(--primary-100);
  color: var(--primary-dark);
}

.btn-success {
  color: #fff;
  background: var(--secondary);
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.btn-danger:hover {
  background: #DC2626;
  color: #fff;
}

.btn-outline {
  color: #594f84;
  background: var(--panel);
  border: 1px solid rgba(127,86,217,0.18);
}

.btn-outline:hover {
  background: #f2ecff;
  border-color: rgba(127,86,217,0.3);
  color: var(--primary-dark);
}

.btn-ghost {
  color: var(--gray-600);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius);
}

/* ===== Cards ===== */
.card {
  background: var(--panel);
  border: 1px solid rgba(127,86,217,0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 14px 28px rgba(92,69,154,0.09);
}

.card-stat {
  text-align: center;
  padding: 20px;
}

.card-stat .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.card-stat .stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.card-stat .stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
}

.card-stat .stat-change.up {
  color: var(--secondary);
  background: #ECFDF5;
}

.card-stat .stat-change.down {
  color: var(--danger);
  background: #FEF2F2;
}

/* ===== Form Elements ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(127,86,217,0.18);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--panel);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(127,86,217,0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-hint {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  color: #065F46;
  background: #D1FAE5;
}

.badge-warning {
  color: #92400E;
  background: #FEF3C7;
}

.badge-danger {
  color: #991B1B;
  background: #FEE2E2;
}

.badge-info {
  color: #5b2ec6;
  background: #ece7fb;
}

.badge-gray {
  color: var(--gray-600);
  background: var(--gray-100);
}

/* ===== Progress ===== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.progress-bar .fill-primary {
  background: var(--primary);
}

.progress-bar .fill-success {
  background: var(--secondary);
}

.progress-bar .fill-warning {
  background: var(--warning);
}

.progress-bar .fill-danger {
  background: var(--danger);
}

/* ===== Table ===== */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gray-200);
}

.table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.table tr:hover td {
  background: var(--gray-50);
}

/* ===== Layout - Sidebar App ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: #1b1230;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 30;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand .brand-chip {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.sidebar-brand .brand-title {
  font-size: 20px;
  font-weight: 700;
}

.sidebar-brand .brand-sub {
  font-size: 11px;
  color: var(--gray-400);
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
}

.sidebar-nav .nav-section {
  margin-bottom: 24px;
}

.sidebar-nav .nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 12px;
  margin-bottom: 8px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.sidebar-nav .nav-link.active {
  background: var(--primary);
  color: #fff;
}

.sidebar-nav .nav-link .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
}

.sidebar-user:hover {
  background: rgba(255,255,255,0.08);
}

.sidebar-user .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.sidebar-user .user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user .user-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .user-email {
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.main-header {
  height: var(--header-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(127,86,217,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.main-header .page-title {
  font-size: 20px;
  font-weight: 700;
}

.main-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-body {
  padding: 32px;
  min-height: calc(100vh - var(--header-height));
}

/* ===== Grid Layouts ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }

.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }

/* ===== Landing Page Specifics ===== */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(248,246,255,0.92);
  border-bottom: 1px solid rgba(127,86,217,0.14);
}

.landing-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.landing-header .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-header .nav-links a {
  color: #4a4370;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s ease;
}

.landing-header .nav-links a:hover {
  color: var(--primary-dark);
}

.landing-header .header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-header .header-brand .brand-chip {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.landing-header .header-brand .brand-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
}

.hero-section {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(131,90,218,0.08) 0%, var(--bg) 100%);
}

.hero-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-section .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-100);
  margin-bottom: 24px;
}

.hero-section h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--gray-900), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section .hero-desc {
  font-size: 18px;
  color: #594f84;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-section .hero-checks {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-section .hero-checks .check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-600);
}

.hero-section .hero-checks .check-item .check-icon {
  color: var(--secondary);
  font-weight: 700;
}

.section {
  padding: 80px 24px;
}

.section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: #645a8f;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background: var(--panel);
  border: 1px solid rgba(127,86,217,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.pricing-card:hover {
  box-shadow: 0 18px 34px rgba(108,79,180,0.16);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: rgba(127,86,217,0.35);
  box-shadow: 0 18px 34px rgba(108,79,180,0.16), 0 0 0 1px rgba(127,86,217,0.2);
}

.pricing-card .popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.pricing-card .plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card .plan-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 12px 0 4px;
}

.pricing-card .plan-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-400);
}

.pricing-card .plan-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
  min-height: 40px;
}

.pricing-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.pricing-card .plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--gray-50);
}

.pricing-card .plan-features li:last-child {
  border-bottom: none;
}

.pricing-card .plan-features li .check {
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Marketing Landing Helpers ===== */
.section.bg-soft {
  background: linear-gradient(180deg, rgba(247,242,255,0.95), rgba(255,255,255,0.95));
  border-top: 1px solid rgba(127,86,217,0.14);
  border-bottom: 1px solid rgba(127,86,217,0.14);
}

.hero-visual {
  margin-top: 56px;
  background: var(--panel);
  border: 1px solid rgba(127,86,217,0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(108,79,180,0.18);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.hero-visual .mock-window {
  background: linear-gradient(180deg, #ffffff, #f6f0ff);
  border-radius: var(--radius-md);
  border: 1px solid rgba(127,86,217,0.18);
  overflow: hidden;
}

.hero-visual .mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(127,86,217,0.06);
  border-bottom: 1px solid rgba(127,86,217,0.12);
}

.hero-visual .mock-titlebar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6c8fb;
}

.hero-visual .mock-titlebar .dot.red { background: #FCA5A5; }
.hero-visual .mock-titlebar .dot.yellow { background: #FCD34D; }
.hero-visual .mock-titlebar .dot.green { background: #34D399; }

.hero-visual .mock-titlebar .mock-title {
  margin-left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}

.hero-visual .mock-body {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 0;
  min-height: 320px;
}

.hero-visual .mock-side,
.hero-visual .mock-aside {
  padding: 16px;
  border-right: 1px solid rgba(127,86,217,0.08);
  background: rgba(248,246,255,0.5);
  font-size: 13px;
  color: var(--gray-600);
}

.hero-visual .mock-aside {
  border-right: none;
  border-left: 1px solid rgba(127,86,217,0.08);
}

.hero-visual .mock-side .mock-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(127,86,217,0.08);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.hero-visual .mock-side .mock-file .file-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.hero-visual .mock-side .mock-meta {
  margin-top: 18px;
  font-size: 12px;
  color: var(--gray-400);
}

.hero-visual .mock-canvas {
  padding: 28px 24px;
  background: linear-gradient(180deg, #ffffff, #f8f6ff);
  position: relative;
}

.hero-visual .mock-canvas .doc-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.hero-visual .mock-canvas .doc-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(127,86,217,0.16);
  margin-bottom: 10px;
}

.hero-visual .mock-canvas .doc-line.short { width: 56%; }
.hero-visual .mock-canvas .doc-line.long { width: 92%; }
.hero-visual .mock-canvas .doc-line.mid { width: 76%; }

.hero-visual .mock-canvas .presence-row {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: -6px;
}

.hero-visual .mock-canvas .presence {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(16,185,129,0.12);
  color: #065F46;
  font-size: 12px;
  font-weight: 600;
}

.hero-visual .mock-canvas .presence .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
}

.hero-visual .mock-canvas .avatars {
  display: flex;
  align-items: center;
}

.hero-visual .mock-canvas .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
}

.hero-visual .mock-canvas .avatar:first-child { margin-left: 0; }

.hero-visual .mock-canvas .avatar.a1 { background: linear-gradient(135deg, #7f56d9, #9c6cff); }
.hero-visual .mock-canvas .avatar.a2 { background: linear-gradient(135deg, #F59E0B, #FCD34D); }
.hero-visual .mock-canvas .avatar.a3 { background: linear-gradient(135deg, #10B981, #34D399); }
.hero-visual .mock-canvas .avatar.a4 { background: linear-gradient(135deg, #EF4444, #FCA5A5); }

.hero-visual .mock-aside .activity-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(127,86,217,0.12);
  font-size: 13px;
  color: var(--gray-700);
}

.hero-visual .mock-aside .activity-item:last-child { border-bottom: none; }

.hero-visual .mock-aside .activity-item .activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.hero-visual .mock-aside .activity-item .activity-dot.view { background: var(--primary); }
.hero-visual .mock-aside .activity-item .activity-dot.edit { background: var(--secondary); }
.hero-visual .mock-aside .activity-item .activity-dot.comment { background: var(--warning); }

.hero-visual .mock-aside .activity-item small {
  display: block;
  color: var(--gray-400);
  font-size: 11px;
  margin-top: 2px;
}

.problem-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.problem-pills .pill {
  background: var(--panel);
  border: 1px solid rgba(127,86,217,0.18);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(108,79,180,0.08);
}

.problem-pills .pill .pill-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(127,86,217,0.12);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.problem-bottom {
  margin-top: 32px;
  text-align: center;
}

.problem-bottom p {
  color: var(--gray-600);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 16px;
}

.problem-bottom .problem-quote {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  font-style: italic;
  position: relative;
  display: inline-block;
  padding: 8px 24px;
  border-top: 2px solid rgba(127,86,217,0.4);
  border-bottom: 2px solid rgba(127,86,217,0.4);
}

.solution-panel {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.solution-panel .solution-lead {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.solution-panel .solution-detail {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
}

.solution-panel .solution-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.solution-panel .solution-quote {
  background: linear-gradient(135deg, rgba(127,86,217,0.08), rgba(156,108,255,0.04));
  border: 1px solid rgba(127,86,217,0.18);
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
}

.features-grid-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.features-grid-5 .feature-card {
  background: var(--panel);
  border: 1px solid rgba(127,86,217,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s ease;
}

.features-grid-5 .feature-card:hover {
  box-shadow: 0 18px 34px rgba(108,79,180,0.16);
  transform: translateY(-2px);
}

.features-grid-5 .feature-card .feature-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px rgba(127,86,217,0.22);
}

.features-grid-5 .feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.features-grid-5 .feature-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.features-grid-5 .feature-card.wide {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .features-grid-5 .feature-card.wide {
    grid-column: 2 / span 1;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.steps-grid .step {
  background: var(--panel);
  border: 1px solid rgba(127,86,217,0.18);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

.steps-grid .step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 16px rgba(127,86,217,0.28);
}

.steps-grid .step h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 6px 0;
  color: var(--gray-900);
}

.steps-grid .step p {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
}

.how-quote {
  text-align: center;
  margin-top: 36px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.how-quote span {
  background: linear-gradient(135deg, rgba(127,86,217,0.18), rgba(156,108,255,0.05));
  padding: 12px 24px;
  border-radius: 30px;
  display: inline-block;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.use-case-card {
  background: var(--panel);
  border: 1px solid rgba(127,86,217,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.use-case-card:hover {
  box-shadow: 0 18px 34px rgba(108,79,180,0.16);
  transform: translateY(-2px);
}

.use-case-card .uc-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(127,86,217,0.16), rgba(156,108,255,0.08));
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.use-case-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.use-case-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.trust-panel {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.trust-panel .trust-lead {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.trust-panel .trust-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-panel .trust-point {
  background: var(--panel);
  border: 1px solid rgba(127,86,217,0.18);
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-panel .trust-point .check {
  color: var(--secondary);
  font-weight: 700;
}

.trust-panel .trust-strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  font-style: italic;
  padding: 16px 0;
  border-top: 1px solid rgba(127,86,217,0.2);
  border-bottom: 1px solid rgba(127,86,217,0.2);
}

.pricing-grid-3 .pricing-card .plan-features li {
  color: var(--gray-700);
  font-size: 14px;
}

.pricing-grid-3 .pricing-card .plan-actions {
  margin-top: auto;
}

.cta-section {
  background: linear-gradient(135deg, #5b2ec6 0%, #7f56d9 60%, #9c6cff 100%);
  color: #fff;
  text-align: center;
}

.cta-section .container {
  max-width: 800px;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.86);
  font-size: 17px;
  margin-bottom: 28px;
}

.cta-section .hero-actions .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.cta-section .hero-actions .btn-primary:hover {
  background: rgba(255,255,255,0.94);
  color: var(--primary-dark);
}

.cta-section .hero-actions .btn-secondary {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}

.cta-section .hero-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.footer-simple {
  background: #1b1230;
  color: #dfccff;
  padding: 40px 24px;
}

.footer-simple .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-simple .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.footer-simple .footer-brand .brand-chip {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.footer-simple .footer-tagline {
  font-size: 14px;
  color: #dfccff;
  opacity: 0.85;
}

.footer-simple .footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  flex-wrap: wrap;
}

.footer-simple .footer-links a {
  color: #dfccff;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.footer-simple .footer-links a:hover {
  opacity: 1;
  color: #fff;
}

.footer-simple .footer-meta {
  font-size: 12px;
  color: rgba(223,204,255,0.6);
  width: 100%;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}

@media (max-width: 1023px) {
  .hero-visual .mock-body {
    grid-template-columns: 1fr;
  }
  .hero-visual .mock-side,
  .hero-visual .mock-aside {
    border: none;
    border-bottom: 1px solid rgba(127,86,217,0.08);
  }
  .hero-visual .mock-aside {
    border-bottom: none;
    border-top: 1px solid rgba(127,86,217,0.08);
  }
  .features-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .problem-pills {
    grid-template-columns: 1fr;
  }
  .solution-panel .solution-quotes {
    grid-template-columns: 1fr;
  }
  .pricing-grid-3 {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .features-grid-5,
  .use-case-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 36px;
    padding: 10px;
  }
  .hero-visual .mock-canvas {
    padding: 20px 16px;
  }
}

/* ===== Auth Pages ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(900px 460px at -8% -16%, #ede2ff 0%, transparent 55%), radial-gradient(820px 480px at 108% 8%, #ebddff 0%, transparent 58%), var(--bg);
  padding: 24px;
}

.auth-card {
  background: var(--panel);
  border: 1px solid rgba(127,86,217,0.18);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 36px rgba(88,60,164,0.14);
}

.auth-card .auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-card .auth-brand .brand-chip {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.auth-card .auth-brand span {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

.auth-card h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .auth-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 28px;
}

.auth-card .divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 13px;
}

.auth-card .divider::before,
.auth-card .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-card .social-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(127,86,217,0.18);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray-700);
  margin-bottom: 10px;
  transition: all 0.15s ease;
}

.auth-card .social-btn:hover {
  background: var(--primary-50);
  border-color: rgba(127,86,217,0.25);
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--gray-500);
}

.auth-card .auth-footer a {
  font-weight: 600;
}

/* Steps */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.step-indicator .step-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  transition: background 0.3s ease;
}

.step-indicator .step-dot.active {
  background: var(--primary);
  width: 48px;
}

.step-indicator .step-dot.completed {
  background: var(--secondary);
}

/* Verification Code Input */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
}

.otp-inputs input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  color: var(--gray-900);
  transition: border-color 0.2s ease;
}

.otp-inputs input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(127,86,217,0.1);
}

/* Password Strength */
.password-rules {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.password-rules li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.password-rules li.passed {
  color: var(--secondary);
}

/* ===== Package List ===== */
.package-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid rgba(127,86,217,0.12);
  border-radius: var(--radius-md);
  background: var(--panel);
  margin-bottom: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.package-item:hover {
  border-color: rgba(127,86,217,0.25);
  box-shadow: var(--shadow);
}

.package-item .pkg-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-right: 16px;
  flex-shrink: 0;
}

.package-item .pkg-icon.active {
  background: #ece7fb;
}

.package-item .pkg-icon.expired {
  background: var(--gray-100);
}

.package-item .pkg-icon.revoked {
  background: #FEE2E2;
}

.package-item .pkg-info {
  flex: 1;
  min-width: 0;
}

.package-item .pkg-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.package-item .pkg-meta {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.package-item .pkg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

/* ===== Settings / Subscription ===== */
.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}

.settings-nav .settings-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 2px;
  transition: all 0.15s ease;
}

.settings-nav .settings-link:hover {
  background: var(--gray-50);
  color: var(--gray-800);
}

.settings-nav .settings-link.active {
  background: var(--primary-50);
  color: var(--primary-dark);
  font-weight: 600;
}

.quota-item {
  margin-bottom: 20px;
}

.quota-item .quota-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quota-item .quota-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}

.quota-item .quota-value {
  font-size: 13px;
  color: var(--gray-500);
}

.quota-item .quota-warning {
  font-size: 12px;
  color: var(--warning);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  border-bottom: 1px solid rgba(127,86,217,0.14);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab:hover {
  color: var(--gray-700);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--panel);
}

.timeline-item .timeline-time {
  font-size: 13px;
  color: var(--gray-400);
}

.timeline-item .timeline-content {
  font-size: 14px;
  color: var(--gray-700);
  margin-top: 2px;
}

/* ===== Chart Placeholder ===== */
.chart-placeholder {
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(127,86,217,0.06), var(--gray-50));
  border: 1px dashed var(--gray-300);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  gap: 8px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.chart-bar:hover {
  opacity: 1;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
}

.toast.show {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.toast-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  display: none;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
}

.modal h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.modal p {
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 48px 16px;
  }

  .section {
    padding: 48px 16px;
  }

  .page-body {
    padding: 16px;
  }

  .auth-card {
    padding: 24px;
  }

  .landing-header .nav-links {
    display: none;
  }

  .package-item {
    flex-wrap: wrap;
  }

  .package-item .pkg-actions {
    width: 100%;
    margin-left: 60px;
    margin-top: 8px;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ===== Utilities ===== */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gray { color: var(--gray-500); }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
