/* Header Logo SVG */
.header-logo svg {
    max-width: 100%;
    height: auto;
}

/* Header Logo Dark/Light Mode Toggle */
.header-logo-light,
.header-logo-dark {
    display: inline-block;
}

.header-logo-dark {
    display: none;
}

body.dark-mode .header-logo-light {
    display: none;
}

body.dark-mode .header-logo-dark {
    display: inline-block;
}

/* Terms and Privacy Pages */
.terms-container,
.privacy-container {
    padding: 60px 0;
}

.terms-content,
.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.terms-content h2,
.privacy-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.terms-content p,
.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.terms-content ul,
.privacy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #666;
}

.terms-content h2:first-child,
.privacy-content h2:first-child {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terms-container,
    .privacy-container {
        padding: 40px 0;
    }

    .terms-content,
    .privacy-content {
        padding: 0 20px;
    }

    .terms-content h2,
    .privacy-content h2 {
        font-size: 20px;
        margin-top: 30px;
    }
}

.catalog-page .catalog-filters {
    z-index: 2;
}

.catalog-page .catalog-filters-selectize-wrapper {
    z-index: 1000;
}

.catalog-page .single-filter-inner {
    z-index: 1;
}

/* Subtle Christmas snow overlay (catalog cards only) */
.catalog-page .single-car {
    /* Per-card variation (desync) to feel more random */
    --carbuy-snow-opacity: 0.65;
    --carbuy-snow-duration: 9s;
    --carbuy-snow-delay: 0s;
}

.catalog-page .single-car:nth-child(3n) {
    --carbuy-snow-duration: 11s;
    --carbuy-snow-delay: -3.7s;
}

.catalog-page .single-car:nth-child(4n) {
    --carbuy-snow-duration: 13s;
    --carbuy-snow-delay: -8.1s;
}

.catalog-page .single-car:nth-child(5n) {
    --carbuy-snow-duration: 10s;
    --carbuy-snow-delay: -5.4s;
}

.catalog-page .single-car .single-car-image {
    overflow: hidden;
    /* Create a stacking context so we can layer snow above the image,
       but below price badges/buttons. */
    z-index: 0;
}

.catalog-page .single-car .single-car-image img.absolute-cover-img {
    z-index: 0;
}

.catalog-page .single-car .single-car-image .mix-blend-mode {
    z-index: 1;
}

.catalog-page .single-car .single-car-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;

    /* Snow particles: low density + tiny dots */
    opacity: var(--carbuy-snow-opacity);
    mix-blend-mode: screen;

    background-repeat: repeat;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.55) 0 1px, rgba(255,255,255,0) 1.6px),
        radial-gradient(circle, rgba(255,255,255,0.35) 0 1px, rgba(255,255,255,0) 1.9px),
        radial-gradient(circle, rgba(255,255,255,0.22) 0 0.8px, rgba(255,255,255,0) 1.5px),
        radial-gradient(circle, rgba(255,255,255,0.16) 0 0.7px, rgba(255,255,255,0) 1.4px);
    background-size: 130px 130px, 210px 210px, 275px 275px, 340px 340px;
    background-position: 0 -160px, 40px -320px, -30px -520px, 80px -740px;

    animation: carbuyCatalogSnowFall var(--carbuy-snow-duration) linear infinite;
    animation-delay: var(--carbuy-snow-delay);
}

.catalog-page .single-car .single-car-image .single-car-prices {
    z-index: 3;
}

