:root {
    --bg-main: #111827;
    --bg-card: #1f2937;
    --border: #374151;
    --text: #f3f4f6;
    --text-muted: #9ca3af;
    --green: #22c55e;
    --green-dark: #16a34a;
    --red: #ef4444;
    --red-dark: #b91c1c;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --yellow: #eab308;
    --yellow-dark: #ca8a04;
    --gray: #4b5563;
    --gray-dark: #374151;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    user-select: none;
    touch-action: manipulation;
}

body {
    background: var(--bg-main);
    color: var(--text);
    padding-bottom: 120px;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

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

.font-bold {
    font-weight: bold;
}

.font-black {
    font-weight: 900;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.85rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-red {
    color: var(--red);
}

.text-green {
    color: var(--green);
}

.text-yellow {
    color: var(--yellow);
}

.text-blue {
    color: var(--blue);
}

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

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-4 {
    margin-top: 20px;
}

.p-2 {
    padding: 10px;
}

.w-full {
    width: 100%;
}

.w-1-2 {
    width: 48%;
}

.w-1-3 {
    width: 32%;
}

.w-1-4 {
    width: 24%;
}

.w-2-3 {
    width: 65%;
}

.gap-2 {
    gap: 10px;
}

.hidden {
    display: none !important;
}

.block {
    display: block;
}

input,
select,
textarea {
    background: var(--gray-dark);
    color: white;
    border: 1px solid var(--gray);
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    outline: none;
    margin-bottom: 10px;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

.btn {
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.btn-green {
    background: var(--green-dark);
}

.btn-red {
    background: var(--red-dark);
}

.btn-blue {
    background: var(--blue-dark);
}

.btn-yellow {
    background: var(--yellow-dark);
    color: #000;
}

.btn-gray {
    background: var(--gray);
}

.btn-outline {
    background: transparent;
    border: 2px dashed var(--blue);
    color: var(--blue);
    padding: 15px;
}

.user-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: var(--bg-card);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 8px solid var(--gray);
    margin-bottom: 8px;
    color: white;
    position: relative;
}

.user-btn:active {
    transform: scale(0.98);
}

.user-gast {
    border-left-color: var(--gray);
    margin-bottom: 20px;
}

.user-plus {
    border-left-color: var(--green);
}

.user-minus {
    border-left-color: var(--red);
}

.lock-icon {
    position: absolute;
    left: -10px;
    top: -10px;
    background: var(--gray-dark);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-main);
}

.drink-row {
    background: var(--gray-dark);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gray);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qty-display {
    width: 35px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.checkout-bar {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: #0f172a;
    padding: 15px 20px;
    border-radius: 12px;
    border-top: 4px solid var(--green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.6);
    max-width: 620px;
    margin: 0 auto;
}

.checkout-btn {
    background: var(--green);
    color: black;
    font-weight: 900;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.25rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 15px;
}

.modal-content {
    background: var(--bg-main);
    border: 1px solid var(--blue);
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.numpad-btn {
    background: var(--gray-dark);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--gray);
}

.numpad-btn:active {
    background: var(--gray);
}

.header-box {
    background: var(--bg-card);
    border-radius: 0 0 12px 12px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.header-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    opacity: 0.5;
    color: white;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--red-dark);
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 6px 0;
    border-radius: 12px 12px 0 0;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 15s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.admin-tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.admin-tabs .btn {
    flex-shrink: 0;
    padding: 10px 15px;
    font-size: 0.85rem;
    width: auto;
}

.list-item {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.round-banner {
    background: var(--yellow-dark);
    color: black;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    border: 2px solid var(--yellow);
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(234, 179, 8, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    }
}

.success-banner {
    background: var(--green-dark);
    color: white;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

s {
    color: var(--red);
    margin-right: 5px;
}
