/* ==========================================================================
   SALARY VIEW - ProxWide
   ========================================================================== */

.salary-page {
    background: var(--bg-body);
    min-height: 100vh;
    color: var(--text-main);
    padding: var(--space-xl);
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* HEADER & UTILS */
.salary-page .header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    gap: 20px;
}

.salary-page .main-title {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 4px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.salary-page .current-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.salary-page .btn-config {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
}

.salary-page .btn-config:hover {
    background: var(--bg-input);
    border-color: var(--primary);

    box-shadow: var(--shadow-sm);
}

/* TOP STATS CARDS */
.salary-page .top-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.salary-page .stat-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.salary-page .stat-mini-card:hover {
    border-color: var(--primary);

}

.salary-page .stat-mini-card .icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.salary-page .stat-mini-card.worked .icon-box {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.salary-page .stat-mini-card .content {
    display: flex;
    flex-direction: column;
}

.salary-page .stat-mini-card .label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.salary-page .stat-mini-card .value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* HERO CARD */
.salary-page .hero-salary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    gap: 20px;
}

.salary-page .hero-salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--success);
}

.salary-page .hero-salary-card .info-block {
    display: flex;
    flex-direction: column;
}

.salary-page .hero-salary-card .label {
    font-size: 12px;
    font-weight: 800;
    color: var(--success);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.salary-page .hero-salary-card .main-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.salary-page .hero-salary-card .sub-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 500;
}

.salary-page .btn-premium-detail {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.salary-page .btn-premium-detail:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* OBJECTIVES SECTION */
.salary-page .section-container {
    margin-top: 35px;
}

.salary-page .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

@media (max-width: 640px) {
    .salary-page .section-header {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .salary-page .btn-simulateur-trigger {
        width: 100%;
        justify-content: center;
    }
}

.salary-page .section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.salary-page .btn-simulateur-trigger {
    background: linear-gradient(135deg, var(--info), #0ea5e9);
    border: none;
    color: #FFF;
    font-size: 12px;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
    white-space: nowrap;
}

.salary-page .btn-simulateur-trigger:hover {

    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.3);
    filter: brightness(1.1);
}

/* OBJECTIVES GRID */
.salary-page .objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.salary-page .objective-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.salary-page .objective-card-v2:hover {
    border-color: var(--primary);

}

.salary-page .obj-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.salary-page .obj-top .title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

.salary-page .obj-top .target {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.salary-page .badge-status {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--info);
}

.salary-page .progress-row {
    margin-bottom: 12px;
}

.salary-page .progress-bar-glow {
    height: 8px;
    background: var(--bg-input);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.salary-page .bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.salary-page .bar-fill.cyan {
    background: var(--info);
}

.salary-page .bar-fill.green {
    background: var(--success);
}

.salary-page .obj-footer-v2 {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.salary-page .gap-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}

.salary-page .gap-tag.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.salary-page .gap-tag.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* SALARY BANNER */
.salary-page .salary-banner-premium {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    margin-top: 35px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    /* Removed overflow: hidden to allow natural wrapping/scrolling if needed */
}

@media (max-width: 500px) {
    .salary-page .salary-banner-premium {
        padding: 15px;
    }

    .salary-page .banner-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        flex-wrap: wrap;
        /* Ensure header content can wrap */
    }
}

.salary-page .banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.salary-page .banner-header .label {
    font-size: 14px;
    font-weight: 800;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.salary-page .btn-reinit-small {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.salary-page .btn-reinit-small:hover {
    border-color: var(--warning);
    color: var(--warning);
}

.salary-page .banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    margin-block: 20px;
    gap: 20px;
}

.salary-page .banner-item .val {
    font-size: 2rem;
    font-weight: 900;
    display: block;
    line-height: 1.1;
    margin-bottom: 4px;
    color: var(--text-main);
}

.salary-page .banner-item .lab {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.salary-page .salary-progress-wrap {
    position: relative;
    margin-top: 15px;
}

.salary-page .progress-large {
    height: 12px;
    background: var(--bg-input);
    border-radius: 20px;
}

.salary-page .fill-rainbow {
    background: linear-gradient(90deg, #8b5cf6, var(--info), var(--success));
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.salary-page .banner-details-tip {
    margin-top: 20px;
    background: var(--bg-input);
    padding: 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
    border: 1px dashed var(--border-color);
}

.salary-page .banner-details-tip b {
    color: var(--text-main);
}

/* FREEPROXI SECTION */
.salary-page .freeproxi-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
}

.salary-page .freeproxi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.salary-page .freeproxi-header .title {
    font-size: 14px;
    font-weight: 800;
    color: var(--info);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.salary-page .freeproxi-header .sync-badge {
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 20px;
}

.salary-page .freeproxi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.salary-page .fp-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.salary-page .fp-stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: rgba(59, 130, 246, 0.02);
}

.salary-page .fp-stat-card .fp-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    opacity: 0.7;
}

.salary-page .fp-stat-card:hover .fp-icon {
    color: var(--primary);
    opacity: 1;
}

.salary-page .fp-stat-card .value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.salary-page .fp-stat-card .value.highlight {
    color: var(--info);
}

.salary-page .fp-stat-card .label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.salary-page .fp-projection-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.salary-page .fp-projection-info {
    flex: 1;
}

.salary-page .fp-projection-info .proj-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.salary-page .fp-projection-info .proj-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--success);
}

.salary-page .fp-projection-info .proj-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.salary-page .fp-progress-wrap {
    flex: 2;
}

.salary-page .fp-progress-dual {
    height: 12px;
    background: var(--bg-input);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.salary-page .fp-progress-real {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--info);
    border-radius: 20px;
    z-index: 2;
}

.salary-page .fp-progress-projected {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    z-index: 1;
}

.salary-page .fp-progress-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.salary-page .fp-no-data {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

/* PRODUCTION SECTION */
.salary-page .production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.salary-page .prod-counter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1;
}

.salary-page .prod-counter-card:hover {
    border-color: var(--primary);

    box-shadow: var(--shadow-md);
}

.salary-page .prod-counter-card .pts-badge {
    font-size: 11px;
    font-weight: 800;
    background: var(--bg-input);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.salary-page .prod-counter-card .name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.2;
}

.salary-page .counter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.salary-page .btn-step {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-main);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.4rem;
}

.salary-page .btn-step:hover {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
    transform: scale(1.1);
}

.salary-page .counter-val {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    min-width: 40px;
}

/* MODAL STYLES */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.custom-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 480px;
    border-radius: 28px;
}

