html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

.app-layout {
    display: flex;
    /*width: 100%;*/
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 70px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    flex-shrink: 0;
    /*overflow-y: auto;*/
    /*overflow-x: hidden;*/
    box-sizing: border-box;
    z-index: 2;
/ / TODO background: linear-gradient(180 deg,
#121519 0 %,
#171a1f 100 %) !important;
    background-color: #121519;
!important;
    border-right: 1px solid #272c32;
}

.sidebar > .d-flex.align-items-center:first-child {
    padding: 0.25rem 0.25rem 0.75rem;
}

.user-panel {
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.user-panel:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white !important;
}

.user-avatar, .login-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
}

.user-avatar {
    color: rgba(255, 255, 255, 0.9);
}

.login-icon {
    color: rgba(255, 255, 255, 0.9);
}

.login-panel {
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.login-panel:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.login-panel:hover .login-icon {
    background: rgba(255, 255, 255, 0.15);
}

.login-panel strong {
    line-height: 1.2;
}

.login-panel small {
    font-size: 0.75rem;
}

.user-panel .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.dropdown-menu {
    background: #121519 !important;
    z-index: 3;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.6rem 0.9rem;
}

.dropdown-item i {
    width: 1.2rem;
    text-align: center;
}

/* Main content */
.main-content {
    margin-left: 280px;
    width: calc(100% - 380px);
    max-width: calc(100% - 380px);
    min-width: 0;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Bootstrap container */
.main-content > .container,
.main-content > .container-fluid {
    /*width: 100%;*/
    /*max-width: 100%;*/
}

.result-card {
    /*width: 100%;*/
    /*max-width: 100%;*/
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
}

.result-card .row {
    /*max-width: 100%;*/
    margin-left: 0;
    margin-right: 0;
}

.result-card pre {
    /*max-width: 100%;*/
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(
            135deg,
            #3b82f6,
            #7c3aed
    );
    color: white;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(59, 130, 246, .4);
}

.analysis-box {
    background: #2b2b2b;
    border-radius: 16px;
    padding: 25px;
}

.success-box {
    border-top: 4px solid #22c55e;
}

.warning-box {
    border-top: 4px solid #facc15;
}

.badge-item {
    font-size: 1rem;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 20px;
}

.card {
    background: #121519;
    color: #f8f9fa;
    border: 1px solid #343a40;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
    width: 100%;
    max-width: 100%;
}

.section-title {
    font-weight: 700;
}

textarea {
    resize: vertical;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, .9);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.loading-spinner {
    width: 5rem;
    height: 5rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 606;
    margin-bottom: 3px;
    padding: 0 8px;
}

.sidebar-header i {
    font-size: 1.25rem;
    color: #0d6efd;
}

.resume-ai-blue {
    color: #0d6efd;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

/*.sidebar-brand {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 10px;*/
/*    font-size: 1.05rem;*/
/*    font-weight: 700;*/
/*}*/
.sidebar-brand i {
    /*font-size: 1.60rem;*/
}

.sidebar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-action {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.15rem;
    transition: all .2s ease;
}

.new-analysis {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

.new-analysis:hover {
    color: #fff;
    background: rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

.delete-analysis {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    cursor: pointer;
}

.delete-analysis:hover {
    color: #fff;
    background: rgba(220, 53, 69, 0.25);
    transform: translateY(-1px);
}

/* =========================
   History entries
   ========================= */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;

    padding-right: 5px;
    padding-top: 20px;
    padding-bottom: 20px;

    box-sizing: border-box;
}

.history-item {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease,
    transform 0.2s ease;
    color: #c7cbd1;
    border: 1px solid transparent;
}

.history-item:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.06);
}

.history-item strong {
    font-size: 0.9rem;
}

.history-item strong span {
    color: #0d6efd;
}

.history-item small {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 0.75rem;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================
    Account modal
   ========================= */
.account-modal .modal-dialog {
    max-width: 800px;
}

.account-modal .modal-content {
    background: #121519;
    color: #f8f9fa;
    border: 1px solid #343a40;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    overflow: hidden;
}

.account-modal .modal-header {
    border-bottom: 1px solid #343a40;
    padding: 1.25rem 1.5rem;
}

.account-modal .modal-body {
    padding: 0;
}

.account-modal .btn-close {
    filter: invert(1);
}

.account-tabs {
    border-bottom: 1px solid #343a40;
    padding: 0 1.5rem;
}

.account-tabs .nav-link {
    color: #adb5bd;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 1rem 1.25rem;
}

.account-tabs .nav-link:hover {
    color: #fff;
}

.account-tabs .nav-link.active {
    color: #fff;
    background: transparent;
    border-bottom-color: #0d6efd;
}

.account-tab-content {
    padding: 2rem;
}

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, .8);
}

.profile-username {
    font-size: 1.4rem;
    font-weight: 700;
}

.profile-email {
    color: #adb5bd;
}

/* Statistics */
.stat-card {
    /*background: #272727;*/
    background-color: rgb(22, 23, 25);
    border: 1px solid #343434;
    border-radius: 15px;
    padding: 1.25rem;
    height: 100%;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: .75rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    color: #adb5bd;
    font-size: .9rem;
}

/* Settings */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section-title {
    font-weight: 700;
    margin-bottom: .5rem;
}

.settings-description {
    color: #adb5bd;
    font-size: .9rem;
    margin-bottom: 1rem;
}

/* Markdown */
.ai-markdown {
    line-height: 1.7;
}

.ai-markdown h1,
.ai-markdown h2,
.ai-markdown h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.ai-markdown p {
    margin-bottom: 1rem;
}

.ai-markdown ul,
.ai-markdown ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.ai-markdown a {
    color: #0d6efd;
}

.ai-markdown code {
    background: #2b2b2b;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

/* =========================
Language Switcher
========================= */
.language-switcher {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    gap: 1px;
    background: #172125;
    border: 1px solid #343a40;
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35),
    0 2px 8px rgba(0, 0, 0, .2);
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 42px;
    height: 25px;
    padding: 0 6px;
    border-radius: 999px;
    color: #adb5bd;
    text-decoration: none;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
}

.language-option:hover {
    color: #f8f9fa;
    background: #343a40;
}

.language-option.active {
    color: #fff;
    background: linear-gradient(
            135deg,
            #0d6efd,
            #0c00d7
    );
    box-shadow: 0 2px 6px rgba(13, 110, 253, .3);
}

.language-option:active {
    transform: scale(.94);
}

.language-flag {
    font-size: .8rem;
    line-height: 1;
}

.history-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    line-height: 1;
}

.flag {
    display: flex;
    align-items: center;
    margin-left: auto;
    line-height: 1;
}

.history-language {
    font-size: 1rem;
    line-height: 1;
}

.resume-ai-blue {
    color: #0d6efd;
    transition: all 0.25s ease;
}

.resume-ai-blue:hover {
    color: #5e98ee;
    text-shadow: 0 0 12px rgba(13, 110, 253, 0.8);
    transform: scale(1.08);
}

.analysis-box {
    background-color: #191d22;
!important;
}

.alert-light {
    background-color: #121519;
}

#groqModel {
    background-color: rgb(22, 23, 25);
}

/* iPhone clickability */
.user-panel {
    min-height: 52px;
    cursor: pointer;
}

.list-group-item {
    background-color: #121519;
!important;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 991px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .main-content {
        margin-left: 0;
    }
}

/* =========================================================
   Responsive layout
   ========================================================= */
/* Large desktop */
@media (min-width: 1200px) {
    .main-content > .container {
        max-width: 1100px;
    }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1199.98px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
        width: calc(100% - 240px);
        max-width: calc(100% - 240px);
    }

    .main-content > .container {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .card {
        padding: 2rem !important;
    }
}

/* =========================================================
   Small tablet / large phone
   ========================================================= */
@media (max-width: 991.98px) {
    .app-layout {
        display: block !important;
        min-height: 100vh;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        border-right: none;
        border-bottom: 1px solid #343a40;
        padding: .75rem 1rem !important;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding: 0 !important;
    }

    .main-content > .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1.5rem !important;
    }

    /*
     * Don't let the history consume the whole screen
     * when the sidebar moves above the content.
     */
    .history-list {
        max-height: 220px;
        overflow-y: auto;
    }

    .sidebar-header {
        margin-bottom: 12px;
    }

    .card {
        padding: 1.5rem !important;
        border-radius: 16px;
    }

    .score-circle {
        width: 110px;
        height: 110px;
        font-size: 30px;
    }

    .analysis-box {
        padding: 20px;
    }
}

/* =========================================================
   iPhone / small phones
   ========================================================= */
@media (max-width: 575.98px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sidebar {
        padding: .65rem .75rem !important;
    }

    /*
     * Sidebar header
     */
    .sidebar > .d-flex.align-items-center:first-child {
        gap: 8px;
    }

    .sidebar > .d-flex.align-items-center:first-child
    .fs-4 {
        font-size: 1.2rem !important;
    }

    .sidebar > .d-flex.align-items-center:first-child
    .bi-stars {
        font-size: 1rem;
    }

    .resume-ai-blue .bi {
        font-size: 1.2rem !important;
    }

    /*
     * History
     */
    .sidebar-header {
        font-size: .9rem;
        padding: 0 4px;
    }

    .history-list {
        max-height: 180px;
        gap: 4px;
        padding-right: 2px;
    }

    .history-item {
        padding: 9px 10px;
    }

    .history-item strong {
        font-size: .85rem;
    }

    .history-item small {
        font-size: .7rem;
    }

    .history-language {
        font-size: .9rem;
    }

    /*
     * Main content
     */
    .main-content > .container {
        padding: 1rem .75rem !important;
    }

    .card {
        padding: 1rem !important;
        border-radius: 14px;
    }

    /*
     * Heading
     */
    .card h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .card h1 .bi {
        font-size: 1.35rem;
    }

    /*
     * Description
     */
    .card > p {
        font-size: .9rem;
        line-height: 1.55;
    }

    /*
     * Inputs
     */
    .form-control,
    .form-control-lg,
    .form-select {
        font-size: .95rem;
    }

    textarea.form-control {
        min-height: 180px;
    }

    /*
     * Score
     */
    .score-circle {
        width: 95px;
        height: 95px;
        font-size: 26px;
    }

    /*
     * Analysis sections
     */
    .analysis-box {
        padding: 15px;
        border-radius: 12px;
    }

    .badge-item {
        font-size: .85rem;
        padding: 8px 11px;
        margin: 3px;
    }

    /*
     * Results
     */
    .result-card {
        width: 100%;
        min-width: 0;
    }

    .result-card pre {
        font-size: .8rem;
        line-height: 1.5;
    }
}

/* =========================================================
   Very small iPhones
   ========================================================= */
@media (max-width: 390px) {
    .main-content > .container {
        padding-left: .6rem !important;
        padding-right: .6rem !important;
    }

    .card {
        padding: .85rem !important;
    }

    .card h1 {
        font-size: 1.35rem;
    }

    .score-circle {
        width: 85px;
        height: 85px;
        font-size: 23px;
    }

    .analysis-box {
        padding: 12px;
    }
}

/* User menu panel behavior on Mobile */
@media (max-width: 991.98px) {
    .sidebar {
        position: relative;
        z-index: 1000;
    }

    .main-content {
        position: relative;
        z-index: 1;
    }

    .dropdown-menu {
        z-index: 2000 !important;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        overflow: visible !important;
    }

    .history-list {
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        position: relative;
        z-index: 1000;
        overflow: visible !important;
    }

    .main-content {
        position: relative;
        z-index: 1;
    }

    .dropdown-menu {
        z-index: 2000 !important;
    }

    .user-panel {
        min-height: 52px;
        cursor: pointer;
    }
}

/* Loading overlay on Mobile */
@media (max-width: 450px) {
    .loading-overlay {
        max-width: 400px;
    }
}

/* =========================================================
    AI Career Tools
========================================================= */
.ai-tools-card {
    position: relative;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(
            145deg,
            rgb(18 21 25),
            rgba(255, 255, 255, 0.025)
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai-tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .25rem;
}

.ai-tools-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .45rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: rgb(13 125 253);
}

.ai-tools-eyebrow i {
    font-size: .85rem;
}

.ai-tools-header h4 {
    color: #fff;
}

/* Tool button */
.ai-tool-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 112px;
    padding: 1.15rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
    );
    transition: transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.ai-tool-btn:not(:disabled) {
    cursor: pointer;
}

.ai-tool-btn:not(:disabled):hover {
    transform: translateY(-3px);
    border-color: rgb(34 95 238);
    background: linear-gradient(
            145deg,
            rgba(110, 168, 254, 0.11),
            rgba(255, 255, 255, 0.035)
    );
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(110, 168, 254, 0.08);
}

.ai-tool-btn:not(:disabled):active {
    transform: translateY(-1px);
}

