/* ==========================================================================
   Vortex POS Login — premium restaurant blue theme
   Fonts: Cormorant Garamond (display) + DM Sans (UI)
   ========================================================================== */

:root {
    --primary:            #1e3a8a;
    --primary-mid:        #2563eb;
    --primary-dark:       #1e3a8a;
    --login-primary:      #1e40af;
    --login-primary-mid:  #3b82f6;
    --login-navy:         #0f2744;
    --login-ink:          #0f172a;
    --login-muted:        #64748b;
    --secondary:          #60a5fa;
    --success:            #2563eb;
    --danger:             #b91c1c;
    --bg-warm:            #f1f5f9;
    --card-bg:            #ffffff;
    --text-dark:          #1e293b;
    --text-muted:         #64748b;
    --shadow-soft:        0 10px 40px rgba(30, 58, 138, 0.12);
    --shadow-strong:      0 15px 50px rgba(30, 58, 138, 0.18);
    --radius-lg:          22px;
    --radius-md:          14px;
    --theme-gradient:     linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    --font-display:       "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-ui:            "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: var(--font-ui);
    color: var(--text-dark);
    position: relative;
}

/* Login page: restaurant photo + elegant navy/blue wash */
body.login-page {
    background-color: #0b1220;
    background-image:
        radial-gradient(ellipse 80% 60% at 15% 40%, rgba(37, 99, 235, 0.28) 0%, transparent 55%),
        linear-gradient(115deg, rgba(8, 15, 30, 0.92) 0%, rgba(15, 39, 68, 0.72) 42%, rgba(15, 23, 42, 0.45) 100%),
        url("../img/restaurant-interior.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: var(--font-ui);
    font-size: 1rem; /* full size at 100% browser zoom */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
}

/* ────────────────────────────────────────────────
   COMMON HELPERS
───────────────────────────────────────────────── */

.nav-pill-active {
    background-color: var(--primary) !important;
    color: white !important;
}

/* ────────────────────────────────────────────────
   LOGIN LAYOUT — centered card + keyboard stack
───────────────────────────────────────────────── */

.login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Vertical stack: card on top, keyboard below — both centered */
.login-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

/* Login card — slightly wider + taller */
.login-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    flex-shrink: 0;
    min-height: 460px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 8px 16px rgba(15, 23, 42, 0.08),
        0 24px 48px rgba(15, 39, 68, 0.24);
    color: var(--login-ink);
    animation: loginCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    display: flex;
    flex-direction: column;
}

body.login-kb-open .login-center {
    gap: 0.9rem;
}

body.login-kb-open .login-card {
    max-width: 640px;
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card-accent {
    height: 4px;
    width: 100%;
    background: var(--theme-gradient);
}

/* Full-width system title across both columns */
.login-topbar {
    text-align: center;
    padding: 1.35rem 1.35rem 1.15rem;
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fbff 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.login-system-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--login-navy);
    margin: 0;
}

.login-top-sub {
    margin-top: 0.35rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--login-muted);
}

/* Left brand | Right form */
.login-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(240px, 1.15fr);
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 300px;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    padding: 2.15rem 1.2rem;
    background: linear-gradient(165deg, #f8fbff 0%, #eff6ff 55%, #f8fafc 100%);
    border-right: 1px solid #e8eef6;
}

.login-form-col {
    padding: 2.15rem 1.6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 0.2rem;
}

.login-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.login-logo {
    max-height: 64px;
    max-width: 170px;
    object-fit: contain;
    display: block;
}

.login-brand-label {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--login-navy);
    margin: 0;
}

.login-brand-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--login-muted);
    font-weight: 500;
}

.login-field {
    width: 100%;
    margin-bottom: 0.15rem;
}

.login-field.mb-3 {
    margin-bottom: 1rem !important;
}

.login-field .form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.4rem;
}

.login-field .form-label i {
    color: #2563eb;
    font-size: 0.9rem;
    width: 1rem;
    text-align: center;
}

.login-page .form-control,
.login-page .login-input {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 0.7rem 1rem;
    min-height: 2.95rem;
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #f8fafc;
    color: var(--login-ink);
    width: 100%;
}

.login-page .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.98rem;
}

.login-page .form-control:focus {
    border-color: #3b82f6;
    background: #ffffff;
    color: var(--login-ink);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Password + eye on same row */
.login-pass-group {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
}

.login-pass-group .form-control {
    border-radius: 10px 0 0 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.btn-pass-toggle {
    border-radius: 0 10px 10px 0 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-left: none !important;
    background: #f8fafc !important;
    color: #64748b !important;
    min-width: 3rem;
    padding: 0 0.85rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-pass-toggle:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.login-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    font-family: var(--font-ui);
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-gradient);
    border: none;
    color: #ffffff;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1.02rem;
    padding: 0.78rem 1.1rem;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    letter-spacing: 0.02em;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
}

.btn-login:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-family: var(--font-ui);
    color: #94a3b8;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    flex-shrink: 0;
    margin-top: auto;
}

