/* ============================================
   OTOKURDU ADMIN PANEL
   Standalone CSS - her CSS değişkeni burada
   ============================================ */

:root {
    --navy-900: #0B1426;
    --navy-800: #162640;
    --navy-700: #1E3A8A;
    --navy-600: #2D4F9E;
    --sunset-900: #7C2D12;
    --sunset-700: #9A3412;
    --sunset-500: #C2410C;
    --sunset-400: #EA580C;
    --sunset-300: #F97316;
    --sunset-100: #FED7AA;
    --gold-600: #B45309;
    --gold-400: #F59E0B;
    --gold-300: #FCD34D;
    --paper: #F8F5EF;
    --paper-warm: #F0EBE0;
    --cream: #FAFAF7;
    --ink: #0F1629;
    --muted: #64748B;
    --muted-soft: #94A3B8;
    --line: rgba(15, 22, 41, 0.08);
    --line-strong: rgba(15, 22, 41, 0.16);
    --success: #10B981;
    --danger: #DC2626;
    --warning: #F59E0B;
    
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: var(--font-display);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

body.admin-body {
    overflow-x: hidden;
}

/* Kullanıcı yüklediği logoya göre dinamik marker */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-400), var(--sunset-400));
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ========== LOGIN ========== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--sunset-700));
    position: relative;
    overflow: hidden;
}

.login-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.login-shape.s1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: var(--sunset-400);
}

.login-shape.s2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
    background: var(--gold-400);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 32px 80px rgba(11, 20, 38, 0.35);
    position: relative;
    z-index: 1;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.login-logo .logo-mark {
    width: 40px;
    height: 40px;
}

.login-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy-900);
}

.login-logo .logo-text em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--sunset-500);
}

.login-card h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy-900);
    margin-bottom: 8px;
    text-align: center;
}

.login-sub {
    color: var(--muted);
    text-align: center;
    margin-bottom: 28px;
    font-size: 14px;
}

.login-card input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    transition: all 0.2s;
}

.login-card input:focus {
    outline: none;
    border-color: var(--sunset-400);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.login-hint {
    font-size: 12px;
    color: var(--muted-soft);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

/* ========== BUTONLAR ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sunset-400), var(--sunset-500));
    color: white;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4);
}

.btn-outline {
    background: white;
    color: var(--navy-900);
    border-color: var(--line-strong);
}

.btn-outline:hover {
    background: var(--cream);
    border-color: var(--navy-900);
}

.btn-full { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}

.btn-danger:hover {
    background: #FECACA;
}

/* ========== MOBILE HEADER ========== */
.mobile-header {
    position: sticky;
    top: 0;
    display: none; /* Desktop'ta gizli */
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--navy-900);
    color: white;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-btn, .mobile-logout {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobile-menu-btn:hover, .mobile-logout:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
}

.mobile-logo .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

/* ========== ADMIN APP LAYOUT ========== */
.admin-app {
    display: flex;
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.admin-sidebar {
    width: 260px;
    background: var(--navy-900);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 90;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-logo {
    padding: 24px 24px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.admin-logo .logo-mark {
    width: 36px;
    height: 36px;
}

.admin-logo .logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sidebar-close-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: none;
    align-items: center;
    justify-content: center;
}

.admin-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.admin-nav-item.active {
    background: linear-gradient(135deg, var(--sunset-400), var(--sunset-500));
    color: white;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.admin-nav-item svg {
    flex-shrink: 0;
}

/* User */
.admin-user {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-400), var(--sunset-400));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.admin-user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.admin-user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 85;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

/* ========== MAIN ========== */
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px 36px;
    min-width: 0;
    min-height: 100vh;
}

.admin-tab {
    display: none;
    animation: fadeIn 0.25s ease-out;
}

.admin-tab.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== HEADER ========== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.admin-header-text h1 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.admin-header-text p {
    color: var(--muted);
    font-size: 14px;
}

.admin-header-text p code {
    font-family: var(--font-mono);
    background: var(--cream);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.admin-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Demo Yükle Butonu - dikkat çekici */
.btn-demo-load {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #10B981 100%);
    background-size: 200% 100%;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    animation: demoLoadGradient 4s linear infinite, demoLoadPulse 2.5s ease-in-out infinite;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

@keyframes demoLoadGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes demoLoadPulse {
    0%, 100% { 
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    }
    50% { 
        box-shadow: 0 10px 28px rgba(16, 185, 129, 0.55),
                    0 0 0 4px rgba(16, 185, 129, 0.15);
    }
}

.btn-demo-load:hover {
    transform: translateY(-2px);
}

.btn-demo-load:active {
    transform: translateY(0);
}

.btn-demo-load:disabled {
    animation: none;
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6B7280, #4B5563);
}

/* Demo güncelle butonu - mavi gradient */
.btn-demo-update {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 50%, #3B82F6 100%);
    background-size: 200% 100%;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
    transition: all 0.3s;
}

.btn-demo-update:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.5);
}

.btn-demo-update:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6B7280, #4B5563);
}

/* ========== FILTERS ========== */
.admin-filters {
    display: grid;
    grid-template-columns: 1fr 200px 200px;
    gap: 10px;
    margin-bottom: 24px;
}

.admin-search, .admin-select {
    padding: 11px 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: white;
    transition: border-color 0.2s;
}

.admin-search:focus, .admin-select:focus {
    outline: none;
    border-color: var(--sunset-400);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.08);
}

/* ========== CARS GRID ========== */
.admin-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.admin-car-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: default;
}

