/* =============================================================
   ZERF — Apple-inspired override layer
   style.css-dən sonra yüklənir. HTML strukturu dəyişmir;
   yalnız vizual təsir. Söndürmək üçün header.php-də link-i sil.
   ============================================================= */

:root {
    /* === Apple palette === */
    --primary:        #0071e3;       /* Apple blue */
    --primary-hover:  #0077ed;
    --primary-soft:   #e8f1fb;
    --primary-mid:    #d2e3f7;

    --accent:         #1d1d1f;       /* "Black" CTA — Apple əksər primary düymələri qara/tünddür */
    --accent-hover:   #000000;
    --accent-soft:    #f5f5f7;

    --bg:           #fbfbfd;          /* Apple off-white */
    --bg-soft:      #f5f5f7;
    --surface:      #ffffff;
    --surface-hover:#fafafa;
    --overlay:      rgba(0, 0, 0, .04);

    --text:        #1d1d1f;
    --text-soft:   #424245;
    --text-mute:   #6e6e73;
    --text-faint:  #86868b;

    --border:        #d2d2d7;
    --border-strong: #b0b0b6;
    --hairline:      rgba(0, 0, 0, .08);

    /* Daha "soft" şəkillərə uyğun gümüşü shadow-lar */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .04);
    --shadow:    0 4px 12px rgba(0, 0, 0, .06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .10);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, .14);

    --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-md: 18px; --r-lg: 22px; --r-xl: 28px;

    --header-h: 52px;
    --container-w: 1180px;

    /* Apple əksər səhifələrində gradient yoxdur; saxlayırıq amma daha incə */
    --grad-brand: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
    --grad-mesh:  none;
}

[data-theme="dark"] {
    --bg:           #000000;
    --bg-soft:      #0a0a0c;
    --surface:      #1c1c1e;
    --surface-hover:#232325;
    --overlay:      rgba(255, 255, 255, .06);

    --text:        #f5f5f7;
    --text-soft:   #d2d2d7;
    --text-mute:   #98989d;
    --text-faint:  #6e6e73;

    --border:        #2c2c2e;
    --border-strong: #3a3a3c;
    --hairline:      rgba(255, 255, 255, .12);

    --primary:        #2997ff;       /* Apple-in dark mode blue-su */
    --primary-hover:  #4aa8ff;
    --primary-soft:   #112a44;

    --accent:         #ffffff;       /* Dark-da CTA ağ */
    --accent-hover:   #f5f5f7;
}

/* ============================================================
   TYPOGRAPHY — SF Pro stack
   ============================================================ */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: var(--bg);
    color: var(--text);
    letter-spacing: -0.01em;
}

body {
    font-size: 15px;
    line-height: 1.47;
}

h1, h2, h3, h4, h5, .listing-title, .ad-title {
    letter-spacing: -0.022em;
    font-weight: 600;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: var(--container-w);
    padding-left: 22px;
    padding-right: 22px;
}

/* ============================================================
   HEADER — glassmorphism, slim, sticky
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(251, 251, 253, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--hairline);
    box-shadow: none;
}
[data-theme="dark"] .site-header {
    background: rgba(0, 0, 0, 0.72);
}

.header-inner {
    min-height: var(--header-h);
    height: var(--header-h);
    gap: 14px;
    padding-top: 0;
    padding-bottom: 0;
}

.brand {
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
}
.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--text);
    color: var(--surface);
    font-size: 14px;
    box-shadow: none;
}
[data-theme="dark"] .brand-mark { background: var(--text); color: #000; }

.brand-text {
    background: none;
    -webkit-text-fill-color: var(--text);
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Search bar — pill, slim */
.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-soft);
    border: 1px solid transparent;
    border-radius: 980px;
    height: 38px;
    max-width: 520px;
    margin: 0 12px;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.search-bar:focus-within {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, .12);
}
.search-bar input,
.search-bar input[type="search"] {
    width: 100%;
    height: 100%;
    padding: 0 16px 0 40px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 980px !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.search-bar input:focus,
.search-bar input[type="search"]:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-mute);
    font-size: 14px;
    pointer-events: none;
}

/* Lang switch — flatter */
.lang-switch {
    background: var(--bg-soft) !important;
    border-radius: 980px !important;
    padding: 2px !important;
}
.lang-opt {
    padding: 4px 11px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

/* Tema toggle — clean ghost */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 980px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    box-shadow: none;
}
.theme-toggle:hover {
    background: var(--bg-soft);
    color: var(--text);
    border-color: transparent;
    transform: none;
}

/* ============================================================
   BUTTONS — Apple pill style
   ============================================================ */
