/* ============================================================
   elanlar.az — Ortaq stil faylı
   index.php və elan-yerlesdir.php hər ikisi bunu istifadə edir
   ============================================================ */

/* ============================================
   DESIGN TOKENS — Klassik mavi + ağ (peşəkar)
   ============================================ */
:root {
    --bg: #F5F7FA; --bg-card: #FFFFFF; --bg-soft: #EBF0F5; --bg-deep: #DCE3EB;
    --ink: #0A1929; --ink-soft: #3D4F66; --ink-mute: #7B8794;
    --line: #E1E7ED; --line-soft: #F0F3F7;
    --accent: #0A66C2; --accent-soft: #E7F1FB; --accent-deep: #004182;
    --accent-2: #1877F2; --accent-3: #00A0DC;
    --vip: linear-gradient(135deg, #0A66C2 0%, #004182 100%); --vip-text: #FFFFFF;
    --green: #057642; --green-soft: #E4F5EC;
    --danger: #CC1016; --danger-soft: #FCE7E8;
    --shadow-sm: 0 1px 2px rgba(10,25,41,0.04);
    --shadow-md: 0 4px 16px rgba(10,25,41,0.08);
    --shadow-lg: 0 12px 32px rgba(10,25,41,0.12);
    --shadow-card-hover: 0 16px 40px rgba(10,25,41,0.15);

    --radius: 14px; --radius-sm: 10px; --radius-lg: 20px;
    --display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --bg: #1B1F23; --bg-card: #242A30; --bg-soft: #2D353E; --bg-deep: #38414A;
    --ink: #E8ECEF; --ink-soft: #B0B8C0; --ink-mute: #7B8794;
    --line: #38414A; --line-soft: #2D353E;
    --accent: #70B5F9; --accent-soft: #1B2837; --accent-deep: #A3CFFB;
    --accent-2: #4A9EFF; --accent-3: #66B8E8;
    --vip: linear-gradient(135deg, #70B5F9 0%, #4A9EFF 100%); --vip-text: #0A1929;
    --green: #4ADE80; --green-soft: #102818;
    --danger: #F87171; --danger-soft: #2A0F0F;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
    --shadow-card-hover: 0 16px 40px rgba(0,0,0,0.6);
}

/* ============================================
   BASE / RESET
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    font-family: var(--body); background: var(--bg); color: var(--ink);
    -webkit-font-smoothing: antialiased; line-height: 1.5;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: white; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   SCROLL PROGRESS BAR (index.php)
   ============================================ */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--accent); width: 0; z-index: 200;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent);
}

/* ============================================
   HEADER — paylaşılan
   ============================================ */
.header {
    position: sticky; top: 0;
    background: rgba(245,247,250,0.85);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
    transition: all 0.3s var(--ease);
}
[data-theme="dark"] .header { background: rgba(27,31,35,0.85); }
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; gap: 32px;
}

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: white;
    border-radius: 11px; display: grid; place-items: center;
    font-size: 19px; font-weight: 700; transform: rotate(-4deg);
    transition: transform 0.4s var(--ease-bounce);
    position: relative; overflow: hidden;
    box-shadow: 0 4px 14px rgba(10,102,194,0.35);
}
.logo-mark::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--accent-3) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.3s;
}
.logo:hover .logo-mark { transform: rotate(8deg) scale(1.1); }
.logo:hover .logo-mark::after { opacity: 0.4; }
.logo-dot { color: var(--accent); }

.nav { display: flex; gap: 4px; flex: 1; }
.nav-link {
    padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
    color: var(--ink-soft); transition: all 0.2s var(--ease);
    display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-link.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(10,102,194,0.3);
}

.badge-new {
    font-size: 10px; padding: 2px 7px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: white; border-radius: 999px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(10,102,194,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(10,102,194,0); }
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 999px;
    display: grid; place-items: center; color: var(--ink-soft);
    transition: all 0.2s var(--ease); position: relative;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); transform: scale(1.05); }

.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle svg { transition: transform 0.5s var(--ease-bounce); }
[data-theme="light"] .theme-toggle .sun { opacity: 1; transform: rotate(0); }
[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: rotate(90deg) scale(0); position: absolute; }
[data-theme="dark"] .theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(0); position: absolute; }
[data-theme="dark"] .theme-toggle .moon { opacity: 1; transform: rotate(0); }

.dot {
    position: absolute; top: 9px; right: 9px;
    width: 8px; height: 8px; background: var(--accent);
    border-radius: 50%; border: 2px solid var(--bg);
    animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink-soft); font-size: 14px;
    padding: 8px 14px; border-radius: 999px;
    transition: all 0.2s var(--ease);
}
.back-link:hover { background: var(--bg-soft); color: var(--ink); }

/* ============================================
   BUTTONS — paylaşılan
   ============================================ */
.btn {
    padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
    transition: all 0.2s var(--ease);
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid transparent;
}
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: white; padding: 10px 20px;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 14px rgba(10,102,194,0.3);
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s var(--ease);
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,102,194,0.5); }

.btn-secondary {
    background: var(--bg-soft); color: var(--ink);
    padding: 12px 24px;
}
.btn-secondary:hover { background: var(--bg-deep); }

/* ============================================
   HERO (index.php) — Booking.com tipli
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 50%, var(--accent-2) 100%);
    padding: 90px 0 160px;
    position: relative;
    min-height: 720px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.18) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.12) 0%, transparent 35%),
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0A1929 0%, var(--accent-deep) 50%, var(--accent) 100%);
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Floating elan kartları — kollaj kreativ düzülüş */
.hero-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.hero-float {
    position: absolute;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
    animation: floatY 7s ease-in-out infinite;
    transition: transform 0.4s var(--ease);
}
.hero-float img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}
.hero-float-label {
    padding: 10px 12px;
    background: white;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-float-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(10,102,194,0.2);
}

/* === SOL TƏRƏF — 7 kart === */
.hero-float-1 { /* yuxarı sol — ən kənarda, böyük */
    top: 70px; left: -20px;
    width: 200px;
    transform: rotate(-9deg);
    animation-delay: 0s;
    z-index: 4;
}
.hero-float-2 { /* yuxarı, mərkəzə yaxın — kiçik */
    top: 140px; left: 180px;
    width: 150px;
    transform: rotate(7deg);
    animation-delay: -3s;
    z-index: 2;
}
.hero-float-3 { /* mərkəz sol */
    top: 380px; left: 10px;
    width: 175px;
    transform: rotate(5deg);
    animation-delay: -1.5s;
    z-index: 3;
}
.hero-float-4 { /* aşağı sol — kənar */
    bottom: 100px; left: -10px;
    width: 165px;
    transform: rotate(-11deg);
    animation-delay: -4.5s;
    z-index: 4;
}
.hero-float-5 { /* aşağı sol — daxili */
    bottom: 140px; left: 210px;
    width: 145px;
    transform: rotate(8deg);
    animation-delay: -2s;
    z-index: 2;
}
.hero-float-6 { /* orta sol — uzaq */
    top: 270px; left: 300px;
    width: 130px;
    transform: rotate(-5deg);
    animation-delay: -5.5s;
    z-index: 1;
    opacity: 0.85;
}
.hero-float-7 { /* aşağı sol — uzaq, kiçik */
    bottom: 70px; left: 350px;
    width: 120px;
    transform: rotate(10deg);
    animation-delay: -6s;
    z-index: 1;
    opacity: 0.8;
}

/* === SAĞ TƏRƏF — 7 kart === */
.hero-float-8 { /* yuxarı sağ — kənar, böyük */
    top: 80px; right: -10px;
    width: 195px;
    transform: rotate(8deg);
    animation-delay: -2.5s;
    z-index: 4;
}
.hero-float-9 { /* mərkəz sağ */
    top: 360px; right: 0px;
    width: 200px;
    transform: rotate(-6deg);
    animation-delay: -4s;
    z-index: 3;
}
.hero-float-10 { /* yuxarı sağ — daxili */
    top: 160px; right: 200px;
    width: 150px;
    transform: rotate(-9deg);
    animation-delay: -1s;
    z-index: 2;
}
.hero-float-11 { /* aşağı sağ — kənar */
    bottom: 90px; right: -20px;
    width: 175px;
    transform: rotate(10deg);
    animation-delay: -3.5s;
    z-index: 4;
}
.hero-float-12 { /* aşağı sağ — daxili */
    bottom: 150px; right: 220px;
    width: 140px;
    transform: rotate(-7deg);
    animation-delay: -5s;
    z-index: 2;
}
.hero-float-13 { /* orta sağ — uzaq */
    top: 290px; right: 310px;
    width: 125px;
    transform: rotate(6deg);
    animation-delay: -6.5s;
    z-index: 1;
    opacity: 0.85;
}
.hero-float-14 { /* aşağı sağ — uzaq */
    bottom: 80px; right: 360px;
    width: 115px;
    transform: rotate(-11deg);
    animation-delay: -0.5s;
    z-index: 1;
    opacity: 0.8;
}

@keyframes floatY {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

/* Responsive — ekran kiçildikcə uzaq kartlar gizlənir */
@media (max-width: 1400px) {
    .hero-float-6, .hero-float-7, .hero-float-13, .hero-float-14 { display: none; }
}
@media (max-width: 1180px) {
    .hero-float-2, .hero-float-5, .hero-float-10, .hero-float-12 { display: none; }
}
@media (max-width: 900px) {
    .hero-floats { display: none; }
}

/* MOBİL — kartları yenidən kiçik ölçülərlə göstər */
@media (max-width: 640px) {
    .hero-floats {
        display: block;
        z-index: 0;
    }
    /* 6 kartı saxla (1,3,4,8,9,11), qalanları gizlə */
    .hero-float-2, .hero-float-5, .hero-float-6, .hero-float-7,
    .hero-float-10, .hero-float-12, .hero-float-13, .hero-float-14 {
        display: none !important;
    }

    /* Mobil pozisiyalar — yuxarıda 4, aşağıda 2 */
    .hero-float-1 {  /* yuxarı sol — kənar */
        top: 20px; left: -25px;
        width: 100px;
        transform: rotate(-10deg);
        z-index: 2;
        opacity: 0.95;
    }
    .hero-float-3 {  /* yuxarı sol — daxili */
        top: 100px; left: 50px;
        width: 88px;
        transform: rotate(8deg);
        z-index: 1;
        opacity: 0.85;
    }
    .hero-float-4 {  /* aşağı sol */
        bottom: 30px; left: -25px;
        width: 100px;
        transform: rotate(-8deg);
        z-index: 2;
        opacity: 0.9;
    }
    .hero-float-8 {  /* yuxarı sağ — kənar */
        top: 25px; right: -25px;
        width: 100px;
        transform: rotate(9deg);
        z-index: 2;
        opacity: 0.95;
    }
    .hero-float-9 {  /* yuxarı sağ — daxili */
        top: 110px; right: 55px;
        width: 88px;
        transform: rotate(-7deg);
        z-index: 1;
        opacity: 0.85;
    }
    .hero-float-11 {  /* aşağı sağ */
        bottom: 30px; right: -25px;
        width: 100px;
        transform: rotate(10deg);
        z-index: 2;
        opacity: 0.9;
    }

    /* Mobil kart məzmunu daha kompakt */
    .hero-float img { height: 70px; }
    .hero-float-label {
        padding: 5px 7px;
        font-size: 9px;
        gap: 4px;
    }
    .hero-float-label::before {
        width: 4px;
        height: 4px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 13px;
    color: white;
    margin-bottom: 24px;
    opacity: 0;
    animation: slideUp 0.6s var(--ease) forwards;
}
.hero-badge strong { color: white; margin: 0 2px; font-weight: 700; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(34px, 4.5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    opacity: 0;
    animation: slideUp 0.7s var(--ease) 0.1s forwards;
}

.hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 36px;
    font-weight: 400;
    opacity: 0;
    animation: slideUp 0.7s var(--ease) 0.2s forwards;
}
.hero-sub strong { color: white; font-weight: 700; }

/* SEARCH BOX — sadə, böyük, peşəkar */
.search-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0;
    animation: slideUp 0.7s var(--ease) 0.3s forwards;
}

.search-box {
    background: white;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.1);
    transition: box-shadow 0.3s var(--ease);
}
[data-theme="dark"] .search-box {
    background: var(--bg-card);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--line);
}
.search-box:focus-within {
    box-shadow: 0 16px 50px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.3);
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    min-width: 0;
}
.search-icon {
    color: var(--ink-mute);
    flex-shrink: 0;
}
.search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 16px 0;
    font-size: 16px;
    font-family: var(--body);
    font-weight: 500;
    color: var(--ink);
    outline: none;
    min-width: 0;
}
.search-input::placeholder {
    color: var(--ink-mute);
    font-weight: 400;
}