/* Icon */
.ai-tool-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
}

.salary-icon {
    color: #1bd99a;
    background: rgba(99, 230, 190, 0.1);
}

.interview-icon {
    color: rgb(13 125 253);
    background: rgba(116, 192, 252, 0.1);
}

.ats-icon {
    color: #eaa215;
    background: rgb(58 52 28 / 0.43);
}

/* Content */
.ai-tool-content {
    flex: 1;
    min-width: 0;
}

.ai-tool-title {
    margin-bottom: .3rem;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
}

.ai-tool-description {
    font-size: .78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.52);
}

/* Arrow */
.ai-tool-arrow {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.35);
    font-size: .9rem;
    transition: transform .2s ease,
    color .2s ease;
}

.ai-tool-btn:hover .ai-tool-arrow {
    color: rgb(13 125 253);
    transform: translate(2px, -2px);
}

/* Disabled / coming soon */
.ai-tool-disabled {
    opacity: .48;
    cursor: not-allowed !important;
}

.ai-tool-disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.075);
    background: linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
    );
    box-shadow: none;
}

.coming-soon-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #adb5bd;
    background: rgba(173, 181, 189, 0.1);
    border: 1px solid rgba(173, 181, 189, 0.12);
}

/* Mobile */
@media (max-width: 767.98px) {
    .ai-tools-card {
        padding: 1.25rem;
    }

    .ai-tool-btn {
        min-height: 96px;
    }

    .ai-tool-description {
        font-size: .75rem;
    }
}

.ai-tool-soon-button-content {
    padding-top: 26px;
}

/* Empty history panel */
.history-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.05),
            rgba(99, 102, 241, 0.08),
            rgba(13, 110, 253, .18),
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #9d6efd;
}

.history-empty-state h5 {
    font-weight: 700;
    margin-bottom: .75rem;
}

.history-empty-state p {
    opacity: .75;
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 576px) {
    .history-empty-state {
        padding: 2rem 1rem;
        margin: 0 0.5rem;
        border-radius: 0.75rem;
    }

    .history-empty-icon {
        font-size: 2.2rem;
    }

    .history-empty-state h5 {
        font-size: 1rem;
    }

    .history-empty-state p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .history-empty-state .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

#deleteBrowserAnalysesButton {
    cursor: pointer;
}

/* =========================================================
   Salary Result
   ========================================================= */
.salary-result-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(13, 110, 253, 0.18);
    background: radial-gradient(
            circle at 90% 0%,
            rgba(13, 110, 253, 0.12),
            transparent 38%
    ),
    #15191e;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Header */
.salary-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.salary-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #0d6efd;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.salary-result-title {
    margin: 0 0 7px;
    font-weight: 750;
}

.salary-result-subtitle {
    color: rgba(255, 255, 255, 0.58);
    max-width: 650px;
}

/* Confidence */
.salary-confidence {
    flex-shrink: 0;
    text-align: right;
}

.salary-confidence-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.salary-confidence-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #63a4ff;
}

/* Main range */
.salary-main-card {
    padding: 24px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.salary-main-label {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.salary-range {
    display: flex;
    align-items: center;
    gap: 18px;
}

.salary-range-value {
    min-width: 85px;
    font-size: 1.15rem;
    font-weight: 750;
}

.salary-range-value small {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    font-weight: 600;
}

.salary-range-high {
    text-align: right;
}

.salary-range-line {
    flex: 1;
}

.salary-range-track {
    position: relative;
    height: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
}

.salary-range-fill {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
            90deg,
            #0d6efd,
            #6f42c1
    );
}

.salary-range-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    border: 4px solid #0d6efd;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.15);
}

.salary-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
}

.salary-range-labels strong {
    color: #fff;
}

.salary-period {
    margin-top: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* Recommended expectation */
.salary-expectation-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(
            135deg,
            rgba(13, 110, 253, 0.12),
            rgba(111, 66, 193, 0.1)
    );
    border: 1px solid rgba(13, 110, 253, 0.18);
}

.salary-expectation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.14);
    color: #63a4ff;
    font-size: 1.35rem;
}

.salary-expectation-eyebrow {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.salary-expectation-value {
    margin-top: 2px;
    font-size: 1.8rem;
    font-weight: 850;
}

.salary-expectation-value span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
}

.salary-expectation-description {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

/* Three expectation cards */
.salary-expectation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.salary-expectation-item {
    padding: 17px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.salary-expectation-featured {
    border-color: rgba(13, 110, 253, 0.25);
    background: rgba(13, 110, 253, 0.06);
}

.salary-item-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.salary-expectation-item strong {
    display: block;
    font-size: 1.1rem;
}

.salary-expectation-item small {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.7rem;
}

/* Market position */
.salary-position-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
    padding: 17px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.salary-position-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(25, 135, 84, 0.12);
    color: #52c98a;
}

.salary-position-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.salary-position-value {
    margin: 2px 0;
    font-weight: 750;
}

.salary-position-card p {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.82rem;
}

/* Factors */
.salary-factors {
    margin-top: 23px;
}

.salary-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 750;
}

.salary-section-title i {
    color: #0d6efd;
}

.salary-factor-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.salary-factor {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.84rem;
}

.salary-factor i {
    margin-top: 2px;
    color: #0d6efd;
}

/* Explanation */
.salary-explanation {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.salary-explanation p {
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.7;
}

/* Mobile */
@media (max-width: 767px) {
    .salary-result-card {
        padding: 19px;
        border-radius: 15px;
    }

    .salary-result-header {
        flex-direction: column;
    }

    .salary-confidence {
        text-align: left;
    }

    .salary-range {
        gap: 9px;
    }

    .salary-range-value {
        min-width: 58px;
        font-size: 0.85rem;
    }

    .salary-range-value small {
        font-size: 0.6rem;
    }

    .salary-expectation-grid {
        grid-template-columns: 1fr;
    }

    .salary-expectation-card {
        align-items: flex-start;
    }
}

/* /* =====================================================
   Interview AI Result
   ===================================================== */
/* =========================
   Header
   ========================= */
.interview-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.interview-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: #a78bfa;
    margin-bottom: 10px;
}

.interview-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.interview-result-subtitle {
    color: #9ca3af;
    max-width: 650px;
    line-height: 1.6;
}

/* =========================
   Header stats
   ========================= */
.interview-header-stats {
    display: flex;
}

.interview-stat {
    min-width: 120px;
    padding: 18px 22px;
    border-radius: 18px;
    background: linear-gradient(
            145deg,
            rgba(139, 92, 246, .18),
            rgba(255, 255, 255, .04)
    );
    border: 1px solid rgba(139, 92, 246, .25);
    text-align: center;
}

.interview-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #c4b5fd;
}

.interview-stat span {
    font-size: .8rem;
    color: #9ca3af;
}

/* =========================
   Progress card
   ========================= */
.interview-progress-card {
    background: linear-gradient(
            145deg,
            rgba(255, 255, 255, .06),
            rgba(255, 255, 255, .025)
    );
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 20px;
}

.interview-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.interview-progress-header .interview-section-title {
    margin-bottom: 5px;
}

#interview-progress-text {
    color: #9ca3af;
    font-size: .9rem;
}

.interview-text-button {
    background: none;
    border: none;
    color: #a78bfa;
    font-weight: 600;
    transition: .2s;
}

.interview-text-button:hover {
    color: #ddd6fe;
}

.interview-progress-track {
    height: 10px;
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
    overflow: hidden;
}

.interview-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(
            90deg,
            #6366f1,
            #a855f7
    );
    transition: .4s;
}

/* =========================
   Toolbar
   ========================= */
.interview-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.interview-search {
    position: relative;
    flex: 1;
}

.interview-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.interview-search input {
    padding-left: 42px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    color: white;
    border-radius: 14px;
}

.interview-toolbar .form-select {
    width: 220px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    color: white;
    border-radius: 14px;
}

/* =========================
   Controls
   ========================= */
.interview-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.interview-primary-action {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 14px;
    padding: 13px 22px;
    font-weight: 700;
    color: white;
    background: linear-gradient(
            135deg,
            #6366f1,
            #9333ea
    );
    transition: .25s;
}

.interview-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, .35);
}

.interview-secondary-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: 600;
    color: #d1d5db;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: .25s;
}

.interview-secondary-action:hover {
    background: rgba(255, 255, 255, .1);
}

/* =========================
   Question list
   ========================= */
.interview-question-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =========================
   Question card
   ========================= */
.interview-question-card {
    background: linear-gradient(
            145deg,
            rgba(255, 255, 255, .06),
            rgba(255, 255, 255, .025)
    );
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 24px;
    transition: .25s;
}

.interview-question-card:hover {
    border-color: rgba(139, 92, 246, .35);
    transform: translateY(-2px);
}

.interview-question-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.interview-question-number {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(
            135deg,
            #6366f1,
            #a855f7
    );
    font-weight: 800;
}

/* =========================
   Question sections
   ========================= */
.interview-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.interview-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 10px;
}

.interview-section-content {
    color: #d1d5db;
    line-height: 1.7;
}

/* =========================
   Answer accordion
   ========================= */
.interview-answer-toggle {
    width: 100%;
    margin-top: 20px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px;
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .3);
    color: #ddd6fe;
    font-weight: 700;
}

.interview-answer {
    display: none;
    margin-top: 12px;
    padding: 18px;
    background: rgba(0, 0, 0, .25);
    border-radius: 14px;
    color: #e5e7eb;
    line-height: 1.7;
}

.interview-answer.visible {
    display: block;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 768px) {
    .interview-result-header {
        flex-direction: column;
    }

    .interview-toolbar {
        flex-direction: column;
    }

    .interview-toolbar .form-select {
        width: 100%;
    }

    .interview-controls {
        flex-direction: column;
    }

    .interview-primary-action,
    .interview-secondary-action {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   Interview Dashboard Premium Styling
   ===================================================== */
/* =========================
   Main Header
   ========================= */
.interview-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
}

.interview-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a78bfa;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 12px;
}

.interview-eyebrow i {
    font-size: 1rem;
}

.interview-result-title {
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: -.03em;
    margin-bottom: 10px;
    background: linear-gradient(
            90deg,
            #ffffff,
            #c4b5fd
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.interview-result-subtitle {
    color: #9ca3af;
    max-width: 650px;
    line-height: 1.7;
    font-size: .95rem;
}

/* =========================
   Question counter
   ========================= */
.interview-stat {
    position: relative;
    overflow: hidden;
    min-width: 130px;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(
            145deg,
            rgba(139, 92, 246, .22),
            rgba(59, 130, 246, .08)
    );
    border: 1px solid rgba(139, 92, 246, .35);
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
}

.interview-stat::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    top: -40px;
    right: -40px;
    background: #8b5cf6;
    filter: blur(40px);
    opacity: .35;
}

.interview-stat strong {
    position: relative;
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ddd6fe;
}

.interview-stat span {
    color: #cbd5e1;
    font-size: .85rem;
}

/* =========================
   Progress
   ========================= */
.interview-progress-card {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 22px;
}

.interview-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c4b5fd;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
}

#interview-progress-text {
    margin-top: 6px;
    color: #9ca3af;
    font-size: .9rem;
}

.interview-progress-track {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
}

.interview-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(
            90deg,
            #6366f1,
            #a855f7,
            #ec4899
    );
    box-shadow: 0 0 18px rgba(168, 85, 247, .6);
    transition: width .5s ease;
}

/* =========================
   Reset button
   ========================= */
.interview-text-button {
    border: none;
    background: none;
    color: #a78bfa;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .25s;
}

.interview-text-button:hover {
    color: white;
    transform: translateY(-1px);
}

/* =========================
   Search and filters
   ========================= */
.interview-toolbar {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.interview-search input,
.interview-toolbar .form-select {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #e5e7eb;
    border-radius: 16px;
    height: 48px;
}

.interview-search input::placeholder {
    color: #6b7280;
}

.interview-search i {
    color: #a78bfa;
}

.interview-toolbar .form-select {
    min-width: 220px;
}

.interview-toolbar .form-select option {
    background: #111827;
}

/* =========================
   Main Buttons
   ========================= */
.interview-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.interview-primary-action {
    position: relative;
    overflow: hidden;
    border: none;
    padding: 14px 24px;
    border-radius: 16px;
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(
            135deg,
            #6366f1,
            #9333ea
    );
    box-shadow: 0 12px 35px rgba(139, 92, 246, .35);
    transition: .3s;
}

.interview-primary-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(139, 92, 246, .55);
}

.interview-primary-action i {
    font-size: 1.2rem;
}

.interview-secondary-action {
    padding: 14px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #d1d5db;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .25s;
}

.interview-secondary-action:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(167, 139, 250, .5);
    color: white;
}

/* =========================
   Question cards
   ========================= */
