* {
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Poppins",sans-serif;
}

:root {
    --bg-main:#1e1e2f;
    --bg-card:#2b2b3b;
    --bg-input:#20202a;
    --text-main:#fff;
    --border:#444;
    --accent:#7d6eff;
}

.light-mode {
    --bg-main:#f2f2f7;
    --bg-card:#ffffff;
    --bg-input:#f0f0f0;
    --text-main:#222;
    --border:#ccc;
}

body {
    background:var(--bg-main);
    min-height:100vh;
    padding-top:200px;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding-bottom:140px;
    color:var(--text-main);
}

.container {
    width:100%;
    max-width:380px;
    padding:20px;
}

.login-box {
    background:var(--bg-card);
    padding:35px;
    border-radius:12px;
    box-shadow:0 0 25px rgba(0,0,0,0.3);
}

.login-box h2 {
    text-align:center;
    margin-bottom:20px;
    color:var(--text-main);
    font-size:26px;
}

.input-group {
    margin-bottom:18px;
}

.input-group label {
    color:var(--text-main);
    font-size:14px;
}

.input-group input {
    width:80%;
    padding:12px;
    margin-top: 10px;
    border-radius:8px;
    outline:none;
    border:1px solid var(--border);
    background:var(--bg-input);
    color:var(--text-main);
    transition:.3s;
}

.input-group input:focus {
    border-color:#6a5acd;
    box-shadow:0 0 8px #6a5acd;
}

.btn {
    width:100%;
    padding:12px;
    background:var(--accent);
    border:none;
    color:#fff;
    border-radius:8px;
    font-size:16px;
    transition:.3s;
    cursor:pointer;
}



.btn:hover {
    background:#7d6eff;
    transform:scale(1.04);
}

.link {
    text-align:center;
    margin-top:15px;
    color:var(--text-main);
    font-size:14px;
}

.link a {
    color:var(--accent);
    text-decoration:none;
}

.link-2 {
    text-align:right;
    margin-top:-10px;
    margin-bottom:20px;
}

#error {
    margin-top:10px;
    text-align:center;
    color:inherit;
}

.close {
    position:absolute;
    right:12px;
    top:5px;
    font-size:28px;
    cursor:pointer;
    color:var(--text-main);
}

.close:hover {
    color:#fff;
}

.popup {
    position:fixed;
    z-index: 9999 !important;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    pointer-events:none;
    transition:opacity 1s ease;
    background:rgba(0,0,0,0.25);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
}

.popup.show {
    opacity:1;
    pointer-events:auto;
    animation:fadeIn 1s forwards;
}

.popup.hide {
    opacity:0;
    pointer-events:none;
    animation:fadeOut 1s forwards;
}

.popup-content {
    background:var(--bg-card);
    padding:25px;
    border-radius:12px;
    width:300px;
    box-shadow:0 0 25px rgba(0,0,0,0.4);
    position:relative;
    transform:scale(.8);
    transition:transform 1s ease-out;
}

.popup.show .popup-content {
    transform:scale(1);
}

.popup.hide .popup-content {
    transform:scale(.8);
}

@keyframes fadeIn {
    from {
        opacity:0;
        transform:scale(.95);
    }

    to {
        opacity:1;
        transform:scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity:1;
        transform:scale(1);
    }

    to {
        opacity:0;
        transform:scale(.95);
    }
}

.password-wrapper {
    position:relative;
}

.password-wrapper input {
    padding-right:45px;
    height:45px;
    line-height:45px;
}

.toggle-password {
    position:absolute;
    right:12px;
    top:calc(50% + 12px);
    transform:translateY(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    color:#ccc;
    transition:.2s;
}

.toggle-password:hover {
    color:#fff;
}

.register-password + .toggle-password {
    top:calc(50% + 4px) !important;
    transform:translateY(-50%) !important;
}

@keyframes shake {
    0% {
        transform:translateX(0);
    }

    20% {
        transform:translateX(-6px);
    }

    40% {
        transform:translateX(6px);
    }

    60% {
        transform:translateX(-4px);
    }

    80% {
        transform:translateX(4px);
    }

    100% {
        transform:translateX(0);
    }
}

.shake {
    animation:shake .3s ease;
}

#forgotPopup {
    transform-origin:center;
}

#strengthContainer {
    height:0;
    overflow:hidden;
    transition:height .3s ease;
}

#strengthContainer.active {
    height:35px;
}

#strengthBar {
    width:0;
    height:6px;
    background:#ff5c5c;
    border-radius:4px;
    transition:width .3s ease,background .3s ease;
}

#strengthText {
    margin-top:6px;
    font-size:13px;
    color:var(--text-main);
}

.slide-down {
    animation:slideDownFade 1s ease forwards;
}

@keyframes slideDownFade{
    from {
        opacity:0;
        transform:translateY(-240px);
    }

    to {
        opacity:1;
        transform:translateY(0);
    }
}

.match-status {
    font-size:13px;
    margin-top:6px;
    opacity:0;
    transform:translateY(-3px);
    transition:opacity .25s ease,transform .25s ease,color .25s ease;
}

.match-status.active {
    opacity:1;
    transform:translateY(0);
}

.match-status.error {
    color:#ff5c5c;
}

.match-status.success {
    color:lightgreen;
}

#passwordMatchStatus {
    min-height:18px;
    display:block;
}

#pwIcon2 {
    top:50% !important;
    transform:translateY(-50%) !important;
}

.email-wrapper {
    display:flex;
    flex-direction:column;
}

.email-status {
    font-size:13px;
    margin-top:6px;
    color:var(--text-main);
    pointer-events:none;
    transition:.25s;
}

.email-status.error {
    color:#ff5c5c;
}

.email-status.success {
    color:lightgreen;
}

#updateError.success {
    color: lightgreen;
}

.form-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px 15px;
}

.form-grid .input-group p {
    margin:0;
}

@media (max-width:600px) {
    .form-grid {
        grid-template-columns:1fr;
        gap:0!important;
    }
}

.language-selector {
    position:fixed;
    top:20px;
    left:20px;
    z-index:999;
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-top:15px;
    width:150px;
    user-select:none;
}

.language-selector .selected-lang {
    background:rgba(255,255,255,0.1);
    padding:10px 15px;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
    backdrop-filter:blur(8px);
    transition:.3s;
}

.language-selector .selected-lang:hover {
    background:rgba(255,255,255,0.2);
}

.language-selector img {
    width:21px;
    height:14px;
    border-radius:3px;
}

.lang-dropdown {
    position:absolute;
    top:60px;
    left:0;
    width:100%;
        background: #2b2b3b !important; /* tamamen opak */
    backdrop-filter: none !important; 
    border-radius:12px;
    padding:10px 0;
    list-style:none;
    max-height:0;
    opacity:0;
    overflow:hidden;
    transform:translateY(-10px);
    transition:max-height .35s ease,opacity .35s ease,transform .35s ease;
}

.lang-dropdown.show {
    max-height: 300px;
    opacity: 1;
    transform:translateY(0);
}

.lang-dropdown li {
    padding:10px 15px;
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
    transition:.2s;
}

.lang-dropdown li:hover {
    background:rgba(255,255,255,0.25);
}

.light-mode .language-selector .selected-lang {
    background:var(--bg-card)!important;
    border-radius:12px;
    box-shadow:0 0 25px rgba(0,0,0,0.12);
    border:1px solid #e6e6e6;
}

.light-mode .lang-dropdown {
    background:var(--bg-card)!important;
    border-radius:12px;
    box-shadow:0 4px 25px rgba(0,0,0,0.12);
    border:1px solid #e6e6e6;
}

.light-mode .lang-dropdown li:hover {
    background:rgba(0,0,0,0.05);
}

.popup-content.shake {
    animation:shake .3s ease;
}

.site-footer {
    position:fixed;
    left:0;
    right:0;
    bottom:20px;
    display:flex;
    justify-content:center;
    pointer-events:auto;
    z-index:995;
}

.site-footer .footer-bar {
    width:min(1200px,calc(100% - 64px));
    background:var(--bg-card);
    border-radius:12px;
    padding:16px 22px;
    box-shadow:0 12px 40px rgba(2,6,23,0.45);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    border:1px solid rgba(0,0,0,0.06);
    backdrop-filter:blur(6px);
}

.site-footer .footer-left {
    display:flex;
    align-items:center;
    gap:14px;
}

.site-footer .footer-logo {
    height:40px;
    width:auto;
    object-fit:contain;
    display:block;
    filter:drop-shadow(0 2px 6px rgba(0,0,0,0.15));
    user-select:none;
}

.site-footer .footer-left p {
    margin:0;
    font-size:14px;
    color:var(--text-main);
    opacity:.85;
}

.site-footer .footer-links {
    display:flex;
    align-items:center;
    gap:22px;
}

.site-footer .footer-links a {
    text-decoration:none;
    font-size:14px;
    color:var(--text-main);
    opacity:.7;
    transition:opacity .18s ease,transform .18s ease;
}

.site-footer .footer-links a:hover {
    opacity:1;
    transform:translateY(-2px);
}