.search-clear {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: all 0.2s var(--ease);
}
.search-clear:hover { background: var(--bg-deep); color: var(--ink); }

.search-btn {
    background: var(--accent);
    color: white;
    padding: 0 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--body);
    letter-spacing: -0.005em;
    transition: all 0.2s var(--ease);
    min-height: 52px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.search-btn-icon { display: none; }
.search-btn:hover {
    background: var(--accent-deep);
}
.search-btn:active { transform: scale(0.98); }

/* AUTOCOMPLETE DROPDOWN */
.autocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s var(--ease), opacity 0.2s var(--ease);
    z-index: 200;
    text-align: left;
}
[data-theme="dark"] .autocomplete { background: var(--bg-card); border: 1px solid var(--line); }

.autocomplete.active {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
}

.autocomplete-list {
    max-height: 480px;
    overflow-y: auto;
    padding: 8px;
}
.autocomplete-list::-webkit-scrollbar { width: 6px; }
.autocomplete-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s var(--ease);
}
.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--accent-soft);
}
.autocomplete-cat {
    background: var(--accent-soft);
    margin-bottom: 4px;
}
.autocomplete-cat:hover { background: var(--bg-deep); }
.autocomplete-cat-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.autocomplete-arrow {
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s var(--ease);
}
.autocomplete-cat:hover .autocomplete-arrow {
    transform: translateX(3px);
}
.autocomplete-thumb {
    width: 48px; height: 48px;
    border-radius: 8px;
    background: var(--bg-soft);
    flex-shrink: 0;
    overflow: hidden;
}
.autocomplete-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.autocomplete-body {
    flex: 1;
    min-width: 0;
}
.autocomplete-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.autocomplete-title mark {
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-weight: 700;
    padding: 0;
}
.autocomplete-meta {
    font-size: 12px;
    color: var(--ink-mute);
    display: flex;
    gap: 8px;
}
.autocomplete-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.autocomplete-header {
    padding: 10px 12px 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.autocomplete-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--ink-mute);
    font-size: 14px;
}

.autocomplete-see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s var(--ease);
    border-radius: 0 0 12px 12px;
}
.autocomplete-see-all:hover {
    background: var(--accent-soft);
}
.autocomplete-see-all strong {
    font-weight: 700;
    color: var(--accent-deep);
}
.autocomplete-see-all svg {
    transition: transform 0.2s var(--ease);
}
.autocomplete-see-all:hover svg {
    transform: translateX(3px);
}

/* SKELETON LOADING */
.skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}
.skeleton {
    background: linear-gradient(90deg, var(--bg-soft) 0%, var(--bg-deep) 50%, var(--bg-soft) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-thumb { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; }
.skeleton-line { height: 12px; margin-bottom: 6px; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-body { flex: 1; }

/* QUICK TAGS */
.quick-tags {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: slideUp 0.7s var(--ease) 0.4s forwards;
}
.quick-tags-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-right: 4px;
    font-weight: 500;
}
.quick-tag {
    font-size: 13px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    color: white;
    font-weight: 500;
    transition: all 0.2s var(--ease);
    backdrop-filter: blur(10px);
    font-family: var(--body);
}
.quick-tag:hover {
    background: white;
    color: var(--accent-deep);
    border-color: white;
    transform: translateY(-1px);
}

/* ============================================
   CATEGORIES (index.php)
   ============================================ */
.categories {
    padding: 20px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--bg-card);
    position: sticky; top: 72px; z-index: 50;
    backdrop-filter: blur(20px);
}
.cat-scroll {
    display: flex; gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Mouse drag-scroll üçün */
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    user-select: none;
}
.cat-scroll.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}
.cat-scroll.dragging .cat-pill {
    pointer-events: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
    padding: 10px 18px; border: 1px solid var(--line);
    border-radius: 999px; font-size: 14px; font-weight: 500;
    white-space: nowrap; transition: all 0.25s var(--ease);
    color: var(--ink-soft);
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card);
}
.cat-pill:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.cat-pill.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border-color: transparent; color: white;
    box-shadow: 0 4px 14px rgba(10,102,194,0.35);
}
.cat-icon {
    font-size: 15px;
    line-height: 1;
}
.cat-count { font-size: 12px; opacity: 0.6; font-variant-numeric: tabular-nums; }

/* Kart - sub badge */
.card-sub {
    color: var(--ink-mute);
    font-weight: 500;
    margin-left: 2px;
}

/* ============================================
   LISTINGS (index.php)
   ============================================ */
.listings-section { padding: 56px 0 96px; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 32px; gap: 24px;
}
.section-title {
    font-family: var(--display); font-size: 40px; font-weight: 500;
    letter-spacing: -0.025em; line-height: 1.05;
}
.section-sub {
    font-size: 14px; color: var(--ink-soft); margin-top: 8px;
    display: inline-flex; align-items: center; gap: 8px;
}

.toolbar { display: flex; align-items: center; gap: 12px; }
.view-toggle {
    display: flex; gap: 4px; background: var(--bg-soft);
    padding: 4px; border-radius: 999px;
}
.view-btn {
    padding: 8px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 500; color: var(--ink-soft);
    transition: all 0.2s var(--ease);
    display: inline-flex; align-items: center; gap: 6px;
}
.view-btn.active {
    background: var(--bg-card); color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.sort-select {
    border: 1px solid var(--line); background: var(--bg-card);
    padding: 10px 16px; border-radius: 999px;
    font-size: 14px; font-family: inherit; color: var(--ink);
    cursor: pointer; transition: border-color 0.2s var(--ease);
}
.sort-select:hover { border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* LIST VIEW — horizontal kartlar */
.grid.view-list {
    grid-template-columns: 1fr;
    gap: 12px;
}
.grid.view-list .card {
    flex-direction: row;
    max-height: 180px;
}
.grid.view-list .card-img {
    aspect-ratio: auto;
    width: 240px;
    height: 100%;
    flex-shrink: 0;
}
.grid.view-list .card-body {
    flex: 1;
    padding: 18px 24px;
}
.grid.view-list .card-title {
    font-size: 18px;
    -webkit-line-clamp: 1;
}
.grid.view-list .card:hover {
    transform: translateY(-2px);
}
@media (max-width: 700px) {
    .grid.view-list .card { flex-direction: column; max-height: none; }
    .grid.view-list .card-img { width: 100%; aspect-ratio: 4/3; }
}

/* CARD */
.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s var(--ease);
}
.card-link:hover {
    transform: translateY(-2px);
}
.card-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: var(--radius);
}

.card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.4s var(--ease);
    display: flex; flex-direction: column;
    position: relative;
    opacity: 0; animation: cardIn 0.6s var(--ease) forwards;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.card.hidden { display: none; }
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--ink);
}

.card-img {
    position: relative; aspect-ratio: 4/3;
    overflow: hidden; background: var(--bg-soft);
}
.card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.card:hover .card-img img { transform: scale(1.08); }
.card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 40%);
    opacity: 0; transition: opacity 0.3s var(--ease);
}
.card:hover .card-img::after { opacity: 1; }

.badge {
    position: absolute; top: 12px;
    padding: 5px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    backdrop-filter: blur(10px);
    display: inline-flex; align-items: center; gap: 4px;
}
.badge-vip {
    left: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(10,102,194,0.4);
}

.views-badge {
    position: absolute; bottom: 12px; left: 12px;
    padding: 5px 11px;
    background: rgba(0,0,0,0.6); color: white;
    backdrop-filter: blur(10px);
    border-radius: 999px; font-size: 11px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
    opacity: 0; transform: translateY(8px);
    transition: all 0.3s var(--ease);
}
.card:hover .views-badge { opacity: 1; transform: translateY(0); }

.fav-btn {
    position: absolute; top: 12px; right: 12px;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.95); border-radius: 50%;
    display: grid; place-items: center; color: var(--ink);
    transition: all 0.25s var(--ease);
    backdrop-filter: blur(10px); z-index: 2;
}
[data-theme="dark"] .fav-btn {
    background: rgba(26,26,22,0.9); color: var(--ink);
}
.fav-btn:hover { transform: scale(1.15); color: var(--accent); }
.fav-btn.active { color: var(--accent); animation: heartBeat 0.6s var(--ease-bounce); }
.fav-btn.active svg { fill: var(--accent); }

@keyframes heartBeat {
    0%,100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.15); }
}

.card-body {
    padding: 18px 20px 20px;
    display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.card-title {
    font-family: var(--display); font-size: 19px; font-weight: 500;
    line-height: 1.25; letter-spacing: -0.015em; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; transition: color 0.2s var(--ease);
}
.card:hover .card-title { color: var(--accent); }

.card-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.attr {
    font-size: 11px; padding: 4px 9px;
    background: var(--bg-soft); border-radius: 6px;
    color: var(--ink-soft); font-weight: 500;
    transition: all 0.2s var(--ease);
}
.card:hover .attr { background: var(--accent-soft); color: var(--accent-deep); }

.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}
.price {
    font-family: var(--display); font-size: 22px; font-weight: 600;
    letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.price-currency {
    font-size: 13px; color: var(--ink-mute);
    font-weight: 500; margin-left: 2px;
}
.card-meta {
    font-size: 12px; color: var(--ink-mute);
    text-align: right; line-height: 1.4;
}

.empty {
    grid-column: 1 / -1; padding: 80px 24px;
    text-align: center; color: var(--ink-mute);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }

/* ============================================
   FEATURES / TRUST (index.php)
   ============================================ */
.features {
    margin: 64px 0 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: ''; position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.feature:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.feature:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    margin-bottom: 16px;
    background: var(--accent-soft);
    color: var(--accent);
}
.feature:nth-child(2) .feature-icon { background: rgba(0,160,220,0.1); color: var(--accent-3); }
.feature:nth-child(3) .feature-icon { background: rgba(0,65,130,0.1); color: var(--accent-deep); }
.feature:nth-child(4) .feature-icon { background: rgba(5,118,66,0.1); color: var(--green); }
.feature h4 {
    font-family: var(--display);
    font-size: 17px; font-weight: 600;
    letter-spacing: -0.01em; margin-bottom: 6px;
}
.feature p {
    font-size: 13px; color: var(--ink-soft); line-height: 1.5;
}

/* ============================================
   CTA (index.php)
   ============================================ */
.cta {
    background: linear-gradient(135deg, #0A1929 0%, #103A5C 50%, #004182 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 56px 48px; margin: 48px 0;
    display: grid; grid-template-columns: 2fr 1fr;
    align-items: center; gap: 32px;
    position: relative; overflow: hidden;
}
.cta::before {
    content: ''; position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.4; border-radius: 50%; pointer-events: none;
}
.cta::after {
    content: ''; position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%);
    opacity: 0.3; border-radius: 50%; pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta h3 {
    font-family: var(--display); font-size: 36px; font-weight: 500;
    letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px;
    color: #FFFFFF;
}
.cta p { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 480px; }
.cta-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: white;
    padding: 14px 28px; border-radius: 999px;
    font-size: 15px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.3s var(--ease);
    position: relative; z-index: 1; justify-self: end;
    box-shadow: 0 10px 30px rgba(10,102,194,0.4);
}
.cta-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 40px rgba(10,102,194,0.6);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(10,102,194,0.4);
    opacity: 0; transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s var(--ease); z-index: 90;
}
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { transform: translateY(-4px) scale(1.1); box-shadow: 0 15px 40px rgba(10,102,194,0.6); }