.admin-car-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 8px 24px rgba(11, 20, 38, 0.06);
    transform: translateY(-2px);
}

.admin-car-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: scale(0.95);
}

.admin-car-card.drop-target {
    border-color: var(--sunset-500);
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.15), 0 12px 32px rgba(234, 88, 12, 0.2);
    transform: translateY(-4px);
}

/* SIRA NUMARASI VE DRAG HANDLE */
.admin-car-order-controls {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--line-strong);
    border-radius: 10px;
    padding: 4px 6px;
    box-shadow: 0 4px 12px rgba(11, 20, 38, 0.1);
}

.admin-car-drag-handle {
    cursor: grab;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    padding: 0 4px;
    user-select: none;
    transition: color 0.15s;
}

.admin-car-drag-handle:hover {
    color: var(--navy-900);
}

.admin-car-drag-handle:active {
    cursor: grabbing;
}

.admin-car-order-input {
    width: 50px;
    padding: 5px 8px;
    border: none;
    background: var(--cream);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-900);
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.admin-car-order-input::-webkit-outer-spin-button,
.admin-car-order-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.admin-car-order-input:focus {
    outline: none;
    background: var(--gold-400);
    color: var(--navy-900);
    box-shadow: 0 0 0 2px var(--sunset-500);
}

/* GÖRSEL SAYISI BADGE */
.admin-car-image-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

/* ARAÇ GÖRSELİ - SABİT YÜKSEKLİK */
.admin-car-image {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white !important;
}

.admin-car-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
    box-sizing: border-box;
}

.admin-car-image .car-svg,
.admin-car-image .car-svg-fallback svg {
    width: 80%;
    height: 80%;
    max-height: 140px;
}