.login-footer-brand {
    font-weight: 600;
    color: #1e40af;
    letter-spacing: 0.03em;
}

.login-footer-sep {
    margin: 0 0.3rem;
    opacity: 0.5;
}

/* ────────────────────────────────────────────────
   VIRTUAL KEYBOARD — frosted glass, under card
   Hidden until field focus / typing
───────────────────────────────────────────────── */

/* Keyboard — wider than card, keys spread out evenly */
#virtualKeyboard,
.vk-panel {
    background: rgba(12, 28, 52, 0.72) !important;
    border: 1px solid rgba(147, 197, 253, 0.28) !important;
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    padding: 0.85rem 1.1rem 1.05rem;
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease, margin 0.2s ease, padding 0.2s ease;
}

#virtualKeyboard.is-hidden,
.vk-panel.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
    overflow: hidden;
    transform: translateY(8px) scale(0.98);
}

#virtualKeyboard.is-visible,
.vk-panel.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 400px;
    transform: translateY(0) scale(1);
}

.vk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0 0.15rem;
}

.vk-hint {
    text-align: left;
    color: rgba(219, 234, 254, 0.9);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex: 1;
}

/* Small X to close keyboard */
.vk-close {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
    padding: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
}

.vk-close:hover {
    background: rgba(248, 113, 113, 0.25);
    border-color: rgba(252, 165, 165, 0.55);
    color: #fff;
    transform: scale(1.05);
}

.vk-close:active {
    transform: scale(0.96);
}

.vk-keys {
    width: 100%;
}

.vk-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    margin-bottom: 0.45rem;
    gap: 0.45rem;
    width: 100%;
}

.vk-row:last-child {
    margin-bottom: 0;
}

.vkey {
    flex: 1 1 0;
    min-width: 0;
    max-width: 68px;
    height: 50px;
    margin: 0;
    padding: 0 0.2rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(191, 219, 254, 0.3);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s, transform 0.1s, border-color 0.12s, box-shadow 0.12s;
    user-select: none;
    touch-action: manipulation;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
    text-transform: none;
    line-height: 1;
}

.vkey:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.vkey:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.32);
}

.vkey.wide {
    flex: 1.35 1 0;
    max-width: 92px;
    font-size: 0.9rem;
}

.vkey.extra-wide {
    flex: 3.2 1 0;
    max-width: none;
    min-width: 140px;
}

#shiftKey,
#capsLock,
#backspace {
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.1);
}