/* ============================================================
   ELAN-YERLESDIR.PHP — özəl stillər
   ============================================================ */

/* Konteyner dar - form üçün */
.form-container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.page-hero {
    padding: 48px 0 32px;
    text-align: center;
}
.ai-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(0,160,220,0.1));
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 12px; font-weight: 600;
    color: var(--accent-deep);
    margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.ai-badge svg { width: 14px; height: 14px; }
.page-hero h1 {
    font-family: var(--display);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05; letter-spacing: -0.03em;
    font-weight: 500; margin-bottom: 16px;
}
.page-hero h1 em {
    font-style: italic; font-weight: 500;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    background-size: 200% 200%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
}
.page-sub {
    font-size: 17px; color: var(--ink-soft);
    max-width: 540px; margin: 0 auto;
}

/* STEPS */
.steps {
    display: flex; justify-content: center; gap: 8px;
    margin: 32px 0 24px;
}
.step {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--ink-mute);
    font-weight: 500;
}
.step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: grid; place-items: center;
    font-size: 12px; font-weight: 600;
    transition: all 0.3s var(--ease);
}
.step.active .step-num {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white; box-shadow: 0 4px 12px rgba(10,102,194,0.3);
}
.step.done .step-num {
    background: var(--green); color: white;
}
.step.active { color: var(--ink); }
.step.done { color: var(--green); }
.step-divider { width: 32px; height: 1px; background: var(--line); }

/* API KEY WARNING */
.api-warning {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(245,158,11,0.08));
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex; gap: 12px;
    align-items: flex-start;
}
.api-warning-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--danger); color: white;
    border-radius: 10px;
    display: grid; place-items: center;
}
.api-warning-body h4 {
    font-size: 15px; font-weight: 600; margin-bottom: 4px;
    color: var(--danger);
}
.api-warning-body p {
    font-size: 13px; color: var(--ink-soft); line-height: 1.6;
}
.api-warning-body code {
    background: var(--bg-soft); padding: 2px 6px;
    border-radius: 4px; font-size: 12px;
    font-family: ui-monospace, monospace;
}

/* UPLOAD ZONE */
.upload-section { margin-bottom: 32px; }
.dropzone {
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    background: var(--bg-card);
    transition: all 0.3s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.dropzone:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.dropzone.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: scale(1.01);
}
.dropzone-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border-radius: 20px;
    display: grid; place-items: center;
    margin: 0 auto 16px;
    box-shadow: 0 10px 30px rgba(10,102,194,0.3);
    transition: transform 0.4s var(--ease-bounce);
}
.dropzone:hover .dropzone-icon { transform: scale(1.1) rotate(-4deg); }
.dropzone h3 {
    font-family: var(--display);
    font-size: 22px; font-weight: 500;
    letter-spacing: -0.01em; margin-bottom: 8px;
}
.dropzone p {
    font-size: 14px; color: var(--ink-soft);
    margin-bottom: 16px;
}
.dropzone-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 999px;
    background: var(--ink); color: var(--bg-card);
    font-size: 14px; font-weight: 500;
    transition: all 0.2s var(--ease);
}
.dropzone-btn:hover { transform: translateY(-2px); }
.dropzone-hint {
    font-size: 12px; color: var(--ink-mute);
    margin-top: 12px;
}
#file-input { display: none; }

/* PREVIEW GRID */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    animation: previewIn 0.4s var(--ease);
}
@keyframes previewIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.preview-item img {
    width: 100%; height: 100%; object-fit: cover;
}
.preview-remove {
    position: absolute; top: 6px; right: 6px;
    width: 26px; height: 26px;
    background: rgba(0,0,0,0.7); color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}
.preview-remove:hover { background: var(--danger); transform: scale(1.1); }

/* ANALYZE BUTTON */
.analyze-section {
    text-align: center;
    margin: 24px 0;
}
.btn-analyze {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border-radius: 999px;
    font-size: 16px; font-weight: 600;
    box-shadow: 0 10px 30px rgba(10,102,194,0.4);
    transition: all 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.btn-analyze:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(10,102,194,0.5);
}
.btn-analyze:disabled {
    opacity: 0.5; cursor: not-allowed;
}
.btn-analyze::before {
    content: ''; position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s var(--ease);
}
.btn-analyze:hover:not(:disabled)::before { left: 100%; }

/* ANALYZING ANIMATION */
/* ============================================
   ANALYZING — Dinamik AI scanning animasyonu
   ============================================ */
.analyzing {
    display: none;
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}
.analyzing.active { display: block; animation: previewIn 0.4s var(--ease); }

/* Arxa fon mavi qradient nəbz */
.analyzing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(10, 102, 194, 0.08), transparent 60%);
    animation: bgPulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bgPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.1); }
}

/* === Mərkəzi scan box (orb-un yeni versiyası) === */
.ai-orb {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    position: relative;
    /* artıq conic deyil */
    background: transparent;
    animation: none;
    border-radius: 0;
}

/* İç halqa - mavi pulse */
.ai-orb::before {
    content: '';
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 102, 194, 0.4), transparent 70%);
    animation: corePulse 1.5s ease-in-out infinite;
    z-index: 1;
}
@keyframes corePulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50%      { transform: scale(1.1); opacity: 1; }
}

/* Mərkəzi nöqtə - AI gözü */
.ai-orb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    box-shadow: 0 0 24px var(--accent), 0 0 48px rgba(10, 102, 194, 0.4);
    animation: eyePulse 1.5s ease-in-out infinite;
    z-index: 5;
}
@keyframes eyePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.3); }
}

/* Fırlanan halqa - xarici */
.ai-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent-2);
    animation: orbSpin 1.8s linear infinite;
    z-index: 2;
}
.ai-orb-ring-2 {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--accent-3);
    border-left-color: var(--accent);
    animation: orbSpin 2.6s linear infinite reverse;
    z-index: 2;
}
.ai-orb-ring-3 {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px dashed rgba(10, 102, 194, 0.35);
    animation: orbSpin 8s linear infinite;
    z-index: 1;
}
@keyframes orbSpin {
    to { transform: rotate(360deg); }
}

/* Scan line - üfüqi xəttin yuxarı-aşağı hərəkəti */
.ai-orb-scan {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
}
.ai-orb-scan::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-3), transparent);
    box-shadow: 0 0 12px var(--accent-3);
    animation: scanLine 1.8s ease-in-out infinite;
    top: 0;
}
@keyframes scanLine {
    0%, 100% { top: 5%; opacity: 0; }
    10%      { opacity: 1; }
    50%      { top: 95%; opacity: 1; }
    90%      { opacity: 1; }
}

/* Uçuşan particle nöqtələri */
.ai-orb-particles {
    position: absolute;
    inset: -30px;
    pointer-events: none;
    z-index: 4;
}
.ai-orb-particles::before,
.ai-orb-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow:
        0 0 8px var(--accent),
        40px -20px 0 var(--accent-2), 0 0 8px var(--accent-2),
        -30px 30px 0 var(--accent-3), 0 0 8px var(--accent-3),
        50px 40px 0 var(--accent);
}
.ai-orb-particles::before {
    top: 20%; left: 10%;
    animation: floatParticle 3s ease-in-out infinite;
}
.ai-orb-particles::after {
    top: 70%; left: 70%;
    animation: floatParticle 3.5s ease-in-out infinite reverse;
    animation-delay: -1s;
}
@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25%      { transform: translate(15px, -10px) scale(1.2); opacity: 1; }
    50%      { transform: translate(-10px, -20px) scale(0.8); opacity: 0.4; }
    75%      { transform: translate(-20px, 5px) scale(1.1); opacity: 1; }
}

/* === Mətn === */
.analyzing h3 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    color: var(--ink);
    position: relative;
    z-index: 1;
}

/* Dinamik mətn — sürətli dəyişir, məsajlar */
.analyzing-message {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    min-height: 22px;
    margin-bottom: 24px;
    animation: msgFade 0.4s ease;
    position: relative;
    z-index: 1;
}
@keyframes msgFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.analyzing p {
    font-size: 14px;
    color: var(--ink-soft);
    position: relative;
    z-index: 1;
}

/* === Adımlar === */
.analyzing-steps {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.analyzing-step {
    font-size: 13px;
    color: var(--ink-mute);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: all 0.4s var(--ease);
    padding: 6px 14px;
    border-radius: 100px;
    background: transparent;
}
.analyzing-step.active {
    opacity: 1;
    color: var(--accent);
    background: rgba(10, 102, 194, 0.08);
    font-weight: 600;
}
.analyzing-step.done {
    opacity: 1;
    color: var(--green);
}
.analyzing-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink-mute);
    transition: all 0.3s;
}
.analyzing-step.active .analyzing-step-dot {
    background: var(--accent);
    animation: stepPulse 1s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(10, 102, 194, 0.5);
}
.analyzing-step.done .analyzing-step-dot {
    background: var(--green);
    box-shadow: 0 0 0 2px rgba(5, 118, 66, 0.2);
}
@keyframes stepPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(10, 102, 194, 0.5); }
    50%      { transform: scale(1.4); box-shadow: 0 0 0 8px rgba(10, 102, 194, 0); }
}

/* FORM */
.form-section {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin: 24px 0;
}
.form-section.active { display: block; animation: previewIn 0.5s var(--ease); }

.ai-detected {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(0,160,220,0.05));
    border: 1px solid var(--accent);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13px; color: var(--accent-deep);
    font-weight: 500;
}
.ai-detected svg { width: 16px; height: 16px; flex-shrink: 0; }
.ai-detected .confidence {
    margin-left: auto;
    padding: 3px 9px;
    background: var(--accent);
    color: white;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 13px; font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px; font-family: inherit;
    color: var(--ink); background: var(--bg-card);
    outline: none;
    transition: all 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 80px; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.attrs-input {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    min-height: 50px;
    cursor: text;
    transition: all 0.2s var(--ease);
}
.attrs-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.attr-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: 999px;
    font-size: 13px; font-weight: 500;
    animation: previewIn 0.3s var(--ease);
}
.attr-tag-remove {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.attr-tag-remove:hover { opacity: 1; }
.attrs-input input {
    flex: 1; min-width: 100px;
    border: none; outline: none;
    background: none;
    padding: 4px;
    font-size: 14px; font-family: inherit;
    color: var(--ink);
}

/* ============================================
   POST-LISTING — DİNAMİK ATRİBUT FORM
   ============================================ */
.dynamic-attrs {
    margin: 24px 0;
}
.dyn-attrs-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.dyn-attrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 16px;
}
.dyn-attrs-grid .field.dyn-field {
    margin: 0;
}
.dyn-attrs-grid .field.dyn-field label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--ink-mute);
    margin-bottom: 6px;
    display: block;
}
.dyn-attrs-grid .field.dyn-field input[type="text"],
.dyn-attrs-grid .field.dyn-field input[type="number"],
.dyn-attrs-grid .field.dyn-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.dyn-attrs-grid .field.dyn-field input:focus,
.dyn-attrs-grid .field.dyn-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}
.dyn-attrs-grid .field.dyn-field select:disabled {
    background: var(--bg-soft);
    color: var(--ink-mute);
    cursor: not-allowed;
}

/* Multiselect checkbox group */
.dyn-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    max-height: 160px;
    overflow-y: auto;
}
.dyn-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-soft);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.dyn-check:hover { background: rgba(10, 102, 194, 0.08); }
.dyn-check input[type="checkbox"] { margin: 0; cursor: pointer; }
.dyn-check:has(input:checked) {
    background: rgba(10, 102, 194, 0.12);
    color: var(--accent);
    font-weight: 600;
}