@media (max-width:600px) {
    .site-footer {
        width:100%;
        padding:20px 15px;
        display:flex;
        justify-content:center;
    }

    .footer-bar {
        width:100%;
        max-width:400px;
        margin:0 auto;
        padding:20px;
        background:#1c1d2b;
        border-radius:12px;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:15px;
    }

    .footer-left {
        display:flex;
        flex-direction:column;
        align-items:center;
        text-align:center;
        gap:5px;
    }

    .footer-logo {
        width:55px;
    }

    .footer-left p {
        margin:0;
        line-height:1.1;
        font-size:14px;
        white-space:pre-line;
    }

    .footer-links {
        display:flex;
        justify-content:center;
        gap:18px;
        font-size:14px;
        width:100%;
    }

    .site-footer {
        position:fixed;
        bottom:0;
        left:0;
        width:100%;
        z-index:1000;
    }

    body {
        padding-bottom:180px;
    }
}

.main-header {
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    width:min(1200px,calc(100% - 64px));
    height:110px;
    background:var(--bg-card);
    backdrop-filter:blur(8px);
    border-radius:16px;
    border:1px solid rgba(255,255,255,0.06);
    box-shadow:0 12px 40px rgba(2,6,23,0.45);
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    justify-content:space-between;
    align-items:center;
    padding:0 22px;
    z-index:9999;
}

.header-left,.header-center,.header-right{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.header-left{
    justify-content:flex-start;
}

.header-right{
    justify-content:flex-end;
}

.site-logo{
    height:85px;
    object-fit:contain;
}

@media (max-width:600px) {
    .main-header {
        width:92%;
        height:120px;
        padding:12px 18px;
        border-radius:16px;
        top:15px;
    }

    .site-logo {
        height:70px;
    }

    .header-left,.header-right {
        flex:none;
    }
}

@media (max-width: 600px) {
    .language-selector .selected-lang {
        width: 100px;
    }

    #selectedText {
        display: none;
    }

    .selected-lang .language-short {
        display: inline-block !important;
        font-weight: 600;
    }

    .lang-dropdown li .language-name {
        display: none;
    }

    .lang-dropdown li .language-short {
        display: inline-block !important;
        font-weight: 600;
    }
}

#selectedShort {
    font-style: bold;
    display: none;
}

.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 64px));
    height: 110px;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 12px 40px rgba(2,6,23,0.45);
    align-items: center;
    padding: 0 22px;
    z-index: 9999;
}


.theme-toggle{
    position:relative;
    font-size:26px;
    cursor:pointer;
    z-index:9999;
    transition:transform .2s ease;
}

.theme-toggle:hover{
    transform:scale(1.15);
}

/* ✔ Eski popup konseptine TAM UYUMLU doğrulama popup */
#verifyPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#verifyPopup.show {
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn 1s forwards;
}

#verifyPopup.hide {
    opacity: 0;
    pointer-events: none;
    animation: fadeOut 1s forwards;
}

#verifyPopup .popup-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    position: relative;
    transform: scale(.8);
    transition: transform 1s ease-out;
}

#verifyPopup.show .popup-content {
    transform: scale(1);
}

#verifyPopup.hide .popup-content {
    transform: scale(.8);
}

#verifyPopup .close {
    position: absolute;
    right: 12px;
    top: 5px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-main);
}

#verifyPopup .close:hover {
    color: #fff;
}

/* 🔥 Popup için shake animasyonu aktif edilir */
.popup-content.shake {
    animation: shake 0.3s;
}

/* ✔ Evrensel shake animasyonu */
@keyframes shake {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-5px); }
    50%  { transform: translateX(5px); }
    75%  { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

#resetMail {
    margin-bottom:-6px;
    margin-top:12px;
}

/* Çarpılar için ortak animasyon */
.popup .close,
#verifyPopup .close {
    transition: color .2s ease, transform .2s ease;
}

/* DARK MODE */
.popup .close:hover,
#verifyPopup .close:hover {
    color: #ffffff;
    transform: scale(1.25);
}

/* LIGHT MODE */
.light-mode .popup .close,
.light-mode #verifyPopup .close {
    color: #222;
}

.light-mode .popup .close:hover,
.light-mode #verifyPopup .close:hover {
    transform: scale(1.25);
}

.circle-wrapper {
    position: relative;
    width: 700px;
    height: 700px;       /* genişlik = yükseklik → daima tam daire */
    margin: 0 auto;
}

.border-ring {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.ring-svg {
    width: 100%;
    height: 100%;
}

#slices {
    transform-origin: 250px 250px;
    transform: scale(0.70); /* dilimleri küçültür ama daireyi bozmaz */
}

/* 🔥 Tam yuvarlak inner-circle */
.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 340px;        /* genişlik = yükseklik → daima yuvarlak */
    transform: translate(-50%, -50%);

    background: var(--bg-card);
    border-radius: 50%;   /* 🔥 Daire zorunlu */
    box-shadow: 
        0 12px 40px rgba(2,6,23,0.45),
        0 0 25px rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);

    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    width: 220px;
    height: 45px;
    border: none;
    border-radius: 40px;
    text-align: center;
    font-size: 18px;

    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
}





/* 🔵 Daima büyük + glow */
.search-input {
    width: 220px;
    height: 45px;
    border: none;
    border-radius: 40px;
    text-align: center;
    font-size: 18px;

    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.10);
    outline: none;

    /* 🔥 Dengeli glow */
    box-shadow:
        0 0 18px var(--slice-blue),
        0 0 32px color-mix(in srgb, var(--slice-blue) 50%, var(--slice-green) 50%),
        0 0 48px var(--slice-green);

    animation: glowPulse 2.6s infinite ease-in-out;
}

/* 🌬️ Nefes alan dengeli glow */
@keyframes glowPulse {
    0% {
        box-shadow:
            0 0 18px var(--slice-blue),
            0 0 32px color-mix(in srgb, var(--slice-blue) 50%, var(--slice-green) 50%),
            0 0 48px var(--slice-green);
    }
    50% {
        box-shadow:
            0 0 18px var(--slice-green),
            0 0 32px color-mix(in srgb, var(--slice-green) 50%, var(--slice-blue) 50%),
            0 0 48px var(--slice-blue);
    }
    100% {
        box-shadow:
            0 0 18px var(--slice-blue),
            0 0 32px color-mix(in srgb, var(--slice-blue) 50%, var(--slice-green) 50%),
            0 0 48px var(--slice-green);
    }
}

/* 📱 Mobil görünüm iyileştirme */
@media (max-width: 768px) {
    .circle-wrapper {
        margin-top: -200px !important;
    }

    /* DAİREYİ KÜÇÜLT */
    .circle-wrapper {
        transform: scale(0.75);   /* %75 boyut */
    }

    /* Slice parçalarını biraz daralt + görünür yap */
    .slice {
        width: 110px;          /* PC değerinden biraz küçük */
        height: 110px;
        clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
        opacity: 0.9;
    }

    /* İç daire boyutunu ayarla */
    .inner-circle {
        width: 260px;
        height: 260px;
    }

    /* Search bar mobilde daha orantılı olsun */
    .search-input {
        width: 180px;
        height: 42px;
        font-size: 16px;
    }
}

/* Çok küçük ekran (telefon mini) */
@media (max-width: 480px) {

    .circle-wrapper {
        transform: scale(1.1);  /* %60 */
    }

    .slice {
        width: 335px;
        height: 335px;
        opacity: 1;
    }

    .inner-circle {
        width: 200px;
        height: 200px;
    }

    .search-input {
        width: 160px;
        height: 40px;
        font-size: 15px;
    }
}

.circle-wrapper {
    margin-top: -80px !important;
}

@media (max-width: 480px) {
    .circle-wrapper {
        margin-top: -200px !important;
    }
}

/* Header altına sabit ve tam ortalı buton (tasarıma sadık) */
.header-button-wrapper {
    position: absolute; /* sabit, header ile birlikte kaymıyor */
    top: calc(20px + 110px + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 110px;
    text-align: center;
    margin-top: 30px;
}

/* Buton görünümü — mevcut tema değişkenlerine sadık */
.header-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(2,6,23,0.35);
    transition: transform .22s ease, box-shadow .22s ease, color .22s ease;
    white-space: nowrap;
}

/* Hover */
.header-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 40px rgba(2,6,23,0.45);
}

/* Light mode uyumu */
.light-mode .header-button {
    border: 1px solid #e6e6e6;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* PC */
@media (min-width: 768px) {
    .header-button-wrapper.left {
        top: calc(30px + 110px + 12px);  /* yükseklik aynı kalıyor */
        left: 25%;
    }

    .header-button-wrapper.right {
        top: calc(30px + 110px + 12px);  /* yükseklik aynı kalıyor */
        left: 75%;
    }

    .header-button-wrapper.center {
        top: calc(30px + 110px + 12px);  /* yükseklik aynı kalıyor */
        left: 50%;
    }

    .header-button {
        padding: 10px 18px;
        font-size: 14px;
    }
}


/* Mobil */
@media (max-width: 768px) {
    .header-button-wrapper.left {
        top: calc(110px + 12px);  /* yükseklik aynı kalıyor */
        left: 15%;
    }

    .header-button-wrapper.right {
        top: calc(110px + 12px);  /* yükseklik aynı kalıyor */
        left: 85%;
    }

    .header-button {
        padding: 10px 18px;
        font-size: 10px;
        width: 100%;
    }
}

/* Çok küçük ekranlar: buton yüke gelirse daralt */
@media (max-width: 420px) {
    .header-button {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* GECE */
:root {
    --slice-blue: #1E4F7A;
    --slice-green: #4CAF8A;
    --slice-text-color: #ffffff;
}

/* GÜNDÜZ */
.light-mode {
    --slice-blue: #6BAED6;
    --slice-green: #7ACFB9;
    --slice-text-color: #213442;
}

#slices use {
    fill: var(--slice-green) !important;
}

#slices use:nth-of-type(even) {
    fill: var(--slice-blue) !important;
}

/* Metin rengi */
#slices text {
    fill: var(--slice-text-color);
}