.custom-modal-content .modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
}

.custom-modal-content .modal-header h3,
.custom-modal-content .modal-header h4 {
    margin: 0;
    font-weight: 800;
    color: var(--text-main);
}

.custom-modal-content .modal-body {
    padding: 25px;
}

.custom-modal-content .btn-close-x {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-content .btn-close-x:hover {
    background: var(--bg-input);
    color: var(--danger);
    transform: rotate(90deg);
}

/* SIMULATOR STYLES */
.sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.sim-input-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.premium-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.premium-input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.premium-input-wrapper input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 12px 16px 12px 42px;
    border-radius: 14px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-apply-sim {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-apply-sim:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-apply-sim:active {
    transform: translateY(0);
}

.sim-section {
    background: var(--bg-input);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.btn-ctrl-sim {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.btn-ctrl-sim:hover {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
}

.btn-apply-sim {
    width: 100%;
    background: var(--primary);
    color: #FFF;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.btn-apply-sim:hover {
    filter: brightness(1.1);

    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* DETAILED MODAL V2 */
.detail-modal-content {
    max-width: 480px;
    /* Fixing the 'too wide' window issue */
    margin: 0 auto;
}

.sim-detail-v2 {
    max-width: 450px;
    /* Compacting for desktop */
    margin: 0 auto;
}

.sim-detail-v2 .detail-section {
    margin-bottom: 20px;
}

.sim-detail-v2 .section-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
    padding-left: 8px;
}

.sim-detail-v2 .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.sim-detail-v2 .item strong {
    color: var(--text-main);
    font-weight: 700;
}

.salary-page .btn-comprendre {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.salary-page .btn-comprendre:hover {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
}

/* GUIDE MODAL */
.guide-content {
    max-width: 600px !important;
}

.guide-body {
    padding: 30px !important;
}

.guide-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
}

.formula-card {
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
}

.formula-box {
    text-align: center;
    margin-block: 15px;
}

.main-formula {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--info);
    margin-bottom: 5px;
}

.sub-formula {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.tip-box {
    font-size: 12px;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.guide-section {
    position: relative;
    padding-left: 50px;
}

.section-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    color: #FFF;
}

.points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.point-item {
    background: var(--bg-input);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

.point-item strong {
    font-size: 1.2rem;
    color: var(--info);
}

.point-item span {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 4px;
}

.detail-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 15px;
}

.detail-header {
    font-size: 12px;
    font-weight: 800;
    color: #f59e0b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.check-list li {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li::before {
    content: '✓';
    color: #10b981;
    font-weight: 900;
}

.info-card.dark {
    background: var(--bg-input);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
}

.bullet-list {
    padding-left: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.sales-tiers {
    display: flex;
    gap: 10px;
}

.tier {
    flex: 1;
    background: var(--bg-input);
    padding: 15px 10px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.tier.featured {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.tier strong {
    font-size: 1.5rem;
    color: #f59e0b;
    display: block;
    margin-block: 2px;
}

.sub-guide-card {
    background: var(--bg-input);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.sg-header {
    font-size: 13px;
    font-weight: 800;
    color: #8b5cf6;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.bm {
    font-size: 10px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    padding: 4px;
    border-radius: 6px;
    text-align: center;
}

.dg-grid {
    display: flex;
    gap: 8px;
}

.dg {
    flex: 1;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 8px;
    border-radius: 10px;
    text-align: center;
}

.dg strong {
    font-size: 13px;
    color: #34d399;
}

.error-style {
    border-top: 1px solid rgba(239, 68, 68, 0.2);
    padding-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Salary Page)
   ========================================================================== */

@media (max-width: 768px) {
    .salary-page {
        padding: var(--space-md);
    }

    .salary-page .header-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .salary-page .main-title {
        font-size: 1.6rem;
    }

    .salary-page .btn-config {
        width: 100%;
        justify-content: center;
    }

    .salary-page .hero-salary-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .salary-page .hero-salary-card .main-amount {
        font-size: 2rem;
    }

    .salary-page .btn-premium-detail {
        width: 100%;
        text-align: center;
    }

    .salary-page .banner-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        text-align: left;
        /* Better readability when stacked */
    }

    .salary-page .banner-item .val {
        font-size: 1.6rem;
    }

    .salary-page .fp-projection-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .salary-page .fp-progress-wrap {
        width: 100%;
    }

    .sim-grid {
        grid-template-columns: 1fr;
    }

    .salary-page .production-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .salary-page .points-grid {
        grid-template-columns: 1fr;
    }

    .sales-tiers {
        flex-direction: column;
    }

    .benchmarks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .salary-page .production-grid {
        grid-template-columns: 1fr;
    }

    .salary-page .prod-counter-card {
        aspect-ratio: auto;
        min-height: 150px;
    }

    .salary-page .counter-val {
        font-size: 2rem;
    }

    .salary-page .banner-grid {
        grid-template-columns: 1fr !important;
    }
}

/* MANUAL FALLBACK PREMIUM CARD */
.salary-page .manual-fallback-premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.salary-page .manual-fallback-premium-card:hover {
    border-color: var(--primary);

    box-shadow: var(--shadow-xl);
}

.salary-page .manual-fallback-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--info));
}

.salary-page .card-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.salary-page .card-info-side {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.salary-page .icon-avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.salary-page .text-content .card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.salary-page .text-content .card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.salary-page .card-input-side {
    flex: 1;
    max-width: 400px;
}

.salary-page .input-premium-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.salary-page .input-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.salary-page .input-with-action {
    display: flex;
    gap: 12px;
}

.salary-page .input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.salary-page .input-icon {
    position: absolute;
    left: 15px;
    color: var(--primary);
    font-size: 1.1rem;
    opacity: 0.6;
}

.salary-page .premium-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 60px 14px 45px;
    /* Increased right padding to 60px */
    color: #FFF;
    font-size: 1.25rem;
    font-weight: 800;
    outline: none;
    transition: 0.2s;
    appearance: none;
    /* Standard property */
    -moz-appearance: textfield;
    /* Hide Firefox spin buttons */
}

/* Hide Chrome, Safari, Edge, Opera spin buttons */
.salary-page .premium-input::-webkit-outer-spin-button,
.salary-page .premium-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.salary-page .premium-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.salary-page .input-unit {
    position: absolute;
    right: 20px;
    /* Adjusted right position */
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
}

.salary-page .btn-save-premium {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: none;
    background: var(--primary);
    color: #FFF;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.salary-page .btn-save-premium:hover {
    transform: scale(1.05) rotate(5deg);
    filter: brightness(1.1);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.salary-page .input-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.salary-page .card-decoration {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
}

@media (max-width: 900px) {
    .salary-page .card-content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .salary-page .card-input-side {
        max-width: 100%;
    }
}

/* MINI TAB BUTTONS (Contract Hours) */
.btn-tab-mini {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-tab-mini:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--text-main);
}

.btn-tab-mini.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}