:root {
  --bg-deep: #f5f7fa;
  --bg-primary: #ffffff;
  --bg-secondary: #f0f2f5;
  --bg-tertiary: #e8eaef;
  --bg-card: #ffffff;
  --bg-hover: #f0f2f5;
  --bg-active: #e2e5eb;
  --border: #e2e5eb;
  --border-light: #d0d4dd;
  --border-accent: #6366f1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #6366f1;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-bg: rgba(99,102,241,0.08);
  --accent-border: rgba(99,102,241,0.25);
  --success: #10b981;
  --success-bg: rgba(16,185,129,0.08);
  --warning: #f59e0b;
  --warning-bg: rgba(245,158,11,0.08);
  --danger: #ef4444;
  --danger-bg: rgba(239,68,68,0.08);
  --info: #3b82f6;
  --info-bg: rgba(59,130,246,0.08);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --sidebar-w: 250px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); background: var(--bg-deep); color: var(--text-primary); line-height: 1.6; min-height: 100vh; }
a { color: var(--text-accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Layout */
.layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh; background: var(--bg-secondary); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 100; overflow-y: auto; }
.sidebar-brand { padding: 1.5rem 1.25rem 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
.sidebar-brand .brand-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sidebar-brand .brand-sub { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.sidebar-nav { flex: 1; padding: 0.5rem 0.75rem; display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.85rem; border-radius: var(--radius); color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: all var(--transition); text-decoration: none; position: relative; }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent-bg); color: var(--text-accent); border: 1px solid var(--accent-border); }
.nav-item.active::before { content: ''; position: absolute; left: -0.75rem; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-icon { font-size: 1rem; width: 1.4rem; text-align: center; opacity: 0.7; flex-shrink: 0; }
.nav-item.active .nav-icon { opacity: 1; }
.nav-label { flex: 1; }
.nav-badge { background: var(--accent-bg); color: var(--text-accent); font-size: 0.65rem; padding: 0.1rem 0.45rem; border-radius: 50px; font-weight: 600; }
.sidebar-footer { padding: 0.75rem; border-top: 1px solid var(--border); }
.sidebar-footer .nav-item { font-size: 0.8rem; padding: 0.5rem 0.85rem; }
.sidebar-footer .sidebar-version { font-size: 0.65rem; color: var(--text-muted); text-align: center; padding-top: 0.5rem; }

/* Main Content Area */
.main-content { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* Page Header */
.page-header { background: var(--bg-primary); border-bottom: 1px solid var(--border); padding: 1rem 2rem; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text-accent); }
.breadcrumbs .sep { color: var(--text-muted); opacity: 0.4; }
.breadcrumbs .current { color: var(--text-secondary); font-weight: 500; }
.page-title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.page-title-row h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Content Area */
.content { padding: 1.5rem 2rem 3rem; flex: 1; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; transition: all var(--transition); position: relative; overflow: hidden; }
.stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.stat-card.accent::before { background: var(--accent); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.info::before { background: var(--info); }
.stat-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.stat-card-header .stat-icon { font-size: 1.3rem; opacity: 0.6; }
.stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; font-weight: 500; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; transition: border-color var(--transition); }
.card:hover { border-color: var(--border-light); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.card-header h2 { font-size: 1rem; font-weight: 700; }
.card-header .card-actions { display: flex; gap: 0.5rem; }
.card-body { font-size: 0.9rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table thead { background: var(--bg-tertiary); }
.table th { text-align: left; padding: 0.7rem 1rem; color: var(--text-muted); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: middle; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--bg-hover); }
.table tbody tr:last-child td { border-bottom: none; }
.table td code { font-family: var(--font-mono); font-size: 0.8rem; background: var(--bg-tertiary); padding: 0.1rem 0.35rem; border-radius: 4px; }
.table .cell-actions { white-space: nowrap; text-align: right; }
.table .cell-actions .btn { margin-left: 0.25rem; }
.table-empty td { text-align: center; padding: 3rem 1rem; color: var(--text-muted); font-style: italic; }

/* Forms */
.form { max-width: 720px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; letter-spacing: 0.02em; }
.form-control { width: 100%; padding: 0.6rem 0.85rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.9rem; font-family: var(--font); transition: all var(--transition); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.form-control::placeholder { color: var(--text-muted); opacity: 0.6; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; background: var(--bg-secondary); }
.form-fieldset legend { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0 0.5rem; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.checkbox-grid label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; cursor: pointer; color: var(--text-secondary); padding: 0.3rem 0; }
.checkbox-grid input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--accent); cursor: pointer; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-tertiary); color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; font-family: var(--font); cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Google Sign-In Button */
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; padding: 0.65rem 1rem; background: #fff; border: 1px solid #d0d4dd; border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.9rem; font-weight: 500; font-family: var(--font); cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-google:hover { background: #f8f9fa; border-color: #b0b4be; }
.btn-google:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-google svg { flex-shrink: 0; }
.divider { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; color: var(--text-muted); font-size: 0.8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 50px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.badge::before { content: ''; width: 0.4rem; height: 0.4rem; border-radius: 50%; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-success::before { background: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-warning::before { background: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-danger::before { background: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-info::before { background: var(--info); }
.badge-trial { background: var(--info-bg); color: var(--info); }
.badge-trial::before { background: var(--info); }
.badge-pro { background: var(--accent-bg); color: var(--text-accent); }
.badge-pro::before { background: var(--accent); }
.badge-enterprise { background: var(--warning-bg); color: var(--warning); }
.badge-enterprise::before { background: var(--warning); }
.badge-datacenter { background: var(--danger-bg); color: var(--danger); }
.badge-datacenter::before { background: var(--danger); }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.alert-error { background: var(--danger-bg); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.alert-success { background: var(--success-bg); border: 1px solid rgba(34,197,94,0.3); color: var(--success); }
.alert-warning { background: var(--warning-bg); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }
.alert-info { background: var(--info-bg); border: 1px solid rgba(59,130,246,0.3); color: var(--info); }

/* Detail View */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.detail-row { display: flex; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.detail-grid .detail-row:nth-last-child(-n+2) { border-bottom: none; }
.detail-label { width: 160px; flex-shrink: 0; color: var(--text-muted); font-size: 0.8rem; font-weight: 500; }
.detail-value { font-size: 0.9rem; color: var(--text-primary); word-break: break-all; }
.detail-value code { font-family: var(--font-mono); font-size: 0.8rem; }

/* Code Block */
.code-block { background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; font-family: var(--font-mono); font-size: 0.8rem; word-break: break-all; margin: 0.5rem 0; color: var(--text-secondary); line-height: 1.7; }
.code-block-header { display: flex; align-items: center; justify-content: space-between; background: var(--bg-tertiary); border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 0.4rem 0.75rem; font-size: 0.7rem; color: var(--text-muted); }
.code-block-header + .code-block { margin-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.copy-btn { cursor: pointer; background: var(--bg-hover); border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); padding: 0.2rem 0.5rem; font-size: 0.7rem; transition: all var(--transition); }
.copy-btn:hover { background: var(--bg-active); color: var(--text-primary); }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); width: 440px; max-width: 90vw; box-shadow: var(--shadow-lg); animation: modalIn 200ms ease-out; }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; padding: 0.25rem; line-height: 1; border-radius: 4px; }
.modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }
.modal-body { padding: 1.25rem 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; }

/* Toast */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 999; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--text-primary); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.5rem; animation: toastIn 300ms ease-out; pointer-events: auto; max-width: 360px; }
.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-info { border-color: var(--info); }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-deep); }
.login-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem; width: 400px; max-width: 90vw; box-shadow: var(--shadow-lg); }
.login-box h1 { font-size: 1.3rem; font-weight: 800; background: linear-gradient(135deg, #818cf8, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-align: center; }
.login-box .login-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 1.75rem; font-size: 0.85rem; }
.login-box .alert { text-align: center; }
.login-box .form-group { margin-bottom: 1.25rem; }
.login-box .btn-block { padding: 0.7rem; font-size: 0.95rem; }

/* Search Bar */
.search-bar { position: relative; }
.search-bar input { padding-left: 2rem; }
.search-bar-icon { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; pointer-events: none; }

/* Loading */
.loading { display: flex; align-items: center; justify-content: center; padding: 3rem; color: var(--text-muted); }
.spinner { width: 1.5rem; height: 1.5rem; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 600ms linear infinite; margin-right: 0.5rem; }

/* Action Links */
.action-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Empty State */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.3; }
.empty-state-text { font-size: 0.9rem; }
.empty-state-action { margin-top: 1rem; }

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 300ms ease-out; }

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.font-mono { font-family: var(--font-mono); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }

/* Sidebar Toggle (mobile) */
.sidebar-toggle { display: none; position: fixed; top: 0.75rem; left: 0.75rem; z-index: 110; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); padding: 0.4rem 0.6rem; cursor: pointer; font-size: 1.1rem; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 300ms ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }
  .main-content { margin-left: 0; }
  .page-header { padding: 1rem; padding-left: 3.5rem; }
  .content { padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-title-row { flex-direction: column; align-items: flex-start; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
}

/* ===== Public Portal Styles ===== */

/* Public Top Nav */
.pub-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.pub-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; height: 64px; }
.pub-nav-brand { font-size: 1.1rem; font-weight: 800; background: linear-gradient(135deg, #818cf8, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; margin-right: 2.5rem; }
.pub-nav-links { display: flex; gap: 1.5rem; align-items: center; flex: 1; }
.pub-nav-links a { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: color var(--transition); }
.pub-nav-links a:hover { color: var(--text-primary); }
.pub-nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.pub-nav-mobile { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); padding: 0.4rem 0.6rem; cursor: pointer; font-size: 1.1rem; }

/* Hero Section */
.hero { padding: 8rem 1.5rem 5rem; max-width: 1200px; margin: 0 auto; text-align: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent-bg); border: 1px solid var(--accent-border); border-radius: 50px; padding: 0.35rem 0.9rem; font-size: 0.75rem; color: var(--text-accent); font-weight: 500; margin-bottom: 1.5rem; }
.hero h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 .gradient-text { background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Trust Strip */
.trust-strip { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem; text-align: center; }
.trust-strip p { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-logo { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; opacity: 0.5; letter-spacing: 0.03em; }

/* Section Headers */
.section { padding: 4rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.section-header p { color: var(--text-secondary); margin-top: 0.5rem; font-size: 1rem; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: all var(--transition); }
.feature-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon { font-size: 1.8rem; margin-bottom: 0.75rem; display: block; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Feature Detail Page */
.feature-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.feature-category { margin-bottom: 2.5rem; }
.feature-category h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-secondary); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .check { color: var(--success); font-weight: bold; flex-shrink: 0; }
.feature-compare-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.feature-compare-table th, .feature-compare-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.85rem; }
.feature-compare-table th { background: var(--bg-tertiary); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em; }
.feature-compare-table td:first-child { font-weight: 500; color: var(--text-primary); }
.feature-compare-table .check { color: var(--success); }
.feature-compare-table .cross { color: var(--text-muted); opacity: 0.4; }

/* Pricing Cards */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; align-items: start; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; position: relative; transition: all var(--transition); display: flex; flex-direction: column; }
.pricing-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.pricing-card.popular::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 1rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.pricing-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.5; }
.pricing-price { margin-bottom: 1.25rem; }
.pricing-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.pricing-amount.free { color: var(--success); }
.pricing-period { font-size: 0.85rem; color: var(--text-muted); }
.pricing-cycle-toggle { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.pricing-cycle-toggle label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.85rem; color: var(--text-secondary); }
.pricing-cycle-toggle input[type="radio"] { accent-color: var(--accent); }
.pricing-savings { font-size: 0.7rem; color: var(--success); font-weight: 600; }
.pricing-features { list-style: none; flex: 1; margin-bottom: 1.5rem; }
.pricing-features li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--text-secondary); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--success); font-weight: bold; }
.pricing-features .cross { color: var(--text-muted); opacity: 0.4; }
.pricing-cta { margin-top: auto; }

