/* ===== MODAL BASE ===== */
.modal.stripe-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.modal.stripe-modal.active {
    display: block;
}

.stripe-modal .modal-wrapper {
    position: absolute;
    inset: 0;
    background: rgba(24, 60, 58, 0.45);
    backdrop-filter: blur(6px);
    padding: 24px;
    overflow-y: auto;
}

.stripe-modal .modal-inner {
    width: 100%;
    max-width: 760px;
    margin: 0px auto;
    background: #ffffff;
    border-radius: 28px !important;
    box-shadow: 0 24px 80px rgba(24, 60, 58, 0.16);
    overflow: hidden;
    padding-bottom: 30px;
    min-height: 0 !important;
}

.stripe-modal .modal-inner #stripe-submit-btn {
    margin-top: 20px;
}

.stripe-modal .modal-inner span.required {
    color: #c0392b;
    margin-left: 4px;
    font-size: 14px;
}

/* ===== HEADER ===== */
.stripe-modal .modal-header {
    padding: 28px 32px 18px;
    border-bottom: 1px solid rgba(24, 60, 58, 0.08);
}

.stripe-modal .modal-header h4 {
    margin: 0;
    max-width: calc(100% - 56px);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #183c3a;
    letter-spacing: -0.02em;
}

.stripe-modal .modal-header .modal-close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #183c3a;
    transition: all 0.2s ease;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.stripe-modal .modal-header .modal-close svg {
    display: block;
    width: 18px;
    height: 18px;
    overflow: hidden;
    pointer-events: none;
}

.stripe-modal .modal-header .modal-close:hover {
    background: #f4f7f2;
    transform: rotate(90deg);
}

/* ===== BODY ===== */
.stripe-modal .modal-body {
    padding: 28px 32px 32px 32px;
}

/* ===== SUMMARY CARD ===== */
.stripe-modal .checkout-package-summary {
    padding: 20px 22px;
    background: linear-gradient(180deg, #f8fbf2 0%, #ffffff 100%);
    border: 1px solid rgba(185, 223, 124, 0.45);
    border-radius: 20px;
    margin-bottom: 24px;
}

.stripe-modal .checkout-package-summary__top {
    margin-bottom: 8px;
    gap: 20px;
}

.stripe-modal #stripe-package-name {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #183c3a;
}

.stripe-modal #stripe-package-price {
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    color: #183c3a;
    white-space: nowrap;
}

.stripe-modal #stripe-package-description {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: #536463;
}

/* ===== FORM ===== */
.stripe-modal .modal-body .form-group {
    margin-bottom: 18px;
}

.stripe-modal .modal-body label {
    display: block;
    margin-bottom: 9px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: #183c3a;
}

.stripe-modal .modal-body .form-control {
    width: 100%;
    min-height: 56px;
    padding: 10px 12px;
    border: 1.5px solid rgba(24, 60, 58, 0.14);
    border-radius: 14px;
    background: #fff;
    color: #183c3a;
    font-size: 14px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.stripe-modal .modal-body .form-control::placeholder {
    color: #8a9695;
}

.stripe-modal .modal-body .form-control:focus {
    border-color: #b9df7c;
    box-shadow: 0 0 0 4px rgba(185, 223, 124, 0.18);
    outline: none;
}

#stripe-payment .stripe-name-row > .form-control {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

#stripe-payment.modal .modal-wrapper .modal-inner .modal-body {
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#stripe-payment .modal-wrapper {
    align-items: safe center !important;
}

/* ===== STRIPE ELEMENT BOX ===== */
.stripe-modal #card-element.form-control {
    display: flex;
    align-items: center;
    padding: 16px;
    min-height: 62px;
}

.stripe-modal #card-errors {
    font-size: 14px;
    line-height: 1.4;
    color: #c0392b;
}

/* ===== TERMS ===== */
.stripe-modal .modal-body .form-group label.d-flex {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.5;
}

.stripe-modal #stripe_checkout_terms {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #b9df7c;
    flex-shrink: 0;
}

.stripe-modal .modal-body .form-group label.d-flex span {
    font-size: 15px;
    color: #183c3a;
}

.stripe-modal .modal-body .form-group label.d-flex a {
    color: #183c3a;
    text-decoration: underline;
    text-decoration-color: rgba(185, 223, 124, 0.8);
    text-underline-offset: 2px;
}

/* ===== CTA ===== */
.stripe-modal #stripe-submit-btn,
.stripe-modal .modal-body .btn.btn-primary {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    border: none;
    border-radius: 18px;
    background: #b9df7c;
    color: #183c3a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: none;
    transition: all 0.2s ease;
}

.stripe-modal #stripe-submit-btn:hover,
.stripe-modal .modal-body .btn.btn-primary:hover {
    background: #abd56d;
    transform: translateY(-1px);
}

.stripe-modal #stripe-submit-btn:focus,
.stripe-modal .modal-body .btn.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(185, 223, 124, 0.22);
}

/* ===== SECONDARY BUTTON ===== */
.stripe-modal .modal-body .btn.btn-outline-secondary {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    border: 1.5px solid #e5deff;
    background: #f7f3ff;
    color: #183c3a;
    font-weight: 600;
    transition: all 0.2s ease;
}

.stripe-modal .modal-body .btn.btn-outline-secondary:hover {
    background: #eee6ff;
    border-color: #d9ccff;
}

/* ===== TRUST TEXT ===== */
.stripe-modal .modal-body .text-muted.small {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #6f7e7d !important;
    text-align: center;
}

/* ===== SUCCESS / FAIL MODAL TEXT ===== */
.stripe-modal #success-modal-title,
.stripe-modal #payment-failed h3 {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #183c3a;
}

.stripe-modal #success-modal-text,
.stripe-modal #failed-modal-text {
    font-size: 17px;
    line-height: 1.6;
    color: #536463;
}

.modal-wrapper {
    flex-direction: column;
    align-items: center !important;
}


.modal-footer {
    width: 100%;
    max-width: 500px;
    padding: 0 32px 32px;
    background: #fff;
    border-radius: 0 0 28px 28px;
    box-sizing: border-box;
    margin-top: -5px;
}

.modal-footer .btn {
    width: 100%;
    display: block;
    margin-bottom: 14px;
}

.modal-footer p {
    margin: 0;
    text-align: center;
}

#card-element {
    padding: 22px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .stripe-modal .modal-wrapper {
        padding: 14px;
    }

    .stripe-modal .modal-inner {
        margin: 16px auto;
        border-radius: 22px;
    }

    .stripe-modal .modal-header {
        padding: 22px 20px 16px;
    }

    .stripe-modal .modal-header h4 {
        font-size: 24px;
        max-width: calc(100% - 48px);
    }

    .stripe-modal .modal-body {
        padding: 22px 20px 24px;
    }

    .stripe-modal #stripe-package-name,
    .stripe-modal #stripe-package-price {
        font-size: 22px;
    }

    .stripe-modal #stripe-package-description {
        font-size: 15px;
    }

    .stripe-modal .checkout-package-summary__top {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px;
    }

    .stripe-modal #stripe-submit-btn,
    .stripe-modal .modal-body .btn.btn-primary {
        font-size: 17px;
        min-height: 54px;
    }

    .modal-footer {
        max-width: 425px;
        margin-top: -17px;
    }

    .modal-footer #stripe-submit-btn {
        margin-top: 20px;
    }

    .stripe-modal .modal-inner {
        min-height: 0 !important;
    }

}

/* Checkout sheet. IDs beat the shared .modal rules (fixed 500px card, 90vh body). */
#stripe-payment .modal-wrapper {
    align-items: safe center !important;
    justify-content: center !important;
    padding: 28px 20px;
    overflow-y: auto;
}

#stripe-payment .modal-inner {
    display: flex;
    flex-direction: column;
    width: min(520px, 100%) !important;
    max-width: 520px !important;
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 56px);
    margin: auto !important;
    padding-bottom: 0 !important;
    border-radius: 24px !important;
    background: #fff;
    overflow: hidden;
}

#stripe-payment .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 20px 22px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(24, 60, 58, 0.08);
}

#stripe-payment .modal-header h4 {
    margin: 0;
    max-width: none;
    flex: 1;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #183c3a;
}

#stripe-payment .modal-header .modal-close {
    width: 44px;
    height: 44px;
    margin-right: -6px;
    background: #f3f6f1;
    transform: none;
}

#stripe-payment .modal-header .modal-close:hover {
    background: #e7eee4;
    transform: none;
}

#stripe-payment .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    max-height: none !important;
    padding: 18px 22px 8px;
}

#stripe-payment .checkout-package-summary {
    margin-bottom: 18px;
    padding: 16px 16px 14px;
    border-radius: 16px;
}

#stripe-payment .checkout-package-summary__top {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

#stripe-payment #stripe-package-name {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    line-height: 1.25;
}

#stripe-payment #stripe-package-price {
    font-size: 22px;
    line-height: 1.15;
}

#stripe-payment #stripe-package-description {
    font-size: 14px;
    line-height: 1.45;
}