/* Slow accumulation at the bottom of the image */
.catalog-page .single-car .single-car-image .mix-blend-mode::after {
    content: '';
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -10%;
    height: 26%;
    pointer-events: none;

    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    filter: blur(0.6px);
    mix-blend-mode: screen;

    /* A soft “snow bank” */
    background:
        radial-gradient(ellipse at bottom, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 68%);

    animation-name: carbuyCatalogSnowAccum;
    animation-duration: 70s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

@keyframes carbuyCatalogSnowFall {
    0% {
        background-position: 0 -160px, 40px -320px, -30px -520px, 80px -740px;
    }
    22% {
        background-position: 9px -40px, 12px -190px, -8px -310px, 64px -500px;
    }
    47% {
        background-position: -6px 70px, -24px 60px, 14px 120px, 96px 40px;
    }
    73% {
        background-position: 15px 130px, 28px 220px, -22px 360px, 52px 460px;
    }
    100% {
        background-position: 12px 160px, -28px 320px, 20px 520px, 110px 700px;
    }
}

@keyframes carbuyCatalogSnowAccum {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }
    55% {
        opacity: 0.06;
        transform: scaleY(0.25);
    }
    100% {
        opacity: 0.12;
        transform: scaleY(0.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-page .single-car .single-car-image::after {
        animation: none;
    }
    .catalog-page .single-car .single-car-image .mix-blend-mode::after {
        animation: none;
        opacity: 0;
        transform: none;
    }
}

/* Settings Page Form Styling */
.profile-page .application-form-inputs-wrapper {
    gap: 24px 16px;
    margin-bottom: 24px;
}

.profile-page .application-form-feedback-checkboxes {
    gap: 16px;
    margin-bottom: 24px;
}

.profile-page .settings-section {
    margin-bottom: 32px;
}

.profile-page .settings-section-title {
    margin-bottom: 16px;
}

.profile-page .settings-section-description {
    margin-bottom: 20px;
}

input.input-warning, select.input-warning, textarea.input-warning {
    border: 1px solid #e74c3c !important;
    background: #fff6f6 !important;
}

/* Selectize error/warning styling for profile add/edit forms */
.add-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input,
.edit-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input {
    border-color: #e74c3c !important;
    background: #fff6f6 !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.add-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input input,
.add-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input .item,
.edit-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input input,
.edit-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input .item {
    color: #333 !important;
}

.add-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input input::-webkit-input-placeholder,
.edit-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input input::-webkit-input-placeholder {
    color: #999 !important;
}

.add-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input input::-moz-placeholder,
.edit-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input input::-moz-placeholder {
    color: #999 !important;
}

.add-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input input:-moz-placeholder,
.edit-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input input:-moz-placeholder {
    color: #999 !important;
}

.add-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input input:-ms-input-placeholder,
.edit-advertisement-form-wrapper .selectize-control.selectize-warning .selectize-input input:-ms-input-placeholder {
    color: #999 !important;
}

.honeypot-container {
    display: none !important;
}

/*
.select-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
}
*/

.text-success-custom {
    color: #32BEA6 !important;
}

.progress-bar-initial {
    width: 0% !important;
}

/* Image Upload Placeholders */
.application-form-images-list {
    gap: 15px;
    margin-top: 20px;
}

.image-placeholder-slot {
    position: relative;
    width: calc(25% - 12px);
    aspect-ratio: 1;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-placeholder-slot:hover {
    border-color: #0077E6;
    background: #f0f7ff;
}

.image-placeholder-slot.pending {
    border-color: #ddd;
    background: #f9f9f9;
    border-style: dashed;
    opacity: 0.8;
}

.image-placeholder-slot.uploading {
    border-color: #0077E6;
    background: #f0f7ff;
    border-style: solid;
}

.image-placeholder-slot.uploaded {
    border-color: #32BEA6;
    border-style: solid;
}

.image-placeholder-slot.error {
    border-color: #DC0303;
    background: #fff5f5;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 15px;
}

.placeholder-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.placeholder-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
}

.progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.progress-ring-svg {
    transform: rotate(-90deg);
}

.progress-ring-progress {
    transition: stroke-dashoffset 0.3s ease;
}

.progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #0077E6;
}

.progress-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 119, 230, 0.1);
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.placeholder-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-position-number {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    line-height: 1;
}

.placeholder-image .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.success-pulse {
    animation: success-pulse 0.6s ease-out;
}

@keyframes success-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(50, 190, 166, 0.5);
    }
    100% {
        transform: scale(1);
    }
}