/* Toggle (boolean) */
.dyn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s, border-color 0.15s;
}
.dyn-toggle:has(input:checked) {
    background: rgba(10, 102, 194, 0.08);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}
.dyn-toggle input[type="checkbox"] { margin: 0; cursor: pointer; }

/* Required mark */
.req {
    color: #d93025;
    font-weight: 700;
    margin-left: 2px;
}

/* ============================================
   POST-LISTING — DEMO REJİMİ KARTI
   AI tapdığını gözəl satış kartı kimi göstər
   ============================================ */

.demo-preview {
    /* form-section-dan inherit edir */
}

.demo-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff4e6, #ffe8cc);
    border: 1px solid #ffa94d;
    border-radius: 12px;
    margin-bottom: 24px;
    color: #b06800;
    font-size: 13.5px;
    line-height: 1.5;
}
.demo-banner strong { font-weight: 700; }
[data-theme="dark"] .demo-banner {
    background: linear-gradient(135deg, rgba(255, 169, 77, 0.15), rgba(255, 169, 77, 0.08));
    border-color: rgba(255, 169, 77, 0.4);
    color: #ffd8a8;
}

/* === AI RESULT CARD === */
.ai-result-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}
[data-theme="dark"] .ai-result-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.ai-result-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(10, 102, 194, 0.1);
    color: var(--accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}
.ai-result-cat span:first-child { font-size: 16px; }
.ai-result-confidence {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 13px;
    font-weight: 500;
}
.ai-result-confidence strong { font-weight: 700; }

.ai-result-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 18px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* === EDİTABLE FIELDS === */

/* Editable wrap (başlıq) */
.editable-field {
    position: relative;
    margin-bottom: 18px;
}
.editable-field .edit-hint {
    position: absolute;
    top: -8px;
    right: 8px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.editable-field:hover .edit-hint,
.editable-field:focus-within .edit-hint {
    opacity: 1;
}

/* contenteditable elementlər */
[contenteditable="true"] {
    outline: none;
    border-radius: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
    transition: background 0.15s, box-shadow 0.15s;
    cursor: text;
    position: relative;
}
[contenteditable="true"]:hover {
    background: rgba(10, 102, 194, 0.05);
    box-shadow: inset 0 0 0 1px rgba(10, 102, 194, 0.2);
}
[contenteditable="true"]:focus {
    background: rgba(10, 102, 194, 0.08);
    box-shadow: inset 0 0 0 2px var(--accent);
}
[contenteditable="true"]:empty::before {
    content: attr(data-placeholder);
    color: var(--ink-mute);
    opacity: 0.6;
}

/* Editable meta (marka, model) */
.editable-meta .ai-meta-value[contenteditable] {
    display: inline-block;
    min-width: 30px;
    min-height: 22px;
}

/* Vəziyyət select-i */
.ai-meta-select {
    width: 100%;
    padding: 5px 10px;
    margin: -1px -2px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.ai-meta-select:hover {
    background: rgba(10, 102, 194, 0.05);
    border-color: rgba(10, 102, 194, 0.2);
}
.ai-meta-select:focus {
    outline: none;
    background: rgba(10, 102, 194, 0.08);
    border-color: var(--accent);
}

/* Qiymət input */
.ai-price-edit-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.ai-price-input {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 4px 10px;
    width: 160px;
    text-align: right;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
    /* spinner gizlət */
    -moz-appearance: textfield;
}
.ai-price-input::-webkit-outer-spin-button,
.ai-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ai-price-input:hover {
    background: rgba(10, 102, 194, 0.06);
    border-color: rgba(10, 102, 194, 0.2);
}
.ai-price-input:focus {
    outline: none;
    background: rgba(10, 102, 194, 0.1);
    border-color: var(--accent);
}
.ai-price-currency {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

/* Təsvir textarea */
.ai-description-edit {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.7;
    color: var(--ink);
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ai-description-edit:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

/* Editable chip (atribut) */
.ai-attr-chip.editable-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-right: 6px;
}
.chip-remove {
    background: none;
    border: none;
    color: var(--ink-mute);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 700;
    transition: background 0.15s, color 0.15s;
}
.chip-remove:hover {
    background: #fee;
    color: #d93025;
}

/* Editable points list */
.editable-point {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 12px !important;
}
.editable-point > span:first-child {
    flex: 1;
}
.point-remove {
    flex-shrink: 0;
    width: 22px !important;
    height: 22px !important;
}

/* "Yeni əlavə et" input */
.ai-attr-add {
    margin-top: 10px;
}
.ai-attr-add input {
    width: 100%;
    padding: 9px 14px;
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 10px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color 0.15s, background 0.15s;
}
.ai-attr-add input:hover {
    border-color: rgba(10, 102, 194, 0.4);
    border-style: solid;
}
.ai-attr-add input:focus {
    outline: none;
    border-color: var(--accent);
    border-style: solid;
    background: rgba(10, 102, 194, 0.04);
}
.ai-attr-add input::placeholder {
    color: var(--ink-mute);
    opacity: 0.7;
}

/* Section hint */
.section-hint {
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-mute);
    text-transform: none;
    letter-spacing: 0;
    margin-left: auto;
    opacity: 0.7;
}
.ai-section-title {
    display: flex !important;
    align-items: center;
}

.ai-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-soft);
    border-radius: 12px;
    margin-bottom: 18px;
}
.ai-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ai-meta-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink-mute);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.ai-meta-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.ai-price-box {
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.08), rgba(10, 102, 194, 0.03));
    border: 1px solid rgba(10, 102, 194, 0.2);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.ai-price-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.ai-price-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.ai-price-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}
.ai-price-range {
    font-size: 12.5px;
    color: var(--ink-mute);
}

/* AI sections */
.ai-attrs-section,
.ai-description-section,
.ai-points-section {
    margin-bottom: 22px;
}
.ai-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 12px 0;
}

/* Atribut chip-ləri */
.ai-attrs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-attr-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: var(--bg-soft);
    color: var(--ink);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--line);
}

/* Təsvir */
.ai-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg-soft);
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

/* Selling points */
.ai-points-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.ai-points-list li {
    position: relative;
    padding: 10px 14px 10px 36px;
    background: var(--bg-soft);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
}
.ai-points-list li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Demo actions */
.demo-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.btn-disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
    position: relative;
}
.btn-disabled:hover {
    transform: none !important;
    background: var(--accent) !important;
}

@media (max-width: 640px) {
    .ai-result-card { padding: 18px; }
    .ai-result-title { font-size: 18px; }
    .ai-price-value { font-size: 22px; }
    .ai-meta-row { grid-template-columns: 1fr 1fr; }
    .demo-actions { flex-direction: column; }
    .demo-actions .btn { width: 100%; }
}

.form-actions {
    display: flex; gap: 12px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
    justify-content: flex-end;
}

/* SUCCESS */
.success-msg {
    display: none;
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, var(--green-soft), rgba(10,102,194,0.05));
    border: 1px solid var(--green);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}
.success-msg.active { display: block; animation: previewIn 0.5s var(--ease); }
.success-icon {
    width: 64px; height: 64px;
    background: var(--green); color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 16px;
    box-shadow: 0 10px 30px rgba(16,185,129,0.3);
}
.success-msg h3 {
    font-family: var(--display);
    font-size: 24px; font-weight: 500;
    margin-bottom: 8px;
}
.success-msg p { color: var(--ink-soft); font-size: 15px; }

/* ERROR */
.error-msg {
    display: none;
    padding: 14px 18px;
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    border-radius: 12px;
    color: var(--danger);
    font-size: 14px;
    margin: 16px 0;
}
.error-msg.active { display: block; animation: previewIn 0.3s var(--ease); }

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================================
   RESPONSIVE — Mobil və tablet optimallaşdırması
   ============================================================ */