.btn {
    border-radius: 980px;
    font-weight: 500;
    padding: 9px 18px;
    font-size: 13.5px;
    letter-spacing: -0.01em;
    border-width: 1px;
    transition: all .18s ease;
    box-shadow: none;
}
.btn:hover {
    transform: none;
    box-shadow: none;
    opacity: .92;
}
.btn:active { opacity: 1; }
.btn-sm {
    padding: 6px 14px;
    font-size: 12.5px;
    border-radius: 980px;
}
.btn-lg {
    padding: 13px 26px;
    font-size: 15px;
    border-radius: 980px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

.btn-accent {
    background: var(--text);             /* qara primary CTA */
    border-color: var(--text);
    color: var(--surface);
}
.btn-accent:hover { background: #000; border-color: #000; color: #fff; opacity: 1; }
[data-theme="dark"] .btn-accent { background: #fff; border-color: #fff; color: #000; }
[data-theme="dark"] .btn-accent:hover { background: #f5f5f7; border-color: #f5f5f7; color: #000; }

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--bg-soft);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost {
    color: var(--text-soft);
    background: transparent;
    border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

.icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 980px;
}

/* Header badges — daha incə */
.hdr-badge {
    box-shadow: 0 0 0 2px rgba(251, 251, 253, .9);
    font-weight: 700;
}
[data-theme="dark"] .hdr-badge { box-shadow: 0 0 0 2px #000; }

/* ============================================================
   HERO — Apple landing tərzi
   ============================================================ */
.hero, .hero-compact, .hero-tight {
    padding: 64px 0 32px;
    background: transparent;
    border-bottom: none;
    text-align: center;
}
.hero-row {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.hero-title, .hero-title.hero-title-sm {
    font-size: clamp(36px, 5.6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.06;
    color: var(--text);
    margin: 0;
    background: none;
    -webkit-text-fill-color: var(--text);
    max-width: 820px;
}
.hero-title .grad {
    background: none;
    -webkit-text-fill-color: var(--text);
    color: var(--text);
}

.hero-subtitle {
    font-size: clamp(17px, 1.8vw, 22px);
    color: var(--text-mute);
    font-weight: 400;
    line-height: 1.4;
    max-width: 640px;
    margin: 0 auto;
}

.hero-quick {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.hero-quick .btn-accent {
    padding: 13px 28px;
    font-size: 15px;
}
.hero-quick .hero-link {
    color: var(--primary);
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    padding: 13px 8px;
    text-decoration: none;
}
.hero-quick .hero-link:hover { background: transparent; color: var(--primary-hover); text-decoration: underline; }

.hero-stat {
    color: var(--text-mute);
    font-size: 13.5px;
    font-weight: 500;
    background: transparent;
    border: none;
    padding: 0 6px;
}

/* ============================================================
   SECTION HEADS — Apple həm böyük, həm təmiz
   ============================================================ */
section { padding: 32px 0 !important; }
section + section { padding-top: 16px !important; }

.section-head {
    margin-bottom: 22px;
    align-items: baseline;
}
.section-head h2 {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 600;
    letter-spacing: -0.024em;
    color: var(--text);
    line-height: 1.1;
}
.section-head h2 i { font-size: 0.78em; }
.section-head a {
    color: var(--primary);
    font-weight: 500;
    font-size: 14.5px;
}

/* ============================================================
   CATEGORY GRID — clean cards
   ============================================================ */
.cat-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    margin-top: 28px;
}
.cat-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: 18px 16px;
    box-shadow: none;
    transition: all .2s ease;
}
.cat-card::before { display: none; }
.cat-card:hover {
    background: var(--surface);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.cat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 18px;
    box-shadow: none;
}
.cat-card:hover .cat-card-icon { transform: none; background: var(--primary-soft); color: var(--primary); }
.cat-card-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.cat-card-count {
    color: var(--text-mute);
    font-size: 12.5px;
    font-weight: 400;
}
.cat-more-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 980px;
    padding: 9px 20px;
    font-size: 13.5px;
    margin-top: 18px;
}
.cat-more-btn:hover { background: var(--bg-soft); }

/* ============================================================
   LISTING CARDS — daha incə, tipografik
   ============================================================ */
.listing-grid {
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}
.listing-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    box-shadow: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.listing-card.vip {
    border-color: rgba(245, 158, 11, .35);
}
.listing-card.vip::before {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    height: 3px;
}
.listing-card.premium {
    border-color: rgba(168, 85, 247, .35);
}
.listing-card.premium::before {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    height: 3px;
}
.listing-card.premium .listing-price { color: var(--text); }

.listing-photo {
    background: var(--bg-soft);
}
.listing-photo::after { display: none; }

.listing-fav {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    border: 0;
}
.listing-fav:hover { background: #fff; transform: scale(1.06); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

.listing-body { padding: 14px 14px 16px; }

.listing-price {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.018em;
    color: var(--text);
}
.listing-price.free { color: #16a34a; }

.listing-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-soft);
    line-height: 1.4;
}

.listing-meta {
    color: var(--text-mute);
    font-size: 12px;
    font-weight: 400;
    margin-top: 8px;
}

.listing-shop {
    background: var(--bg-soft);
    color: var(--text-soft);
    border-radius: 980px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 500;
}

/* ============================================================
   AD CARDS — tək sətirlik, sakit
   ============================================================ */
.ad-card,
.ad-card.ad-ocean,
.ad-card.ad-sunset,
.ad-card.ad-purple,
.ad-card.ad-orange,
.ad-card.ad-green,
.ad-card.ad-blue,
.ad-card.ad-dark {
    background: var(--surface) !important;
    border: 1px solid var(--hairline) !important;
    border-radius: var(--r-md) !important;
    box-shadow: none !important;
    color: var(--text) !important;
    overflow: hidden;
}
.ad-card::before { display: none !important; }
.ad-card:hover {
    background: var(--surface) !important;
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-sm) !important;
    transform: none !important;
}
.ad-clickwrap { padding: 18px 22px; gap: 16px; }
.ad-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--bg-soft) !important;
    color: var(--text) !important;
    font-size: 18px;
    box-shadow: none !important;
}
.ad-tag {
    color: var(--primary) !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ad-title {
    color: var(--text) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.018em;
}
.ad-text {
    color: var(--text-mute) !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
}
.ad-cta {
    color: var(--primary) !important;
    background: transparent !important;
    border: 0 !important;
    font-weight: 500 !important;
    padding: 0 !important;
    font-size: 13.5px !important;
}
.ad-clickwrap:hover .ad-cta { gap: 8px; color: var(--primary-hover) !important; }

/* ============================================================
   SEO rich content — daha sakit
   ============================================================ */
.seo-rich {
    background: var(--bg-soft);
    padding: 80px 0 60px;
    border-top: 1px solid var(--hairline);
}
.seo-rich h2 {
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--text);
}
.seo-rich h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.016em;
}
.seo-rich p, .seo-rich li {
    color: var(--text-soft);
    font-size: 15px;
}
.seo-rich a { color: var(--primary); }
.seo-rich .region-pill,
.seo-rich .cat-link {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 980px;
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
}
.seo-rich .region-pill:hover,
.seo-rich .cat-link:hover {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
    transform: none;
}
.seo-rich .faq details {
    border: 1px solid var(--hairline);
    border-radius: var(--r);
    background: var(--surface);
}
.seo-rich .faq details[open] { background: var(--surface); }

/* ============================================================
   FOOTER — Apple stili: minimal, light
   ============================================================ */
.site-footer {
    background: var(--bg-soft);
    color: var(--text-soft);
    padding: 56px 0 28px;
    border-top: 1px solid var(--hairline);
}
.footer-seo {
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 28px;
    margin-bottom: 28px;
    gap: 28px;
}
.footer-seo-block h5 {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    margin-bottom: 10px;
}
.footer-seo-block a {
    color: var(--text-soft);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.9;
    text-decoration: none;
}
.footer-seo-block a:hover { color: var(--primary); text-decoration: underline; }

.footer-grid {
    gap: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--hairline);
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.footer-col a {
    color: var(--text-soft);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 2;
    display: block;
    text-decoration: none;
}
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-col p { font-size: 12.5px; color: var(--text-soft); line-height: 1.6; }

.footer-social { margin-top: 14px; gap: 8px; }
.footer-social a {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-soft);
    width: 34px;
    height: 34px;
    border-radius: 980px;
}
.footer-social a:hover { background: var(--text); color: var(--surface); border-color: var(--text); transform: none; }

.footer-bottom {
    text-align: left;
    padding-top: 20px;
    font-size: 11.5px;
    color: var(--text-faint);
    border-top: 0;
}
.footer-bottom a { color: var(--text-soft); font-weight: 500; }

/* ============================================================
   MOBILE BOTTOM NAV — glassmorphism
   ============================================================ */
.mobile-bottom-nav {
    background: rgba(251, 251, 253, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border-top: 0.5px solid var(--hairline);
    box-shadow: none;
}
[data-theme="dark"] .mobile-bottom-nav { background: rgba(0, 0, 0, 0.82); }

.mobile-bottom-nav a { color: var(--text-mute); font-weight: 500; }
.mobile-bottom-nav a.active { color: var(--text); }
.mobile-bottom-nav a.active::before {
    background: var(--text);
    width: 4px; height: 4px; border-radius: 50%;
    top: 6px;
}
.mobile-bottom-nav a.cta-btn {
    background: var(--text);
    color: var(--surface);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
[data-theme="dark"] .mobile-bottom-nav a.cta-btn { background: var(--text); color: #000; }

/* ============================================================
   PROFILE DROPDOWN — daha "soft"
   ============================================================ */
.profile-menu {
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--hairline);
}
.profile-menu-item { font-weight: 500; font-size: 13.5px; }
.profile-menu-name { font-weight: 600; letter-spacing: -0.01em; }

/* ============================================================
   ALERT-LƏR
   ============================================================ */
.alert {
    border-radius: var(--r);
    border-width: 1px;
    font-size: 13.5px;
    padding: 14px 18px;
}

/* ============================================================
   PREMIUM-GRID (anasəhifə Premium bloku) - fonu sakitləşdir
   ============================================================ */
section[style*="linear-gradient(135deg, #faf5ff"] {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%) !important;
}

/* ============================================================
   Hüquqi məlumat chip-ləri (anasəhifədə) — Apple-tərz sakitləşdir
   ============================================================ */
.legal-chips-wrap {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 26px 30px;
    box-shadow: none;
}
.legal-chips-wrap h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.014em;
    color: var(--text);
}
.legal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.legal-chips a {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: var(--bg-soft);
    border-radius: 980px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.legal-chips a:hover {
    background: var(--text);
    color: var(--surface);
}

/* ============================================================
   QUICK FIXES — hero-da var olan inline gradient-ləri zərərsizləşdirmək
   ============================================================ */
.hero[style*="gradient"],
.hero-compact[style*="gradient"],
section[style*="gradient"] {
    background: transparent !important;
}

/* ============================================================
   FORMS — universal Apple input/textarea/select/label/card
   ============================================================ */
.form-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    box-shadow: none;
    padding: 28px;
}
.form-card-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.018em;
    color: var(--text);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hairline);
}
.form-card-title i { color: var(--text-mute); }
.form-help-inline { color: var(--text-mute); font-weight: 400; font-size: 12.5px; }

