/* ---------- ULTRA-MODERN VEHICLE DETAIL MODAL (TEXT ONLY) ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40,0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    overflow-y: auto;
    transform: scale(0.9) translateY(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(10, 22, 40,0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(26, 26, 26,0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--cream);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gold);
    color: #fff;
}

.modal-body-content {
    padding: 60px 60px 60px;
}

.modal-info {
    text-align: center;
}

.modal-info .eyebrow {
    font-size: 0.65rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.8;
}

.modal-info h2 {
    font-size: 3.5rem;
    color: var(--night);
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.modal-info .car-class {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 45px;
    display: block;
}

.modal-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-pill {
    background: #eef2f9;
    border: 1px solid rgba(26, 26, 26,0.06);
    padding: 12px 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-pill:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    background: #fff;
}

.feature-pill span {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream-dim);
    margin-bottom: 4px;
}

.feature-pill b {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--night);
    font-weight: 500;
}

/* ---------- TECHNICAL LIST ---------- */
.modal-technical-list {
    margin: 40px 0;
    padding: 25px 0;
    border-top: 1px solid rgba(26, 26, 26,0.08);
    border-bottom: 1px solid rgba(26, 26, 26,0.08);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
    text-align: left;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(26, 26, 26,0.1);
    padding-bottom: 8px;
    padding-right: 15px;
    padding-left: 15px;
}

.tech-label {
    font-size: 0.7rem;
    color: var(--cream-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-value {
    font-size: 0.85rem;
    color: var(--night);
    font-weight: 500;
}

.modal-desc {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid rgba(26, 26, 26,0.08);
}

.modal-actions .price {
    margin-bottom: 10px;
}

.modal-actions .price b {
    font-size: 2rem;
    color: var(--night);
}

.modal-actions .big-btn {
    width: 100%;
    max-width: 320px;
    background: var(--night);
    color: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    box-shadow: 0 20px 40px rgba(10, 22, 40,0.2);
}

.modal-actions .big-btn:hover {
    background: var(--gold);
    transform: translateY(-4px);
}

@media(max-width: 768px) {
    .modal-overlay {
        padding: 0;
    }

    .modal-content {
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        transform: translateY(100%);
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0);
    }

    .modal-body-content {
        padding: 80px 20px 40px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        background: rgba(26, 26, 26, 0.08);
        width: 44px;
        height: 44px;
    }

    .modal-info h2 {
        font-size: 2.2rem;
    }

    .modal-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .modal-technical-list {
        grid-template-columns: 1fr;
    }

    .modal-desc {
        font-size: 0.9rem;
    }
}

/* ---------- DYNAMIC FEATURES (DATABASE) ---------- */
.modal-dynamic-features {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: left;
    padding: 0 5px;
}

.feature-title {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 500;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag {
    background: #eef2f9;
    border: 1px solid rgba(30, 58, 138,0.15);
    color: var(--cream);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-family: var(--sans);
    transition: all 0.3s ease;
}

/* ---------- IMAGE GALLERY MODAL (LIGHTBOX) ---------- */
#imageModal .modal-content {
    max-width: 1000px;
    background: transparent;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imageModal .modal-close {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    top: -40px;
    right: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

#imageModal .modal-close:hover {
    background: var(--gold);
    color: #fff;
}

#imageModal .modal-body {
    width: 100%;
    display: flex;
    justify-content: center;
}

#imageModal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Mobilde X butonunu ekranın içine al ve büyüt (tıklanabilir alan >= 44px) */
@media(max-width: 768px) {
    #imageModal .modal-content {
        height: auto;
        max-height: 100dvh;
        padding: 20px;
    }

    #imageModal .modal-close {
        position: fixed;
        top: max(15px, env(safe-area-inset-top, 15px));
        right: 15px;
        width: 48px;
        height: 48px;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        font-size: 1.6rem;
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
        z-index: 1010;
    }

    #imageModal img {
        max-height: calc(100dvh - 100px);
    }
}

