:root {
    /* Base variables (Common) */
    --accent-color: #c9a84c;
    /* Gold */
    --text-color: #f4faf5;
    --success-color: #4caf50;
    --error-color: #f44336;

    /* Default (DE Theme - Green) */
    --primary-color: #143318;
    --secondary-color: #0f2914;
    --text-secondary: #8eab94;
    --card-bg: rgba(15, 41, 20, 0.85);
    --bg-color: #091a0c;
    --bg-gradient-start: #1a3d1a;
    --bg-gradient-end: #091a0c;
}

body.theme-en {
    /* EN Theme - Navy/Blue */
    --primary-color: #111d33;
    --secondary-color: #111d33;
    --text-secondary: #94a3b8;
    --text-color: #f8fafc;
    --card-bg: rgba(17, 29, 51, 0.85);
    --bg-color: #0a1628;
    --bg-gradient-start: #162541;
    --bg-gradient-end: #0a1628;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: var(--bg-color);
    padding-top: 100px;
    /* Space for fixed nav + breathing room */
}

/* ── MLYK GLOBAL NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(9, 26, 12, 0.93);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    z-index: 1000;
    padding: 0 2rem;
}

body.theme-en nav {
    background: rgba(10, 22, 40, 0.92);
}

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

.nav-brand {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #F8FAFC;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-brand span {
    color: #C9A84C;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #C9A84C;
}

.nav-lang-pill {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.nav-lang-pill:hover {
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.35);
}

.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    nav {
        padding: 0 1.2rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(201, 168, 76, 0.1);
        z-index: 999;
    }

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

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1000;
    }

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

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

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

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

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 15%, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    z-index: -1;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 4rem;
    width: 100%;
}

.app-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Layout */
.layout-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 2rem;
    padding: 0 2rem 4rem 2rem;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto;
}

.app-container {
    flex: 1;
    max-width: 500px;
    padding: 0;
    transition: max-width 0.3s ease;
}

.app-container.full-width {
    max-width: 950px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

/* Options */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 1.2rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.option-btn.selected {
    background: rgba(229, 193, 101, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(229, 193, 101, 0.1);
}

.option-btn.selected::after {
    content: ' ✓';
    color: var(--accent-color);
    float: right;
}

/* Info Panel */
.info-panel {
    flex: 1;
    max-width: 400px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    display: none;
}

.info-panel.visible {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.info-panel.hidden {
    display: none;
}

.info-block {
    margin-bottom: 2.5rem;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block h3 {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.info-block p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(229, 193, 101, 0.5);
}

/* Buttons */
.btn-primary {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(229, 193, 101, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .layout-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .app-header h1 {
        font-size: 2.5rem;
    }

    .info-panel {
        width: 100%;
        max-width: 500px;
        margin-top: 0;
    }
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.flex-gap-1 {
    display: flex;
    gap: 1rem;
}

.hidden {
    display: none !important;
}

/* Result Page Styles */
.result-intro {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(229, 193, 101, 0.3);
}

.result-intro h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.result-intro p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #e0e0e0;
    font-size: 1.05rem;
}

.result-intro p:last-child {
    margin-bottom: 0;
}

/* Evaluation Blocks */
.evaluation-block {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    transition: transform 0.2s ease;
}

.evaluation-block:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

.evaluation-block h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.evaluation-block p {
    color: #d0d0d0;
    line-height: 1.7;
    font-size: 1rem;
}

.evaluation-block strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Recommendations Section */
.recommendations-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(229, 193, 101, 0.08);
    border-radius: 1.5rem;
    border: 2px solid rgba(229, 193, 101, 0.3);
}

.recommendations-section h3 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}

.recommendations-section ul {
    list-style: none;
    padding: 0;
}

.recommendations-section li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
    color: #e0e0e0;
    font-size: 1.05rem;
}

.recommendations-section li::before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.3rem;
}

.recommendations-section strong {
    color: #fff;
    font-weight: 600;
}

/* Why MLYK Section */
.why-mlyk-section {
    margin-top: 3rem;
    text-align: center;
    padding: 2.5rem;
    background: rgba(15, 38, 15, 0.5);
    border-radius: 1.5rem;
}

.why-mlyk-section h3 {
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.usp-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(229, 193, 101, 0.2);
    transition: all 0.3s ease;
}

.usp-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(229, 193, 101, 0.2);
}

.usp-item h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.usp-item p {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ── FOOTER STYLING ── */
.app-footer {
    margin-top: 4rem;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(229, 193, 101, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-decoration: none;
}

.footer-brand span {
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.75rem;
    line-height: 1.6;
    max-width: 800px;
}

.footer-copy a {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer-copy a:hover {
    color: var(--accent-color);
}

.tisax-disclaimer {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: block;
    opacity: 0.8;
}

/* Theme specifics for footer text colors if needed */
.theme-en .footer-links a {
    color: #94a3b8;
}

.theme-en .footer-copy {
    color: #64748b;
}

.theme-en .footer-copy a {
    color: inherit;
}

/* Desktop adjustment */
@media (min-width: 768px) {
    .app-footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }

    .footer-links {
        order: 2;
    }

    .footer-copy {
        order: 3;
        text-align: right;
    }
}