@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f4f7fb;
    --bg-soft: #eef2f7;
    --card: rgba(255, 255, 255, 0.88);
    --card-solid: #ffffff;
    --text: #111827;
    --muted: #667085;
    --border: rgba(17, 24, 39, 0.08);

    --primary: #ff7a1a;
    --primary-dark: #e86408;
    --primary-soft: #fff1e8;

    --success: #16a34a;
    --success-soft: #eafaf0;

    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --danger-soft: #fee2e2;

    --warning: #f59e0b;
    --info: #2563eb;
    --dark: #101828;

    --shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.06);
    --shadow: 0 18px 45px rgba(16, 24, 40, 0.10);
    --shadow-lg: 0 26px 70px rgba(16, 24, 40, 0.16);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 26, 0.16), transparent 36%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
    color: var(--text);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: -0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 800;
}

h2 {
    font-size: clamp(20px, 2.2vw, 26px);
    letter-spacing: -0.035em;
    font-weight: 800;
}

h3 {
    font-size: 17px;
    letter-spacing: -0.02em;
    font-weight: 750;
}

p {
    line-height: 1.55;
}

.topbar {
    width: min(1180px, 92%);
    margin: 22px auto 0;
    background:
        linear-gradient(135deg, rgba(16, 24, 40, 0.96), rgba(30, 41, 59, 0.92)),
        linear-gradient(135deg, var(--primary), #f97316);
    color: white;
    box-shadow: var(--shadow-lg);
    padding: 22px 26px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.topbar::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -90px;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.42), transparent 68%);
    border-radius: 50%;
}

.topbar > * {
    position: relative;
    z-index: 1;
}

.topbar h1 {
    margin: 0;
}

.topbar p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    justify-content: flex-end;
}

.nav-link {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.20);
}

.logout-btn {
    background: rgba(220, 38, 38, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.container {
    width: min(1100px, 92%);
    margin: 28px auto 42px;
}

.layout {
    width: min(1180px, 92%);
    margin: 28px auto 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 24px;
    align-items: start;
}

.menu-section h2 {
    margin-bottom: 14px;
}

.cart-panel,
.form-card,
.dashboard-card,
.menu-card,
.order-card,
.login-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.cart-panel,
.dashboard-card,
.order-card {
    box-shadow: var(--shadow);
}

.cart-panel {
    position: sticky;
    top: 22px;
    height: fit-content;
}

.cart-panel h2,
.form-card h2,
.dashboard-card h2 {
    margin-bottom: 15px;
}

.cart-summary {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    padding: 15px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.cart-summary span {
    color: rgba(255,255,255,.76);
    font-weight: 600;
}

.cart-summary b {
    color: white;
    font-size: 20px;
}

.menu-grid,
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.menu-card,
.order-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.menu-card:hover,
.order-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(255, 122, 26, 0.20);
}

.urun-resim {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #eef2f7, #dbe4ef);
    border: 1px solid rgba(17, 24, 39, 0.06);
}

.kategori {
    display: inline-flex;
    align-items: center;
    background: var(--primary-soft);
    color: #c2410c;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    margin: 4px 0 10px;
}

.menu-card p,
.order-card p {
    color: var(--muted);
}

.menu-card span,
.order-total {
    display: block;
    color: var(--text);
    font-size: 24px;
    font-weight: 850;
    margin: 13px 0;
    letter-spacing: -0.04em;
}

button {
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #fb923c);
    color: white;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(255, 122, 26, .22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(0.99);
    box-shadow: 0 14px 28px rgba(255, 122, 26, .28);
}

button:active {
    transform: translateY(0);
}

.menu-card button,
#siparisBtn,
.form-card button {
    width: 100%;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 15px;
    border: 1px solid rgba(17, 24, 39, 0.11);
    background: rgba(255, 255, 255, 0.82);
    margin: 7px 0;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus,
textarea:focus {
    border-color: rgba(255, 122, 26, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
    background: white;
}

textarea {
    min-height: 88px;
    resize: vertical;
}

.sepet-item {
    background: rgba(249, 250, 251, 0.9);
    padding: 12px;
    margin: 10px 0;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border);
}

.qty-buttons,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qty-buttons button {
    padding: 8px 10px;
    border-radius: 11px;
    box-shadow: none;
}

#siparisBtn {
    margin-top: 12px;
    background: linear-gradient(135deg, var(--success), #22c55e);
    box-shadow: 0 12px 22px rgba(22, 163, 74, .20);
}

#siparisBtn:hover {
    box-shadow: 0 15px 26px rgba(22, 163, 74, .26);
}

#siparisDurum {
    margin-top: 14px;
}

.status-box,
.durum {
    padding: 8px 11px;
    border-radius: 999px;
    color: white;
    font-weight: 850;
    display: inline-block;
    font-size: 13px;
    letter-spacing: -0.01em;
}

.yeni {
    background: linear-gradient(135deg, var(--warning), #f97316);
}

.hazirlaniyor {
    background: linear-gradient(135deg, var(--info), #60a5fa);
}

.hazir {
    background: linear-gradient(135deg, var(--success), #22c55e);
}

.teslim {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.iptal {
    background: linear-gradient(135deg, var(--danger), #ef4444);
}

.sil-btn {
    background: linear-gradient(135deg, var(--danger), #ef4444);
    box-shadow: 0 10px 22px rgba(220, 38, 38, .20);
}

.sil-btn:hover,
.logout-btn:hover {
    background: linear-gradient(135deg, var(--danger-dark), var(--danger));
    box-shadow: 0 14px 28px rgba(220, 38, 38, .24);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0 19px;
}

.chip {
    background: rgba(255, 255, 255, 0.80);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
    border-radius: 999px;
}

.chip:hover {
    box-shadow: var(--shadow-sm);
}

.chip.active {
    background: linear-gradient(135deg, var(--primary), #fb923c);
    color: white;
    border-color: transparent;
}

.muted {
    color: var(--muted);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    text-align: center;
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.login-card h1 {
    margin-bottom: 10px;
}

.login-card p {
    color: var(--muted);
    margin-bottom: 20px;
}

.login-card button {
    width: 100%;
    margin-top: 8px;
}

.back-link {
    display: inline-block;
    margin-top: 17px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    color: var(--primary-dark);
}

.error-text {
    color: var(--danger);
    font-weight: 800;
}

.success-text {
    color: var(--success);
    font-weight: 800;
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.section-title button {
    width: auto;
    white-space: nowrap;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.report-box {
    background:
        linear-gradient(180deg, rgba(255,255,255,.95), rgba(249,250,251,.88));
    border-radius: 18px;
    padding: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.05);
}

.report-box span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 13px;
}

.report-box b {
    font-size: 25px;
    letter-spacing: -0.05em;
}

.report-list-item {
    background: rgba(249, 250, 251, 0.92);
    padding: 12px;
    border-radius: 15px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border);
}

.payment-summary {
    background: linear-gradient(135deg, rgba(17, 24, 39, .96), rgba(31, 41, 55, .94));
    color: white;
    border-radius: 18px;
    padding: 13px;
    display: grid;
    gap: 8px;
    margin: 10px 0;
}

.payment-summary span {
    color: rgba(255,255,255,.78);
    font-weight: 700;
}

.payment-summary b {
    color: white;
}

.payment-line {
    background: rgba(249, 250, 251, 0.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 11px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin: 8px 0;
}

.payment-line small {
    color: var(--muted);
}

.pay-qty {
    width: 76px;
    margin: 0;
    padding: 9px;
    text-align: center;
    font-weight: 800;
}

.selected-total {
    background: linear-gradient(135deg, var(--primary), #fb923c);
    color: white;
    padding: 13px;
    border-radius: 16px;
    margin: 12px 0;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(255, 122, 26, .20);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

.panel-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.big-link {
    display: block;
    background:
        linear-gradient(135deg, #111827, #1f2937);
    color: white;
    padding: 24px;
    border-radius: 22px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 850;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .2s ease;
}

.big-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Daha temiz scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #eef2f7;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

    .cart-panel {
        position: static;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
        margin-top: 14px;
    }

    .nav-actions {
        justify-content: flex-start;
    }

    .payment-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-title button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 14px;
    }

    .container,
    .layout,
    .topbar {
        width: 94%;
    }

    .cart-panel,
    .form-card,
    .dashboard-card,
    .menu-card,
    .order-card,
    .login-card {
        border-radius: 20px;
        padding: 16px;
    }

    .menu-grid,
    .orders-grid {
        grid-template-columns: 1fr;
    }

    .nav-link,
    button {
        width: 100%;
        text-align: center;
    }

    .nav-actions {
        width: 100%;
    }
}



/* =========================
   QR Landing Page
========================= */
.landing-body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at top center, rgba(255, 122, 26, 0.20), transparent 32%),
        linear-gradient(180deg, #0b0b10 0%, #12131a 48%, #171821 100%);
}

.landing-body::before {
    background-image:
        radial-gradient(circle at 25% 10%, rgba(255,122,26,.12), transparent 18%),
        radial-gradient(circle at 80% 78%, rgba(255,122,26,.08), transparent 18%);
    mask-image: none;
    opacity: .95;
}

.landing-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 30px 18px;
}

.landing-bg-logo {
    position: absolute;
    width: min(900px, 95vw);
    max-width: 95vw;
    opacity: .16;
    filter: blur(14px);
    transform: scale(1.25);
    top: 6%;
    left: 50%;
    translate: -50% 0;
    pointer-events: none;
    user-select: none;
}

.landing-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    display: grid;
    justify-items: center;
    gap: 24px;
}

.landing-front-logo {
    width: min(420px, 76vw);
    filter: drop-shadow(0 22px 50px rgba(0, 0, 0, .42));
}

.landing-card {
    width: 100%;
    max-width: 700px;
    text-align: center;
    padding: 34px 26px 26px;
    border-radius: 34px;
    background: rgba(10, 10, 14, .76);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .34);
}

.landing-card h1 {
    color: white;
    font-size: clamp(34px, 5vw, 62px);
    margin: 0 0 14px;
    letter-spacing: -0.06em;
}

.landing-card p {
    color: rgba(255,255,255,.82);
    font-size: clamp(18px, 2.4vw, 28px);
    margin: 0;
}

.landing-badge {
    width: 86px;
    height: 86px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ff7a1a, #ff4d12);
    color: white;
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(255,122,26,.35);
    border: 8px solid rgba(255,255,255,.13);
}

.landing-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 16px 0 20px;
}

.landing-divider span {
    width: min(190px, 24vw);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,122,26,.95), transparent);
}

.landing-divider small {
    color: #ff7a1a;
    font-size: 22px;
}

.landing-button {
    margin-top: 28px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #ff7a1a, #ff4d12);
    border-radius: 999px;
    padding: 20px 24px;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    box-shadow: 0 18px 42px rgba(255,122,26,.34);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.landing-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 26px 48px rgba(255,122,26,.40);
}

.landing-button-icon,
.landing-button-arrow {
    font-size: 1.1em;
    line-height: 1;
}

.landing-button span:nth-child(2) {
    flex: 1;
    text-align: center;
}

@media (max-width: 700px) {
    .landing-front-logo {
        width: min(340px, 82vw);
    }

    .landing-card {
        border-radius: 28px;
        padding: 26px 18px 18px;
    }

    .landing-badge {
        width: 74px;
        height: 74px;
        font-size: 34px;
    }

    .landing-button {
        padding: 18px 20px;
        font-size: 24px;
    }
}



/* =========================
   v1.8 Animated QR Landing
========================= */
.landing-bg-logo {
    animation: bgLogoFloat 8s ease-in-out infinite;
}

.landing-front-logo {
    animation: logoEntrance .9s cubic-bezier(.2,.9,.2,1) both, logoFloat 4.5s ease-in-out 1s infinite;
}

.landing-card {
    animation: cardEntrance .9s cubic-bezier(.2,.9,.2,1) .18s both;
}

.landing-badge {
    animation: badgePop .75s cubic-bezier(.2,1.4,.2,1) .55s both, badgePulse 1.8s ease-in-out 1.35s infinite;
}

.landing-card h1 {
    animation: fadeUp .72s ease .38s both;
}

.landing-welcome {
    color: #ffb16c !important;
    font-weight: 850;
    font-size: clamp(18px, 2.2vw, 25px) !important;
    margin-bottom: 10px !important;
    animation: fadeUp .7s ease .28s both;
}

.landing-divider {
    animation: fadeUp .7s ease .48s both;
}

.landing-card > p:not(.landing-welcome) {
    animation: fadeUp .7s ease .58s both;
}

.landing-auto-text {
    margin-top: 18px;
    color: rgba(255,255,255,.68);
    font-weight: 700;
    font-size: 14px;
    animation: fadeUp .7s ease .68s both;
}

.landing-progress {
    width: 100%;
    height: 7px;
    margin: 12px auto 0;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.08);
    animation: fadeUp .7s ease .72s both;
}

.landing-progress-bar {
    width: 100%;
    height: 100%;
    transform-origin: left center;
    background: linear-gradient(90deg, #ffb86b, #ff7a1a, #ff4d12);
    border-radius: inherit;
    animation: landingProgress 5s linear forwards;
}

.landing-button {
    animation: fadeUp .7s ease .80s both, buttonGlow 2.4s ease-in-out 1.2s infinite;
}

.landing-button-arrow {
    animation: arrowMove 1.15s ease-in-out infinite;
}

.landing-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.landing-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ff7a1a;
    box-shadow: 0 0 20px rgba(255,122,26,.75);
    opacity: .45;
    animation: emberRise 6s linear infinite;
}

.landing-particles span:nth-child(1) {
    left: 12%;
    bottom: 10%;
    animation-delay: 0s;
}

.landing-particles span:nth-child(2) {
    left: 28%;
    bottom: 5%;
    animation-delay: 1.2s;
    width: 4px;
    height: 4px;
}

.landing-particles span:nth-child(3) {
    left: 72%;
    bottom: 12%;
    animation-delay: .6s;
}

.landing-particles span:nth-child(4) {
    left: 86%;
    bottom: 20%;
    animation-delay: 2.1s;
    width: 4px;
    height: 4px;
}

.landing-particles span:nth-child(5) {
    left: 50%;
    bottom: 0;
    animation-delay: 3s;
    width: 5px;
    height: 5px;
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: translateY(-28px) scale(.92);
        filter: blur(6px) drop-shadow(0 22px 50px rgba(0,0,0,.42));
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) drop-shadow(0 22px 50px rgba(0,0,0,.42));
    }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(32px) scale(.96);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

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

@keyframes badgePop {
    from {
        opacity: 0;
        transform: scale(.3) rotate(-18deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 18px 44px rgba(255,122,26,.35);
    }
    50% {
        box-shadow: 0 20px 58px rgba(255,122,26,.55);
    }
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 18px 42px rgba(255,122,26,.34);
    }
    50% {
        box-shadow: 0 24px 58px rgba(255,122,26,.48);
    }
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(6px);
    }
}

@keyframes landingProgress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes bgLogoFloat {
    0%, 100% {
        transform: scale(1.25) translateY(0);
    }
    50% {
        transform: scale(1.29) translateY(-10px);
    }
}

@keyframes emberRise {
    0% {
        transform: translateY(0) translateX(0) scale(.7);
        opacity: 0;
    }
    15% {
        opacity: .55;
    }
    100% {
        transform: translateY(-95vh) translateX(30px) scale(1.2);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-bg-logo,
    .landing-front-logo,
    .landing-card,
    .landing-badge,
    .landing-card h1,
    .landing-welcome,
    .landing-divider,
    .landing-card > p,
    .landing-auto-text,
    .landing-progress,
    .landing-progress-bar,
    .landing-button,
    .landing-button-arrow,
    .landing-particles span {
        animation: none !important;
    }
}



/* =========================
   v1.8.2 Full Screen Welcome
========================= */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 122, 26, .30), transparent 32%),
        linear-gradient(180deg, #09090d 0%, #11121a 52%, #171821 100%);
    color: white;
    transition: opacity .65s ease, visibility .65s ease, transform .65s ease;
}