.car-img {
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.car-img img {
    transition: transform 0.5s ease;
}

.car-img:hover img {
    transform: scale(1.05);
}

/* ---------- LAUR DIALOG (site-themed alert / confirm) ---------- */
.lux-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.lux-dialog-overlay.active {
    opacity: 1;
}

.lux-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fffdf8;
    border-radius: 22px;
    padding: 38px 34px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(10, 22, 40,0.35);
    border: 1px solid rgba(30, 58, 138,0.12);
    transform: scale(0.92) translateY(24px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
}

.lux-dialog-overlay.active .lux-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.lux-dialog::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, transparent, var(--gold, #1e3a8a), transparent);
    opacity: 0.85;
}

.lux-dialog-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    background: rgba(30, 58, 138,0.08);
    color: var(--gold, #1e3a8a);
    border: 1px solid rgba(30, 58, 138,0.22);
}

.lux-dialog-icon svg {
    width: 28px;
    height: 28px;
}

.lux-tone-success .lux-dialog-icon {
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.25);
}

.lux-tone-danger .lux-dialog-icon {
    background: rgba(180, 50, 45, 0.08);
    color: #b4322d;
    border-color: rgba(180, 50, 45, 0.25);
}

.lux-tone-warn .lux-dialog-icon {
    background: rgb(249 249 249 / 7%);
    color: #c73838;
    border-color: rgb(255 255 255 / 28%);
}

.lux-dialog-title {
    font-family: var(--serif, 'Cormorant Garamond', serif);
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--night, #0a1628);
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    line-height: 1.2;
}