/* Şifre göster/gizle butonu genel stil */
.toggle-password {
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover efekti */
.toggle-password:hover {
    background-color: #7d6eff;
}

.dark-mode .toggle-password svg {
    stroke: #ffffff !important;
}

.light-mode .toggle-password svg {
    stroke: #213442 !important;
}

.menu-container {
    width: 100%;
    max-width: 380px;
    margin: 30px auto;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 22px rgba(0,0,0,0.35);
    border: 1px solid var(--border);
}

.main-menu {
    list-style: none;
}

.menu-item {
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: .3s;
    color: var(--text-main);
}

.menu-item:hover {
    transform: scale(1.03);
}

.submenu,
.sub-submenu {
    list-style: none;
    margin-top: 8px;
    padding-left: 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.submenu-item {
    padding: 10px;
    margin-top: 6px;
    background: var(--bg-main);
    border: 1px solid white;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-main);

    /* hover transitionlar */
    transition: transform 0.5s ease, background-color 0.15s ease;
    transform-origin: center;
}

.light-mode .submenu-item {
    border: 1px solid black !important;
}

.submenu-item:hover {
    transform: scale(1);
}

.submenu.show,
.sub-submenu.show {
    max-height: 400px;
}

/* Tüm menü içindeki liste işaretlerini kaldır */
.menu-container ul {
    list-style: none;
    padding-left: 0; /* İstenirse iç boşluğu da kaldırır */
    margin-left: 0;
}

.menu-container .submenu-item {
    text-align: center;
}

.menu-container .submenu-item.selected {
    color: #4d8cff; /* mavi */
    font-weight: bold; /* istersen kaldırabilirsin */
}

.menu-wrapper {
    width: 100%;
    max-width: 380px;   /* menü genişliğiyle aynı */
    margin: 0 auto;     /* tam ortaya getirir */
    text-align: center;
    margin-top: -5%;
}

.menu-title {
    font-size: 26px;
    font-weight: 600;
    margin-top: 90px;   /* İlan Oluştur ile arasına boşluk */
    margin-bottom: 20px;
    color: var(--text-main);
    opacity: 0.9;
    text-transform: uppercase;
}

/* Mobil */
@media (max-width: 768px) {
    .menu-wrapper {
        margin-top: -5%;
        width: 60%;
    }
}

.submenu-item > ul {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.35s ease, opacity 0.25s ease;
}

.submenu-item > ul.show {
    opacity: 1;
}

/* ---------------------------
    FORM KUTUSU
--------------------------- */
.menu-form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.menu-form {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    padding: 25px 28px;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

@keyframes fadeInForm {
    from { opacity: 0; transform: scale(.94); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------------------------
    FORM BAŞLIK
--------------------------- */
.menu-form-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 23px;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 10px;
}

/* ---------------------------
    ÜST GERİ BUTONU
--------------------------- */
.menu-back-top {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 20px;
    transition: .25s;
    user-select: none;
}

.menu-back-top:hover {
    transform: scale(1.10);
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

/* Light mode uyumu */
.light-mode .menu-back-top {
    background: var(--bg-input);
    border: 1px solid #ccc;
}

/* ---------------------------
    KATEGORİ BUTONLARI
--------------------------- */
.main-cat, .sub-cat {
    background: var(--bg-input) !important;
    color: var(--text-main);
    border: 1px solid var(--border) !important;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 17px;
    cursor: pointer;
    text-align: center;
    transition: .25s;
}

.main-cat:hover, .sub-cat:hover {
    transform: scale(1.03);
    background: rgba(255,255,255,0.06) !important;
}

.light-mode .main-cat,
.light-mode .sub-cat {
    background: var(--bg-input) !important;
    border: 1px solid #ccc !important;
}

.light-mode .main-cat:hover,
.light-mode .sub-cat:hover {
    background: rgba(0,0,0,0.05) !important;
}

/* Menü kayma efekti */
#menu-container {
    transition: transform .2s ease, opacity .2s ease;
}

/* OUT → SAĞA gider */
#menu-container.slide-out {
    transform: translateX(150px);
    opacity: 0;
}

/* IN → SOLDAN içeri gelir */
#menu-container.slide-in {
    transform: translateX(-200px); /* ← solda başlar */
    opacity: 0;
}

#menu-container.slide-in.show {
    transform: translateX(0);
    opacity: 1;
}

/* GERİ TUŞU OUT → sola */
#menu-container.back-out {
    transform: translateX(-150px);
    opacity: 0;
}

/* GERİ TUŞU IN → sağdan içeri */
#menu-container.back-in {
    transform: translateX(200px);
    opacity: 0;
}

#menu-container.back-in.show {
    transform: translateX(0);
    opacity: 1;
}

/* Mobil */
@media (max-width: 768px) {
    .menu-form {
        width: 80%;
    }
}

body.noscroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100%;
}

.menu-form-title {
    text-align: center;
    margin-bottom: 10px;
}

.menu-form-title .title-level {
    padding: 4px 0;
    font-weight: 1;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    display: block;
    cursor: pointer;
}

.menu-form-title .title-level:first-child {
    border-top: 1px solid rgba(0,0,0,0.15);
}

.menu-form-title .title-level:hover {
    background: rgba(0,0,0,0.04);
}

.hidden-preload {
    visibility: hidden !important;
}

/* ============================
   SETTINGS DROPDOWN (LANG DROPDOWN KOPYASI)
============================ */
.settings-dropdown {
    position: absolute;
    top: 60px; /* Ayarlar butonunun hemen altı */
    right: 0;
    min-width: 150px;       /* min genişlik yine 150 px */
    width: auto;            /* içerik kadar genişle */
    display: inline-block;  /* genişliğin içeriğe göre ayarlanması için */

    background: #2b2b3b !important; 
    backdrop-filter: none !important;

    border-radius: 12px;
    padding: 10px 0;
    list-style: none;

    max-height: 0;
    opacity: 0;

    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height .35s ease, opacity .35s ease, transform .35s ease;
    z-index: 9999;
}

/* Açık hali */
.settings-dropdown.show {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}

/* Liste elemanları */
.settings-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-main);
    transition: .2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-dropdown li:hover {
    background: rgba(255,255,255,0.25);
}

/* Light mode */
.light-mode .settings-dropdown {
    background: var(--bg-card) !important;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
    border: 1px solid #e6e6e6;
}

.light-mode .settings-dropdown li:hover {
    background: rgba(0,0,0,0.05);
}

/* ============================
   SETTINGS DROPDOWN SEPARATOR
============================ */
.settings-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-main);
    transition: .2s;
    display: flex;
    align-items: center;
    gap: 10px;

    /* AYRAÇ ÇİZGİSİ */
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Son elemana çizgi çekilmesin */
.settings-dropdown li:last-child {
    border-bottom: none;
}

/* Light mode çizgisi */
.light-mode .settings-dropdown li {
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.light-mode .settings-dropdown li:last-child {
    border-bottom: none;
}

.settings-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-main);
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;   /* ✔ Metni tam ortaya hizalar */

    white-space: nowrap;       /* ✔ Alt satıra kaymayı engeller */
    text-align: center;        /* ✔ Metin ortası */
    font-size: 14px;
}

.settings-back-top {
    margin-bottom: 4px;    /* 🔥 Geri butonu ile diğerleri arasında boşluk */
    padding-bottom: 10px;  /* İstersen daha büyük yapabilirsin */
    border-bottom: 1px solid rgba(255,255,255,0.15); /* Ayırıcı çizgi */
    border-bottom: none !important;   /* Çizgiyi tamamen kaldır */

}

.light-mode .settings-back-top {
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .settings-dropdown li {
        font-size: 13px;
    }
}

#userFirstname, #userLastname, #userMail, #userPhone, #userPassword {
    font-weight: 100;
    font-size: 16px;
}

.info-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 18px;
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
}

.info-title {
    font-size: 14px;
    color: var(--text-main);
    opacity: .7;
}

.info-value {
    font-size: 18px;
    margin: 6px 0 8px 0;
    color: var(--text-main);
    font-weight: 600;
}

.info-action {
    font-size: 14px;
    color: var(--accent);
    cursor: pointer;
    margin-bottom: 10px;
}

.info-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    outline: none;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
}

