:root {
    color-scheme: dark;
    /* Kuvi.ai Style - Premium Dark Theme */
    --bg-base: #050505;
    /* Deepest black for infinite contrast */
    --bg-surface: rgba(25, 25, 25, 0.4);
    /* Barely visible surface */
    --bg-elevated: rgba(30, 30, 30, 0.6);

    --text-primary: #FFFFFF;
    /* Pure white for max legibility */
    --text-secondary: #A0A0A0;
    /* Soft grey for subtitles */
    --text-muted: #666666;

    /* Interactive & Action Colors - Neon Glows */
    --accent-primary: #FFFFFF;
    /* Buttons have white text */
    --accent-gradient: linear-gradient(135deg, rgba(255, 100, 50, 0.8), rgba(50, 150, 255, 0.8));
    /* Orange to Blue vibe for borders */
    --accent-hover: rgba(255, 255, 255, 0.05);
    /* Subtle white overlay on hover */

    --success-neon: #10b981;
    --danger-neon: #ef4444;
    --warning-neon: #f59e0b;

    /* Depth & Structure */
    --border-color: rgba(255, 255, 255, 0.1);
    /* Barely there borders */
    --border-light: rgba(255, 255, 255, 0.15);
    --glow-shadow-primary: 0 0 15px rgba(255, 100, 50, 0.2), 0 0 30px rgba(50, 150, 255, 0.2);
    /* Mixed glow */
    --inner-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    /* Solid black with bottom corner glows */
    background-image:
        radial-gradient(ellipse at 0% 100%, rgba(255, 70, 0, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(0, 100, 255, 0.3) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    padding-bottom: 4rem;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

/* Beautiful custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: #22c55e44;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #22c55e88;
}

/* Background Elements Removed for a cleaner look */
.background-elements {
    display: none;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 5vw;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem 3vw;
    }
}

@media (max-width: 768px) {
    .kuvi-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0.15rem;
        margin-top: 0.25rem;
    }

    .nav-links a {
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
    }

    .nav-actions {
        gap: 0.25rem;
    }

    .kuvi-btn-glow {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-section {
        margin-bottom: 2rem;
    }
}

/* --- Kuvi Navbar --- */
.kuvi-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.site-logo-micro {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    filter: drop-shadow(0 0 4px rgba(255, 120, 60, 0.3)) drop-shadow(0 0 4px rgba(80, 160, 255, 0.3));
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 2;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

/* --- Glowing Border Button --- */
.kuvi-btn-glow {
    position: relative;
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    z-index: 1;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kuvi-btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 99px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 120, 60, 0.9), rgba(80, 160, 255, 0.9), rgba(255, 120, 60, 0.9));
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.3s ease;
    will-change: background-position;
    transform: translateZ(0);
}

.kuvi-btn-glow:hover {
    box-shadow: 0 0 20px rgba(255, 100, 50, 0.25), 0 0 20px rgba(50, 150, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.kuvi-btn-glow:hover::before {
    animation: gradientMove 2.5s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.3rem 1rem;
    border-radius: 99px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.6;
}

.glass {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    /* Very subtle shadow for separation from black background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.calculator-panel {
    padding: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .calculator-panel {
        flex-direction: column;
        padding: 1.5rem;
    }
}



.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 220px;
}

.dynamic-adjustments {
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.adjustments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adjustments-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.adjustment-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    background: var(--bg-elevated);
    /* Subtle striped texture for rows too */
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.01) 10px, rgba(255, 255, 255, 0.01) 20px);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--inner-shadow), 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, border-color 0.2s;
}

.adjustment-row:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.btn-text {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-text:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: var(--glow-shadow-primary);
    color: #fff;
}

.btn-remove-adj {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    height: 52px;
    width: 52px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-adj:hover {
    border-color: rgba(239, 68, 68, 0.5);
    color: var(--danger-neon);
    background: rgba(239, 68, 68, 0.1);
}

label {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    display: inline-block;
}

input,
select {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.2s ease;
    outline: none;
}

input:focus,
select:focus {
    color: var(--accent-primary);
}

input::placeholder {
    color: #444;
    font-weight: 400;
}

.custom-select {
    position: relative;
}

.custom-select select {
    appearance: none;
    cursor: pointer;
}

.custom-select::after {
    content: "▼";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}

.custom-select option {
    font-weight: 500;
    background: #0a0a0a;
    color: var(--text-primary);
}

.btn-primary {
    position: relative;
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 0 2rem;
    height: 48px;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    outline: none;
    z-index: 1;
    white-space: nowrap;
    margin-top: 1.15rem;
    /* Align with inputs */
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 99px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 120, 60, 0.9), rgba(80, 160, 255, 0.9), rgba(255, 120, 60, 0.9));
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.3s ease;
    will-change: background-position;
    transform: translateZ(0);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(255, 100, 50, 0.3), 0 0 25px rgba(50, 150, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.btn-primary:hover::before {
    animation: gradientMove 2.5s linear infinite;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    box-shadow: none;
}

.hidden {
    display: none !important;
}

.results-panel {
    animation: fadeIn 0.6s ease-out;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), var(--inner-shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    opacity: 0.5;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.9), var(--inner-shadow);
    border-color: rgba(255, 255, 255, 0.15);
}

