* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: #111;
    color: #fff;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-title {
    font-size: 22px;
    font-weight: bold;
}

.price {
    font-size: 18px;
    color: #0a7c2f;
    font-weight: bold;
    margin: 8px 0;
}

.btn {
    display: inline-block;
    border: none;
    background: #111;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}

.btn:hover {
    background: #333;
}

.btn-danger {
    background: #c0392b;
}

.btn-success {
    background: #198754;
}

.btn-warning {
    background: #f39c12;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.quantity-form {
    display: inline;
}

.quantity-btn {
    padding: 6px 10px;
    border: none;
    background: #111;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.total {
    font-size: 22px;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
}

input, select {
    width: 100%;
    padding: 11px;
    margin-top: 7px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
}

th {
    background: #111;
    color: #fff;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ============================= */
/* ADMIN ORDER PANEL */
/* ============================= */

.admin-body {
    background: #eef1f5;
    color: #1f2937;
}

.admin-layout {
    width: 100%;
    min-height: 100vh;
    padding: 18px;
}

.admin-navbar {
    background: #111827;
    color: #ffffff;
    border-radius: 18px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.admin-navbar h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.admin-navbar p {
    margin: 5px 0 0;
    color: #cbd5e1;
    font-size: 14px;
}

.admin-navbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-refresh-btn,
.admin-logout-btn {
    text-decoration: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: bold;
    color: #ffffff;
    display: inline-block;
}

.admin-refresh-btn {
    background: #2563eb;
}

.admin-refresh-btn:hover {
    background: #1d4ed8;
}

.admin-logout-btn {
    background: #dc2626;
}

.admin-logout-btn:hover {
    background: #b91c1c;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    border-left: 6px solid #64748b;
}

.stat-card span {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 6px;
}

.stat-card strong {
    font-size: 30px;
    color: #111827;
}

.stat-waiting {
    border-left-color: #f59e0b;
}

.stat-preparing {
    border-left-color: #2563eb;
}

.stat-completed {
    border-left-color: #16a34a;
}

.stat-cancelled {
    border-left-color: #dc2626;
}

.order-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: start;
}

.order-column {
    background: #dde3ea;
    border-radius: 18px;
    min-height: 400px;
    padding: 12px;
}

.order-column-header {
    background: #ffffff;
    border-radius: 14px;
    padding: 13px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.order-column-header span {
    font-size: 17px;
}

.order-column-header strong {
    background: #111827;
    color: #ffffff;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.order-column-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-order {
    background: rgba(255, 255, 255, 0.55);
    border: 2px dashed #b6c0cc;
    color: #64748b;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    font-weight: bold;
}

.admin-order-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.09);
    border-top: 6px solid #64748b;
}

.admin-order-card.bekliyor {
    border-top-color: #f59e0b;
}

.admin-order-card.hazirlaniyor {
    border-top-color: #2563eb;
}

.admin-order-card.tamamlandi {
    border-top-color: #16a34a;
    opacity: 0.88;
}

.admin-order-card.iptal-edildi {
    border-top-color: #dc2626;
    opacity: 0.75;
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.order-number {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.order-table {
    margin-top: 3px;
    font-size: 17px;
    color: #374151;
    font-weight: bold;
}

.order-price {
    background: #ecfdf5;
    color: #047857;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
}

.order-time {
    color: #6b7280;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 9px;
    margin-bottom: 9px;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 15px;
}

.order-item-row span {
    font-weight: 600;
}

.order-item-row strong {
    white-space: nowrap;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.quick-actions form {
    margin: 0;
}

.quick-btn {
    width: 100%;
    border: none;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    font-size: 13px;
}

.waiting-btn {
    background: #f59e0b;
}

.waiting-btn:hover {
    background: #d97706;
}

.preparing-btn {
    background: #2563eb;
}

.preparing-btn:hover {
    background: #1d4ed8;
}

.completed-btn {
    background: #16a34a;
}

.completed-btn:hover {
    background: #15803d;
}

.cancelled-btn {
    background: #dc2626;
}

.cancelled-btn:hover {
    background: #b91c1c;
}

.empty-admin-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1200px) {
    .order-board {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-layout {
        padding: 10px;
    }

    .admin-navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .admin-navbar-actions {
        width: 100%;
    }

    .admin-refresh-btn,
    .admin-logout-btn {
        flex: 1;
        text-align: center;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-board {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ============================= */
/* CUSTOMER ORDER SUCCESS PAGE */
/* ============================= */

.customer-order-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.20), transparent 32%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 28%),
        #f3f6fb;
    font-family: Arial, sans-serif;
    color: #111827;
}

.customer-order-wrapper {
    min-height: 100vh;
    padding: 22px 14px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.customer-success-card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.success-icon-area {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.success-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.customer-success-card h1 {
    margin: 8px 0 6px;
    font-size: 30px;
    text-align: center;
    color: #111827;
}

.success-subtitle {
    margin: 0;
    text-align: center;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.live-info-box {
    margin: 18px auto;
    width: fit-content;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #475569;
    border-radius: 999px;
    padding: 8px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: bold;
}

.live-dot {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    60% {
        transform: scale(1.7);
        opacity: 0.25;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.customer-status-box {
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 18px;
    color: #ffffff;
    transition: 0.25s ease;
}

.status-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.status-value {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 6px;
}

.status-description {
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.96;
}

.customer-status-waiting {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.customer-status-preparing {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.customer-status-completed {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.customer-status-cancelled {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.status-updated {
    transform: scale(1.025);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15);
}

.customer-order-summary {
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid #e5e7eb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    color: #64748b;
    font-size: 14px;
}

.summary-row strong {
    color: #111827;
    font-size: 15px;
    text-align: right;
}

.customer-items-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
}

.customer-items-card h2 {
    margin: 0;
    padding: 15px;
    background: #111827;
    color: #ffffff;
    font-size: 18px;
}

.customer-item-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.customer-item-row div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-item-row strong {
    font-size: 15px;
    color: #111827;
}

.customer-item-row span {
    font-size: 13px;
    color: #64748b;
}

.customer-item-row b {
    white-space: nowrap;
    color: #111827;
}

.customer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 16px 15px;
}

.customer-total-row span {
    font-size: 17px;
    font-weight: bold;
}

.customer-total-row strong {
    font-size: 24px;
    font-weight: 900;
    color: #047857;
}

.customer-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

.customer-secondary-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
    background: #111827;
    color: #ffffff;
    border-radius: 14px;
    padding: 14px;
    font-weight: bold;
    display: block;
}

.customer-secondary-btn:hover {
    background: #1f2937;
}

@media (max-width: 600px) {
    .customer-order-wrapper {
        padding: 12px;
    }

    .customer-success-card {
        border-radius: 20px;
        padding: 20px;
    }

    .customer-success-card h1 {
        font-size: 25px;
    }

    .success-icon {
        width: 72px;
        height: 72px;
        font-size: 36px;
    }

    .status-value {
        font-size: 23px;
    }

    .customer-item-row {
        align-items: flex-start;
    }
}

/* ============================= */
/* CUSTOMER MENU PAGE */
/* ============================= */

.menu-page-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.20), transparent 30%),
        radial-gradient(circle at bottom right, rgba(22, 163, 74, 0.16), transparent 28%),
        #f3f6fb;
    font-family: Arial, sans-serif;
    color: #111827;
    padding-bottom: 95px;
}

.menu-page-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
}

.menu-hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.20);
    margin-bottom: 16px;
}

.menu-restaurant-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fde68a;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.menu-hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
}

.menu-hero p {
    margin: 8px 0 0;
    color: #d1d5db;
    font-size: 15px;
    line-height: 1.45;
}

.menu-table-badge {
    min-width: 92px;
    height: 92px;
    border-radius: 22px;
    background: #ffffff;
    color: #111827;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    font-size: 13px;
    font-weight: bold;
}

.menu-table-badge strong {
    font-size: 34px;
    line-height: 1;
    margin-top: 4px;
}

.cart-toast {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.14);
    margin-bottom: 16px;
    transition: 0.3s ease;
}

.cart-toast-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 22px;
}