/* === TABLET (≤980px) === */
@media (max-width: 980px) {
    .container, .form-container { padding: 0 16px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .nav { display: none; }
    .cta { grid-template-columns: 1fr; padding: 36px 24px; }
    .cta-btn { justify-self: start; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .search-box { grid-template-columns: 1fr 1fr; }
    .search-btn { grid-column: 1 / -1; }

    /* Header sıxış üçün */
    .header-inner { gap: 8px; }
    .header-actions { gap: 4px; }
}

/* === MOBİL (≤640px) === */
@media (max-width: 640px) {
    /* Grid 2×2 - 1 yox */
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* Header daha kompakt */
    .container, .form-container { padding: 0 12px; }
    .header-inner { height: 60px; gap: 6px; }

    /* Logo mətnini kiçilt, mobildə sadəcə ikon qala bilər lazım gəlsə */
    .logo { font-size: 17px; gap: 6px; }
    .logo-mark { width: 32px; height: 32px; font-size: 17px; border-radius: 9px; }

    /* Header düymələri kompakt */
    .icon-btn { width: 36px; height: 36px; }
    .icon-btn svg { width: 18px; height: 18px; }

    /* "Daxil ol" mətni gizlət, ya da kompakt */
    .login-trigger { padding: 7px 12px; font-size: 13px; }

    /* "Elan yerləşdir" - mətni gizlət, yalnız + ikonu qalsın */
    .btn-primary {
        padding: 9px 12px;
        font-size: 13px;
    }
    .btn-primary .btn-text-full { display: none; }

    /* User menu kompakt */
    .user-menu { padding: 4px 10px 4px 4px; }
    .user-avatar { width: 24px; height: 24px; }
    .user-phone { font-size: 12px; }

    /* HERO mobil — qısa, axtarış aşağıda, kartlar üst-altda */
    .hero { padding: 200px 0 140px; min-height: 600px; overflow: hidden; }
    .hero h1 { font-size: 26px; line-height: 1.2; }
    .hero-sub { font-size: 14px; margin-bottom: 24px; }
    .hero-badge { font-size: 11px; padding: 5px 10px; margin-bottom: 16px; }

    /* Search box mobil */
    .search-wrap { max-width: 100%; }
    .search-box {
        flex-direction: row;
        padding: 5px;
        border-radius: 10px;
    }
    .search-field { padding: 0 10px; gap: 8px; }
    .search-input { padding: 12px 0; font-size: 15px; }
    .search-icon { width: 17px; height: 17px; }
    .search-btn {
        padding: 0;
        font-size: 13px;
        min-height: 44px;
        width: 44px;
        flex-shrink: 0;
    }
    .search-btn-text { display: none; }
    .search-btn-icon { display: inline-block; }
    .search-clear { width: 24px; height: 24px; }

    /* Quick tags mobil */
    .quick-tags {
        margin-top: 14px;
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .quick-tags::-webkit-scrollbar { display: none; }
    .quick-tags-label { display: none; }
    .quick-tag {
        font-size: 12px;
        padding: 5px 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Hero float kartları onsuz da gizli (900px-də) */

    /* Categories pill bar */
    .categories { padding: 14px 0; top: 60px; }
    .cat-pill { padding: 8px 14px; font-size: 13px; }
    .cat-count { font-size: 11px; }

    /* Section başlığı */
    .listings-section { padding: 32px 0 56px; }
    .section-title { font-size: 26px; }
    .section-sub { font-size: 13px; }
    .section-head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 20px; }

    /* Toolbar */
    .toolbar { width: 100%; justify-content: space-between; gap: 8px; }
    .view-toggle { flex-shrink: 0; }
    .view-btn { padding: 7px 10px; font-size: 12px; }
    .view-btn span { display: none; }  /* sadəcə ikonlar qalsın */
    .sort-select { padding: 8px 12px; font-size: 13px; flex: 1; min-width: 0; }

    /* Card mobil - kompakt */
    .card-img { aspect-ratio: 1; }
    .card-body { padding: 12px 14px 14px; gap: 8px; }
    .card-title { font-size: 15px; line-height: 1.3; }
    .card-attrs { gap: 4px; }
    .attr { font-size: 10px; padding: 3px 7px; }
    .price { font-size: 17px; }
    .price-currency { font-size: 11px; }
    .card-meta { font-size: 11px; }
    .card-footer { padding-top: 10px; }
    .fav-btn { width: 32px; height: 32px; }
    .fav-btn svg { width: 15px; height: 15px; }
    .badge { font-size: 9px; padding: 4px 8px; top: 8px; }
    .badge-vip { left: 8px; }

    /* CTA mobil */
    .cta { padding: 32px 20px; margin: 32px 0; border-radius: 16px; }
    .cta h3 { font-size: 24px; }
    .cta p { font-size: 14px; }
    .cta-btn { padding: 12px 22px; font-size: 14px; }

    /* Features mobil 2×2 (1×4 yox) */
    .features { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 40px 0 24px; }
    .feature { padding: 16px 14px; }
    .feature-icon { width: 36px; height: 36px; margin-bottom: 10px; }
    .feature-icon svg { width: 18px; height: 18px; }
    .feature h4 { font-size: 14px; margin-bottom: 4px; }
    .feature p { font-size: 12px; line-height: 1.4; }

    /* Form (post-listing) mobil */
    .page-hero { padding: 32px 0 20px; }
    .page-hero h1 { font-size: 26px; }
    .page-sub { font-size: 14px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-section { padding: 18px; border-radius: 14px; }
    .form-actions { flex-direction: column-reverse; gap: 8px; }
    .form-actions .btn { width: 100%; justify-content: center; }
    .dropzone { padding: 32px 16px; }
    .dropzone h3 { font-size: 18px; }
    .dropzone-icon { width: 60px; height: 60px; }
    .preview-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    /* Steps mobil */
    .steps { margin: 20px 0 16px; gap: 4px; flex-wrap: wrap; justify-content: center; }
    .step { font-size: 11px; gap: 5px; }
    .step-num { width: 22px; height: 22px; font-size: 11px; }
    .step-divider { width: 16px; }

    /* Autocomplete dropdown mobil */
    .autocomplete-thumb { width: 40px; height: 40px; }
    .autocomplete-title { font-size: 13px; }
    .autocomplete-meta { font-size: 11px; gap: 6px; }
    .autocomplete-price { font-size: 13px; }
    .autocomplete-item { padding: 8px 10px; gap: 10px; }
    .autocomplete-cat-icon { width: 34px; height: 34px; }

    /* Back to top mobil */
    .back-top { bottom: 80px; right: 16px; width: 42px; height: 42px; }

    /* Listing card list view - mobildə də işləsin */
    .grid.view-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .grid.view-list .card {
        flex-direction: row;
        max-height: none;
    }
    .grid.view-list .card-img {
        width: 120px;
        height: auto;
        aspect-ratio: 1;
        flex-shrink: 0;
    }
    .grid.view-list .card-body {
        padding: 10px 12px;
        flex: 1;
        min-width: 0;
    }
    .grid.view-list .card-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
        line-height: 1.25;
    }
    .grid.view-list .card-attrs { display: none; }
    .grid.view-list .price { font-size: 16px; }
    .grid.view-list .badge { font-size: 8px; padding: 3px 6px; }
}

/* === ÇOX KİÇİK MOBİL (≤380px) === */
@media (max-width: 380px) {
    .grid { gap: 8px; }
    .card-body { padding: 10px 12px 12px; }
    .card-title { font-size: 14px; }
    .price { font-size: 16px; }

    .hero h1 { font-size: 22px; }
    .hero-sub { font-size: 13px; }

    /* User menu çox dar ekranda — nömrəni gizlət, yalnız avatar */
    .user-phone { display: none; }
    .user-menu { padding: 4px; }

    /* "Daxil ol" mətnini gizlət */
    .login-trigger {
        width: 36px; height: 36px;
        padding: 0;
        font-size: 0;
        border-radius: 50%;
        background: var(--bg-soft);
    }
    .login-trigger::before {
        content: '↪';
        font-size: 16px;
        color: var(--ink);
    }

    .features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   GİRİŞ MODALI
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,25,41,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.3s var(--ease-bounce);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    transition: all 0.2s var(--ease);
}
.modal-close:hover { background: var(--bg-deep); color: var(--ink); transform: rotate(90deg); }

.modal-step { display: none; }
.modal-step[data-active] { display: block; animation: modalStepIn 0.3s var(--ease); }
@keyframes modalStepIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.modal-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.modal-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(10,102,194,0.35);
}
.modal-icon-success {
    background: linear-gradient(135deg, var(--green), #047857);
    box-shadow: 0 10px 30px rgba(5,118,66,0.35);
    animation: successPop 0.5s var(--ease-bounce);
}
@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.modal-sub {
    text-align: center;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 24px;
}
.modal-sub strong { color: var(--ink); }

.modal-form { display: flex; flex-direction: column; gap: 14px; }

/* Telefon input */
.phone-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s var(--ease);
    background: var(--bg-card);
}
.phone-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.phone-prefix {
    padding: 14px 14px 14px 16px;
    background: var(--bg-soft);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    border-right: 1px solid var(--line);
}
.phone-input input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    color: var(--ink);
    background: none;
    outline: none;
    letter-spacing: 0.02em;
}
.phone-input input::placeholder { color: var(--ink-mute); font-weight: 400; }

/* OTP input */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 4px;
}
.otp-digit {
    width: 56px;
    height: 64px;
    border: 2px solid var(--line);
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--body);
    color: var(--ink);
    background: var(--bg-card);
    outline: none;
    transition: all 0.2s var(--ease);
    font-variant-numeric: tabular-nums;
}
.otp-digit:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    transform: scale(1.04);
}
.otp-digit.filled {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-deep);
}
.otp-digit.shake {
    animation: shake 0.4s ease-in-out;
    border-color: var(--danger);
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Modal düymə */
.modal-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s var(--ease);
    box-shadow: 0 4px 14px rgba(10,102,194,0.3);
    position: relative;
}
.modal-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10,102,194,0.4);
}
.modal-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.modal-btn-ghost {
    background: var(--bg-soft);
    color: var(--ink);
    box-shadow: none;
}
.modal-btn-ghost:hover:not(:disabled) {
    background: var(--bg-deep);
    box-shadow: none;
}

.modal-btn.loading .btn-text { opacity: 0; }
.modal-btn.loading .btn-spinner {
    position: absolute;
    width: 20px; height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.btn-spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-hint {
    font-size: 12px;
    color: var(--ink-mute);
    text-align: center;
    line-height: 1.5;
    margin-top: 4px;
}
.modal-hint a { color: var(--accent); }

.modal-error {
    font-size: 13px;
    color: var(--danger);
    text-align: center;
    min-height: 18px;
    font-weight: 500;
}

.modal-resend {
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 2px;
}
.modal-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.modal-link:hover { color: var(--accent-deep); }

.demo-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,176,0,0.12);
    border: 1px dashed #FFB700;
    border-radius: 8px;
    color: #B07600;
    font-size: 12px;
    align-self: center;
    margin-top: 4px;
}
.demo-hint strong {
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    color: #B07600;
    font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .demo-hint {
    background: rgba(255,176,0,0.1);
    color: #FFB700;
}
[data-theme="dark"] .demo-hint strong { background: rgba(0,0,0,0.3); color: #FFB700; }

/* Header user state - daxil olduqdan sonra */
.user-menu {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: var(--bg-soft);
    border-radius: 999px;
    transition: background 0.2s var(--ease);
}
body.logged-in .user-menu { display: inline-flex; }
body.logged-in .login-trigger { display: none; }
.user-menu:hover { background: var(--bg-deep); }
.user-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}
.user-phone {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
    .modal { padding: 28px 20px 20px; }
    .otp-digit { width: 48px; height: 56px; font-size: 22px; }
    .otp-inputs { gap: 8px; }
}

/* ============================================================
   UNİVERSAL İNFO MODALI — demo/error/info bildirişləri üçün
   ============================================================ */
.info-modal {
    text-align: center;
    max-width: 460px;
    padding-top: 36px;
}

.info-modal-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    transition: all 0.3s var(--ease);
}

/* Pulse halqa */
.info-modal-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.3;
    animation: ringPulse 2s ease-in-out infinite;
}
@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.05; }
}

/* Type variantları */
.info-modal-icon[data-type="info"] {
    background: var(--accent-soft);
    color: var(--accent);
}
.info-modal-icon[data-type="warning"] {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
}
.info-modal-icon[data-type="error"] {
    background: var(--danger-soft);
    color: var(--danger);
}
.info-modal-icon[data-type="demo"] {
    background: linear-gradient(135deg, var(--accent-soft), rgba(0,160,220,0.1));
    color: var(--accent);
}

.info-modal-icon svg {
    width: 34px;
    height: 34px;
}

/* DEMO badge */
.info-modal-badge {
    display: inline-block;
    margin: 0 auto 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(10,102,194,0.3);
}
.info-modal-badge[data-hidden="1"] { display: none; }

.info-modal .modal-title {
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 22px;
}

.info-modal .modal-sub {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.info-modal-footer {
    border-top: 1px solid var(--line);
    margin: 0 -28px -28px;
    padding: 18px 28px;
    background: var(--bg-soft);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.info-modal-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-mute);
    font-weight: 500;
}

.info-modal-footer .modal-btn {
    width: auto;
    padding: 10px 24px;
    margin: 0;
}

/* Cancel button stil — boz outline */
.modal-btn-cancel {
    background: transparent !important;
    color: var(--ink-mute) !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
}
.modal-btn-cancel:hover {
    background: var(--bg-soft) !important;
    color: var(--ink) !important;
}

/* Logout buttons + onların layoutu */
.info-modal-footer {
    gap: 8px;
}
.info-modal-footer .modal-btn-cancel + .modal-btn,
.info-modal-footer .modal-btn:not(.modal-btn-cancel) {
    order: 2;
}
.info-modal-footer .modal-btn-cancel {
    order: 1;
}

/* ============================================
   TOAST BİLDİRİŞ (universal)
   ============================================ */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--ink);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100vw - 40px);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-success {
    background: linear-gradient(135deg, #057642, #1a8c5e);
}
.toast-error {
    background: linear-gradient(135deg, #d93025, #f04438);
}
.toast-info {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.toast svg {
    flex-shrink: 0;
}
@media (max-width: 720px) {
    .toast {
        bottom: 80px;
        font-size: 13px;
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .info-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .info-modal-footer .modal-btn { width: 100%; }
    .info-modal-meta { justify-content: center; }
}


/* ============================================
   MOBİL BURGER MENYU
   ============================================ */

/* Burger düyməsi — yalnız mobildə */
.mobile-burger-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.mobile-burger-btn:hover {
    background: rgba(10, 102, 194, 0.08);
    color: var(--accent);
}
.mobile-burger-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s;
}
.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Slide-in panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 88%;
    max-width: 360px;
    background: var(--bg);
    z-index: 999;
    transform: translate3d(100%, 0, 0);
    -webkit-transform: translate3d(100%, 0, 0);
    transition: transform 0.3s var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    /* Mobil safari accelerated rendering */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Lənt-də problem: kənarda swipe-ı blok etmə (iOS edge swipe) */
    touch-action: pan-y;
}
.mobile-menu.active {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* Header (logo + close) */
.mm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.mm-header .logo {
    font-size: 18px;
}
.mm-header .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 17px;
}
.mm-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: none;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
}
.mm-close-btn:hover {
    background: var(--line);
    transform: rotate(90deg);
}

/* User card (logged-in) */
.mm-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.08), rgba(10, 102, 194, 0.02));
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: background 0.15s;
}
.mm-user-card:hover {
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.12), rgba(10, 102, 194, 0.04));
}
.mm-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(10, 102, 194, 0.3);
}
.mm-user-info { flex: 1; min-width: 0; }
.mm-user-greet {
    font-size: 11.5px;
    color: var(--ink-mute);
    font-weight: 500;
}
.mm-user-phone {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mm-arrow { color: var(--ink-mute); opacity: 0.6; }

/* Nav (əsas siyahı) */
.mm-nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px;
}
.mm-nav::-webkit-scrollbar { width: 4px; }
.mm-nav::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 100px;
}