.form-group { margin-bottom: 18px; }
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
    margin-bottom: 7px;
    display: block;
}
.form-label .req { color: #ff3b30; font-weight: 600; }

.form-input,
.form-textarea,
.form-select,
input[type="text"]:not([class*="adm-"]):not([class*="search"]),
input[type="email"]:not([class*="adm-"]),
input[type="tel"]:not([class*="adm-"]),
input[type="number"]:not([class*="adm-"]),
input[type="password"]:not([class*="adm-"]),
input[type="url"]:not([class*="adm-"]),
input[type="search"]:not([class*="adm-"]),
textarea:not([class*="adm-"]),
select:not([class*="adm-"]) {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit;
    line-height: 1.4;
    width: 100%;
    box-shadow: none;
}
.form-input::placeholder,
.form-textarea::placeholder,
textarea::placeholder,
input::placeholder { color: var(--text-faint); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
input:focus:not([class*="adm-"]):not(.search-bar input),
textarea:focus:not([class*="adm-"]),
select:focus:not([class*="adm-"]) {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, .14);
}

.form-textarea, textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: 12.5px; color: var(--text-mute); margin-top: 6px; line-height: 1.45; }

.form-row { gap: 14px; }

/* Checkbox/radio — sadə */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

/* ============================================================
   ALERTS — Apple banner
   ============================================================ */
