:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #18181b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #22c55e;
    --accent-dim: #16a34a;
    --accent-glow: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #27272a;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'DM Sans', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Progress bar */
.progress-container {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 99;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s;
}

/* Page container - for individual pages */
.page-container {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-label {
    font-size: 0.875rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.hero-cta svg {
    transition: transform 0.3s;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* Hero cards */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 700px;
    width: 100%;
    text-align: left;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.hero-card h4 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.hero-card li::before {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.hero-card-yes {
    border-color: var(--accent);
}

.hero-card-yes h4 {
    color: var(--accent);
}

.hero-card-yes li::before {
    content: "✓";
    color: var(--accent);
}

.hero-card-no {
    border-color: var(--danger);
}

.hero-card-no h4 {
    color: var(--danger);
}

.hero-card-no li::before {
    content: "✗";
    color: var(--danger);
}

/* Section headers */
.section-number {
    font-family: var(--serif);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.7;
}

h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.2;
}

h2 em {
    font-style: italic;
    color: var(--accent);
}

h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    display: block;
    min-width: 0;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card h4 {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 0;
    flex: 1;
}

.card-tip {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--accent-glow);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent);
    display: block;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.card-tip strong {
    color: var(--text-primary);
}

/* Link cards for homepage navigation */
.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.card-link .card {
    cursor: pointer;
}

.card-link .card h4 {
    color: var(--text-primary);
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.highlight-box h4 {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.highlight-box p {
    margin-bottom: 0;
}

/* Warning box */
.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.warning-box h4 {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--warning);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.danger-box h4 {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

/* Broker comparison */
.broker-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

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

.broker-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.broker-card:hover {
    border-color: var(--accent);
}

.broker-card h4 {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.broker-pros,
.broker-cons {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.broker-pros span {
    color: var(--accent);
    font-weight: 600;
}

.broker-cons span {
    color: #ef4444;
    font-weight: 600;
}

.broker-section {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.broker-section:first-of-type {
    margin-top: 0;
}

.broker-neutral {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.broker-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Tooltip */
.tooltip {
    position: relative;
    border-bottom: 1px dashed var(--text-muted);
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 220px;
    text-align: center;
    z-index: 100;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Compound calculator */
.calculator {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.calc-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.calc-mode-tab {
    padding: 0.6rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: var(--sans);
    cursor: pointer;
    transition: all 0.2s;
}

.calc-mode-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.calc-mode-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    font-weight: 500;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .calculator-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .calculator-inputs {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.input-group input {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--sans);
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.calculator-result {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.result-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-value {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--accent);
}

.result-details {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.chart-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.chart-container canvas {
    width: 100% !important;
    height: 250px !important;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.metric {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.metric-value {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Metric tooltips */
.metric {
    position: relative;
    cursor: help;
    transition: all 0.3s;
}

.metric:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.metric-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    width: max-content;
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    z-index: 10;
    text-align: left;
}

.metric:hover .metric-tooltip {
    opacity: 1;
    visibility: visible;
}

.metric-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--accent);
}

/* Checklist */
.checklist {
    list-style: none;
    margin: 2rem 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
    border-bottom: none;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.check-icon svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.checklist-content h5 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.checklist-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Steps */
.steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    margin-bottom: 0;
}

/* Five questions component */
.five-questions {
    margin: 2rem 0;
}

.question-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.question-item:hover {
    border-color: var(--accent);
}

.question-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    flex-shrink: 0;
}

.question-content h4 {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.question-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Quote */
.quote {
    border-left: 3px solid var(--accent);
    padding-left: 2rem;
    margin: 3rem 0;
}

.quote p {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quote cite {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footnote */
.footnote {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 11, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    .page-container {
        padding: 5rem 1.5rem 3rem;
    }

    section {
        padding: 6rem 1.5rem 3rem;
    }

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

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .question-item {
        flex-direction: column;
        gap: 1rem;
    }

    .question-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* ========== SECTION LAYOUT ========== */

.section-layout {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    min-height: 100vh;
}

.side-nav {
    position: fixed;
    top: 80px;
    left: max(1rem, calc((100vw - 960px) / 2 - 240px));
    width: 200px;
    padding: 2rem 0.5rem 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.side-nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

.side-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.side-nav-link:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.side-nav-link.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: rgba(16, 185, 129, 0.05);
    font-weight: 500;
}

.section-content {
    width: 100%;
}

.section-content .page-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 1rem 2rem;
}

/* Mobile side nav */
.side-nav-mobile {
    display: none;
}

@media (max-width: 1100px) {
    .side-nav {
        display: none;
    }

    .side-nav-mobile {
        display: flex;
        position: sticky;
        top: 60px;
        z-index: 90;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: 0 1rem;
    }

    .side-nav-mobile::-webkit-scrollbar {
        display: none;
    }

    .side-nav-mobile .side-nav-link {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        flex-shrink: 0;
    }

    .side-nav-mobile .side-nav-link.active {
        border-left: none;
        border-bottom-color: var(--accent);
        background: none;
    }

    .section-layout {
        flex-direction: column;
    }
}

/* Feedback Button */
.nav-feedback-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-family: var(--sans);
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-feedback-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Feedback Modal */
.feedback-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

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

.feedback-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: feedbackIn 0.25s ease;
}

@keyframes feedbackIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-modal h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.feedback-modal p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.feedback-modal textarea,
.feedback-modal input[type="email"] {
    width: 100%;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    transition: border-color 0.2s;
    resize: vertical;
}

.feedback-modal textarea {
    min-height: 120px;
    margin-bottom: 0.75rem;
}

.feedback-modal input[type="email"] {
    margin-bottom: 1.25rem;
}

.feedback-modal textarea:focus,
.feedback-modal input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.feedback-modal textarea::placeholder,
.feedback-modal input[type="email"]::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.feedback-submit {
    width: 100%;
    padding: 0.75rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bg-primary);
    background: var(--accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-submit:hover {
    background: var(--accent-dim);
}

.feedback-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.feedback-close:hover {
    color: var(--text-primary);
}

.feedback-success {
    text-align: center;
    padding: 2rem 0;
}

.feedback-success span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feedback-success p {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .nav-feedback-btn {
        margin: 0.25rem 1rem 0.5rem;
        text-align: center;
    }
}