/* Comparison Table */
.comparison-wrap { overflow-x: auto; margin-top: 2rem; }
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.85rem; }
.comparison-table th, .comparison-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); text-align: center; }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; }
.comparison-table thead th { background: var(--bg-tertiary); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border-light); }
.comparison-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.comparison-table tbody tr:hover { background: var(--bg-hover); }
.comparison-table .check { color: var(--success); }
.comparison-table .cross { color: var(--text-muted); opacity: 0.3; }

/* Trust/Security Section */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.trust-item { text-align: center; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.trust-item-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.trust-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.trust-item p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* License Automation */
.auto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.auto-step { text-align: center; padding: 2rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); position: relative; }
.auto-step-num { width: 36px; height: 36px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; margin: 0 auto 1rem; }
.auto-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.auto-step p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Footer */
.pub-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 3rem 1.5rem 1.5rem; margin-top: 4rem; }
.pub-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.pub-footer-brand { font-size: 1rem; font-weight: 800; background: linear-gradient(135deg, #818cf8, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; display: inline-block; }
.pub-footer-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; max-width: 300px; }
.pub-footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-primary); margin-bottom: 0.75rem; }
.pub-footer-col a { display: block; font-size: 0.8rem; color: var(--text-muted); padding: 0.25rem 0; text-decoration: none; }
.pub-footer-col a:hover { color: var(--text-accent); }
.pub-footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.pub-footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