.admin-car-image .car-svg-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mini badge admin kartında */
.admin-car-badge-mini {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 38, 38, 0.95);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    z-index: 2;
    max-width: calc(100% - 60px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Featured yıldızı */
.admin-car-featured {
    position: absolute;
    top: 8px;
    left: 50px; /* sıra numarası kontrollerinden sonra */
    background: var(--gold-400);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* FİYAT SATIRI */
.admin-car-price {
    margin: 8px 0;
    padding: 8px 10px;
    background: linear-gradient(135deg, #FFF8F1, #FFEDD5);
    border-radius: 8px;
    font-size: 13px;
}

.admin-car-price strong {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    display: block;
}

.admin-car-price small {
    color: var(--muted);
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

.admin-car-price-empty {
    background: #FEF3C7;
    color: #92400E;
    font-style: italic;
    text-align: center;
}

.admin-car-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.admin-car-brand {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.admin-car-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.admin-car-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    margin-left: 8px;
}

.badge-binek { background: #DBEAFE; color: #1E40AF; }
.badge-ticari { background: #FEF3C7; color: #92400E; }
.badge-otv { background: #D1FAE5; color: #065F46; }

.admin-car-featured-old {
    /* Bu eski class artık kullanılmıyor */
    display: none;
}

.admin-car-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.admin-car-tag {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--cream);
    border-radius: 6px;
    color: var(--muted);
}

/* Eski tek satır fiyat - artık renderAdminPriceRow ile gelen blok kullanılıyor */
.admin-car-saving {
    font-size: 12px;
    color: var(--success);
    margin-bottom: 12px;
    font-weight: 600;
}

.admin-car-actions {
    margin-top: auto;
    display: flex;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.car-action-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: white;
    color: var(--navy-900);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.car-action-btn:hover {
    background: var(--navy-900);
    color: white;
    border-color: var(--navy-900);
}

.car-action-btn.delete {
    color: var(--danger);
    border-color: #FECACA;
}

.car-action-btn.delete:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    background: white;
    border: 2px dashed var(--line-strong);
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--muted);
    font-size: 14px;
    max-width: 380px;
    margin: 0 auto;
}

/* ========== POPULAR TAB ========== */
.popular-intro {
    margin-bottom: 28px;
}

.intro-card {
    background: linear-gradient(135deg, var(--cream), var(--paper-warm));
    border: 1px solid var(--line);
    border-left: 4px solid var(--sunset-400);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.intro-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.intro-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.intro-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

.intro-card p strong {
    color: var(--sunset-500);
}

.popular-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
    margin-top: 24px;
    letter-spacing: -0.01em;
}

.popular-desc {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 16px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.popular-slot {
    background: white;
    border: 2px dashed var(--line-strong);
    border-radius: 16px;
    padding: 20px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.popular-slot.filled {
    border-style: solid;
    border-color: var(--sunset-400);
    background: linear-gradient(180deg, #FEF3C7 0%, white 40%);
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
}

.popular-slot-num {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy-900);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.popular-slot.filled .popular-slot-num {
    background: linear-gradient(135deg, var(--gold-400), var(--sunset-400));
}

.popular-slot-empty {
    color: var(--muted-soft);
    font-size: 13px;
}

.popular-slot-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.4;
}

.popular-slot-info {
    padding-top: 32px;
}

.popular-slot-brand {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.popular-slot-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.popular-slot-price {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--sunset-500);
    font-weight: 700;
    margin-bottom: 12px;
}

.popular-remove-btn {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    font-family: inherit;
}

.popular-remove-btn:hover {
    background: var(--danger);
    color: white;
}

.popular-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.popular-item {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: left;
}

.popular-item:hover {
    border-color: var(--sunset-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 20, 38, 0.06);
}

.popular-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.popular-item-brand {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.popular-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.popular-item-price {
    font-size: 12px;
    color: var(--sunset-500);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ========== COMPARE TAB ========== */


.mini-stat {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 22px;
}

.mini-stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--sunset-500), var(--gold-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mini-stat-label {
    font-size: 12px;
    color: var(--muted);
}


.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}


.sc-chip {
    font-size: 11px;
    padding: 3px 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--navy-900);
    font-weight: 600;
}

.sc-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.sc-delete:hover {
    background: var(--danger);
    color: white;
}


.empty-row-text {
    color: var(--muted);
    text-align: center;
    padding: 30px;
    font-size: 13px;
}


/* ========== TABLE ========== */
.table-wrap {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--cream);
}

.empty-row {
    text-align: center;
    padding: 40px !important;
    color: var(--muted) !important;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending { background: #FEF3C7; color: #92400E; }
.status-active { background: #DBEAFE; color: #1E40AF; }
.status-completed { background: #D1FAE5; color: #065F46; }

/* ========== BRAND TAB ========== */
.brand-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.brand-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}

.brand-card:first-child {
    grid-column: 1 / -1;
}

.brand-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.logo-preview-area {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--cream);
    border-radius: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.logo-preview {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(11, 20, 38, 0.15);
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo-preview-contexts {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.logo-preview-contexts h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
}

.preview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.preview-ctx-dark, .preview-ctx-light {
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.preview-ctx-dark {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.preview-ctx-light {
    background: white;
    border: 1px solid var(--line);
}

.preview-ctx-label {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.preview-ctx-light .preview-ctx-label {
    color: var(--muted-soft);
}

.preview-ctx-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

.preview-logo-mark-dark, .preview-logo-mark-light {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold-400), var(--sunset-400));
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-logo-mark-dark img, .preview-logo-mark-light img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-text {
    color: white;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.preview-text-dark {
    color: var(--navy-900);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.color-picker-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker-row input[type="color"] {
    width: 54px;
    height: 44px;
    padding: 4px;
    border: 1.5px solid var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
    background: white;
}

.color-picker-row input[type="text"] {
    flex: 1;
    font-family: var(--font-mono);
}

/* ============ LOGO UPLOAD - BANNER & STATUS ============ */
.upload-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #DBEAFE, #E0E7FF);
    border-left: 4px solid #3B82F6;
    border-radius: 10px;
    margin-bottom: 20px;
}

.uib-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.uib-text {
    font-size: 13px;
    color: #1E3A8A;
    line-height: 1.5;
}

.uib-text strong {
    font-weight: 700;
}

.logo-status {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.logo-status strong {
    color: var(--navy-900);
}

/* Logo'nun göründüğü yerler listesi */
.logo-where-shown {
    margin-top: 24px;
    padding: 18px 22px;
    background: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--line);
}

.logo-where-shown h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.where-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 16px;
}

.where-list li {
    font-size: 13px;
    color: var(--ink);
    padding: 4px 0;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .where-list {
        grid-template-columns: 1fr;
    }
}

/* ========== STATS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    position: relative;
    transition: all 0.25s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 20, 38, 0.06);
}

.stat-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 14px;
}

.stat-blue { background: linear-gradient(135deg, #3B82F6, #1E40AF); }
.stat-amber { background: linear-gradient(135deg, var(--gold-400), var(--gold-600, #D97706)); }
.stat-orange { background: linear-gradient(135deg, var(--sunset-400), var(--sunset-500)); }
.stat-green { background: linear-gradient(135deg, #10B981, #059669); }
.stat-purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.stat-pink { background: linear-gradient(135deg, #EC4899, #BE185D); }
.stat-cyan { background: linear-gradient(135deg, #06B6D4, #0E7490); }
.stat-yellow { background: linear-gradient(135deg, #FBBF24, #B45309); }

.stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-trend {
    font-size: 11px;
    color: var(--muted-soft);
    font-weight: 500;
}

/* Stats row - activity feed + brand stats yan yana */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
}

.stats-block {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    min-height: 320px;
}

.stats-block-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

/* Activity feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 480px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--cream);
    border-radius: 10px;
    transition: all 0.18s;
}

.activity-item:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(11, 20, 38, 0.04);
}

.activity-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(11, 20, 38, 0.06);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-desc {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 11px;
    color: var(--muted-soft);
    flex-shrink: 0;
    font-weight: 500;
}

.activity-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

/* Brand stats */
.brand-stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 480px;
    overflow-y: auto;
}

.brand-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: var(--cream);
    border-radius: 10px;
    transition: all 0.18s;
}

.brand-stat-row:hover {
    background: white;
    box-shadow: 0 4px 10px rgba(11, 20, 38, 0.04);
}

.bs-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.bs-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold-400), var(--sunset-400));
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.bs-info {
    flex: 1;
    min-width: 0;
}

.bs-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.bs-bar-wrap {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
}

.bs-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sunset-400), var(--gold-400));
    border-radius: 2px;
    transition: width 0.6s ease-out;
}

.bs-count {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-900);
    flex-shrink: 0;
    min-width: 24px;
    text-align: right;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 38, 0.55);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}

.modal-overlay.show,
.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: modalSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-lg {
    max-width: 640px;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--cream);
    border: none;
    border-radius: 50%;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.modal-sub {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 20px;
}

/* ========== FORMS ========== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Karşılaştırma bölümü ayırıcı */
.form-section-divider {
    grid-column: 1 / -1;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px dashed rgba(15, 22, 41, 0.16);
}

.form-section-divider h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.section-help {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.form-section-mini {
    grid-column: 1 / -1;
    margin: 16px 0;
    padding: 16px 18px;
    background: #FAFAF7;
    border: 1px solid rgba(15, 22, 41, 0.08);
    border-radius: 12px;
}

.form-section-mini h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-section-mini .form-row {
    margin-top: 8px;
    gap: 10px;
}

.form-info-tip {
    grid-column: 1 / -1;
    padding: 14px 18px;
    background: linear-gradient(135deg, #DBEAFE, #E0E7FF);
    border-left: 4px solid #3B82F6;
    border-radius: 10px;
    font-size: 13px;
    color: #1E3A8A;
    margin: 16px 0;
    line-height: 1.5;
}

.form-info-tip strong {
    font-weight: 700;
}

/* ============ BAYİ MARKA SEÇİCİ ============ */
.brand-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
    padding: 14px;
    background: var(--cream);
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    max-height: 240px;
    overflow-y: auto;
}

.brand-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s;
    font-size: 13px;
    user-select: none;
}

.brand-checkbox:hover {
    border-color: var(--navy-700);
    background: #FAFAF7;
}

.brand-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--sunset-500);
    flex-shrink: 0;
    cursor: pointer;
}