#stripe-payment .modal-body .form-group {
    margin-bottom: 14px;
}

#stripe-payment .modal-body label {
    margin-bottom: 6px;
    font-size: 14px;
}

#stripe-payment .modal-body .form-control {
    width: 100%;
    min-height: 52px;
    height: auto;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.3;
}

#stripe-payment .stripe-name-row {
    display: flex;
    gap: 12px;
}

#stripe-payment .stripe-name-row > .form-control {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

#stripe-payment #card-element {
    min-height: 52px;
    padding: 16px 14px;
    border: 1.5px solid rgba(24, 60, 58, 0.14);
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

#stripe-payment #card-element.StripeElement--focus {
    border-color: #b9df7c;
    box-shadow: 0 0 0 4px rgba(185, 223, 124, 0.18);
}

#stripe-payment .modal-body .form-group label.d-flex {
    gap: 10px;
    padding: 2px 0;
}

#stripe-payment #stripe_checkout_terms {
    width: 24px;
    height: 24px;
    margin-top: 1px;
    flex-shrink: 0;
}

#stripe-payment .modal-body .form-group label.d-flex span {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

#stripe-payment .checkout-actions {
    flex-shrink: 0;
    padding: 12px 22px 18px;
    background: #fff;
    border-top: 1px solid rgba(24, 60, 58, 0.08);
}

#stripe-payment #stripe-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    height: auto;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 14px;
    background: #183c3a !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
    box-shadow: none;
    transform: none;
}

#stripe-payment #stripe-submit-btn:hover,
#stripe-payment #stripe-submit-btn:focus {
    background: #245552 !important;
    color: #fff !important;
    transform: none;
    box-shadow: none;
}

#stripe-payment .checkout-trust {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
    color: #6f7e7d;
    text-align: center;
}

@media (max-width: 767px) {
    #stripe-payment .modal-wrapper {
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        overflow: hidden;
    }

    #stripe-payment .modal-inner {
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none;
    }

    #stripe-payment .modal-header {
        padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    }

    #stripe-payment .modal-header h4 {
        font-size: 20px;
    }

    #stripe-payment .modal-body {
        padding: 14px 16px 8px;
    }

    #stripe-payment .checkout-package-summary {
        padding: 14px;
        margin-bottom: 16px;
    }

    #stripe-payment #stripe-package-name {
        font-size: 16px;
    }

    #stripe-payment #stripe-package-price {
        font-size: 20px;
    }

    #stripe-payment #stripe-package-description {
        font-size: 13px;
    }

    #stripe-payment .stripe-name-row {
        flex-direction: column;
        gap: 10px;
    }

    #stripe-payment .stripe-name-row > .form-control {
        flex: none;
        width: 100%;
    }

    #stripe-payment .checkout-actions {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }

    #stripe-payment.is-typing .modal-inner {
        height: var(--checkout-vv, 100dvh);
        max-height: var(--checkout-vv, 100dvh);
    }

    #stripe-payment.is-typing .checkout-actions {
        display: none;
    }

    #stripe-payment #stripe-submit-btn {
        font-size: 16px;
        min-height: 52px;
    }
}

#payment-failed #failed-modal-text {
    margin-top: 40px;
    margin-bottom: 40px;
}

#payment-failed .modal-inner {
    border-radius: 28px !important;
}

#payment-failed button.modal-close {
    height: 55px !important;
}

/* Success sheet after package purchase. */
#payment-success .modal-wrapper {
    display: flex !important;
    align-items: safe center !important;
    justify-content: center !important;
    padding: 28px 20px;
    overflow-y: auto;
}

#payment-success .modal-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(440px, 100%) !important;
    max-width: 440px !important;
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 48px);
    margin: auto !important;
    padding-bottom: 0 !important;
    border-radius: 24px !important;
    background: #fff;
    overflow: hidden;
}

#payment-success .success-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    background: #f3f6f1;
    color: #183c3a;
    transform: none;
}

#payment-success .success-close:hover {
    background: #e7eee4;
    transform: none;
}

#payment-success .success-close svg {
    display: block;
    pointer-events: none;
}

#payment-success .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 36px 28px 28px;
    text-align: center;
}

#payment-success .success-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e7f6cf;
    color: #183c3a;
}

#payment-success #success-modal-title {
    margin: 0 auto 10px;
    max-width: 16em;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #183c3a;
    text-wrap: balance;
}

#payment-success #success-modal-text {
    margin: 0 auto 22px;
    max-width: 34em;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    color: #5d6d6c;
}

#payment-success .success-password-errors {
    min-height: 0;
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #b42318;
    text-align: center;
}

#payment-success .success-password-errors:empty {
    display: none;
}

#payment-success .payment-success-links {
    list-style: none;
    margin: 0;
    padding: 0;
    width: auto;
    text-align: center;
}

#payment-success .payment-success-links li {
    margin: 0 0 10px;
    width: 100%;
    max-width: none !important;
}

#payment-success .payment-success-links li:last-child {
    margin-bottom: 0;
}

#payment-success .success-action {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    height: auto;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    box-shadow: none;
    transform: none;
    cursor: pointer;
}

#payment-success .success-action--primary {
    background: #183c3a;
    color: #fff;
}

#payment-success .success-action--primary:hover,
#payment-success .success-action--primary:focus {
    background: #245552;
    color: #fff;
}

#payment-success .success-action--green {
    background: #b9df7c;
    color: #183c3a;
}

#payment-success .success-action--green:hover,
#payment-success .success-action--green:focus {
    background: #a8d468;
    color: #183c3a;
}

#payment-success .success-action--account {
    background: #b19cff;
    color: #fff;
}

#payment-success .success-action--account:hover,
#payment-success .success-action--account:focus {
    background: #9d84f5;
    color: #fff;
}

#payment-success .payment-success-user-setup {
    margin-top: 2px;
    text-align: left;
}

#payment-success #success-modal-text-2 {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    color: #183c3a;
    text-align: center;
}

#payment-success .payment-success-user-setup .form-group {
    margin-bottom: 12px;
}

#payment-success .payment-success-user-setup label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #183c3a;
    text-align: left;
}

#payment-success .payment-success-user-setup .form-control {
    width: 100%;
    min-height: 52px;
    height: auto;
    padding: 12px 14px !important;
    border: 1.5px solid rgba(24, 60, 58, 0.14);
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    line-height: 1.3 !important;
    color: #183c3a;
    box-sizing: border-box;
}

#payment-success .payment-success-user-setup .form-control:focus {
    outline: none;
    border-color: #b9df7c;
    box-shadow: 0 0 0 4px rgba(185, 223, 124, 0.18);
}

#payment-success #stripe-checkout-passowrd-btn {
    margin-top: 4px;
}

@media (max-width: 767px) {
    #payment-success .modal-wrapper {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    #payment-success .modal-inner {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 24px);
        margin: 0 !important;
        border-radius: 22px 22px 0 0 !important;
    }

    #payment-success .success-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }

    #payment-success .modal-body {
        padding: 28px 16px calc(16px + env(safe-area-inset-bottom));
    }

    #payment-success #success-modal-title {
        font-size: 24px;
    }

    #payment-success #success-modal-text {
        font-size: 15px;
    }
}

/* CV dashboard - videos */
.packages .packages-wrapper .packages-item.expert {
    border: 3px solid #c49a62;
    box-shadow: 0 0 0 6px rgba(196, 154, 98, 0.28), 0 18px 40px rgba(25, 66, 64, 0.14);
}

.packages .packages-wrapper .packages-item .packages-title {
    margin-bottom: 0.8rem;
}

.packages .packages-wrapper .packages-item .packages-offer {
    display: inline-block;
    margin: 0 0 2.2rem;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    background: #e5deff;
    color: #194240;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

@media (min-width: 1265px) {
    .packages .packages-wrapper .packages-item .packages-title {
        margin-bottom: 1rem;
    }

    .packages .packages-wrapper .packages-item .packages-offer {
        margin-bottom: 2.8rem;
        font-size: 1.6rem;
    }
}

.packages-wrapper p.product-description {
    text-transform: lowercase;
    display: inline-block;
    padding-top: 10px;
    font-size: 12px;
    color: #2d7672;
    font-weight: bold;
}

.main-content-inner .content .item-wrapper .item .left .info .label {
    line-height: 24px;
}

.main-content-inner .content .item-wrapper .item .left .info .label a {
    color: inherit;
    text-decoration: none;
}

.main-content-inner .content .item-wrapper .item .left .info .desc {
    display: block;

}

.main-content-inner .content .item-wrapper .item .left .info .desc p {
    line-height: 24px;
    font-size: 14px;
    display: block;
}

@media (max-width: 767px) {
    .main-content-inner .content .item-wrapper .item .left .info .desc p.order-invoice {
        margin-top: 1.4rem;
    }
}

.main-content-inner .content .item-wrapper .item .left {
    max-width: 680px;
}

.modal.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

.modal.video-modal.active {
    display: block;
}

.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 60, 58, 0.55);
    backdrop-filter: blur(6px);
    padding: 30px 16px;
    overflow-y: auto;
}