/* Customer Portal Shared (logged-in) */
.cust-layout { display: flex; min-height: 100vh; }
.cust-sidebar { width: var(--sidebar-w); background: var(--bg-secondary); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 50; }
.cust-sidebar-brand { padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--border); }
.cust-sidebar-brand .brand-name { font-size: 1rem; font-weight: 800; background: linear-gradient(135deg, #818cf8, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cust-sidebar-user { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; }
.cust-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-bg); border: 1px solid var(--accent-border); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--text-accent); font-weight: 700; flex-shrink: 0; }
.cust-user-info { flex: 1; overflow: hidden; }
.cust-user-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-user-email { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-sidebar-nav { flex: 1; padding: 0.5rem 0.75rem; display: flex; flex-direction: column; gap: 2px; }
.cust-sidebar-footer { padding: 0.75rem; border-top: 1px solid var(--border); }
.cust-main { margin-left: var(--sidebar-w); flex: 1; }
.cust-content { padding: 2rem; max-width: 1000px; }

/* Customer Dashboard Cards */
.cust-welcome { margin-bottom: 2rem; }
.cust-welcome h1 { font-size: 1.5rem; font-weight: 800; }
.cust-welcome p { color: var(--text-secondary); margin-top: 0.25rem; }
.cust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.cust-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.cust-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cust-card-header h3 { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cust-card-value { font-size: 1.6rem; font-weight: 800; }
.cust-card-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.cust-table { width: 100%; border-collapse: collapse; }
.cust-table th, .cust-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.85rem; }
.cust-table th { color: var(--text-muted); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Checkout Page */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; margin-top: 2rem; }
.checkout-summary-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 5rem; }
.checkout-summary-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.checkout-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.85rem; }
.checkout-row.total { border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.75rem; font-weight: 700; font-size: 1rem; }
.checkout-label { color: var(--text-secondary); }
.checkout-value { color: var(--text-primary); }
.checkout-placeholder { background: var(--bg-tertiary); border: 1px dashed var(--border-light); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }

/* Pricing Page Header */
.pricing-page { padding-top: 5rem; }

/* Mobile Responsive for Public */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-detail-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .auto-grid { grid-template-columns: 1fr; }
  .pub-footer-inner { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cust-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 600px) {
  .pub-nav-links { display: none; }
  .pub-nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 1rem; }
  .pub-nav-mobile { display: block; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .pub-footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .hero-stat-value { font-size: 1.4rem; }
  .cust-sidebar { transform: translateX(-100%); transition: transform 300ms ease; }
  .cust-sidebar.open { transform: translateX(0); }
  .cust-main { margin-left: 0; }
  .cust-content { padding: 1rem; }
}
