/* =========================================================
   KodlaÇay - Modern Theme (Dark & Light Mode) & UI System
   ========================================================= */

:root {
    /* DARK THEME (Varsayılan) */
    --bg-base: #0b0d13;
    --bg-surface: #131622;
    --bg-card: #1c2030;
    --bg-card-hover: #252b40;
    --bg-glass: rgba(19, 22, 34, 0.88);
    --bg-glass-strong: rgba(25, 30, 46, 0.96);
    
    /* Brand & Accent Colors */
    --primary: #f59e0b;           /* Sıcak Çay / Amber */
    --primary-light: #fbbf24;
    --primary-dark: #d97706;
    --primary-glow: rgba(245, 158, 11, 0.25);
    
    --tea-red: #ef4444;           /* Demli Çay Kırmızısı */
    --tea-red-glow: rgba(239, 68, 68, 0.25);
    --accent-green: #10b981;      /* Teslim Edildi / Tahsilat */
    --accent-blue: #3b82f6;       /* Yolda / Bilgi */
    --accent-purple: #8b5cf6;     /* Özel Ürünler */
    
    /* Typography & Text */
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    /* Borders & Shadows */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-active: rgba(245, 158, 11, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
    
    /* Radius & Layout */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --bottom-nav-height: 68px;
    --header-height: 64px;
}

/* =========================================================
   LIGHT THEME
   ========================================================= */
body.light-theme {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.92);
    --bg-glass-strong: rgba(255, 255, 255, 0.98);
    
    --primary: #d97706;
    --primary-light: #b45309;
    --primary-dark: #92400e;
    --primary-glow: rgba(217, 119, 6, 0.15);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-card: rgba(0, 0, 0, 0.1);
    --border-active: rgba(217, 119, 6, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   VIEWPORT & MOBILE HORIZONTAL SCROLL LOCK
   ========================================================= */
html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    overscroll-behavior-x: none !important;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
    touch-action: pan-y !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    position: relative;
    line-height: 1.5;
    overscroll-behavior-x: none !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y !important;
    -webkit-font-smoothing: antialiased;
}

#app-root {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
}

/* =========================================================
   TOP NAVBAR
   ========================================================= */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 100%;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--tea-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card);
    transform: translateY(-1px);
}

/* =========================================================
   CONTAINER & ISOLATED SCROLL
   ========================================================= */
.app-container,
.auth-container,
.customer-view,
.vendor-pos-layout,
.admin-panel-wrapper,
main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    position: relative;
    overscroll-behavior-x: none !important;
}

.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 150px; /* Alttaki sepet ve menü butonları için geniş güvenlik payı */
}

/* İç yatay kaydırma çubukları (Menü butonları, kategoriler, admin sekmeleri vb.) için izole scroll */
.category-filter-bar,
.pos-tab-bar,
.pos-categories-bar,
.admin-nav-tabs,
.table-responsive,
.horizontal-scroll-container {
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto !important;
    max-width: 100%;
}

@media (min-width: 992px) {
    .app-container {
        padding: 24px;
        padding-bottom: 160px;
    }
}

/* =========================================================
   CUSTOMER VIEW (ESNAF GÖRÜNÜMÜ)
   ========================================================= */
.vendor-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.vendor-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.vendor-info-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vendor-avatar-badge {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.vendor-meta h2 {
    font-size: 1.2rem;
    font-weight: 800;
}

.vendor-meta p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.vendor-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.change-vendor-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    color: var(--primary-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.change-vendor-btn:hover {
    background: var(--primary);
    color: #0b0d13;
    border-color: var(--primary);
}

/* User Quick Bar */
.user-quick-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-balance-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.balance-amount {
    color: var(--tea-red);
    font-weight: 800;
    font-size: 1rem;
}

.balance-amount.zero {
    color: var(--accent-green);
}

/* Category Filter Bar */
.category-filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 18px;
    scrollbar-width: none;
}
.category-filter-bar::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    flex-shrink: 0;
    padding: 8px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.cat-chip:hover {
    background: var(--bg-card);
    color: var(--text-main);
}

.cat-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0b0d13;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-card);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-surface);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.product-custom-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
}