.video-modal-box {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(24, 60, 58, 0.18);
    position: relative;
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(24, 60, 58, 0.08);
}

.video-modal-header h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #183c3a;
}

.video-modal-close {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #183c3a;
    transition: all 0.2s ease;
}

.video-modal-close:hover {
    background: #f3f6f1;
    transform: rotate(90deg);
}

.video-modal-body {
    padding: 24px 28px 28px;
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    margin-bottom: 20px;
}

.video-embed-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-embed-wrapper .video-fullscreen {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-embed-wrapper:fullscreen,
.video-embed-wrapper:-webkit-full-screen {
    width: 100%;
    height: 100%;
    padding-top: 0;
    margin: 0;
    border-radius: 0;
    background: #000;
}

.video-embed-wrapper:fullscreen .video-fullscreen,
.video-embed-wrapper:-webkit-full-screen .video-fullscreen {
    display: inline-flex;
}

.video-modal-meta h4 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #183c3a;
}

.video-modal-meta p {
    margin: 0;
    font-size: 15px;
    color: #5d6c6b;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .video-modal-header {
        padding: 18px 20px 14px;
    }

    .video-modal-header h3 {
        flex: 1;
        min-width: 0;
        font-size: 16px;
    }

    .video-modal-close {
        flex: 0 0 auto;
    }

    .video-modal-body {
        padding: 18px 20px 22px;
    }

    .video-modal-meta h4 {
        display: none;
    }

    .video-embed-wrapper .video-fullscreen {
        display: inline-flex;
    }
}


/* CV Letters */
.letter-generator-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
    align-items: start;
}

.letter-generator-form,
.letter-generator-preview {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
}

.letter-preview-box {
    min-height: 700px;
    display: flex;
    flex-direction: column;
}

.letter-preview-content {
    flex: 1;
    padding: 20px 0;
    white-space: pre-line;
}

.letter-preview-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.letter-preview-actions .btn-transparent,
.letter-preview-actions .btn-purple {
    flex: 1;
}

@media (max-width: 991px) {
    .letter-generator-layout {
        grid-template-columns: 1fr;
    }
}

/* Jobs list */

.job-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    display: inline-block;
}

/* Status colors */
.status-saved {
    background: #eee;
    color: #666;
}

.status-applied {
    background: #d1ecf1;
    color: #0c5460;
}

.status-contacted {
    background: #fff3cd;
    color: #856404;
}

.status-interview {
    background: #cce5ff;
    color: #004085;
}

.status-first_round {
    background: #e2d9f3;
    color: #4b2e83;
}

.status-second_round {
    background: #d4edda;
    color: #155724;
}

.status-offer {
    background: #c3e6cb;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#cvmaker-job-form textarea.input-group {
    height: auto !important;
    min-height: 16rem;
    max-height: 32rem;
    padding: 1.6rem 1.8rem !important;
    border: 1px solid rgba(25, 66, 64, 0.12);
    border-radius: 12px;
    background-color: #f7f8f7;
    color: #194240;
    font-size: 1.5rem;
    line-height: 1.6;
    letter-spacing: -0.2px;
    resize: vertical;
    field-sizing: content;
}

#cvmaker-job-form textarea.input-group:focus {
    outline: none;
    border-color: #194240;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 66, 64, 0.08);
}

#cvmaker-job-form textarea[name="notes"] {
    min-height: 14rem;
}

.form-actions {
    margin-top: 20px;
}

.main-content-inner .content .item-wrapper .item .right a.btn-transparent {
    height: 4rem;
    padding: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
}

.form-actions.custom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
}

.form-actions.custom .btn-transparent {
    margin-bottom: 0;
}

@media (min-width: 576px) {
    .form-actions.custom {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .form-actions.custom .btn-transparent,
    .form-actions.custom .btn-green {
        padding: 1.4rem 1.6rem;
        white-space: nowrap;
    }
}
.job-status-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    vertical-align: middle;
}

.job-status-select {
    appearance: none;
    -webkit-appearance: none;
    margin-left: 0;
    padding: 5px 28px 5px 12px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23194240' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
}

.job-status-note {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    color: #155724;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.job-status-note::before {
    content: "✓";
    margin-right: 4px;
}

.job-status-note.is-visible {
    opacity: 1;
}

.job-status-select.status-saved {
    background-color: #eee;
    color: #666;
}

.job-status-select.status-applied {
    background-color: #d1ecf1;
    color: #0c5460;
}

.job-status-select.status-contacted {
    background-color: #fff3cd;
    color: #856404;
}

.job-status-select.status-interview {
    background-color: #cce5ff;
    color: #004085;
}

.job-status-select.status-first_round {
    background-color: #e2d9f3;
    color: #4b2e83;
}

.job-status-select.status-second_round {
    background-color: #d4edda;
    color: #155724;
}

.job-status-select.status-offer {
    background-color: #c3e6cb;
    color: #155724;
}

.job-status-select.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Cover Letters */

/* ================================
   COVER LETTER BUILDER
================================ */

.letter-builder-app {
    width: 100%;
}

.letter-builder-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(25, 66, 64, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(25, 66, 64, 0.04);
}

.letter-builder-toolbar .toolbar-left,
.letter-builder-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.letter-builder-toolbar .toolbar-center {
    flex: 1 1 auto;
    min-width: 0;
    color: #194240;
}

.letter-builder-toolbar .toolbar-right {
    justify-content: flex-end;
}

.letter-builder-app .letter-builder-toolbar .btn-transparent,
.letter-builder-app .letter-builder-toolbar .btn-purple,
.letter-builder-toolbar .toolbar-select {
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.letter-builder-toolbar .toolbar-left .btn-transparent {
    background: transparent;
    border-color: transparent;
    padding-left: 10px;
}

.letter-builder-toolbar .toolbar-left .btn-transparent::before {
    content: "‹";
    margin-right: 6px;
    font-size: 22px;
    line-height: 0;
}

.letter-builder-toolbar .toolbar-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px;
    border: 1px solid rgba(25, 66, 64, 0.12);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23194240' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    color: #194240;
    cursor: pointer;
}

.letter-builder-toolbar .btn-purple:disabled,
.letter-builder-toolbar .btn-transparent:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.letter-builder-layout {
    display: grid;
    grid-template-columns: minmax(420px, 520px) minmax(520px, 1fr);
    gap: 32px;
    align-items: start;
}

.letter-builder-sidebar {
    background: #fff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(25, 66, 64, 0.06);
}

.letter-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 26px;
}

.quick-action-card {
    min-height: 132px;
    border: 1px solid rgba(25, 66, 64, 0.12);
    border-radius: 16px;
    background: #fff;
    color: #194240;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    transition: 0.2s ease;
}

.quick-action-card:hover {
    background: #f7f3ff;
}

.quick-action-card.is-selected {
    background: #f4faf0;
    border-color: #8fbf7a;
}

.quick-action-card.is-selected:hover {
    background: #eef6e6;
}

.quick-action-icon {
    font-size: 22px;
    line-height: 1;
}

.quick-action-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: #194240;
}

.quick-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f3f2;
    color: #7d8c8a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.quick-action-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c5cdcc;
}

.quick-action-card.is-selected .quick-action-badge {
    background: #e5f3d8;
    color: #2f6b32;
}

.quick-action-card.is-selected .quick-action-badge::before {
    background: #6ea34a;
}

.quick-action-status {
    display: -webkit-box;
    max-width: 100%;
    padding: 0 8px;
    overflow: hidden;
    color: #194240;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.quick-action-status[hidden] {
    display: none;
}

.builder-section {
    padding: 22px 0;
    border-bottom: 1px solid rgba(25, 66, 64, 0.08);
}

.builder-section:first-of-type {
    padding-top: 0;
}

.builder-section-head {
    margin-bottom: 16px;
}

.builder-section-head h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #194240;
    font-weight: 800;
}

.builder-section-body .form-group {
    margin-bottom: 18px;
}

.builder-section-body label {
    display: block;
    margin-bottom: 8px;
    color: #194240;
    font-size: 14px;
    font-weight: 700;
}

.builder-section-body small {
    display: block;
    margin-top: 7px;
    color: #6d7d7b;
    font-size: 13px;
}

.builder-section-body .input-group,
.builder-section-body input[type="text"],
.builder-section-body input[type="url"],
.builder-section-body input[type="file"],
.builder-section-body select,
.builder-section-body textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    border: 1px solid rgba(25, 66, 64, 0.12);
    border-radius: 14px;
    background: #fff;
    color: #194240;
    font-size: 15px;
    outline: none;
    box-shadow: none;
    transition: 0.2s ease;
}

.builder-section-body textarea {
    resize: vertical;
    min-height: 130px;
}

.builder-section-body .input-group:focus,
.builder-section-body input:focus,
.builder-section-body select:focus,
.builder-section-body textarea:focus {
    border-color: #b9df7c;
    box-shadow: 0 0 0 4px rgba(185, 223, 124, 0.18);
}