/* Drag and Drop Zone */
.drag-drop-zone {
    position: relative;
    min-height: 150px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-zone:hover {
    border-color: #0077E6;
    background: #f0f7ff;
}

.drag-drop-zone.drag-over {
    border-color: #0077E6;
    background: #e6f3ff;
    border-style: solid;
    transform: scale(1.02);
}

.drag-drop-zone.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.attachment-image-label-drag-drop {
    min-height: 150px;
    padding: 30px 20px;
    cursor: pointer;
    user-select: none;
}

.drag-drop-icon {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.drag-drop-zone:hover .drag-drop-icon {
    opacity: 1;
    transform: scale(1.1);
}

.drag-drop-text {
    color: #666;
}

.drag-drop-text strong {
    color: #333;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.drag-drop-hint {
    font-size: 13px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .image-placeholder-slot {
        width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .image-placeholder-slot {
        width: 100%;
    }
}

/* OAuth Login Styles */
.oauth-login-wrapper {
    margin: 20px 0;
}

.oauth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.oauth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

.oauth-divider span {
    background-color: #fff;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oauth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

.oauth-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.google-button {
    border-color: #dadce0;
    color: #3c4043;
}

.google-button:hover {
    background-color: #f8f9fa;
    border-color: #c1c7cd;
}

.apple-button {
    display: none !important;
}

.apple-button:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

.apple-button svg path {
    fill: #fff;
}

/* Mobile responsiveness for OAuth */
@media (max-width: 768px) {
    .oauth-buttons {
        gap: 8px;
    }
    
    .oauth-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Inline preloader for license search */
.preloader-inline {
    position: relative !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

.preloader-inline div {
    width: 3px !important;
    height: 3px !important;
    top: 6px !important;
}


#license-search-loading {
    width: 400px;;
}

#license-search-loading small {
    margin-left: 100px;
}

/* Disabled submit button styling */
.application-form input[type="submit"]:disabled,
.application-form input[type="submit"].disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #6b9bd1 !important;
    border-color: #6b9bd1 !important;
    color: #fff !important;
}

.application-form input[type="submit"]:disabled:hover,
.application-form input[type="submit"].disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: #6b9bd1 !important;
    border-color: #6b9bd1 !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: #cdd5dc;
}

/* Single Car Hero - Seller Logo Image Fill */
.single-car-hero-main-row-logo-inner {
    padding: 0 !important;
    overflow: hidden !important;
}

/* Leasing Form Submit Wrapper - Ensure preloader is contained */
.leasing-form-submit-wrapper {
    overflow: visible;
}

.leasing-form-submit-wrapper .submit-inner {
    position: relative;
    display: inline-block;
}

.leasing-form-submit-wrapper .preloader {
    position: absolute;
}

.single-car-hero-main-row-logo-inner img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media screen and (max-width: 1280px) {
    .single-car-hero-main-row-logo-inner {
        padding: 0 !important;
    }
}

/* Profile Advertisement Buttons - Wider buttons and Publish button styling */
.single-advertisement .single-advertisement-buttons-wrapper {
    width: 120px;
}

@media screen and (max-width: 1420px) {
    .single-advertisement .single-advertisement-buttons-wrapper {
        width: 100% !important;
    }
}

/* API badge for imported ads */
.single-advertisement {
    position: relative;
}

.single-advertisement .single-advertisement-api-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #1f2a24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    gap: 6px;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.single-advertisement .single-advertisement-api-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ef08c;
    box-shadow: 0 0 0 2px rgba(78, 240, 140, 0.25);
    animation: blinkDot 1.4s infinite ease-in-out;
}

.single-advertisement .single-advertisement-button-publish {
    background-color: #4CAF50 !important;
    border: 1px solid #4CAF50 !important;
    color: #fff !important;
}

.single-advertisement .single-advertisement-button-publish:hover {
    background-color: #fff !important;
    border: 1px solid #4CAF50 !important;
    color: #4CAF50 !important;
}

/* Leasing Application Page Styles */
.leasing-page {
    background-color: #f8f9fa;
}

.leasing-progress-container {
    padding: 20px 0 16px;
    background: white;
}

.leasing-progress-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.leasing-progress-inner {
    position: relative;
}

.leasing-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.leasing-progress-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.leasing-progress-step.active .leasing-progress-step-icon {
    background: #0077E6;
}

.step-number {
    font-size: 16px;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
}

.leasing-progress-step.active .step-number {
    color: white;
}

.leasing-progress-step-content {
    max-width: 200px;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.step-description {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

.leasing-progress-connector {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 16px;
    position: relative;
    top: -18px;
}

.leasing-progress-step.active + .leasing-progress-connector,
.leasing-progress-step.active ~ .leasing-progress-connector {
    background: #0077E6;
}

.leasing-form-container {
    padding: 40px 0 80px;
}

.leasing-form-wrapper {
    max-width: 100%;
    margin: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 60px;
}

.leasing-form-step {
    display: none;
}

.leasing-form-step.active {
    display: block;
}

.leasing-form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.leasing-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.leasing-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0077E6;
    display: inline-block;
}

.leasing-form-wrapper .application-form-inputs-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.leasing-form-wrapper .application-form-input-wrapper {
    margin-bottom: 0;
}

.leasing-form-wrapper .input-inner {
    position: relative;
}

.leasing-form-wrapper .common-input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0C121C;
    margin-bottom: 8px;
    line-height: 1.4;
}

.leasing-form-wrapper .common-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    color: #0C121C;
    background: #FFFFFF;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.leasing-form-wrapper .common-input:focus {
    outline: none;
    border-color: #0077E6;
    box-shadow: 0 0 0 3px rgba(0, 119, 230, 0.1);
}

.leasing-form-wrapper .common-input:hover {
    border-color: #D1D5DB;
}

