:root {
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --primary-light: #fff7ed;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   ORTAK BUTONLAR VE FORMLAR
   ========================================= */
.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.w-100 {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    background: var(--surface);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* =========================================
   MÜŞTERİ SİPARİŞ EKRANI
   ========================================= */
.top-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-badge-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    border: 1px solid #fed7aa;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-hover);
}

.table-select {
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--primary-hover);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}

.btn-admin-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: 0.2s;
}

.btn-admin-link:hover {
    color: var(--text);
    background: #f1f5f9;
}

.customer-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    max-width: 1480px;
    margin: 0 auto;
    min-height: calc(100vh - 75px);
}

.menu-area {
    padding: 24px;
}

.menu-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.search-box {
    position: relative;
    max-width: 460px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.category-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    white-space: nowrap;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-img-wrap {
    position: relative;
    height: 170px;
    background: #f1f5f9;
    overflow: hidden;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--primary-light);
}

.product-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
}

.btn-add-cart {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid #fed7aa;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* =========================================
   SEPET PANELİ
   ========================================= */
.cart-panel {
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 75px);
    position: sticky;
    top: 75px;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.cart-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
}

.cart-table-label {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}

.open-table-alert {
    margin-top: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
}

.btn-close-cart {
    display: none;
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-cart {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 10px;
}

.empty-cart span {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.cart-item-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
}

.cart-item-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.qty-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

.qty-val {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.order-note-box input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    margin-bottom: 14px;
    outline: none;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.cart-summary strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-order-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.mobile-cart-bar,
.backdrop {
    display: none;
}

/* =========================================
   ADMIN GİRİŞ & YÖNETİM PANELİ
   ========================================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #fff7ed 0%, #f1f5f9 100%);
}

.login-card {
    background: var(--surface);
    padding: 36px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.login-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.login-form {
    text-align: left;
}

.alert-error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.login-hint {
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 10px;
    border-radius: 8px;
}

.back-menu-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.brand-logo-sm {
    font-size: 1.6rem;
    background: rgba(234, 88, 12, 0.2);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand strong {
    display: block;
    font-size: 1rem;
}

.sidebar-brand small {
    color: #94a3b8;
    font-size: 0.78rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-item.active {
    background: var(--primary);
    color: #ffffff;
}

.badge-count {
    margin-left: auto;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link-ext,
.nav-link-logout {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}

.nav-link-ext {
    color: #94a3b8;
}

.nav-link-ext:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-link-logout {
    color: #fca5a5;
}

.nav-link-logout:hover {
    background: rgba(239, 68, 68, 0.15);
}

.admin-main {
    flex: 1;
    padding: 24px 32px;
    max-width: 100%;
    overflow-x: hidden;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-mobile-menu {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.orange { background: #fff7ed; }
.stat-icon.green { background: #f0fdf4; }
.stat-icon.blue { background: #eff6ff; }

.stat-card small {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.stat-card strong {
    font-size: 1.45rem;
    font-weight: 800;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================
   SİPARİŞ KARTLARI
   ========================================= */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
}

.order-card.status-bekliyor { border-top: 4px solid var(--warning); }
.order-card.status-hazirlaniyor { border-top: 4px solid var(--info); }
.order-card.status-teslim_edildi { border-top: 4px solid var(--success); }

.order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.order-table-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.badges-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.status-badge {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.status-badge.bekliyor { background: #fef3c7; color: #92400e; }
.status-badge.hazirlaniyor { background: #dbeafe; color: #1e40af; }
.status-badge.teslim_edildi { background: #dcfce7; color: #166534; }
.status-badge.iptal { background: #fee2e2; color: #991b1b; }
.status-badge.unpaid { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.status-badge.paid { background: #ecfdf5; color: #047857; }

.order-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.order-items-list {
    list-style: none;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-items-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.order-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.83rem;
    color: #92400e;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.05rem;
}

.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-status {
    flex: 1;
    min-width: 90px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.15s;
}

.btn-status:hover { background: #e2e8f0; }
.btn-status.prep { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.btn-status.done { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.btn-status.pay { background: #16a34a; color: #ffffff; border-color: #16a34a; }
.btn-status.pay:hover { background: #15803d; }
.btn-status.edit { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.btn-status.cancel { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* =========================================
   SİPARİŞ DÜZENLEME MODALI
   ========================================= */
.edit-order-add-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.edit-order-add-row select {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
}

.edit-order-items {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.edit-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.edit-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
}

.edit-order-total strong {
    color: var(--primary);
    font-size: 1.25rem;
}

/* =========================================
   TAKVİM (CİROLAR)
   ========================================= */
.calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-month-title {
    min-width: 150px;
    text-align: center;
    font-size: 1.05rem;
}

.revenue-summary-bar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.rev-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.rev-pill strong {
    color: var(--success);
    margin-left: 4px;
}

.calendar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-cell {
    min-height: 86px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg);
    cursor: pointer;
    transition: 0.15s;
}

.cal-cell.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.cal-cell:not(.empty):hover {
    border-color: var(--primary);
    background: #ffffff;
}

.cal-cell.has-rev {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.cal-cell.selected {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.cal-day-num {
    font-weight: 700;
    font-size: 0.88rem;
}

.cal-rev {
    font-size: 0.82rem;
    font-weight: 800;
    color: #15803d;
}

.cal-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.day-details-box {
    margin-top: 22px;
}

/* =========================================
   TABLOLAR, MODALLAR VE TOAST
   ========================================= */
.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.9rem;
}

.admin-table th {
    background: #f8fafc;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.table-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
}

.quick-price-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-price-input {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
    font-family: inherit;
}

.btn-sm {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
}

.btn-sm:hover {
    background: #f1f5f9;
}

.btn-sm.danger {
    color: var(--danger);
    border-color: #fecaca;
}

.btn-sm.danger:hover {
    background: #fef2f2;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.open {
    display: flex;
}

.modal-card {
    background: var(--surface);
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-sm {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.25s ease;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =========================================
   RESPONSIVE (TABLET & TELEFON)
   ========================================= */
@media (max-width: 1024px) {
    .customer-layout {
        grid-template-columns: 1fr;
        padding-bottom: 85px;
    }

    .cart-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        z-index: 90;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .cart-panel.open {
        right: 0;
    }

    .btn-close-cart {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-cart-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 60;
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 12px 20px;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-cart-info span {
        display: block;
        font-size: 0.78rem;
        color: var(--text-muted);
    }

    .mobile-cart-info strong {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--primary);
    }

    .backdrop.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 80;
    }

    .admin-sidebar {
        position: fixed;
        left: -270px;
        transition: left 0.3s ease;
    }

    .admin-sidebar.open {
        left: 0;
    }

    .btn-mobile-menu {
        display: inline-block;
    }

    .admin-main {
        padding: 18px;
    }
}

@media (max-width: 640px) {
    .top-header {
        padding: 12px 16px;
    }

    .menu-area {
        padding: 16px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .live-indicator {
        display: none;
    }

    .cal-cell {
        min-height: 62px;
        padding: 4px;
    }

    .cal-rev {
        font-size: 0.68rem;
    }

    .cal-count {
        display: none;
    }
}

/* =========================================
   GARSON HIZLI MASA SEÇİCİ & MOBİL İYİLEŞTİRME
   ========================================= */
.table-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-hover);
    border: 1px solid #fed7aa;
    padding: 9px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: 0.2s;
}

.table-picker-btn.selected {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.table-picker-btn.has-open {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.table-modal-card {
    max-width: 560px;
}

.table-legend {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.table-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot-free,
.dot-open {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-free { background: #cbd5e1; }
.dot-open { background: #2563eb; }

.table-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.table-tile {
    padding: 14px 10px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    transition: 0.15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-tile-name {
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--text);
}

.table-tile-status {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

.table-tile.occupied {
    background: #eff6ff;
    border-color: #93c5fd;
}

.table-tile.occupied .table-tile-status {
    color: #1d4ed8;
}

.table-tile.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

/* Kart Üzerinde Hızlı Adet Kontrolü */
.product-card.in-cart {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.25);
}

.card-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 4px;
}

.card-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
}

.card-qty-val {
    min-width: 22px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary-hover);
}

/* Yapışkan Arama & Kategori Barı + Arama Temizle */
.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #e2e8f0;
    color: var(--text);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.78rem;
}

/* Hızlı Not Etiketleri */
.quick-notes {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 6px;
    scrollbar-width: none;
}

.quick-notes::-webkit-scrollbar {
    display: none;
}

.quick-note-chip {
    white-space: nowrap;
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 6px 10px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.quick-note-chip:active {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* MOBİL GARSON KOMPAKT LİSTE GÖRÜNÜMÜ */
@media (max-width: 640px) {
    .brand-sub {
        display: none;
    }

    .top-header {
        padding: 10px 14px;
    }

    .sticky-controls {
        position: sticky;
        top: 65px;
        z-index: 30;
        background: var(--bg);
        padding: 10px 0 6px;
        margin-bottom: 12px;
    }

    .menu-area {
        padding: 0 12px 16px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-card {
        flex-direction: row;
        align-items: center;
        padding: 10px;
        gap: 12px;
        border-radius: 12px;
    }

    .product-img-wrap {
        width: 74px;
        height: 74px;
        min-width: 74px;
        border-radius: 10px;
    }

    .product-cat-badge {
        display: none;
    }

    .product-body {
        padding: 0;
        flex: 1;
        min-width: 0;
    }

    .product-title {
        font-size: 0.96rem;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-desc {
        font-size: 0.76rem;
        margin-bottom: 6px;
        -webkit-line-clamp: 1;
    }

    .product-price {
        font-size: 1rem;
    }

    .btn-add-cart {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    .mobile-cart-bar {
        padding: 10px 14px;
    }

    .mobile-submit-btn {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}

/* =========================================
   3 ADIMLI GARSON TERMİNALİ (MASA -> KATEGORİ -> ÜRÜN)
   ========================================= */
.step-view {
    display: none;
}

.step-view.active {
    display: block;
    animation: fadeStep 0.2s ease;
}

@keyframes fadeStep {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.step-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
}

.step-nav-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    background: var(--surface);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.btn-back-step {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text);
}

.btn-back-step:hover {
    background: #e2e8f0;
}

.step-current-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
}

/* Masa Kartları Grid */
.waiter-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
}

.waiter-table-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    box-shadow: var(--shadow);
}

.waiter-table-card:hover,
.waiter-table-card:active {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.waiter-table-card.occupied {
    background: #eff6ff;
    border-color: #60a5fa;
}

.waiter-table-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.wt-icon { font-size: 1.8rem; }
.wt-name { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.wt-status { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }
.waiter-table-card.occupied .wt-status { color: #1d4ed8; }

/* Kategori Kartları Grid */
.waiter-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.waiter-category-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    box-shadow: var(--shadow);
    transition: all 0.15s ease;
}

.waiter-category-card:hover,
.waiter-category-card:active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.wc-info strong {
    display: block;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
}

.wc-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.wc-arrow {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

/* Ürün Listesi & Sağdaki Büyük + Butonu */
.waiter-product-card {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    padding: 12px;
    gap: 14px;
}

.waiter-product-card .product-img-wrap {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 12px;
}

.waiter-product-card .product-body {
    padding: 0;
    flex: 1;
    min-width: 0;
}

.waiter-product-card .product-desc {
    margin-bottom: 4px;
    -webkit-line-clamp: 1;
}

.waiter-plus-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-circle-plus {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, background 0.15s ease;
}

.btn-circle-plus:active {
    transform: scale(0.92);
    background: var(--primary-hover);
}

.btn-circle-minus {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #fed7aa;
    background: var(--primary-light);
    color: var(--primary-hover);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
}

.waiter-qty-badge {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-hover);
    min-width: 20px;
    text-align: center;
}

@media (max-width: 640px) {
    .waiter-tables-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .waiter-categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