.cart-toast strong {
    display: block;
    font-size: 15px;
}

.cart-toast span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #047857;
}

.hide-toast {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.menu-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 2px 12px;
}

.menu-section-title h2 {
    margin: 0;
    font-size: 24px;
}

.mini-cart-info {
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    font-size: 13px;
}

.mini-cart-info span {
    color: #64748b;
}

.mini-cart-info strong {
    color: #047857;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.menu-product-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 14px;
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 14px;
    align-items: stretch;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    border: 1px solid #e5e7eb;
}

.product-image-placeholder {
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 44px;
    min-height: 112px;
}

.menu-product-content {
    display: flex;
    flex-direction: column;
}

.menu-product-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.menu-product-top h3 {
    margin: 0;
    font-size: 22px;
    color: #111827;
}

.menu-product-top p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 14px;
}

.menu-product-price {
    background: #ecfdf5;
    color: #047857;
    border-radius: 13px;
    padding: 8px 10px;
    font-weight: 900;
    white-space: nowrap;
    font-size: 15px;
}

.in-cart-badge,
.not-in-cart-badge {
    width: fit-content;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: bold;
    margin-top: 12px;
}

.in-cart-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.not-in-cart-badge {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e5e7eb;
}

.menu-add-form {
    margin-top: auto;
    padding-top: 12px;
}

.menu-add-btn {
    width: 100%;
    border: none;
    background: #111827;
    color: #ffffff;
    padding: 13px 14px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
}

.menu-add-btn:hover {
    background: #1f2937;
}

.bottom-cart-bar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 730px;
    background: #111827;
    color: #ffffff;
    border-radius: 22px;
    padding: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.32);
    z-index: 1000;
}

.bottom-cart-bar span {
    display: block;
    color: #d1d5db;
    font-size: 13px;
    margin-bottom: 3px;
}

.bottom-cart-bar strong {
    font-size: 16px;
}

.bottom-cart-btn {
    background: #16a34a;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 15px;
    padding: 13px 18px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    font-size: 15px;
}

.bottom-cart-btn:hover {
    background: #15803d;
}

.disabled-cart-btn {
    background: #4b5563;
    cursor: not-allowed;
    opacity: 0.75;
}