.interview-question-card {
    background: linear-gradient(
            145deg,
            rgba(255, 255, 255, .065),
            rgba(255, 255, 255, .025)
    );
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 26px;
    transition: .3s;
}

.interview-question-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, .4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .3);
}

/* =========================
   Prepared checkbox
   ========================= */
.interview-prepared-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #9ca3af;
    font-size: .85rem;
}

.interview-prepared-toggle input {
    display: none;
}

.interview-checkmark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid rgba(167, 139, 250, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
}

.interview-prepared-toggle input:checked
+ .interview-checkmark {
    background: linear-gradient(
            135deg,
            #22c55e,
            #16a34a
    );
    border-color: #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, .45);
}

.interview-prepared-toggle input:checked
+ .interview-checkmark::after {
    content: "✓";
    color: white;
    font-weight: 900;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 768px) {
    .interview-result-header {
        flex-direction: column;
    }

    .interview-toolbar {
        flex-direction: column;
    }

    .interview-toolbar .form-select {
        width: 100%;
    }

    .interview-controls button {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   Interview Action Buttons
   ========================================================= */
.interview-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e9edf5;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.03)
    );
    backdrop-filter: blur(12px);
    cursor: pointer;
    overflow: hidden;
    transition: transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    background .25s ease;
}

/*
    Animated shine effect
*/
.interview-action-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
            120deg,
            transparent,
            rgba(255, 255, 255, .18),
            transparent
    );
    transform: skewX(-25deg);
    transition: left .6s ease;
}

.interview-action-btn:hover::before {
    left: 140%;
}

.interview-action-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, .55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35),
    0 0 25px rgba(99, 102, 241, .18);
}

.interview-action-btn i {
    font-size: 1.15rem;
    transition: transform .25s ease;
}

.interview-action-btn:hover i {
    transform: rotate(8deg) scale(1.15);
}

/* =========================================================
   AI Answer Button
   ========================================================= */
.interview-answer-btn {
    background: linear-gradient(
            135deg,
            rgba(99, 102, 241, .22),
            rgba(59, 130, 246, .12)
    );
    border-color: rgba(99, 102, 241, .35);
}

.interview-answer-btn i {
    color: #a5b4fc;
}

.interview-answer-btn:hover {
    background: linear-gradient(
            135deg,
            rgba(99, 102, 241, .35),
            rgba(59, 130, 246, .18)
    );
    box-shadow: 0 12px 35px rgba(99, 102, 241, .25);
}

/* =========================================================
   Practice / Complete Button
   ========================================================= */
.interview-complete-btn {
    background: linear-gradient(
            135deg,
            rgba(16, 185, 129, .18),
            rgba(5, 150, 105, .12)
    );
    border-color: rgba(16, 185, 129, .35);
}

.interview-complete-btn i {
    color: #6ee7b7;
}

.interview-complete-btn:hover {
    box-shadow: 0 12px 35px rgba(16, 185, 129, .25);
}

/* =========================================================
   Interview Mode Button
   ========================================================= */
.interview-primary-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 16px;
    border: none;
    color: white;
    font-weight: 700;
    background: linear-gradient(
            135deg,
            #6366f1,
            #3b82f6
    );
    box-shadow: 0 10px 30px rgba(59, 130, 246, .35);
    transition: transform .25s ease,
    box-shadow .25s ease;
}

.interview-primary-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(59, 130, 246, .5);
}

.interview-primary-action i {
    font-size: 1.25rem;
}

/* =========================================================
   Secondary buttons
   ========================================================= */
.interview-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 14px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    font-weight: 600;
    transition: .25s ease;
}

.interview-secondary-action:hover {
    color: white;
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .25);
    transform: translateY(-2px);
}

/* =========================================================
   Question card buttons
   ========================================================= */
.interview-question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, .06),
            rgba(255, 255, 255, .02)
    );
    border: 1px solid rgba(255, 255, 255, .08);
    color: #f8fafc;
    text-align: left;
    transition: .25s ease;
}

.interview-question-btn:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(99, 102, 241, .4);
}

.interview-question-btn .question-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, .2);
    color: #a5b4fc;
    font-weight: 700;
}

/* =========================================================
   Checkbox / completion
   ========================================================= */
.interview-checkbox {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .05);
    cursor: pointer;
    position: relative;
    transition: .2s ease;
}

.interview-checkbox:checked {
    background: linear-gradient(
            135deg,
            #6366f1,
            #3b82f6
    );
    border-color: transparent;
}

.interview-checkbox:checked::after {
    content: "✓";
    position: absolute;
    left: 4px;
    top: -1px;
    font-size: 15px;
    color: white;
    font-weight: 800;
}

#interviewResult {
    padding-top: 77px;
}

/* =========================================================
   Prepared Button
   ========================================================= */
.interview-prepared-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 16px 30px;
    border-radius: 18px;
    border: 1px solid rgba(16, 185, 129, .35);
    background: linear-gradient(
            135deg,
            rgba(16, 185, 129, .18),
            rgba(5, 150, 105, .08)
    );
    color: #d1fae5;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .25s ease,
    box-shadow .25s ease,
    background .25s ease,
    border-color .25s ease;
    position: relative;
    overflow: hidden;
}

.interview-prepared-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            120deg,
            transparent,
            rgba(255, 255, 255, .18),
            transparent
    );
    transform: translateX(-120%);
    transition: .6s ease;
}

.interview-prepared-btn:hover::before {
    transform: translateX(120%);
}

.interview-prepared-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(52, 211, 153, .8);
    box-shadow: 0 15px 40px rgba(16, 185, 129, .25);
}

.interview-prepared-btn i {
    font-size: 1.35rem;
    color: #6ee7b7;
    transition: .25s ease;
}

.interview-prepared-btn:hover i {
    transform: scale(1.2);
}

/* When completed */
.interview-prepared-btn.completed {
    background: linear-gradient(
            135deg,
            #059669,
            #10b981
    );
    color: white;
    border-color: transparent;
}

.interview-prepared-btn.completed i {
    color: white;
}

/* =========================================================
   Star Rating Buttons
   ========================================================= */
.interview-rating-star {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: transform .2s ease,
    background .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
    position: relative;
}

.interview-rating-star i {
    font-size: 1.25rem;
    transition: transform .2s ease;
}

.interview-rating-star:hover {
    transform: translateY(-3px) scale(1.08);
    color: #fbbf24;
    background: rgba(251, 191, 36, .12);
    border-color: rgba(251, 191, 36, .45);
    box-shadow: 0 8px 25px rgba(251, 191, 36, .25);
}

.interview-rating-star:hover i {
    transform: rotate(12deg);
}

/* Selected stars */
.interview-rating-star.active {
    color: #fbbf24;
    background: linear-gradient(
            135deg,
            rgba(251, 191, 36, .25),
            rgba(245, 158, 11, .15)
    );
    border-color: rgba(251, 191, 36, .7);
    box-shadow: 0 10px 30px rgba(251, 191, 36, .3);
}

.interview-rating-star.active i {
    animation: starPop .3s ease;
}

@keyframes starPop {
    0% {
        transform: scale(.7);
    }
    70% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}

/* =========================================================
   Rating container
   ========================================================= */
.interview-rating {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
}

/* =====================================================
   Premium Interview Question Layout
   ===================================================== */
.interview-question-card {
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(
            145deg,
            rgba(13, 110, 253, .10),
            rgba(255, 255, 255, .025)
    );
    border: 1px solid rgba(13, 110, 253, .18);
    transition: transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.interview-question-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 110, 253, .45);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .3);
}

/* =====================================================
   Header
   ===================================================== */
.interview-question-header {
    display: grid;
    grid-template-columns:
        auto 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.interview-question-number {
    width: 42px;
    height: 42px;
    font-size: .95rem;
    background: linear-gradient(
            135deg,
            #0d6efd,
            #6610f2
    );
    box-shadow: 0 8px 25px rgba(13, 110, 253, .35);
}

.interview-question-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.interview-category-badge,
.interview-difficulty-badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.interview-category-badge {
    color: #93c5fd;
    background: rgba(13, 110, 253, .15);
    border: 1px solid rgba(13, 110, 253, .3);
}

.interview-difficulty-medium {
    color: #fde68a;
    background: rgba(234, 179, 8, .12);
    border-color: rgba(234, 179, 8, .3);
}

.interview-difficulty-hard {
    color: #fca5a5;
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .3);
}

.interview-question-text {
    grid-column: 2;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
}

/* =====================================================
   Interviewer expectations
   ===================================================== */
.interview-looks-for {
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(13, 110, 253, .07);
    border: 1px solid rgba(13, 110, 253, .15);
}

.interview-looks-for-text {
    margin-bottom: 0;
    color: #cbd5e1;
    line-height: 1.6;
}

/* =====================================================
   Personal answer notebook
   ===================================================== */
.interview-practice {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
}

.interview-practice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.interview-practice-hint {
    font-size: .75rem;
    color: #94a3b8;
}

.interview-answer-input {
    min-height: 120px;
    resize: vertical;
    border-radius: 16px;
    background: rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .12);
    color: white;
    padding: 16px;
    line-height: 1.6;
}

.interview-answer-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .18);
}

/* =====================================================
   AI Answer Reveal
   ===================================================== */
.interview-ai-answer {
    margin-top: 16px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(
            145deg,
            rgba(13, 110, 253, .15),
            rgba(102, 16, 242, .08)
    );
    border: 1px solid rgba(13, 110, 253, .3);
    animation: aiReveal .35s ease;
}

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

.interview-ai-answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.interview-hide-answer {
    border: none;
    background: none;
    color: #93c5fd;
    font-size: .85rem;
    font-weight: 700;
}

.interview-ai-answer-text {
    line-height: 1.75;
    color: #e2e8f0;
}

/* =====================================================
   Key points
   ===================================================== */
.interview-key-points,
.interview-common-mistakes {
    margin-top: 18px;
    padding: 15px;
    border-radius: 14px;
}

.interview-key-points {
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .25);
}

.interview-common-mistakes {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .25);
}

.interview-key-points-list,
.interview-mistakes-list {
    margin: 10px 0 0 0;
    padding-left: 20px;
    color: #cbd5e1;
    line-height: 1.7;
}

/* =====================================================
   Footer
   ===================================================== */
.interview-question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* =====================================================
   Prepared button
   ===================================================== */
.interview-prepared-btn {
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
}

.interview-prepared-btn.is-prepared {
    background: linear-gradient(
            135deg,
            #198754,
            #20c997
    );
    box-shadow: 0 10px 30px rgba(25, 135, 84, .3);
}

/* =====================================================
   Rating
   ===================================================== */
.interview-self-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.interview-rating-label {
    font-size: .8rem;
    color: #94a3b8;
    margin-right: 5px;
}

.interview-rating-star {
    width: 36px;
    height: 36px;
    font-size: .9rem;
}

/* =====================================================
   Empty state
   ===================================================== */
.interview-empty-state {
    padding: 50px;
    text-align: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, .04);
    border: 1px dashed rgba(255, 255, 255, .15);
}

.interview-empty-icon {
    font-size: 2.5rem;
    color: #60a5fa;
}

/* =====================================================
   Mobile
   ===================================================== */
@media (max-width: 768px) {
    .interview-question-header {
        display: flex;
        flex-direction: column;
    }

    .interview-question-text {
        font-size: 1rem;
    }

    .interview-question-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .interview-self-rating {
        justify-content: center;
    }

    .interview-practice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =========================================================
   Interview AI Exception
   ========================================================= */
.interview-exception {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    background: radial-gradient(
            circle at 10% 20%,
            rgba(120, 100, 255, 0.10),
            transparent 35%
    ),
    radial-gradient(
            circle at 90% 80%,
            rgba(80, 180, 255, 0.07),
            transparent 35%
    ),
    rgba(255, 255, 255, 0.025);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: interviewExceptionAppear 0.45s ease-out;
}

/* Subtle ambient glow */
.interview-exception-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    top: -140px;
    left: -100px;
    border-radius: 50%;
    background: rgba(120, 100, 255, 0.12);
    filter: blur(60px);
    pointer-events: none;
}

/* Icon */
.interview-exception-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    background: linear-gradient(
            135deg,
            rgba(120, 100, 255, 0.18),
            rgba(80, 180, 255, 0.08)
    );
    border: 1px solid rgba(140, 120, 255, 0.22);
    box-shadow: 0 10px 30px rgba(80, 70, 180, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.interview-exception-icon i {
    font-size: 2rem;
    background: linear-gradient(
            135deg,
            #b8a8ff,
            #75cfff
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content */
.interview-exception-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
}

/* Eyebrow */
.interview-exception-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(170, 155, 255, 0.9);
}

.interview-exception-eyebrow i {
    font-size: 0.8rem;
}

/* Title */
.interview-exception-title {
    margin: 0 0 0.6rem;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bs-body-color);
}

