﻿:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --primary-light: #a5b4fc;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Nav */
    --nav-bg: rgba(15, 23, 42, 0.85);
    --nav-border: rgba(51, 65, 85, 0.5);
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #f1f5f9;
    --bg-secondary: #e2e8f0;
    --bg-tertiary: #cbd5e1;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(0, 0, 0, 0.03);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

    --nav-bg: rgba(241, 245, 249, 0.85);
    --nav-border: rgba(203, 213, 225, 0.6);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Top Navigation Bar */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
    padding: 0 var(--spacing-lg);
}

.top-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--nav-border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--nav-border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

/* Show sun in dark mode, moon in light mode */
.icon-sun {
    display: block;
}

.icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}


.container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.6s ease-out;
}

.progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* Main Content */
.main-content {
    position: relative;
}

.form-step {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.form-step.active {
    display: block;
}

/* Step Header */
.step-header {
    margin-bottom: var(--spacing-xl);
}

.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-glow);
}

.step-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.step-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.ca-helper {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--nav-border);
}

.ca-helper-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.ca-helper-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ca-helper-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--nav-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ca-helper-btn i {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.ca-helper-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-1px);
}

/* Form Groups */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.label-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.required {
    color: var(--danger);
}

.hint {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-sm);
}

.checkbox-card {
    position: relative;
    cursor: pointer;
}

.checkbox-card input[type="checkbox"],
.checkbox-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-card:hover .checkbox-content {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.checkbox-card input:checked~.checkbox-content {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.checkbox-content .icon {
    font-size: 2rem;
}

.checkbox-content .text {
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
}

/* Radio Group */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-sm);
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-card:hover .radio-content {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.radio-card input:checked~.radio-content {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.radio-content .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.radio-content .text {
    display: flex;
    flex-direction: column;
}

.radio-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.radio-content small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Input Fields */
.select-field,
.input-field {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.select-field:focus,
.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.select-field option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.input-with-suffix {
    position: relative;
}

.input-with-suffix .suffix {
    position: absolute;
    right: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
}

.input-with-suffix .input-field {
    padding-right: 3rem;
}

/* Channels Section */
.channels-section {
    margin-bottom: var(--spacing-xl);
}

.channels-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.channels-title .icon {
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid var(--bg-tertiary);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid var(--bg-tertiary);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 150px;
}

/* Results */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.results-title {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.results-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.results-title p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.results-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.budget-summary {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
}

.budget-amount {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.budget-range {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.budget-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.channel-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.channel-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

.channel-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.channel-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.channel-budget {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
}

.channel-range {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.channel-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.channel-source {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.channel-source a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.channel-source a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Chart Container */
.chart-container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        padding: 0 var(--spacing-sm);
    }

    .top-nav-inner {
        height: 48px;
    }

    .nav-title {
        font-size: 0.9375rem;
    }

    .nav-link span,
    .nav-link {
        font-size: 0;
        padding: 0.5rem;
        gap: 0;
    }

    .nav-link svg {
        width: 18px;
        height: 18px;
    }

    .container {
        padding: var(--spacing-md);
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .results-title h2 {
        font-size: 1.5rem;
    }

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

    .radio-group {
        grid-template-columns: 1fr;
    }

    .budget-amount {
        font-size: 2rem;
    }

    .header-with-button {
        flex-direction: column;
    }

    .btn-pappers {
        align-self: flex-start;
    }

    .results-header {
        flex-direction: column;
    }

    .results-actions {
        width: 100%;
    }

    .btn-icon {
        flex: 1;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .form-actions,
    .results-actions {
        display: none;
    }
}
/* Extracted from index.html */

.grimont-global-header {
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.85); /* Slightly darker for better readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* slightly stronger border */
    padding: 14px 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #e2e8f0;
    box-sizing: border-box;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.grimont-global-header * {
    box-sizing: border-box;
}
.grimont-global-header .ggh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ggh-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.ggh-logo-group {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.ggh-logo-group:hover {
    transform: scale(1.02);
}
.ggh-logo-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}
.ggh-logo-text {
    font-family: 'Space Grotesk', monospace;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.05em;
    display: none;
}
.ggh-logo-text span {
    color: #00f2ff;
}
@media (min-width: 640px) {
    .ggh-logo-text { display: block; }
}
.ggh-separator {
    width: 1px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    display: none;
}
@media (min-width: 768px) {
    .ggh-separator { display: block; }
}
.ggh-app-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ggh-app-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.ggh-app-icon-container {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #e879f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.ggh-app-name {
    font-weight: 700;
    color: white;
    font-size: 1.05rem;
    margin: 0;
    padding: 0;
    letter-spacing: 0.02em;
}
.ggh-app-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    max-width: 600px;
    display: none;
    margin: 4px 0 0 0;
    padding: 0;
    line-height: 1.4;
    font-weight: 300;
}
@media (min-width: 1024px) {
    .ggh-app-desc { display: block; }
}
.ggh-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ggh-right button {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.ggh-right button:hover {
    background: rgba(30, 41, 59, 1) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