.leasing-form-wrapper .common-input[readonly] {
    background-color: #F9FAFB;
    color: #6B7280;
    cursor: not-allowed;
}

.leasing-form-wrapper .common-input::placeholder {
    color: #9CA3AF;
}

.leasing-form-wrapper .selectize-control.single .selectize-input.input-warning,
.leasing-form-wrapper .common-input.input-warning {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.leasing-bank-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.leasing-bank-option {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bank-method-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.leasing-bank-option-label {
    display: block;
    cursor: pointer;
}

.leasing-bank-option:has(.bank-method-radio:checked) {
    border-color: #0077E6;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 119, 230, 0.1);
}

.leasing-bank-option.input-warning,
.leasing-bank-option:has(.input-warning) {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

#uploadWrapper {
    display: none;
    margin-top: 20px;
}

.leasing-bank-option:has(#bankMethodUpload:checked) #uploadWrapper {
    display: block;
}

#bankSelectWrapper {
    margin-top: 20px;
    position: relative;
    z-index: 1000;
}

/* Bootstrap d-none class will handle visibility */
/* Removed empty rule: #bankSelectWrapper visibility handled via JS/classes */

/* Bank cards */
.bank-cards-container {
    margin: 20px 0;
}

.bank-card-col {
    margin-bottom: 20px;
}

.bank-card {
    padding: 18px 20px;
    border-radius: 14px;
    min-height: 160px;
    transition: all 0.2s ease;
}

.bank-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 119, 230, 0.2);
}

.bank-card.active,
.bank-card:hover {
    border-color: #0077E6;
    background: #f0f7ff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.bank-card-content {
    min-height: 110px;
}

.bank-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.bank-card-logo img {
    max-width: 45px;
    max-height: 45px;
    object-fit: contain;
}

.bank-card-logo.placeholder-logo {
    font-weight: 600;
    color: #0077E6;
    background: #e3efff;
}

.bank-card-name {
    font-size: 16px;
    margin-bottom: 4px;
}

.bank-cards-container.input-warning .bank-card {
    border-color: #dc3545 !important;
}

.bank-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.bank-card.completed {
    border-color: #0a7a35;
    background: #f0fff4;
    position: relative;
}