.or-divider {
    margin: 12px 0 18px;
    font-size: 13px;
    font-weight: 700;
    color: #8a9695;
}

.form-actions {
    margin-top: 10px;
}

.form-actions .btn-purple {
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
}

/* ================================
   PREVIEW
================================ */

.letter-builder-preview-area {
    position: sticky;
    top: 24px;
}

.letter-preview-paper {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 760px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(25, 66, 64, 0.08);
}

.letter-template-sidebar {
    background: #eef3f5;
    position: relative;
}

.letter-template-title {
    background: #3b638f;
    color: #fff;
    min-height: 120px;
    padding: 34px 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    position: relative;
}

.letter-template-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -38px;
    height: 78px;
    background: #3b638f;
    border-radius: 0 0 50% 50%;
}

.letter-template-content {
    padding: 52px 58px;
    color: #111;
    font-size: 16px;
    line-height: 1.65;
}

.letter-template-content p {
    margin: 0 0 18px;
}

.letter-preview-content {
    white-space: pre-line;
}

.letter-template-bar {
    margin-top: 18px;
    padding: 14px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(25, 66, 64, 0.08);
    display: flex;
    gap: 14px;
    overflow-x: auto;
}

.letter-template-option {
    flex: 0 0 118px;
    width: 118px;
    min-width: 118px;
    border: 1px solid rgba(25, 66, 64, 0.1);
    border-radius: 14px;
    background: #fff;
    padding: 8px 8px 10px;
    cursor: pointer;
    color: #194240;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: 0.2s ease;
}

.letter-template-option:hover,
.letter-template-option.is-active {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.16);
}

.template-thumb {
    display: block;
    position: relative;
    width: 100%;
    height: 148px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(25, 66, 64, 0.1);
}

.template-thumb .thumb-bar,
.template-thumb .thumb-line {
    display: block;
    position: absolute;
}

.template-thumb .thumb-line {
    left: 12px;
    right: 12px;
    height: 4px;
    border-radius: 99px;
    background: #e6e8e7;
}

.template-thumb .thumb-line:nth-child(2) { top: 62px; }
.template-thumb .thumb-line:nth-child(3) { top: 74px; }
.template-thumb .thumb-line:nth-child(4) { top: 86px; }
.template-thumb .thumb-line.is-short {
    top: 98px;
    right: auto;
    width: 42%;
}

.template-professional .thumb-bar {
    top: 0;
    left: 0;
    right: 0;
    height: 42px;
    background: #3b638f;
}

.template-classic .thumb-bar {
    top: 16px;
    left: 12px;
    right: 12px;
    height: 0;
    border-bottom: 2px solid #194240;
}

.template-classic .thumb-line:nth-child(2) { top: 36px; }
.template-classic .thumb-line:nth-child(3) { top: 48px; }
.template-classic .thumb-line:nth-child(4) { top: 60px; }
.template-classic .thumb-line.is-short { top: 72px; }

.template-modern .thumb-bar {
    top: 0;
    bottom: 0;
    left: 0;
    width: 12px;
    background: #7c6aef;
}

.template-modern .thumb-line { left: 22px; }

.template-elegant .thumb-bar {
    top: 0;
    left: 0;
    right: 0;
    height: 42px;
    background: #e7f2ef;
    box-shadow: inset 0 -4px 0 #8fbf7a;
}

.template-professional {
    --template-color: #3b638f;
}

.template-classic {
    --template-color: #194240;
}

.template-modern {
    --template-color: #a78bfa;
}

.template-elegant {
    --template-color: #b9df7c;
}

.letter-preview-paper.template-professional .letter-preview-top-title {
    background: #3b638f;
    color: #fff;
}

.letter-preview-paper.template-classic {
    font-family: Georgia, "Times New Roman", serif;
}

.letter-preview-paper.template-classic .letter-preview-top-title {
    background: transparent;
    color: #194240;
    margin: 0 0 28px;
    padding: 0 0 14px;
    border-bottom: 2px solid #194240;
    font-family: Georgia, "Times New Roman", serif;
}

.letter-preview-paper.template-modern {
    box-shadow: inset 14px 0 0 #7c6aef, 0 18px 55px rgba(25, 66, 64, 0.08);
}

.letter-preview-paper.template-modern .letter-preview-top-title {
    background: transparent;
    color: #5b4bdb;
    margin: 0 0 28px;
    padding: 4px 0 0;
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.letter-preview-paper.template-elegant .letter-preview-top-title {
    background: #e7f2ef;
    color: #194240;
    box-shadow: inset 0 -4px 0 #8fbf7a;
}

/* ================================
   BUTTON NORMALIZATION
================================ */

.letter-builder-app .btn-purple,
.letter-builder-app .btn-transparent {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.letter-builder-app .btn-purple {
    background: #a78bfa;
    color: #fff;
}

.letter-builder-app .btn-purple:hover {
    background: #9676f5;
}

.letter-builder-app .btn-transparent {
    background: #fff;
    color: #194240;
    border: 1px solid rgba(25, 66, 64, 0.12);
}

.letter-builder-app .btn-transparent:hover {
    background: #f7f3ff;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1200px) {
    .letter-builder-layout {
        grid-template-columns: 1fr;
    }

    .letter-builder-preview-area {
        position: static;
    }
}

@media (max-width: 767px) {
    .letter-builder-toolbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .letter-builder-toolbar .toolbar-center {
        order: -1;
        flex: 1 1 100%;
    }

    .letter-builder-toolbar .toolbar-left {
        flex: 0 0 auto;
    }

    .letter-builder-toolbar .toolbar-left .btn-transparent {
        width: 40px;
        min-width: 40px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        white-space: nowrap;
        position: relative;
        border-color: rgba(25, 66, 64, 0.12);
    }

    .letter-builder-toolbar .toolbar-left .btn-transparent::before {
        color: #194240;
        margin-right: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -55%);
        font-size: 24px;
        line-height: 1;
    }

    .letter-builder-toolbar .toolbar-right {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 0;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 6px;
    }

    .letter-builder-toolbar .toolbar-select {
        flex: 0 1 92px;
        width: 92px;
        min-width: 0;
        max-width: 92px;
        padding: 0 22px 0 8px;
        font-size: 13px;
        background-position: right 8px center;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .letter-builder-app .letter-builder-toolbar .toolbar-right .btn-transparent,
    .letter-builder-app .letter-builder-toolbar .toolbar-right .btn-purple {
        padding: 0 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .letter-builder-sidebar {
        padding: 18px;
        border-radius: 18px;
    }

    .letter-quick-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .letter-quick-actions .quick-action-card {
        min-height: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 10px 12px;
        text-align: left;
    }

    .letter-quick-actions .quick-action-icon {
        font-size: 18px;
    }

    .letter-quick-actions .quick-action-title {
        font-size: 14px;
    }

    .letter-quick-actions .quick-action-badge {
        margin-top: 0;
        margin-left: auto;
    }

    .letter-quick-actions .quick-action-status {
        flex: 1 1 100%;
        padding: 0;
        text-align: left;
        -webkit-line-clamp: 1;
    }

    .letter-preview-paper {
        grid-template-columns: 120px 1fr;
        min-height: 620px;
    }

    .letter-template-title {
        font-size: 16px;
        padding: 26px 12px;
    }

    .letter-template-content {
        padding: 34px 24px;
        font-size: 14px;
    }
}

/* FIX LETTER BUILDER LAYOUT */

.letter-builder-layout {
    display: grid;
    grid-template-columns: 430px minmax(560px, 1fr);
    gap: 32px;
    align-items: start;
}

.letter-builder-sidebar {
    max-width: 430px;
    width: 100%;
}

.letter-builder-preview-area {
    width: 100%;
    min-width: 0;
}

.letter-preview-paper {
    width: 100%;
    max-width: 920px;
    min-height: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(25, 66, 64, 0.08);
    overflow: hidden;
    display: block !important;
}

.letter-preview-paper.template-modern {
    box-shadow: inset 14px 0 0 #7c6aef, 0 18px 55px rgba(25, 66, 64, 0.08);
}

.letter-template-content {
    width: 100%;
    padding: 48px 36px 56px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.65;
    color: #111;
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
}

.letter-preview-top-title {
    background: #2f3a4a;
    color: #fff;
    margin: -48px -36px 36px;
    padding: 34px 36px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 500;
}

#letter-preview-recipient,
#letter-preview-date,
#letter-generator-result {
    max-width: 100%;
    width: 100%;
}

#letter-generator-result p,
#letter-generator-result div {
    margin: 0 0 18px;
}

#letter-generator-result[contenteditable="true"] {
    outline: none;
    cursor: text;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 20px 22px 28px;
    min-height: 460px;
    border-radius: 12px;
    border: 1px solid rgba(25, 66, 64, 0.1);
    background: #fbfbfb;
}

#letter-generator-result[contenteditable="true"]:focus {
    border-color: rgba(167, 139, 250, 0.7);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.16);
}

