/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #FFD700;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-blue: #00D4FF;
    --accent-purple: #9945FF;
    --shadow-glow: rgba(212, 175, 55, 0.4);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    padding-top: 70px;
}

/* ===== ANIMAZIONE BACKGROUND ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.background-animation::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-gold), transparent);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.background-animation::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-purple), transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(100px, -100px) rotate(120deg); }
    66% { transform: translate(-50px, 100px) rotate(240deg); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.logo-icon {
    font-size: 1.8rem;
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    background: linear-gradient(135deg, var(--secondary-gold), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.burger-menu {
    width: 35px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.burger-menu:hover {
    transform: scale(1.1);
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: rgba(15, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--card-border);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
}

.sidebar-menu li.active a {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), transparent);
    color: var(--secondary-gold);
    border-left-color: var(--secondary-gold);
}

.sidebar-menu svg {
    flex-shrink: 0;
}

/* Submenu styles */
.sidebar-menu .menu-item-with-submenu {
    position: relative;
}

.sidebar-menu .menu-item-with-submenu > a {
    cursor: pointer;
    justify-content: space-between;
}

.sidebar-menu .submenu-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.sidebar-menu .menu-item-with-submenu.open .submenu-arrow {
    transform: rotate(90deg);
}

.sidebar-menu .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-menu .menu-item-with-submenu.open .submenu {
    max-height: 600px;
}

.sidebar-menu .submenu li a {
    padding: 12px 20px 12px 45px;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.sidebar-menu .submenu li a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
}

.sidebar-menu .submenu li.active a {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
    color: var(--secondary-gold);
    border-left-color: var(--secondary-gold);
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-gold), var(--primary-gold), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 40px var(--shadow-glow);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ===== CALCULATOR CARDS ===== */
.calculator-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 60px rgba(212, 175, 55, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.calculator-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 16px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 100px rgba(212, 175, 55, 0.3);
}

/* ===== CARD HEADER ===== */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow-glow);
    animation: pulse 2s ease-in-out infinite;
}

.icon-circle svg {
    color: var(--dark-bg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px var(--shadow-glow); }
    50% { transform: scale(1.05); box-shadow: 0 6px 30px var(--shadow-glow); }
}

.card-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ===== INPUT GROUPS ===== */
.input-group {
    margin-bottom: 24px;
}

.input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="number"] {
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input[type="number"]:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

input[type="number"]:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== SELECT INPUT ===== */
.select-input {
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

.select-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.select-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.select-input option {
    background: #1a1a2e;
    color: var(--text-primary);
    padding: 10px;
}

/* ===== RADIO BUTTONS ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.radio-label input[type="radio"]:checked ~ .radio-text {
    color: var(--primary-gold);
    font-weight: 600;
}

.radio-text {
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-bg);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.4),
        0 0 20px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

/* ===== RESULT BOX ===== */
.result-box {
    display: none;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(153, 69, 255, 0.15));
    border: 2px solid var(--primary-gold);
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
    animation: slideInUp 0.5s ease;
    box-shadow: 
        0 4px 20px rgba(212, 175, 55, 0.2),
        0 0 40px rgba(212, 175, 55, 0.1) inset;
}

.result-box.show {
    display: block;
}

.result-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: center;
}

.result-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item p {
    text-align: left;
}

.result-value {
    color: var(--secondary-gold);
    font-weight: 700;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.result-label {
    color: var(--accent-blue);
    font-weight: 600;
}

/* ===== INFO BOX ===== */
.info-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(153, 69, 255, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    animation: fadeIn 0.8s ease;
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--accent-blue);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.info-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.info-content ul {
    list-style: none;
    padding: 0;
}

.info-content li {
    padding: 8px 0;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 25px;
    position: relative;
}

.info-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* ===== DETAILED RESULT BOX ===== */
.result-box-detailed {
    display: none;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(153, 69, 255, 0.05));
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    animation: slideInUp 0.5s ease;
}

.result-title {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.result-card.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(153, 69, 255, 0.2));
    border-color: var(--primary-gold);
}

.result-card-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.result-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-gold);
    margin-bottom: 5px;
}

.result-card-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.result-breakdown {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-primary);
}

.breakdown-icon {
    font-size: 1.3rem;
}

.breakdown-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.breakdown-item.total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.breakdown-item.total .breakdown-label {
    font-weight: 700;
    color: var(--primary-gold);
}

.breakdown-item.total .breakdown-value {
    font-size: 1.4rem;
    color: var(--secondary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.breakdown-item.netto {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), transparent);
    padding: 15px;
    margin: 15px -20px 10px;
    border-radius: 8px;
}

.breakdown-item.netto .breakdown-label {
    color: var(--accent-blue);
    font-weight: 600;
}

.breakdown-item.netto .breakdown-value {
    color: var(--accent-blue);
    font-size: 1.5rem;
}

.breakdown-item.mensile {
    background: linear-gradient(90deg, rgba(153, 69, 255, 0.1), transparent);
    padding: 15px;
    margin: 10px -20px 0;
    border-radius: 8px;
}

.breakdown-item.mensile .breakdown-label {
    color: var(--accent-purple);
    font-weight: 600;
}

.breakdown-item.mensile .breakdown-value {
    color: var(--accent-purple);
    font-size: 1.3rem;
}

.tax-percentage {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.tax-percentage-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tax-percentage-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.tax-percentage-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.tax-percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-purple));
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    margin-top: 80px;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.calculator-card:nth-child(2) { animation-delay: 0.2s; }
.calculator-card:nth-child(3) { animation-delay: 0.4s; }
.calculator-card:nth-child(4) { animation-delay: 0.6s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .navbar {
        height: 60px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .sidebar {
        width: 280px;
        right: -280px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .calculator-card {
        padding: 24px;
    }

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

    .icon-circle {
        width: 48px;
        height: 48px;
    }

    .icon-circle svg {
        width: 20px;
        height: 20px;
    }

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

    .btn-primary {
        height: 54px;
        font-size: 1rem;
    }

    .result-box p {
        font-size: 1rem;
    }

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

    .info-box {
        flex-direction: column;
        padding: 20px;
    }

    .breakdown-label {
        font-size: 0.9rem;
    }

    .breakdown-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .main-title {
        font-size: 2rem;
    }

    .calculator-card {
        padding: 20px;
        border-radius: 16px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .card-header h2 {
        font-size: 1.3rem;
    }

    .sidebar {
        width: 100%;
        right: -100%;
    }

    .result-box-detailed {
        padding: 20px;
    }

    .result-breakdown {
        padding: 15px;
    }

    .breakdown-item.netto,
    .breakdown-item.mensile {
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* ===== SCROLLBAR CUSTOM ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-gold), var(--accent-purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-gold), var(--accent-blue));
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

::-moz-selection {
    background: var(--primary-gold);
    color: var(--dark-bg);
}
