/* ═══════════════════════════════════════════════════════════════
   SALARYANDWAGES.COM - MAIN CSS v3.2 (Performance Optimized)
   Glassmorphism 2.0 Design System
   
   FAVICON: Place favicon.svg in root directory
   LOGO: SW monogram embedded as data URI in .logo-icon
   
   ⚠️ FONTS: Loaded via <link> in HTML <head> for better performance
   Add this to your HTML <head> BEFORE the CSS link:
   
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap" rel="stylesheet">
   
   ═══════════════════════════════════════════════════════════════ */

/* @import REMOVED - was blocking render. Fonts now loaded in HTML */

/* ─────────────────────────────────────────────────────────────────
   1. CSS VARIABLES
   ───────────────────────────────────────────────────────────────── */
:root {
    --bg-dark: #0a0a0a;
    --bg-secondary: #0f0f14;
    --bg-tertiary: #16161f;
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-surface-hover: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-primary: #00f0ff;
    --neon-secondary: #7000ff;
    --neon-tertiary: #ff00aa;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --success: #00ff88;
    --warning: #ffb800;
    --gradient-hero: linear-gradient(135deg, #00f0ff 0%, #7000ff 50%, #ff00aa 100%);
    --gradient-mesh: radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.15), transparent 25%),
                     radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.15), transparent 25%);
    --shadow-glow: 0 0 40px rgba(0, 240, 255, 0.3);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

[data-theme="light"] {
    --bg-dark: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8eaed;
    --glass-surface: rgba(255, 255, 255, 0.8);
    --glass-surface-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-main: #0a0a0a;
    --text-muted: #52525b;
    --text-dim: #71717a;
    --gradient-mesh: radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.08), transparent 25%),
                     radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08), transparent 25%);
}

/* ─────────────────────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(to bottom, var(--neon-secondary), var(--neon-primary)); 
    border-radius: 4px; 
}

/* ─────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ───────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--neon-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ─────────────────────────────────────────────────────────────────
   4. ANIMATIONS
   ───────────────────────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 240, 255, 0.5); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─────────────────────────────────────────────────────────────────
   5. NAVIGATION
   ───────────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    /* SVG Logo als Background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='grad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2300f0ff'/%3E%3Cstop offset='50%25' style='stop-color:%237000ff'/%3E%3Cstop offset='100%25' style='stop-color:%23ff00aa'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='1' y='1' width='30' height='30' rx='6' fill='%230a0a0a'/%3E%3Crect x='1' y='1' width='30' height='30' rx='6' fill='none' stroke='url(%23grad)' stroke-width='1.5'/%3E%3Ctext x='16' y='22' font-family='Arial Black, sans-serif' font-size='13' font-weight='900' fill='url(%23grad)' text-anchor='middle' letter-spacing='-1'%3ESW%3C/text%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Verstecke den Text-Inhalt (das "S") */
    font-size: 0;
    color: transparent;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(to right, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--neon-primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

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

.theme-toggle,
.mobile-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-surface);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
    border-color: var(--neon-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

.mobile-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--neon-primary);
    background: rgba(0, 240, 255, 0.05);
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* ─────────────────────────────────────────────────────────────────
   5b. NAVIGATION DROPDOWN (Job Salaries with sub-items)
   ───────────────────────────────────────────────────────────────── */
.nav-item {
    position: relative;
}

.nav-item > a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-item > a:hover {
    color: var(--neon-primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-item > a::after {
    content: '▾';
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.3s;
}

.nav-item:hover > a::after {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.nav-dropdown a:hover {
    color: var(--neon-primary);
    background: rgba(0, 240, 255, 0.05);
    border-left-color: var(--neon-primary);
}

/* ─────────────────────────────────────────────────────────────────
   5c. UNIFIED CATEGORY CARDS (for all listing pages)
   ───────────────────────────────────────────────────────────────── */
.category-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

.category-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    border-color: var(--neon-primary);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 240, 255, 0.15), 0 0 80px rgba(139, 92, 246, 0.08);
}

.category-icon {
    font-size: 3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
    transition: transform 0.4s, filter 0.4s;
}

.category-card:hover .category-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.6));
}

.category-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.category-card:hover .category-info h3 {
    color: var(--neon-primary);
}

.category-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.category-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-primary);
    border-radius: 20px;
    color: var(--neon-primary);
    font-size: 0.8rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.category-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive for category cards */