.welcome-overlay::before {
    content: "";
    position: absolute;
    width: min(760px, 120vw);
    height: min(760px, 120vw);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,122,26,.20), transparent 64%);
    filter: blur(10px);
    animation: welcomeGlow 2.8s ease-in-out infinite;
}

.welcome-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: .35;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.welcome-overlay.hide {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
}

.welcome-logo {
    position: absolute;
    width: min(480px, 80vw);
    opacity: .16;
    filter: blur(8px);
    transform: scale(1.45);
    animation: welcomeBgLogo 2.6s ease-in-out infinite;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: welcomeContentIn .85s cubic-bezier(.2,.9,.2,1) both;
}

.welcome-content p {
    color: #ffb16c;
    font-size: clamp(24px, 5vw, 46px);
    font-weight: 850;
    letter-spacing: -0.05em;
    margin-bottom: 10px;
}

.welcome-content h1 {
    color: white;
    font-size: clamp(42px, 9vw, 92px);
    font-weight: 900;
    letter-spacing: -0.075em;
    margin-bottom: 14px;
    text-shadow: 0 28px 70px rgba(0,0,0,.45);
}

.welcome-content span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.76);
    font-weight: 800;
    font-size: clamp(15px, 2.6vw, 20px);
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(14px);
}

.welcome-content span::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ff7a1a;
    box-shadow: 0 0 0 0 rgba(255,122,26,.7);
    animation: welcomeDot 1.3s ease-in-out infinite;
}

@keyframes welcomeContentIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.96);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes welcomeBgLogo {
    0%, 100% {
        transform: scale(1.45) translateY(0);
    }
    50% {
        transform: scale(1.52) translateY(-10px);
    }
}

@keyframes welcomeGlow {
    0%, 100% {
        opacity: .78;
        transform: scale(.96);
    }
    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes welcomeDot {
    0% {
        box-shadow: 0 0 0 0 rgba(255,122,26,.7);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(255,122,26,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,122,26,0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-overlay,
    .welcome-overlay::before,
    .welcome-logo,
    .welcome-content,
    .welcome-content span::before {
        animation: none !important;
        transition: none !important;
    }
}



/* =========================
   v1.8.3 Menu Admin Return
========================= */
.menu-panel-nav {
    min-width: fit-content;
}

.menu-panel-nav .logout-btn {
    width: auto;
}

@media (max-width: 520px) {
    .menu-panel-nav .logout-btn {
        width: 100%;
    }
}



/* =========================
   v1.8.4 Separate Product Page
========================= */
.product-admin-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.product-form-card {
    position: sticky;
    top: 22px;
}

@media (max-width: 920px) {
    .product-admin-layout {
        grid-template-columns: 1fr;
    }

    .product-form-card {
        position: static;
    }
}



/* =========================
   v1.8.5 Checkbox Payment Select
========================= */
.payment-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-weight: 850;
}

.payment-select input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-select span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(17, 24, 39, 0.12);
    color: var(--text);
    box-shadow: none;
    transition: .18s ease;
}

.payment-select input:checked + span {
    background: linear-gradient(135deg, var(--primary), #fb923c);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(255, 122, 26, .20);
}

.payment-select input:disabled + span {
    opacity: .45;
    cursor: not-allowed;
}

.payment-select-disabled {
    opacity: .62;
}

.payment-line-price {
    font-weight: 850;
    color: var(--text);
    white-space: nowrap;
}

@media (max-width: 520px) {
    .payment-select {
        width: 100%;
        justify-content: space-between;
    }

    .payment-select span {
        min-width: 96px;
    }
}



/* =========================
   v1.8.6 Single Item Payment Select
========================= */
.single-select-box {
    display: grid;
    gap: 8px;
    justify-items: end;
    min-width: 150px;
}

.single-select-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.single-select-count b {
    color: var(--text);
    font-size: 18px;
}

.single-select-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.select-one-btn,
.select-one-remove {
    width: auto;
    padding: 9px 12px;
    border-radius: 999px;
    box-shadow: none;
}

.select-one-remove {
    background: rgba(17, 24, 39, 0.08);
    color: var(--text);
}

.select-one-remove:hover {
    background: rgba(17, 24, 39, 0.14);
    box-shadow: none;
}

.select-one-btn:disabled,
.select-one-remove:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 520px) {
    .single-select-box {
        width: 100%;
        justify-items: stretch;
    }

    .single-select-actions {
        justify-content: stretch;
    }

    .select-one-btn,
    .select-one-remove {
        flex: 1;
    }
}



/* =========================
   v1.8.7 Centered Customer Menu
========================= */
.menu-body .topbar {
    text-align: center;
}

.menu-body .topbar > div:first-child {
    flex: 1;
}

.menu-body .menu-section {
    text-align: center;
}

.menu-body #masaBaslik {
    text-align: center;
    margin-bottom: 18px;
}