.bank-card-success-pill {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0a7a35;
    background: rgba(10, 122, 53, 0.15);
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bank-card-pending-pill {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #856404;
    background: rgba(255, 193, 7, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bank-card-failed-pill {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #b21f24;
    background: rgba(178, 31, 36, 0.15);
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bank-card-cancelled-pill {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bank-status-alert {
    display: none;
    margin-bottom: 16px;
    border-radius: 12px;
}

.leasing-alert {
    margin-top: 20px;
    border-radius: 12px;
}

.bank-history-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    background: #f9fafb;
}

.bank-history-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.bank-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.bank-history-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.bank-history-status {
    font-weight: 600;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.bank-history-status.status-authorized {
    color: #0a7a35;
    background: rgba(10, 122, 53, 0.1);
}

.bank-history-status.status-pending {
    color: #856404;
    background: rgba(255, 193, 7, 0.2);
}

.bank-history-status.status-failed {
    color: #b21f24;
    background: rgba(178, 31, 36, 0.1);
}

.bank-history-status.status-cancelled {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.15);
}

.leasing-bank-option-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.leasing-bank-option-description {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.5;
}

.leasing-bank-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.leasing-bank-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.leasing-bank-divider span {
    background: white;
    padding: 0 20px;
    color: #6c757d;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.leasing-file-upload-wrapper {
    position: relative;
}

.leasing-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.leasing-file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.leasing-file-upload-label:hover {
    border-color: #0077E6;
    background: #f8f9ff;
}

.leasing-file-upload-icon {
    margin-bottom: 16px;
    color: #6c757d;
}

.leasing-file-upload-text {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
}

.leasing-file-input:focus + .leasing-file-upload-label {
    border-color: #0077E6;
    box-shadow: 0 0 0 3px rgba(0, 119, 230, 0.1);
}

.leasing-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

@media (max-width: 1024px) {
    .leasing-form-wrapper {
        padding: 40px;
    }
    
    .leasing-progress-container {
        padding: 16px 0 12px;
    }
    
    .leasing-form-wrapper .application-form-inputs-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .leasing-progress-inner {
        flex-direction: column;
        gap: 12px;
    }
    
    .leasing-progress-connector {
        display: none;
    }
    
    .leasing-progress-step {
        flex-direction: row;
        text-align: left;
        gap: 10px;
    }
    
    .leasing-progress-step-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-number {
        font-size: 14px;
    }
    
    .leasing-form-wrapper {
        padding: 30px 20px;
        margin: 0 20px;
        border-radius: 8px;
    }
    
    .leasing-form-wrapper .application-form-inputs-wrapper {
        gap: 16px;
    }
    
    .leasing-form-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .leasing-form-navigation .default-button {
        width: 100%;
    }
}

/* Action Button - Inviting, clickable button for important actions */
.default-button-action {
    color: #fff !important;
    background-color: #0077E6 !important;
    border: 1px solid #0077E6 !important;
    box-shadow: 0 4px 12px rgba(0, 119, 230, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.default-button-action:hover {
    color: #fff !important;
    background-color: #0056b3 !important;
    border: 1px solid #0056b3 !important;
    box-shadow: 0 6px 16px rgba(0, 119, 230, 0.4);
    transform: translateY(-2px);
}

.default-button-action:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 119, 230, 0.3);
}

.default-button-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Bank Logo Styles in Selectize Dropdown */
.bank-select-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.bank-logo-option {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 4px;
}

.bank-name-option {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
}

/* Selected bank item in input */
.bank-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-logo-selected {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
    background: #f8f9fa;
    padding: 2px;
}

.bank-name-selected {
    flex: 1;
    font-size: 14px;
}

/* Selectize dropdown styling for bank select */
#bankSelectWrapper .selectize-dropdown .option {
    padding: 10px 15px;
}

#bankSelectWrapper .selectize-dropdown .option.active {
    background-color: #f0f7ff;
}

#bankSelectWrapper .selectize-input {
    min-height: 48px;
    padding: 8px 12px;
}

#bankSelectWrapper .selectize-input > .item {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 500px) {
    .leasing-progress-container {
        padding: 12px 0 10px;
    }
    
    .leasing-progress-step-icon {
        width: 28px;
        height: 28px;
    }
    
    .step-number {
        font-size: 12px;
    }
    
    .step-title {
        font-size: 13px;
    }
    
    .step-description {
        font-size: 11px;
    }
    
    .leasing-form-container {
        padding: 20px 0 60px;
    }
    
    .leasing-form-wrapper {
        padding: 20px 15px;
        margin: 0 15px;
        border-radius: 6px;
    }
    
    .leasing-bank-option {
        padding: 20px 16px;
    }
    
    .leasing-form-wrapper .application-form-inputs-wrapper {
        gap: 12px;
    }
}

/* Profile Shortcut Styles */
.profile-shortcut-link svg {
    transition: all 0.3s ease;
}

.profile-shortcut-link:hover svg,
.profile-shortcut-link:active svg,
.profile-shortcut-link:focus svg {
    fill: #fff;
    stroke: #fff;
}

.profile-shortcut-link:hover,
.profile-shortcut-link:active,
.profile-shortcut-link:focus {
    background-color: #333;
}

/* Header Logo Padding */
.header-logo {
    padding-top: 25px;
}

/* Drafts Sidebar Statistic */
.drafts-sidebar-statistic {
    background: #ffd2a1;
}

/* Publish Confirmation Modal Visibility */
#publish-confirm-modal.active {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* Recent searches (chips/pills) */
.recent-searches {
    margin-top: 12px;
}
.recent-searches--home {
    /* Home page: keep chips away from the card border */
    padding: 8px 14px 14px;
}
.recent-searches-header {
    gap: 12px;
}
.recent-searches-title {
    font-size: 13px;
    font-weight: 600;
}
.recent-searches-clear {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 12px;
    color: #0077e6;
    cursor: pointer;
    text-decoration: underline;
}
.recent-searches-chips {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.recent-search-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
}
.recent-search-chip-btn {
    background: transparent;
    border: 0;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}
.recent-search-chip-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}
.recent-search-chip-remove {
    background: transparent;
    border: 0;
    padding: 6px 10px 6px 6px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.55);
}
.recent-search-chip-remove:hover {
    color: rgba(0, 0, 0, 0.85);
}

/* Dark mode: ensure pills are visible */
.dark-mode .recent-searches-title {
    color: #fff;
}
.dark-mode .recent-searches-clear {
    color: #7ab8ff;
}
.dark-mode .recent-search-chip {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}
.dark-mode .recent-search-chip-btn {
    color: #fff;
}
.dark-mode .recent-search-chip-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}
.dark-mode .recent-search-chip-remove {
    color: rgba(255, 255, 255, 0.70);
}
.dark-mode .recent-search-chip-remove:hover {
    color: rgba(255, 255, 255, 0.95);
}