/* Description */
.interview-exception-description {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* AI message */
.interview-exception-message-wrapper {
    margin-top: 1.35rem;
}

.interview-exception-message-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.interview-exception-message {
    padding: 0.9rem 1rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.16);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: break-word;
}

/* Retry */
.interview-exception-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.35rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid rgba(140, 120, 255, 0.25);
    border-radius: 0.7rem;
    background: rgba(120, 100, 255, 0.10);
    color: var(--bs-body-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.interview-exception-retry:hover {
    transform: translateY(-1px);
    background: rgba(120, 100, 255, 0.17);
    border-color: rgba(140, 120, 255, 0.4);
}

.interview-exception-retry:active {
    transform: translateY(0);
}

.interview-exception-retry i {
    font-size: 0.95rem;
}

/* Animation */
@keyframes interviewExceptionAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .interview-exception {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem;
        gap: 1.25rem;
    }

    .interview-exception-icon {
        width: 62px;
        height: 62px;
    }

    .interview-exception-icon i {
        font-size: 1.6rem;
    }

    .interview-exception-title {
        font-size: 1.2rem;
    }
}

/* =========================================================
   Salary AI Exception
   ========================================================= */
.salary-exception {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    overflow: hidden;
    padding: 2.25rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(70, 160, 255, 0.18);
    background: radial-gradient(
            circle at 0% 0%,
            rgba(60, 150, 255, 0.13),
            transparent 38%
    ),
    radial-gradient(
            circle at 100% 100%,
            rgba(60, 110, 255, 0.08),
            transparent 40%
    ),
    rgba(255, 255, 255, 0.018);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
    animation: salaryExceptionAppear 0.45s ease-out;
}

/* =========================================================
   Ambient blue glow
   ========================================================= */
.salary-exception-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    top: -180px;
    left: -100px;
    border-radius: 50%;
    background: rgba(60, 150, 255, 0.14);
    filter: blur(65px);
    pointer-events: none;
}

/* =========================================================
   AI icon
   ========================================================= */
.salary-exception-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.15rem;
    border: 1px solid rgba(80, 170, 255, 0.22);
    background: linear-gradient(
            135deg,
            rgba(70, 160, 255, 0.17),
            rgba(50, 110, 255, 0.07)
    );
    box-shadow: 0 12px 32px rgba(40, 110, 220, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.salary-exception-icon i {
    font-size: 1.9rem;
    background: linear-gradient(
            135deg,
            #7ecbff,
            #5c8cff
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================
   Content
   ========================================================= */
.salary-exception-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

/* =========================================================
   Eyebrow
   ========================================================= */
.salary-exception-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    color: rgba(105, 185, 255, 0.9);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.salary-exception-eyebrow i {
    font-size: 0.78rem;
}

/* =========================================================
   Title
   ========================================================= */
.salary-exception-title {
    margin: 0 0 0.55rem;
    color: var(--bs-body-color);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* =========================================================
   Description
   ========================================================= */
.salary-exception-description {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* =========================================================
   Details
   ========================================================= */
.salary-exception-details {
    margin-top: 1.25rem;
}

.salary-exception-details-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.salary-exception-details-label i {
    color: rgba(100, 180, 255, 0.75);
}

/* =========================================================
   Actual exception message
   ========================================================= */
.salary-exception-message {
    padding: 0.85rem 1rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(70, 150, 255, 0.10);
    background: rgba(20, 90, 160, 0.055);
    color: rgba(220, 235, 250, 0.72);
    font-size: 0.86rem;
    line-height: 1.55;
    word-break: break-word;
}

/* =========================================================
   Retry button
   ========================================================= */
.salary-exception-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.68rem 1.05rem;
    border: 1px solid rgba(75, 160, 255, 0.2);
    border-radius: 0.65rem;
    background: rgba(60, 140, 255, 0.08);
    color: var(--bs-body-color);
    font-size: 0.84rem;
    font-weight: 600;
    transition: transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.salary-exception-retry:hover {
    transform: translateY(-1px);
    background: rgba(60, 140, 255, 0.14);
    border-color: rgba(75, 160, 255, 0.35);
    box-shadow: 0 8px 22px rgba(40, 120, 220, 0.10);
}

.salary-exception-retry:active {
    transform: translateY(0);
}

.salary-exception-retry i {
    font-size: 0.9rem;
}

/* =========================================================
   Animation
   ========================================================= */
@keyframes salaryExceptionAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 768px) {
    .salary-exception {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.65rem;
    }

    .salary-exception-icon {
        width: 62px;
        height: 62px;
    }

    .salary-exception-icon i {
        font-size: 1.6rem;
    }

    .salary-exception-title {
        font-size: 1.2rem;
    }
}

/* =========================================================
   ACCOUNT TABS
   ========================================================= */
.account-tabs {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 4px;
    gap: 4px;
    list-style: none;
    background: rgb(18 21 25 / 0.95);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgb(18 21 25);
}

/* Each tab gets equal space */
.account-tabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
}

/* =========================================================
   TAB BUTTON
   ========================================================= */
.account-tabs .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    gap: 7px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Icons */
.account-tabs .nav-link i {
    font-size: 0.95rem;
    transition: transform 0.2s ease,
    color 0.2s ease;
}

/* =========================================================
   HOVER
   ========================================================= */
.account-tabs .nav-link:hover {
    color: #334155;
    background: rgb(18 21 25);
}

.account-tabs .nav-link:hover i {
    transform: translateY(-1px);
}

/* =========================================================
   ACTIVE
   ========================================================= */
.account-tabs .nav-link.active {
    color: #0d6efd;
    background: #121519;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.07),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.account-tabs .nav-link.active i {
    color: #4d6efd;
}

/* Small active indicator */
.account-tabs .nav-link.active::after {
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 18px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #0d6efd;
}

/* =========================================================
   MOBILE / iPHONE
   ========================================================= */
@media (max-width: 576px) {
    .account-tabs {
        padding: 3px;
        gap: 2px;
        border-radius: 12px;
    }

    .account-tabs .nav-link {
        min-height: 38px;
        padding: 6px 4px;
        gap: 5px;
        font-size: 0.76rem;
        border-radius: 9px;
    }

    .account-tabs .nav-link i {
        font-size: 0.85rem;
    }

    .account-tabs .nav-link.active::after {
        bottom: 2px;
        width: 14px;
        height: 2px;
    }
}

/* =========================================================
   HISTORY EMPTY STATE
   ========================================================= */
.history-empty-state {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 24px 18px 20px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(
            145deg,
            rgba(13, 110, 253, 0.075),
            rgba(13, 110, 253, 0.025) 55%,
            transparent
    );
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 14px;
}

/* =========================================================
   SUBTLE BACKGROUND GLOW
   ========================================================= */
.history-empty-glow {
    position: absolute;
    top: -45px;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translateX(-50%);
    background: rgba(13, 110, 253, 0.14);
    border-radius: 50%;
    filter: blur(35px);
    pointer-events: none;
}

/* =========================================================
   ICON
   ========================================================= */
.history-empty-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 13px;
    background: linear-gradient(
            145deg,
            rgba(13, 110, 253, 0.22),
            rgba(13, 110, 253, 0.08)
    );
    border: 1px solid rgba(13, 110, 253, 0.22);
    color: #6ea8fe;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.history-empty-icon i {
    font-size: 1.25rem;
    filter: drop-shadow(
            0 2px 5px rgba(13, 110, 253, 0.3)
    );
}

/* =========================================================
   CONTENT
   ========================================================= */
.history-empty-content {
    position: relative;
    z-index: 1;
    max-width: 280px;
}

.history-empty-content h5 {
    margin: 0 0 5px;
    color: #f8f9fa;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
}

.history-empty-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
    line-height: 1.45;
}

/* =========================================================
   BUTTON
   ========================================================= */
.history-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1.25rem;
    color: #fff;
    background: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 0.55rem;
    font-size: 0.95rem;
    font-weight: 500;
    /* Soft, premium ambient glow */
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.20),
    0 0 0 1px rgba(13, 110, 253, 0.05);
    transition: transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.25s ease;
}

.history-empty-button:hover {
    color: #fff;
    background: #0b63e5;
    border-color: #0b63e5;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25),
    0 0 0 1px rgba(13, 110, 253, 0.06);
}

.history-empty-button:active {
    color: #fff;
    background: #0a58ca;
    border-color: #0a58ca;
    transform: translateY(0);
    box-shadow: 0 3px 9px rgba(13, 110, 253, 0.20);
}

.history-empty-button .history-empty-arrow {
    font-size: 0.85rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.history-empty-button:hover .history-empty-arrow {
    transform: translateX(2px);
}

/* =========================================================
   MOBILE / STACKED SIDEBAR
   ========================================================= */
@media (max-width: 576px) {
    .history-empty-state {
        padding: 16px 14px 14px;
        border-radius: 12px;
    }

    .history-empty-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 9px;
        border-radius: 10px;
    }

    .history-empty-icon i {
        font-size: 1rem;
    }

    .history-empty-content h5 {
        margin-bottom: 3px;
        font-size: 0.86rem;
    }

    .history-empty-content p {
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .history-empty-button {
        min-height: 35px;
        margin-top: 11px;
        padding: 6px 9px;
        font-size: 0.72rem;
    }
}

@media (max-width: 390px) {
    .history-empty-state {
        padding: 14px 12px 12px;
    }

    .history-empty-content {
        max-width: 240px;
    }

    .history-empty-content h5 {
        font-size: 0.82rem;
    }

    .history-empty-content p {
        font-size: 0.69rem;
    }

    .history-empty-button {
        font-size: 0.69rem;
        gap: 5px;
    }
}

/* =========================================================
   AUTH FOOTER
   ========================================================= */
.auth-footer {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: auto;
    overflow: hidden;
    background: linear-gradient(
            180deg,
            #111827 0%,
            #0f172a 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* =========================================================
   SUBTLE BLUE / PURPLE GLOW
   ========================================================= */
.auth-footer-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    width: 420px;
    height: 160px;
    transform: translateX(-50%);
    background: radial-gradient(
            ellipse,
            rgba(13, 110, 253, 0.13) 0%,
            rgba(111, 66, 193, 0.08) 35%,
            transparent 70%
    );
    filter: blur(25px);
    pointer-events: none;
}

/* =========================================================
   CONTENT
   ========================================================= */
.auth-footer-content {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 24px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

/* =========================================================
   BRAND
   ========================================================= */
.auth-footer-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.auth-footer-brand > i {
    color: #6ea8fe;
    font-size: 0.95rem;
    filter: drop-shadow(
            0 0 8px rgba(13, 110, 253, 0.35)
    );
}

.auth-ai-purple {
    color: #a78bfa;
}

/* =========================================================
   LINKS
   ========================================================= */
.auth-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 5px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
}

.auth-footer-links a {
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer-links a:hover {
    color: #6ea8fe;
}

.auth-footer-separator {
    color: rgba(255, 255, 255, 0.18);
    user-select: none;
}

/* =========================================================
   COPYRIGHT
   ========================================================= */
.auth-footer-copy {
    color: rgba(255, 255, 255, 0.30);
    font-size: 0.7rem;
    line-height: 1.4;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 768px) {
    .auth-footer-content {
        width: min(100% - 32px, 600px);
        padding: 20px 0 18px;
        gap: 10px;
    }

    .auth-footer-brand {
        font-size: 0.9rem;
    }

    .auth-footer-links {
        font-size: 0.75rem;
        column-gap: 8px;
    }

    .auth-footer-copy {
        font-size: 0.68rem;
    }
}

/* =========================================================
   iPHONE
   ========================================================= */
@media (max-width: 576px) {
    .auth-footer {
        /*
         * Prevent accidental horizontal scrolling caused by
         * 100vw + browser scrollbar calculations.
         */
        width: 100vw;
        max-width: 100vw;
    }

    .auth-footer-content {
        width: calc(100% - 24px);
        padding: 18px 0 16px;
        gap: 9px;
    }

    .auth-footer-brand {
        gap: 6px;
        font-size: 0.84rem;
    }

    .auth-footer-brand > i {
        font-size: 0.85rem;
    }

    .auth-footer-links {
        width: 100%;
        column-gap: 7px;
        row-gap: 4px;
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .auth-footer-copy {
        max-width: 300px;
        font-size: 0.63rem;
        line-height: 1.4;
    }
}

/* =========================================================
   VERY SMALL iPHONES
   ========================================================= */
@media (max-width: 390px) {
    .auth-footer-content {
        width: calc(100% - 20px);
        padding-top: 16px;
        padding-bottom: 14px;
        gap: 8px;
    }

    .auth-footer-brand {
        font-size: 0.8rem;
    }

    .auth-footer-links {
        font-size: 0.67rem;
        column-gap: 5px;
    }

    .auth-footer-separator {
        opacity: 0.6;
    }

    .auth-footer-copy {
        font-size: 0.6rem;
    }
}

/* =========================================
   Salary generation state
   ========================================= */
.ai-tool-btn:disabled {
    cursor: wait;
    opacity: 1;
}

/* Hourglass */
.salary-generating-icon {
    position: relative;
}

.salary-generating-icon i {
    animation: salaryHourglassSpin 1.8s ease-in-out infinite;
}

/* Stars */
.salary-generating-stars {
    animation: salaryStarsPulse 1.4s ease-in-out infinite,
    salaryStarsRotate 3s linear infinite;
}

/* Subtle content animation */
#generateSalaryButton:disabled .ai-tool-content {
    animation: salaryGeneratingContent 1.8s ease-in-out infinite;
}

/* Hourglass rotation */
@keyframes salaryHourglassSpin {
    0%,
    100% {
        transform: rotate(0deg);
    }
    45% {
        transform: rotate(180deg);
    }
    55% {
        transform: rotate(180deg);
    }
}

/* Stars pulse */
@keyframes salaryStarsPulse {
    0%,
    100% {
        opacity: .45;
        transform: scale(.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Stars slowly rotate */
@keyframes salaryStarsRotate {
    from {
        rotate: 0deg;
    }
    to {
        rotate: 360deg;
    }
}

/* Text breathing effect */
@keyframes salaryGeneratingContent {
    0%,
    100% {
        opacity: .7;
    }
    50% {
        opacity: 1;
    }
}

/* =========================================================
   AI Tool Loading State
   ========================================================= */
.ai-tool-btn.is-loading {
    position: relative;
    cursor: wait;
    pointer-events: none;
    overflow: hidden;
}

.ai-tool-btn.is-loading .ai-tool-icon {
    animation: aiToolPulse 1.4s ease-in-out infinite;
}

.ai-tool-btn.is-loading .ai-tool-arrow {
    display: none;
}

.ai-tool-btn.is-loading .ai-tool-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-tool-btn.is-loading .ai-tool-title::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: aiToolSpin 0.75s linear infinite;
}

.ai-tool-btn.is-loading::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 35%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent
    );
    animation: aiToolShimmer 1.5s ease-in-out infinite;
}

/* Loading state inside result cards */
.ai-generating {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-generating-content {
    text-align: center;
    animation: aiGeneratingFade 1.5s ease-in-out infinite;
}

.ai-generating-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 3px solid rgba(25, 118, 210, 0.14);
    border-top-color: #1976d2;
    border-right-color: #26a69a;
    animation: aiToolSpin 0.8s linear infinite;
}

.ai-generating-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #17324d;
}

.ai-generating-subtitle {
    margin: 6px 0 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.ai-generating-dots::after {
    content: "";
    animation: aiGeneratingDots 1.4s steps(4, end) infinite;
}

/* Animations */
@keyframes aiToolSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes aiToolPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.92);
        opacity: 0.7;
    }
}