#enterKey,
.vkey.enter-key {
    background: var(--theme-gradient, linear-gradient(135deg, #1e3a8a, #2563eb));
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.9rem;
}

#enterKey:hover,
.vkey.enter-key:hover {
    filter: brightness(1.06);
    color: #fff;
}

#shiftKey.active,
#capsLock.active {
    background: var(--login-primary-mid, #2563eb) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45);
}

@media (max-width: 700px) {
    .login-grid {
        grid-template-columns: 1fr;
    }

    .login-system-title {
        font-size: 1.45rem;
    }

    .login-brand {
        border-right: none;
        border-bottom: 1px solid #e8eef6;
        padding: 1.15rem 1rem 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem 0.85rem;
    }

    .login-brand-note {
        width: 100%;
        text-align: center;
    }

    .login-form-col {
        padding: 1.2rem 1.2rem 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .login-shell {
        padding: 1rem 0.85rem;
        align-items: flex-start;
        padding-top: 4vh;
    }

    .login-center {
        max-width: 100%;
        gap: 0.75rem;
    }

    .login-card {
        max-width: 100%;
        min-height: 400px;
    }

    .vk-panel {
        max-width: 100%;
        border-radius: 14px !important;
        padding: 0.7rem 0.55rem 0.85rem;
    }

    .vkey {
        height: 42px;
        font-size: 0.92rem;
        max-width: none;
        border-radius: 9px;
    }

    .vkey.wide {
        max-width: none;
        font-size: 0.8rem;
    }

    .vkey.extra-wide {
        max-width: none;
        min-width: 0;
    }
}

@media (min-width: 1200px) {
    .login-card {
        max-width: 680px;
        min-height: 490px;
    }

    .vk-panel {
        max-width: 880px;
    }

    .login-center {
        max-width: 920px;
    }

    .login-system-title {
        font-size: 1.9rem;
    }

    .login-grid {
        min-height: 320px;
    }

    .vkey {
        height: 52px;
        max-width: 72px;
        font-size: 1.08rem;
    }

    .vkey.wide {
        max-width: 100px;
    }
}

/* ────────────────────────────────────────────────
   MAIN POS LAYOUT
───────────────────────────────────────────────── */

.main-row {
    height: calc(100vh - 140px);
}

/* LEFT COLUMN - ORDER PANEL */
.order-col {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.order-panel {
    height: 100%;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.order-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 10px;
    min-height: 0;
}

.order-footer {
    flex-shrink: 0;
    background: white;
    border-top: 1px solid #dee2e6;
}

/* Order Items */
.order-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item:hover {
    background: #e9ecef;
}

.order-item.editing {
    background: #e6f0ff !important;       /* cool indigo highlight */
    border: 3px solid var(--primary) !important;
    box-shadow: 0 0 15px rgba(31,42,124,0.25);
    transform: scale(1.02);
}

.order-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding-right: 10px;
}

.order-item-price {
    font-weight: bold;
    color: var(--success);
    font-size: 1rem;
}

/* RIGHT COLUMN - PRODUCTS + KEYPAD */
.products-panel {
    height: 100%;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.products-header {
    padding: 16px 20px 8px;
    flex-shrink: 0;
}

.products-grid {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ────────────────────────────────────────────────
   CATEGORY BUTTONS
───────────────────────────────────────────────── */

.d-flex.flex-nowrap.overflow-auto.gap-2 {
    gap: 10px !important;
    padding-bottom: 10px;
}

.d-flex.flex-nowrap.overflow-auto::-webkit-scrollbar {
    height: 6px;
}
.d-flex.flex-nowrap.overflow-auto::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 3px;
}
.d-flex.flex-nowrap.overflow-auto {
    scrollbar-width: thin;
    -ms-overflow-style: none;
}

.category-btn {
    min-width: 110px;
    max-width: 170px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    background: #f1f5f9;
    color: #374151;
    border: none;
    border-radius: 10px;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: inline-block;
}

.category-btn:hover {
    background: #e6f0ff;
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31,42,124,0.15);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(31,42,124,0.3);
    transform: translateY(-2px);
}

/* ────────────────────────────────────────────────
   PRODUCT CARDS
───────────────────────────────────────────────── */

.product-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.product-img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    margin: 0 auto 10px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
}

.product-card.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

.out-of-stock-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ────────────────────────────────────────────────
   KEYPAD (POS)
───────────────────────────────────────────────── */

.keypad-btn {
    height: 70px;
    font-size: 1.4rem !important;
    width: 100%;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-radius: 10px;
    transition: all 0.15s;
}

.keypad-btn:hover {
    background: #e6f0ff;
    border-color: var(--primary);
}

.yellow-key   { background: #f0f4ff; }
.danger-key   { background: #ffe0de; }
.enter-key    { background: #d4edda; border-color: #c3e6cb; font-weight: bold; }

.mode-btn.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(31,42,124,0.5);
}

#keypad-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 20px;
}

#keypad-overlay.active {
    display: flex;
}

/* ────────────────────────────────────────────────
   BUTTONS & HELPERS
───────────────────────────────────────────────── */

.custom-action-btn {
    padding: 12px !important;
    font-size: 1rem !important;
    width: 100%;
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-soft-primary   { background: #e6f0ff; border: 1px solid #c2d4ff; }
.btn-soft-secondary { background: #edeef2; }
.btn-soft-purple    { background: #efe5ff; border: 1px solid #d3baff; }

/* ────────────────────────────────────────────────
   THERMAL RECEIPT PRINTING (80mm)
───────────────────────────────────────────────── */

#thermal-receipt-print {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    width: 80mm !important;
    max-width: 80mm !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    background: white;
    color: black;
}

@media print {
    body * {
        visibility: hidden !important;
    }
    #thermal-receipt-print,
    #thermal-receipt-print * {
        visibility: visible !important;
    }
    #thermal-receipt-print {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
    }
    @page {
        size: 80mm auto;
        margin: 0;
    }
}

/* ────────────────────────────────────────────────
   MODIFIERS MODAL
───────────────────────────────────────────────── */

#modifiersModal {
    z-index: 9999 !important;
}

#modifiersModal + .modal-backdrop {
    z-index: 9998 !important;
}

#modifiersModal .modal-dialog {
    margin-top: 120px !important;
    margin-bottom: 80px;
}

#modifiersModal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

#modifiersModal .modal-header {
    background: linear-gradient(135deg, var(--primary), #4A4F9C);
    border-bottom: none;
    color: white;
}

@media (max-width: 576px) {
    #modifiersModal .modal-dialog {
        margin: 80px 10px 40px 10px !important;
    }
}

/* ────────────────────────────────────────────────
   RESPONSIVE TWEAKS
───────────────────────────────────────────────── */

/* keyboard-col visibility handled by Bootstrap d-none d-md-flex on login page */