.product-icon-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(8px);
    font-size: 14px;
    border: 1px solid var(--border-subtle);
}

.product-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.25;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    position: relative;
    min-height: 40px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-light);
}

/* =========================================================
   İNTERAKTİF GENİŞLEYEN ADET SAYACI (EXPANDING STEPPER)
   ========================================================= */
.stepper-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

/* Kapalı Tekil (+) Butonu */
.stepper-btn-single {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0b0d13;
    border: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--primary-glow);
    transition: transform 0.2s ease, width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stepper-btn-single:hover {
    transform: scale(1.08);
}

.stepper-btn-single:active {
    transform: scale(0.92);
}

/* Sola Doğru Genişlemiş [-] [Adet] [+] Sayacı */
.inline-stepper-expanded {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 10px var(--primary-glow);
    animation: expandLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.inline-stepper-expanded .step-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inline-stepper-expanded .step-btn.minus {
    background: rgba(239, 68, 68, 0.15);
    color: var(--tea-red);
}
.inline-stepper-expanded .step-btn.minus:active {
    background: var(--tea-red);
    color: #fff;
    transform: scale(0.9);
}

.inline-stepper-expanded .step-btn.plus {
    background: var(--primary);
    color: #0b0d13;
}
.inline-stepper-expanded .step-btn.plus:active {
    transform: scale(0.9);
}

.inline-stepper-expanded .step-count {
    min-width: 24px;
    text-align: center;
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--text-main);
}

@keyframes expandLeft {
    from {
        opacity: 0;
        transform: scaleX(0.5);
        transform-origin: right center;
    }
    to {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: right center;
    }
}

/* =========================================================
   KAYAN SEPET ÇUBUĞU (FLOATING CART BAR)
   ========================================================= */
.cart-floating-bar {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(140px);
    width: calc(100% - 28px);
    max-width: 520px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 16px var(--primary-glow);
    z-index: 95;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.cart-floating-bar.show {
    transform: translateX(-50%) translateY(0);
}

.cart-float-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-float-badge {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #0b0d13;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.cart-float-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.cart-float-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cart-float-btn {
    background: var(--primary);
    color: #0b0d13;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.9rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================
   BOTTOM NAVIGATION BAR
   ========================================================= */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 6px 14px;
    border-radius: var(--radius-md);
}

.nav-item i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-2px);
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--tea-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

.vendor-bottom-nav .nav-item {
    padding: 4px 6px;
    font-size: 0.68rem;
    gap: 3px;
}
.vendor-bottom-nav .nav-item i {
    font-size: 1.15rem;
}
.vendor-bottom-nav .nav-badge {
    right: 2px;
    top: 0px;
}

/* =========================================================
   ÇAYCI / VENDOR POS SCREEN
   ========================================================= */
.pos-header-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .pos-header-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--primary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.stat-icon.red   { background: rgba(239, 68, 68, 0.15); color: var(--tea-red); }
.stat-icon.blue  { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }

.stat-info h5 {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

/* POS Navigation Tabs */
.pos-tab-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.pos-tab-bar::-webkit-scrollbar {
    display: none;
}

.pos-tab-btn {
    padding: 10px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.pos-tab-btn:hover {
    background: var(--bg-card);
    color: var(--text-main);
}

.pos-tab-btn.active {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.pos-tab-badge {
    background: var(--primary);
    color: #0b0d13;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

/* POS Orders Grid */
.pos-orders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .pos-orders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .pos-orders-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.order-card.status-pending {
    border-left: 5px solid var(--tea-red);
}
.order-card.status-preparing {
    border-left: 5px solid var(--primary);
}
.order-card.status-on_the_way {
    border-left: 5px solid var(--accent-blue);
}
.order-card.status-delivered {
    border-left: 5px solid var(--accent-green);
    opacity: 0.88;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-customer-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.order-customer-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.order-badge-pill {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-badge-pill.pending { background: rgba(239, 68, 68, 0.2); color: #fb7185; }
.order-badge-pill.preparing { background: rgba(245, 158, 11, 0.2); color: var(--primary-light); }
.order-badge-pill.on_the_way { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.order-badge-pill.delivered { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

/* Order Items List */
.order-items-list {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 12px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.order-item-qty {
    background: var(--bg-card);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary-light);
    border: 1px solid var(--border-card);
}

.order-note-callout {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--primary);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 14px;
}

/* POS Action Buttons */
.order-actions-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.pos-action-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pos-action-btn.prepare {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0b0d13;
}
.pos-action-btn.send {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: #ffffff;
}
.pos-action-btn.deliver {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: #ffffff;
}
.pos-action-btn.cancel {
    background: var(--bg-surface);
    color: var(--text-dim);
    border: 1px solid var(--border-subtle);
    flex: 0 0 40px;
}

/* =========================================================
   HIZLI ÇENTİK / SAYAÇ MASASI
   ========================================================= */
.quick-tally-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 768px) {
    .quick-tally-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1100px) {
    .quick-tally-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tally-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tally-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tally-buttons-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tally-add-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.15s ease;
}

.tally-add-btn:active {
    transform: scale(0.92);
    background: var(--primary);
    color: #0b0d13;
}

.tally-btn-icon {
    font-size: 1.5rem;
}

.tally-btn-name {
    font-size: 0.75rem;
    font-weight: 700;
}

.tally-btn-price {
    font-size: 0.7rem;
    color: var(--primary-light);
    font-weight: 800;
}

/* =========================================================
   VERESİYE & CARİ
   ========================================================= */
.ledger-summary-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ledger-banner-title h2 {
    font-size: 1.4rem;
    font-weight: 800;
}

.ledger-banner-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.total-debt-tag {
    font-size: 2rem;
    font-weight: 900;
    color: #ef4444;
}

.debt-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.debt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    transition: all 0.2s ease;
}

.debt-customer-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.debt-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.debt-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.debt-amount-pill {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ef4444;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
}

.debt-amount-pill.zero {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.pay-btn {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

/* =========================================================
   DUYURULAR & BİLDİRİMLER
   ========================================================= */
.announcements-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.announcement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.announcement-card.type-info { border-left: 4px solid var(--primary); }
.announcement-card.type-event { border-left: 4px solid var(--accent-purple); }
.announcement-card.type-alert { border-left: 4px solid var(--tea-red); }

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.announcement-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.announcement-time {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.announcement-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================================
   MODALS & OVERLAYS
   ========================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (min-width: 576px) {
    .modal-overlay {
        align-items: center;
    }
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 576px) {
    .modal-content {
        border-radius: var(--radius-lg);
        transform: scale(0.95) translateY(0);
    }
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

@media (min-width: 576px) {
    .modal-overlay.active .modal-content {
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Modal Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.radio-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-chip {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-chip.selected {
    background: var(--primary);
    color: #0b0d13;
    border-color: var(--primary);
    font-weight: 700;
}

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
}

.toast {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    animation: toastSlideIn 0.3s ease forwards;
    pointer-events: auto;
}

.toast.success { border-left: 4px solid var(--accent-green); }
.toast.alert   { border-left: 4px solid var(--tea-red); }
.toast.info    { border-left: 4px solid var(--primary); }

/* Animations */
@keyframes urgentPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =========================================================
   AÇILIŞ SPLASH EKRANI (GİRİŞ ANİMASYONU)
   ========================================================= */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, #1c2030 0%, #08090f 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-overlay.fade-out {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

.splash-card {
    max-width: 440px;
    width: 100%;
    background: rgba(28, 32, 48, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.15);
    animation: splashCardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.splash-tea-wrapper {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--tea-red));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.splash-tea-cup {
    font-size: 42px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    z-index: 2;
}

.splash-steam {
    position: absolute;
    top: -18px;
    display: flex;
    gap: 8px;
    z-index: 1;
}

.splash-steam span {
    width: 4px;
    height: 18px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 4px;
    display: inline-block;
    filter: blur(1px);
    animation: steamRise 1.6s infinite ease-in-out;
}

.splash-steam .steam-1 { animation-delay: 0s; }
.splash-steam .steam-2 { animation-delay: 0.3s; height: 22px; }
.splash-steam .steam-3 { animation-delay: 0.6s; }

@keyframes steamRise {
    0% { transform: translateY(0) scaleX(1); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-20px) scaleX(2.5); opacity: 0; }
}

.splash-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #ffffff, var(--primary-light), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.splash-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

.splash-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 24px;
    text-align: left;
}

.splash-features span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.splash-loader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 18px;
}

.splash-loader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--tea-red));
    border-radius: var(--radius-full);
    animation: loaderProgress 1.6s ease-in-out forwards;
}

@keyframes loaderProgress {
    0% { width: 0%; }
    40% { width: 60%; }
    100% { width: 100%; }
}

.splash-start-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0b0d13;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: all 0.2s ease;
}

.splash-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

/* =========================================================
   DÜZELTİLEN ABONE ESNAF & BORÇ KARTLARI (RESİM 1 HATASI FIX)
   ========================================================= */
.subscriber-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.subscriber-card:hover {
    border-color: var(--border-active);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.sub-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.sub-avatar-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.sub-info-meta {
    min-width: 0;
}

.sub-card-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.sub-debt-badge {
    text-align: right;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fb7185;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    min-width: 105px;
}

.sub-debt-badge.zero {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--accent-green);
}

@media (max-width: 640px) {
    .subscriber-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .sub-card-right {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-top: 1px solid var(--border-subtle);
        padding-top: 10px;
    }

    .sub-debt-badge {
        text-align: left;
    }
}

/* =========================================================
   SÜPER ADMİN YÖNETİM PANELİ STİLLERİ
   ========================================================= */
.admin-panel-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.admin-hero-banner {
    background: linear-gradient(135deg, rgba(28, 32, 48, 0.95), rgba(19, 22, 34, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.admin-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6, #3b82f6, #10b981);
}

.admin-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-hero-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}

.admin-badge-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(139, 92, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
    flex-shrink: 0;
}

.admin-live-pill {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-pill-btn {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.admin-pill-btn:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}

.admin-pill-badge {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

@media (max-width: 900px) {
    .admin-quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .admin-quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

.admin-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
}

.admin-quick-btn.profile {
    background: rgba(139, 92, 246, 0.14);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
}
.admin-quick-btn.profile:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-1px);
}

.admin-quick-btn.pricing {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.admin-quick-btn.pricing:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.6);
    transform: translateY(-1px);
}

.admin-quick-btn.message {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}
.admin-quick-btn.message:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}

.admin-quick-btn.add-vendor {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.admin-quick-btn.add-vendor:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.admin-nav-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 6px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.admin-nav-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.admin-alert-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(28, 32, 48, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-vendor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.admin-vendor-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
}

.admin-vendor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-vendor-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid var(--border-card);
}

.admin-vendor-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.sub-status-pill {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sub-status-pill.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sub-status-pill.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.sub-status-pill.status-expired {
    background: rgba(239, 68, 68, 0.15);
    color: #fb7185;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sub-status-pill.status-frozen {
    background: rgba(107, 114, 128, 0.2);
    color: var(--text-dim);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.role-switch-pill {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.role-switch-pill:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

.brand-icon-wrapper.admin-brand {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.vendor-admin-alert {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(28, 32, 48, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
}

.vendor-admin-alert.payment-alert {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(28, 32, 48, 0.95));
    border-color: rgba(239, 68, 68, 0.35);
}

/* =========================================================
   ÇAYCI ABONELİK BORÇ ROZETLERİ
   ========================================================= */
.debt-tag-vendor {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.debt-tag-vendor.overdue {
    background: rgba(239, 68, 68, 0.18);
    color: #fb7185;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.debt-tag-vendor.paid {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* =========================================================
   RESMİ KARŞILIKLI SÖZLEŞME VE BELGE STİLLERİ
   ========================================================= */
.contract-modal-box {
    max-width: 820px !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
}

.contract-doc {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contract-header {
    text-align: center;
    border-bottom: 2px solid var(--border-card);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.contract-emblem {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--tea-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.contract-header h2 {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    margin: 0 0 6px 0;
    color: var(--text-main);
}

.contract-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 10px 0;
}

.contract-no-pill {
    display: inline-block;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--primary-light);
}

.contract-section {
    margin-bottom: 20px;
}

.contract-section h4 {
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--primary);
    padding-left: 8px;
}

.contract-parties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contract-party-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.84rem;
}

.contract-party-box strong:first-child {
    display: block;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.contract-party-box p {
    margin: 3px 0;
    color: var(--text-muted);
}

.contract-pricing-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.contract-pricing-row {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.contract-pricing-row.selected {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
}

.contract-pricing-row .price-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 800;
    color: var(--accent-green);
    font-size: 0.95rem;
    white-space: nowrap;
}

.contract-signatures-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 14px;
}

.contract-sign-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    position: relative;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sign-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.sign-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 4px;
}

.sign-vendor-business {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sign-stamp {
    margin: 10px auto;
}

.stamp-circle {
    width: 84px;
    height: 84px;
    border: 2px dashed rgba(16, 185, 129, 0.6);
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    font-size: 0.62rem;
    font-weight: 900;
    transform: rotate(-6deg);
    background: rgba(16, 185, 129, 0.06);
    line-height: 1.1;
    margin: 0 auto;
}

.stamp-circle.vendor {
    border-color: rgba(245, 158, 11, 0.6);
    color: var(--primary-light);
    transform: rotate(6deg);
    background: rgba(245, 158, 11, 0.06);
}

.stamp-sub {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}

.sign-date {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.contract-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
    .contract-parties-grid,
    .contract-signatures-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* =========================================================
   YAZDIRMA (PRINT) STİLLERİ
   ========================================================= */
@media print {
    body, html {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .noprint,
    .app-header,
    .admin-hero-banner,
    .admin-nav-tabs,
    .bottom-nav-bar,
    .floating-cart-bar,
    .toast-container,
    .close-modal-btn,
    .contract-modal-actions {
        display: none !important;
    }

    .modal-overlay {
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
    }

    .modal-content,
    .contract-modal-box {
        background: #ffffff !important;
        color: #000000 !important;
        border: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .contract-doc {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
        box-shadow: none !important;
        padding: 20px !important;
    }

    .contract-header h2,
    .contract-section h4,
    .sign-name,
    .contract-party-box strong {
        color: #000000 !important;
    }

    .contract-party-box,
    .contract-pricing-row,
    .contract-sign-card {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        color: #000000 !important;
    }

    .stamp-circle {
        border-color: #059669 !important;
        color: #059669 !important;
        background: transparent !important;
    }

    .stamp-circle.vendor {
        border-color: #d97706 !important;
        color: #d97706 !important;
        background: transparent !important;
    }
}

/* =========================================================
   ADMİN & FİRMA PROFİLİ YÖNETİMİ STİLLERİ
   ========================================================= */
.admin-profile-container {
    animation: fadeIn 0.3s ease-out;
}

.admin-profile-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 960px) {
    .admin-profile-grid {
        grid-template-columns: 1fr;
    }
}

.admin-card-section {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-card-section:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.admin-card-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-card-section-title i {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.admin-card-section-title h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.admin-card-section-title p {
    margin: 2px 0 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.admin-preview-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.admin-preview-box:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.preview-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.preview-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-id-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-md);
    padding: 16px;
}

.admin-id-avatar {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    flex-shrink: 0;
}

.admin-id-info h3 {
    margin: 0 0 3px 0;
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
}

.admin-id-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 2px;
}

.admin-id-company {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-contact-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.contact-pill {
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.76rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-icon-wrapper.admin-brand {
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4) !important;
}