/* Kart açılma animasyonu */
.info-card {
    animation: cardFadeIn .55s ease;
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-success {
    border-color: #4cff8c8c !important;
    box-shadow: 0 0 18px rgba(76, 255, 140, 0.549) !important;

    animation: none !important;
    transition: none !important;
}

.card-error {
    border-color: #ff3b3b !important;
    box-shadow: 0 0 18px rgba(255, 50, 50, 0.95) !important;

    transition: none !important;
}

.updateError {
    margin-top: 10px;
    text-align: center;
    color: rgb(255, 92, 92);
    font-size: 14px;
    min-height: 20px;
}

@keyframes formOuterShake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-8px); }
    40%  { transform: translateX(8px); }
    60%  { transform: translateX(-5px); }
    80%  { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Sadece dış wrapper / kart titriyor */
.menu-form-wrapper.form-shake,
.page-wrapper.form-shake,
.page-card.form-shake {
    position: relative;
    animation: formOuterShake 0.35s ease;
}

/* Telefon satırı */
.phone-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Ülke kodu butonu */
.phone-country button {
    width: 95px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    cursor: pointer;
    transition: .2s ease;
}

.phone-country button:hover {
    background: var(--bg-input);
    transform: scale(1.03);
}

/* Telefon inputu */
.phone-input {
    flex:1;
    height:45px !important;
    background:var(--bg-main) !important;
    border:1px solid var(--border);
    color:var(--text-main);
}

/* Hata mesajı */
.phone-error {
    color:#ff5c5c;
    margin-top:8px;
    text-align:center;
}

#phoneInputWrapper {
    display: none !important;
    visibility: hidden;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

#phoneInputWrapper.active {
    display: block !important;
    visibility: visible;
    height: auto !important;
    overflow: visible !important;
    pointer-events: auto !important;
}


#lastUpdateError {
    text-align: center;
}



.password-wrapper {
    position: relative;
}

.password-wrapper input {
    height: 45px;
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;
}
.toggle-password svg {
    width: 20px;
    height: 20px;
    display: block;
}
#passwordCard .toggle-password {
    top: 50%;
}

/* Şifre onay kartı kapanış animasyonu */
.slide-up {
    animation: slideUpFade 0.55s ease forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(14px) scale(.96);
    }
}

.continue-update-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
}

#slices text {
    pointer-events: none;
}

/* İsim + Soyisim yan yana (gösterim) */
.fullname-value {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap; /* uzun isimlerde taşmasın */
}

.fullname-value .info-value {
    margin: 0; /* p tag default margin iptal */
}

.info-title {
    text-align: center;
    width: 100%;
    display: block;
}


#lastnameInput {
    margin-top: 10px;
}

#fullnameBtn, #mailBtn {
    margin-top: 20px;
}

/* ===========================
   PHONE COUNTRY DROPDOWN
=========================== */

/* Referans noktası (ÇOK ÖNEMLİ) */
.phone-country {
    position: relative;
}

/* +90 Butonu */
.phone-country button {
    width: 95px;
    height: 45px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.phone-country button:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(2,6,23,0.35);
}

/* ===========================
   DROPDOWN PANEL
=========================== */
.country-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;

    width: 325px;
    max-height: 220px;
    overflow-y: auto;

    background: linear-gradient(
        180deg,
        rgba(43,43,59,0.98),
        rgba(30,30,45,0.98)
    );

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(2,6,23,0.55),
        inset 0 1px 0 rgba(255,255,255,0.06);

    backdrop-filter: blur(10px);

    opacity: 0;
    transform: translateY(-8px) scale(.96);

    transition:
        opacity .25s ease,
        transform .25s ease;

    z-index: 9999;
}

/* Açık hali (JS display:block verdiğinde) */
.country-dropdown[style*="block"] {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===========================
   DROPDOWN ITEM
=========================== */
.country-dropdown .country-item {
    padding: 11px 14px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;

    color: var(--text-main);
    transition:
        background .2s ease,
        transform .15s ease;
}

.country-dropdown .country-item:hover {
    background: rgba(255,255,255,0.16);
    transform: scale(1.04);
}

/* ===========================
   SCROLLBAR (MINIMAL)
=========================== */
.country-dropdown::-webkit-scrollbar {
    width: 6px;
}

.country-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
}

/* ===========================
   LIGHT MODE UYUMU
=========================== */
.light-mode .country-dropdown {
    background: var(--bg-card);
    border: 1px solid #e6e6e6;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.light-mode .country-dropdown .country-item:hover {
    background: rgba(0,0,0,0.06);
}

.country-dropdown {
    overflow-x: hidden;   /* ❗ yatay kaydırmayı KAPAT */
}

.country-dropdown .country-item {
    white-space: nowrap;
}

.country-dropdown {
    overflow-y: auto;
    overflow-x: hidden;

    /* 🔥 Scrollbar üst-alt taşmayı önler */
    padding: 6px 0;

    background-clip: padding-box;
}

.country-dropdown::-webkit-scrollbar-track {
    margin: 8px 0;   /* 🔥 üst-alt boşluk */
}

.country-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
}

.country-search{
  width:90%;
  margin:8px auto;
  display:block;
  padding:8px;
  border-radius:8px;
  border:1px solid #444;
  background:var(--bg-input);
  color:var(--text-main);
}

.country-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  cursor:pointer;
}

.country-item img{
  width:22px;
  height:15px;
  border-radius:3px;
}

.country-item:hover{
  background:rgba(255,255,255,0.15);
}

.country-item .fi {
  margin-right: 8px;
  border-radius: 4px;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-selector .fi {
    width: 21px;
    height: 14px;
    border-radius: 3px;
}

.language-selector .fi,
.lang-dropdown .fi {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
}

/* =========================
   PRIVACY / STATIC PAGES
========================= */

.page-wrapper {
    width: 100%;
    max-width: 900px;
    margin-top: 100px;
    padding: 0 18px;
}

.page-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(2,6,23,0.45);
    padding: 28px 28px 35px 28px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 66px;
    color: var(--text-main);
    text-align: center;
}

.page-updated {
    font-size: 13px;
    opacity: .7;
    margin-top: 66px;
    text-align: end;
}

.page-content h2 {
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--text-main);
}

.page-content p {
    opacity: .9;
    line-height: 1.6;
    color: var(--text-main);
}

.page-content ul {
    margin: 12px 0 14px 20px;
    opacity: .9;
}

.page-content li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .page-wrapper {
        margin-top: 12px;
        margin-bottom: 20px;
    }

    .page-card {
        padding: 22px;
    }

    .page-title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .page-updated {
        font-size: 13px;
        opacity: .7;
        margin-top: 40px;
    }
}

.text-link {
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
}

/* 📱 Mobilde iç daireyi büyüt */
@media (max-width: 600px) {
  .inner-circle {
      width: 220px !important;
      height: 220px !important;
  }

  .search-input {
      width: 190px;
      height: 44px;
      font-size: 17px;
  }

    #slices {
      transform: scale(0.8) !important;
  }
}



.contact-form {
    margin-top: 25px;
    padding: 22px;
    border-radius: 18px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.contact-form .input-group label{
    opacity:.9;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.15);
    color: var(--text-main);
    outline: none;
    transition: .25s;
}

.light-mode .contact-form input,
.light-mode .contact-form textarea{
    background:#f7f7f7;
    border:1px solid #ddd;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #7d6eff;
    box-shadow: 0 0 12px rgba(125,110,255,.6);
}

#contactSendBtn {
    border-radius: 14px;
    font-size: 16px;
}

/* Uyarı mesajı ortak stil */
#contactStatus {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    min-height: 18px;
    transition: color .25s ease, text-shadow .25s ease;
}

/* ❌ HATA — kırmızı glow ile aynı ton */
#contactStatus.error {
    color: rgba(255, 50, 50, 0.95);
    text-shadow: 0 0 12px rgba(255, 50, 50, 0.85);
}

/* ✅ BAŞARI — yeşil glow ile aynı ton */
#contactStatus.success {
    color: rgba(76, 255, 140, 0.95);
    text-shadow: 0 0 12px rgba(76, 255, 140, 0.75);
}

/* =========================
   RESET PASSWORD KART STİLİ
   (HTML DEĞİŞTİRME YOK)
========================= */

/* Ortalamayı Admin ile aynı yap */
.container {
    max-width: 100%;
    display: flex;
    justify-content: center;
}

/* Kartı Admin form (menu-form) ile aynı yap */
.login-box {
    width: 100%;
    max-width: 420px;

    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border);
    padding: 25px 28px;

    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);

    animation: cardFadeIn .55s ease;
}

/* Başlık görünümü */
.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 23px;
    color: var(--text-main);
    font-weight: 600;
}

/* Inputlar admin form ile aynı olsun */
.login-box .info-input,
.login-box input {
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-main);
    height: 45px;
}

/* Şifre wrapper ile aynı görünüm */
.login-box .password-wrapper {
    position: relative;
}

.login-box .password-wrapper input {
    padding-right: 46px;
}

/* Göz ikonu admin ile aynı */
.login-box .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 6px;
    cursor: pointer;
}

/* Hover rengi */
.login-box .toggle-password:hover {
    background-color: #7d6eff;
}

/* Reset butonunu admin butonu ile aynı yap */
#resetBtn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    transition: .3s;
    cursor: pointer;
}

#resetBtn:hover {
    transform: scale(1.04);
}

/* Bilgi ve hata yazıları */
#resetStatus,
#passwordMatchStatus,
#resetInfo {
    text-align: center;
}