.lux-dialog-msg {
    font-family: var(--sans, 'Jost', sans-serif);
    font-size: 0.92rem;
    color: var(--cream-dim, #6b6b6b);
    line-height: 1.55;
    margin: 0 0 26px;
    font-weight: 300;
}

.lux-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.lux-btn {
    font-family: var(--sans, 'Jost', sans-serif);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 26px;
    min-width: 130px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 500;
}

.lux-btn:focus-visible {
    outline: 2px solid var(--gold, #1e3a8a);
    outline-offset: 3px;
}

.lux-btn-primary {
    background: var(--night, #0a1628);
    color: #fff;
    box-shadow: 0 14px 26px rgba(10, 22, 40,0.22);
}

.lux-btn-primary:hover {
    background: var(--gold, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(30, 58, 138,0.28);
}

.lux-tone-danger .lux-btn-primary {
    background: #b4322d;
    box-shadow: 0 14px 26px rgba(180, 50, 45, 0.25);
}

.lux-tone-danger .lux-btn-primary:hover {
    background: #8e231f;
}

.lux-btn-ghost {
    background: transparent;
    color: var(--cream, #1a1a1a);
    border-color: rgba(26, 26, 26,0.18);
}

.lux-btn-ghost:hover {
    background: rgba(26, 26, 26,0.05);
    border-color: var(--cream, #1a1a1a);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .lux-dialog {
        padding: 32px 22px 22px;
        border-radius: 18px;
    }

    .lux-dialog-title {
        font-size: 1.4rem;
    }

    .lux-btn {
        min-width: 0;
        flex: 1;
        padding: 13px 16px;
    }
}

/* ---------- LAUR TOAST ---------- */
.lux-toast-wrap {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.lux-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(30, 58, 138,0.18);
    border-left: 3px solid var(--gold, #1e3a8a);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(10, 22, 40,0.18);
    font-family: var(--sans, 'Jost', sans-serif);
    font-size: 0.85rem;
    color: var(--cream, #1a1a1a);
    max-width: 360px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    cursor: pointer;
}

.lux-toast.active {
    transform: translateX(0);
    opacity: 1;
}

.lux-toast .lux-toast-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: var(--gold, #1e3a8a);
    flex-shrink: 0;
}

.lux-toast .lux-toast-icon svg {
    width: 22px;
    height: 22px;
}

.lux-toast.lux-tone-success {
    border-left-color: #2e7d32;
}

.lux-toast.lux-tone-success .lux-toast-icon {
    color: #2e7d32;
}

.lux-toast.lux-tone-danger {
    border-left-color: #b4322d;
}

.lux-toast.lux-tone-danger .lux-toast-icon {
    color: #b4322d;
}

@media (max-width: 480px) {
    .lux-toast-wrap {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .lux-toast {
        max-width: none;
    }
}

/* ---------- ADMIN — ÜYE YÖNETİMİ KARTLARI ---------- */
.admin-users-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
    text-align: left;
}

.admin-users-controls #adminUsersSearch {
    flex: 2 1 240px;
    margin: 0;
    min-width: 0;
}

.admin-users-controls #adminUsersFilter {
    flex: 1 1 180px;
    margin: 0;
    min-width: 0;
}

.admin-users-summary {
    text-align: left;
    color: var(--cream-dim);
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.admin-users-list {
    text-align: left;
}

.admin-user-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 12px;
}

.admin-user-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.admin-user-ident {
    flex: 1 1 200px;
    min-width: 0;
}

.admin-user-ident h4 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin: 0 0 4px;
    word-break: break-word;
}

.admin-user-ident p {
    font-size: 0.85rem;
    color: var(--cream-dim);
    margin: 0;
    word-break: break-word;
    line-height: 1.5;
}

.admin-user-ident p a {
    color: var(--gold);
    text-decoration: none;
    word-break: break-all;
}

.admin-user-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.admin-user-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.admin-user-badge.badge-admin {
    background: #eff7ef;
    color: #2e4429;
    border: 1px solid #2e4429;
}

.admin-user-badge.badge-agent {
    background: #fbf5ea;
    color: #b08d57;
    border: 1px solid #b08d57;
}

.admin-user-badge.badge-member {
    background: #f4f4f4;
    color: #666;
    border: 1px solid #ccc;
}

.admin-user-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 14px;
    font-size: 0.85rem;
    color: #1a1a1a;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    line-height: 1.5;
    font-style: normal;
}

.admin-user-meta div {
    color: #1a1a1a;
    font-style: normal;
}

.admin-user-meta strong {
    color: #0a1628;
    font-weight: 700;
    font-style: normal;
    margin-right: 4px;
}

.admin-user-meta .admin-user-res {
    grid-column: 1 / -1;
    word-break: break-word;
}

.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.admin-user-btn {
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-family: inherit;
}

.admin-user-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-user-btn.btn-role-add {
    background: #fbf5ea;
    color: #b08d57;
    border-color: #b08d57;
}

.admin-user-btn.btn-role-add:hover:not(:disabled) {
    background: #b08d57;
    color: #fff;
}

.admin-user-btn.btn-role-remove {
    background: #fff;
    color: #666;
    border-color: #ccc;
}

.admin-user-btn.btn-role-remove:hover:not(:disabled) {
    background: #f4f4f4;
    border-color: #999;
}

.admin-user-btn.btn-danger {
    background: #fdf2f2;
    color: #b4322d;
    border-color: #f8d7da;
}

.admin-user-btn.btn-danger:hover:not(:disabled) {
    background: #b4322d;
    color: #fff;
    border-color: #b4322d;
}

.admin-user-note {
    font-size: 0.78rem;
    color: var(--cream-dim);
    font-style: italic;
}

@media (max-width: 480px) {
    .admin-user-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-user-btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .admin-user-note {
        text-align: center;
    }
}

/* ---------- ADMIN — FOTOĞRAF SÜRÜKLE-BIRAK DROPZONE ---------- */
.photo-dropzone {
    border: 1.5px dashed var(--line);
    border-radius: 6px;
    background: #fafbfc;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 52px;
}

.photo-dropzone:hover {
    border-color: var(--gold);
    background: #fff;
}

.photo-dropzone.dragging {
    border-color: var(--gold);
    background: #fbf5ea;
}

.photo-dropzone[data-has-file="true"] {
    border-style: solid;
    border-color: #2e4429;
    background: #eff7ef;
}

.photo-dropzone-label {
    color: #6b6b6b;
    font-size: 0.88rem;
    font-weight: 500;
    pointer-events: none;
    word-break: break-all;
    padding: 0 8px;
}

.photo-dropzone[data-has-file="true"] .photo-dropzone-label {
    color: #2e4429;
    font-weight: 600;
}

.photo-browse-btn {
    display: block;
    margin: 8px auto 0;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
    transition: color 0.2s ease;
}

.photo-browse-btn:hover {
    color: #0a1628;
}

@media (max-width: 480px) {
    .admin-users-controls {
        gap: 8px;
    }
    .admin-users-controls #adminUsersSearch,
    .admin-users-controls #adminUsersFilter {
        flex: 1 1 100%;
    }
    .admin-user-card {
        padding: 14px;
    }
    .admin-user-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-user-badges {
        width: 100%;
    }
    .admin-user-meta {
        grid-template-columns: 1fr;
        font-size: 0.85rem;
    }
    .admin-user-ident h4 {
        font-size: 1rem;
    }
}