@media (max-width: 600px) {
    .menu-page-wrapper {
        padding: 12px;
    }

    .menu-hero {
        border-radius: 22px;
        padding: 20px;
        align-items: flex-start;
    }

    .menu-hero h1 {
        font-size: 30px;
    }

    .menu-table-badge {
        min-width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .menu-table-badge strong {
        font-size: 28px;
    }

    .menu-section-title {
        align-items: flex-start;
        gap: 10px;
    }

    .menu-product-card {
        grid-template-columns: 82px 1fr;
        padding: 12px;
        gap: 12px;
    }

    .product-image-placeholder {
        min-height: 104px;
        font-size: 38px;
    }

    .menu-product-top {
        flex-direction: column;
        gap: 8px;
    }

    .menu-product-top h3 {
        font-size: 20px;
    }

    .menu-product-price {
        width: fit-content;
    }

    .bottom-cart-bar {
        bottom: 10px;
        width: calc(100% - 20px);
        border-radius: 18px;
    }

    .bottom-cart-btn {
        padding: 12px 14px;
    }
}

/* ============================= */
/* CUSTOMER CART PAGE */
/* ============================= */

.cart-page-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.17), transparent 28%),
        #f3f6fb;
    font-family: Arial, sans-serif;
    color: #111827;
    padding-bottom: 120px;
}

.cart-page-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
}

.cart-hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.20);
    margin-bottom: 16px;
}

.cart-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #bfdbfe;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cart-hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
}

.cart-hero p {
    margin: 8px 0 0;
    color: #d1d5db;
    font-size: 15px;
    line-height: 1.45;
}

.cart-table-badge {
    min-width: 92px;
    height: 92px;
    border-radius: 22px;
    background: #ffffff;
    color: #111827;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    font-size: 13px;
    font-weight: bold;
}

.cart-table-badge strong {
    font-size: 34px;
    line-height: 1;
    margin-top: 4px;
}

.empty-cart-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 34px 22px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    border: 1px solid #e5e7eb;
}

.empty-cart-icon {
    width: 86px;
    height: 86px;
    background: #f8fafc;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
}

.empty-cart-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.empty-cart-card p {
    margin: 0 auto 20px;
    color: #64748b;
    max-width: 360px;
    line-height: 1.5;
}

.cart-primary-btn {
    display: inline-block;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    padding: 13px 20px;
    font-weight: 900;
}

.cart-primary-btn:hover {
    background: #1f2937;
}

.cart-summary-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.cart-summary-mini div {
    background: #ffffff;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.cart-summary-mini span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 5px;
}

.cart-summary-mini strong {
    display: block;
    color: #111827;
    font-size: 21px;
    font-weight: 900;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 14px;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    border: 1px solid #e5e7eb;
}

.cart-item-icon {
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    min-height: 96px;
}

.cart-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.cart-item-top h3 {
    margin: 0;
    font-size: 21px;
    color: #111827;
}

.cart-item-top p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 14px;
}

.cart-line-price {
    background: #ecfdf5;
    color: #047857;
    border-radius: 13px;
    padding: 8px 10px;
    font-weight: 900;
    white-space: nowrap;
    font-size: 15px;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-quantity-control {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 5px;
    gap: 6px;
}

.cart-quantity-control form {
    margin: 0;
}

.cart-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
}

.cart-qty-btn:hover {
    background: #1f2937;
}

.cart-qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 900;
    font-size: 18px;
    color: #111827;
}

.cart-item-count-text {
    color: #64748b;
    font-size: 14px;
    font-weight: bold;
}

.cart-bottom-bar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 730px;
    background: #111827;
    color: #ffffff;
    border-radius: 22px;
    padding: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.32);
    z-index: 1000;
}

.cart-bottom-bar span {
    display: block;
    color: #d1d5db;
    font-size: 13px;
    margin-bottom: 3px;
}

.cart-bottom-bar strong {
    font-size: 21px;
    font-weight: 900;
}

.cart-bottom-bar form {
    margin: 0;
}

.cart-confirm-btn {
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 14px 18px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    font-size: 15px;
}

.cart-confirm-btn:hover {
    background: #15803d;
}

.cart-secondary-actions {
    width: calc(100% - 28px);
    max-width: 730px;
    position: fixed;
    left: 50%;
    bottom: 86px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 999;
}