.brand-checkbox span {
    flex: 1;
    font-weight: 500;
    color: var(--ink);
}

.brand-checkbox.is-checked {
    background: linear-gradient(135deg, #FEF3C7, #FED7AA);
    border-color: var(--sunset-400);
    color: #78350F;
    font-weight: 600;
}

.brand-checkbox.is-checked span {
    color: #78350F;
    font-weight: 700;
}

/* ============ BAYİ TABLO AKSİYONLARI ============ */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--line-strong);
    background: white;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
    font-size: 12px;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(11, 20, 38, 0.08);
}

.btn-action-edit:hover {
    background: var(--navy-900);
    color: white;
    border-color: var(--navy-900);
}

.btn-action-delete:hover {
    background: #FEE2E2;
    color: var(--danger);
    border-color: #FECACA;
}

/* WhatsApp mini button */
.wa-btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.wa-btn-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}

.wa-btn-mini svg {
    flex-shrink: 0;
}

.verified-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

.inactive-mini {
    display: inline-block;
    padding: 1px 6px;
    background: #FEE2E2;
    color: var(--danger);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

.form-field.full {
    grid-column: 1 / -1;
    margin-bottom: 14px;
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy-900);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: white;
    transition: all 0.2s;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--sunset-400);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.08);
}

.form-help {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 0;
    font-size: 13px;
    color: var(--ink);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sunset-400);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* ========== PRICE INFO ========== */