@media (max-width: 600px) {
    .category-card {
        flex-direction: column;
        text-align: center;
    }
    .category-icon {
        margin: 0 auto;
    }
}

/* ─────────────────────────────────────────────────────────────────
   6. FOOTER
   ───────────────────────────────────────────────────────────────── */
.footer {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ─────────────────────────────────────────────────────────────────
   7. GLASS CARDS
   ───────────────────────────────────────────────────────────────── */
.glass-card {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--neon-primary), transparent 30%);
    opacity: 0.05;
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────
   8. PAGE LAYOUTS
   ───────────────────────────────────────────────────────────────── */
.main {
    max-width: 900px;
    margin: 0 auto;
    padding: 7rem 2rem 3rem;
}

.main-wide {
    max-width: 1200px;
}

.hero-header {
    text-align: center;
    margin-bottom: 3rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────
   9. CALCULATOR COMPONENTS
   ───────────────────────────────────────────────────────────────── */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

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

.calc-card {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.calc-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--neon-primary), transparent 30%);
    opacity: 0.05;
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

.calc-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────
   10. FORM INPUTS
   ───────────────────────────────────────────────────────────────── */
.input-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    color: var(--neon-primary);
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.calc-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 1rem 1rem 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.calc-input:focus {
    outline: none;
    border-color: var(--neon-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.calc-input.no-symbol {
    padding-left: 1rem;
}

.calc-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-select:focus {
    outline: none;
    border-color: var(--neon-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

/* ─────────────────────────────────────────────────────────────────
   11. RESULT BOXES
   ───────────────────────────────────────────────────────────────── */
.result-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.result-box.primary {
    background: linear-gradient(145deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.05));
    border-color: rgba(0, 240, 255, 0.3);
}

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

.result-value {
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-value.large {
    font-size: 2.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   12. TAX BREAKDOWN
   ───────────────────────────────────────────────────────────────── */
.tax-breakdown {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    z-index: 2;
}

.tax-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.tax-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.tax-row:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
    font-weight: 600;
}

.tax-label {
    color: var(--text-muted);
}

.tax-value {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--neon-primary);
}

/* ─────────────────────────────────────────────────────────────────
   13. TABLES
   ───────────────────────────────────────────────────────────────── */
.reference-section {
    margin-top: 2rem;
}

.reference-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    z-index: 2;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Table Spacing Fix - Consistent margins after tables */
.content-section table {
    margin-bottom: 1.5rem;
}

.content-section table + h3 {
    margin-top: 2rem;
}

.content-section table + p {
    margin-top: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────
   14. SALARY PAGE COMPONENTS
   ───────────────────────────────────────────────────────────────── */
.salary-hero {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.salary-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
}

.salary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .salary-grid { grid-template-columns: 1fr; }
    .salary-amount { font-size: 2.5rem; }
}

.salary-stat {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.salary-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.salary-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* ─────────────────────────────────────────────────────────────────
   15. CONTENT SECTIONS
   ───────────────────────────────────────────────────────────────── */
.content-section {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.content-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.content-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────
   16. INTERNAL LINKS
   ───────────────────────────────────────────────────────────────── */
.internal-links {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.internal-links h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.link-card {
    display: block;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.link-card:hover {
    border-color: var(--neon-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────────
   17. BUTTONS
   ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    color: white;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--neon-primary);
    color: var(--neon-primary);
}

.btn-outline:hover {
    background: var(--neon-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* ─────────────────────────────────────────────────────────────────
   18. HOMEPAGE SPECIFIC
   ───────────────────────────────────────────────────────────────── */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────────
   19. LEGAL PAGES
   ───────────────────────────────────────────────────────────────── */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 7rem 2rem 3rem;
}

.legal-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-main);
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────
   20. 404 PAGE
   ───────────────────────────────────────────────────────────────── */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-code {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.error-message {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ─────────────────────────────────────────────────────────────────
   21. UTILITIES
   ───────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ─────────────────────────────────────────────────────────────────
   22. RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .main {
        padding: 6rem 1.5rem 2rem;
    }
    
    .hero-section {
        padding: 5rem 1.5rem 3rem;
        min-height: auto;
    }
    
    .glass-card,
    .calc-card,
    .content-section {
        padding: 1.5rem;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .result-value.large {
        font-size: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.75rem 1rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   PREMIUM PAGE HEADER STYLES v4.2
   ───────────────────────────────────────────────────────────────── */

/* Animated Gradient H1 - Text only, not emojis */
.page-header h1 .text,
.section-header h2,
h1.gradient-title {
    background: linear-gradient(135deg, #ffffff 0%, #00f0ff 40%, #8b5cf6 70%, #ec4899 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Page Header - Same background as footer */
.page-header {
    padding: 7rem 2rem 3rem;
    text-align: center;
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Emoji icons stay normal */
.page-header h1 .icon {
    -webkit-text-fill-color: initial;
    background: none;
    font-style: normal;
}

.page-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Custom Scrollbar Enhanced */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f0ff, #8b5cf6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d4e0, #7c3aed);
}

/* Enhanced Card Styles */
.calc-card,
.guide-card,
.article-card,
.cat-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.calc-card::before,
.guide-card::before,
.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.calc-card:hover::before,
.guide-card:hover::before,
.cat-card:hover::before {
    opacity: 1;
}

.calc-card:hover,
.guide-card:hover,
.cat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 240, 255, 0.15), 0 0 80px rgba(139, 92, 246, 0.08);
}

/* Icon Styles - No filter, keep original appearance */
.calc-icon,
.cat-icon {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.calc-card:hover .calc-icon,
.cat-card:hover .cat-icon {
    transform: scale(1.1);
}

/* Badge Glow */
.calc-badge {
    position: relative;
    overflow: hidden;
}

.calc-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Search Box Enhanced */
.search-box input:focus {
    border-color: var(--neon-primary);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.25), inset 0 0 20px rgba(0, 240, 255, 0.03);
    transform: scale(1.01);
}

/* Filter Tags Enhanced */
.filter-tag {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-tag:hover,
.filter-tag.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.2);
}

/* Article Cards Enhanced */
.article-card:hover {
    transform: translateY(-6px) scale(1.01);
}

.article-card .salary {
    background: linear-gradient(90deg, #00f0ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Results Count */
.results-count {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.results-count:hover {
    opacity: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Legal Content Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.legal-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--text-main);
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Error Page */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-content .error-code {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00f0ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-content .error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.error-content .error-message {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Light Mode Adjustments */
[data-theme="light"] .page-header::before {
    opacity: 0.5;
}

[data-theme="light"] .calc-card,
[data-theme="light"] .guide-card,
[data-theme="light"] .article-card {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .page-title,
[data-theme="light"] .hero-header .page-title,
[data-theme="light"] h1.page-title,
[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0891b2, #7c3aed) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="light"] .hero-header .badge {
    background: linear-gradient(135deg, rgba(0, 196, 204, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(0, 196, 204, 0.5);
    color: #0891b2;
}

[data-theme="light"] .salary-hero {
    background: linear-gradient(135deg, rgba(0, 196, 204, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(0, 196, 204, 0.2);
}

[data-theme="light"] .salary-amount {
    background: linear-gradient(90deg, #00a8b0, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .salary-stat-value {
    color: #0891b2;
}

[data-theme="light"] .subtitle {
    color: #52525b;
}

[data-theme="light"] h2 {
    background: linear-gradient(90deg, #0e7490, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] h3 {
    color: #0e7490;
}

[data-theme="light"] .content-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(0, 196, 204, 0.03));
    border: 1px solid rgba(0, 196, 204, 0.15);
}

[data-theme="light"] table {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] th {
    background: linear-gradient(90deg, rgba(0, 196, 204, 0.15), rgba(139, 92, 246, 0.1));
    color: #0e7490;
}

[data-theme="light"] a {
    color: #0891b2;
}

[data-theme="light"] a:hover {
    color: #7c3aed;
}

[data-theme="light"] .internal-links .link-card {
    background: linear-gradient(135deg, rgba(0, 196, 204, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(0, 196, 204, 0.2);
    color: #0e7490;
}

[data-theme="light"] .internal-links .link-card:hover {
    background: linear-gradient(135deg, rgba(0, 196, 204, 0.2), rgba(139, 92, 246, 0.1));
    border-color: #0891b2;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 196, 204, 0.2);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #00b4c4, #8b5cf6);
}

[data-theme="light"] .btn-outline {
    border-color: #0891b2;
    color: #0891b2;
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(0, 196, 204, 0.1);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f5f5f5;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00c4cc, #8b5cf6);
}