.menu-body .chips {
    justify-content: center;
}

.menu-body .menu-grid {
    justify-items: center;
}

.menu-body .menu-card {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.menu-body .menu-card .urun-resim {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.menu-body .menu-card .kategori {
    margin-left: auto;
    margin-right: auto;
}

.menu-body .menu-card p {
    text-align: center;
}

.menu-body .cart-panel {
    text-align: center;
}

.menu-body .cart-summary {
    text-align: center;
}

.menu-body .sepet-item {
    text-align: center;
    flex-direction: column;
}

.menu-body .qty-buttons {
    justify-content: center;
}

.menu-body textarea {
    text-align: center;
}

.menu-body #siparisDurum {
    text-align: center;
}

.menu-body .menu-panel-nav {
    justify-content: center;
}

@media (max-width: 850px) {
    .menu-body .topbar {
        align-items: center;
    }

    .menu-body .nav-actions {
        justify-content: center;
    }
}



/* =========================
   v1.9.3 Selected Pizza Menu
========================= */
.special-menu-card {
    border: 1px solid rgba(249, 115, 22, .28);
    box-shadow: 0 18px 42px rgba(249, 115, 22, .12);
}

.menu-choice-hint {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 13px;
}

.menu-choice-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.menu-choice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(8px);
}

.menu-choice-box {
    position: relative;
    z-index: 1;
    width: min(520px, 94vw);
    background: white;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
    border: 1px solid rgba(255,255,255,.5);
    text-align: center;
}

.menu-choice-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    padding: 0;
    background: rgba(17, 24, 39, .08);
    color: var(--text);
    box-shadow: none;
    font-size: 24px;
    line-height: 1;
}

.menu-choice-close:hover {
    background: rgba(17, 24, 39, .14);
    box-shadow: none;
}

.menu-choice-label {
    display: grid;
    gap: 8px;
    text-align: left;
    margin: 14px 0;
    font-weight: 850;
}

.menu-choice-label span {
    color: var(--text);
}

.menu-choice-label select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(17, 24, 39, .10);
    border-radius: 16px;
    background: #f8fafc;
    font-size: 15px;
    font-weight: 750;
    color: var(--text);
}

.cart-choice-detail {
    display: inline-block;
    margin: 4px 0;
    color: var(--primary-dark);
    font-weight: 800;
}



/* =========================
   v1.9.4 Static QR System
========================= */
.qr-settings {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 160px auto auto;
    gap: 14px;
    align-items: end;
}

.qr-settings label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.qr-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 122, 26, .10);
    color: var(--text);
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 20px;
}

.qr-card {
    background: white;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 26px;
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow);
    page-break-inside: avoid;
}

.qr-card .qr-brand {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111827;
    color: white;
    font-weight: 900;
    margin-bottom: 8px;
}

.qr-card h2 {
    margin: 8px 0 12px;
    font-size: 28px;
}

.qr-card img {
    width: min(100%, 220px);
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, .08);
}

.qr-card p {
    font-size: 12px;
    color: var(--muted);
    word-break: break-all;
}

.qr-download {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 820px) {
    .qr-settings {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: white;
    }

    .topbar,
    .qr-settings,
    .qr-note,
    .section-title button,
    .qr-download,
    .dashboard-card:first-child {
        display: none !important;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .dashboard-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .qr-card {
        box-shadow: none;
        border: 2px solid #111827;
    }
}



/* =========================
   v1.9.5 Ravelli Logo Background Theme
========================= */
:root {
    --primary: #d94716;
    --primary-dark: #9a3412;
    --primary-soft: rgba(217, 71, 22, .13);
    --secondary: #f97316;
    --accent: #b91c1c;
    --text: #20110a;
    --muted: #7c5b48;
    --card: rgba(255, 252, 247, .88);
    --glass: rgba(255, 250, 243, .74);
    --border: rgba(154, 52, 18, .14);
    --shadow: 0 22px 55px rgba(60, 24, 8, .13);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 237, 213, .92), transparent 34%),
        radial-gradient(circle at bottom right, rgba(254, 215, 170, .86), transparent 32%),
        linear-gradient(135deg, #fffaf3 0%, #fff1df 45%, #fff7ed 100%) !important;
    color: var(--text);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../images/ravelli-logo.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: min(62vw, 620px) auto;
    opacity: .095;
    filter: saturate(1.12) contrast(1.04);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 250, 243, .76), rgba(255, 244, 229, .84)),
        radial-gradient(circle at center, transparent 0 18%, rgba(255, 246, 235, .58) 58%, rgba(255, 239, 220, .82) 100%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.topbar {
    background:
        linear-gradient(135deg, rgba(43, 18, 8, .94), rgba(122, 37, 13, .90)),
        radial-gradient(circle at top right, rgba(249, 115, 22, .38), transparent 45%) !important;
    color: #fffaf3;
    border-bottom: 1px solid rgba(255, 237, 213, .20);
    box-shadow: 0 16px 42px rgba(60, 24, 8, .22);
}

.topbar p {
    color: rgba(255, 247, 237, .78);
}

.nav-link,
.logout-btn {
    background: rgba(255, 250, 243, .12);
    border: 1px solid rgba(255, 237, 213, .22);
    color: #fffaf3;
}

.nav-link:hover,
.logout-btn:hover {
    background: rgba(249, 115, 22, .92);
    color: white;
}

.container {
    position: relative;
}

.dashboard-card,
.form-card,
.order-card,
.cart-panel,
.menu-card,
.qr-card,
.status-box,
.login-card,
.landing-card,
.staff-card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow) !important;
    backdrop-filter: blur(14px);
}

.menu-card {
    overflow: hidden;
}

.menu-card h2,
.dashboard-card h2,
.form-card h2,
.order-card h2,
.cart-panel h2 {
    color: #2b1208;
}

.menu-card span,
.report-box b,
.selected-total b,
.payment-summary b {
    color: var(--primary-dark);
}

button,
.big-link,
.qr-download {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fffaf3 !important;
    box-shadow: 0 12px 24px rgba(217, 71, 22, .22) !important;
}

button:hover,
.big-link:hover,
.qr-download:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.sil-btn {
    background: linear-gradient(135deg, #991b1b, #dc2626) !important;
}

.chip {
    background: rgba(255, 250, 243, .72) !important;
    border: 1px solid rgba(154, 52, 18, .16) !important;
    color: var(--text) !important;
}

.chip.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
}

input,
textarea,
select {
    background: rgba(255, 252, 247, .88) !important;
    border: 1px solid rgba(154, 52, 18, .16) !important;
    color: var(--text) !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(217, 71, 22, .55) !important;
    box-shadow: 0 0 0 4px rgba(217, 71, 22, .12);
}

.report-box,
.report-list-item,
.payment-line,
.sepet-item {
    background: rgba(255, 247, 237, .72) !important;
    border: 1px solid rgba(154, 52, 18, .12) !important;
}

.kategori,
.muted,
.qr-card p {
    color: var(--muted) !important;
}

.menu-choice-box {
    background: rgba(255, 252, 247, .96) !important;
    border: 1px solid rgba(154, 52, 18, .16) !important;
}

.menu-choice-backdrop {
    background: rgba(43, 18, 8, .54) !important;
}

.welcome-overlay,
.login-page,
.landing-page {
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, .25), transparent 34%),
        linear-gradient(135deg, #2b1208, #7c2d12) !important;
}

.welcome-overlay::before,
.login-page::before,
.landing-page::before {
    opacity: .12;
}

@media (max-width: 700px) {
    body::before {
        background-size: 82vw auto;
        opacity: .075;
    }
}

@media print {
    body::before,
    body::after {
        display: none !important;
    }

    body {
        background: white !important;
    }
}



/* =========================
   v1.9.8 Full Ravelli Blurred Logo Theme
   Tüm ekranlarda büyük, flu ve soluk Ravelli logosu
========================= */
:root {
    --primary: #c94316;
    --primary-dark: #7c2d12;
    --primary-soft: rgba(201, 67, 22, .13);
    --secondary: #f97316;
    --accent: #991b1b;
    --text: #241007;
    --muted: #76513e;
    --card: rgba(255, 249, 240, .86);
    --glass: rgba(255, 246, 235, .76);
    --border: rgba(124, 45, 18, .16);
    --shadow: 0 22px 58px rgba(54, 20, 5, .15);
}

/* Bütün sayfaların ana zeminini tek temaya bağla */
html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--text) !important;
    background:
        linear-gradient(135deg, rgba(255, 247, 237, .96), rgba(255, 237, 213, .94)),
        radial-gradient(circle at 18% 12%, rgba(249, 115, 22, .22), transparent 32%),
        radial-gradient(circle at 82% 88%, rgba(153, 27, 27, .15), transparent 34%) !important;
    position: relative;
    overflow-x: hidden;
}