.price-info-box {
    background: var(--cream);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.price-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.price-info-label {
    color: var(--muted);
}

.price-info-value {
    font-family: var(--font-mono);
    color: var(--navy-900);
    font-weight: 600;
}

/* ========== BULK PREVIEW ========== */
.bulk-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    background: var(--cream);
    border-radius: 12px;
    margin: 14px 0;
}

.bulk-preview-stat {
    text-align: center;
}

.bulk-preview-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.bulk-preview-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--sunset-500);
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--navy-900);
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(11, 20, 38, 0.25);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 14px;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { background: #065F46; }
.toast.error { background: #991B1B; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .admin-main { padding: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-filters { grid-template-columns: 1fr 1fr; }
    .admin-filters .admin-search { grid-column: 1 / -1; }
    .brand-settings { grid-template-columns: 1fr; }
    .brand-card:first-child { grid-column: auto; }
    .popular-grid { grid-template-columns: repeat(2, 1fr); }
    
}

@media (max-width: 900px) {
    .mobile-header { display: flex; }
    
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.3);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 20px;
    }
    
    .sidebar-close-btn {
        display: flex;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-header-actions {
        flex-wrap: wrap;
    }
    
    .admin-header-actions .btn {
        flex: 1;
        min-width: 140px;
    }
    
    /* User info'yu mobilde sidebar'da göster ama logout butonu ana bölümde */
    .admin-user {
        padding: 16px 20px;
    }
}