.letter-editor-toolbar {
    width: 100%;
    max-width: 920px;
    margin: 14px auto 0;
    padding: 8px 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(25, 66, 64, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
}

.letter-editor-toolbar button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(25, 66, 64, 0.12);
    border-radius: 8px;
    background: #fff;
    color: #194240;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.letter-editor-toolbar button:hover {
    border-color: #a78bfa;
    background: #f7f3ff;
}

.letter-editor-toolbar .is-underline {
    text-decoration: underline;
}

.letter-editor-hint {
    margin-left: 8px;
    color: #6d7d7b;
    font-size: 13px;
    font-weight: 600;
}

.letter-preview-content {
    white-space: normal;
}

.letter-template-bar {
    width: 100%;
    max-width: 920px;
    margin: 20px auto 0;
    padding: 14px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(25, 66, 64, 0.08);
    display: flex;
    gap: 14px;
    overflow-x: auto;
}

/* ACCORDION */

.builder-section {
    border-bottom: 1px solid rgba(25, 66, 64, 0.08);
    padding: 22px 0;
}

.builder-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    margin-bottom: 0;
}

.builder-section-head h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #194240;
    font-weight: 800;
}

.accordion-icon {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(25, 66, 64, 0.16);
    background: #fff;
    border-radius: 999px;
    color: #194240;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.builder-section-body {
    margin-top: 18px;
}

.builder-section:not(.is-open) .builder-section-body {
    display: none !important;
}

.builder-section.is-open .accordion-icon {
    transform: rotate(180deg);
}

/* FORM GRID FIX */

.personal-photo-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    align-items: start;
}

.letter-photo-box {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    background: #f1f1f3;
    overflow: hidden;
}

.letter-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personal-fields-grid,
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.personal-fields-grid .full,
.form-grid-2 .full {
    grid-column: 1 / -1;
}

.builder-section-body .form-group {
    margin-bottom: 16px;
}

.builder-section-body label {
    display: block;
    margin-bottom: 7px;
    color: #194240;
    font-size: 14px;
    font-weight: 700;
}

.builder-section-body .input-group,
.builder-section-body input,
.builder-section-body select,
.builder-section-body textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    border: 1px solid rgba(25, 66, 64, 0.12);
    border-radius: 14px;
    background: #fff;
    color: #194240;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.builder-section-body textarea {
    resize: vertical;
    min-height: 130px;
}

.letter-extra-fields {
    padding-top: 22px;
}

.letter-extra-fields .form-group {
    margin-bottom: 16px;
}

.letter-extra-fields label {
    display: block;
    margin-bottom: 7px;
    color: #194240;
    font-size: 14px;
    font-weight: 700;
}

.letter-extra-fields .input-group,
.letter-extra-fields select,
.letter-extra-fields textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    border: 1px solid rgba(25, 66, 64, 0.12);
    border-radius: 14px;
    background: #fff;
    color: #194240;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.letter-extra-fields textarea.input-group {
    height: auto !important;
    min-height: 130px;
    padding: 13px 16px !important;
    resize: vertical;
}

.letter-extra-fields .input-group:focus,
.letter-extra-fields select:focus,
.letter-extra-fields textarea:focus {
    border-color: #b9df7c;
    box-shadow: 0 0 0 4px rgba(185, 223, 124, 0.18);
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .letter-builder-layout {
        grid-template-columns: 1fr;
    }

    .letter-builder-sidebar {
        max-width: none;
    }

    .letter-builder-preview-area {
        position: static;
    }
}

@media (max-width: 767px) {

    .letter-preview-paper,
    .letter-template-bar {
        max-width: 100%;
    }

    .letter-template-content {
        padding: 42px 28px;
        font-size: 14px;
    }

    .letter-preview-top-title {
        margin: -42px -28px 32px;
        padding: 26px 28px;
        font-size: 26px;
    }

    .personal-photo-row,
    .personal-fields-grid,
    .form-grid-2 {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .personal-fields-grid > .form-group,
    .form-grid-2 > .form-group,
    .builder-section-body .form-group {
        min-width: 0;
        max-width: 100%;
    }

    .builder-section-body input[type="date"] {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        text-align: left;
        -webkit-appearance: none;
        appearance: none;
    }

    .builder-section-body input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
        min-width: 0;
    }

    .builder-section-body input[type="date"]::-webkit-datetime-edit {
        min-width: 0;
        padding: 0;
    }
}

.template-changing {
    opacity: 0.6;
    transform: scale(0.99);
    transition: all 0.25s ease;
}

.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Modals */

.letter-select-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.letter-select-modal.is-open {
    display: block;
}

.letter-select-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.letter-select-modal-box {
    width: 100%;
    max-width: 920px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
}

.letter-select-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.letter-select-modal-header h3 {
    margin: 0;
    font-size: 32px;
    color: #194240;
}

.letter-select-modal-close {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.letter-select-search input {
    width: 100%;
    height: 58px;
    border-radius: 14px;
    border: 1px solid #e4e4e4;
    padding: 0 18px;
    font-size: 17px;
    margin-bottom: 24px;
}

.letter-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px;
    min-height: 260px;
}

.letter-select-card,
.letter-select-job {
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    padding: 16px;
    transition: 0.2s ease;
}

.letter-select-card:hover,
.letter-select-job:hover {
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
}

.letter-select-thumb {
    height: 210px;
    border-radius: 12px;
    background: #f1f5f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #194240;
    font-weight: 800;
    margin-bottom: 14px;
}

.letter-select-card strong,
.letter-select-job strong {
    display: block;
    color: #194240;
    font-size: 16px;
    margin-bottom: 5px;
}

.letter-select-card small,
.letter-select-job span {
    color: #6d7d7b;
    font-size: 14px;
}

.letter-select-list {
    display: grid;
    gap: 12px;
    min-height: 220px;
}

.letter-select-job {
    padding: 18px 20px;
}

.letter-select-empty {
    min-height: 220px;
    border: 1px dashed #ddd;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d7d7b;
}

.letter-select-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
}

.extra-fields .add-field.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.cv-upload-loader {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-top: 12px;
    border-radius: 10px;
    background: #f0f8e5;
}

.loader-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #dbe8d5;
    border-top: 3px solid #194240;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loader-text strong {
    display: block;
    font-size: 14px;
    color: #194240;
}

.loader-text span {
    font-size: 12px;
    color: #777;
}

/* LinkedIn import */
.cv-linkedin-btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

#cv-template-modal .modal-wrapper {
    box-sizing: border-box;
    height: 100%;
    max-height: 100vh;
    padding: 24px 16px;
    overflow: hidden;
}

#cv-template-modal .modal-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 1 1080px;
    width: min(1080px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    height: auto;
    align-self: center;
    overflow: hidden;
    padding: 28px 12px 16px 28px;
    box-sizing: border-box;
    text-align: left;
}

#cv-template-modal .modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    height: auto;
    overflow: hidden;
    padding: 0;
}

#cv-template-modal .cv-template-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #194240;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

#cv-template-modal h3 {
    margin: 0 36px 8px 0;
    color: #194240;
    font-size: 2.2rem;
    text-align: left;
}

#cv-template-modal .cv-template-lead {
    margin: 0 0 18px;
    color: #5d6b6a;
    font-size: 1.5rem;
}

#cv-template-modal .cv-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 18px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 16px 36px 0;
}

#cv-template-modal .cv-template-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #194240;
    text-align: left;
    cursor: pointer;
}

#cv-template-modal .cv-example-sheet {
    display: flex;
    height: 230px;
    border: 1px solid #e6e8ee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(25, 66, 64, 0.08);
}

#cv-template-modal .cv-example-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 34%;
    padding: 16px 12px;
    background: var(--example-accent, #194240);
}

#cv-template-modal .sheet-top {
    flex-direction: column;
}

#cv-template-modal .sheet-top .cv-example-side {
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 54px;
    padding: 10px 14px;
}

#cv-template-modal .sheet-top .cv-example-side-line {
    display: none;
}

#cv-template-modal .sheet-dark {
    background: #243044;
}

#cv-template-modal .sheet-dark .cv-example-side {
    background: #1b2636;
}

#cv-template-modal .sheet-dark .cv-example-name,
#cv-template-modal .sheet-dark .cv-example-role {
    color: #fff;
}

#cv-template-modal .sheet-dark .cv-example-line,
#cv-template-modal .sheet-dark .cv-example-rule {
    background: rgba(255, 255, 255, 0.28);
}

#cv-template-modal .cv-example-photo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    flex: 0 0 auto;
}

#cv-template-modal .cv-example-side-line,
#cv-template-modal .cv-example-line,
#cv-template-modal .cv-example-rule {
    display: block;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.45);
}

#cv-template-modal .cv-example-side-line.short,
#cv-template-modal .cv-example-line.short {
    width: 62%;
}

#cv-template-modal .cv-example-main {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    min-width: 0;
    padding: 16px 14px;
}

#cv-template-modal .cv-example-name {
    color: #1d2433;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