@keyframes aiToolShimmer {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(400%);
    }
}

@keyframes aiGeneratingFade {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(2px);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes aiGeneratingDots {
    0% {
        content: "";
    }
    25% {
        content: ".";
    }
    50% {
        content: "..";
    }
    75%, 100% {
        content: "...";
    }
}

.history-empty-button-wrapper {
    display: flex;
    justify-content: center;
    /* Proper breathing room above and below */
    padding-bottom: 1rem;
    padding-top: 7px;
}

.history-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1.15rem;
    background-color: #34495e;
    border: 1px solid #34495e;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.history-empty-button:hover {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.history-empty-button:active {
    background-color: #263746;
    border-color: #263746;
    color: #fff;
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.history-empty-button .history-empty-arrow {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.history-empty-button:hover .history-empty-arrow {
    transform: translateX(2px);
}

#analysisInputCard {
    scroll-margin-top: 100px;
}

.history-empty-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1.25rem;
    background: linear-gradient(
            135deg,
            #0d6efd 0%,
            #1976ff 50%,
            #0d6efd 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 0.55rem;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.25),
    0 4px 15px rgba(13, 110, 253, 0.35),
    0 0 25px rgba(13, 110, 253, 0.18);
    overflow: hidden;
    transition: transform 0.25s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
    animation: historyButtonGlow 2.8s ease-in-out infinite;
}

/* Animated light sweep */
.history-empty-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
            100deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 35%,
            rgba(255, 255, 255, 0.32) 50%,
            rgba(255, 255, 255, 0.08) 65%,
            transparent 100%
    );
    transform: skewX(-20deg);
    animation: historyButtonShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

/* Keep the actual content above the animation */
.history-empty-button > * {
    position: relative;
    z-index: 1;
}

/* Hover */
.history-empty-button:hover {
    background: linear-gradient(
            135deg,
            #0d6efd 0%,
            #2684ff 50%,
            #0d6efd 100%
    );
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.35),
    0 6px 20px rgba(13, 110, 253, 0.45),
    0 0 35px rgba(13, 110, 253, 0.30),
    0 0 55px rgba(13, 110, 253, 0.12);
}

/* Active */
.history-empty-button:active {
    background: #0b5ed7;
    color: #fff;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.35),
    0 0 18px rgba(13, 110, 253, 0.2);
}

/* Arrow */
.history-empty-button .history-empty-arrow {
    font-size: 0.9rem;
    transition: transform 0.25s ease,
    filter 0.25s ease;
}

.history-empty-button:hover .history-empty-arrow {
    transform: translateX(4px);
    filter: drop-shadow(
            0 0 4px rgba(255, 255, 255, 0.6)
    );
}

/* Gentle breathing glow */
@keyframes historyButtonGlow {
    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.20),
        0 4px 15px rgba(13, 110, 253, 0.30),
        0 0 25px rgba(13, 110, 253, 0.15);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.30),
        0 5px 20px rgba(13, 110, 253, 0.42),
        0 0 38px rgba(13, 110, 253, 0.25);
    }
}

/* Slow light passing across button */
@keyframes historyButtonShimmer {
    0% {
        left: -120%;
    }
    35%,
    100% {
        left: 140%;
    }
}

/* =========================
   Account Tabs
   ========================= */
.account-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0 1.5rem;
}

.account-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #6c757d;
    padding: 0.85rem 1.1rem;
    transition: color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.account-tabs .nav-link:hover {
    color: #34495e;
    background: rgba(13, 110, 253, 0.035);
}

.account-tabs .nav-link.active {
    color: #0d6efd;
    background: transparent;
    border-bottom-color: #0d6efd;
}

/* =========================
   Delete Confirmation
   ========================= */
.delete-confirmation {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(220, 53, 69, 0.18);
    border-radius: 0.8rem;
    background: linear-gradient(
            135deg,
            rgba(220, 53, 69, 0.045),
            rgba(255, 255, 255, 0.8)
    );
    transition: border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.delete-confirmation:hover {
    border-color: rgba(220, 53, 69, 0.35);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.08),
    0 0 0 3px rgba(220, 53, 69, 0.035);
}

/* Hide the ugly native checkbox */
.delete-confirmation input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom checkbox */
.delete-confirmation .delete-checkbox {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 2px solid #adb5bd;
    border-radius: 7px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

/* Checkmark */
.delete-confirmation input[type="checkbox"]:checked
+ .delete-checkbox {
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.10),
    0 4px 12px rgba(220, 53, 69, 0.25);
    transform: scale(1.05);
}

.delete-confirmation input[type="checkbox"]:checked
+ .delete-checkbox::after {
    content: "";
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* Keyboard accessibility */
.delete-confirmation input[type="checkbox"]:focus-visible
+ .delete-checkbox {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18);
}

/* Text */
.delete-confirmation .delete-confirmation-text {
    cursor: pointer;
    user-select: none;
}

.delete-confirmation .delete-confirmation-title {
    display: block;
    color: #343a40;
    font-weight: 600;
    line-height: 1.3;
}

.delete-confirmation .delete-confirmation-description {
    display: block;
    margin-top: 0.2rem;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* =========================
   Delete confirmation checkbox
   ========================= */
#deleteAllConfirm {
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.15rem;
    border: 2px solid #adb5bd;
    border-radius: 0.4rem;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

/* Hover */
#deleteAllConfirm:hover {
    border-color: var(--bs-danger-text-emphasis);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08),
    0 3px 10px rgba(220, 53, 69, 0.12);
}

/* Checked */
#deleteAllConfirm:checked {
    background-color: var(--bs-danger-text-emphasis);
    border-color: var(--bs-danger-text-emphasis);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.10),
    0 4px 14px rgba(220, 53, 69, 0.28);
    transform: scale(1.05);
}

/* Focus */
#deleteAllConfirm:focus {
    border-color: var(--bs-danger-text-emphasis);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.14),
    0 3px 12px rgba(220, 53, 69, 0.12);
}

/* Label */
#deleteAllConfirm + .form-check-label {
    padding-left: 0.4rem;
    color: #6c757d;;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Make the text slightly more prominent when checked */
#deleteAllConfirm:checked + .form-check-label {
    color: #842029;
}

.form-check:has(#deleteAllConfirm) {
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    margin-top: 1rem !important;
    border-radius: 0.75rem;
    border: 1px solid rgba(220, 53, 69, 0.15);
    background: rgba(220, 53, 69, 0.035);
    transition: border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.form-check:has(#deleteAllConfirm):hover {
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(220, 53, 69, 0.055);
    box-shadow: 0 5px 18px rgba(220, 53, 69, 0.07);
}

/* =========================
   Delete confirmation
   ========================= */
.form-check:has(#deleteAllConfirm) {
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    margin-top: 1rem !important;
    border: 1px solid color-mix(
            in srgb,
            var(--bs-danger),
            transparent 75%
    );
    border-radius: 0.75rem;
    background: color-mix(
            in srgb,
            var(--bs-danger-bg-subtle),
            transparent 15%
    );
    transition: border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.form-check:has(#deleteAllConfirm):hover {
    border-color: color-mix(
            in srgb,
            var(--bs-danger),
            transparent 55%
    );
    background-color: var(--bs-danger-bg-subtle);
    box-shadow: 0 5px 18px color-mix(
            in srgb,
            var(--bs-danger),
            transparent 88%
    );
}

/* Checkbox */
#deleteAllConfirm {
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.15rem;
    border: 2px solid var(--bs-danger-border-subtle);
    border-radius: 0.4rem;
    background-color: var(--bs-body-bg);
    cursor: pointer;
    transition: border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

#deleteAllConfirm:hover {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 4px color-mix(
            in srgb,
            var(--bs-danger),
            transparent 88%
    );
}

#deleteAllConfirm:checked {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 4px color-mix(
            in srgb,
            var(--bs-danger),
            transparent 88%
    ),
    0 4px 14px color-mix(
            in srgb,
            var(--bs-danger),
            transparent 72%
    );
    transform: scale(1.05);
}

#deleteAllConfirm:focus {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 4px color-mix(
            in srgb,
            var(--bs-danger),
            transparent 80%
    );
}

/* Warning text */
#deleteAllConfirm + .form-check-label {
    padding-left: 0.4rem;
    color: var(--bs-danger-text-emphasis);
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.2s ease;
}

#deleteAllConfirm:checked + .form-check-label {
    color: var(--bs-danger-text-emphasis);
}

/* =========================
   Delete warning / alert
   ========================= */
.delete-warning {
    color: var(--bs-danger-text-emphasis);
    background-color: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
}

/* =========================
   Delete button
   ========================= */
.delete-button {
    color: var(--bs-danger-text-emphasis);
    background-color: var(--bs-danger-bg-subtle);
    border: 1px solid var(--bs-danger-border-subtle);
    transition: color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.delete-button:hover {
    color: #fff;
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    box-shadow: 0 5px 16px color-mix(
            in srgb,
            var(--bs-danger),
            transparent 72%
    );
    transform: translateY(-1px);
}

.delete-button:active {
    color: #fff;
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    transform: translateY(0);
    box-shadow: 0 2px 8px color-mix(
            in srgb,
            var(--bs-danger),
            transparent 78%
    );
}

/* =========================
   AI Tool Loading State
   ========================= */
.ai-tool-loading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* =========================================================
   AI TOOL GENERATING ANIMATION
   ========================================================= */

.ai-tool-btn.ai-tool-loading {
    pointer-events: none;
    cursor: wait;
}


/* -----------------------------------------
   Rotating icon
   ----------------------------------------- */

.ai-tool-btn.ai-tool-loading .ai-tool-icon i {
    display: none;
}

.ai-tool-btn.ai-tool-loading .ai-tool-icon::before {
    content: "";

    display: block;

    width: 19px;
    height: 19px;

    border: 2px solid rgba(129, 140, 248, 0.20);
    border-top-color: var(--ats-primary-light);

    border-radius: 50%;

    animation: aiToolRotate 0.75s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}


/* -----------------------------------------
   Generating title
   ----------------------------------------- */

.ai-tool-btn.ai-tool-loading .ai-tool-title {
    font-size: 0;
}

.ai-tool-btn.ai-tool-loading .ai-tool-title::after {
    content: "Generating…";

    font-size: 14px;
    font-weight: 760;

    color: var(--ats-primary-light);
}


/* -----------------------------------------
   Description
   ----------------------------------------- */

.ai-tool-btn.ai-tool-loading .ai-tool-description {
    opacity: 0.55;
}

/* Elegant spinner */
.ai-tool-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(13, 110, 253, 0.15);
    border-top-color: #0d6efd;
    animation: aiToolSpin 0.8s linear infinite;
}

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

