@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #162338;
    --primary-light: #22334f;
    --primary-dark: #0d1625;
    --accent: #c9a84c;
    --accent-light: #e5c976;
    --accent-dark: #a88629;
    --surface: #1d2b42;
    --surface-hover: #253650;
    --surface-card: rgba(26, 40, 63, 0.9);
    --surface-soft: rgba(255, 255, 255, 0.04);
    --border: rgba(143, 162, 194, 0.18);
    --text: #edf2fb;
    --text-muted: #a5b4cb;
    --text-dim: #72829b;
    --success: #35c77a;
    --danger: #ef6b5b;
    --warning: #f1b34a;
    --info: #5aa8ff;
    --sidebar-width: 260px;
    --navbar-height: 64px;
    --font-family: 'Inter', 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --transition: all 0.22s ease;
    --shadow-sm: 0 10px 24px rgba(3, 10, 22, 0.2);
    --shadow: 0 20px 48px rgba(3, 10, 22, 0.28);
    --shadow-lg: 0 32px 80px rgba(3, 10, 22, 0.4);
    --gradient-accent: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    --gradient-panel: linear-gradient(145deg, rgba(31, 46, 72, 0.92), rgba(18, 28, 46, 0.96));
    --focus-ring: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

[data-theme="light"] {
    --primary: #f6f8fc;
    --primary-light: #ffffff;
    --primary-dark: #edf1f7;
    --surface: #ffffff;
    --surface-hover: #f4f7fb;
    --surface-card: rgba(255, 255, 255, 0.92);
    --surface-soft: rgba(18, 35, 58, 0.04);
    --border: rgba(36, 53, 86, 0.12);
    --text: #162338;
    --text-muted: #55657f;
    --text-dim: #7f8da4;
    --shadow-sm: 0 10px 24px rgba(18, 35, 58, 0.08);
    --shadow: 0 20px 48px rgba(18, 35, 58, 0.12);
    --shadow-lg: 0 32px 80px rgba(18, 35, 58, 0.16);
    --gradient-panel: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.95));
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.08), transparent 32%),
        radial-gradient(circle at bottom right, rgba(90, 168, 255, 0.08), transparent 26%),
        var(--primary-dark);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(201, 168, 76, 0.28);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.text-accent {
    color: var(--accent) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.main-navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
    padding: 0 20px;
    background: rgba(13, 22, 37, 0.78);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

[data-theme="light"] .main-navbar {
    background: rgba(255, 255, 255, 0.82);
}

.page-hero {
    position: relative;
}

.public-page {
    padding: 32px;
}

.public-navbar {
    padding: 0 24px;
}

.public-main {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-chip {
    display: inline-flex;
}

.card {
    border-radius: 18px;
    background: var(--gradient-panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(8, 14, 25, 0.66);
    display: none;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    margin: auto;
    padding: 24px;
    border-radius: 20px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    max-width: 860px;
}

.list-group-item .text-muted {
    color: var(--text-muted);
}

.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-doc {
    color: var(--text-muted);
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.pricing-card {
    position: relative;
    border-radius: 20px;
}

.pricing-card .price-amount {
    font-size: 2rem;
    font-weight: 700;
}

.badge {
    border-radius: 12px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
}

.app-legal-links {
    margin-top: 24px;
    padding: 12px 0;
    text-align: center;
}

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