.alert {
    border-radius: 12px;
    border: 1px solid var(--hairline);
    padding: 14px 18px;
    font-size: 13.5px;
    background: var(--surface);
    color: var(--text);
}
.alert-info    { background: rgba(0, 113, 227, .06); border-color: rgba(0, 113, 227, .25); color: #06529e; }
.alert-success { background: rgba(48, 209, 88, .08); border-color: rgba(48, 209, 88, .3); color: #0a7a30; }
.alert-warning { background: rgba(255, 159, 10, .08); border-color: rgba(255, 159, 10, .3); color: #8a4a00; }
.alert-danger  { background: rgba(255, 59, 48, .07); border-color: rgba(255, 59, 48, .3); color: #a51a14; }
[data-theme="dark"] .alert-info    { color: #79bcff; }
[data-theme="dark"] .alert-success { color: #59e07e; }
[data-theme="dark"] .alert-warning { color: #ffb74d; }
[data-theme="dark"] .alert-danger  { color: #ff6961; }

/* ============================================================
   TABLES — sadə, hairline, hover lift
   ============================================================ */
table:not([class*="adm"]) {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--r);
    overflow: hidden;
}
table:not([class*="adm"]) th,
table:not([class*="adm"]) td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
    font-size: 13.5px;
}
table:not([class*="adm"]) th {
    background: var(--bg-soft);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-mute);
}
table:not([class*="adm"]) tr:last-child td { border-bottom: 0; }
table:not([class*="adm"]) tbody tr:hover { background: var(--surface-hover); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    font-size: 12.5px;
    color: var(--text-mute);
    padding: 14px 0;
}
.breadcrumb a {
    color: var(--text-mute);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 22px 0;
}
.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 980px;
    border: 1px solid var(--hairline);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .15s ease;
}
.pagination a:hover { background: var(--bg-soft); }
.pagination .active,
.pagination .current {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
}

/* ============================================================
   CHIPS / TAGS / BADGES
   ============================================================ */
.chip, .tag, .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 980px;
    background: var(--bg-soft);
    color: var(--text-soft);
    font-size: 11.5px;
    font-weight: 500;
    border: 1px solid transparent;
}
.chip.chip-primary, .badge.badge-primary { background: var(--primary-soft); color: var(--primary); }
.chip.chip-success, .badge.badge-success { background: rgba(48, 209, 88, .12); color: #0a7a30; }
.chip.chip-warning, .badge.badge-warning { background: rgba(255, 159, 10, .12); color: #8a4a00; }
.chip.chip-danger,  .badge.badge-danger  { background: rgba(255, 59, 48, .12); color: #a51a14; }

/* ============================================================
   MODAL / DIALOG (universal)
   ============================================================ */
.modal, .dialog, [role="dialog"] {
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--hairline);
    background: var(--surface);
}
.modal-backdrop {
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ============================================================
   GALLERY (listing page-də və başqalarda)
   ============================================================ */
.gallery-main,
.listing-gallery img,
.gallery img {
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-soft);
}
.gallery-thumb {
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--bg-soft);
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--primary); }

/* ============================================================
   CARD / SURFACE konteynerləri (info-box, contact-card, seller-card vb)
   ============================================================ */
.contact-card,
.info-box,
.seller-card,
.shop-card,
.profile-card,
.stat-card,
.law-ref {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: 20px;
    box-shadow: none;
}

/* ============================================================
   FILTER SIDEBAR (kateqoriya/axtarış filter paneli)
   ============================================================ */
.filter-sidebar,
.filters,
aside.filters {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 22px;
}
.filter-section + .filter-section,
.filters > div + div { border-top: 1px solid var(--hairline); padding-top: 18px; margin-top: 18px; }

/* ============================================================
   CHAT / MESSAGES
   ============================================================ */
.chat-panel {
    border-radius: var(--r-lg);
    border: 1px solid var(--hairline);
    overflow: hidden;
    background: var(--surface);
    padding: 0;
}
.chat-bubble {
    border-radius: 18px;
    padding: 10px 14px;
    max-width: 78%;
    font-size: 14px;
    line-height: 1.4;
}
.chat-bubble.me {
    background: var(--primary);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 6px;
}
.chat-bubble.them {
    background: var(--bg-soft);
    color: var(--text);
    border-bottom-left-radius: 6px;
}

/* ============================================================
   PAGE PADDING/STATIC content
   ============================================================ */
.padded {
    padding: 32px 0;
}

/* Static pages (pages/*.php) — başlıq/parag hierarchy */
.page-content h1, .page-content h2 {
    letter-spacing: -0.022em;
    font-weight: 600;
}
.page-content p { color: var(--text-soft); line-height: 1.65; font-size: 15.5px; }
.page-content ul li, .page-content ol li { line-height: 1.7; color: var(--text-soft); }

/* ============================================================
   LISTING DETAIL PAGE — gallery, title, attrs, seller
   ============================================================ */
.ldd-block { background: transparent; }

.ldd-gallery {
    background: var(--surface) !important;
    border: 1px solid var(--hairline) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: none !important;
}
.lg-wrap { background: var(--bg-soft) !important; }
.lg-slide, .lg-main, .lg-empty { background: var(--bg-soft) !important; }
.lg-empty { color: var(--text-faint) !important; }

.lg-nav {
    background: rgba(28, 28, 30, .72) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
}
.lg-nav:hover { background: rgba(28, 28, 30, .92) !important; }

.lg-counter {
    background: rgba(28, 28, 30, .72) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 11.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.lg-dot {
    background: rgba(255, 255, 255, .55) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25) !important;
}
.lg-dot.active { background: #fff !important; }

.lg-thumb {
    border-radius: 10px !important;
    border-color: var(--hairline) !important;
}
.lg-thumb.active { border-color: var(--text) !important; transform: none !important; }
.lg-thumbs { background: var(--surface) !important; padding: 14px !important; }

/* ldd-title bloku */
.ldd-title {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 22px 24px;
}
.ldd-title h1 {
    font-size: clamp(22px, 3vw, 30px) !important;
    font-weight: 600 !important;
    letter-spacing: -0.022em !important;
    line-height: 1.18 !important;
    color: var(--text) !important;
    margin: 0 0 10px !important;
}
.ldd-price {
    font-size: clamp(26px, 3.2vw, 32px);
    font-weight: 600;
    letter-spacing: -0.024em;
    color: var(--text);
}
.ldd-price-free { color: #16a34a; }
.ldd-price-neg  { color: var(--text-mute); font-size: 13.5px; font-weight: 500; margin-left: 4px; }
.ldd-meta {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-mute);
    flex-wrap: wrap;
}
.ldd-meta i { margin-right: 4px; opacity: .85; }

/* Condition pill */
.cond-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 980px;
    font-size: 11.5px;
    font-weight: 500;
    background: var(--bg-soft);
    color: var(--text);
}
.cond-pill.cond-new { background: rgba(48, 209, 88, .12); color: #0a7a30; }
.cond-pill.cond-used { background: rgba(0, 113, 227, .1); color: var(--primary); }

/* Ships / delivery banners */
.ships-nx-detail,
.delivery-nx-detail {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-top: 14px;
    border-radius: 12px;
    background: rgba(16, 185, 129, .07);
    border: 1px solid rgba(16, 185, 129, .22);
    color: #065f46;
    font-size: 13.5px;
    line-height: 1.45;
}
.ships-nx-detail i { font-size: 20px; color: #059669; flex-shrink: 0; }
.delivery-nx-detail {
    background: rgba(6, 182, 212, .07);
    border-color: rgba(6, 182, 212, .25);
    color: #155e75;
}
.delivery-nx-detail i { color: #0891b2; }

/* Description block (ldd-desc) */
.ldd-desc h3,
.ldd-attrs h3 {
    margin: 0 0 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.014em;
    color: var(--text);
}
.ldd-desc-text {
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--text-soft);
    font-size: 14.5px;
}

/* Attributes grid */
.ldd-attrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
}
.ldd-attr-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 13.5px;
    align-items: baseline;
}
.ldd-attr-row:last-child { border-bottom: 0; }
.ldd-attr-label { color: var(--text-mute); min-width: 110px; }
.ldd-attr-value { font-weight: 600; color: var(--text); }

/* Report link */
.ldd-report { text-align: center; font-size: 12.5px; padding: 6px 0 14px; }
.ldd-report a { color: var(--text-mute); text-decoration: none; }
.ldd-report a:hover { color: var(--text); }

/* Seller card */
.ldd-seller h3 { margin: 0 0 6px !important; font-size: 17px !important; font-weight: 600 !important; letter-spacing: -0.014em; }
.ldd-seller .seller-meta { font-size: 12.5px; color: var(--text-mute); margin-bottom: 14px; }
.ldd-seller .seller-verified { font-size: 11.5px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.ldd-seller-shop {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--hairline);
}
.ldd-seller-shop-logo,
.ldd-seller-shop-logo-empty {
    width: 48px; height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-soft);
    color: var(--text-mute);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.ldd-seller-shop-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.012em;
}
.ldd-seller-shop-sub {
    font-size: 11.5px;
    color: var(--text-mute);
    margin-top: 2px;
}

/* Phone reveal */
.phone-reveal .btn-primary,
.phone-reveal .phone-show-btn {
    background: var(--text) !important;
    border-color: var(--text) !important;
    color: var(--surface) !important;
}
.phone-reveal .phone-show-btn:hover { background: #000 !important; }
[data-theme="dark"] .phone-reveal .btn-primary,
[data-theme="dark"] .phone-reveal .phone-show-btn { background: #fff !important; color: #000 !important; border-color: #fff !important; }

.phone-show-btn span[style] {
    background: rgba(255, 255, 255, .18) !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
    border-radius: 980px !important;
}

/* Other listings mini-cards (sidebar) */
.ldd-other-grid { display: flex; flex-direction: column; gap: 8px; }
.ldd-other-item {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    padding: 10px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    transition: border-color .15s ease, background .15s ease;
}
.ldd-other-item:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.ldd-other-thumb {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--bg-soft);
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-mute);
}
.ldd-other-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ldd-other-title {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    letter-spacing: -0.008em;
}
.ldd-other-price {
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 3px;
}

/* Similar section */
.similar-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--hairline);
    clear: both;
}
.similar-empty {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-soft);
    border-radius: var(--r-md);
    color: var(--text-mute);
    border: 1px solid var(--hairline);
}
.similar-empty i { font-size: 28px; color: var(--text-faint); }
.similar-empty p { margin: 12px 0 16px; font-size: 14px; }

/* Admin toolbar — minimal Apple-style danger banner */
.adm-bar {
    background: rgba(255, 59, 48, .06) !important;
    border: 1px solid rgba(255, 59, 48, .3) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-bottom: 18px !important;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    color: #a51a14;
}
.adm-bar .adm-bar-pill {
    background: #ff3b30;
    color: #fff;
    padding: 3px 10px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}
.adm-bar a, .adm-bar strong { color: #a51a14; font-weight: 600; }
.adm-bar .btn-sm { padding: 6px 12px; font-size: 12.5px; }
.adm-bar .btn-danger { background: #ff3b30; color: #fff; border-color: #ff3b30; }

/* ============================================================
   PROMOTE (elan irəlilətmə) düyməsi — gradient köhnə effekti yumşalt
   ============================================================ */
.btn-promote {
    background: linear-gradient(135deg, #a855f7, #ec4899) !important;
    color: #fff !important;
    border: 0 !important;
}
.btn-promote:hover { opacity: .92; }

.btn-danger {
    background: #ff3b30;
    color: #fff;
    border-color: #ff3b30;
}
.btn-danger:hover { background: #d70015; color: #fff; }
.btn-success {
    background: #30d158;
    color: #fff;
    border-color: #30d158;
}

/* ============================================================
   CATEGORY / SEARCH PAGE — header + subcat pills + grid layout
   ============================================================ */
.cat-page-head h1,
.search-page-head h1 {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 600;
    letter-spacing: -0.024em;
    margin: 6px 0;
}
.cat-page-head p,
.search-page-head p {
    color: var(--text-mute);
    margin: 0 0 18px;
    font-size: 14.5px;
}

.subcat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 22px;
}
.subcat-pills a {
    padding: 7px 14px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 980px;
    font-size: 12.5px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all .15s ease;
}
.subcat-pills a:hover {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
}

.cat-layout,
.search-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    align-items: start;
}
@media (max-width: 900px) {
    .cat-layout, .search-layout { grid-template-columns: 1fr; }
}

.filters-aside {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 22px;
    position: sticky;
    top: 76px;
}
.filters-aside h4 {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.008em;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-faint);
}

/* Filter checkbox cərgələri (ships nx, delivery nx vb) */
.ships-nx-filter, .delivery-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text);
}
.ships-nx-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ships-nx-filter-label b { font-weight: 500; }