/* Full ekran Ravelli logosu */
body::before {
    content: "";
    position: fixed;
    inset: -7vh -7vw;
    background-image: url("../images/ravelli-logo.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: min(118vw, 118vh) auto;
    opacity: .16;
    filter: blur(9px) saturate(1.18) contrast(1.06);
    transform: scale(1.08);
    pointer-events: none;
    z-index: 0;
}

/* Logonun üstünde okunabilirlik katmanı */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 250, 243, .70), rgba(255, 244, 229, .78)),
        radial-gradient(circle at center, rgba(255,255,255,.10) 0 18%, rgba(255, 240, 220, .42) 62%, rgba(255, 232, 205, .72) 100%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Giriş, QR karşılama ve tüm özel sayfalar da aynı logolu zemini kullansın */
.login-page,
.landing-page,
.menu-body {
    background:
        linear-gradient(135deg, rgba(255, 247, 237, .96), rgba(255, 237, 213, .94)),
        radial-gradient(circle at 18% 12%, rgba(249, 115, 22, .22), transparent 32%),
        radial-gradient(circle at 82% 88%, rgba(153, 27, 27, .15), transparent 34%) !important;
}

.login-page::before,
.landing-page::before,
.menu-body::before {
    background-image: url("../images/ravelli-logo.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: min(118vw, 118vh) auto !important;
    opacity: .16 !important;
    filter: blur(9px) saturate(1.18) contrast(1.06) !important;
    transform: scale(1.08) !important;
}

/* Tam ekran hoş geldiniz katmanı: koyu ama Ravelli tonunda */
.welcome-overlay {
    background:
        linear-gradient(135deg, rgba(36, 16, 7, .93), rgba(124, 45, 18, .90)),
        radial-gradient(circle at center, rgba(249, 115, 22, .24), transparent 45%) !important;
}

.welcome-overlay::before {
    background-image: url("../images/ravelli-logo.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: min(110vw, 110vh) auto !important;
    opacity: .13 !important;
    filter: blur(10px) saturate(1.20) !important;
}

/* Üst bar ve kartları logoya uygun sıcak tonlara çek */
.topbar {
    background:
        linear-gradient(135deg, rgba(36, 16, 7, .96), rgba(124, 45, 18, .94)),
        radial-gradient(circle at top right, rgba(249, 115, 22, .34), transparent 44%) !important;
    color: #fff8ef !important;
    border-bottom: 1px solid rgba(255, 237, 213, .26) !important;
    box-shadow: 0 16px 44px rgba(54, 20, 5, .24) !important;
}

.topbar h1,
.topbar p {
    color: #fff8ef !important;
}

.topbar p {
    opacity: .78;
}

.dashboard-card,
.form-card,
.order-card,
.cart-panel,
.menu-card,
.qr-card,
.status-box,
.login-card,
.landing-card,
.staff-card,
.menu-choice-box {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow) !important;
    backdrop-filter: blur(18px) saturate(1.08);
}

.menu-card,
.order-card,
.dashboard-card,
.form-card,
.cart-panel {
    border-radius: 28px;
}

.menu-card h2,
.dashboard-card h2,
.form-card h2,
.order-card h2,
.cart-panel h2,
.login-card h1,
.landing-card h1 {
    color: #2b1208 !important;
}

.menu-card span,
.report-box b,
.selected-total b,
.payment-summary b,
#toplam,
#adet {
    color: var(--primary-dark) !important;
}

button,
.big-link,
.qr-download,
.nav-link,
.logout-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff8ef !important;
    border: 1px solid rgba(255, 237, 213, .20) !important;
    box-shadow: 0 12px 26px rgba(201, 67, 22, .22) !important;
}

.nav-link,
.logout-btn {
    background: rgba(255, 248, 239, .12) !important;
}

button:hover,
.big-link:hover,
.qr-download:hover,
.nav-link:hover,
.logout-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.sil-btn {
    background: linear-gradient(135deg, #7f1d1d, #dc2626) !important;
}

.chip {
    background: rgba(255, 249, 240, .76) !important;
    border: 1px solid rgba(124, 45, 18, .17) !important;
    color: var(--text) !important;
}

.chip.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
}

input,
textarea,
select {
    background: rgba(255, 251, 245, .90) !important;
    border: 1px solid rgba(124, 45, 18, .18) !important;
    color: var(--text) !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: rgba(201, 67, 22, .58) !important;
    box-shadow: 0 0 0 4px rgba(201, 67, 22, .13) !important;
}

.report-box,
.report-list-item,
.payment-line,
.sepet-item,
.payment-summary,
.selected-total {
    background: rgba(255, 246, 235, .76) !important;
    border: 1px solid rgba(124, 45, 18, .13) !important;
}

.kategori,
.muted,
.qr-card p,
small {
    color: var(--muted) !important;
}

.menu-choice-backdrop {
    background: rgba(43, 18, 8, .56) !important;
    backdrop-filter: blur(10px);
}

.urun-resim {
    box-shadow: 0 12px 30px rgba(54, 20, 5, .12);
}

@media (max-width: 700px) {
    body::before,
    .login-page::before,
    .landing-page::before,
    .menu-body::before {
        inset: -4vh -24vw;
        background-size: 150vw auto !important;
        opacity: .14 !important;
        filter: blur(8px) saturate(1.15) !important;
    }

    body::after {
        background:
            linear-gradient(180deg, rgba(255, 250, 243, .74), rgba(255, 244, 229, .84)),
            radial-gradient(circle at center, rgba(255,255,255,.12) 0 18%, rgba(255, 240, 220, .50) 62%, rgba(255, 232, 205, .78) 100%);
    }
}

@media print {
    body::before,
    body::after {
        display: none !important;
    }

    body {
        background: white !important;
    }
}



/* =========================
   v1.9.9 Readability Fixes
   Giriş ekranında siyah yazı + genel okunurluk iyileştirmesi
========================= */

/* Giriş ekranı yazıları siyah olsun */
.login-card,
.login-card h1,
.login-card h2,
.login-card h3,
.login-card p,
.login-card label,
.login-card small,
.login-card .muted,
.login-card .kategori {
    color: #111111 !important;
}

/* Hoşgeldiniz / QR giriş kartında da metinler daha net olsun */
.landing-card,
.landing-card h1,
.landing-card h2,
.landing-card h3,
.landing-card p,
.landing-card label,
.landing-card small,
.landing-card .muted,
.landing-card .kategori {
    color: #1a1a1a !important;
}

/* Genel kart içi metin kontrastı artır */
.dashboard-card,
.form-card,
.order-card,
.cart-panel,
.menu-card,
.qr-card,
.staff-card,
.status-box,
.menu-choice-box {
    color: #1f1f1f !important;
}

.dashboard-card p,
.form-card p,
.order-card p,
.cart-panel p,
.menu-card p,
.qr-card p,
.staff-card p,
.status-box p,
.menu-choice-box p,
.report-list-item span,
.report-list-item small,
.payment-line small,
.sepet-item small,
.selected-total,
.payment-summary,
.qr-note,
.section-title h2,
.section-title span {
    color: #262626 !important;
}

/* Açıklama / yardımcı yazıları daha okunur yap */
.muted,
.kategori,
small,
.menu-choice-hint,
.cart-choice-detail {
    color: #4b3a31 !important;
}

/* Form elemanları ve placeholder okunaklı olsun */
input,
textarea,
select {
    color: #111111 !important;
    font-weight: 600;
}

input::placeholder,
textarea::placeholder {
    color: #6b4f40 !important;
    opacity: 1 !important;
}

/* Login input ve başlıklar ekstra net */
.login-card input,
.login-card textarea,
.login-card select,
.landing-card input,
.landing-card textarea,
.landing-card select {
    background: rgba(255,255,255,.96) !important;
    color: #111111 !important;
    border: 1px solid rgba(124, 45, 18, .22) !important;
}

.login-card input::placeholder,
.landing-card input::placeholder {
    color: #6a564b !important;
}

/* Özet kutuları ve listelerde metin netleştir */
.report-box span,
.report-list-item span,
.payment-line b,
.sepet-item b,
.qr-card h2,
.menu-card h2,
.order-card h2,
.dashboard-card h2,
.form-card h2,
.cart-panel h2 {
    color: #1a1a1a !important;
}

/* Giriş butonları kalsın ama biraz daha net görünsün */
.login-card button,
.landing-card button {
    color: #fffaf5 !important;
    font-weight: 800 !important;
}

/* Giriş ekranında arka plan katmanı biraz daha açık olsun ki siyah yazı net çıksın */
.login-card,
.landing-card {
    background: rgba(255, 250, 242, .94) !important;
    border: 1px solid rgba(124, 45, 18, .18) !important;
}

/* Bazı koyu üst yazılar */
label,
th,
td {
    color: #1f1f1f;
}

/* Mobilde de okunurluk sabit kalsın */
@media (max-width: 700px) {
    .login-card,
    .landing-card,
    .dashboard-card,
    .form-card,
    .order-card,
    .cart-panel,
    .menu-card,
    .qr-card {
        background: rgba(255, 250, 242, .95) !important;
    }
}



/* =========================
   v2.0 Date Range Report + No Kitchen Panel
========================= */
.report-filter-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr)) auto auto;
    gap: 14px;
    align-items: end;
    margin: 16px 0 10px;
}

.report-filter-panel label {
    display: grid;
    gap: 8px;
    font-weight: 850;
    color: #1f1f1f;
}

.report-filter-panel button {
    white-space: nowrap;
}

.report-range-info {
    display: inline-block;
    margin: 6px 0 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 246, 235, .82);
    border: 1px solid rgba(124, 45, 18, .16);
    color: #2b1208 !important;
    font-weight: 800;
}

@media (max-width: 980px) {
    .report-filter-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .report-filter-panel {
        grid-template-columns: 1fr;
    }
}



/* =========================
   v2.1 Staff Table Panel
========================= */
.staff-table-layout {
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.35fr);
    gap: 22px;
    align-items: start;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.table-card {
    display: grid;
    place-items: center;
    gap: 7px;
    padding: 18px 12px;
    border-radius: 26px;
    min-height: 230px;
    background: rgba(255, 250, 242, .90) !important;
    color: #2b1208 !important;
    border: 2px solid rgba(124, 45, 18, .15) !important;
    box-shadow: 0 16px 38px rgba(54, 20, 5, .12) !important;
    cursor: pointer;
}