/* Generating text */
.ai-tool-loading-text {
    display: flex;
    align-items: baseline;
    color: #17324d;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Animated dots */
.ai-tool-dots {
    display: inline-flex;
    width: 1.25rem;
    margin-left: 0.05rem;
}

.ai-tool-dots span {
    opacity: 0.2;
    animation: aiToolDot 1.4s infinite;
}

.ai-tool-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-tool-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aiToolDot {
    0%,
    60%,
    100% {
        opacity: 0.2;
    }
    30% {
        opacity: 1;
    }
}

/* Loading button */
.ai-tool-btn.ai-tool-loading-state {
    cursor: wait;
    pointer-events: none;
    border-color: rgba(13, 110, 253, 0.2);
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.05),
    0 8px 25px rgba(13, 110, 253, 0.10);
}

.input-holder {
    padding-top: 40px;
}

/* =========================================================
   ATS ANALYSIS
   ResuMachine AI — Dark Intelligence Design
   Bootstrap 5 / Deep Blue / Deep Purple
   ========================================================= */
#atsContent {
    --ats-bg: #0b1020;
    --ats-surface: #10172a;
    --ats-surface-2: #131c32;
    --ats-surface-strong: #18223b;
    --ats-border: rgba(148, 163, 184, 0.12);
    --ats-border-blue: rgba(59, 130, 246, 0.18);
    --ats-border-purple: rgba(139, 92, 246, 0.20);
    --ats-text: #f1f5f9;
    --ats-text-strong: #ffffff;
    --ats-muted: #94a3b8;
    --ats-soft: #64748b;
    --ats-primary: #6366f1;
    --ats-primary-light: #818cf8;
    --ats-primary-dark: #4f46e5;
    --ats-blue: #3b82f6;
    --ats-blue-light: #60a5fa;
    --ats-purple: #8b5cf6;
    --ats-purple-light: #a78bfa;
    --ats-success: #34d399;
    --ats-success-soft: rgba(16, 185, 129, 0.10);
    --ats-warning: #fbbf24;
    --ats-warning-soft: rgba(245, 158, 11, 0.10);
    --ats-danger: #f87171;
    --ats-danger-soft: rgba(239, 68, 68, 0.10);
    color: var(--ats-text);
}

/* =========================================================
   RESULT HEADER
   ========================================================= */
.ats-result-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 36px;
    margin-bottom: 20px;
    border: 1px solid var(--ats-border);
    border-radius: 22px;
    background: radial-gradient(
            circle at 88% 12%,
            rgba(99, 102, 241, 0.18),
            transparent 32%
    ),
    radial-gradient(
            circle at 65% 100%,
            rgba(59, 130, 246, 0.08),
            transparent 38%
    ),
    linear-gradient(
            135deg,
            #0d1428 0%,
            #10172a 55%,
            #11172d 100%
    );
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

/* subtle AI light */
.ats-result-header::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -120px;
    right: 120px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.10);
    filter: blur(60px);
    pointer-events: none;
}

/* left accent */
.ats-result-header::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
            180deg,
            var(--ats-blue),
            var(--ats-primary),
            var(--ats-purple)
    );
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.45);
}

/* =========================================================
   EYEBROW
   ========================================================= */
.ats-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    color: var(--ats-primary-light);
}

.ats-eyebrow i {
    font-size: 13px;
    color: var(--ats-purple-light);
    filter: drop-shadow(
            0 0 7px rgba(167, 139, 250, 0.35)
    );
}

/* =========================================================
   TITLE
   ========================================================= */
.ats-result-title {
    margin: 0 0 8px;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 750;
    letter-spacing: -0.025em;
    color: var(--ats-text-strong);
}

.ats-result-subtitle {
    max-width: 650px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ats-muted);
}

/* =========================================================
   ATS SCORE
   ========================================================= */
.ats-score {
    position: relative;
    flex: 0 0 auto;
    min-width: 150px;
    text-align: center;
    padding: 19px 25px;
    border: 1px solid var(--ats-border-purple);
    border-radius: 18px;
    background: radial-gradient(
            circle at 50% 0%,
            rgba(139, 92, 246, 0.14),
            transparent 65%
    ),
    rgba(15, 23, 42, 0.72);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(12px);
}

.ats-score-label {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    color: var(--ats-muted);
}

.ats-score-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    color: var(--ats-primary-light);
    text-shadow: 0 0 25px rgba(99, 102, 241, 0.22);
}

.ats-score-value span {
    font-size: 46px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.ats-score-value small {
    font-size: 14px;
    font-weight: 700;
    color: var(--ats-soft);
}

.ats-score-status {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ats-success);
}

/* =========================================================
   GENERAL CARDS
   ========================================================= */
.ats-main-card,
.ats-keyword-card,
.ats-structure-card,
.ats-findings-card,
.ats-recommendations-card,
.ats-explanation {
    position: relative;
    margin-bottom: 18px;
    padding: 27px 29px;
    border: 1px solid var(--ats-border);
    border-radius: 20px;
    background: linear-gradient(
            145deg,
            rgba(19, 28, 50, 0.98),
            rgba(13, 19, 35, 0.98)
    );
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.ats-main-card:hover,
.ats-keyword-card:hover,
.ats-structure-card:hover,
.ats-findings-card:hover,
.ats-recommendations-card:hover,
.ats-explanation:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.20);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(99, 102, 241, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* =========================================================
   CARD HEADER
   ========================================================= */
.ats-main-card-header,
.ats-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 23px;
}

.ats-section-header {
    align-items: flex-start;
}

.ats-main-card-header {
    justify-content: space-between;
}

.ats-main-label,
.ats-section-eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--ats-primary-light);
}

.ats-main-title,
.ats-section-title {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.015em;
    color: var(--ats-text-strong);
}

.ats-section-title {
    font-size: 16px;
}

/* =========================================================
   ICONS
   ========================================================= */
.ats-main-icon,
.ats-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    color: var(--ats-primary-light);
    background: linear-gradient(
            145deg,
            rgba(99, 102, 241, 0.15),
            rgba(139, 92, 246, 0.08)
    );
    border: 1px solid rgba(99, 102, 241, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.16);
}

.ats-main-icon {
    font-size: 17px;
}

/* =========================================================
   SCORE GRID
   ========================================================= */
.ats-score-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 17px 28px;
}

.ats-score-item {
    padding: 15px 17px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    background: linear-gradient(
            145deg,
            rgba(24, 34, 59, 0.82),
            rgba(16, 23, 42, 0.82)
    );
    transition: background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.ats-score-item:hover {
    transform: translateY(-1px);
    background: linear-gradient(
            145deg,
            rgba(28, 40, 69, 0.95),
            rgba(17, 25, 45, 0.95)
    );
    border-color: rgba(99, 102, 241, 0.18);
}

.ats-score-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ats-muted);
}

.ats-score-item-top strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--ats-text);
}

/* =========================================================
   PROGRESS BARS
   ========================================================= */
.ats-progress {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.35);
}

.ats-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
            90deg,
            var(--ats-blue),
            var(--ats-primary),
            var(--ats-purple)
    );
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
    transition: width 0.9s cubic-bezier(.22, 1, .36, 1);
}

/* =========================================================
   KEYWORD CARD
   ========================================================= */
.ats-keyword-card {
    background: radial-gradient(
            circle at 100% 0%,
            rgba(99, 102, 241, 0.08),
            transparent 35%
    ),
    linear-gradient(
            145deg,
            #131c32,
            #0e1527
    );
}

/* =========================================================
   KEYWORD SUMMARY
   ========================================================= */
.ats-keyword-summary {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 21px;
}

.ats-keyword-stat {
    padding: 16px;
    border-radius: 15px;
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.ats-keyword-stat-value {
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 5px;
}

.ats-keyword-stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ats-muted);
}

.ats-keyword-matched
.ats-keyword-stat-value {
    color: var(--ats-success);
}

.ats-keyword-missing
.ats-keyword-stat-value {
    color: var(--ats-danger);
}

.ats-keyword-total
.ats-keyword-stat-value {
    color: var(--ats-primary-light);
}

/* =========================================================
   KEYWORD PILLS
   ========================================================= */
.ats-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ats-keyword {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 650;
    border: 1px solid transparent;
    transition: transform 0.15s ease,
    box-shadow 0.15s ease;
}

.ats-keyword:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

.ats-keyword-matched-pill {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.09);
    border-color: rgba(52, 211, 153, 0.15);
}

.ats-keyword-missing-pill {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(248, 113, 113, 0.13);
}

.ats-keyword i {
    font-size: 10px;
}

/* =========================================================
   STRUCTURE
   ========================================================= */
.ats-sections-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.ats-section-box {
    padding: 18px;
    border-radius: 15px;
    background: rgba(16, 185, 129, 0.065);
    border: 1px solid rgba(52, 211, 153, 0.12);
}

.ats-section-box-warning {
    background: rgba(245, 158, 11, 0.065);
    border-color: rgba(251, 191, 36, 0.13);
}

.ats-section-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--ats-muted);
}

.ats-section-box-header i {
    font-size: 14px;
    color: var(--ats-success);
}

.ats-section-box-warning
.ats-section-box-header i {
    color: var(--ats-warning);
}

.ats-section-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ats-section-tag {
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.035);
    color: var(--ats-text);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

/* =========================================================
   FINDINGS
   ========================================================= */
.ats-findings-card {
    background: linear-gradient(
            145deg,
            #131c32,
            #10172a
    );
}

.ats-warning-card {
    background: radial-gradient(
            circle at 100% 0%,
            rgba(245, 158, 11, 0.055),
            transparent 35%
    ),
    linear-gradient(
            145deg,
            #141c30,
            #10172a
    );
}

/* =========================================================
   FINDING ICON STATES
   ========================================================= */
.ats-icon-positive {
    color: var(--ats-success);
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(52, 211, 153, 0.12);
}

.ats-icon-warning {
    color: var(--ats-warning);
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(251, 191, 36, 0.12);
}

.ats-icon-recommendation {
    color: var(--ats-primary-light);
    background: rgba(99, 102, 241, 0.10);
    border: 1px solid rgba(129, 140, 248, 0.13);
}

.ats-finding-list,
.ats-recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================================================
   FINDING ITEM
   ========================================================= */
.ats-finding {
    display: flex;
    gap: 13px;
    padding: 14px 16px;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.065);
    transition: transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.ats-finding:hover {
    transform: translateX(2px);
    background: rgba(24, 34, 59, 0.82);
    border-color: rgba(99, 102, 241, 0.12);
}

.ats-finding-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 9px;
    font-size: 12px;
}

.ats-finding-content {
    min-width: 0;
}

.ats-finding-title {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 750;
    color: var(--ats-text);
}

.ats-finding-description {
    font-size: 11px;
    line-height: 1.55;
    color: var(--ats-muted);
}

/* =========================================================
   RECOMMENDATIONS
   ========================================================= */
.ats-recommendations-card {
    background: radial-gradient(
            circle at 100% 0%,
            rgba(139, 92, 246, 0.10),
            transparent 38%
    ),
    linear-gradient(
            145deg,
            #141c34,
            #10172a
    );
}

.ats-recommendation {
    display: flex;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 14px;
    background: linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.075),
            rgba(139, 92, 246, 0.035)
    );
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.ats-recommendation-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(
            135deg,
            var(--ats-blue),
            var(--ats-primary),
            var(--ats-purple)
    );
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.25);
}

.ats-recommendation-title {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 750;
    color: var(--ats-text);
}

.ats-recommendation-description {
    font-size: 11px;
    line-height: 1.55;
    color: var(--ats-muted);
}

/* =========================================================
   AI EXPLANATION
   ========================================================= */
.ats-explanation {
    margin-bottom: 0;
    background: radial-gradient(
            circle at 90% 5%,
            rgba(99, 102, 241, 0.13),
            transparent 35%
    ),
    radial-gradient(
            circle at 15% 100%,
            rgba(59, 130, 246, 0.06),
            transparent 35%
    ),
    linear-gradient(
            135deg,
            #121a31,
            #0e1527
    );
    border-color: rgba(99, 102, 241, 0.14);
}