/* ============================================================
   POST.PHP — elan yerləşdirmə formu
   ============================================================ */
.post-page h1 {
    font-size: clamp(28px, 3.6vw, 36px);
    font-weight: 600;
    letter-spacing: -0.024em;
    margin: 6px 0 22px;
}
.post-page .form-card { padding: 28px; }
.post-page .form-card > h3 {
    margin: 24px 0 14px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.014em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hairline);
    color: var(--text);
}
.post-page .form-card > h3:first-child { margin-top: 0; }

/* Import card (tap.az / lalafo / bina.az) */
.import-card {
    background: var(--surface) !important;
    border: 1px solid var(--hairline) !important;
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 18px !important;
}
.import-card summary {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    list-style: none;
    background: var(--surface);
    flex-wrap: wrap;
    color: var(--text);
}
.import-card summary::-webkit-details-marker { display: none; }
.import-card summary::after {
    content: '+';
    margin-left: auto;
    font-size: 20px;
    color: var(--text-mute);
    line-height: 1;
}
.import-card details[open] summary::after { content: '−'; }
.import-card summary i.bi { color: var(--primary); font-size: 18px; flex-shrink: 0; }
.import-card .import-time-badge {
    background: var(--bg-soft);
    color: var(--text-soft);
    padding: 3px 10px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 600;
}
.import-card-body { padding: 18px 20px 22px; border-top: 1px solid var(--hairline); }

/* Legal warning içəridə */
.legal-warn {
    background: rgba(255, 159, 10, .07);
    border-left: 3px solid #ff9500;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #6b3a00;
}
[data-theme="dark"] .legal-warn { color: #ffb74d; }
.legal-warn-title {
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.legal-warn ul { margin: 0; padding-left: 18px; }
.legal-warn li { margin-bottom: 3px; }

.ownership-confirm {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    background: var(--bg-soft);
    margin-bottom: 12px;
}
.ownership-confirm input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.ownership-confirm-text { font-size: 13px; line-height: 1.5; }
.ownership-confirm-text b { font-weight: 600; }
.ownership-confirm-text small { color: var(--text-mute); font-size: 12.5px; }

/* Ships / delivery check cards (post.php) */
.ships-nx-card,
.delivery-nx-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(16, 185, 129, .06);
    border: 1px solid rgba(16, 185, 129, .25);
    border-radius: 12px;
    align-items: flex-start;
}
.delivery-nx-card {
    background: rgba(6, 182, 212, .06);
    border-color: rgba(6, 182, 212, .25);
}
.ships-nx-card > i,
.delivery-nx-card > i {
    font-size: 22px;
    flex-shrink: 0;
    color: #059669;
}
.delivery-nx-card > i { color: #0891b2; }

/* Inline ödənişsiz / razılaşmalı checkbox cərgəsi */
.inline-checks {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.inline-checks label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
}

/* ============================================================
   PAGE WIDTH WRAPPER (post, profile, edit, register, login)
   ============================================================ */
.page-narrow { max-width: 760px; margin: 0 auto; }
.page-medium { max-width: 920px; margin: 0 auto; }

/* ============================================================
   EDIT-LISTING photo grid
   ============================================================ */
.edit-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
}
.edit-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-soft);
    border: 1px solid var(--hairline);
    transition: transform .15s ease;
}
.edit-photo:hover { transform: translateY(-1px); }
.edit-photo img { width: 100%; height: 100%; object-fit: cover; display:block; }
.edit-photo.is-primary { outline: 2px solid var(--text); outline-offset: -1px; }
.edit-photo-badge {
    position: absolute;
    top: 6px; left: 6px;
    background: var(--text);
    color: var(--surface);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 980px;
    font-weight: 600;
    letter-spacing: .04em;
}
.edit-photo-del { position: absolute; top: 6px; right: 6px; margin: 0; }
.edit-photo-del button {
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.edit-photo-del button:hover { background: rgba(255, 59, 48, .85); }

/* ============================================================
   PROFILE.PHP
   ============================================================ */
.prof-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 6px 0 16px;
}
.prof-head h1 {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 600;
    letter-spacing: -0.024em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.prof-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.prof-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 22px 0 30px;
}
.prof-stat-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: 22px 16px;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    transition: all .15s ease;
    display: block;
}
.prof-stat-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.prof-stat-card.prof-stat-danger { color: #ff3b30; }
.prof-stat-num {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.024em;
    color: var(--text);
}
.prof-stat-card.prof-stat-danger .prof-stat-num { color: #ff3b30; }
.prof-stat-label {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Profile section selector card & h2 */
.prof-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}
.prof-section-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all .15s ease;
}
.prof-section-card:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.prof-section-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    background: var(--bg-soft) !important;
    color: var(--text) !important;
    flex-shrink: 0;
}
.prof-section-name { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.prof-section-desc { color: var(--text-mute); font-size: 12.5px; margin-top: 2px; }
.prof-section-arrow { margin-left: auto; color: var(--text-mute); }

.prof-h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0 16px;
    scroll-margin-top: 80px;
}
.prof-h2-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    background: var(--bg-soft) !important;
    color: var(--text) !important;
}