.table-card img {
    width: min(92%, 210px);
    height: 135px;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(54, 20, 5, .16));
}

.table-card .table-number {
    font-size: 24px;
    font-weight: 950;
    color: #241007;
}

.table-card .table-status {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.table-card.table-empty .table-status {
    background: rgba(22, 163, 74, .12);
    color: #166534;
}

.table-card.table-busy .table-status {
    background: rgba(220, 38, 38, .12);
    color: #991b1b;
}

.table-card .table-total {
    font-size: 21px;
    font-weight: 950;
    color: var(--primary-dark);
}

.table-card small {
    font-weight: 800;
}

.table-card.selected {
    border-color: rgba(201, 67, 22, .72) !important;
    box-shadow: 0 20px 52px rgba(201, 67, 22, .22) !important;
    transform: translateY(-2px);
}

.table-detail-panel {
    position: sticky;
    top: 18px;
}

.table-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.table-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.table-detail-actions .big-link {
    flex: 1;
    min-width: 190px;
}

.manual-order-box {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 95px auto;
    gap: 12px;
    align-items: end;
    margin: 14px 0;
}

.manual-order-box label {
    display: grid;
    gap: 8px;
    font-weight: 900;
    color: #1f1f1f;
}

.manual-cart {
    margin: 14px 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 246, 235, .80);
    border: 1px solid rgba(124, 45, 18, .14);
}

.manual-cart h4 {
    margin-top: 0;
    color: #2b1208;
}

.staff-order-card {
    margin: 14px 0;
    padding: 15px;
    border-radius: 22px;
    background: rgba(255, 250, 242, .84);
    border: 1px solid rgba(124, 45, 18, .14);
    box-shadow: 0 10px 26px rgba(54, 20, 5, .08);
}

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

.staff-order-head b {
    font-size: 18px;
    color: #1f1f1f;
}

.staff-order-head small {
    display: block;
    margin-top: 4px;
}

@media (max-width: 1050px) {
    .staff-table-layout {
        grid-template-columns: 1fr;
    }

    .table-detail-panel {
        position: static;
    }
}

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

    .manual-order-box {
        grid-template-columns: 1fr;
    }

    .table-detail-summary {
        grid-template-columns: 1fr;
    }

    .staff-order-head {
        display: grid;
    }
}



/* =========================
   v2.2 Table Detail Page + Easier Manual Entry
========================= */
.table-grid-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.table-grid-main .table-card {
    min-height: 245px;
}

.table-grid-main .table-card .table-total {
    margin-top: 2px;
}

.table-page-layout {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.25fr);
    gap: 22px;
    align-items: start;
}

.manual-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.manual-product-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 58px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 250, 242, .84);
    border: 1px solid rgba(124, 45, 18, .14);
}

.manual-product-card img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 16px;
    background: white;
}

.manual-product-card b {
    display: block;
    color: #1f1f1f;
    font-size: 15px;
}

.manual-product-card small {
    display: block;
    margin: 3px 0;
    font-weight: 800;
}

.manual-product-card span {
    display: block;
    color: var(--primary-dark);
    font-weight: 950;
}

.manual-product-card button {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 16px;
    font-size: 24px;
    line-height: 1;
}

.table-pay-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.table-pay-actions span {
    font-weight: 900;
    color: #2b1208;
}

.table-pay-actions button {
    width: auto;
    padding: 9px 12px;
    border-radius: 999px;
}

.table-page-layout textarea {
    min-height: 82px;
}

@media (max-width: 1180px) {
    .table-grid-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .table-page-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .table-grid-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .table-grid-main {
        grid-template-columns: 1fr;
    }

    .manual-product-card {
        grid-template-columns: 64px minmax(0, 1fr) 50px;
    }

    .manual-product-card img {
        width: 64px;
        height: 64px;
    }

    .table-pay-actions {
        justify-content: stretch;
    }

    .table-pay-actions button {
        flex: 1;
    }
}



/* =========================
   v2.3 Package Orders + No Menu Link For Staff/Admin
========================= */
.staff-main-actions {
    display: grid;
    grid-template-columns: minmax(260px, 420px);
    gap: 18px;
    margin-top: 14px;
}

.package-entry-card {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 24px 18px;
    border-radius: 28px;
    min-height: 190px;
    background:
        linear-gradient(135deg, rgba(36, 16, 7, .92), rgba(124, 45, 18, .86)) !important;
    border: 1px solid rgba(255, 237, 213, .22) !important;
    color: #fff8ef !important;
}

.package-entry-icon {
    font-size: 44px;
}

.package-entry-title {
    font-size: 26px;
    font-weight: 950;
}

.package-entry-subtitle {
    font-size: 14px;
    opacity: .86;
    font-weight: 800;
}

.package-entry-total {
    display: inline-flex;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 248, 239, .14);
    border: 1px solid rgba(255, 237, 213, .24);
    font-weight: 950;
}

.package-customer-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.package-customer-box label {
    display: grid;
    gap: 8px;
    font-weight: 900;
    color: #1f1f1f;
}

.package-address-field {
    grid-column: 1 / -1;
}

.package-address-field textarea {
    min-height: 95px;
}

.package-order-card {
    border-left: 6px solid var(--primary) !important;
}

.package-note {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 246, 235, .80);
    border: 1px solid rgba(124, 45, 18, .14);
}

@media (max-width: 700px) {
    .staff-main-actions,
    .package-customer-box {
        grid-template-columns: 1fr;
    }
}



/* =========================
   v2.4 Readability + Hide Cancelled Orders
========================= */

/* Beyaz / açık renkli kartların içinde yazılar kesin koyu olsun */
.dashboard-card,
.form-card,
.order-card,
.cart-panel,
.menu-card,
.qr-card,
.staff-card,
.status-box,
.menu-choice-box,
.manual-cart,
.staff-order-card,
.payment-line,
.report-box,
.report-list-item,
.sepet-item,
.payment-summary,
.selected-total,
.package-note,
.manual-product-card,
.table-card {
    color: #151515 !important;
}

/* Kart içi metinlerin beyaz kalmasını engelle */
.dashboard-card h1,
.dashboard-card h2,
.dashboard-card h3,
.dashboard-card h4,
.dashboard-card p,
.dashboard-card span:not(.durum):not(.table-status):not(.package-entry-icon):not(.package-entry-title):not(.package-entry-subtitle):not(.package-entry-total),
.dashboard-card small,
.dashboard-card b,
.form-card h1,
.form-card h2,
.form-card h3,
.form-card h4,
.form-card p,
.form-card span:not(.durum),
.form-card small,
.form-card b,
.order-card h1,
.order-card h2,
.order-card h3,
.order-card h4,
.order-card p,
.order-card span:not(.durum),
.order-card small,
.order-card b,
.cart-panel h1,
.cart-panel h2,
.cart-panel h3,
.cart-panel h4,
.cart-panel p,
.cart-panel span:not(.durum),
.cart-panel small,
.cart-panel b,
.menu-card h1,
.menu-card h2,
.menu-card h3,
.menu-card h4,
.menu-card p,
.menu-card span:not(.durum),
.menu-card small,
.menu-card b,
.qr-card h1,
.qr-card h2,
.qr-card h3,
.qr-card h4,
.qr-card p,
.qr-card span:not(.durum),
.qr-card small,
.qr-card b,
.menu-choice-box h1,
.menu-choice-box h2,
.menu-choice-box h3,
.menu-choice-box h4,
.menu-choice-box p,
.menu-choice-box span:not(.durum),
.menu-choice-box small,
.menu-choice-box b,
.manual-product-card h1,
.manual-product-card h2,
.manual-product-card h3,
.manual-product-card h4,
.manual-product-card p,
.manual-product-card span:not(.durum),
.manual-product-card small,
.manual-product-card b,
.staff-order-card h1,
.staff-order-card h2,
.staff-order-card h3,
.staff-order-card h4,
.staff-order-card p,
.staff-order-card span:not(.durum),
.staff-order-card small,
.staff-order-card b,
.payment-line h1,
.payment-line h2,
.payment-line h3,
.payment-line h4,
.payment-line p,
.payment-line span:not(.durum),
.payment-line small,
.payment-line b,
.report-list-item span,
.report-list-item small,
.report-list-item b,
.sepet-item span,
.sepet-item small,
.sepet-item b,
.selected-total,
.selected-total b,
.payment-summary,
.payment-summary b {
    color: #151515 !important;
}

/* Açık zemindeki kategori, açıklama ve küçük yazılar daha net */
.muted,
.kategori,
small,
.manual-product-card small,
.payment-line small,
.report-list-item small,
.qr-card p {
    color: #3f3028 !important;
    opacity: 1 !important;
}

/* Formlar: beyaz zeminde siyah yazı */
input,
textarea,
select,
option {
    color: #111111 !important;
    background: rgba(255, 255, 255, .96) !important;
}

input::placeholder,
textarea::placeholder {
    color: #5f514b !important;
    opacity: 1 !important;
}

/* Koyu buton/kartlarda yazılar beyaz kalmalı */
button,
button *,
.big-link,
.big-link *,
.qr-download,
.qr-download *,
.nav-link,
.nav-link *,
.logout-btn,
.logout-btn *,
.package-entry-card,
.package-entry-card * {
    color: #fff8ef !important;
}

/* İstisna: açık renkli küçük butonların arka planı turuncu yapıldığı için beyaz yazı okunur */
.menu-choice-close {
    color: #fff8ef !important;
}

/* Durum rozetleri okunaklı olsun */
.durum.yeni,
.table-status {
    color: #166534 !important;
    background: rgba(22, 163, 74, .13) !important;
}

.durum.hazirlaniyor {
    color: #92400e !important;
    background: rgba(245, 158, 11, .16) !important;
}

.durum.hazir,
.durum.teslim {
    color: #166534 !important;
    background: rgba(22, 163, 74, .13) !important;
}