.card.highlight::before {
    background: var(--accent-gradient);
    opacity: 1;
    height: 4px;
}

.card.highlight-green::before {
    background: linear-gradient(90deg, #10b981, #059669);
    opacity: 1;
    height: 4px;
}

.card h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    font-feature-settings: "tnum";
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), var(--inner-shadow);
    background: var(--bg-surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    table-layout: fixed;
    /* Force equal column widths where possible */
}

th,
td {
    padding: 0.75rem 0.4rem;
    /* Tighter padding */
    border-bottom: 1px solid var(--border-color);
}

th {
    text-align: right;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.65rem;
    /* Smaller font for headers */
    text-transform: uppercase;
    letter-spacing: 0.02em;
    /* Less letter spacing to save space */
    background: rgba(0, 0, 0, 0.2);
    /* Allow wrapping for long headers */
    word-wrap: break-word;
    line-height: 1.2;
}

th:first-child,
td:first-child {
    text-align: left;
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

td {
    font-size: 0.8rem;
    /* Smaller font for data */
    font-weight: 500;
    color: var(--text-primary);
    font-feature-settings: "tnum";
    /* Allow wrapping for long numbers or text if needed */
}

td:last-child {
    font-weight: 800;
    color: var(--success-neon);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .calculator-panel,
    .card {
        padding: 1.5rem;
    }

    .calculator-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        margin-top: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .card .amount {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
}

/* Authentication & Pre-Calculation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(34, 197, 94, 0.1);
    padding: 2rem 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-content h2 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-subtitle {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem !important;
    font-size: 0.95rem;
}

.auth-form,
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.auth-form input,
.profile-form input,
.profile-form select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.profile-form select option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

.auth-actions {
    display: flex;
    gap: 0.5rem;
}

.auth-actions button {
    flex: 1;
}

.btn-sm {
    height: 40px;
    padding: 0 1.5rem;
    font-size: 0.9rem;
}

.btn-primary.outline {
    background: transparent;
    border: 1px solid #22c55e;
    color: #22c55e;
}

.error-msg {
    color: #ef4444 !important;
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
    text-align: center;
}

/* --- Social Proof --- */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: -1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.social-proof strong {
    color: var(--text-primary);
}

.avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

/* --- Hero Result Card --- */
.hero-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    gap: 2rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
}

.hero-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #10b981);
    opacity: 1;
}

.hero-result-main {
    flex: 1;
}

.hero-result-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-result-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #10b981;
    letter-spacing: -0.03em;
    font-feature-settings: "tnum";
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-result-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-result-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    width: 160px;
}

.donut-chart {
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.15));
}

.donut-chart circle {
    transition: stroke-dasharray 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.donut-legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Card Icons --- */
.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.card-icon.icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.card-icon.icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.card.highlight-red::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    opacity: 1;
    height: 4px;
}

/* --- Trend Chart --- */
.chart-container {
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.chart-legend-inline {
    display: flex;
    gap: 0.75rem;
}

.legend-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    font-weight: 600;
}

.net-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.gross-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.chart-wrapper {
    width: 100%;
    overflow: hidden;
}

.chart-wrapper svg {
    width: 100%;
    height: auto;
}

/* --- Min/Max Strip --- */
.minmax-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.minmax-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.minmax-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.minmax-icon.up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.minmax-icon.down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.minmax-icon.delta {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.minmax-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.minmax-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-feature-settings: "tnum";
}

.minmax-month {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.minmax-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-result-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .hero-result-amount {
        font-size: 2.5rem;
    }

    .minmax-strip {
        flex-direction: column;
        gap: 1rem;
    }

    .minmax-divider {
        width: 100%;
        height: 1px;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Site Footer --- */
.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 5vw;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-info a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-info a:hover {
    color: var(--text-primary);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    animation: slideUp 0.5s ease 1s forwards;
}

.cookie-banner.cookie-hidden {
    display: none;
}

.cookie-banner p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 600px;
}

.cookie-banner a {
    color: #00e68a;
    text-decoration: none;
}

.cookie-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s;
}

.cookie-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }

    .footer-links {
        gap: 0.75rem;
    }
}