/* Promo card on profile */
.promo-card {
    background: rgba(48, 209, 88, .07);
    border: 1px solid rgba(48, 209, 88, .25);
    border-radius: var(--r-md);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.promo-card.promo-free { background: rgba(48, 209, 88, .07); border-color: rgba(48, 209, 88, .25); }
.promo-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(48, 209, 88, .15);
    color: #0a7a30;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.promo-title {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text);
    letter-spacing: -0.012em;
    margin-bottom: 4px;
}
.promo-badge {
    background: #ff3b30;
    color: #fff;
    padding: 1px 8px;
    border-radius: 980px;
    font-size: 10px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.promo-text {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.55;
    margin: 0;
}

/* Shop edit header (profil.php-də) */
.shop-edit-header {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 14px;
}
.shop-edit-cover {
    height: 110px;
    background: var(--bg-soft);
    background-size: cover;
    background-position: center;
}
.shop-cover-empty {
    background: linear-gradient(135deg, var(--bg-soft), #e8e8eb);
}
.shop-edit-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    margin-top: -28px;
}
.shop-edit-logo,
.shop-edit-logo.shop-logo-empty {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: var(--surface);
    border: 3px solid var(--surface);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mute);
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.shop-edit-info { flex: 1; min-width: 0; padding-top: 28px; }
.shop-edit-name {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.014em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.shop-edit-url {
    font-size: 12.5px;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   FILTER TABS (my-listings, və s.)
   ============================================================ */
.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 22px;
}
.filter-tabs a {
    padding: 7px 16px;
    border-radius: 980px;
    background: var(--surface);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--hairline);
    transition: all .15s ease;
}
.filter-tabs a:hover { background: var(--bg-soft); }
.filter-tabs a.active {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
}

/* ============================================================
   MY-LISTINGS items
   ============================================================ */
.my-listing-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.my-listing-item {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    transition: border-color .15s ease;
}
.my-listing-item:hover { border-color: var(--border-strong); }
.my-listing-thumb {
    width: 84px; height: 84px;
    border-radius: 12px;
    background: var(--bg-soft);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
}
.my-listing-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-listing-body { flex: 1; min-width: 0; }
.my-listing-title {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    font-size: 14.5px;
    letter-spacing: -0.01em;
    display: block;
}
.my-listing-meta {
    font-size: 12.5px;
    color: var(--text-mute);
    margin-top: 4px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.my-listing-statusrow {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.my-listing-actions { display: flex; gap: 6px; flex-direction: column; }

/* ============================================================
   MODAL (deactivate, və s.) — Apple sheet
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--hairline);
}
.modal-head {
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--hairline);
}
.modal-head h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.018em;
}
.modal-head p {
    margin: 8px 0 0;
    font-size: 13.5px;
    color: var(--text-mute);
}
.modal-close {
    background: none;
    border: 0;
    font-size: 22px;
    color: var(--text-mute);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: auto;
}
.modal-body { padding: 18px 24px 22px; }

/* Reason cards (deactivate modal) */
.reason-list { display: flex; flex-direction: column; gap: 8px; }
.reason-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    cursor: pointer;
    background: var(--surface);
    transition: all .15s ease;
}
.reason-card:hover { background: var(--bg-soft); }
.reason-card.selected { border-color: var(--text); background: var(--bg-soft); }
.reason-card input { margin: 0; flex-shrink: 0; }
.reason-card-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.reason-card-label { flex: 1; font-size: 14px; font-weight: 500; color: var(--text); }

/* ============================================================
   MESSAGES.PHP — chat layout + bubbles
   ============================================================ */
.messages-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 800px) {
    .messages-layout { grid-template-columns: 1fr; }
}

.threads-aside {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 0;
    max-height: 75vh;
    overflow-y: auto;
}
.threads-empty {
    padding: 30px 24px;
    text-align: center;
    color: var(--text-mute);
    font-size: 14px;
}
.threads-empty i { font-size: 36px; color: var(--text-faint); display: block; margin-bottom: 10px; }

.thread-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
    color: var(--text);
    transition: background .15s ease;
    align-items: center;
}
.thread-item:hover { background: var(--bg-soft); }
.thread-item.active { background: var(--bg-soft); }
.thread-item:last-child { border-bottom: 0; }
.thread-thumb {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
}
.thread-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thread-body { flex: 1; min-width: 0; }
.thread-top {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: baseline;
}
.thread-name {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    letter-spacing: -0.008em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.thread-time { font-size: 11px; color: var(--text-faint); flex-shrink: 0; }
.thread-listing-title {
    font-size: 12px;
    color: var(--text-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0;
}
.thread-last {
    font-size: 12.5px;
    color: var(--text-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.thread-last.unread { color: var(--text); font-weight: 600; }
.thread-unread-badge {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Chat panel */
.chat-shell {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: var(--text-mute);
    text-align: center;
}
.chat-empty i { font-size: 44px; color: var(--text-faint); margin-bottom: 14px; }
.chat-empty h3 { margin: 0 0 4px; font-weight: 600; color: var(--text); }
.chat-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--hairline);
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--bg-soft);
}
.chat-header-link {
    display: flex;
    gap: 12px;
    flex: 1;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}
.chat-header-thumb {
    width: 52px; height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
}
.chat-header-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-title {
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 15px;
    letter-spacing: -0.014em;
}
.chat-header-sub {
    font-size: 12.5px;
    color: var(--text-mute);
    margin-top: 2px;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface);
}
.chat-date-sep {
    text-align: center;
    margin: 14px 0 4px;
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 500;
}
.chat-row { display: flex; }
.chat-row.mine { justify-content: flex-end; }

.chat-msg {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 18px;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.42;
    word-wrap: break-word;
    border-bottom-left-radius: 6px;
}
.chat-row.mine .chat-msg {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 18px;
}
.chat-msg-time {
    font-size: 10.5px;
    opacity: .65;
    margin-top: 4px;
    text-align: right;
}

.chat-send-form {
    padding: 12px 14px;
    border-top: 1px solid var(--hairline);
    display: flex;
    gap: 8px;
    background: var(--surface);
}
.chat-send-form input {
    flex: 1;
    border-radius: 980px !important;
    padding-left: 16px !important;
}
.chat-send-form button {
    padding: 0 18px;
    border-radius: 980px;
    height: 44px;
    min-width: 50px;
}

/* ============================================================
   AUTH (login.php, register.php) — tab switcher + cards
   ============================================================ */
.auth-wrap {
    max-width: 440px;
    margin: 0 auto;
    padding: 30px 0 60px;
}
.auth-wrap .form-card { padding: 32px 28px; }
.auth-wrap h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.022em;
    text-align: center;
}
.auth-wrap .auth-sub {
    margin: 0 0 22px;
    text-align: center;
    color: var(--text-mute);
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    border-radius: 980px;
    padding: 4px;
    margin-bottom: 22px;
}
.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-soft);
    transition: all .18s ease;
}
.auth-tabs a.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-mute);
    font-size: 11.5px;
    margin: 22px 0 14px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hairline);
}

.auth-cp-btn {
    background: var(--text);
    color: var(--surface);
    border: 0;
    margin-top: 0;
}
.auth-cp-btn:hover { background: #000; color: #fff; opacity: 1; }

.auth-bottom {
    text-align: center;
    margin: 22px 0 0;
    color: var(--text-mute);
    font-size: 13.5px;
}
.auth-bottom a { color: var(--primary); font-weight: 600; }

.otp-code-input {
    text-align: center;
    font-size: 28px !important;
    letter-spacing: 12px !important;
    font-weight: 600 !important;
    padding-left: 12px !important;
}

/* ============================================================
   SHOPS LISTING (shops.php)
   ============================================================ */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.shop-tile {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all .18s ease;
    display: block;
}
.shop-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.shop-tile-cover {
    height: 90px;
    background: linear-gradient(135deg, var(--bg-soft), #e8e8eb);
    background-size: cover;
    background-position: center;
}
.shop-tile-body {
    padding: 14px 16px 18px;
    position: relative;
}
.shop-tile-logo,
.shop-tile-logo.shop-logo-empty {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: var(--surface);
    border: 2px solid var(--surface);
    object-fit: cover;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-mute);
    font-size: 20px;
    margin: -36px 0 10px;
    box-shadow: var(--shadow-sm);
}
.shop-tile-name {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.014em;
    margin: 0 0 4px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}
.shop-tile-meta {
    font-size: 12px;
    color: var(--text-mute);
    display: flex;
    gap: 12px;
}

/* ============================================================
   SELLER head (seller.php)
   ============================================================ */
.seller-head {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    margin: 6px 0 24px;
}
.seller-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-mute);
    font-size: 32px;
    flex-shrink: 0;
}
.seller-head h1 {
    margin: 0 0 4px;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 600;
    letter-spacing: -0.018em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.seller-head-meta {
    font-size: 12.5px;
    color: var(--text-mute);
}

/* ============================================================
   SHOP PUBLIC PAGE (shop.php)
   ============================================================ */
.shop-public-header {
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    position: relative;
    margin-top: -1px;
}
.shop-cover-public {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-soft), #e8e8eb);
    background-size: cover;
    background-position: center;
}
.shop-public-info {
    display: flex;
    gap: 20px;
    padding-bottom: 22px;
    margin-top: -40px;
    align-items: flex-end;
}
.shop-logo-wrap-public { flex-shrink: 0; }
.shop-logo-public,
.shop-logo-public.shop-logo-empty {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: var(--surface);
    border: 4px solid var(--surface);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mute);
    font-size: 36px;
    box-shadow: var(--shadow-md);
}
.shop-public-meta { flex: 1; min-width: 0; padding-bottom: 4px; }
.shop-public-name {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.022em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.shop-public-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-mute);
    margin-bottom: 14px;
}
.shop-public-stats i { margin-right: 4px; opacity: .85; }
.shop-public-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
}
@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-public-info { margin-top: -28px; gap: 14px; }
    .shop-logo-public { width: 76px; height: 76px; font-size: 28px; border-radius: 18px; }
}
.shop-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 80px;
}
.shop-aside-h3 {
    margin: 0 0 12px;
    font-size: 11.5px;
    text-transform: uppercase;
    color: var(--text-faint);
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* ============================================================
   PROMOTE.PHP — plan kartları
   ============================================================ */
.promote-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: none;
}
.promote-card-head {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--hairline);
    background: var(--bg-soft);
}
.promote-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--plan-color, var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.promote-name {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.014em;
    color: var(--text);
}
.promote-desc {
    font-size: 13px;
    color: var(--text-mute);
    margin-top: 2px;
}
.promote-options {
    padding: 16px 24px 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.promote-option {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--surface);
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
    text-align: left;
}
.promote-option:hover {
    border-color: var(--plan-color, var(--text));
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.promote-option-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.promote-option-price {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--plan-color, var(--text));
    margin-top: 6px;
}
.promote-option-price span {
    font-size: 13px;
    color: var(--text-mute);
    font-weight: 500;
}

