/* ── HEADER STYLES ── Shared across all pages ── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #FAF9F5;
    color: #1A1F1D;
}

/* ── TOP BAR ── */
.top-bar {
    background: #1A1F1D;
    color: white;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    min-height: 68px;
}

/* ── LOGO ── */
.top-bar .brand-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    flex-shrink: 0;
}

.top-bar .brand-link {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #E68A80, #EBB390, #E8BC74, #3E6B57, #5C82A6, #8F7CA5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-decoration: none;
}

.top-bar .brand-url {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: -0.15rem;
    text-decoration: none;
}

/* ── NAV LINKS ── */
.top-bar .nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.top-bar .nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.top-bar .nav-links a:hover {
    color: white;
}

.top-bar .nav-links a.active {
    color: #E8BC74;
}

/* ── HEADER ACTIONS ── */
.top-bar .header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.top-bar .header-actions select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    outline: none;
    cursor: pointer;
    min-width: 100px;
    height: 30px;
}

.top-bar .header-actions select option {
    background: #1A1F1D;
    color: white;
}

.top-bar .header-actions select:focus {
    border-color: #E8BC74;
}

.top-bar .header-actions .action-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.top-bar .header-actions .currency-option {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    height: 28px;
}

.top-bar .header-actions .currency-option:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.top-bar .header-actions .currency-option[aria-checked="true"] {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .top-bar {
        padding: 0.5rem 1.2rem;
        gap: 0.5rem;
    }
    .top-bar .brand-link {
        font-size: 1.5rem;
    }
    .top-bar .nav-links {
        gap: 0.8rem;
    }
    .top-bar .nav-links a {
        font-size: 0.72rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0.8rem;
        gap: 0.4rem;
        min-height: auto;
    }
    .top-bar .brand-group {
        align-items: center;
    }
    .top-bar .brand-link {
        font-size: 1.4rem;
    }
    .top-bar .brand-url {
        font-size: 0.6rem;
    }
    .top-bar .nav-links {
        justify-content: center;
        gap: 0.6rem;
    }
    .top-bar .nav-links a {
        font-size: 0.68rem;
    }
    .top-bar .header-actions {
        justify-content: center;
        gap: 0.4rem;
    }
    .top-bar .header-actions select {
        font-size: 0.65rem;
        min-width: 80px;
        height: 26px;
        padding: 0.15rem 0.4rem;
    }
    .top-bar .header-actions .action-label {
        font-size: 0.6rem;
    }
    .top-bar .header-actions .currency-option {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .top-bar .brand-link {
        font-size: 1.2rem;
    }
    .top-bar .brand-url {
        font-size: 0.5rem;
    }
    .top-bar .nav-links a {
        font-size: 0.6rem;
        gap: 0.4rem;
    }
    .top-bar .header-actions select {
        font-size: 0.58rem;
        min-width: 60px;
        height: 22px;
    }
    .top-bar .header-actions .currency-option {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
        height: 20px;
    }
}