.mm-section-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ink-mute);
    font-weight: 700;
    padding: 14px 12px 6px;
    opacity: 0.8;
}

.mm-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}
.mm-nav-item svg {
    color: var(--ink-mute);
    flex-shrink: 0;
    transition: color 0.15s;
}
.mm-nav-item span:not([class]) { flex: 1; }
.mm-nav-item:hover {
    background: rgba(10, 102, 194, 0.06);
    color: var(--accent);
}
.mm-nav-item:hover svg { color: var(--accent); }
.mm-nav-item.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
}
.mm-nav-item.active svg { color: white; }

/* Badges */
.mm-badge-soon,
.mm-badge-new {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.mm-badge-soon {
    background: var(--bg-soft);
    color: var(--ink-mute);
    border: 1px solid var(--line);
}
.mm-badge-new {
    background: linear-gradient(135deg, var(--accent), var(--accent-3, #00A0DC));
    color: white;
    box-shadow: 0 2px 6px rgba(10, 102, 194, 0.3);
}

.mm-divider {
    height: 1px;
    background: var(--line);
    margin: 8px 4px;
}

.mm-nav-logout {
    color: #d93025 !important;
    background: rgba(217, 48, 37, 0.05);
}
.mm-nav-logout svg { color: #d93025 !important; }
.mm-nav-logout:hover {
    background: rgba(217, 48, 37, 0.1) !important;
    color: #d93025 !important;
}

/* Footer (menyu altı) */
.mm-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    flex-shrink: 0;
    background: var(--bg-soft);
}
.mm-footer-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}
.mm-theme-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.15s;
}
.mm-theme-btn:hover { background: rgba(10, 102, 194, 0.06); }
.mm-theme-btn .sun { display: block; }
.mm-theme-btn .moon { display: none; }
[data-theme="dark"] .mm-theme-btn .sun { display: none; }
[data-theme="dark"] .mm-theme-btn .moon { display: block; }
.mm-version {
    font-size: 10.5px;
    color: var(--ink-mute);
    text-align: center;
    opacity: 0.7;
    font-weight: 500;
}

/* Dark mode tweaks */
[data-theme="dark"] .mobile-menu { background: var(--bg-card, #1b1f23); }
[data-theme="dark"] .mm-footer { background: rgba(255, 255, 255, 0.03); }

/* Burger görünüşü (responsive) */
@media (max-width: 980px) {
    .mobile-burger-btn {
        display: inline-flex;
    }
}
@media (min-width: 981px) {
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Mobil <= 640 — burger header-də qaldığına əmin olaq */
@media (max-width: 640px) {
    .mobile-burger-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}

/* ============================================
   BURGER MENU BUG FİX-LƏR
   ============================================ */

/* Menu açıq olanda body scroll dondur (multi-platform) */
body.mm-open {
    overflow: hidden !important;
    /* iOS Safari fix - touch scroll blokla */
    position: fixed;
    width: 100%;
    overflow-y: hidden !important;
}
html.mm-open {
    overflow: hidden !important;
}

/* Menu açıq olanda profile bottom-bar gizlət */
body.mm-open .profile-bottom-bar,
body.mm-open .mobile-action-bar {
    display: none !important;
}

/* Menyu içində scroll yalnız mm-nav-da */
.mm-nav {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Menu açıq olanda header-də post-listing düyməsi və user-menu klik tutmasın */
body.mm-open .header { pointer-events: none; }
body.mm-open .mobile-burger-btn,
body.mm-open .mobile-menu,
body.mm-open .mobile-menu-overlay { pointer-events: auto; }

/* Touch scroll - aside içində smooth */
.mobile-menu {
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   MOBİL HEADER OPTIMIZATION — burger ilə yer qalsın
   ============================================ */

/* 980px-də: theme toggle + user-menu telefon gizlət + post-listing mətni gizlət */
@media (max-width: 980px) {
    /* Theme toggle MOBİLDƏ DƏ GÖRÜNSÜN (istifadəçi istəyi) */
    .header-actions .theme-toggle {
        display: inline-flex;
        width: 36px;
        height: 36px;
    }

    /* User-menu MOBİLDƏ tamamilə gizli (bottom-bar-da var artıq) */
    .header-actions .user-menu {
        display: none !important;
    }

    /* "Elan yerləşdir" düyməsini MOBİLDƏ TAMAM GİZLƏT — bottom-bar-da onsuz da var */
    .header-actions .btn-primary {
        display: none !important;
    }

    /* "Daxil ol" mətnini qısa saxla amma görünsün */
    .header-actions .login-trigger {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Header-actions gap azalt */
    .header-actions { gap: 6px; }
}

/* 640px (kiçik telefon): yalnız logo + theme + burger */
@media (max-width: 640px) {
    /* "Daxil ol" da gizlət — burger-də onsuz da var */
    .header-actions .login-trigger {
        display: none;
    }

    /* Bildiriş düyməsi gizlət (varsa) */
    .header-actions .icon-btn:not(.theme-toggle):not(.mobile-burger-btn) {
        display: none;
    }
}

/* 380px - kiçik telefon: logo mətnini qisalt */
@media (max-width: 380px) {
    .header-actions { gap: 4px; }
    .logo { font-size: 15px; }
    .logo-mark { width: 28px; height: 28px; font-size: 15px; }
    .header-inner { gap: 4px; padding: 0 10px; }
    .mobile-burger-btn { width: 34px; height: 34px; }
    .header-actions .theme-toggle {
        width: 32px; height: 32px;
    }
}

/* Auth tipində info modal — mavi gradient header */
#infoModal [data-type="auth"] {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
}
#infoModal [data-type="auth"] svg {
    color: white;
}

/* ============================================
   UNIVERSAL MOBİL BOTTOM TAB BAR
   ============================================ */
.bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    z-index: 90;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom);
}

.bb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    color: var(--ink-mute);
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 600;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    transition: color 0.15s;
    min-height: 56px;
}
.bb-item svg {
    transition: stroke 0.15s, transform 0.15s;
}
.bb-item:hover { color: var(--ink); }
.bb-item.active {
    color: var(--accent);
}
.bb-item.active svg {
    stroke-width: 2.4;
}
.bb-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
}

/* Mərkəzi CTA — "Elan yerləşdir" (vurğulanır) */
.bb-item-cta {
    /* color üzərində default ölmür ki, alt mətn də vurğulansın */
}
.bb-item-cta .bb-cta-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    margin-top: -16px; /* yuxarı qaldır - mərkəzi vurğula */
    border: 3px solid var(--bg);
}
.bb-item-cta:hover .bb-cta-circle {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10, 102, 194, 0.5);
}
.bb-item-cta span {
    margin-top: 2px;
    color: var(--accent);
}
.bb-item-cta::before { display: none; } /* mərkəzdə underline lazımsız */

/* Avatar (login olunca profil tabı) */
.bb-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(10, 102, 194, 0.2);
}
.bb-item.active .bb-avatar {
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.4);
    transform: scale(1.05);
}

/* ============================================
   MOBİLDƏ AKTİV ET (≤980px) — DESKTOP-da gizli
   ============================================ */
@media (max-width: 980px) {
    .bottom-bar {
        display: flex;
    }

    /* Səhifə altda bottom-bar-a yer ver */
    body {
        padding-bottom: 64px;
    }
}

/* Burger menu açıq olanda bottom-bar gizlət */
body.mm-open .bottom-bar {
    display: none !important;
}

/* Dark mode */
[data-theme="dark"] .bottom-bar {
    background: var(--bg-card, #1b1f23);
}
[data-theme="dark"] .bb-item-cta .bb-cta-circle {
    border-color: var(--bg-card, #1b1f23);
}

/* ============================================
   FOOTER (universal)
   ============================================ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--line);
    padding: 56px 0 0;
    margin-top: 80px;
    color: var(--ink);
    font-size: 14px;
}

/* ===== Grid (4 sütun) ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

/* Brend sütunu */
.footer-col-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 19px;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.25);
}
.footer-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.3px;
}
.footer-tagline {
    color: var(--ink-mute);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 320px;
}

/* Sosial media — monoxrom (rəngsiz) */
.footer-social {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}
.footer-soc-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink-mute);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s;
}
.footer-soc-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.25);
}
.footer-soc-btn svg {
    width: 20px;
    height: 20px;
}

/* App badges (icon + mətn) */
.footer-apps {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}
.footer-app-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink-mute);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.15s;
    width: fit-content;
}
.footer-app-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.25);
}
.footer-app-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Sütun başlıqları */
.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    background: none;
    border: none;
    padding: 0;
    cursor: default;
    font-family: inherit;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-arrow {
    display: none;
    transition: transform 0.2s;
}

/* Linkler siyahısı */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.footer-links a {
    color: var(--ink-mute);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.15s;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--accent);
}

/* Kateqoriya bölməsi */
.footer-categories {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.footer-cat-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
}
.footer-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-cat {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink-mute);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.15s;
}
.footer-cat:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Alt sətir */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--line);
}
.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-copyright {
    color: var(--ink-mute);
    font-size: 13px;
}
.footer-locale {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-locale-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--ink-mute);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.footer-locale-btn:hover {
    background: var(--bg);
    color: var(--accent);
}
.footer-currency {
    font-weight: 700;
    color: var(--accent);
    font-size: 15px;
}
.footer-divider-vert {
    color: var(--ink-mute);
    opacity: 0.5;
}

/* Ödəniş ikonları */
.footer-payments {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
    opacity: 0.85;
}
.footer-payment:hover { opacity: 1; }

/* Credits */
.footer-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
    font-size: 12px;
    color: var(--ink-mute);
}
.footer-credits a {
    color: var(--ink-mute);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-credits a:hover { color: var(--accent); }
.footer-made { color: var(--ink-mute); }

/* ===== Tablet (≤ 980px) ===== */
@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-col-brand {
        grid-column: span 2;
        margin-bottom: 8px;
    }
}

/* ===== Mobil (≤ 720px) — Accordion ===== */
@media (max-width: 720px) {
    .site-footer {
        padding-top: 36px;
        margin-top: 48px;
    }
    .site-footer .container {
        padding: 0 18px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 24px;
    }
    .footer-col-brand {
        grid-column: auto;
        margin-bottom: 14px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--line);
    }

    /* Accordion sütunlar */
    .footer-col-toggle {
        border-bottom: 1px solid var(--line);
    }
    .footer-col-toggle .footer-col-title {
        cursor: pointer;
        padding: 16px 0;
        margin-bottom: 0;
        font-size: 14.5px;
    }
    .footer-col-toggle .footer-arrow {
        display: block;
        color: var(--ink-mute);
    }
    .footer-col-toggle.open .footer-arrow {
        transform: rotate(180deg);
    }

    .footer-col-toggle .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0 0;
        gap: 0;
    }
    .footer-col-toggle.open .footer-links {
        max-height: 320px;
        padding: 4px 0 16px;
    }
    .footer-col-toggle .footer-links li {
        padding: 8px 0;
    }

    /* Kateqoriyalar */
    .footer-cat-list {
        gap: 6px;
    }
    .footer-cat {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* Bottom layout */
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px 0 16px;
    }
    .footer-bottom-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Bottom-bar üçün yer */
    .site-footer {
        padding-bottom: 76px;
    }
    .footer-credits {
        padding-bottom: 16px;
        font-size: 11.5px;
    }
}

/* Mobile-də footer-də bottom-bar olarsa biraz yer ver */
@media (max-width: 980px) {
    .site-footer {
        margin-bottom: 0;
    }
}