/* ============================================================
   PAYMENT.PHP
   ============================================================ */
.pay-summary {
    background: var(--bg-soft) !important;
    border: 1px solid var(--hairline) !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 24px !important;
    margin-bottom: 18px;
}
.pay-summary-amount {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.024em;
    color: var(--text);
    margin-top: 6px;
}
.pay-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--text);
    color: var(--surface);
    font-size: 11.5px;
    font-weight: 600;
    margin-right: 8px;
    flex-shrink: 0;
}
.pay-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 6px;
}
.pay-method-card {
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--surface);
    padding: 18px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all .15s ease;
    display: block;
}
.pay-method-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-soft);
    transform: translateY(-2px);
}
.pay-method-card.active {
    border-color: var(--text);
    background: var(--bg-soft);
}
.pay-method-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
}
.pay-method-card.active .pay-method-icon { background: var(--text); color: var(--surface); }
.pay-method-name { font-size: 13px; font-weight: 600; letter-spacing: -0.008em; }

/* ============================================================
   PAYMENT-RESULT.PHP
   ============================================================ */
.result-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 40px 32px;
    text-align: center;
}
.result-card.result-success { border-color: rgba(48, 209, 88, .35); background: rgba(48, 209, 88, .04); }
.result-card.result-pending { border-color: rgba(255, 159, 10, .35); background: rgba(255, 159, 10, .04); }
.result-card.result-error   { border-color: rgba(255, 59, 48, .35); background: rgba(255, 59, 48, .04); }

.result-icon { font-size: 56px; line-height: 1; margin-bottom: 18px; }
.result-card.result-success .result-icon { color: #30d158; }
.result-card.result-pending .result-icon { color: #ff9500; }
.result-card.result-error   .result-icon { color: #ff3b30; }

.result-card h1 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--text);
}
.result-amount {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--text);
}
.result-sub { margin: 0 0 18px; font-size: 14px; color: var(--text-mute); }
.result-info {
    background: var(--surface);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    margin: 0 0 22px;
    font-size: 13.5px;
    color: var(--text-soft);
    line-height: 1.55;
    text-align: left;
}
.result-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE — TABLET (max-width: 900px)
   ============================================================ */