#cv-template-modal .cv-example-role {
    color: #5c6770;
    font-size: 1.15rem;
    font-style: normal;
    line-height: 1.2;
}

#cv-template-modal .cv-example-main .cv-example-line,
#cv-template-modal .cv-example-main .cv-example-rule {
    background: #e4e7ee;
}

#cv-template-modal .sheet-dark .cv-example-main .cv-example-line,
#cv-template-modal .sheet-dark .cv-example-main .cv-example-rule {
    background: rgba(255, 255, 255, 0.28);
}

#cv-template-modal .cv-example-rule {
    height: 2px;
    margin-top: 6px;
}

#cv-template-modal .cv-example-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

#cv-template-modal .cv-example-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.2em;
    font-size: 1.35rem;
    line-height: 1.4;
    color: #5d6b6a;
}

#cv-template-modal .cv-template-card:hover .cv-example-sheet,
#cv-template-modal .cv-template-card:focus .cv-example-sheet {
    border-color: #194240;
}

#cv-template-modal .cv-template-card:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (max-width: 980px) {
    #cv-template-modal .cv-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    #cv-template-modal .cv-template-grid {
        grid-template-columns: 1fr;
    }
}

.cv-template-switcher {
    display: flex;
    gap: 8px;
    padding: 12px 8px 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(25, 66, 64, 0.12);
    overflow-x: auto;
}

.cv-template-switcher.is-closed {
    display: none;
}

.cv-preview-template {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: 100px;
}

.cv-template-thumb {
    position: relative;
    width: 92px;
    height: 124px;
    border: 2px solid #e4e4e4;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.cv-preview-template.is-active .cv-template-thumb {
    border-color: #4d7cff;
    box-shadow: 0 0 0 1px #4d7cff;
}

.cv-template-thumb .cv-thumb-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 780px;
    transform: scale(0.1128);
    transform-origin: top left;
    pointer-events: none;
}

.cv-template-name {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    color: #24323a;
    text-align: center;
    max-width: 96px;
    white-space: nowrap;
}

/* Editor dropdown */

.editor-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    z-index: 80;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* naslov (FONT, SIZE itd) */
.editor-dropdown strong {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* dugmad */
.editor-dropdown button {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;

    font-size: 16px;
    color: #333;
    transition: background 0.2s ease;
}

/* hover */
.editor-dropdown button:hover {
    background: #f3f4f6;
}

/* aktivno (čekirano) */
.editor-dropdown button.is-active {
    background: #eef2ff;
    font-weight: 600;
}

/* checkmark */
.editor-dropdown button.is-active::before {
    content: "✔";
    margin-right: 8px;
    font-size: 14px;
    color: #333;
}

/* FONT dropdown malo širi */
.editor-font-dropdown {
    min-width: 260px;
}

.cv-header.cv-header-builder {
    position: relative;
    z-index: 8;
    overflow: visible;
}

.cv-header.cv-header-builder .cv-header-wrapper {
    justify-content: flex-start;
    gap: 2.4rem;
}

.cv-header.cv-header-builder .cv-header-wrapper::after {
    display: none;
}

.cv-header.cv-header-builder .generate-cv {
    margin-left: auto;
}

.cv-language-picker {
    position: relative;
    z-index: 30;
}

.cv-language-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5deff;
    border-radius: 10px;
    padding: 1rem 1.6rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #194240;
    cursor: pointer;
    white-space: nowrap;
}

.cv-language-btn .cv-language-value {
    font-weight: 700;
    color: #194240;
    background: #e7f2ef;
    border-radius: 6px;
    padding: 0.2rem 0.8rem;
}

.cv-language-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #d9d3ea;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    z-index: 40;
}

.cv-language-menu button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    text-align: left;
}

.cv-language-menu button:hover {
    background: #f3f4f6;
}

.cv-language-menu button.is-active {
    background: #194240;
    color: #fff;
    font-weight: 700;
}

.cv-language-menu button.is-active::before {
    content: "✓";
    margin-right: 8px;
}

.cv-language-menu button small {
    margin-left: auto;
    font-size: 1.2rem;
    font-weight: 600;
    color: #8b8794;
    white-space: nowrap;
}

.cv-language-menu button.is-locked,
.cv-language-menu button.is-locked:hover {
    color: #8b8794;
    background: transparent;
    cursor: not-allowed;
    font-weight: 400;
}

@media (max-width: 767px) {
    .cv-header.cv-header-builder .cv-header-wrapper {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .cv-header.cv-header-builder .generate-cv {
        margin-left: 0;
    }
}

/* COLOR picker */
.editor-color-dropdown {
    padding: 16px;
    gap: 12px;
}

.editor-color-dropdown input[type="color"] {
    width: 100%;
    height: 42px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

/* preset boje */
.preset-colors {
    display: flex;
    gap: 10px;
}

.preset-colors span {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.preset-colors span:hover {
    transform: scale(1.05);
}

.preset-colors span.is-active {
    border-color: #000;
}

.editor-toolbar {
    position: relative;
}

.editor-toolbar-center {
    position: relative;
}

.editor-dropdown {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

/* Full Preview */
body.cv-fullview-active {
    overflow: hidden;
}

.preview.is-fullview {
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    background: #f4f7f8;
    display: flex;
    flex-direction: column;
}

.preview.is-fullview .preview-header {
    display: none;
}

.preview.is-fullview .cv-preview {
    flex: 1;
    overflow: auto;
    padding: 40px 0 100px;
}

.preview.is-fullview .cv-body {
    margin: 0 auto;
}

.preview.is-fullview .cv-preview {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto !important;
}

.preview.is-fullview .editor-toolbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
}

#letter-document-title {
    display: block;
    min-width: 0;
}

#letter-document-title input {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 8px 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #194240;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 40px;
    text-align: left;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

#letter-document-title input:hover,
#letter-document-title input:focus {
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: none;
}

#letter-document-title input:focus {
    box-shadow: inset 0 -1px 0 rgba(25, 66, 64, 0.22);
}

@media (max-width: 767px) {
    #letter-document-title input {
        height: 40px;
        padding: 0 12px;
        border: 1px solid rgba(25, 66, 64, 0.16);
        border-radius: 10px;
        background: #f7f8f7;
        line-height: 40px;
    }

    #letter-document-title input:hover,
    #letter-document-title input:focus {
        background: #fff;
        border: 1px solid rgba(25, 66, 64, 0.28);
        box-shadow: none;
        outline: none;
    }

    #letter-document-title input:focus {
        border-color: #194240;
        box-shadow: 0 0 0 3px rgba(25, 66, 64, 0.08);
    }
}

/* CV builder selects are attached to the page, above the scrolling sidebar. */
.select2-container--open,
.select2-dropdown {
    z-index: 10050;
    pointer-events: auto;
}

select.select2-hidden-accessible {
    pointer-events: none !important;
}

#download-cv-btn:disabled,
#download-cv-btn:disabled:hover,
#download-cv-btn:disabled:focus,
#download-cv-btn.is-disabled,
#download-cv-btn.is-disabled:hover {
    background-color: #d7d5de;
    color: #8b8794;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}

.main-content-inner .content .item-wrapper .item .right a.edit,
.main-content-inner .content .item-wrapper .item .right a.letter,
.main-content-inner .content .item-wrapper .item .right a.delete,
.main-content-inner .content .item-wrapper .item .right a.pdf,
.main-content-inner .content .item-wrapper .item .right a.word {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 4rem;
    width: 4rem;
    min-width: 4rem;
    max-width: 4rem;
    height: 4rem;
    overflow: visible;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
}

.main-content-inner .content .item-wrapper .item .right a.pdf:hover,
.main-content-inner .content .item-wrapper .item .right a.word:hover {
    border-color: #b19cff;
}

body.cv-list-download {
    overflow: hidden;
}

body.cv-list-download header,
body.cv-list-download footer,
body.cv-list-download section.cv-header,
body.cv-list-download .sidebar,
body.cv-list-download .preview-header {
    display: none !important;
}

body.cv-list-download .cv-preview .cv-header {
    display: block !important;
}

.app-wrapper .preview .cv-preview .cv-body .cv-sidebar,
.app-wrapper .preview .cv-preview .cv-body .cv-main,
.app-wrapper .preview .cv-preview.cv-template-chrono .cv-body,
.app-wrapper .preview .cv-preview.cv-template-luxe .cv-body {
    padding-top: 16px;
    padding-bottom: 16px;
}

body.cv-pdf-capture .app-wrapper .preview .cv-preview .cv-body .cv-sidebar,
body.cv-pdf-capture .app-wrapper .preview .cv-preview .cv-body .cv-main,
body.cv-pdf-capture .app-wrapper .preview .cv-preview.cv-template-chrono .cv-body,
body.cv-pdf-capture .app-wrapper .preview .cv-preview.cv-template-luxe .cv-body {
    padding-top: 0;
    padding-bottom: 0;
}