@media (max-width: 640px) {
    .admin-main { padding: 16px; }
    
    .admin-filters {
        grid-template-columns: 1fr;
    }
    
    .admin-cars-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    
    
    .mini-stat {
        padding: 14px 18px;
    }
    
    .mini-stat-value {
        font-size: 26px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-value {
        font-size: 26px;
    }
    
    .admin-header-text h1 {
        font-size: 22px;
    }
    
    .admin-header-actions {
        flex-direction: column;
    }
    
    .admin-header-actions .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal {
        padding: 24px 20px;
        max-height: 100vh;
        border-radius: 16px;
    }
    
    .modal h3 {
        font-size: 18px;
        padding-right: 40px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    .preview-row {
        grid-template-columns: 1fr;
    }
    
    .logo-preview-area {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-actions {
        width: 100%;
    }
    
    .logo-actions .btn {
        width: 100%;
    }
    
    
    
    .popular-list {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* ============================================
   FİYAT ARALIĞI KUTUSU
   ============================================ */
.price-range-box {
    background: linear-gradient(135deg, #FFF8F1, #FFEDD5);
    border: 1.5px solid var(--sunset-400);
    border-radius: 14px;
    padding: 18px;
    margin: 16px 0;
}

.price-range-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0 0 4px 0;
}

.price-range-desc {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 14px 0;
}

.price-avg-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--navy-900);
    color: white;
    border-radius: 10px;
    font-size: 14px;
}

.price-avg-display strong {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--gold-400);
}

/* ============================================
   ARAÇ FOTOĞRAF YÜKLEME
   ============================================ */
.image-upload-area {
    border: 2px dashed var(--line-strong);
    border-radius: 14px;
    padding: 16px;
    background: #FAFAF7;
}

.image-upload-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    background: var(--cream);
    padding: 4px;
    border-radius: 10px;
}

.image-tab {
    flex: 1;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.image-tab.active {
    background: white;
    color: var(--navy-900);
    box-shadow: 0 2px 6px rgba(11, 20, 38, 0.08);
}

.btn-upload-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload-images:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.image-upload-help {
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 0 0;
    text-align: center;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--line);
    background: white;
}

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

.image-preview-item.is-main {
    border-color: var(--sunset-500);
    box-shadow: 0 0 0 2px var(--sunset-400);
}

.image-preview-item.is-main::after {
    content: '⭐ Ana';
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--sunset-500);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
}

.image-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.image-preview-remove:hover {
    background: var(--danger);
}

/* ============================================
   MARKA LOGOLARI GRID
   ============================================ */
.brand-card-full {
    grid-column: 1 / -1;
}

.brand-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.brand-logo-cell {
    background: white;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    transition: all 0.2s;
}

.brand-logo-cell:hover {
    border-color: var(--sunset-400);
    transform: translateY(-2px);
}

.brand-logo-cell.has-logo {
    border-color: #10B981;
    background: linear-gradient(135deg, #F0FDF4, white);
}

.brand-logo-preview {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    border-radius: 10px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.brand-logo-letter {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy-900);
}

.brand-logo-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.brand-logo-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.btn-logo-upload, .btn-logo-remove {
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logo-upload {
    background: var(--navy-900);
    color: white;
}

.btn-logo-upload:hover {
    background: var(--navy-700);
}

.btn-logo-remove {
    background: #FEE2E2;
    color: var(--danger);
}

.btn-logo-remove:hover {
    background: var(--danger);
    color: white;
}

@media (max-width: 700px) {
    .brand-logos-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

/* SIRALAMA BİLGİ BANNERI */
.sort-info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 1px solid #F59E0B;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #78350F;
}

.sort-info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sort-info-text strong {
    color: #92400E;
}

.sort-info-text code {
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}

.sort-info-text kbd {
    background: white;
    border: 1px solid #92400E;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: #78350F;
}

/* Sıfırla butonu - kırmızı outline */
.btn-danger-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    color: #DC2626;
    border: 1.5px solid #DC2626;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background: #DC2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.btn-danger-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   ADMIN CAR CARD - İÇERİK ALANI (eksik kurallar)
   ============================================ */
.admin-car-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.admin-car-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
}

.admin-car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0;
}