.durum.iptal {
    color: #991b1b !important;
    background: rgba(220, 38, 38, .13) !important;
}

.table-card.table-busy .table-status {
    color: #991b1b !important;
    background: rgba(220, 38, 38, .13) !important;
}

.table-card.table-empty .table-status {
    color: #166534 !important;
    background: rgba(22, 163, 74, .13) !important;
}



/* =========================
   v2.5 Spacious Payment Screen + Amount Payment
========================= */

/* Sipariş ve ödeme ekranı daha ferah */
.table-page-layout {
    grid-template-columns: minmax(430px, .9fr) minmax(540px, 1.25fr) !important;
    gap: 34px !important;
    align-items: start !important;
}

.table-page-layout > .dashboard-card {
    padding: 28px !important;
}

.staff-order-card {
    margin: 24px 0 !important;
    padding: 24px !important;
    border-radius: 28px !important;
}

.staff-order-card h3 {
    margin-top: 24px !important;
    margin-bottom: 12px !important;
}

.staff-order-head {
    margin-bottom: 18px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(124, 45, 18, .13);
}

.payment-summary {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px !important;
    margin: 18px 0 22px !important;
    padding: 14px !important;
    border-radius: 20px !important;
}

.payment-summary span {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 250, 242, .74);
    border: 1px solid rgba(124, 45, 18, .10);
}

/* Tutar girerek ödeme alanı */
.amount-payment-box {
    margin: 24px 0 !important;
    padding: 20px !important;
    border-radius: 24px !important;
    background: rgba(255, 246, 235, .92) !important;
    border: 1px solid rgba(124, 45, 18, .16) !important;
    box-shadow: 0 12px 28px rgba(54, 20, 5, .08) !important;
    color: #151515 !important;
}

.amount-payment-box h3,
.amount-payment-box p,
.amount-payment-box span,
.amount-payment-box b,
.amount-payment-box label {
    color: #151515 !important;
}

.amount-payment-row {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(90px, auto));
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.amount-payment-row input {
    min-height: 48px;
    font-size: 18px;
    font-weight: 900;
}

.amount-payment-row button,
.amount-shortcuts button {
    min-height: 48px;
    white-space: nowrap;
}

.amount-shortcuts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.amount-shortcuts button {
    padding: 10px 14px !important;
    border-radius: 999px !important;
}

/* Ürün seçerek ödeme bölümü artık kapalı/katlanır; ekranı sıkıştırmaz */
.product-payment-details {
    margin: 18px 0 !important;
    padding: 16px !important;
    border-radius: 22px !important;
    background: rgba(255, 250, 242, .82) !important;
    border: 1px solid rgba(124, 45, 18, .14) !important;
}

.product-payment-details summary {
    cursor: pointer;
    font-weight: 950;
    color: #2b1208 !important;
    padding: 4px 0;
}

.product-payment-details[open] summary {
    margin-bottom: 14px;
}

/* Ürün satırları üst üste binmesin */
.payment-line {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: stretch !important;
    margin: 14px 0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
}

.table-pay-actions {
    justify-content: flex-start !important;
    padding-top: 10px;
    border-top: 1px dashed rgba(124, 45, 18, .16);
}

.table-pay-actions button {
    min-width: 92px;
}

.action-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 12px !important;
    margin: 14px 0 !important;
}

.cancel-row {
    margin-top: 22px !important;
}

.cancel-row button {
    width: 100%;
}

/* Manuel ürün ekranında da nefes payı */
.manual-product-grid {
    gap: 14px !important;
    padding-right: 8px;
}

.manual-product-card {
    padding: 14px !important;
    border-radius: 22px !important;
}

.manual-cart {
    margin: 18px 0 !important;
    padding: 18px !important;
}

/* Açık zeminlerde yazıların beyaz kalmasını tekrar engelle */
.amount-payment-box,
.amount-payment-box *,
.product-payment-details,
.product-payment-details *,
.payment-summary,
.payment-summary *,
.payment-line,
.payment-line *,
.staff-order-card,
.staff-order-card * {
    color: #151515 !important;
}

.amount-payment-box button,
.amount-payment-box button *,
.product-payment-details button,
.product-payment-details button *,
.action-row button,
.action-row button *,
.table-pay-actions button,
.table-pay-actions button * {
    color: #fff8ef !important;
}

/* Durum rozetleri kendi renklerini korusun */
.staff-order-card .durum,
.payment-line .durum {
    font-weight: 900;
}

@media (max-width: 1180px) {
    .table-page-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    .table-page-layout > .dashboard-card {
        padding: 20px !important;
    }

    .payment-summary {
        grid-template-columns: 1fr !important;
    }

    .amount-payment-row {
        grid-template-columns: 1fr !important;
    }

    .amount-payment-row button {
        width: 100%;
    }

    .amount-shortcuts {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}



/* =========================
   v2.6 Final Contrast + 8 Package Cards
   Kural: koyu zeminde beyaz, açık zeminde siyah
========================= */

/* Açık zeminli alanlar */
.dashboard-card,
.form-card,
.order-card,
.cart-panel,
.menu-card,
.qr-card,
.login-card,
.landing-card,
.status-box,
.menu-choice-box,
.manual-cart,
.staff-order-card,
.payment-line,
.report-box,
.report-list-item,
.sepet-item,
.payment-summary,
.selected-total,
.package-note,
.manual-product-card,
.table-card,
.product-payment-details,
.amount-payment-box,
.package-customer-box {
    background-color: rgba(255, 250, 242, .94) !important;
    color: #111111 !important;
}

/* Açık zeminde bütün normal yazılar siyah */
.dashboard-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.form-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.order-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.cart-panel :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.menu-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.qr-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.login-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.landing-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.menu-choice-box :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.manual-cart :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.staff-order-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.payment-line :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.report-box :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.report-list-item :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.sepet-item :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.payment-summary :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.selected-total :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.package-note :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.manual-product-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.table-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.product-payment-details :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div),
.amount-payment-box :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,summary,div) {
    color: #111111 !important;
}

/* Yardımcı metinler açık zeminde koyu gri */
.muted,
.kategori,
small,
.manual-product-card small,
.payment-line small,
.report-list-item small,
.qr-card p {
    color: #3e3029 !important;
    opacity: 1 !important;
}

/* Koyu zeminli alanlar */
.topbar,
.welcome-overlay,
.package-entry-card {
    color: #fff8ef !important;
}

.topbar :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,div),
.welcome-overlay :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,div),
.package-entry-card :where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,div) {
    color: #fff8ef !important;
}

/* Butonlar koyu/turuncu zeminli: yazı beyaz */
button,
button *,
.big-link,
.big-link *,
.nav-link,
.nav-link *,
.logout-btn,
.logout-btn *,
.qr-download,
.qr-download * {
    color: #fff8ef !important;
}

/* Formlar açık zemin: yazı siyah */
input,
textarea,
select,
option {
    background: rgba(255, 255, 255, .97) !important;
    color: #111111 !important;
}

input::placeholder,
textarea::placeholder {
    color: #5c514b !important;
    opacity: 1 !important;
}

/* Durum rozetleri özel renkleri korusun */
.table-status,
.durum {
    font-weight: 950 !important;
}

.table-card.table-empty .table-status,
.durum.yeni,
.durum.hazir,
.durum.teslim {
    color: #166534 !important;
    background: rgba(22, 163, 74, .13) !important;
}

.table-card.table-busy .table-status,
.durum.iptal {
    color: #991b1b !important;
    background: rgba(220, 38, 38, .13) !important;
}

.durum.hazirlaniyor {
    color: #92400e !important;
    background: rgba(245, 158, 11, .16) !important;
}

/* Paket kartları masa kartı gibi görünür */
.package-table-card img {
    width: min(92%, 210px);
    height: 135px;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(54, 20, 5, .16));
}



/* =========================
   v2.7 Dual Payment Options
   Masada hem tutar girerek hem ürün seçerek ödeme net görünür
========================= */

.amount-payment-box,
.product-payment-open {
    display: block !important;
    margin: 26px 0 !important;
    padding: 22px !important;
    border-radius: 26px !important;
    background: rgba(255, 250, 242, .96) !important;
    border: 2px solid rgba(124, 45, 18, .15) !important;
    box-shadow: 0 14px 34px rgba(54, 20, 5, .09) !important;
}

.amount-payment-box {
    border-left: 8px solid #16a34a !important;
}

.product-payment-open {
    border-left: 8px solid #f97316 !important;
}

.amount-payment-box h3,
.product-payment-open h3 {
    margin: 0 0 6px !important;
    font-size: 22px !important;
    color: #111111 !important;
}

.payment-section-title {
    margin-bottom: 14px !important;
}

.payment-section-title p,
.amount-payment-box p {
    color: #3e3029 !important;
    margin: 0 !important;
}

.product-payment-open .selected-total {
    margin: 14px 0 !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    background: rgba(255, 246, 235, .92) !important;
    border: 1px solid rgba(124, 45, 18, .14) !important;
}

.payment-line {
    border-left: 5px solid rgba(249, 115, 22, .42) !important;
}

.table-pay-actions {
    background: rgba(255, 246, 235, .72) !important;
    border-radius: 16px !important;
    padding: 12px !important;
}

.table-pay-actions span,
.table-pay-actions span b {
    color: #111111 !important;
}

/* Bu ekranda butonlar okunaklı kalsın */
.amount-payment-box button,
.product-payment-open button,
.table-pay-actions button {
    color: #fff8ef !important;
}

/* Katlanır details artık kullanılmıyor ama eski görünüm kalırsa da açık gibi dursun */
.product-payment-details summary {
    display: none !important;
}

.product-payment-details[open],
.product-payment-details {
    display: block !important;
}

/* Mobilde ödeme butonları rahat basılsın */
@media (max-width: 720px) {
    .amount-payment-box,
    .product-payment-open {
        padding: 18px !important;
    }

    .product-payment-open .action-row,
    .amount-payment-box .action-row {
        grid-template-columns: 1fr !important;
    }
}