/* Admin kart açılma animasyonu */
@keyframes cardFadeIn {
    0% { opacity: 0; transform: translateY(14px) scale(.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 📱 Mobil uyum */
@media(max-width: 600px){
    .login-box{
        width: 90%;
        max-width: 380px;
        padding: 22px;
    }
}



.input-error{
  border:1.5px solid #ff4d4f !important;
  box-shadow:0 0 6px rgba(255,0,0,.45);
}

.input-success{
  border:1.5px solid #4CAF50 !important;
  box-shadow:0 0 6px rgba(0,255,0,.35);
}

.form-shake{
  animation:shake .35s;
}

@keyframes shake{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-6px)}
  75%{transform:translateX(6px)}
}

.car-form-steps-indicator{
  display:flex;
  justify-content:space-between;
  margin-bottom:18px;
  gap:10px;
}

.step-indicator-item{
  flex:1;
  text-align:center;
  padding:10px;
  border-radius:10px;
  background:var(--bg-input);
  border:1px solid var(--border);
  opacity:.6;
  transition:.25s;
}

.step-indicator-item.active{
  opacity:1;
  box-shadow:0 0 14px rgba(125,110,255,.6);
  border-color:#7d6eff;
}

.form-step{display:none;}
.form-step.active{display:block;}

.photo-preview{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(auto-fill,100px);
  gap:10px;
}

.photo-preview img{
  width:100%;
  height:100px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid var(--border);
}

.form-success{
  color:#4cff8c;
  text-align:center;
  margin-top:10px;
  text-shadow:0 0 8px rgba(76,255,140,.8);
}

.form-error{
  color:#ff5c5c;
  text-align:center;
  margin-top:10px;
  text-shadow:0 0 8px rgba(255,50,50,.8);
}

/* ===============================
   CAR CREATE AD - LOCATION DROPDOWN
   (ADMIN'DEN TAMAMEN BAĞIMSIZ)
================================ */

.car-dd-wrapper {
  position: relative;
  width: 100%;
}

/* SEARCH */
.car-dd-search {
  width: calc(100% - 20px);
  margin: 10px auto;
  display: block;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-main);
}
/* ============================
   CAR FORM STEP TABS — MOBILE
   ============================ */

@media (max-width: 768px){

  .car-form-steps-indicator{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.1));
  }

  .step-indicator-item{
    text-align: center;
    padding: 12px 10px;
    font-size: 13px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: #dcdcdc;
    backdrop-filter: blur(6px);
    pointer-events: none;  /* tıklamayı tamamen kapatır */
  }

  .step-indicator-item.active{
    background: linear-gradient(135deg,#7f5cff,#9d7aff);
    color:#fff;
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 14px rgba(157,122,255,0.45);
    transform: translateY(-1px);
  }
}

@media (max-width: 768px){
  .car-form-steps-indicator .step-indicator-item{
    pointer-events: none;
  }
}

@keyframes shakeUltraClean {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-8px); }
  30%  { transform: translateX(8px); }
  45%  { transform: translateX(-6px); }
  60%  { transform: translateX(6px); }
  75%  { transform: translateX(-3px); }
  90%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}
.form-shake{
  animation: shakeUltraClean .48s cubic-bezier(.36,.07,.19,.97);
  will-change: transform;
}

#giveAdDropdown {
    left: 0;
    right: auto;   /* sağ hizalamayı kapat */
    top: calc(100% + 8px);  /* butonun hemen altı - opsiyonel */
}

#settingsDropdown {
    left: auto;
    right: 0;   /* sağ hizalamayı kapat */
    top: calc(100% + 8px);  /* butonun hemen altı - opsiyonel */
}

@media (min-width: 768px){
    #settingsDropdown {
        margin-right: 10px;
    }
}

#tramer {
    width: 100%;
    margin-top: 0px;
}

.next-step-btn {
    margin-top: 18px;
}

/* ==============================
   CREATE VEHICLES FORM STEP ANİMASYONLARI — TERS YÖN
============================== */
.form-step {
  transition: transform .22s ease, opacity .22s ease;
}

/* İLERİ — mevcut step SOLA kayarak çıkar */
.form-step.slide-out {
  transform: translateX(-150px);
  opacity: 0;
}

/* GERİ — mevcut step SAĞA kayarak çıkar */
.form-step.back-out {
  transform: translateX(150px);
  opacity: 0;
}

/* İLERİ — yeni step SAĞDAN gelir */
.form-step.slide-in {
  transform: translateX(200px);
  opacity: 0;
}
.form-step.slide-in.show {
  transform: translateX(0);
  opacity: 1;
}

/* GERİ — yeni step SOLDAN gelir */
.form-step.back-in {
  transform: translateX(-200px);
  opacity: 0;
}
.form-step.back-in.show {
  transform: translateX(0);
  opacity: 1;
}

#mileage_km, #engine_power_hp, #engine_volume_cc {
    width: 100%;
}

/* CONTACT MESSAGE TEXTAREA — SABİT BOYUT */
#contactMessage {
    resize: none;          /* ❌ köşeden büyütmeyi kapatır */
    height: 140px;     
    width: 100%;
    overflow-y: auto;      /* sadece dikey scroll */
}

#contactMessage::-webkit-scrollbar {
    width: 6px;
}

#contactMessage::-webkit-scrollbar-track {
    margin: 8px 0;   /* üst-alt boşluk */
    background: transparent;
}

#contactMessage::-webkit-scrollbar-thumb {
    background: rgba(124,124,255,0.4);  /* mor ton */
    border-radius: 10px;
}

/* LIGHT MODE — TEXTAREA SCROLLBAR */
.light-mode #contactMessage::-webkit-scrollbar-thumb {
    background: rgba(125,110,255,0.45);
}

.light-mode #contactMessage::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.03);
}

/* ============================
   INPUTLAR — DROPDOWN STİLİ
   ============================ */

.menu-form input[type="text"],
.menu-form input[type="number"],
.menu-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: .25s;
}

/* Focus — mor glow efekti */
.menu-form input[type="text"]:focus,
.menu-form input[type="number"]:focus,
.menu-form textarea:focus {
  border-color: #7d6eff;
  box-shadow: 0 0 10px rgba(125,110,255,.45);
}

/* Placeholder = dropdown placeholder ile aynı */
.menu-form input[type="text"]::placeholder,
.menu-form input[type="number"]::placeholder,
.menu-form textarea::placeholder {
  color: rgba(255,255,255,.45);
  font-style: italic;
}

/* ============================
   LIGHT MODE UYUMLU
   ============================ */

.light-mode .menu-form input[type="text"],
.light-mode .menu-form input[type="number"],
.light-mode .menu-form textarea {
  background: var(--bg-input);
  border: 1px solid #ccc;
  color: #222;
}

.light-mode .menu-form input[type="text"]::placeholder,
.light-mode .menu-form input[type="number"]::placeholder,
.light-mode .menu-form textarea::placeholder {
  color: rgba(0,0,0,.45);
}

.menu-form input.has-value,
.menu-form textarea.has-value {
  transform: scale(1.01);
  font-weight: 500;
}

/* ======================================================
   MODERN & PREMIUM DROPDOWN SYSTEM
====================================================== */

:root {
    --dd-bg: #2b2b3b;
    --dd-border: rgba(255, 255, 255, 0.1);
    --dd-shadow: rgba(0, 0, 0, 0.4);
    --dd-item-hover: rgba(125, 110, 255, 0.15);
    --dd-text: #ffffff;
    --dd-text-muted: rgba(255, 255, 255, 0.5);
    --dd-input-bg: rgba(0, 0, 0, 0.2);
}

.light-mode {
    --dd-bg: #ffffff;
    --dd-border: rgba(0, 0, 0, 0.1);
    --dd-shadow: rgba(0, 0, 0, 0.1);
    --dd-item-hover: rgba(125, 110, 255, 0.08);
    --dd-text: #1a1a1a;
    --dd-text-muted: rgba(0, 0, 0, 0.5);
    --dd-input-bg: #f5f5f7;
}

/* Tetikleyici Buton */
.car-dd-btn {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    color: var(--dd-text-muted) !important;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.car-dd-btn.has-value {
    color: var(--text-main) !important;
    font-weight: 500;
    border-color: var(--accent) !important;
}

.car-dd-btn:after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

/* Panel Konteyner */
.car-dd-panel-adminlike {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    z-index: 10000;
    background: var(--dd-bg);
    border: 1px solid var(--dd-border);
    border-radius: 16px;
    box-shadow: 0 15px 35px var(--dd-shadow);
    backdrop-filter: blur(20px);
    overflow: hidden;
    animation: ddFadeIn 0.25s ease-out;
}

@keyframes ddFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Arama Çubuğu */
.car-dd-search-adminlike {
    width: calc(100% - 24px) !important;
    margin: 12px !important;
    height: 40px !important;
    background: var(--dd-input-bg) !important;
    border: 1px solid var(--dd-border) !important;
    border-radius: 10px !important;
    color: var(--dd-text) !important;
    padding: 0 12px !important;
    font-size: 14px;
}

.car-dd-search-adminlike:focus {
    border-color: var(--accent) !important;
    outline: none;
}

/* Liste Yapısı */
.car-dd-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
}

/* Liste Öğeleri (Tekli ve Çoklu Ortak) */
.car-dd-item, .car-dd-item.multi-item {
    padding: 12px 14px !important;
    margin: 2px 0;
    border-radius: 10px;
    color: var(--dd-text);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.car-dd-item:hover, .car-dd-item.multi-item:hover {
    background: var(--dd-item-hover);
}

/* Çoklu Seçim - Checkbox Alanı */
.ms-check-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--dd-border);
    border-radius: 6px;
    background: transparent;
    position: relative;
    transition: all 0.2s ease;
}