.app-wrapper .preview .cv-preview .cv-body .cv-main .cv-section:last-child,
.app-wrapper .preview .cv-preview .cv-body .cv-sidebar .cv-section:last-child {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.app-wrapper .preview .cv-preview .cv-body .cv-sidebar .cv-section:last-child .cv-details-list,
.app-wrapper .preview .cv-preview .cv-body .cv-sidebar .cv-section:last-child .cv-skill-list,
.app-wrapper .preview .cv-preview .cv-body .cv-sidebar .cv-section:last-child .cv-language-list,
.app-wrapper .preview .cv-preview .cv-body .cv-sidebar .cv-section:last-child .cv-hobby-list,
.app-wrapper .preview .cv-preview .cv-body .cv-sidebar .cv-section:last-child .cv-quality-list {
    padding-bottom: 0;
}

@media (max-width: 1024px) {
    body:not(.cv-pdf-capture) .app-wrapper .preview.is-open {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    body:not(.cv-pdf-capture) .app-wrapper .preview.is-open > .cv-preview {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
    }

    body:not(.cv-pdf-capture) .app-wrapper .preview.is-open .cv-preview .cv-body {
        align-items: stretch;
        min-height: 100%;
    }

    body:not(.cv-pdf-capture) .app-wrapper .preview.is-open .cv-preview .cv-body .cv-sidebar {
        align-self: stretch;
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 24px;
    }

    body:not(.cv-pdf-capture) .app-wrapper .preview.is-open .cv-preview .cv-body .cv-sidebar .cv-section .cv-section-title {
        font-size: calc(var(--cv-font-size, 14px) * 1.02);
    }

    body:not(.cv-pdf-capture) .app-wrapper .preview.is-open .cv-preview .cv-body .cv-sidebar .cv-section .cv-details-list li .text,
    body:not(.cv-pdf-capture) .app-wrapper .preview.is-open .cv-preview .cv-body .cv-sidebar .cv-section .cv-skill-list li .text,
    body:not(.cv-pdf-capture) .app-wrapper .preview.is-open .cv-preview .cv-body .cv-sidebar .cv-section .cv-language-list li .text,
    body:not(.cv-pdf-capture) .app-wrapper .preview.is-open .cv-preview .cv-body .cv-sidebar .cv-section .cv-hobby-list li .text,
    body:not(.cv-pdf-capture) .app-wrapper .preview.is-open .cv-preview .cv-body .cv-sidebar .cv-section .cv-quality-list li .text {
        font-size: calc(var(--cv-font-size, 14px) * 0.9);
    }
}

body.cv-list-download .cv-list-download-screen {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8f7;
    color: #194240;
}

body.cv-list-download .cv-list-download-screen p {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

body.cv-list-download .preview {
    display: block !important;
    position: fixed;
    left: 0;
    top: 0;
    width: 794px;
    max-width: none;
    height: auto;
    overflow: visible;
    z-index: 1;
    background: #fff;
    pointer-events: none;
}

.main-content-inner .content .item-wrapper .item .right a.edit .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.letter .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.delete .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.pdf .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.word .job-action-hint {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.8rem);
    transform: translateX(-50%);
    display: block;
    width: max-content;
    height: auto;
    margin: 0;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: #194240;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 8;
}

.main-content-inner .content .item-wrapper .item .right a.delete .job-action-hint {
    left: auto;
    right: 0;
    transform: none;
}

.main-content-inner .content .item-wrapper .item .right a.edit:hover .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.letter:hover .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.delete:hover .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.pdf:hover .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.word:hover .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.edit:focus-visible .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.letter:focus-visible .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.delete:focus-visible .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.pdf:focus-visible .job-action-hint,
.main-content-inner .content .item-wrapper .item .right a.word:focus-visible .job-action-hint {
    opacity: 1;
    visibility: visible;
}

.main-content-inner .content .item-wrapper .item .right:has(.cv-hr-review-row) {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.cv-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
}

.main-content-inner .content .item-wrapper .item .right .cv-hr-review-row .btn-purple {
    padding: 0.6rem 1.1rem;
    font-size: 1.2rem;
    line-height: 1.2;
}

.cv-hr-review-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

.cv-hr-review-sent.btn-purple,
.cv-hr-review-sent.btn-purple:hover {
    background-color: #d9e6e3;
    color: #194240;
    cursor: default;
}

.main-content-inner .content .item-wrapper .item .right .cv-hr-review-btn.is-view,
.main-content-inner .content .item-wrapper .item .right .cv-hr-review-btn.is-view:hover,
.main-content-inner .content .item-wrapper .item .right .cv-hr-review-btn.cv-analyses-open,
.main-content-inner .content .item-wrapper .item .right .cv-hr-review-btn.cv-analyses-open:hover {
    background-color: #194240;
    color: #ffffff;
}

.hr-review-modal-card.hr-analyses-card,
#hr-ai-view .hr-review-modal-card {
    width: min(760px, 100%);
}

#hr-analyses-list .hr-review-modal-card > h3 {
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(25, 66, 64, 0.12);
}

#hr-analyses-cv {
    margin-top: 18px;
}

.hr-analyses-table {
    width: 100%;
    margin-top: 8px;
    border-collapse: collapse;
}

.hr-analyses-table th {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(25, 66, 64, 0.12);
    color: #2d7672;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.hr-analyses-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(25, 66, 64, 0.08);
    color: #194240;
    font-size: 14px;
    vertical-align: middle;
}

.hr-analyses-table td:first-child {
    white-space: nowrap;
}

.hr-analyses-table td:nth-child(2) {
    word-break: break-word;
}

.hr-analyses-table .btn-purple {
    padding: 0.6rem 1.1rem;
    font-size: 1.2rem;
    line-height: 1.2;
    border: 0;
    cursor: pointer;
}

.hr-review-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(25, 66, 64, 0.45);
}

.hr-review-modal.is-open {
    display: flex;
}

body.hr-review-open {
    overflow: hidden;
}

.hr-review-modal-card {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px 28px 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(25, 66, 64, 0.18);
}

.hr-review-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #194240;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.hr-review-modal-card h3 {
    margin: 0 36px 8px 0;
    color: #194240;
    font-size: 22px;
    font-weight: 700;
}

.hr-review-cv {
    margin: 0 0 18px;
    color: #2d7672;
    font-size: 14px;
    font-weight: 600;
}

.hr-review-success {
    margin: 8px 0 4px;
    color: #194240;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
}

#hr-review-form label {
    display: block;
    margin: 14px 0 6px;
    color: #194240;
    font-size: 14px;
    font-weight: 700;
}

#hr-review-form select,
#hr-review-form input,
#hr-review-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(25, 66, 64, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #194240;
    font: inherit;
    font-size: 15px;
}

#hr-review-form textarea {
    resize: vertical;
    min-height: 110px;
}

.hr-review-add-job {
    display: inline-block;
    margin-top: 8px;
    color: #6d4bd4;
    font-size: 14px;
    font-weight: 600;
}

.hr-review-plus {
    margin-right: 0.4rem;
    font-weight: 700;
}

.hr-review-error {
    margin: 12px 0 0;
    color: #9b2335;
    font-size: 14px;
}

#hr-review-form .btn-purple,
#cv-ai-check-form .btn-purple {
    display: inline-flex;
    margin-top: 16px;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    line-height: 1.2;
    border: 0;
    cursor: pointer;
}

button.hr-review-add-job {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

#cv-ai-check-form label {
    display: block;
    margin: 14px 0 6px;
    color: #194240;
    font-size: 14px;
    font-weight: 700;
}

.cv-ai-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0 0 18px;
}

.cv-ai-field label {
    display: block;
    margin: 0 0 8px;
    color: #194240;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

#cv-ai-check-form select,
.cv-ai-job-card .input-group {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(25, 66, 64, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #194240;
    font: inherit;
    font-size: 15px;
}

.cv-ai-job-card {
    width: min(760px, 100%);
}

.cv-ai-job-card > h3 {
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(25, 66, 64, 0.12);
}

.cv-ai-job-card form {
    margin-top: 22px;
}

.cv-ai-job-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
}

.cv-ai-field.is-full {
    grid-column: 1 / -1;
}

.cv-ai-job-card textarea.input-group {
    display: block;
    height: 140px !important;
    min-height: 0;
    margin: 0;
    padding: 12px 14px !important;
    resize: vertical;
    overflow: auto;
}

.cv-ai-job-card textarea[name="notes"] {
    height: 110px !important;
}

.cv-ai-job-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.cv-ai-job-actions .btn-transparent,
.cv-ai-job-actions .btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    height: 40px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.cv-ai-job-actions .btn-transparent {
    border-color: rgba(25, 66, 64, 0.22);
    background: #fff;
    color: #194240;
}

.cv-ai-job-actions .btn-green {
    border-color: #b9df7c;
    background: #b9df7c;
    color: #194240;
}

#hr-job-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #194240;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

#cv-ai-check .hr-review-modal-card {
    width: min(680px, 100%);
}

.cv-ai-summary {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: #e5deff;
}

.cv-ai-score {
    flex: 0 0 auto;
    margin: 0;
    min-width: 84px;
    color: #194240;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.cv-ai-score small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
}