/* Dark mode */
[data-theme="dark"] .site-footer {
    background: var(--bg);
}
[data-theme="dark"] .footer-soc-btn,
[data-theme="dark"] .footer-cat {
    background: var(--bg-card);
}
/* App badge dark mode - eyni qara qalır */
[data-theme="dark"] .footer-payment svg rect[fill="#fff"] {
    fill: #2a2f33;
}

/* ============================================
   STATIC SƏHIFƏLƏR (about, terms, privacy, vs)
   ============================================ */
.static-page {
    padding: 32px 0 64px;
    min-height: 60vh;
}
.static-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero başlıq */
.static-hero {
    text-align: center;
    padding: 32px 0 40px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
}
.static-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 102, 194, 0.08);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.static-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--ink);
    letter-spacing: -0.8px;
    line-height: 1.15;
}
.static-hero p {
    font-size: 16px;
    color: var(--ink-mute);
    margin: 0 auto;
    max-width: 580px;
    line-height: 1.6;
}
.static-meta {
    font-size: 12.5px;
    color: var(--ink-mute);
    margin-top: 14px;
    opacity: 0.85;
}

/* Content */
.static-content {
    color: var(--ink);
    line-height: 1.75;
    font-size: 15.5px;
}
.static-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 36px 0 14px;
    letter-spacing: -0.3px;
}
.static-content h2:first-child { margin-top: 0; }
.static-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 24px 0 10px;
}
.static-content p {
    margin: 0 0 16px;
    color: var(--ink);
}
.static-content ul, .static-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}
.static-content li {
    margin-bottom: 8px;
}
.static-content strong {
    font-weight: 700;
    color: var(--ink);
}
.static-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 102, 194, 0.3);
    transition: border-color 0.15s;
}
.static-content a:hover {
    border-bottom-color: var(--accent);
}
.static-content blockquote {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--ink-mute);
}

/* İnfo kartlar */
.static-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.static-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}
.static-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.static-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}
.static-card p {
    font-size: 13.5px;
    color: var(--ink-mute);
    line-height: 1.55;
    margin: 0;
}

/* FAQ accordion */
.faq-list { margin: 24px 0; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item.open {
    box-shadow: 0 4px 20px rgba(10, 102, 194, 0.08);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: inherit;
    transition: color 0.15s;
}
.faq-question:hover { color: var(--accent); }
.faq-item.open .faq-question { color: var(--accent); }
.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(10, 102, 194, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s, background 0.15s;
}
.faq-item.open .faq-icon {
    background: var(--accent);
    color: white;
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    color: var(--ink-mute);
    line-height: 1.65;
    font-size: 14px;
}
.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 20px 20px;
}

/* Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 24px 0;
}
.contact-info { }
.contact-info h3 {
    font-size: 18px;
    margin-bottom: 16px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.contact-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(10, 102, 194, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-item-body { flex: 1; }
.contact-item-label {
    font-size: 11.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
    font-weight: 600;
}
.contact-item-value {
    font-size: 14.5px;
    color: var(--ink);
    font-weight: 600;
}
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
}
.contact-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: var(--bg);
    color: var(--ink);
    margin-bottom: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-form .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* ============== 404 ============== */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.error-content {
    text-align: center;
    max-width: 480px;
}
.error-code {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -4px;
    margin-bottom: 8px;
}
.error-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.error-text {
    font-size: 15.5px;
    color: var(--ink-mute);
    line-height: 1.65;
    margin: 0 0 28px;
}
.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.error-suggest {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.error-suggest-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-mute);
    margin-bottom: 14px;
    font-weight: 700;
}
.error-suggest-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.error-suggest-link {
    padding: 7px 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.error-suggest-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ============== Mobil ============== */
@media (max-width: 720px) {
    .static-hero { padding: 16px 0 28px; margin-bottom: 24px; }
    .static-hero h1 { font-size: 26px; }
    .static-hero p { font-size: 14.5px; }
    .static-content { font-size: 15px; }
    .static-content h2 { font-size: 19px; margin: 28px 0 12px; }
    .static-content h3 { font-size: 15.5px; }
    .contact-grid { grid-template-columns: 1fr; gap: 22px; }
    .error-code { font-size: 90px; }
    .error-title { font-size: 22px; }
    .static-page { padding: 16px 0 32px; }
}


/* ============================================
   MAĞAZALAR SƏHIFƏSI (stores.php, store.php)
   ============================================ */

/* === Stores list page === */
.stores-page { padding: 24px 0 60px; }

.stores-hero {
    text-align: center;
    padding: 24px 0 36px;
    margin-bottom: 24px;
}
.stores-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 14px 0 10px;
    letter-spacing: -0.8px;
}
.stores-hero p {
    font-size: 15px;
    color: var(--ink-mute);
    margin: 0;
}

/* Filter bar */
.stores-filter {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
}
.stores-filter-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}
.stores-search-wrap {
    position: relative;
}
.stores-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-mute);
    pointer-events: none;
}
.stores-search-input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: var(--bg);
    color: var(--ink);
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.stores-search-input:focus {
    outline: none;
    border-color: var(--accent);
}
.stores-filter-select {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
}
.stores-search-btn { padding: 11px 20px; }

.stores-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: var(--ink-mute);
    font-weight: 500;
}
.stores-clear-filter {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Mağaza kartları */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.store-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}
.store-card-vip {
    border-color: rgba(255, 160, 0, 0.4);
}
.store-card-vip:hover {
    border-color: #FFA000;
    box-shadow: 0 10px 28px rgba(255, 160, 0, 0.18);
}

/* Cover image - daha qısa */
.store-cover {
    position: relative;
    height: 90px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.store-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
}
/* Cover-də qaranlıq gradient overlay (oxunaqlılıq üçün) */
.store-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 100%);
}

/* VIP badge - kiçik və zərif */
.store-badge-vip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFA000, #FFC107);
    color: white;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 160, 0, 0.4);
    z-index: 2;
    line-height: 1.4;
}

/* Body */
.store-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header - logo + ad sıralı */
.store-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}
.store-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
    margin-top: -34px;
    border: 3px solid var(--bg-card);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background: var(--bg);
    position: relative;
    z-index: 1;
}
.store-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.store-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-verified {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}
.store-category {
    font-size: 12px;
    color: var(--ink-mute);
    font-weight: 500;
}

/* Description - 2 sətr max */
.store-desc {
    font-size: 13px;
    color: var(--ink-mute);
    line-height: 1.45;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

/* Stats */
.store-stats {
    display: flex;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
    align-items: center;
}
.store-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ink-mute);
}
.store-stat svg {
    color: var(--ink-mute);
    flex-shrink: 0;
}
.store-stat strong {
    color: var(--ink);
    font-weight: 700;
}
/* Rating ulduzu sarı */
.store-stat:first-child svg {
    color: #FFA000;
}

/* Empty state */
.stores-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--line);
    margin: 24px 0;
}
.stores-empty-icon {
    font-size: 60px;
    margin-bottom: 14px;
}
.stores-empty h3 {
    font-size: 19px;
    margin: 0 0 8px;
}
.stores-empty p {
    color: var(--ink-mute);
    margin: 0 0 18px;
}

/* CTA */
.stores-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 16px;
    padding: 28px 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.25);
}
.stores-cta-content h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
}
.stores-cta-content p {
    margin: 0;
    opacity: 0.92;
    font-size: 14px;
}
.stores-cta .btn-primary {
    background: white !important;
    color: var(--accent) !important;
    border: none;
    flex-shrink: 0;
}

/* ============================================
   STORE PROFIL SƏHIFƏSI (store.php)
   ============================================ */
.store-page { padding-bottom: 60px; }

.store-page-cover {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: -50px;
}
.store-page-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
}

.store-page-header {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.store-page-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    flex-shrink: 0;
    border: 4px solid var(--bg-card);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: -60px;
    background: var(--bg);
}
.store-page-info { flex: 1; min-width: 0; }
.store-page-name {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.store-page-category {
    font-size: 14px;
    color: var(--ink-mute);
    margin-bottom: 12px;
}
.store-page-desc {
    font-size: 14.5px;
    color: var(--ink);
    margin: 0 0 18px;
    line-height: 1.55;
}
.store-page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-icon-only {
    width: 40px;
    padding: 0 !important;
    justify-content: center;
}

/* Stats grid */
.store-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.store-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}
.store-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.store-stat-num {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--ink);
}
.store-stat-label {
    font-size: 12px;
    color: var(--ink-mute);
    font-weight: 500;
}

/* Contact grid */
.store-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}
.store-contact-item {
    display: flex;
    gap: 12px;
    align-items: center;
}
.store-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(10, 102, 194, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.store-contact-label {
    font-size: 11.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    margin-bottom: 2px;
}
.store-contact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* Listings section */
.store-listings-section {
    margin-top: 32px;
}
.store-listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.store-listings-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}
.store-listings-all {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* === Mobile responsive === */
@media (max-width: 980px) {
    .stores-filter-form {
        grid-template-columns: 1fr 1fr;
    }
    .stores-search-wrap { grid-column: span 2; }
    .stores-search-btn { grid-column: span 2; }

    .store-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .store-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stores-hero h1 { font-size: 26px; }
    .stores-grid { grid-template-columns: 1fr; }
    .store-page-header {
        flex-direction: column;
        padding: 16px;
    }
    .store-page-logo {
        width: 80px;
        height: 80px;
        margin-top: -40px;
    }
    .store-page-name { font-size: 22px; }
    .store-page-cover { height: 180px; }

    .stores-cta {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
}

[data-theme="dark"] .store-contact-icon {
    background: rgba(10, 102, 194, 0.18);
}

/* Highlight flash animasiyası - URL ?action ilə şirkət bölməsinə skroll edəndə */
.highlight-flash {
    animation: highlightFlash 2.4s ease;
    border-radius: 14px;
}
@keyframes highlightFlash {
    0% {
        background: var(--bg-card);
        box-shadow: 0 0 0 0 rgba(10, 102, 194, 0);
    }
    20% {
        background: rgba(10, 102, 194, 0.08);
        box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.2);
    }
    100% {
        background: var(--bg-card);
        box-shadow: 0 0 0 0 rgba(10, 102, 194, 0);
    }
}

/* ============================================
   MESAJLAŞMA SİSTEMİ (messages.php)
   ============================================ */

.messages-body {
    overflow: hidden;
    height: 100vh;
}

.messages-main {
    padding: 0;
    height: calc(100vh - 64px); /* header çıxılır */
    background: var(--bg);
}

.messages-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    background: var(--bg-card);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

/* === SİDEBAR (sol panel) === */
.messages-sidebar {
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.messages-sidebar-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.messages-sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.msg-count-badge {
    background: var(--accent);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}
.msg-sidebar-search-btn {
    background: var(--bg-soft);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--ink-mute);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.msg-sidebar-search-btn:hover {
    background: var(--accent);
    color: white;
}

.messages-sidebar-search {
    padding: 0 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s, padding 0.2s;
}
.messages-sidebar-search.visible {
    max-height: 70px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}
.msg-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.msg-search-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Söhbətlər siyahısı */
.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}
.messages-list::-webkit-scrollbar { width: 6px; }
.messages-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.msg-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: background 0.12s;
    position: relative;
}
.msg-item:hover {
    background: var(--bg-soft);
}
.msg-item.active {
    background: rgba(10, 102, 194, 0.06);
}
.msg-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}
.msg-item.pinned::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.msg-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.msg-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border: 2.5px solid var(--bg-card);
    border-radius: 50%;
}