.car-dd-item.multi-item.selected {
    background: rgba(125, 110, 255, 0.12);
}

.car-dd-item.multi-item.selected .ms-check-indicator {
    background: var(--accent);
    border-color: var(--accent);
}

.car-dd-item.multi-item.selected .ms-check-indicator:after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Kaydırma Çubuğu Özelleştirme */
.car-dd-list::-webkit-scrollbar {
    width: 5px;
}

.car-dd-list::-webkit-scrollbar-thumb {
    background: var(--dd-border);
    border-radius: 10px;
}

/* ======================================================
   MODERN DROPDOWN SYSTEM - REFINED
====================================================== */

:root {
    --dd-bg: #2b2b3b;
    --dd-border: rgba(255, 255, 255, 0.1);
    --dd-shadow: rgba(0, 0, 0, 0.4);
    --dd-item-hover: rgba(125, 110, 255, 0.15);
    --dd-text: #ffffff;
    --dd-text-muted: rgba(255, 255, 255, 0.45);
    --dd-input-bg: rgba(0, 0, 0, 0.2);
    --dd-disabled-bg: rgba(255, 255, 255, 0.05);
}

.light-mode {
    --dd-bg: #ffffff;
    --dd-border: rgba(0, 0, 0, 0.15); /* Daha belirgin çerçeve */
    --dd-shadow: rgba(0, 0, 0, 0.1);
    --dd-item-hover: rgba(125, 110, 255, 0.08);
    --dd-text: #111111;
    --dd-text-muted: rgba(0, 0, 0, 0.5); /* Gündüz modunda daha okunaklı placeholder */
    --dd-input-bg: #f8f9fa; /* Arka plan daha belirgin */
    --dd-disabled-bg: #e9ecef; /* Tıklanamaz hali için gri ton */
}

/* Tetikleyici Buton (Dropdown Başlığı) */
.car-dd-btn {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: var(--dd-input-bg) !important;
    border: 1px solid var(--dd-border) !important;
    border-radius: 12px !important;
    color: var(--dd-text-muted) !important;
    font-size: 14px;
    font-style: italic; /* İstediğin İtalik Placeholder */
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Seçim Yapıldığında (Değer Varken) */
.car-dd-btn.has-value {
    color: var(--dd-text) !important;
    font-weight: 500;
    font-style: normal; /* Seçilince dik yazı */
    border-color: var(--accent) !important;
}

/* 🚫 TIKLANAMAZ / DEVRE DIŞI HALİ */
.car-dd-btn:disabled {
    background: var(--dd-disabled-bg) !important;
    opacity: 0.6;
    cursor: not-allowed !important;
    border-style: dashed !important; /* Görsel olarak kilitli olduğu belli olsun */
    filter: grayscale(1);
}

/* Panel ve Diğer Tasarımlar (Önceki Tasarımı Koruyoruz) */
.car-dd-panel-adminlike {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    z-index: 10000;
    background: var(--dd-bg);
    border: 1px solid var(--dd-border);
    border-radius: 16px;
    box-shadow: 0 15px 35px var(--dd-shadow);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.car-dd-item {
    padding: 12px 14px !important;
    color: var(--dd-text);
    cursor: pointer;
    transition: background 0.2s;
}

.car-dd-item:hover {
    background: var(--dd-item-hover);
}

/* ======================================================
   MODERN DROPDOWN SYSTEM - V2 REFINED
====================================================== */

:root {
    --dd-bg: #2b2b3b;
    --dd-border: rgba(255, 255, 255, 0.1);
    --dd-shadow: rgba(0, 0, 0, 0.4);
    --dd-item-hover: rgba(125, 110, 255, 0.15);
    --dd-text: #ffffff;
    --dd-text-muted: rgba(255, 255, 255, 0.45);
    --dd-input-bg: rgba(0, 0, 0, 0.2);
    --dd-disabled-bg: rgba(255, 255, 255, 0.05);
}

/* ☀️ GÜNDÜZ MODU İYİLEŞTİRMELERİ */
.light-mode {
    --dd-bg: #ffffff;
    --dd-border: #d1d1d6; /* Daha sert ve belirgin çerçeve */
    --dd-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --dd-item-hover: rgba(125, 110, 255, 0.1);
    --dd-text: #1c1c1e;
    --dd-text-muted: #8e8e93; /* Placeholder daha okunur */
    --dd-input-bg: #f2f2f7; /* Girdi alanları arka plandan ayrışıyor */
    --dd-disabled-bg: #e5e5ea; /* Tıklanamaz hali için belirgin gri */
}

/* Tetikleyici Buton */
.car-dd-btn {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: var(--dd-input-bg) !important;
    border: 1px solid var(--dd-border) !important;
    border-radius: 12px !important;
    color: var(--dd-text-muted) !important;
    font-size: 14px;
    font-style: italic; /* İsteğin: Placeholderlar İtalik */
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Seçim Yapıldığında */
.car-dd-btn.has-value {
    color: var(--dd-text) !important;
    font-weight: 500;
    font-style: normal; /* Seçilince dik yazı */
    border-color: var(--accent) !important;
    background: var(--dd-bg) !important; /* Seçilince biraz daha parlasın */
}

/* 🚫 TIKLANAMAZ / DEVRE DIŞI HALİ (Geri Getirilen Stil) */
.car-dd-btn:disabled {
    background: var(--dd-disabled-bg) !important;
    border: 1px dashed var(--dd-border) !important; /* Kesikli çizgi kilitli olduğunu belli eder */
    opacity: 0.65;
    cursor: not-allowed !important;
    filter: grayscale(1);
}

/* Panel Konteyner (Gündüz Modu Belirginlik Ayarı) */
.car-dd-panel-adminlike {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    z-index: 10000;
    background: var(--dd-bg);
    border: 1px solid var(--dd-border);
    border-radius: 16px;
    box-shadow: var(--dd-shadow);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

/* Step Indicator (Gündüz Modu Görsel Fix) */
.light-mode .step-indicator-item {
    background: #e5e5ea;
    border: 1px solid #d1d1d6;
    color: #8e8e93;
}

.light-mode .step-indicator-item.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(125, 110, 255, 0.4);
}

/* Standart dosya inputunu gizle */
.photo-input-hidden {
    display: none !important;
}

/* Fotoğrafları mobilde ortala ve silme butonu için stil */
.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Mobilde ve genel olarak ortalar */
    margin-top: 15px;
}

.photo-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.photo-item .delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5c5c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Fiyatı ortalamak için özel class */
.centered-input-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}
.centered-input-wrapper .input-group {
    width: 100%;
    max-width: 400px; /* Diğerleriyle uyumlu genişlik */
}

/* Mobilde Step 4'ün alt alta ve her sırada 1 tane olması */
@media (max-width: 600px) {
    .form-step[data-step="4"] .form-grid {
        grid-template-columns: 1fr !important;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .centered-input-wrapper {
        display: block !important;
        width: 100%;
    }

    .centered-input-wrapper .input-group {
        max-width: 100% !important;
    }
}

/* --- Placeholder Görünümü Zorlama --- */

/* Pazarlık, Takas ve diğer seçim yapılmamış dropdown butonları */
.car-dd-btn:not(.has-value) {
    font-style: italic !important;
    color: var(--dd-text-muted) !important;
    font-weight: 400 !important;
    opacity: 0.8 !important;
}

/* Seçim yapıldığında normal görünüme dön */
.car-dd-btn.has-value {
    font-style: normal !important;
    color: var(--text-main) !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

/* ======================================================
   TEXTAREA & PLACEHOLDER REFINED - FINAL VERSION
====================================================== */

/* 1. Textarea Genel Stil: Yazı yazıldığında dik (normal) ve ana metin renginde olur */
.menu-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--dd-border);
    background: var(--bg-input);
    color: var(--text-main) !important;
    font-size: 14px;
    font-style: normal !important; /* Yazılan yazı her zaman düzdür */
    outline: none;
    transition: .25s;
    resize: none !important;
    height: 120px;
}

/* 2. Placeholder Stili: Sadece metin yokken görünür, italik ve silik renktedir */
.menu-form textarea::placeholder {
    font-style: italic !important;
    color: var(--dd-text-muted) !important;
    opacity: 0.8 !important;
}

/* 3. Focus Durumu */
.menu-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(125,110,255,.45);
}

/* 4. Fotoğraf Yükleme Butonu (Placeholder mantığıyla uyumlu) */
.custom-photo-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--dd-input-bg);
    border: 1px solid var(--dd-border);
    border-radius: 12px;
    color: var(--dd-text-muted) !important;
    font-style: italic !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Değer girildiğinde fotoğraf butonunu düzeltir (JS ile tetiklenir) */
.custom-photo-label.has-value {
    color: var(--text-main) !important;
    font-style: normal !important;
    font-weight: 500;
    border-color: var(--accent);
}

/* Gündüz Modu İyileştirmesi */
.light-mode .menu-form textarea::placeholder {
    color: #8e8e93 !important;
}