.cv-ai-summary h4,
.cv-ai-section h4 {
    margin: 0;
    color: #194240;
    font-size: 16px;
    font-weight: 700;
}

.cv-ai-impression,
.cv-ai-section p {
    margin: 6px 0 0;
    color: #194240;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
}

.cv-ai-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.cv-ai-section {
    padding: 14px 16px;
    border: 1px solid rgba(25, 66, 64, 0.12);
    border-radius: 14px;
    background: #fff;
}

.cv-ai-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cv-ai-section-score {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5deff;
    color: #194240;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .cv-ai-job-grid {
        grid-template-columns: 1fr;
    }
}

.hr-review-view-body .btn-purple {
    display: inline-flex;
    margin-top: 14px;
    padding: 0.6rem 1.1rem;
    font-size: 1.2rem;
    line-height: 1.2;
    border: 0;
    cursor: pointer;
}

.hr-review-reply {
    color: #194240;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
}

.hr-review-reply p,
.hr-review-reply li {
    margin: 0 0 0.65em;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
}

.hr-review-reply p:last-child,
.hr-review-reply li:last-child {
    margin-bottom: 0;
}

.hr-review-reply strong,
.hr-review-reply b {
    font-weight: 700;
}

.hr-review-reply em,
.hr-review-reply i {
    font-style: italic;
}

.hr-review-reply u {
    text-decoration: underline;
}

.hr-review-reply ul,
.hr-review-reply ol {
    margin: 0.2em 0 0.7em;
    padding-left: 1.4em;
}

.hr-review-reply ul {
    list-style: disc;
}

.hr-review-reply ol {
    list-style: decimal;
}

.hr-review-reply li {
    display: list-item;
}

.hr-review-reply a {
    color: #6d4bd4;
    font-weight: 600;
    text-decoration: underline;
}

.admin-user-profile {
    padding: 4rem 0 8rem;
    color: #194240;
}

.admin-user-profile h1,
.admin-user-profile h2 {
    color: #194240;
    font-weight: 700;
}

.admin-user-profile h2 {
    margin: 3.2rem 0 1.2rem;
    font-size: 2.2rem;
}

.admin-user-facts {
    display: grid;
    grid-template-columns: 18rem 1fr;
    gap: 0.8rem 1.6rem;
    margin: 0;
}

.admin-user-facts dt {
    font-weight: 700;
}

.admin-user-facts dd {
    margin: 0;
}

.admin-user-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-user-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.6rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(25, 66, 64, 0.1);
}

.admin-user-list span {
    font-weight: 600;
}

.admin-user-list small {
    color: #2d7672;
}

.admin-user-list a,
.admin-user-back a {
    color: #6d4bd4;
    font-weight: 600;
}

.admin-user-list li.is-request {
    margin: 0 -1.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    background: #e5deff;
    border-radius: 8px;
    border-bottom-color: transparent;
}

.admin-user-mark {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #6d4bd4;
    color: #fff;
    font-style: normal;
    font-size: 1.2rem;
    font-weight: 700;
}

.language-wrapper .language-list {
    z-index: 12;
}

.language-wrapper .language-list .language-item a {
    color: #194240;
    text-decoration: none;
}

.language-wrapper .language-list .language-item.is-current a,
.language-wrapper .language-list .language-item a:hover {
    color: #2d7672;
}

.language-wrapper .language-list .language-item.is-current a {
    font-weight: 700;
}

@media (max-width: 767px) {
    header.open-menu .header-wrapper .menu-wrapper .menu-action-wrapper-one {
        margin-bottom: 7.2rem;
    }

    section.packages-lead .packages-lead-wrapper .packages-lead-text p {
        text-align: left;
    }

    section.packages-lead .packages-lead-wrapper .packages-lead-checklist {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        align-items: flex-start;
        justify-content: flex-start;
    }

    section.packages-lead .packages-lead-wrapper .packages-lead-checklist .packages-lead-checklist-item {
        justify-content: flex-start;
        width: 100%;
        text-align: left;
    }

    section.packages-lead .packages-lead-wrapper .packages-lead-checklist .packages-lead-checklist-item .text {
        text-align: left;
    }
}

@media (max-width: 1264px) {
    header.open-menu .header-wrapper .menu-wrapper .menu-action-wrapper-one .language-wrapper .language {
        display: none;
    }

    header.open-menu .header-wrapper .menu-wrapper .menu-action-wrapper-one .language-wrapper .language-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        position: static;
        width: 100%;
        min-width: 0;
        height: auto;
        margin: 0.4rem 0 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    header.open-menu .header-wrapper .menu-wrapper .menu-action-wrapper-one .language-wrapper .language-list .language-item,
    header.open-menu .header-wrapper .menu-wrapper .menu-action-wrapper-one .language-wrapper .language-list .language-item:not(:last-of-type) {
        margin: 0;
    }

    header.open-menu .header-wrapper .menu-wrapper .menu-action-wrapper-one .language-wrapper .language-list .language-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 4.8rem;
        height: 3.4rem;
        padding: 0 1rem;
        border: 1px solid rgba(25, 66, 64, 0.16);
        border-radius: 999px;
        font-size: 1.4rem;
        line-height: 1;
        letter-spacing: 0;
    }

    header.open-menu .header-wrapper .menu-wrapper .menu-action-wrapper-one .language-wrapper .language-list .language-item.is-current a {
        background: #194240;
        border-color: #194240;
        color: #fff;
    }
}

@media (max-width: 767px) {
    .homepage-interview-exclusive .homepage-interview-exclusive-data .btn-green {
        display: block;
        width: 100%;
        padding-left: 2.8rem;
        padding-right: 2.8rem;
    }

    .homepage-package-table .homepage-package-table-wrapper table tr:first-of-type th {
        font-size: 1.2rem;
        line-height: 1.25;
        letter-spacing: 0;
        padding: 10px 6px;
        overflow-wrap: break-word;
    }

    section.login,
    section.registration,
    section.forgot-pass {
        padding: 2.4rem 0 6.4rem;
    }

    .login .container .login-wrapper,
    .registration .container .registration-wrapper,
    .forgot-pass .container .forgot-pass-wrapper {
        padding: 2.8rem 2rem;
    }

    .login .container .login-wrapper .form-info .form-text-wrapper,
    .registration .container .registration-wrapper .form-info .form-text-wrapper {
        display: block;
    }

    .login .container .login-wrapper .form-info .form-text-wrapper .form-text,
    .login .container .login-wrapper .form-info .form-text-wrapper .form-link,
    .registration .container .registration-wrapper .form-info .form-text-wrapper .form-text,
    .registration .container .registration-wrapper .form-info .form-text-wrapper .form-link {
        display: inline;
    }

    .login .container .login-wrapper .form-info .form-text-wrapper .form-link,
    .registration .container .registration-wrapper .form-info .form-text-wrapper .form-link {
        margin-left: 0.4rem;
        white-space: nowrap;
    }

    .registration .container .registration-wrapper .registration-form .form-group-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .registration .container .registration-wrapper .registration-form .form-group-wrapper .form-group {
        flex: 0 0 auto;
        width: 100%;
    }

    .registration .container .registration-wrapper .registration-form .save-info {
        align-items: flex-start;
    }
}

.login .container .login-wrapper .login-form .save-info {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.2rem;
}

@media (max-width: 991px) {
    .my-account-page .cv-sidebar.is-collapsed .cv-sidebar-item:not(.active) {
        display: none;
    }

    .my-account-page .cv-sidebar.is-collapsed .cv-sidebar-item.active,
    .my-account-page .cv-sidebar.is-open .cv-sidebar-item.active {
        position: relative;
        padding-right: 4.4rem;
    }

    .my-account-page .cv-sidebar.is-collapsed .cv-sidebar-item.active::after,
    .my-account-page .cv-sidebar.is-open .cv-sidebar-item.active::after {
        content: "";
        position: absolute;
        right: 1.6rem;
        top: 50%;
        width: 0.8rem;
        height: 0.8rem;
        border-right: 2px solid #194240;
        border-bottom: 2px solid #194240;
        transform: translateY(-70%) rotate(45deg);
    }

    .my-account-page .cv-sidebar.is-open .cv-sidebar-item.active::after {
        transform: translateY(-20%) rotate(225deg);
    }
}

@media (max-width: 767px) {
    .main-content-inner .header .left {
        min-width: 0;
    }

    .main-content-inner .header .right .jobs-back {
        width: 4.4rem;
        height: 4.4rem;
        padding: 0;
        overflow: hidden;
        color: transparent;
        white-space: nowrap;
        position: relative;
    }

    .main-content-inner .header .right .jobs-back::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 0.9rem;
        height: 0.9rem;
        border-left: 2px solid #194240;
        border-bottom: 2px solid #194240;
        transform: translate(-35%, -50%) rotate(45deg);
    }
}

.single-news .single-news-more {
    background: #f7f5ff;
}

.single-news .single-news-more .news-box-wrapper {
    margin-bottom: 0;
}