.ats-explanation .ats-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--ats-primary-light);
}

.ats-explanation .ats-section-title i {
    font-size: 14px;
    color: var(--ats-purple-light);
    filter: drop-shadow(
            0 0 7px rgba(167, 139, 250, 0.30)
    );
}

.ats-explanation p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ats-muted);
}

/* =========================================================
   SCORE QUALITY STATES
   ========================================================= */
.ats-score-high {
    color: var(--ats-success) !important;
}

.ats-score-medium {
    color: var(--ats-warning) !important;
}

.ats-score-low {
    color: var(--ats-danger) !important;
}

/* High */
.ats-progress-high {
    background: linear-gradient(
            90deg,
            #059669,
            #34d399
    );
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.20);
}

/* Medium */
.ats-progress-medium {
    background: linear-gradient(
            90deg,
            #d97706,
            #fbbf24
    );
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.18);
}

/* Low */
.ats-progress-low {
    background: linear-gradient(
            90deg,
            #dc2626,
            #f87171
    );
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.18);
}

/* =========================================================
   EMPTY STATES
   ========================================================= */
.ats-empty {
    padding: 18px;
    text-align: center;
    border-radius: 12px;
    font-size: 11px;
    color: var(--ats-soft);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.06);
}

/* =========================================================
   ANIMATION
   ========================================================= */
@keyframes atsFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#atsContent > * {
    animation: atsFadeUp 0.45s ease both;
}

#atsContent > *:nth-child(2) {
    animation-delay: 0.04s;
}

#atsContent > *:nth-child(3) {
    animation-delay: 0.08s;
}

#atsContent > *:nth-child(4) {
    animation-delay: 0.12s;
}

#atsContent > *:nth-child(5) {
    animation-delay: 0.16s;
}

#atsContent > *:nth-child(6) {
    animation-delay: 0.20s;
}

#atsContent > *:nth-child(7) {
    animation-delay: 0.24s;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .ats-result-header {
        flex-direction: column;
        align-items: stretch;
        padding: 27px 24px;
    }

    .ats-score {
        width: 100%;
    }

    .ats-score-grid,
    .ats-sections-grid {
        grid-template-columns: 1fr;
    }

    .ats-main-card,
    .ats-keyword-card,
    .ats-structure-card,
    .ats-findings-card,
    .ats-recommendations-card,
    .ats-explanation {
        padding: 22px 20px;
    }
}

@media (max-width: 480px) {
    .ats-result-title {
        font-size: 23px;
    }

    .ats-result-subtitle {
        font-size: 13px;
    }

    .ats-keyword-summary {
        grid-template-columns: 1fr;
    }

    .ats-score-grid {
        gap: 10px;
    }

    .ats-main-card-header {
        align-items: flex-start;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    #atsContent > *,
    .ats-main-card,
    .ats-keyword-card,
    .ats-structure-card,
    .ats-findings-card,
    .ats-recommendations-card,
    .ats-explanation,
    .ats-finding,
    .ats-keyword {
        animation: none !important;
        transition: none !important;
    }
}

#atsContent {
    padding-top: 85px;
}

/* =========================================================
   ATS RESULT REVEAL
   ========================================================= */

#atsContent {
    scroll-margin-top: 32px;
}

#atsContent.ats-content-enter {
    opacity: 0;
    transform: translateY(22px);
}

#atsContent.ats-content-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
            opacity 0.55s cubic-bezier(.22, 1, .36, 1),
            transform 0.55s cubic-bezier(.22, 1, .36, 1);
}

/* =========================================================
   ATS BUTTON LOADING
   ========================================================= */

.ai-tool-loading {
    cursor: wait;
    pointer-events: none;
}

.ats-spin {
    animation: atsSpin 0.9s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    #atsContent {
        scroll-behavior: auto;
    }

    #atsContent.ats-content-visible {
        transition: none;
    }

    .ats-spin {
        animation: none;
    }
}

/* =========================================================
   RESUMACHINE AI — ATS ANALYSIS
   Premium Deep Blue / Purple Intelligence UI
   ========================================================= */

#atsContent {
    --ats-bg: #0b1020;
    --ats-surface: #11182b;
    --ats-surface-2: #151d33;
    --ats-surface-3: #1a2340;

    --ats-border: rgba(148, 163, 184, 0.13);
    --ats-border-strong: rgba(129, 140, 248, 0.25);

    --ats-text: #f8fafc;
    --ats-text-soft: #e2e8f0;
    --ats-muted: #94a3b8;
    --ats-soft: #64748b;

    --ats-primary: #818cf8;
    --ats-primary-light: #a5b4fc;
    --ats-primary-dark: #6366f1;

    --ats-purple: #a78bfa;
    --ats-purple-dark: #7c3aed;

    --ats-success: #34d399;
    --ats-success-soft: rgba(52, 211, 153, 0.10);

    --ats-warning: #fbbf24;
    --ats-warning-soft: rgba(251, 191, 36, 0.10);

    --ats-danger: #f87171;
    --ats-danger-soft: rgba(248, 113, 113, 0.10);

    color: var(--ats-text);
}


/* =========================================================
   RESULT HEADER
   ========================================================= */

.ats-result-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 42px;

    padding: 42px 44px;
    margin-bottom: 24px;

    border: 1px solid var(--ats-border-strong);
    border-radius: 26px;

    background:
            radial-gradient(
                    circle at 85% 15%,
                    rgba(129, 140, 248, 0.20),
                    transparent 32%
            ),
            radial-gradient(
                    circle at 65% 100%,
                    rgba(124, 58, 237, 0.12),
                    transparent 35%
            ),
            linear-gradient(
                    135deg,
                    #10172b 0%,
                    #0b1020 100%
            );

    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);

    overflow: hidden;
}

.ats-result-header::before {
    content: "";
    position: absolute;

    top: -100px;
    right: -100px;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background: rgba(129, 140, 248, 0.08);

    filter: blur(30px);
}

.ats-result-header::after {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 5px;
    height: 100%;

    background:
            linear-gradient(
                    180deg,
                    #818cf8,
                    #a78bfa,
                    #6366f1
            );
}


/* =========================================================
   EYEBROW
   ========================================================= */

.ats-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 13px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.16em;

    color: var(--ats-primary-light);

    text-transform: uppercase;
}

.ats-eyebrow i {
    font-size: 15px;

    filter:
            drop-shadow(
                    0 0 7px rgba(129, 140, 248, 0.5)
            );
}


/* =========================================================
   MAIN TITLE
   ========================================================= */

.ats-result-title {
    margin: 0 0 12px;

    font-size: clamp(30px, 3vw, 40px);

    line-height: 1.12;

    font-weight: 800;

    letter-spacing: -0.035em;

    color: #ffffff;
}

.ats-result-subtitle {
    max-width: 720px;

    font-size: 15px;
    line-height: 1.7;

    color: var(--ats-muted);
}


/* =========================================================
   OVERALL ATS SCORE
   ========================================================= */

.ats-score {
    position: relative;

    flex: 0 0 auto;

    min-width: 190px;

    padding: 24px 28px;

    text-align: center;

    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: 22px;

    background:
            radial-gradient(
                    circle at 50% 0%,
                    rgba(129, 140, 248, 0.18),
                    transparent 65%
            ),
            rgba(15, 23, 42, 0.72);

    box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ats-score-label {
    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.16em;

    color: var(--ats-muted);
}

.ats-score-value {
    display: flex;

    align-items: baseline;
    justify-content: center;

    gap: 4px;

    color: var(--ats-primary-light);
}

.ats-score-value span {
    font-size: 58px;

    line-height: 1;

    font-weight: 850;

    letter-spacing: -0.065em;

    text-shadow:
            0 0 25px rgba(129, 140, 248, 0.28);
}

.ats-score-value small {
    font-size: 16px;

    font-weight: 700;

    color: var(--ats-soft);
}

.ats-score-status {
    margin-top: 10px;

    font-size: 12px;
    font-weight: 750;

    color: var(--ats-success);
}


/* =========================================================
   COMMON CARDS
   ========================================================= */

.ats-main-card,
.ats-keyword-card,
.ats-structure-card,
.ats-findings-card,
.ats-recommendations-card,
.ats-explanation {

    position: relative;

    margin-bottom: 22px;

    padding: 32px 34px;

    border: 1px solid var(--ats-border);

    border-radius: 23px;

    background:
            linear-gradient(
                    145deg,
                    rgba(17, 24, 43, 0.98),
                    rgba(11, 16, 32, 0.98)
            );

    box-shadow:
            0 12px 38px rgba(0, 0, 0, 0.20),
            inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
            transform 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease;
}

.ats-main-card:hover,
.ats-keyword-card:hover,
.ats-structure-card:hover,
.ats-findings-card:hover,
.ats-recommendations-card:hover,
.ats-explanation:hover {

    transform: translateY(-2px);

    border-color:
            rgba(129, 140, 248, 0.20);

    box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.28),
            0 0 30px rgba(99, 102, 241, 0.035);
}


/* =========================================================
   CARD HEADERS
   ========================================================= */

.ats-main-card-header,
.ats-section-header {

    display: flex;

    align-items: center;

    gap: 17px;

    margin-bottom: 28px;
}

.ats-main-card-header {
    justify-content: space-between;
}

.ats-section-header {
    align-items: flex-start;
}


/* =========================================================
   SECTION TYPOGRAPHY
   ========================================================= */

.ats-main-label,
.ats-section-eyebrow {

    margin-bottom: 6px;

    font-size: 11px;

    font-weight: 850;

    letter-spacing: 0.15em;

    color: var(--ats-primary-light);

    text-transform: uppercase;
}

.ats-main-title,
.ats-section-title {

    margin: 0;

    font-size: 21px;

    line-height: 1.25;

    font-weight: 780;

    letter-spacing: -0.02em;

    color: #ffffff;
}

.ats-section-title {
    font-size: 20px;
}


/* =========================================================
   ICONS
   ========================================================= */

.ats-main-icon,
.ats-section-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    border-radius: 15px;

    color: var(--ats-primary-light);

    background:
            linear-gradient(
                    145deg,
                    rgba(129, 140, 248, 0.15),
                    rgba(124, 58, 237, 0.10)
            );

    border: 1px solid rgba(129, 140, 248, 0.15);

    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            0 8px 20px rgba(0, 0, 0, 0.15);
}

.ats-main-icon {
    font-size: 21px;
}

.ats-section-icon {
    font-size: 20px;
}


/* =========================================================
   SCORE GRID
   ========================================================= */

.ats-score-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


.ats-score-item {

    padding: 20px 21px;

    border: 1px solid rgba(148, 163, 184, 0.08);

    border-radius: 16px;

    background:
            linear-gradient(
                    145deg,
                    #151d33,
                    #11182b
            );

    transition:
            border-color 0.2s ease,
            transform 0.2s ease,
            background 0.2s ease;
}

.ats-score-item:hover {

    transform: translateY(-1px);

    border-color:
            rgba(129, 140, 248, 0.20);

    background:
            linear-gradient(
                    145deg,
                    #19213a,
                    #121a2f
            );
}


.ats-score-item-top {

    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 12px;

    font-size: 13px;

    font-weight: 650;

    color: var(--ats-muted);
}

.ats-score-item-top strong {

    font-size: 16px;

    font-weight: 800;

    color: var(--ats-text);
}


/* =========================================================
   PROGRESS
   ========================================================= */
/* =========================================================
   ATS SCORE COLORS
   ========================================================= */

.ats-score-high {
    color: var(--ats-success) !important;
}

.ats-score-medium {
    color: var(--ats-warning) !important;
}

.ats-score-low {
    color: var(--ats-danger) !important;
}


/* =========================================================
   ATS PROGRESS BARS
   ========================================================= */

.ats-progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.65);
}

.ats-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    min-height: 9px;
    border-radius: inherit;

    background: linear-gradient(
            90deg,
            #6366f1,
            #8b5cf6,
            #a78bfa
    );

    box-shadow:
            0 0 14px rgba(129, 140, 248, 0.28);

    transition:
            width 0.8s cubic-bezier(.22, 1, .36, 1);
}


/* High score */

.ats-progress-high {
    background: linear-gradient(
            90deg,
            #10b981,
            #34d399
    );

    box-shadow:
            0 0 13px rgba(52, 211, 153, 0.25);
}


/* Medium score */

.ats-progress-medium {
    background: linear-gradient(
            90deg,
            #f59e0b,
            #fbbf24
    );

    box-shadow:
            0 0 13px rgba(251, 191, 36, 0.20);
}


/* Low score */

.ats-progress-low {
    background: linear-gradient(
            90deg,
            #ef4444,
            #f87171
    );

    box-shadow:
            0 0 13px rgba(248, 113, 113, 0.20);
}