.photo-zoom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.7); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* --- ORTAK BUTON TASARIMI (Oklar ve Kapatma Butonu) --- */
.modal-nav, .close-zoom {
    position: absolute;
    /* Cam Efekti (Glassmorphism) */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    color: var(--primary-purple, #6f42c1);
    border: 3px solid var(--primary-purple, #6f42c1);
    
    /* TAM KARE BOYUTLAR */
    width: 30px;
    height: 30px;
    font-size: 1.6rem; /* İkonların kutu içinde dengeli durması için ideal boyut */
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    border-radius: 12px; /* Modern yumuşatılmış kare */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    line-height: 1;
}

.modal-nav {
    font-size: 1.4rem;
    padding-top: .2rem;
}

/* Konumlandırmalar */
.modal-nav.prev { left: 40px; top: 50%; transform: translateY(-50%); }
.modal-nav.next { right: 40px; top: 50%; transform: translateY(-50%); }
.close-zoom { top: 20px; right: 35px; }

/* HOVER EFEKTLERİ (Bilgisayar) */
@media (min-width: 900px) {
    .modal-nav:hover, .close-zoom:hover {
        background: var(--primary-purple, #6f42c1);
        color: white;
        box-shadow: 0 8px 20px rgba(111, 66, 193, 0.3);
        transform: scale(1.05);
    }
    
    /* Oklarda transform çakışmaması için özel durum */
    .modal-nav.prev:hover, .modal-nav.next:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .modal-nav:active, .close-zoom:active {
        transform: scale(0.95);
    }
}

/* MOBİL GÖRÜNÜM (Boyut Küçültme) */
@media (max-width: 768px) {
    .modal-nav, .close-zoom {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
    .modal-nav.prev { left: 15px; }
    .modal-nav.next { right: 15px; }
    .close-zoom { right: 15px; top: 15px; }
}

.photo-item img {
    cursor: zoom-in; /* Fotoğrafların üzerine gelince imleç değişsin */
    transition: transform 0.2s;
}

.photo-item img:hover {
    transform: scale(1.05);
}

/* Step indicator öğelerinin genel görünümü */
.step-indicator-item {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    opacity: .6;
    transition: .25s;
    
    /* YAZI FONTU GÜNCELLEMELERİ */
    font-size: 15px;           /* Font boyutunu artırdık */
    font-weight: 700;          /* Yazıyı kalınlaştırdık (Bold) */
    text-transform: uppercase; /* Başlıkları daha belirgin yapmak için büyük harf yaptık */
    letter-spacing: 0.5px;     /* Harf arasını açarak okunabilirliği artırdık */
}

/* Aktif olan adımın görünümü */
.step-indicator-item.active {
    opacity: 1;
    color: #fff;               /* Yazı rengini tam beyaz yaptık */
    box-shadow: 0 0 16px rgba(125, 110, 255, 0.7); /* Parlamayı güçlendirdik */
    border-color: var(--accent);
    transform: scale(1.02);    /* Hafif büyüterek dikkat çektik */
}

/* Mobil görünüm için (1005. satır civarı) */
@media (max-width: 768px) {
    .step-indicator-item {
        font-size: 12px;       /* Mobilde okunur ama taşmayacak boyuta çektik */
        font-weight: 800;      /* Mobilde daha vurgulu font */
    }
}

/* ======================================================
   STEP 5 MOBILE REFINED DESIGN
====================================================== */
@media (max-width: 600px) {
    /* Sadece 5. adımı hedef alıyoruz */
    .form-step[data-step="5"] .form-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 sütunlu yapı */
    }

    /* 1. Input: Pazarlık (Full Genişlik) */
    .form-step[data-step="5"] .form-grid > .input-group:nth-child(1) {
        grid-column: 1 / -1;
    }

    /* 2. Input: Takas (Full Genişlik) */
    .form-step[data-step="5"] .form-grid > .input-group:nth-child(2) {
        grid-column: 1 / -1;
    }

    /* 3. Input: Kapak Fotoğrafı (Yarı Genişlik - Sol) */
    .form-step[data-step="5"] .form-grid > .input-group:nth-child(3) {
        grid-column: 1 / 2;
    }

    /* 4. Input: Diğer Fotoğraflar (Yarı Genişlik - Sağ) */
    .form-step[data-step="5"] .form-grid > .input-group:nth-child(4) {
        grid-column: 2 / 3;
    }

    /* 5. Input: Fiyat (Full Genişlik) */
    .form-step[data-step="5"] .centered-input-wrapper {
        grid-column: 1 / -1 !important;
        display: block !important;
    }

    /* 6. Input: Açıklama (Zaten CSS'inizde grid-column:1/3 olarak tanımlı, olduğu gibi kalır) */
}

/* Fotoğraf seçim alanlarının mobilde yüksekliklerini eşitlemek için */
@media (max-width: 600px) {
    .form-step[data-step="5"] .custom-photo-label {
        font-size: 11px !important; /* Yazıların sığması için biraz küçültüldü */
        padding: 0 8px !important;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    #fifth{
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Masaüstü ve Mobil gösterim kontrolü */
.desktop-only { display: none; }
.mobile-only { display: block; }

@media (min-width: 769px) {
    /* Bilgisayarda görsel kutusunu dikey hizala */
    .ad-img-box {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        height: auto !important; /* Yüksekliği içeriğe göre serbest bırak */
        width: 260px; /* Genişliği sabit tut */
    }

    .ad-img-box img {
        height: 170px !important; /* Görsel yüksekliğini sabit tut */
        width: 100% !important;
        object-fit: cover;
    }

    /* Masaüstü lokasyon verisini görünür yap */
    .desktop-only {
        display: block !important;
        margin-top: 8px !important;
        text-align: center;
        width: 100%;
        color: var(--primary-purple); /* Mor renk */
        font-size: 0.85rem;
        font-weight: 500;
    }

    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Mobilde eski tasarımı koru */
    .mobile-only {
        display: block !important;
        color: var(--primary-purple);
        font-weight: 500;
        margin-bottom: 10px;
    }
    .desktop-only {
        display: none !important;
    }
    .ad-img-box {
        width: 100% !important;
        height: 200px !important;
    }
}

/* Bu popup'ın dış karartısına tıklandığında kapanmasını istemiyoruz */
#loggedInRequired {
    pointer-events: auto; /* Tıklamaları yakalar */
    cursor: wait;        /* Bekleme imleci */
}

/* İçerik kutusunun titrememesi veya sabit kalması için */
#loggedInRequired .popup-content {
    text-align: center;
}

.hidden-on-input {
    display: none !important;
}

/* ======================================================
   PREMIUM THEME SWITCH (DİL SEÇİCİ İLE EŞİT)
====================================================== */
.theme-toggle {
    width: 150px; /* Mobilde dil seçici ile tam eşit */
    height: 40px;
    background: var(--bg-input);
    border-radius: 20px; /* Tam yuvarlak kenarlar */
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 5px;
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

/* Switch İçindeki Hareketli İkon */
.theme-toggle::before {
    content: "🌙"; /* Başlangıç ikonu (Gece) */
    position: absolute;
    left: 8px; /* Konum ikon boyutuna göre ayarlandı */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* İSTEDİĞİN GÜNCELLEMELER */
    font-size: 24px;         /* İkon boyutu büyütüldü */
    background: transparent; /* Arka plandaki yuvarlak kaldırıldı */
    box-shadow: none;        /* Etrafındaki gölge kaldırıldı */
    border-radius: 50%;
    
    transition: all 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- LIGHT MODE DURUMU (Gündüz) --- */
.light-mode .theme-toggle {
    background: #e0e0e0;
    border-color: #ccc;
}

.light-mode .theme-toggle::before {
    content: "☀️";
    left: calc(100% - 38px); /* Sağa kaydırma mesafesi ikon boyutuna göre revize edildi */
    transform: rotate(360deg); /* Dönerken şık bir efekt */
}

/* Hover Efekti */
.theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

/* Mobil Simetri Ayarı */
@media (max-width: 600px) {
    .theme-toggle {
        width: 100px !important;
        min-width: 100px;
    }
    
    .language-selector .selected-lang {
        width: 100px !important;
        height: 40px;
        justify-content: center;
    }
}

/* --- PREMIUM FOTOĞRAF ZOOM SİSTEMİ --- */

/* Giriş (Yaylanarak Açılma) */
@keyframes photoPopIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Çıkış (Küçülerek Kapanma - Açılışın Tam Tersi) */
@keyframes photoPopOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.8); opacity: 0; }
}

@keyframes photoOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes photoOverlayOut { from { opacity: 1; } to { opacity: 0; } }

/* Modal Ana Yapısı */
.photo-zoom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
}

/* AÇILIŞ: Overlay ve Resim */
.photo-zoom-modal.zoom-active {
    animation: photoOverlayIn 0.3s ease forwards;
}

.photo-zoom-modal.zoom-active .modal-content {
    animation: photoPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* KAPANIŞ: Overlay ve Resim (İşte burası çalışacak) */
.photo-zoom-modal.modal-exit-active {
    animation: photoOverlayOut 0.3s ease forwards;
}

/* Kapanırken resim de küçülerek kaybolacak */
.photo-zoom-modal.modal-exit-active .modal-content {
    animation: photoPopOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    transform-origin: center;
    will-change: transform, opacity;
}

/* Overlay: Arka plan kararırken hafif bulanıklık verir */
.ad-delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none; /* JS ile flex yapılacak */
    align-items: center;
    justify-content: center;
    z-index: 11000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Modal kutusu ve animasyonu */
.ad-delete-modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Başlangıçta küçük ve aşağıda durur */
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Aktif sınıflar (Animasyon tetikleyici) */
.ad-delete-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.ad-delete-modal-overlay.active .ad-delete-modal-content {
    transform: translateY(0) scale(1);
}

/* Buton ve yazı stilleri */
.ad-delete-modal-title { margin: 0 0 10px; color: var(--text-main); font-size: 1.3rem; }
.ad-delete-modal-text { margin-bottom: 25px; color: var(--text-main); opacity: 0.8; }
.ad-delete-modal-close { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: var(--text-main); }

.ad-delete-modal-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ad-delete-modal-btn:hover { opacity: 0.9; }

/* ... mevcut kodların en altına ekleyin ... */

/* Sadece Edge Tarayıcısında Çalışır */
body.is-edge .circle-wrapper {
    /* Transform yerine 'left' kullanıyoruz, böylece animasyonla çakışmaz */
    left: 150px; 
}

/* Mobilde Edge kullanılıyorsa kaymayı iptal et */
@media (max-width: 768px) {
    body.is-edge .circle-wrapper {
        left: 150px;
    }
}

        /* Chrome, Safari, Edge ve Opera için */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- DISABLED BUTON DÜZELTMESİ --- */

/* 1. Disabled butonun tıklamayı yutmasını engelle */
/* Böylece tıklama 'delip geçer' ve arkadaki wrapper'a ulaşır */
.car-dd-btn:disabled {
    pointer-events: none !important; 
}

/* 2. Ancak görsel olarak hala 'yasak' imleci çıksın */
/* Butona basamıyoruz ama onu saran kutuya (wrapper) basınca imleç değişsin */
.car-dd-wrapper {
    cursor: default;
}

/* Modern tarayıcılar için: İçinde disabled buton olan wrapper'ı yakala */
.car-dd-wrapper:has(.car-dd-btn:disabled) {
    cursor: not-allowed;
}

/* --- style.css --- */

.ad-gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%; 
    /* min-width satırını kaldırabilirsin, width: 100% yeterlidir */
}

.gallery-main {
    width: 100%;
    height: 450px; /* MASAÜSTÜ İÇİN SABİT YÜKSEKLİK */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000; /* Resim sığmazsa kalan boşluk rengi */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;       /* Resmi yatayda kutuya yay */
    height: 100%;      /* Resmi dikeyde kutuya yay */
    object-fit: contain; /* Resmi deforme etmeden kutunun içine sığdır (Kırpmaz) */
    /* Eğer resmin kutuyu tamamen doldurmasını (kırparak) istersen: object-fit: cover; yapabilirsin */
}

@media (max-width: 900px) {
    .gallery-main {
        height: 300px; /* MOBİL İÇİN SABİT YÜKSEKLİK */
    }
}

:root {
    --success-green: #22c55e; /* Canlı yeşil */
    --danger-red: #ef4444;    /* Canlı kırmızı */
}

/* Ekspertiz itemları için genel stil */
.exp-status-icon {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

#mainImage {
    cursor: zoom-in;
}

/* ======================================================
   SOHBET DETAY (CHAT DETAIL) & BİLDİRİMLER - TEMİZLENMİŞ
   Son güncelleme: En alttaki kurallar baz alınmıştır.
====================================================== */

:root {
    --ch-purple: #7d6eff;
    --ch-scrollbar-thumb: rgba(125, 110, 255, 0.3);
}

/* --- SCROLLBAR AYARLARI --- */
#messagesBox::-webkit-scrollbar,
.chat-body::-webkit-scrollbar {
    width: 6px;
}

#messagesBox::-webkit-scrollbar-track,
.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

#messagesBox::-webkit-scrollbar-thumb,
.chat-body::-webkit-scrollbar-thumb {
    background: var(--ch-scrollbar-thumb);
    border-radius: 10px;
}

#messagesBox::-webkit-scrollbar-thumb:hover,
.chat-body::-webkit-scrollbar-thumb:hover {
    background: var(--ch-purple);
}

/* --- ANA KAPSAYICI (WRAPPER) --- */
.chat-wrapper {
    /* Layout ve Görünüm */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--text-main);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px auto;
    
    /* Boyutlandırma (Son kural baz alındı) */
    height: 60vh;
    width: 400px;
    max-width: 400px;
}