.msg-item-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.msg-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
    min-width: 0;
}
.msg-item-name {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-verified { flex-shrink: 0; }
.msg-item-time {
    font-size: 11.5px;
    color: var(--ink-mute);
    flex-shrink: 0;
    font-weight: 500;
}

.msg-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.msg-item-preview {
    color: var(--ink-mute);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.msg-preview-prefix {
    color: var(--ink);
    font-weight: 600;
}

.msg-item-unread {
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.msg-pin-icon {
    color: var(--ink-mute);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.messages-empty-sidebar {
    padding: 40px 20px;
    text-align: center;
    color: var(--ink-mute);
}
.messages-empty-sidebar svg { color: var(--line); margin-bottom: 12px; }

/* === CHAT (sağ panel) === */
.messages-chat {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 25% 30%, rgba(10, 102, 194, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(24, 119, 242, 0.02) 0%, transparent 50%);
}

.chat-header {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
}
.chat-back-btn {
    background: var(--bg-soft);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: all 0.15s;
    flex-shrink: 0;
}
.chat-back-btn:hover {
    background: var(--accent);
    color: white;
}

.chat-header-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.chat-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.chat-header-info { min-width: 0; }
.chat-header-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 5px;
}
.chat-header-status {
    font-size: 12px;
    color: var(--ink-mute);
    margin-top: 1px;
}
.chat-status-online {
    color: #4caf50;
    font-weight: 600;
}

.chat-header-actions {
    display: flex;
    gap: 6px;
}
.chat-action-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-mute);
    transition: all 0.15s;
}
.chat-action-btn:hover {
    background: var(--bg-soft);
    color: var(--accent);
}

/* Elan kartı (chat başında) */
.chat-listing-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 10px 14px 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.15s;
    border-left: 3px solid var(--accent);
}
.chat-listing-card:hover {
    background: var(--bg-soft);
    transform: translateX(2px);
}
.chat-listing-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.chat-listing-info { flex: 1; min-width: 0; }
.chat-listing-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-listing-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    margin-top: 2px;
}
.chat-listing-card svg { color: var(--ink-mute); flex-shrink: 0; }

/* Mesajlar */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.chat-date-divider {
    text-align: center;
    margin: 10px 0;
    position: relative;
}
.chat-date-divider span {
    background: var(--bg);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--ink-mute);
    font-weight: 600;
    border: 1px solid var(--line);
}

.chat-bubble-wrap {
    display: flex;
    margin-bottom: 4px;
}
.chat-bubble-mine { justify-content: flex-end; }
.chat-bubble-theirs { justify-content: flex-start; }

.chat-bubble {
    max-width: 70%;
    padding: 9px 14px 6px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
}
.chat-bubble-mine .chat-bubble {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.2);
}
.chat-bubble-theirs .chat-bubble {
    background: var(--bg-card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.chat-bubble-text {
    font-size: 14px;
    line-height: 1.4;
}
.chat-bubble-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 2px;
    font-size: 10.5px;
    opacity: 0.7;
}
.chat-bubble-theirs .chat-bubble-meta {
    color: var(--ink-mute);
}
.chat-bubble-mine .chat-bubble-meta { color: white; }
.chat-read { display: inline-block; }
.chat-read.read-double { color: #00d4ff; opacity: 1; }
.chat-bubble-mine .chat-read.read-double { color: #4dd0ff; }

/* Yeni mesaj animasiyası */
.chat-bubble-new {
    animation: bubbleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bubbleIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mesaj göndər form */
.chat-input-form {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: var(--bg-card);
    display: flex;
    gap: 8px;
    align-items: center;
}
.chat-attach-btn,
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.chat-attach-btn {
    background: var(--bg-soft);
    color: var(--ink-mute);
}
.chat-attach-btn:hover {
    background: var(--accent);
    color: white;
}
.chat-send-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.3);
}
.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.4);
}

.chat-input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
}
.chat-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Chat empty */
.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}
.chat-empty-icon {
    color: var(--line);
    margin-bottom: 16px;
}
.chat-empty h3 {
    margin: 0 0 6px;
    font-size: 19px;
    color: var(--ink);
}
.chat-empty p {
    color: var(--ink-mute);
    font-size: 14px;
    margin: 0;
    max-width: 320px;
}

/* === MOBIL RESPONSIVE (980px və altında) === */
@media (max-width: 980px) {
    /* Mobile-də: messages.php səhifəsi tam ekran */
    .messages-body { overflow: hidden; }
    .messages-main {
        height: calc(100vh - 56px - 64px); /* header + bottom-bar */
        height: calc(100dvh - 56px - 64px); /* dynamic viewport (mobile keyboard) */
    }

    /* Mobile-də chat AÇIQ olanda - header və bottom-bar gizlət (Telegram tərzi) */
    body.messages-chat-active .header { display: none; }
    body.messages-chat-active .bottom-bar { display: none !important; }
    body.messages-chat-active .messages-main {
        height: 100vh;
        height: 100dvh;
    }

    .messages-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        border-left: none;
        border-right: none;
    }

    /* Default mobile: sidebar görünür, chat gizli */
    .messages-sidebar { display: flex; }
    .messages-chat { display: none; }

    /* Mobile chat açıq: sidebar gizli, chat görünür tam */
    .messages-container.mobile-chat-open .messages-sidebar { display: none; }
    .messages-container.mobile-chat-open .messages-chat { display: flex; }

    /* Chat header mobile-də kompakt */
    .chat-header {
        padding: 10px 12px;
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--bg-card);
    }
    .chat-header-avatar { width: 38px; height: 38px; font-size: 13px; }
    .chat-header-name { font-size: 14px; }
    .chat-header-status { font-size: 11px; }

    /* Chat bubbles mobile-də */
    .chat-bubble { max-width: 85%; }
    .chat-bubble-text { font-size: 14px; }

    /* Mesajlar konteyneri - skroll edilə bilən */
    .chat-messages {
        padding: 12px 14px;
        gap: 4px;
    }

    /* Mesaj göndər form - mobil-də səhifənin sonunda */
    .chat-input-form {
        position: sticky;
        bottom: 0;
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: var(--bg-card);
        z-index: 10;
    }
    .chat-input { font-size: 16px; /* iOS-da zoom-u qarşılamaq üçün */ }

    /* Elan kartı söhbət başında - mobil-də sticky */
    .chat-listing-card {
        position: sticky;
        top: 60px; /* chat-header altında */
        margin: 8px 12px 0;
        z-index: 9;
    }

    /* Sidebar header mobile-də */
    .messages-sidebar-header {
        padding: 14px 14px;
    }
    .messages-sidebar-header h2 { font-size: 18px; }

    /* Sidebar overflow zəmanəti */
    .messages-sidebar { width: 100%; max-width: 100%; overflow-x: hidden; }
    .messages-list { width: 100%; }

    /* Söhbət item-ləri - mobile kompakt */
    .msg-item {
        padding: 10px 12px;
        gap: 10px;
        box-sizing: border-box;
        max-width: 100%;
        overflow: hidden;
    }
    .msg-item-avatar {
        width: 46px;
        height: 46px;
        font-size: 15px;
        flex-shrink: 0;
    }
    .msg-item-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    .msg-item-name { font-size: 14px; }
    .msg-item-preview { font-size: 13px; }
    .msg-item-time { font-size: 11px; }
    .msg-item-unread {
        font-size: 10.5px;
        min-width: 18px;
        padding: 2px 6px;
    }
}

/* === Kiçik mobil ekranlar === */
@media (max-width: 480px) {
    .chat-bubble-text { font-size: 13.5px; }
    .messages-sidebar-header h2 { font-size: 17px; }
    .chat-header-actions { gap: 2px; }
    .chat-action-btn { width: 34px; height: 34px; }
    .chat-listing-img { width: 42px; height: 42px; }
    .chat-listing-title { font-size: 12.5px; }
    .chat-listing-price { font-size: 13px; }
}

/* Dark mode */
[data-theme="dark"] .chat-bubble-theirs .chat-bubble {
    background: var(--bg-soft);
}
[data-theme="dark"] .chat-listing-card {
    background: var(--bg-soft);
}

/* Bottom-bar badge (oxunmamış mesaj sayı) */
.bb-icon-wrap {
    position: relative;
    display: inline-flex;
}
.bb-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #ff3d3d;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    line-height: 1;
}

/* ============================================
   HEADER MESAJ İCON (yalnız login olanda)
   ============================================ */
/* Default: guest-də gizli */
.header-msg-btn {
    display: none;
    position: relative;
    text-decoration: none;
    color: var(--ink);
}
/* Login olanda göstər - FLEXBOX ilə mərkəzləşdir (grid yox) */
body.logged-in .header-msg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
}
.header-msg-btn:hover {
    background: var(--bg-soft);
    color: var(--accent);
}
.header-msg-btn.active {
    color: var(--accent);
    background: rgba(10, 102, 194, 0.08);
}

/* SVG icon - blok kimi davransın, mərkəzdə qalsın */
.header-msg-btn svg {
    display: block;
    flex-shrink: 0;
}

/* Badge - oxunmamış sayı (icon dairəsinin sağ-yuxar küncünün ÜSTÜNDƏ) */
.header-msg-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    transform: translate(50%, -50%);
    background: #ff3d3d;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Mobil-də header-də mesaj icon gizli (bottom-bar-da var) */
@media (max-width: 980px) {
    .header-msg-btn { display: none !important; }
}

/* ============================================
   USER DROPDOWN MENU (header avatar)
   ============================================ */
.user-dropdown-wrap {
    position: relative;
    display: none; /* default: gizli */
}
body.logged-in .user-dropdown-wrap {
    display: inline-block;
}

/* Trigger button */
.user-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    background: var(--bg-soft);
    border: 1px solid transparent;
    border-radius: 22px;
    cursor: pointer;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s;
}
.user-dropdown-trigger:hover {
    background: var(--bg-deep);
    border-color: var(--line);
}
.user-dropdown-wrap.open .user-dropdown-trigger {
    background: var(--bg-deep);
    border-color: var(--accent);
}

.user-dropdown-trigger .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.user-dropdown-trigger .user-phone {
    font-size: 13px;
    color: var(--ink);
}
.user-dropdown-chevron {
    color: var(--ink-mute);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.user-dropdown-wrap.open .user-dropdown-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Dropdown panel */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 1000;
    padding: 8px;
    overflow: hidden;
}
.user-dropdown-wrap.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header (kim daxil olub) */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}
.user-dropdown-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-dropdown-info {
    flex: 1;
    min-width: 0;
}
.user-dropdown-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-dropdown-phone {
    font-size: 12px;
    color: var(--ink-mute);
    margin-top: 2px;
}

/* Divider */
.user-dropdown-divider {
    height: 1px;
    background: var(--line);
    margin: 6px 0;
}

/* Items */
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.12s;
    cursor: pointer;
    position: relative;
}
.user-dropdown-item:hover {
    background: var(--bg-soft);
    color: var(--accent);
}
.user-dropdown-item.active {
    background: rgba(10, 102, 194, 0.08);
    color: var(--accent);
}
.user-dropdown-item svg {
    color: var(--ink-mute);
    flex-shrink: 0;
    transition: color 0.12s;
}
.user-dropdown-item:hover svg,
.user-dropdown-item.active svg {
    color: var(--accent);
}
.user-dropdown-item > span:first-of-type {
    flex: 1;
}

/* Badge */
.user-dropdown-badge {
    background: var(--bg-soft);
    color: var(--ink-mute);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}
.user-dropdown-item:hover .user-dropdown-badge {
    background: var(--accent);
    color: white;
}
.user-dropdown-badge-red {
    background: #ff3d3d;
    color: white;
}
.user-dropdown-item:hover .user-dropdown-badge-red {
    background: #cc0000;
    color: white;
}

/* Logout - özəl rəng */
.user-dropdown-logout {
    color: #d32f2f;
}
.user-dropdown-logout:hover {
    background: rgba(211, 47, 47, 0.08);
    color: #d32f2f;
}
.user-dropdown-logout:hover svg {
    color: #d32f2f;
}
.user-dropdown-logout svg {
    color: #d32f2f;
}

/* Köhnə user-menu-ni gizlət (artıq dropdown var) */
body.logged-in .user-menu {
    display: none !important;
}

/* Mobil: dropdown gizli (mobil menu burger içində var) */
@media (max-width: 980px) {
    .user-dropdown-wrap { display: none !important; }
}