/* =========================
   v2.8 Package Note + Order Fix
========================= */
.package-note-entry {
    margin: 14px 0 18px;
}

.package-note-entry label {
    display: grid;
    gap: 8px;
    font-weight: 950;
    color: #111111 !important;
}

.package-note-entry textarea {
    min-height: 92px;
    background: rgba(255,255,255,.97) !important;
    color: #111111 !important;
    border: 1px solid rgba(124, 45, 18, .18) !important;
}

.package-note-entry textarea::placeholder {
    color: #5c514b !important;
    opacity: 1 !important;
}



/* =========================
   v2.9 Simple Payment Screen
========================= */

/* Ödeme ekranında genel boşlukları azaltıp bölümleri sadeleştir */
.table-page-layout {
    gap: 24px !important;
}

.staff-order-card {
    padding: 20px !important;
    margin: 18px 0 !important;
}

.staff-order-card h3 {
    margin-top: 16px !important;
    margin-bottom: 10px !important;
    font-size: 18px !important;
}

.payment-summary {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
    margin: 12px 0 14px !important;
}

.payment-summary span {
    padding: 8px !important;
    font-size: 14px !important;
}

/* Sade ödeme kutusu */
.simple-payment-box {
    margin: 16px 0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
    background: rgba(255, 250, 242, .96) !important;
    border: 2px solid rgba(22, 163, 74, .22) !important;
    border-left: 7px solid #16a34a !important;
    box-shadow: 0 10px 24px rgba(54, 20, 5, .08) !important;
    color: #111111 !important;
}

.simple-payment-box,
.simple-payment-box * {
    color: #111111 !important;
}

.simple-payment-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.simple-payment-head h3 {
    margin: 0 !important;
    font-size: 20px !important;
}

.simple-payment-head span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(22, 163, 74, .12);
    color: #166534 !important;
    font-weight: 950;
}

.simple-payment-head span b {
    color: #166534 !important;
}

.simple-payment-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(80px, auto));
    gap: 8px;
    align-items: center;
}

.simple-payment-row input {
    min-height: 46px;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.simple-payment-row button {
    min-height: 46px;
    padding: 10px 12px !important;
    white-space: nowrap;
}

.simple-payment-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.simple-payment-shortcuts button {
    padding: 8px 12px !important;
    min-height: 38px;
    border-radius: 999px !important;
    font-size: 13px;
}

/* Ürün seçerek ödeme katlanır, ekranı daha sade tutar */
.simple-product-payment {
    margin: 14px 0 !important;
    padding: 14px !important;
    border-radius: 18px !important;
    background: rgba(255, 246, 235, .92) !important;
    border: 1px solid rgba(124, 45, 18, .14) !important;
    color: #111111 !important;
}

.simple-product-payment,
.simple-product-payment * {
    color: #111111 !important;
}

.simple-product-payment summary {
    cursor: pointer;
    font-weight: 950;
    color: #2b1208 !important;
}

.simple-product-payment[open] summary {
    margin-bottom: 12px;
}

.simple-action-row {
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)) !important;
    gap: 8px !important;
}

.simple-product-payment button,
.simple-payment-box button,
.simple-action-row button {
    color: #fff8ef !important;
}

/* Ürün satırlarını daha küçük ve düzenli yap */
.payment-line {
    padding: 12px !important;
    margin: 10px 0 !important;
    gap: 10px !important;
    border-radius: 16px !important;
}

.table-pay-actions {
    padding: 8px !important;
    gap: 7px !important;
}

.table-pay-actions button {
    min-width: 44px !important;
    padding: 8px 11px !important;
    border-radius: 12px !important;
}

.table-pay-actions span {
    font-size: 13px !important;
}

/* İptal butonunu en alta küçük bırak */
.cancel-row {
    margin-top: 10px !important;
}

.cancel-row button {
    min-height: 40px;
}

/* Eski büyük ödeme CSS'lerini bastır */
.amount-payment-box,
.product-payment-open {
    display: none !important;
}

@media (max-width: 760px) {
    .payment-summary {
        grid-template-columns: 1fr !important;
    }

    .simple-payment-head {
        display: grid;
    }

    .simple-payment-row {
        grid-template-columns: 1fr !important;
    }

    .simple-payment-shortcuts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}



/* =========================
   v3.0 Owner Admin Return Link
========================= */
.owner-only-link {
    display: none;
}



/* =========================
   v3.1 Payment Inline + Menu Cart White Text
========================= */

/* Ürün seçerek ödeme artık sekme/katlanır değil, aynı ekranda görünür */
.product-payment-inline {
    display: block !important;
    margin: 14px 0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
    background: rgba(255, 246, 235, .94) !important;
    border: 2px solid rgba(249, 115, 22, .22) !important;
    border-left: 7px solid #f97316 !important;
    color: #111111 !important;
}

.product-payment-inline,
.product-payment-inline *:not(button):not(button *) {
    color: #111111 !important;
}

.simple-product-title {
    margin-bottom: 12px;
}

.simple-product-title h3 {
    margin: 0 0 4px !important;
    color: #111111 !important;
}

.simple-product-title p,
.simple-product-title p b {
    color: #3e3029 !important;
}

.product-payment-inline button,
.product-payment-inline button * {
    color: #fff8ef !important;
}

/* Eski details/summary davranışını tamamen kapat */
.simple-product-payment summary {
    display: none !important;
}

/* Menü ekranında sepet toplamı / tutar kısmı beyaz yazı */
.menu-body .cart-panel .selected-total,
.menu-body .cart-panel .selected-total *,
.menu-body .cart-panel #toplam,
.menu-body .cart-panel #toplam *,
.menu-body .cart-panel #adet,
.menu-body .cart-panel #adet *,
.menu-body .cart-panel .cart-total,
.menu-body .cart-panel .cart-total *,
.menu-body .cart-panel .sepet-toplam,
.menu-body .cart-panel .sepet-toplam *,
.menu-body .cart-panel .total-row,
.menu-body .cart-panel .total-row * {
    color: #fff8ef !important;
}

/* Sepet toplam alanı koyu zemindeyse daha uyumlu dursun */
.menu-body .cart-panel .selected-total,
.menu-body .cart-panel .cart-total,
.menu-body .cart-panel .sepet-toplam,
.menu-body .cart-panel .total-row {
    background: linear-gradient(135deg, rgba(36, 16, 7, .94), rgba(124, 45, 18, .92)) !important;
    border-color: rgba(255, 237, 213, .22) !important;
}



/* =========================
   v3.2 Sweet Payment Confirm Modal
========================= */
.payment-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.payment-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36, 16, 7, .54);
    backdrop-filter: blur(8px);
}

.payment-confirm-box {
    position: relative;
    width: min(430px, 100%);
    border-radius: 30px;
    padding: 26px;
    background:
        linear-gradient(180deg, rgba(255, 250, 242, .98), rgba(255, 237, 213, .96)) !important;
    border: 1px solid rgba(124, 45, 18, .18);
    box-shadow: 0 28px 80px rgba(36, 16, 7, .28);
    text-align: center;
    color: #111111 !important;
    animation: paymentConfirmPop .18s ease-out;
}

.payment-confirm-box,
.payment-confirm-box *:not(button):not(button *) {
    color: #111111 !important;
}

.payment-confirm-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 22px;
    background: rgba(249, 115, 22, .14);
    font-size: 32px;
}

.payment-confirm-box h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #2b1208 !important;
}

.payment-confirm-box p {
    margin: 0 0 18px;
    color: #4b3a31 !important;
    font-weight: 750;
}

.payment-confirm-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 22px;
}

.payment-confirm-summary div {
    padding: 14px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(124, 45, 18, .14);
}

.payment-confirm-summary span {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #6b4f40 !important;
    font-weight: 800;
}

.payment-confirm-summary b {
    display: block;
    font-size: 20px;
    color: #111111 !important;
}

.payment-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-confirm-actions button {
    min-height: 48px;
    border-radius: 16px !important;
    font-weight: 950;
}

.payment-confirm-cancel {
    background: linear-gradient(135deg, #6b7280, #374151) !important;
    color: #fff8ef !important;
}

.payment-confirm-ok {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #fff8ef !important;
}

@keyframes paymentConfirmPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    .payment-confirm-summary {
        grid-template-columns: 1fr;
    }

    .payment-confirm-actions {
        grid-template-columns: 1fr;
    }
}


.panel-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 14px 0 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.secondary-btn {
    background: linear-gradient(135deg, #111827, #374151);
    box-shadow: 0 10px 22px rgba(17, 24, 39, .16);
}

.secondary-btn:hover {
    box-shadow: 0 14px 28px rgba(17, 24, 39, .22);
}

.sound-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(249, 250, 251, 0.95);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.sound-on {
    color: var(--success);
    background: var(--success-soft);
    border-color: rgba(22, 163, 74, 0.18);
}

.status-check-card {
    background: rgba(249, 250, 251, 0.94);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}


.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(8px);
}

.settings-modal.open {
    display: flex;
}

.settings-card {
    width: min(560px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.settings-header h3 {
    margin: 0 0 6px;
    font-size: 22px;
}

.settings-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    background: #111827;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(249, 250, 251, 0.96);
    font-weight: 900;
}

.settings-toggle input {
    width: 20px;
    height: 20px;
}

.settings-field {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    font-weight: 900;
}

.settings-field select,
.settings-field input[type="range"] {
    width: 100%;
}

.settings-field select {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 0 12px;
    font-size: 16px;
    font-weight: 800;
    background: #fff;
    color: var(--text);
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.settings-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}


.nav-button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.settings-card-wide {
    width: min(720px, 100%);
}

.settings-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 8px 0 18px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(243, 244, 246, 0.95);
    border: 1px solid var(--border);
}

.settings-tab {
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    border-radius: 14px;
    padding: 12px;
}

.settings-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 22px rgba(255, 122, 26, .24);
}

.settings-page {
    display: none;
}

.settings-page.active {
    display: block;
}

.printer-status-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(249, 250, 251, 0.96);
}