/* --- HEADER --- */
.chat-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 50px 1fr 50px; /* Geri - Orta - Boşluk */
    align-items: center;
}

.back-button {
    grid-column: 1;
    color: var(--text-main);
    font-size: 1.2rem;
    padding: 8px;
    text-decoration: none;
    display: flex;
    justify-content: center;
}

.user-details {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* Yatay ortalama */
    text-align: center;
    width: 100%;
}

.user-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.user-text span {
    font-size: 0.8rem;
    color: var(--ch-purple);
    font-weight: 500;
}

/* Başlık ve Durum yazılarını zorla ortalamak için */
#chatUserName, #chatUserStatus {
    margin-left: 0;
    margin-right: 0;
}

/* --- İLAN KARTI (MİNİ) --- */
.ad-mini-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: 10px;
    margin-top: 5px;
    
    /* Ortalamak için son kurallar */
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    
    text-decoration: none;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.ad-mini-card:hover {
    transform: translateY(-2px);
}

.ad-mini-card img {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    object-fit: cover;
}

.ad-mini-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ad-mini-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-mini-price {
    font-size: 0.75rem;
    color: var(--ch-purple);
    font-weight: 700;
}

/* --- BODY (MESAJ ALANI) --- */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--ch-purple) transparent;
}

.message-bubble {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 16px;
    font-size: 0.95rem;
    position: relative;
    word-wrap: break-word;
    animation: chPopIn 0.3s ease-out;
}

.message-bubble.mine {
    align-self: flex-end;
    background: var(--ch-purple);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-bubble.theirs {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}

.msg-time {
    display: block;
    font-size: 0.7rem;
    text-align: right;
    margin-top: 4px;
    opacity: 0.8;
}

/* --- FOOTER (GİRDİ ALANI) --- */
.chat-footer {
    padding: 15px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    padding: 5px 5px 5px 15px;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.chat-input-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    outline: none;
    font-size: 1rem;
    color: var(--text-main);
}

.send-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--ch-purple);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    padding: 0;
}

.send-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- YÜKLENİYOR ANİMASYONU --- */
.chat-loader { display: flex; justify-content: center; align-items: center; height: 100%; }
.ch-spinner { width: 30px; height: 30px; border: 3px solid rgba(125,110,255,0.2); border-top-color: var(--ch-purple); border-radius: 50%; animation: ch-spin 1s infinite linear; }

@keyframes chPopIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ch-spin { to { transform: rotate(360deg); } }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ======================================================
   LİSTE & BİLDİRİM STİLLERİ (DIŞ KAPSAYICILAR İÇİN)
====================================================== */

/* Okunmamış Mesaj Kartı */
.message-card.unread {
    background: rgba(125, 110, 255, 0.1) !important;
}

.message-card.unread h3 {
    font-weight: 800 !important;
    color: var(--ch-purple);
}

/* Liste İçi Kırmızı Bildirim Rozeti */
.unread-badge {
    background: #7d6eff !important;
    color: white !important;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    margin-right: 10px;
    z-index: 10;
    display: inline-block !important;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(255, 59, 48, 0.3);
}

/* Header Butonu Üzerindeki Rozet (Sağ Üst Köşe) */
.header-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #7d6eff;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dropdown Menü İçindeki Rozet (Satır Sonu) */
.dropdown-notification-badge {
    position: absolute;       /* Akıştan çıkar */
    right: 15px;              /* Sağdan boşluk */
    top: 50%;                 /* Dikey ortala */
    transform: translateY(-50%);
    
    background-color: #7d6eff;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(255, 59, 48, 0.3);
}

/* ======================================================
   MOBİL UYUMLULUK (TÜM MOBİL KURALLARI BURADA)
====================================================== */
@media (max-width: 600px) {
    .chat-wrapper {
        width: 300px;
        max-width: 300px;
        height: 50vh;
        margin: 10px auto;
        border-radius: 20px !important;
    }

    .chat-header {
        padding: 10px;
    }

    .ad-mini-card {
        margin: 8px auto 0 auto !important;
        width: fit-content;
        display: flex !important;
        padding: 5px 12px;
    }

    .message-bubble {
        max-width: 85%;
    }

    .chat-footer {
        padding: 10px 15px;
    }

    .chat-input-container {
        border-radius: 25px;
    }
    
    .chat-body::-webkit-scrollbar {
        width: 4px;
    }
}

.search-autocomplete-dropdown {
    position: absolute;
    top: 100%; /* Input'un hemen altından başlar */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* inner-circle genişliğine göre ayarlanabilir */
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--bg-color, #ffffff); /* Kendi tema değişkenlerini kullanabilirsin */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 5px 0;
    margin-top: 10px;
    z-index: 9999;
}

.search-autocomplete-dropdown li {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    color: var(--text-color, #333);
    font-size: 16px;
    transition: background 0.2s ease;
}

.search-autocomplete-dropdown li:last-child {
    border-bottom: none;
}

.search-autocomplete-dropdown li:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.search-autocomplete-dropdown li .matched-keyword {
    font-size: 12px;
    opacity: 0.6;
}

@media (max-width: 600px) {
    #countryDropdown {
        width: 216px;
    }
}