@media (max-width: 900px) {
    .container { padding-left: 16px; padding-right: 16px; }

    .hero, .hero-compact, .hero-tight {
        padding: 36px 0 22px;
    }
    .hero-title, .hero-title.hero-title-sm {
        font-size: clamp(28px, 5vw, 44px);
        letter-spacing: -0.024em;
    }
    .hero-subtitle { font-size: clamp(15px, 1.8vw, 18px); }

    section { padding: 22px 0 !important; }

    .section-head h2 { font-size: clamp(22px, 3vw, 28px); }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {
    :root {
        --header-h: 48px;
        --container-w: 100%;
    }

    body { padding-bottom: 70px; }  /* mobile bottom nav (60px) + breathing room */
    .container { padding-left: 14px; padding-right: 14px; }

    /* HEADER — mobil-də search bar gizlət, düymələri kiçilt */
    .site-header { padding: 0; }
    .header-inner {
        gap: 6px;
        padding-left: 14px;
        padding-right: 14px;
    }
    .search-bar { display: none; }
    .brand-text { display: none; }
    .brand { gap: 0; }

    /* Dil seçimi və tema toggle daha kompakt */
    .lang-switch { margin-right: 0 !important; }
    .lang-opt { padding: 3px 8px !important; font-size: 11px !important; }
    .theme-toggle { width: 32px; height: 32px; }

    .btn { padding: 7px 12px; font-size: 12.5px; }
    .btn-sm { padding: 5px 10px; font-size: 11.5px; }
    .btn-lg { padding: 12px 22px; font-size: 14.5px; }

    /* "+ Elan yerləşdir" düyməsindəki text-i mobil-də gizlət, sadəcə ikon */
    .header-actions .btn-accent:not(.cta-btn) {
        padding: 8px 12px;
        white-space: nowrap;
    }
    .header-actions .btn-accent .d-none-mobile { display: none !important; }

    /* Login/Daxil düyməsi mobil-də kiçik */
    .header-actions .btn-outline.btn-sm { padding: 5px 10px; font-size: 11.5px; }

    .icon-btn { width: 32px; height: 32px; }

    /* HERO */
    .hero, .hero-compact, .hero-tight {
        padding: 28px 0 16px;
        text-align: center;
    }
    .hero-row { gap: 16px; }
    .hero-title, .hero-title.hero-title-sm {
        font-size: clamp(24px, 7.5vw, 32px) !important;
        letter-spacing: -0.022em;
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: 15px;
        line-height: 1.4;
        padding: 0 10px;
    }
    .hero-quick { gap: 8px; }
    .hero-quick .btn-accent { padding: 12px 22px; font-size: 14px; }
    .hero-quick .hero-link, .hero-stat { font-size: 13px; padding: 8px 6px; }

    /* CATEGORY GRID — mobil-də 2 sütun + kiçik padding */
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 18px;
    }
    .cat-card {
        padding: 12px 10px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .cat-card-icon { width: 36px; height: 36px; font-size: 16px; margin: 0 auto; }
    .cat-card-name { font-size: 13px; }
    .cat-card-count { font-size: 11.5px; }
    .cat-more-btn { padding: 8px 16px; font-size: 12.5px; }

    /* SECTIONS spacing */
    section { padding: 18px 0 !important; }
    section + section { padding-top: 8px !important; }

    .section-head { margin-bottom: 14px; }
    .section-head h2 { font-size: clamp(20px, 5vw, 24px); }
    .section-head a { font-size: 13px; }

    /* LISTING GRID — mobil-də 2 sütun */
    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .listing-card { border-radius: 14px; }
    .listing-body { padding: 10px 11px 12px; }
    .listing-price { font-size: 15px; }
    .listing-title { font-size: 12.5px; }
    .listing-meta { font-size: 11px; gap: 6px; }

    /* AD CARDS */
    .ad-clickwrap { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
    .ad-icon { width: 38px; height: 38px; font-size: 16px; }
    .ad-title { font-size: 14.5px !important; }
    .ad-text { font-size: 12.5px !important; }
    .ad-cta { font-size: 12.5px !important; }

    /* SEO RICH (anasəhifə altı) */
    .seo-rich { padding: 40px 0 30px; }
    .seo-rich .regions { grid-template-columns: repeat(2, 1fr); }
    .seo-rich .cats { grid-template-columns: repeat(2, 1fr); }

    /* FOOTER — mobil-də stack */
    .site-footer { padding: 40px 0 24px; }
    .footer-seo {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-bottom: 22px;
        margin-bottom: 22px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
        padding-bottom: 22px;
    }
    .footer-col h4 { font-size: 12.5px; }
    .footer-col a { font-size: 12px; line-height: 1.8; }

    /* LEGAL chips */
    .legal-chips-wrap { padding: 18px 16px; }
    .legal-chips a { font-size: 11.5px; padding: 6px 12px; }

    /* FORM CARDS */
    .form-card { padding: 20px 18px; }
    .form-card-title { font-size: 16px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-row .form-group { width: 100%; }

    /* AUTH (login/register) */
    .auth-wrap { padding: 18px 0 40px; }
    .auth-wrap .form-card { padding: 24px 20px; }
    .auth-wrap h1 { font-size: 22px; }

    /* POST PAGE */
    .post-page .form-card { padding: 20px 18px; }
    .post-page .form-card > h3 { font-size: 15px; margin-top: 22px; }
    .import-card summary { padding: 14px 16px; font-size: 13px; }
    .import-card-body { padding: 16px; }

    /* LISTING DETAIL (ldd-*) */
    .ldd-grid { display: flex !important; flex-direction: column; gap: 14px; }
    .ldd-right { position: static !important; }
    .ldd-title { padding: 18px 18px; }
    .ldd-title h1 { font-size: 20px !important; }
    .ldd-price { font-size: 24px; }
    .ldd-meta { gap: 12px; font-size: 12.5px; }
    .ldd-attrs-grid { grid-template-columns: 1fr; }
    .lg-thumbs { padding: 10px !important; gap: 6px; }
    .lg-thumb { width: 56px !important; height: 56px !important; }
    .lg-nav { display: none !important; }
    .lg-main { aspect-ratio: 1 / 1 !important; }

    /* CATEGORY / SEARCH */
    .cat-layout, .search-layout, .shop-layout { grid-template-columns: 1fr; gap: 14px; }
    .filters-aside, .shop-aside { position: static !important; padding: 18px; }

    /* PROFILE */
    .prof-head { gap: 8px; }
    .prof-head h1 { font-size: 24px; }
    .prof-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .prof-stat-card { padding: 16px 12px; }
    .prof-stat-num { font-size: 22px; }
    .prof-section-grid { grid-template-columns: 1fr; }
    .prof-h2 { font-size: 18px; margin: 24px 0 12px; }

    /* MY-LISTINGS */
    .my-listing-item { padding: 12px; gap: 10px; }
    .my-listing-thumb { width: 64px; height: 64px; }
    .my-listing-title { font-size: 13.5px; }
    .my-listing-meta { font-size: 11.5px; gap: 6px; }
    .my-listing-actions { gap: 4px; }
    .my-listing-actions .btn-sm { padding: 5px 8px; font-size: 11px; }
    .filter-tabs { gap: 4px; }
    .filter-tabs a { padding: 6px 12px; font-size: 11.5px; }

    /* MESSAGES — sol panel tam genişlik (chat seçiməyəndə) */
    .messages-layout { grid-template-columns: 1fr; gap: 12px; }
    .threads-aside { max-height: 70vh; }
    .chat-shell { min-height: 70vh; }
    .chat-list { padding: 16px 14px; }
    .chat-header { padding: 12px 14px; }
    .chat-header-thumb { width: 44px; height: 44px; }
    .chat-header-title { font-size: 14px; }
    .chat-send-form { padding: 10px 12px; }

    /* SHOPS grid */
    .shops-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .shop-tile-cover { height: 70px; }
    .shop-tile-logo { width: 44px; height: 44px; font-size: 18px; margin-top: -28px; }
    .shop-tile-name { font-size: 13.5px; }
    .shop-tile-meta { font-size: 11px; gap: 8px; }
    .shop-tile-body { padding: 12px 14px 14px; }

    /* SHOP public header */
    .shop-cover-public { height: 130px; }
    .shop-public-name { font-size: 22px; }
    .shop-public-stats { font-size: 12px; gap: 10px; }

    /* SELLER head */
    .seller-head { padding: 16px; }
    .seller-avatar { width: 52px; height: 52px; font-size: 24px; }
    .seller-head h1 { font-size: 18px; }

    /* PROMOTE */
    .promote-card-head { padding: 16px 18px; gap: 12px; }
    .promote-icon { width: 38px; height: 38px; font-size: 18px; }
    .promote-name { font-size: 15px; }
    .promote-desc { font-size: 12.5px; }
    .promote-options { padding: 12px 16px 18px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
    .promote-option { padding: 14px; }
    .promote-option-price { font-size: 20px; }

    /* PAYMENT */
    .pay-summary { padding: 18px 18px !important; }
    .pay-summary-amount { font-size: 26px; }
    .pay-methods-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pay-method-card { padding: 14px 8px; }

    /* RESULT */
    .result-card { padding: 32px 22px; }
    .result-icon { font-size: 44px; }
    .result-card h1 { font-size: 20px; }

    /* LEGAL */
    .legal-wrap { padding: 18px 0 40px; }
    .legal-content { padding: 24px 20px !important; }
    .legal-content h1 { font-size: 24px !important; }
    .legal-content h2 { font-size: 18px !important; }

    /* SEARCH form */
    .search-page-head h1 { font-size: 22px; }

    /* PAGINATION */
    .pagination a, .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 10px;
    }

    /* MODAL */
    .modal-card { max-height: 86vh; }
    .modal-head { padding: 18px 18px 14px; }
    .modal-body { padding: 16px 18px 20px; }

    /* HEADER notifikasiya banner-i (profileCompleteBanner) — kompakt */
    #profileCompleteBanner .container { padding: 9px 14px !important; }

    /* Edit photos grid - daha kiçik */
    .edit-photos-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max-width: 380px)
   ============================================================ */
@media (max-width: 380px) {
    .header-inner { gap: 4px; padding-left: 12px; padding-right: 12px; }
    .lang-switch { display: none !important; }   /* çox dar ekranda dil seçimi gizlət */
    .header-actions .btn-outline.btn-sm { display: none; } /* Daxil ol gizlət — profil ikonuna qalır */

    .hero-title, .hero-title.hero-title-sm { font-size: 22px !important; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HORIZONTAL OVERFLOW QORUMA
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video { max-width: 100%; height: auto; }
table:not([class*="adm"]) { overflow-x: auto; display: block; }
@media (min-width: 901px) {
    table:not([class*="adm"]) { display: table; }
}

/* Premium section (anasəhifə) */
.premium-section { background: var(--bg-soft) !important; }
section[style*="linear-gradient"] { background: var(--bg-soft) !important; }