.admin-car-meta span {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--cream);
    border-radius: 6px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.admin-car-link {
    font-size: 11px;
    color: var(--muted);
    background: #F8F5EF;
    padding: 6px 10px;
    border-radius: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Buton renkleri (önizle/düzenle/sil) */
.btn-preview,
.btn-edit,
.btn-delete {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: white;
    color: var(--navy-900);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-preview:hover {
    background: var(--cream);
    border-color: var(--navy-700);
}

.btn-edit:hover {
    background: var(--navy-900);
    color: white;
    border-color: var(--navy-900);
}

.btn-delete:hover {
    background: #FEE2E2;
    color: #DC2626;
    border-color: #DC2626;
}

/* Önemli: img'lerin yayılmasını engelle */
.admin-car-card img {
    max-width: 100%;
    height: auto;
}

/* admin-car-card içindeki büyük SVG'leri kontrol et */
.admin-car-card svg {
    max-width: 100%;
    max-height: 100%;
}

/* ============================================
   DEMO SENKRONIZE BUTONU (TEK AKILLI BUTON)
   ============================================ */
.btn-demo-sync {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #10B981 100%);
    background-size: 200% 100%;
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-demo-sync::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;
}

.btn-demo-sync:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.5);
}

.btn-demo-sync:hover::before {
    left: 100%;
}

.btn-demo-sync svg {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-demo-sync:hover svg {
    transform: rotate(180deg);
}

.btn-demo-sync:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6B7280, #4B5563);
}

/* Sync info banner - yeşil */
.sync-info-banner {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border-color: #10B981;
    color: #064E3B;
    margin-top: 8px;
}

.sync-info-banner strong {
    color: #047857;
}

/* ============ ADMIN CAR TAGS (kategori + ÖTV uygun rozeti) ============ */
.admin-car-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}

.admin-car-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.2;
}

.admin-car-tag-cat {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #DBEAFE;
}

.admin-car-tag-otv {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* Senkronize butonu CSS'lerini gizle (artık kullanılmıyor) */
.btn-demo-sync,
.sync-info-banner {
    display: none !important;
}

/* ============ DUYURU YÖNETİMİ ============ */
.announcement-editor {
    max-width: 800px;
}

.announcement-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.announcement-preview-card {
    background: linear-gradient(135deg, #F8FAFC, #EFF6FF);
    border: 1px dashed #94A3B8;
    border-radius: 16px;
    padding: 24px;
}

/* ============ MOBİL HERO POSITIONER ============ */
.mhpos-canvas {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: linear-gradient(180deg, #050B17, #0B1426);
    border-radius: 14px;
    overflow: hidden;
    cursor: crosshair;
    border: 2px dashed #FB923C;
    user-select: none;
    -webkit-user-select: none;
}

.mhpos-canvas img {
    width: 100%;
    display: block;
    pointer-events: none;
}

.mhpos-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.mhpos-light {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,233,168,0.95) 30%, rgba(252,211,77,0.6) 60%, transparent 100%);
    box-shadow: 0 0 24px 8px rgba(252, 211, 77, 0.7);
    animation: mhposBlink 3s ease-in-out infinite;
}

.mhpos-label {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #FB923C;
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

@keyframes mhposBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.mhpos-mode-btn.active {
    background: #FB923C !important;
    color: white !important;
    border-color: #FB923C !important;
}

.mhpos-coords {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 12.5px;
    color: #64748B;
    flex-wrap: wrap;
}

.mhpos-coords code {
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    color: #0B1426;
    font-size: 11.5px;
}

/* ====== Galeri Admin Items ====== */
.gallery-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-admin-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.gallery-admin-item:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gallery-admin-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.gallery-admin-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-admin-item-info input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 13px;
    color: #0F172A;
}

.gallery-admin-item-info input:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}

.gallery-admin-item-meta {
    font-size: 11px;
    color: #64748B;
    padding-left: 4px;
}

.gallery-admin-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.gallery-admin-item-actions button {
    width: 32px;
    height: 32px;
    border: 1px solid #CBD5E1;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    color: #475569;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.gallery-admin-item-actions button:hover:not(:disabled) {
    background: #F1F5F9;
    color: #0F172A;
}

.gallery-admin-item-actions button:disabled {
    opacity: 0.40;
    cursor: not-allowed;
}

.gallery-btn-delete {
    color: #DC2626 !important;
    border-color: #FECACA !important;
}

.gallery-btn-delete:hover {
    background: #FEE2E2 !important;
    color: #991B1B !important;
}