.printer-status-card b {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.printer-status-card p {
    margin: 0;
    color: var(--muted);
}

.printer-success {
    color: var(--success);
}

.printer-warning {
    color: var(--warning);
}

.danger-btn {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
}

@media (max-width: 720px) {
    .settings-tabs {
        grid-template-columns: 1fr;
    }

    .settings-actions {
        flex-direction: column;
    }

    .settings-actions button {
        width: 100%;
    }
}


/* v3.8 - Tasarım ve kontrast iyileştirmeleri */
:root {
    --surface-strong: rgba(255,255,255,0.94);
    --surface-soft: rgba(255,255,255,0.82);
    --text-strong: #111827;
    --text-soft: #4b5563;
    --dark-surface: #111827;
}

body,
main,
section,
div,
p,
span,
label,
small,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
}

body {
    color: var(--text-strong);
}

.topbar,
.topbar * {
    color: #ffffff !important;
}

button,
.nav-link,
.big-link,
.icon-btn {
    color: #ffffff !important;
}

.dashboard-card,
.report-box,
.report-list-item,
.detail-card,
.product-card,
.panel-tools,
.settings-card,
.printer-status-card,
.settings-toggle,
.settings-field select,
input,
select,
textarea,
.status-check-card,
.table-card,
.table-detail-card,
.order-card,
.cart-panel,
.cart-summary,
.payment-card,
.payment-panel,
.modal-card,
.modal-content,
.summary-card {
    background: var(--surface-strong) !important;
    color: var(--text-strong) !important;
    border-color: rgba(17, 24, 39, 0.08) !important;
}

.report-box span,
.report-list-item span,
.detail-card p,
.dashboard-card p,
.settings-note,
.muted,
.table-subtext,
.section-subtitle,
.printer-status-card p,
.report-list-right small {
    color: var(--text-soft) !important;
}

input,
select,
textarea {
    background: #ffffff !important;
    color: var(--text-strong) !important;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280 !important;
}

.report-grid-strong .report-box {
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.report-box b {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    color: var(--text-strong) !important;
}

.report-box small {
    display: block;
    margin-top: 6px;
    color: var(--text-soft) !important;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.detail-card {
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}

.detail-card h3 {
    margin: 0 0 14px;
    color: var(--text-strong) !important;
}

.detail-card-full {
    grid-column: 1 / -1;
}

.report-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.report-list-item.compact {
    padding: 10px 12px;
}

.report-list-right {
    text-align: right;
}

.report-list-right b {
    display: block;
    color: var(--text-strong) !important;
}

.report-list-right small {
    display: block;
    margin-top: 4px;
}

.table-card,
.big-link,
.nav-link,
button {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.table-total,
.cart-total,
.price-text,
.total-price {
    color: var(--text-strong) !important;
    font-weight: 900;
}

.table-status,
.badge,
.status-badge {
    font-weight: 800;
}

.section-title h2,
.section-title h3 {
    color: var(--text-strong) !important;
}

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

    .report-list-item {
        flex-direction: column;
    }

    .report-list-right {
        text-align: left;
    }
}


/* v3.9 - Stok / Reçete / Sarfiyat ekranı */
.stock-form-grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.wide-label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 900;
}

.stock-list,
.recipe-list,
.stock-report {
    display: grid;
    gap: 12px;
}

.stock-item,
.recipe-row,
.stock-report-card {
    background: rgba(255,255,255,.96) !important;
    color: #111827 !important;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.stock-item b {
    display: block;
    color: #111827 !important;
}

.stock-item span {
    display: block;
    color: #4b5563 !important;
    margin-top: 3px;
}

.recipe-row {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 10px;
    align-items: center;
}

.stock-report-card {
    padding: 16px;
}

.stock-report-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.stock-report-head h3 {
    margin: 0;
    color: #111827 !important;
}

.stock-report-head p {
    margin: 4px 0 0;
    color: #4b5563 !important;
}

.stock-report-head b {
    font-size: 22px;
    color: #111827 !important;
    text-align: right;
}

.stock-source-list {
    display: grid;
    gap: 8px;
}

@media (max-width: 900px) {
    .stock-form-grid,
    .recipe-row {
        grid-template-columns: 1fr;
    }

    .stock-report-head {
        flex-direction: column;
    }

    .stock-report-head b {
        text-align: left;
    }
}


/* v4.1 - Ürün düzenleme ekranı */
.product-form-card label {
    display: grid;
    gap: 7px;
    font-weight: 900;
    color: #111827 !important;
    margin-bottom: 10px;
}

.product-form-actions,
.product-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.product-manage-card {
    display: flex;
    flex-direction: column;
}

.product-manage-card .product-card-actions {
    margin-top: auto;
}

.product-menu-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: #111827 !important;
    font-weight: 800;
    margin: 8px 0;
}


/* v4.2 - Termal yazıcı taslak ayarları */
.printer-layout-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.mini-toggle {
    padding: 10px 12px !important;
}

.printer-preview-card {
    background: rgba(17, 24, 39, 0.96) !important;
    color: #ffffff !important;
    border-radius: 18px;
    padding: 14px;
    margin: 14px 0;
    box-shadow: 0 14px 30px rgba(15,23,42,.18);
}

.printer-preview-card b {
    color: #ffffff !important;
    display: block;
    margin-bottom: 10px;
}

.printer-preview-card pre {
    background: #ffffff !important;
    color: #111827 !important;
    border-radius: 12px;
    padding: 12px;
    margin: 0;
    overflow: auto;
    white-space: pre;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.35;
    border: 1px solid rgba(255,255,255,.18);
}


/* v4.3 - Yazıcı ayar penceresi kaydırma ve otomatik fiş butonu */
.settings-modal {
    align-items: flex-start !important;
    justify-content: center !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 18px 12px !important;
}

.settings-card-wide,
.settings-card {
    max-height: calc(100vh - 36px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.settings-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: inherit;
    padding-bottom: 10px;
}

.settings-tabs {
    position: sticky;
    top: 86px;
    z-index: 4;
    background: inherit;
    padding: 8px 0;
}

.printer-toggle-btn {
    min-width: 190px;
}

.printer-toggle-on {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #ffffff !important;
}

.printer-toggle-off {
    background: linear-gradient(135deg, #374151, #111827) !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .settings-modal {
        padding: 8px !important;
    }

    .settings-card-wide,
    .settings-card {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 16px) !important;
        border-radius: 18px !important;
    }

    .settings-header,
    .settings-tabs {
        position: static;
    }

    .printer-toggle-btn {
        width: 100%;
        min-width: 0;
    }
}


/* v4.4 - Enes FINDIK imza alanı */
.enes-signature-footer {
    width: min(1120px, calc(100% - 28px));
    margin: 24px auto 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.88) !important;
    color: #ffffff !important;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.2px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.enes-signature-footer span,
.enes-signature-footer b {
    color: #ffffff !important;
}

.enes-signature-footer b {
    font-weight: 900;
}

@media (max-width: 768px) {
    .enes-signature-footer {
        width: calc(100% - 16px);
        margin: 18px auto 12px;
        padding: 12px 14px;
        font-size: 13px;
    }
}


/* v4.5 - Yerel yazıcı uygulaması bağlantısı */
.local-printer-box {
    background: rgba(255,255,255,.94) !important;
    color: #111827 !important;
    border: 1px solid rgba(17,24,39,.10);
    border-radius: 18px;
    padding: 14px;
    margin: 12px 0;
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
}

.local-printer-status {
    margin-bottom: 12px;
}

.local-printer-status b {
    display: block;
    color: #111827 !important;
    margin-bottom: 4px;
}

.local-printer-status p {
    color: #4b5563 !important;
    margin: 0;
}


/* v4.9 - Yazıcı ayar kaydet butonu */
.printer-save-actions {
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .22);
}

.save-printer-btn {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 12px 28px rgba(22, 163, 74, .24);
}

.printer-save-status {
    font-weight: 700;
    color: #166534;
}

.printer-save-status.error {
    color: #b91c1c;
}

.printer-save-status.success {
    color: #166534;
}

.printer-save-status.saving {
    color: #92400e;
}


/* v5.3 - Yazıcı uygulaması indirme paneli */
.printer-download-panel {
    margin: 22px 0;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 245, 235, .96), rgba(255, 255, 255, .96));
    border: 1px solid rgba(234, 88, 12, .20);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.printer-download-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
}

.printer-download-content h2 {
    margin: 4px 0 8px;
    color: #1f1713;
}

.printer-download-content p {
    margin: 0 0 10px;
    color: #5b463c;
    line-height: 1.55;
}

.printer-download-content ul {
    margin: 0;
    padding-left: 20px;
    color: #6b4b3e;
}

.panel-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(234, 88, 12, .10);
    color: #c2410c;
    font-weight: 800;
    font-size: 13px;
}

.printer-download-actions {
    display: grid;
    gap: 10px;
    justify-items: center;
    min-width: 260px;
}

.printer-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ea580c, #ef4444);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(234, 88, 12, .24);
}

.printer-download-actions small {
    color: #7c5d50;
    text-align: center;
    line-height: 1.35;
}

@media (max-width: 760px) {
    .printer-download-content {
        grid-template-columns: 1fr;
    }

    .printer-download-actions {
        min-width: 0;
        justify-items: stretch;
    }
}


/* v5.4 - Masa/Paket kartı küçük manuel fiş butonu */
.mini-print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ea580c, #ef4444);
    color: #ffffff;
    font-weight: 900;
    font-size: 13px;
    box-shadow: 0 10px 20px rgba(234, 88, 12, .22);
    cursor: pointer;
}

.mini-print-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(234, 88, 12, .28);
}

.mini-print-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(.25);
}

.table-card[role="button"] {
    user-select: none;
}


/* v5.5 - Site üzerinden yazdırma modu */
.site-print-box {
    background: rgba(255, 247, 237, .96) !important;
    border-color: rgba(234, 88, 12, .22) !important;
}

@media print {
    body.ravelli-fis-printing * {
        visibility: hidden !important;
    }
}