/* =========================================================
   ATS SCORE HEADERS
   ========================================================= */

.ats-score-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;

    font-size: 13px;
    font-weight: 650;
    color: var(--ats-muted);
}

.ats-score-item-top span {
    color: var(--ats-muted);
}

.ats-score-item-top strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--ats-text);
}


/* Colored percentage */

.ats-score-item-top strong.ats-score-high {
    color: var(--ats-success) !important;
}

.ats-score-item-top strong.ats-score-medium {
    color: var(--ats-warning) !important;
}

.ats-score-item-top strong.ats-score-low {
    color: var(--ats-danger) !important;
}

/* =========================================================
   KEYWORD INTELLIGENCE
   ========================================================= */

.ats-keyword-card {

    background:
            radial-gradient(
                    circle at 100% 0%,
                    rgba(99, 102, 241, 0.11),
                    transparent 35%
            ),
            linear-gradient(
                    145deg,
                    #11182b,
                    #0d1426
            );
}


.ats-keyword-summary {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 25px;
}


.ats-keyword-stat {

    padding: 20px 16px;

    border-radius: 16px;

    text-align: center;

    background:
            rgba(15, 23, 42, 0.65);

    border: 1px solid rgba(148, 163, 184, 0.08);
}


.ats-keyword-stat-value {

    font-size: 31px;

    line-height: 1;

    font-weight: 850;

    letter-spacing: -0.045em;

    margin-bottom: 7px;
}


.ats-keyword-stat-label {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.10em;

    text-transform: uppercase;

    color: var(--ats-muted);
}


.ats-keyword-matched .ats-keyword-stat-value {
    color: var(--ats-success);
}

.ats-keyword-missing .ats-keyword-stat-value {
    color: var(--ats-danger);
}

.ats-keyword-total .ats-keyword-stat-value {
    color: var(--ats-primary-light);
}


/* =========================================================
   KEYWORD PILLS
   ========================================================= */

.ats-keyword-list {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.ats-keyword {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 12px;

    border-radius: 10px;

    font-size: 12px;

    font-weight: 650;

    border: 1px solid transparent;

    transition:
            transform 0.15s ease,
            box-shadow 0.15s ease;
}

.ats-keyword:hover {

    transform: translateY(-2px);

    box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.18);
}


.ats-keyword-matched-pill {

    color: #6ee7b7;

    background:
            rgba(16, 185, 129, 0.10);

    border-color:
            rgba(52, 211, 153, 0.16);
}

.ats-keyword-missing-pill {

    color: #fca5a5;

    background:
            rgba(239, 68, 68, 0.09);

    border-color:
            rgba(248, 113, 113, 0.15);
}


/* =========================================================
   STRUCTURE
   ========================================================= */

.ats-sections-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.ats-section-box {

    padding: 21px;

    border-radius: 17px;

    background:
            rgba(16, 185, 129, 0.075);

    border:
            1px solid rgba(52, 211, 153, 0.13);
}

.ats-section-box-warning {

    background:
            rgba(245, 158, 11, 0.075);

    border-color:
            rgba(251, 191, 36, 0.14);
}


.ats-section-box-header {

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;

    font-size: 11px;

    font-weight: 850;

    letter-spacing: 0.12em;

    color: var(--ats-muted);
}

.ats-section-box-header i {

    font-size: 16px;

    color: var(--ats-success);
}

.ats-section-box-warning
.ats-section-box-header i {

    color: var(--ats-warning);
}


.ats-section-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.ats-section-tag {

    padding: 7px 10px;

    border-radius: 9px;

    font-size: 12px;

    font-weight: 650;

    background:
            rgba(255, 255, 255, 0.045);

    color: var(--ats-text-soft);

    border:
            1px solid rgba(148, 163, 184, 0.08);
}


/* =========================================================
   FINDINGS
   ========================================================= */

.ats-warning-card {

    background:
            radial-gradient(
                    circle at 100% 0%,
                    rgba(245, 158, 11, 0.07),
                    transparent 30%
            ),
            linear-gradient(
                    145deg,
                    #11182b,
                    #0d1426
            );
}


.ats-icon-positive {

    color: var(--ats-success);

    background:
            rgba(16, 185, 129, 0.10);

    border-color:
            rgba(52, 211, 153, 0.14);
}

.ats-icon-warning {

    color: var(--ats-warning);

    background:
            rgba(245, 158, 11, 0.10);

    border-color:
            rgba(251, 191, 36, 0.14);
}

.ats-icon-recommendation {

    color: var(--ats-primary-light);

    background:
            rgba(99, 102, 241, 0.11);

    border-color:
            rgba(129, 140, 248, 0.15);
}


.ats-finding-list,
.ats-recommendation-list {

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.ats-finding {

    display: flex;

    gap: 15px;

    padding: 17px 18px;

    border-radius: 15px;

    background:
            rgba(15, 23, 42, 0.62);

    border:
            1px solid rgba(148, 163, 184, 0.07);

    transition:
            transform 0.18s ease,
            border-color 0.18s ease,
            background 0.18s ease;
}

.ats-finding:hover {

    transform: translateX(3px);

    background:
            rgba(30, 41, 59, 0.65);

    border-color:
            rgba(129, 140, 248, 0.13);
}


.ats-finding-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border-radius: 10px;

    font-size: 13px;
}

.ats-finding-content {
    min-width: 0;
}

.ats-finding-title {

    margin-bottom: 5px;

    font-size: 14px;

    font-weight: 760;

    color: #f8fafc;
}

.ats-finding-description {

    font-size: 12px;

    line-height: 1.65;

    color: var(--ats-muted);
}


/* =========================================================
   RECOMMENDATIONS
   ========================================================= */

.ats-recommendations-card {

    background:
            radial-gradient(
                    circle at 100% 0%,
                    rgba(99, 102, 241, 0.12),
                    transparent 38%
            ),
            radial-gradient(
                    circle at 0% 100%,
                    rgba(124, 58, 237, 0.07),
                    transparent 35%
            ),
            linear-gradient(
                    145deg,
                    #11182b,
                    #0b1020
            );
}


.ats-recommendation {

    display: flex;

    gap: 16px;

    padding: 18px;

    border-radius: 16px;

    background:
            linear-gradient(
                    135deg,
                    rgba(99, 102, 241, 0.075),
                    rgba(124, 58, 237, 0.045)
            );

    border:
            1px solid rgba(129, 140, 248, 0.11);
}


.ats-recommendation-number {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border-radius: 10px;

    font-size: 12px;

    font-weight: 850;

    color: #ffffff;

    background:
            linear-gradient(
                    135deg,
                    #6366f1,
                    #8b5cf6
            );

    box-shadow:
            0 6px 18px rgba(99, 102, 241, 0.25);
}

.ats-recommendation-title {

    margin-bottom: 5px;

    font-size: 14px;

    font-weight: 760;

    color: #ffffff;
}

.ats-recommendation-description {

    font-size: 12px;

    line-height: 1.65;

    color: var(--ats-muted);
}


/* =========================================================
   AI EXPLANATION
   ========================================================= */

.ats-explanation {

    margin-bottom: 0;

    background:
            radial-gradient(
                    circle at 90% 10%,
                    rgba(129, 140, 248, 0.13),
                    transparent 38%
            ),
            linear-gradient(
                    135deg,
                    #121a31,
                    #0b1020
            );

    border-color:
            rgba(129, 140, 248, 0.14);
}


.ats-explanation .ats-section-title {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 15px;

    font-size: 18px;

    font-weight: 780;

    color: var(--ats-primary-light);
}

.ats-explanation .ats-section-title i {

    font-size: 17px;

    filter:
            drop-shadow(
                    0 0 8px rgba(129, 140, 248, 0.45)
            );
}


.ats-explanation p {

    font-size: 14px;

    line-height: 1.8;

    color: var(--ats-muted);
}


/* =========================================================
   SCORE STATES
   ========================================================= */

.ats-score-high {
    color: var(--ats-success) !important;
}

.ats-score-medium {
    color: var(--ats-warning) !important;
}

.ats-score-low {
    color: var(--ats-danger) !important;
}


.ats-progress-high {

    background:
            linear-gradient(
                    90deg,
                    #10b981,
                    #34d399
            );

    box-shadow:
            0 0 13px rgba(52, 211, 153, 0.25);
}

.ats-progress-medium {

    background:
            linear-gradient(
                    90deg,
                    #f59e0b,
                    #fbbf24
            );

    box-shadow:
            0 0 13px rgba(251, 191, 36, 0.20);
}

.ats-progress-low {

    background:
            linear-gradient(
                    90deg,
                    #ef4444,
                    #f87171
            );

    box-shadow:
            0 0 13px rgba(248, 113, 113, 0.20);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.ats-empty {

    padding: 20px;

    text-align: center;

    border-radius: 13px;

    font-size: 12px;

    color: var(--ats-soft);

    background:
            rgba(15, 23, 42, 0.55);

    border:
            1px solid rgba(148, 163, 184, 0.06);
}


/* =========================================================
   ENTRY ANIMATION
   ========================================================= */

@keyframes atsFadeUp {

    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

#atsContent > * {

    animation:
            atsFadeUp 0.55s cubic-bezier(.22, 1, .36, 1) both;
}

#atsContent > *:nth-child(2) {
    animation-delay: 0.05s;
}

#atsContent > *:nth-child(3) {
    animation-delay: 0.10s;
}

#atsContent > *:nth-child(4) {
    animation-delay: 0.15s;
}

#atsContent > *:nth-child(5) {
    animation-delay: 0.20s;
}

#atsContent > *:nth-child(6) {
    animation-delay: 0.25s;
}

#atsContent > *:nth-child(7) {
    animation-delay: 0.30s;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .ats-result-header {

        gap: 28px;

        padding: 34px 30px;
    }

    .ats-result-title {
        font-size: 32px;
    }

    .ats-score {
        min-width: 170px;
    }

    .ats-score-value span {
        font-size: 50px;
    }
}


@media (max-width: 768px) {

    .ats-result-header {

        flex-direction: column;

        align-items: stretch;

        padding: 30px 25px;
    }

    .ats-result-title {
        font-size: 30px;
    }

    .ats-score {

        width: 100%;

        padding: 22px;
    }

    .ats-score-grid,
    .ats-sections-grid {

        grid-template-columns: 1fr;
    }

    .ats-main-card,
    .ats-keyword-card,
    .ats-structure-card,
    .ats-findings-card,
    .ats-recommendations-card,
    .ats-explanation {

        padding: 26px 23px;
    }

    .ats-main-title,
    .ats-section-title {

        font-size: 19px;
    }
}


@media (max-width: 480px) {

    .ats-result-header {

        padding: 26px 21px;
    }

    .ats-result-title {
        font-size: 27px;
    }

    .ats-result-subtitle {
        font-size: 13px;
    }

    .ats-eyebrow {
        font-size: 10px;
    }

    .ats-keyword-summary {

        grid-template-columns: 1fr;
    }

    .ats-score-grid {

        gap: 12px;
    }

    .ats-main-card,
    .ats-keyword-card,
    .ats-structure-card,
    .ats-findings-card,
    .ats-recommendations-card,
    .ats-explanation {

        padding: 22px 18px;

        border-radius: 19px;
    }

    .ats-section-icon,
    .ats-main-icon {

        width: 44px;
        height: 44px;

        flex-basis: 44px;
    }
}

/* =========================================================
   AI TOOL LOADING STATE
   ========================================================= */

.ai-tool-btn {
    position: relative;
    overflow: hidden;
}

/* Loading overlay */
.ai-tool-btn.ai-tool-loading {
    pointer-events: none;
    cursor: wait;
}

/* Keep the original content visible but slightly subdued */
.ai-tool-btn.ai-tool-loading .ai-tool-icon,
.ai-tool-btn.ai-tool-loading .ai-tool-content,
.ai-tool-btn.ai-tool-loading .ai-tool-arrow {
    opacity: 0.35;
}

/* Animated loading shimmer */
.ai-tool-btn.ai-tool-loading::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.04) 35%,
            rgba(129, 140, 248, 0.16) 50%,
            rgba(255, 255, 255, 0.04) 65%,
            transparent 100%
    );

    transform: translateX(-100%);
    animation: aiToolLoadingSweep 1.4s ease-in-out infinite;

    pointer-events: none;
}

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

    100% {
        transform: translateX(100%);
    }
}


/* Spinner */
.ai-tool-btn.ai-tool-loading::before {
    content: "";
    position: absolute;

    width: 22px;
    height: 22px;

    left: 50%;
    top: 50%;

    margin-left: -11px;
    margin-top: -11px;

    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--ats-primary-light);

    border-radius: 50%;

    animation: aiToolSpinner 0.75s linear infinite;

    z-index: 2;
}

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