.cart-secondary-actions a {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

@media (max-width: 600px) {
    .cart-page-wrapper {
        padding: 12px;
    }

    .cart-hero {
        border-radius: 22px;
        padding: 20px;
        align-items: flex-start;
    }

    .cart-hero h1 {
        font-size: 30px;
    }

    .cart-table-badge {
        min-width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .cart-table-badge strong {
        font-size: 28px;
    }

    .cart-summary-mini {
        grid-template-columns: 1fr;
    }

    .cart-item-card {
        grid-template-columns: 76px 1fr;
        padding: 12px;
        gap: 12px;
    }

    .cart-item-icon {
        min-height: 92px;
        font-size: 34px;
    }

    .cart-item-top {
        flex-direction: column;
        gap: 8px;
    }

    .cart-line-price {
        width: fit-content;
    }

    .cart-item-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-bottom-bar {
        bottom: 10px;
        width: calc(100% - 20px);
        border-radius: 18px;
    }

    .cart-confirm-btn {
        padding: 13px 14px;
        font-size: 14px;
    }

    .cart-bottom-bar strong {
        font-size: 18px;
    }

    .cart-secondary-actions {
        bottom: 82px;
    }
}

/* ========================================================= */
/* GLOBAL MOBILE OPTIMIZATION OVERRIDES */
/* ========================================================= */

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
table,
input,
button,
select,
textarea,
a {
    max-width: 100%;
}

button,
a,
input,
select {
    touch-action: manipulation;
}

button,
.btn,
.menu-add-btn,
.bottom-cart-btn,
.cart-confirm-btn,
.customer-secondary-btn,
.cart-primary-btn,
.quick-btn,
.admin-refresh-btn,
.admin-logout-btn {
    -webkit-tap-highlight-color: transparent;
}

form {
    margin: 0;
}

* {
    min-width: 0;
}

/* Uzun yazılar taşmasın */
.order-price,
.cart-line-price,
.menu-product-price,
.customer-total-row strong,
.cart-bottom-bar strong,
.bottom-cart-bar strong,
.summary-row strong,
.order-item-row strong {
    white-space: nowrap;
}

/* ========================================================= */
/* TABLET RESPONSIVE */
/* ========================================================= */

@media (max-width: 1024px) {

    .container,
    .menu-page-wrapper,
    .cart-page-wrapper,
    .customer-order-wrapper {
        max-width: 100%;
    }

    .admin-layout {
        padding: 12px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-board {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-navbar {
        border-radius: 16px;
    }

    .admin-navbar h1 {
        font-size: 24px;
    }
}

/* ========================================================= */
/* MAIN MOBILE RESPONSIVE */
/* ========================================================= */

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    /* ----------------------------- */
    /* GENERAL CONTAINER */
    /* ----------------------------- */

    .container {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }

    .header {
        border-radius: 18px;
        padding: 18px 14px;
    }

    .header h1 {
        font-size: 25px;
        margin: 0 0 6px;
    }

    .card {
        border-radius: 18px;
        padding: 16px;
    }

    /* ----------------------------- */
    /* MENU PAGE */
    /* ----------------------------- */

    .menu-page-body {
        padding-bottom: 105px;
    }

    .menu-page-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }

    .menu-hero {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 18px;
        border-radius: 22px;
        align-items: start;
        margin-bottom: 14px;
    }

    .menu-restaurant-label {
        font-size: 12px;
        padding: 5px 9px;
        margin-bottom: 8px;
    }

    .menu-hero h1 {
        font-size: 29px;
    }

    .menu-hero p {
        font-size: 14px;
        line-height: 1.4;
    }

    .menu-table-badge {
        min-width: 72px;
        width: 72px;
        height: 72px;
        border-radius: 18px;
        font-size: 12px;
    }

    .menu-table-badge strong {
        font-size: 27px;
    }

    .cart-toast {
        border-radius: 16px;
        padding: 12px;
        gap: 10px;
    }

    .cart-toast-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 20px;
    }

    .cart-toast strong {
        font-size: 14px;
    }

    .cart-toast span {
        font-size: 12px;
    }

    .menu-section-title {
        margin: 16px 0 10px;
        gap: 10px;
    }

    .menu-section-title h2 {
        font-size: 22px;
    }

    .mini-cart-info {
        padding: 7px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .product-grid {
        gap: 12px;
    }

    .menu-product-card {
        grid-template-columns: 76px 1fr;
        gap: 11px;
        padding: 12px;
        border-radius: 20px;
    }

    .product-image-placeholder {
        min-height: 100px;
        border-radius: 16px;
        font-size: 36px;
    }

    .menu-product-top {
        flex-direction: column;
        gap: 7px;
    }

    .menu-product-top h3 {
        font-size: 20px;
    }

    .menu-product-top p {
        font-size: 13px;
    }

    .menu-product-price {
        width: fit-content;
        font-size: 14px;
        padding: 7px 9px;
    }

    .in-cart-badge,
    .not-in-cart-badge {
        font-size: 12px;
        padding: 6px 9px;
        margin-top: 10px;
    }

    .menu-add-form {
        padding-top: 10px;
    }

    .menu-add-btn {
        padding: 12px;
        border-radius: 13px;
        font-size: 14px;
    }

    .bottom-cart-bar {
        width: calc(100% - 20px);
        bottom: 10px;
        border-radius: 18px;
        padding: 11px;
        gap: 10px;
    }

    .bottom-cart-bar span {
        font-size: 12px;
    }

    .bottom-cart-bar strong {
        font-size: 14px;
    }

    .bottom-cart-btn {
        padding: 12px 14px;
        border-radius: 13px;
        font-size: 14px;
    }

    /* ----------------------------- */
    /* CART PAGE */
    /* ----------------------------- */

    .cart-page-body {
        padding-bottom: 125px;
    }

    .cart-page-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }

    .cart-hero {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 18px;
        border-radius: 22px;
        align-items: start;
        margin-bottom: 14px;
    }

    .cart-label {
        font-size: 12px;
        padding: 5px 9px;
        margin-bottom: 8px;
    }

    .cart-hero h1 {
        font-size: 29px;
    }

    .cart-hero p {
        font-size: 14px;
        line-height: 1.4;
    }

    .cart-table-badge {
        min-width: 72px;
        width: 72px;
        height: 72px;
        border-radius: 18px;
        font-size: 12px;
    }

    .cart-table-badge strong {
        font-size: 27px;
    }

    .empty-cart-card {
        border-radius: 22px;
        padding: 30px 18px;
    }

    .empty-cart-icon {
        width: 76px;
        height: 76px;
        font-size: 38px;
    }

    .empty-cart-card h2 {
        font-size: 24px;
    }

    .empty-cart-card p {
        font-size: 14px;
    }

    .cart-summary-mini {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cart-summary-mini div {
        border-radius: 16px;
        padding: 13px;
    }

    .cart-summary-mini span {
        font-size: 12px;
    }

    .cart-summary-mini strong {
        font-size: 18px;
    }

    .cart-items-list {
        gap: 12px;
    }

    .cart-item-card {
        grid-template-columns: 74px 1fr;
        gap: 11px;
        padding: 12px;
        border-radius: 20px;
    }

    .cart-item-icon {
        min-height: 94px;
        border-radius: 16px;
        font-size: 34px;
    }

    .cart-item-top {
        flex-direction: column;
        gap: 7px;
    }

    .cart-item-top h3 {
        font-size: 20px;
    }

    .cart-item-top p {
        font-size: 13px;
    }

    .cart-line-price {
        width: fit-content;
        font-size: 14px;
        padding: 7px 9px;
    }

    .cart-item-bottom {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .cart-quantity-control {
        padding: 4px;
        gap: 5px;
    }

    .cart-qty-btn {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .cart-qty-value {
        min-width: 26px;
        font-size: 17px;
    }

    .cart-item-count-text {
        font-size: 13px;
    }

    .cart-bottom-bar {
        width: calc(100% - 20px);
        bottom: 10px;
        border-radius: 18px;
        padding: 11px;
        gap: 10px;
    }

    .cart-bottom-bar span {
        font-size: 12px;
    }

    .cart-bottom-bar strong {
        font-size: 18px;
    }

    .cart-confirm-btn {
        padding: 12px 14px;
        border-radius: 13px;
        font-size: 14px;
    }

    .cart-secondary-actions {
        width: calc(100% - 20px);
        bottom: 82px;
    }

    .cart-secondary-actions a {
        font-size: 12px;
        padding: 8px 13px;
    }

    /* ----------------------------- */
    /* ORDER SUCCESS / TRACKING PAGE */
    /* ----------------------------- */

    .customer-order-wrapper {
        width: 100%;
        min-height: 100vh;
        padding: 12px;
        align-items: flex-start;
    }

    .customer-success-card {
        max-width: 100%;
        border-radius: 22px;
        padding: 20px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 34px;
    }

    .customer-success-card h1 {
        font-size: 25px;
        line-height: 1.2;
    }

    .success-subtitle {
        font-size: 14px;
    }

    .live-info-box {
        margin: 16px auto;
        font-size: 12px;
        padding: 7px 11px;
    }

    .customer-status-box {
        border-radius: 18px;
        padding: 16px;
    }

    .status-value {
        font-size: 23px;
    }

    .status-description {
        font-size: 13px;
    }

    .customer-order-summary {
        border-radius: 16px;
        padding: 12px;
    }

    .summary-row {
        gap: 10px;
        padding: 9px 2px;
    }

    .summary-row span {
        font-size: 13px;
    }

    .summary-row strong {
        font-size: 14px;
    }

    .customer-items-card {
        border-radius: 16px;
    }

    .customer-items-card h2 {
        padding: 14px;
        font-size: 17px;
    }

    .customer-item-row {
        padding: 13px 14px;
        gap: 10px;
    }

    .customer-item-row strong {
        font-size: 14px;
    }

    .customer-item-row span {
        font-size: 12px;
    }

    .customer-total-row {
        padding: 15px 14px;
    }

    .customer-total-row span {
        font-size: 15px;
    }

    .customer-total-row strong {
        font-size: 22px;
    }

    .customer-secondary-btn {
        border-radius: 13px;
        padding: 13px;
        font-size: 14px;
    }

    /* ----------------------------- */
    /* ADMIN LOGIN */
    /* ----------------------------- */

    input,
    select {
        font-size: 16px;
    }

    .container .card form button,
    .container .card form .btn {
        width: 100%;
        text-align: center;
    }

    /* ----------------------------- */
    /* ADMIN ORDERS */
    /* ----------------------------- */

    .admin-body {
        overflow-x: hidden;
    }

    .admin-layout {
        width: 100%;
        padding: 10px;
    }

    .admin-navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
        margin-bottom: 12px;
    }

    .admin-navbar h1 {
        font-size: 24px;
    }

    .admin-navbar p {
        font-size: 13px;
    }

    .admin-navbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .admin-refresh-btn,
    .admin-logout-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: 12px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
        margin-bottom: 12px;
    }

    .stat-card {
        border-radius: 15px;
        padding: 13px;
        border-left-width: 5px;
    }

    .stat-card span {
        font-size: 12px;
    }

    .stat-card strong {
        font-size: 25px;
    }

    .order-board {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .order-column {
        min-height: auto;
        padding: 10px;
        border-radius: 17px;
    }

    .order-column-header {
        border-radius: 13px;
        padding: 12px;
        position: sticky;
        top: 0;
        z-index: 5;
    }

    .order-column-header span {
        font-size: 16px;
    }

    .order-column-header strong {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .order-column-content {
        gap: 10px;
    }

    .admin-order-card {
        border-radius: 16px;
        padding: 13px;
    }

    .order-card-top {
        align-items: flex-start;
        gap: 10px;
    }

    .order-number {
        font-size: 23px;
        line-height: 1.15;
    }

    .order-table {
        font-size: 14px;
    }

    .order-price {
        font-size: 14px;
        padding: 7px 9px;
        border-radius: 10px;
    }

    .order-time {
        font-size: 12px;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .order-items {
        gap: 6px;
        margin-bottom: 10px;
    }

    .order-item-row {
        padding: 8px 9px;
        font-size: 14px;
        border-radius: 9px;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .quick-btn {
        padding: 11px 8px;
        font-size: 12px;
        border-radius: 10px;
    }

    .empty-admin-box {
        border-radius: 18px;
        padding: 24px;
        font-size: 17px;
    }
}

/* ========================================================= */
/* SMALL MOBILE RESPONSIVE */
/* ========================================================= */

@media (max-width: 480px) {

    /* ----------------------------- */
    /* MENU */
    /* ----------------------------- */

    .menu-hero {
        grid-template-columns: 1fr;
    }

    .menu-table-badge {
        width: 100%;
        height: auto;
        min-height: 64px;
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 16px;
    }

    .menu-table-badge strong {
        margin-top: 0;
    }

    .menu-section-title {
        flex-direction: column;
        align-items: stretch;
    }

    .mini-cart-info {
        width: 100%;
        justify-content: space-between;
    }

    .menu-product-card {
        grid-template-columns: 1fr;
    }

    .product-image-placeholder {
        min-height: 86px;
    }

    .bottom-cart-bar {
        align-items: stretch;
    }

    .bottom-cart-btn {
        min-width: 116px;
    }

    /* ----------------------------- */
    /* CART */
    /* ----------------------------- */

    .cart-hero {
        grid-template-columns: 1fr;
    }

    .cart-table-badge {
        width: 100%;
        height: auto;
        min-height: 64px;
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 16px;
    }

    .cart-table-badge strong {
        margin-top: 0;
    }

    .cart-summary-mini {
        grid-template-columns: 1fr;
    }

    .cart-item-card {
        grid-template-columns: 1fr;
    }

    .cart-item-icon {
        min-height: 82px;
    }

    .cart-item-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-bottom-bar {
        align-items: stretch;
    }

    .cart-confirm-btn {
        min-width: 138px;
    }

    /* ----------------------------- */
    /* ORDER SUCCESS */
    /* ----------------------------- */

    .customer-success-card {
        padding: 18px;
    }

    .customer-item-row {
        flex-direction: column;
    }

    .customer-item-row b {
        align-self: flex-end;
    }

    .summary-row {
        align-items: flex-start;
    }

    /* ----------------------------- */
    /* ADMIN */
    /* ----------------------------- */

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card strong {
        font-size: 23px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .order-card-top {
        flex-direction: column;
    }

    .order-price {
        width: fit-content;
    }

    .order-item-row {
        flex-direction: column;
        gap: 4px;
    }

    .order-item-row strong {
        align-self: flex-end;
    }
}

/* ========================================================= */
/* EXTRA SMALL DEVICES */
/* ========================================================= */

@media (max-width: 360px) {

    .menu-page-wrapper,
    .cart-page-wrapper,
    .customer-order-wrapper,
    .admin-layout,
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .menu-hero,
    .cart-hero,
    .customer-success-card,
    .admin-navbar {
        border-radius: 16px;
    }

    .menu-hero h1,
    .cart-hero h1 {
        font-size: 25px;
    }

    .customer-success-card h1 {
        font-size: 22px;
    }

    .bottom-cart-bar,
    .cart-bottom-bar {
        width: calc(100% - 14px);
        bottom: 7px;
        border-radius: 15px;
        padding: 9px;
    }

    .bottom-cart-bar strong,
    .cart-bottom-bar strong {
        font-size: 13px;
    }

    .bottom-cart-btn,
    .cart-confirm-btn {
        padding: 11px 12px;
        font-size: 12px;
    }

    .cart-secondary-actions {
        width: calc(100% - 14px);
        bottom: 74px;
    }

    .admin-navbar-actions {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* ========================================================= */
/* ORDER TRACKING PAGE - FULL MOBILE OPTIMIZATION */
/* order_success.php */
/* ========================================================= */

.customer-order-body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

.customer-order-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    align-items: flex-start;
}

.customer-success-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
}

.customer-status-box,
.customer-order-summary,
.customer-items-card,
.customer-actions {
    width: 100%;
}

.customer-item-row,
.summary-row,
.customer-total-row {
    min-width: 0;
}

.customer-item-row strong,
.customer-item-row span,
.summary-row strong,
.summary-row span,
.customer-total-row strong,
.customer-total-row span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ============================= */
/* TABLET */
/* ============================= */

@media (max-width: 768px) {

    .customer-order-wrapper {
        padding: 12px;
    }

    .customer-success-card {
        max-width: 100%;
        border-radius: 22px;
        padding: 20px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    }

    .success-icon-area {
        margin-bottom: 10px;
    }

    .success-icon {
        width: 72px;
        height: 72px;
        font-size: 34px;
    }

    .customer-success-card h1 {
        font-size: 25px;
        line-height: 1.2;
        margin: 8px 0 6px;
    }

    .success-subtitle {
        font-size: 14px;
        line-height: 1.45;
    }

    .live-info-box {
        margin: 15px auto;
        padding: 7px 11px;
        font-size: 12px;
        max-width: 100%;
        text-align: center;
    }

    .customer-status-box {
        border-radius: 18px;
        padding: 16px;
        margin-bottom: 14px;
    }

    .status-label {
        font-size: 12px;
    }

    .status-value {
        font-size: 24px;
        line-height: 1.2;
    }

    .status-description {
        font-size: 13px;
        line-height: 1.45;
    }

    .customer-order-summary {
        border-radius: 16px;
        padding: 12px;
        margin-bottom: 14px;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 0;
    }

    .summary-row span {
        font-size: 13px;
        flex: 1;
    }

    .summary-row strong {
        font-size: 14px;
        text-align: right;
        flex: 1.2;
    }

    .customer-items-card {
        border-radius: 16px;
    }

    .customer-items-card h2 {
        font-size: 17px;
        padding: 14px;
    }

    .customer-item-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: flex-start;
        padding: 13px 14px;
    }

    .customer-item-row div {
        min-width: 0;
    }

    .customer-item-row strong {
        font-size: 14px;
        line-height: 1.35;
    }

    .customer-item-row span {
        font-size: 12px;
        line-height: 1.35;
    }

    .customer-item-row b {
        font-size: 14px;
        white-space: nowrap;
        text-align: right;
    }

    .customer-total-row {
        padding: 15px 14px;
        gap: 10px;
    }

    .customer-total-row span {
        font-size: 15px;
    }

    .customer-total-row strong {
        font-size: 22px;
        white-space: nowrap;
    }

    .customer-actions {
        margin-top: 14px;
    }

    .customer-secondary-btn {
        width: 100%;
        border-radius: 14px;
        padding: 14px;
        font-size: 14px;
    }
}

/* ============================= */
/* PHONE */
/* ============================= */

@media (max-width: 480px) {

    .customer-order-body {
        background:
            radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 30%),
            radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.14), transparent 28%),
            #f3f6fb;
    }

    .customer-order-wrapper {
        padding: 10px;
    }

    .customer-success-card {
        border-radius: 20px;
        padding: 18px;
    }

    .success-icon {
        width: 66px;
        height: 66px;
        font-size: 31px;
    }

    .customer-success-card h1 {
        font-size: 23px;
    }

    .success-subtitle {
        font-size: 13px;
    }

    .live-info-box {
        width: 100%;
        justify-content: center;
        border-radius: 14px;
        margin: 14px 0;
    }

    .customer-status-box {
        border-radius: 16px;
        padding: 15px;
    }

    .status-value {
        font-size: 22px;
    }

    .status-description {
        font-size: 13px;
    }

    .summary-row {
        gap: 8px;
    }

    .summary-row span {
        font-size: 12px;
    }

    .summary-row strong {
        font-size: 13px;
    }

    .customer-item-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .customer-item-row b {
        text-align: left;
        align-self: flex-start;
        background: #ecfdf5;
        color: #047857;
        padding: 6px 9px;
        border-radius: 10px;
        width: fit-content;
    }

    .customer-total-row {
        align-items: center;
    }

    .customer-total-row strong {
        font-size: 21px;
    }

    .customer-secondary-btn {
        padding: 13px;
    }
}

/* ============================= */
/* VERY SMALL PHONES */
/* ============================= */

@media (max-width: 360px) {

    .customer-order-wrapper {
        padding: 8px;
    }

    .customer-success-card {
        padding: 15px;
        border-radius: 17px;
    }

    .success-icon {
        width: 58px;
        height: 58px;
        font-size: 28px;
    }

    .customer-success-card h1 {
        font-size: 21px;
    }

    .success-subtitle {
        font-size: 12px;
    }

    .live-info-box {
        font-size: 11px;
        padding: 7px 9px;
    }

    .customer-status-box {
        padding: 13px;
    }

    .status-value {
        font-size: 20px;
    }

    .status-description {
        font-size: 12px;
    }

    .customer-items-card h2 {
        font-size: 16px;
        padding: 12px;
    }

    .customer-total-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-total-row strong {
        font-size: 20px;
    }
}

/* ========================================================= */
/* ADMIN ORDERS PAGE - MOBILE FIRST OPTIMIZED */
/* admin/orders.php */
/* ========================================================= */

.admin-orders-body {
    margin: 0;
    min-height: 100vh;
    background: #eef2f7;
    color: #111827;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.admin-orders-page {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 14px;
}

.admin-orders-header {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    border-radius: 22px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    margin-bottom: 14px;
}

.admin-panel-label {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #bfdbfe;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.admin-orders-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
}

.admin-orders-header p {
    margin: 6px 0 0;
    color: #cbd5e1;
    font-size: 14px;
}

.admin-header-actions {
    display: flex;
    gap: 8px;
}

.admin-action-btn {
    color: #ffffff;
    text-decoration: none;
    border-radius: 13px;
    padding: 12px 14px;
    font-weight: 900;
    font-size: 14px;
    white-space: nowrap;
}

.refresh-action {
    background: #2563eb;
}

.logout-action {
    background: #dc2626;
}

.admin-live-summary {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.live-summary-card {
    background: #ffffff;
    border-radius: 17px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.live-summary-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 5px;
}

.live-summary-card strong {
    font-size: 27px;
    color: #111827;
}

.main-summary {
    background: #111827;
    color: #ffffff;
}

.main-summary span {
    color: #cbd5e1;
}

.main-summary strong {
    color: #ffffff;
}

.admin-status-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 10px;
    margin-bottom: 6px;
    scrollbar-width: none;
}

.admin-status-tabs::-webkit-scrollbar {
    display: none;
}

.status-tab {
    flex: 0 0 auto;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.status-tab b {
    min-width: 23px;
    height: 23px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.status-tab.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.status-tab.active b {
    background: #ffffff;
    color: #111827;
}

.admin-current-filter {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 2px 2px 12px;
    color: #64748b;
    font-size: 13px;
}

.admin-current-filter strong {
    color: #111827;
}

.admin-empty-orders {
    background: #ffffff;
    border-radius: 22px;
    padding: 34px 18px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.admin-empty-orders div {
    font-size: 44px;
    margin-bottom: 8px;
}

.admin-empty-orders h2 {
    margin: 0 0 6px;
}

.admin-empty-orders p {
    margin: 0;
    color: #64748b;
}

.admin-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-order-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-left: 7px solid #64748b;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

.admin-order-item.status-waiting {
    border-left-color: #f59e0b;
}

.admin-order-item.status-preparing {
    border-left-color: #2563eb;
}

.admin-order-item.status-completed {
    border-left-color: #16a34a;
    opacity: 0.9;
}

.admin-order-item.status-cancelled {
    border-left-color: #dc2626;
    opacity: 0.8;
}

.admin-order-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.admin-table-number {
    font-size: 30px;
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
}

.admin-order-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.admin-order-meta span {
    background: #f8fafc;
    color: #64748b;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: bold;
}

.admin-order-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.admin-order-total {
    background: #ecfdf5;
    color: #047857;
    border-radius: 12px;
    padding: 8px 10px;
    font-weight: 900;
    white-space: nowrap;
    font-size: 16px;
}

.admin-order-status-pill {
    background: #111827;
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-order-products {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
}

.admin-product-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px;
    font-size: 15px;
}

.admin-product-line span {
    font-weight: 800;
    color: #111827;
}

.admin-product-line strong {
    white-space: nowrap;
    color: #111827;
}

.admin-quick-status-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.admin-quick-status-actions form {
    margin: 0;
}

.admin-status-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 8px;
    color: #ffffff;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
}

.waiting-action {
    background: #f59e0b;
}

.preparing-action {
    background: #2563eb;
}

.completed-action {
    background: #16a34a;
}

.cancel-action {
    background: #dc2626;
}

/* TABLET */
@media (max-width: 768px) {

    .admin-orders-page {
        max-width: 100%;
        padding: 10px;
    }

    .admin-orders-header {
        border-radius: 18px;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 10px;
    }

    .admin-orders-header h1 {
        font-size: 27px;
    }

    .admin-header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .admin-action-btn {
        text-align: center;
        padding: 12px;
    }

    .admin-live-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .live-summary-card {
        border-radius: 15px;
        padding: 12px;
    }

    .live-summary-card span {
        font-size: 12px;
    }

    .live-summary-card strong {
        font-size: 24px;
    }

    .admin-order-item {
        border-radius: 18px;
        padding: 13px;
    }

    .admin-table-number {
        font-size: 28px;
    }

    .admin-order-total {
        font-size: 15px;
    }

    .admin-quick-status-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-status-btn {
        padding: 12px 8px;
        font-size: 13px;
    }
}

/* PHONE */
@media (max-width: 480px) {

    .admin-orders-page {
        padding: 8px;
    }

    .admin-orders-header {
        padding: 15px;
        border-radius: 17px;
    }

    .admin-orders-header h1 {
        font-size: 25px;
    }

    .admin-orders-header p {
        font-size: 13px;
    }

    .admin-live-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-status-tabs {
        gap: 7px;
        margin-left: -2px;
        margin-right: -2px;
    }

    .status-tab {
        padding: 9px 11px;
        font-size: 12px;
    }

    .admin-order-main {
        flex-direction: column;
        gap: 10px;
    }

    .admin-order-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .admin-table-number {
        font-size: 30px;
    }

    .admin-order-meta span {
        font-size: 11px;
    }

    .admin-product-line {
        padding: 9px;
        font-size: 14px;
        align-items: flex-start;
    }

    .admin-product-line span {
        line-height: 1.35;
    }

    .admin-product-line strong {
        font-size: 13px;
    }

    .admin-quick-status-actions {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .admin-status-btn {
        min-height: 44px;
    }
}

/* VERY SMALL PHONE */
@media (max-width: 360px) {

    .admin-live-summary {
        grid-template-columns: 1fr;
    }

    .admin-header-actions {
        grid-template-columns: 1fr;
    }

    .admin-product-line {
        flex-direction: column;
        gap: 4px;
    }

    .admin-product-line strong {
        align-self: flex-end;
    }

    .admin-quick-status-actions {
        grid-template-columns: 1fr;
    }
}