/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background: radial-gradient(circle at 50% 20%, #081d3d 0%, #030a17 70%, #01040a 100%);
    color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* APP HEADER */
.app-header {
    height: 46px;
    background: linear-gradient(180deg, rgba(8, 26, 54, 0.95) 0%, rgba(3, 12, 28, 0.98) 100%);
    border-bottom: 1px solid rgba(0, 162, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-even {
    color: #00d2ff;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.8);
}

.logo-odd {
    color: #ff3366;
    text-shadow: 0 0 12px rgba(255, 51, 102, 0.8);
}

.logo-tagline {
    font-size: 11px;
    color: #8da4cc;
    font-weight: 300;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-header {
    background: rgba(14, 38, 77, 0.7);
    border: 1px solid rgba(0, 162, 255, 0.4);
    color: #e1f0ff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-header:hover {
    background: rgba(0, 162, 255, 0.35);
    border-color: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* 3-COLUMN BALANCED FULLSCREEN DASHBOARD */
.dashboard-3col {
    flex: 1;
    padding: 8px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr 340px;
    gap: 12px;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    height: calc(100vh - 46px - 28px);
    overflow: hidden;
}

/* LEFT & CENTER COLUMNS */
.col-even-side, .col-odd-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-height: 0;
}

/* BET CARDS - YOD BETTING TEXT 2X LARGER */
.bet-card {
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.bet-card-even {
    background: linear-gradient(135deg, rgba(3, 37, 84, 0.95) 0%, rgba(1, 19, 46, 0.98) 100%);
    border: 1.5px solid #0066cc;
    box-shadow: inset 0 0 15px rgba(0, 150, 255, 0.25), 0 0 10px rgba(0, 102, 204, 0.3);
}

.bet-card-odd {
    background: linear-gradient(135deg, rgba(84, 8, 16, 0.95) 0%, rgba(43, 3, 7, 0.98) 100%);
    border: 1.5px solid #cc0022;
    box-shadow: inset 0 0 15px rgba(255, 0, 50, 0.25), 0 0 10px rgba(204, 0, 34, 0.3);
}

.bet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bet-card-header h2 {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bet-card-even .bet-card-header h2 { color: #66c2ff; text-shadow: 0 0 10px rgba(0, 195, 255, 0.8); }
.bet-card-odd .bet-card-header h2 { color: #ff6680; text-shadow: 0 0 10px rgba(255, 51, 85, 0.8); }

.bet-total-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.bet-subhead { font-size: 13px; color: #a0b8db; font-weight: 500; }

.bet-total-amount {
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.bet-card-even .bet-total-amount {
    color: #00f0ff;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
}

.bet-card-odd .bet-total-amount {
    color: #ff3366;
    text-shadow: 0 0 15px rgba(255, 51, 102, 0.8);
}

.bet-input-row {
    display: grid;
    grid-template-columns: 110px 1fr 110px;
    gap: 8px;
    align-items: center;
}

.bet-input {
    background: rgba(0, 10, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

.bet-input:focus {
    border-color: #00d2ff;
    background: rgba(0, 25, 60, 0.95);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.unit-text {
    position: absolute;
    right: 8px;
    color: #7b99c2;
    font-size: 11px;
    pointer-events: none;
}

.btn-confirm {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    text-transform: uppercase;
}

.btn-confirm-even {
    background: linear-gradient(180deg, #0088ff 0%, #0044cc 100%);
    box-shadow: 0 3px 10px rgba(0, 136, 255, 0.4);
}

.btn-confirm-even:hover {
    background: linear-gradient(180deg, #3399ff 0%, #0055ff 100%);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.7);
}

.btn-confirm-odd {
    background: linear-gradient(180deg, #e6002e 0%, #99001f 100%);
    box-shadow: 0 3px 10px rgba(230, 0, 46, 0.4);
}

.btn-confirm-odd:hover {
    background: linear-gradient(180deg, #ff1a47 0%, #cc0029 100%);
    box-shadow: 0 0 15px rgba(255, 0, 50, 0.7);
}

/* BET LIST PANELS */
.bet-list-panel {
    background: rgba(4, 18, 41, 0.95);
    border-radius: 12px;
    border: 1.5px solid rgba(0, 136, 255, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.panel-even { border-color: rgba(0, 136, 255, 0.5); }
.panel-odd { border-color: rgba(255, 0, 50, 0.5); }

.bet-list-header {
    padding: 10px 16px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.panel-even .bet-list-header {
    background: linear-gradient(90deg, rgba(0, 85, 170, 0.4) 0%, rgba(0, 40, 90, 0.6) 100%);
    color: #66c2ff;
    border-bottom: 1px solid rgba(0, 136, 255, 0.4);
}

.panel-odd .bet-list-header {
    background: linear-gradient(90deg, rgba(170, 0, 34, 0.4) 0%, rgba(90, 0, 20, 0.6) 100%);
    color: #ff6680;
    border-bottom: 1px solid rgba(255, 0, 50, 0.4);
}

.payout-rate { font-size: 12px; color: #8da4cc; font-weight: 400; }

.bet-table-wrapper {
    flex: 1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
}

.bet-table-col {
    flex: 1;
    min-width: 125px;
    height: 100%;
    border-right: 1px dashed rgba(255, 255, 255, 0.12);
    padding-right: 6px;
}

.bet-table-col:last-child {
    border-right: none;
    padding-right: 0;
}

.bet-table {
    width: 100%;
    border-collapse: collapse;
}

.bet-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bet-table tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.bet-table td {
    padding: 6px 8px;
    vertical-align: middle;
}

.bet-table td.col-no {
    color: #617d9e;
    font-size: 15px;
    font-weight: 600;
    width: 32px;
}

.bet-table td.col-table-code {
    color: #00f0ff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.panel-odd .bet-table td.col-table-code {
    color: #ff8099;
    text-shadow: 0 0 8px rgba(255, 128, 153, 0.5);
}

.bet-table td.col-amount {
    text-align: right;
    color: #ffcc00;
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

.empty-row {
    text-align: center !important;
    color: #587394 !important;
    padding: 60px !important;
    font-size: 15px !important;
}

/* RIGHT COLUMN: CONTROLS, SCALE, CALC & HISTORY */
.col-control-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-height: 0;
}

/* RIGHT TIMER CARD & ROUND BADGE 2X LARGER */
.right-timer-card {
    background: linear-gradient(135deg, rgba(6, 34, 77, 0.95) 0%, rgba(2, 16, 41, 0.98) 100%);
    border: 1.5px solid #0099ff;
    border-radius: 10px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.3);
}

.round-badge {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.round-badge span.round-label,
.round-badge span {
    font-size: 16px;
    color: #a0c2f0;
    font-weight: 600;
}

.round-badge strong,
.round-badge .round-number {
    font-size: 38px !important;
    color: #ffcc00 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.8) !important;
    font-family: 'Orbitron', sans-serif !important;
}

.countdown-box-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-label { font-size: 12px; color: #8da4cc; }

.countdown-time {
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #00e6ff;
    text-shadow: 0 0 8px rgba(0, 230, 255, 0.7);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.countdown-time.timer-overtime-red {
    color: #ff3366 !important;
    text-shadow: 0 0 15px rgba(255, 51, 102, 0.9) !important;
    animation: blink-red-timer 1s infinite alternate;
}

@keyframes blink-red-timer {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* DIGITAL SCALE CARD */
.scale-card {
    background: linear-gradient(135deg, rgba(8, 30, 64, 0.95) 0%, rgba(3, 14, 33, 0.98) 100%);
    border: 1px solid rgba(0, 180, 255, 0.35);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    flex-shrink: 0;
}

.scale-header-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.digital-scale-visual {
    background: radial-gradient(circle at 50% 30%, #152d52 0%, #071224 100%);
    border: 2px solid #0055aa;
    border-radius: 8px;
    padding: 6px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.scale-tray {
    height: 6px;
    background: linear-gradient(90deg, #445875 0%, #8da4cc 50%, #445875 100%);
    border-radius: 4px;
    margin-bottom: 4px;
}

.scale-screen-box {
    background: #020b18;
    border: 2px solid #0088ff;
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 3-DECIMAL WEIGHT INPUT FIELD (0.00x) */
#even-table-input, #odd-table-input {
    text-transform: uppercase;
}
.scale-input-field {
    font-family: 'Orbitron', monospace;
    font-size: 26px;
    font-weight: 900;
    color: #00f0ff;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
    width: 140px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.9);
}

.scale-input-field::placeholder { color: rgba(0, 240, 255, 0.3); }
.scale-unit { font-size: 15px; color: #8da4cc; font-weight: 600; }
.scale-status-text { font-size: 11px; color: #6182ad; margin-top: 4px; font-weight: 500; }

.btn-confirm-weight-green {
    width: 100%;
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #00cc44 0%, #008822 100%);
    border: 1px solid #00ff55;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(0, 204, 68, 0.4);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-confirm-weight-green:hover {
    background: linear-gradient(180deg, #00ff55 0%, #00aa33 100%);
    box-shadow: 0 0 18px rgba(0, 255, 85, 0.8);
}

.scale-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}

.btn-scale-action {
    background: rgba(10, 42, 87, 0.85);
    border: 1px solid rgba(0, 162, 255, 0.4);
    color: #ffffff;
    padding: 5px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-scale-action:hover {
    background: #0066cc;
    border-color: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* CALCULATION CARD */
.calc-card {
    background: rgba(4, 18, 41, 0.95);
    border: 1px solid rgba(0, 136, 255, 0.35);
    border-radius: 10px;
    padding: 8px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    overflow: hidden;
}

.calc-header-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 4px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
}

.calc-label { color: #8da4cc; }

.calc-weight-box {
    background: #ffffff;
    color: #000000;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 15px;
}

.result-badge-display {
    background: #e6002e;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    padding: 2px 12px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(230, 0, 46, 0.6);
}

.result-badge-display.even {
    background: #0077ff;
    box-shadow: 0 0 10px rgba(0, 119, 255, 0.6);
}

.calc-formula-box {
    text-align: center;
    background: rgba(0, 10, 26, 0.7);
    border-radius: 6px;
    padding: 4px;
    margin: 2px 0;
    font-size: 11px;
    color: #d1e5ff;
}

/* WINNER POPUP 2-COLUMN GRID (ฝั่งคู่ & ฝั่งคี่) */
.winner-2cols-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.winner-col {
    background: rgba(0, 15, 35, 0.8);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.winner-col-even { border-color: rgba(0, 136, 255, 0.4); }
.winner-col-odd { border-color: rgba(255, 0, 50, 0.4); }

.win-col-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.winner-col-even .win-col-title { color: #66c2ff; }
.winner-col-odd .win-col-title { color: #ff6680; }

.win-status-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

/* WINNER POPUP ACTIONS BAR FOR 2 THERMAL SLIPS */
.winner-pop-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.btn-print-slip-type {
    padding: 10px;
    border-radius: 6px;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-print-collect {
    background: linear-gradient(180deg, #cc0033 0%, #880022 100%);
    box-shadow: 0 4px 10px rgba(204, 0, 51, 0.4);
}

.btn-print-collect:hover { background: #ff0044; }

.btn-print-payout {
    background: linear-gradient(180deg, #00aa44 0%, #006622 100%);
    box-shadow: 0 4px 10px rgba(0, 170, 68, 0.4);
}

.btn-print-payout:hover { background: #00cc55; }

.btn-next-round-pop {
    background: linear-gradient(180deg, #0088ff 0%, #0044cc 100%);
}

/* THERMAL PRINTER RECEIPT STYLING (กระดาษร้อน 58mm / 80mm) */
.printable-slip-paper {
    background: #ffffff;
    color: #000000;
    padding: 16px;
    border-radius: 6px;
    font-family: monospace;
    max-width: 320px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slip-title { font-size: 15px; font-weight: 800; text-align: center; }

.slip-type-badge {
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    background: #000000;
    color: #ffffff;
    padding: 4px;
    margin: 6px 0;
    border-radius: 4px;
}

.slip-divider { border: 0; border-top: 1px dashed #000000; margin: 8px 0; }

.slip-table { width: 100%; font-size: 11px; border-collapse: collapse; }
.slip-table th, .slip-table td { text-align: right; padding: 3px 2px; }
.slip-table th:first-child, .slip-table td:first-child { text-align: left; }

.slip-summary-footer { font-size: 13px; font-weight: 800; text-align: right; margin-top: 6px; }

@media print {
    body * { visibility: hidden; }
    #printable-slip-area, #printable-slip-area * { visibility: visible; }
    #printable-slip-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm;
        margin: 0;
        padding: 10px;
        box-shadow: none;
    }
}

/* HISTORY SECTION INSIDE CALC CARD */
.history-section-inside {
    background: rgba(0, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px 6px;
    margin: 4px 0;
}

.panel-title {
    font-size: 10px;
    font-weight: 600;
    color: #8da4cc;
    margin-bottom: 2px;
}

.bead-plate-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 3px;
    width: 100%;
    padding: 6px;
    background: rgba(0, 10, 26, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
}

.bead-circle {
    aspect-ratio: 1;
    width: 100%;
    max-width: 22px;
    max-height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 auto;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bead-circle:hover {
    transform: scale(1.4);
    z-index: 100;
    box-shadow: 0 0 10px #ffffff;
}

.bead-circle.even {
    background: radial-gradient(circle at 30% 30%, #3399ff, #0044cc);
    border: 0.5px solid #66c2ff;
}

.bead-circle.odd {
    background: radial-gradient(circle at 30% 30%, #ff3366, #99001f);
    border: 0.5px solid #ff6680;
}

.bead-circle.empty {
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px dashed rgba(255, 255, 255, 0.12);
    cursor: default;
}

.bead-circle.empty:hover {
    transform: none;
    box-shadow: none;
}

/* OVERALL STATS SUMMARY SPLIT BAR */
.stats-summary-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-split-bar {
    display: flex;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    box-sizing: border-box;
    background: #000000;
}

.split-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    padding: 0 10px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s ease;
    min-width: 25%;
}

.split-even { background: linear-gradient(180deg, #0066cc 0%, #003388 100%); }
.split-odd { background: linear-gradient(180deg, #cc0022 0%, #660011 100%); }

.side-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.95;
}

.side-pct {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.total-rounds-footer {
    font-size: 10px;
    color: #8da4cc;
    text-align: center;
}

/* FOOTER */
.app-footer {
    height: 28px;
    background: rgba(2, 8, 18, 0.98);
    border-top: 1px solid rgba(0, 136, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 10px;
    color: #557299;
    flex-shrink: 0;
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 5, 15, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active { display: flex; }

.modal-box {
    background: linear-gradient(135deg, #081a36 0%, #030d1f 100%);
    border: 1px solid #0088ff;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 136, 255, 0.4);
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #ffffff;
}

.modal-md { max-width: 600px; }
.modal-lg { max-width: 900px; }

.modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 136, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { font-size: 17px; color: #00d2ff; }
.btn-close-modal { background: none; border: none; color: #8da4cc; font-size: 24px; cursor: pointer; }
.btn-close-modal:hover { color: #ffffff; }
.modal-body { padding: 18px; }

/* MODAL TABS */
.modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 14px;
}

.tab-btn {
    background: none;
    border: none;
    color: #8da4cc;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #00d2ff;
    border-bottom-color: #00d2ff;
    font-weight: 600;
}

.tab-btn-jk-prominent {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.2), rgba(204, 102, 0, 0.3)) !important;
    color: #ffcc00 !important;
    border: 1px solid rgba(255, 153, 0, 0.5) !important;
    border-radius: 6px 6px 0 0 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
}

.tab-btn-jk-prominent.active,
.tab-btn-jk-prominent:hover {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.4), rgba(255, 102, 0, 0.5)) !important;
    color: #ffffff !important;
    border-bottom-color: #ffcc00 !important;
    box-shadow: 0 0 16px rgba(255, 153, 0, 0.6);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ADMIN FORM STYLES */
.admin-input {
    background: #020b18;
    border: 1px solid #0066cc;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.weight-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-admin-action {
    background: #0066cc;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-admin-action:hover { background: #0088ff; }
.btn-close-round { background: #cc0022; }
.btn-close-round:hover { background: #ff1a47; }

/* REPORT CARDS */
.report-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.rep-card {
    background: rgba(0, 20, 45, 0.7);
    border: 1px solid rgba(0, 136, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
}

.rep-title { font-size: 11px; color: #8da4cc; }
.rep-value { font-size: 16px; font-weight: 700; margin-top: 4px; }

.text-gold { color: #ffcc00; }
.text-green { color: #00ff88; }
.text-cyan { color: #00f0ff; }
.text-blue { color: #3399ff; }
.text-red { color: #ff3366; }

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 12px;
}

.report-table th, .report-table td {
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

/* EXECUTIVE COMMISSION DASHBOARD STYLES */
.comm-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 15, 35, 0.7);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 162, 255, 0.3);
    margin-bottom: 14px;
}

.mode-toggle-group {
    display: flex;
    gap: 6px;
}

.btn-mode-toggle {
    background: rgba(10, 42, 87, 0.8);
    border: 1px solid rgba(0, 162, 255, 0.4);
    color: #e1f0ff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mode-toggle:hover {
    background: #0066cc;
    border-color: #00d2ff;
}

.btn-mode-toggle.active {
    background: linear-gradient(180deg, #00d2ff 0%, #0077cc 100%);
    color: #000000;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
}

.date-select-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comm-hero-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.comm-hero-card {
    background: rgba(0, 20, 45, 0.85);
    border: 1px solid rgba(0, 136, 255, 0.3);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.comm-hero-highlight {
    background: linear-gradient(135deg, rgba(0, 40, 20, 0.95) 0%, rgba(0, 90, 45, 0.98) 100%);
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
}

.hero-label {
    font-size: 12px;
    color: #a0c2f0;
    font-weight: 600;
}

.comm-hero-highlight .hero-label { color: #ffffff; }

.hero-value {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    margin: 8px 0;
}

.comm-hero-highlight .hero-value {
    font-size: 28px;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
}

.hero-sub {
    font-size: 11px;
    color: #7b99c2;
}

/* QUALITY INDEX METERS CHART STYLES */
.badge-quality-overall {
    background: linear-gradient(135deg, #00ff88 0%, #00b359 100%);
    color: #000000;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.quality-meters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.qi-meter-box {
    background: rgba(0, 15, 35, 0.75);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 8px;
    padding: 12px 14px;
}

.qi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #e1f0ff;
    margin-bottom: 8px;
}

.qi-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.qi-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.qi-fill-green { background: linear-gradient(90deg, #00b359 0%, #00ff88 100%); box-shadow: 0 0 8px rgba(0, 255, 136, 0.6); }
.qi-fill-cyan { background: linear-gradient(90deg, #0077cc 0%, #00d2ff 100%); box-shadow: 0 0 8px rgba(0, 210, 255, 0.6); }
.qi-fill-gold { background: linear-gradient(90deg, #cc9900 0%, #ffd700 100%); box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); }
.qi-fill-blue { background: linear-gradient(90deg, #0044cc 0%, #3388ff 100%); box-shadow: 0 0 8px rgba(51, 136, 255, 0.6); }

.qi-sub-text {
    font-size: 11px;
    color: #7b99c2;
}

/* TOAST NOTIFICATION BANNER */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #00c853 0%, #009624 100%);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.4);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}
.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast-notification.error {
    background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.4);
}

/* THEME CARDS GRID IN ADMIN SETTINGS */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.theme-card {
    background: rgba(0, 15, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-card:hover {
    border-color: #00d2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.3);
}

.theme-card.active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.theme-preview {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.theme-info strong { display: block; font-size: 13px; color: #ffffff; }
.theme-info span { font-size: 11px; color: #8da4cc; }

/* 10 COLOR THEMES IMPLEMENTATION */

/* 1. Midnight Cyber (Default) */
body[data-theme="midnight-cyber"] {
    background: radial-gradient(circle at 50% 20%, #081d3d 0%, #030a17 70%, #01040a 100%);
}

/* 2. Gold Luxury Casino */
body[data-theme="gold-luxury"] {
    background: radial-gradient(circle at 50% 20%, #261f06 0%, #0d0a02 70%, #050400 100%);
}
body[data-theme="gold-luxury"] .app-header { background: linear-gradient(180deg, #332908 0%, #171203 100%); border-bottom-color: #ffcc00; }
body[data-theme="gold-luxury"] .logo-even { color: #ffcc00; }
body[data-theme="gold-luxury"] .logo-odd { color: #00ff88; }

/* 3. Neon Cyberpunk */
body[data-theme="neon-cyberpunk"] {
    background: radial-gradient(circle at 50% 20%, #29023d 0%, #0e0017 70%, #05000a 100%);
}
body[data-theme="neon-cyberpunk"] .logo-even { color: #d000ff; }
body[data-theme="neon-cyberpunk"] .logo-odd { color: #ccff00; }

/* 4. Emerald Forest */
body[data-theme="emerald-forest"] {
    background: radial-gradient(circle at 50% 20%, #022917 0%, #001209 70%, #000804 100%);
}
body[data-theme="emerald-forest"] .logo-even { color: #00ff88; }
body[data-theme="emerald-forest"] .logo-odd { color: #00f0ff; }

/* 5. Ocean Deep */
body[data-theme="ocean-deep"] {
    background: radial-gradient(circle at 50% 20%, #042747 0%, #011224 70%, #000712 100%);
}

/* 6. Crimson Ruby */
body[data-theme="crimson-ruby"] {
    background: radial-gradient(circle at 50% 20%, #3d0510 0%, #170105 70%, #0a0002 100%);
}

/* 7. Solar Sunrise */
body[data-theme="solar-sunrise"] {
    background: radial-gradient(circle at 50% 20%, #3d1c05 0%, #170a01 70%, #0a0400 100%);
}

/* 8. Amethyst Purple */
body[data-theme="amethyst-purple"] {
    background: radial-gradient(circle at 50% 20%, #200633 0%, #0a0114 70%, #04000a 100%);
}

/* 9. Monochrome Slate */
body[data-theme="monochrome-slate"] {
    background: radial-gradient(circle at 50% 20%, #26292d 0%, #101214 70%, #070809 100%);
}

/* 10. Tokyo Neon Night */
body[data-theme="tokyo-night"] {
    background: radial-gradient(circle at 50% 20%, #190033 0%, #090014 70%, #03000a 100%);
}

/* ==================== MOBILE LANDSCAPE & RESPONSIVE FIT SCREEN ==================== */

/* 1. Mobile Portrait Mode (แนวตั้งมือถือ) */
@media screen and (max-width: 768px) and (orientation: portrait) {
    body {
        height: auto;
        overflow-y: auto;
    }
    .app-header {
        padding: 6px 10px;
    }
    .logo-main h1 {
        font-size: 16px;
    }
    .dashboard-3col {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: visible;
        padding: 6px;
        gap: 10px;
    }
    .col-even-side, .col-odd-side, .col-right-scale {
        height: auto;
    }
    .bet-table-wrapper {
        max-height: 250px;
    }
}

/* 2. Mobile Landscape Mode (แนวนอนมือถือ - Full Screen Fit) */
@media screen and (max-height: 600px), screen and (orientation: landscape) and (max-width: 1024px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .app-header {
        height: 38px;
        padding: 2px 10px;
    }
    
    .logo-main h1 {
        font-size: 15px;
    }
    .logo-tagline {
        display: none;
    }

    .btn-header {
        padding: 2px 8px;
        font-size: 11px;
    }

    .dashboard-3col {
        grid-template-columns: 1fr 1fr 280px;
        gap: 6px;
        padding: 4px 6px;
        height: auto;
        min-height: calc(100vh - 40px);
        overflow: visible;
    }

    .bet-card {
        padding: 6px 8px;
    }

    .bet-card-header h2 {
        font-size: 14px;
    }

    .bet-total-amount {
        font-size: 18px;
    }

    .bet-input-row {
        gap: 4px;
    }

    .bet-input {
        padding: 4px 8px;
        font-size: 12px;
    }

    .btn-confirm {
        padding: 4px 8px;
        font-size: 12px;
    }

    .bet-table-wrapper {
        max-height: 180px;
        overflow-y: auto;
    }

    .bet-table th, .bet-table td {
        padding: 4px 6px;
        font-size: 11px;
    }

    .scale-card {
        padding: 6px;
    }

    .round-header-box h3 {
        font-size: 14px;
    }

    .live-clock {
        font-size: 16px;
    }

    .scale-display-box {
        padding: 6px;
    }

    .scale-input-field {
        font-size: 20px;
    }

    .btn-confirm-scale {
        padding: 6px;
        font-size: 12px;
    }

    .bead-plate-grid {
        gap: 2px;
    }

    .bead-cell {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }
}

/* ==========================================================================
   BACK OFFICE LAYOUT & TABLE MAP SYSTEM
   ========================================================================== */
.btn-backoffice {
    background: linear-gradient(135deg, #ff9900, #cc6600) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.4);
    font-weight: 700;
}

.btn-backoffice:hover {
    background: linear-gradient(135deg, #ffaa11, #dd7700) !important;
    box-shadow: 0 0 16px rgba(255, 153, 0, 0.7);
}

.backoffice-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    overflow: hidden;
    box-sizing: border-box;
}

.backoffice-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 12px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* LEFT HALF: TABLE MAP */
.bo-left-map-section {
    background: rgba(18, 26, 44, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.bo-map-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
    flex-shrink: 0;
}

.bo-map-header h3 {
    margin: 0;
    font-size: 16px;
    color: #00d2ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bo-subtext {
    font-size: 11px;
    color: #8da4cc;
}

/* 4-COLUMN LAYOUT WITH SHRIMP POOL IN CENTER */
.bo-map-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
    gap: 6px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.bo-table-col-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.bo-col-t-group {
    height: 100%;
}

.bo-col-title {
    font-size: 11px;
    font-weight: 700;
    color: #00d2ff;
    text-align: center;
    background: rgba(0, 210, 255, 0.1);
    padding: 4px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.bo-title-t {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.bo-table-cards-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2px;
    max-height: none;
    overflow-y: hidden;
    padding-right: 0;
}

.bo-t-cards-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    overflow-y: hidden;
    max-height: none;
}

/* TABLE CARD COMPONENT (Matching User Mockup Design) */
.bo-table-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

/* T-TABLE CARD: YELLOW BACKGROUND FIT CONTAINER HEIGHT */
.bo-table-card-yellow {
    background: linear-gradient(135deg, #fffbeb, #fef08a) !important;
    border: 1.5px solid #facc15 !important;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.25) !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 8px !important;
}

.bo-table-card-yellow .bo-table-code {
    color: #713f12 !important;
    font-size: 15px !important;
}

.bo-table-card-yellow .bo-jk-badge {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #f59e0b !important;
    font-size: 10.5px !important;
    padding: 2px 5px !important;
}

.bo-table-card-yellow .bo-table-actions {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 4px 0;
    align-items: stretch;
}

.bo-table-card-yellow .bo-btn-side {
    height: 100%;
    min-height: 30px;
    padding: 6px 4px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
}

.bo-table-card:hover {
    border-color: #00d2ff;
    box-shadow: 0 2px 8px rgba(0, 210, 255, 0.3);
}

.bo-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.1;
}

.bo-table-code {
    font-size: 11px;
    font-weight: 900;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.bo-jk-badge {
    font-size: 8.5px;
    font-weight: 700;
    background: #f1f5f9;
    color: #0284c7;
    border: 1px dashed #0284c7;
    padding: 0px 3px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bo-jk-badge:hover {
    background: #e0f2fe;
    border-style: solid;
}

.bo-table-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.bo-btn-side {
    border: none;
    border-radius: 3px;
    padding: 1px 1px;
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    line-height: 1.1;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.bo-table-active-bets {
    display: flex;
    justify-content: space-between;
    font-size: 8.5px;
    color: #475569;
    font-weight: 600;
    border-top: 1px solid #e2e8f0;
    padding-top: 0px;
    margin-top: 0px;
    line-height: 1;
}

.bo-btn-side:active {
    transform: scale(0.96);
}

.bo-btn-even {
    background: linear-gradient(135deg, #00d2ff, #0077ff);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 119, 255, 0.3);
}

.bo-btn-even:hover {
    background: linear-gradient(135deg, #1ae0ff, #1a85ff);
}

.bo-btn-odd {
    background: linear-gradient(135deg, #ff3366, #cc0033);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(255, 51, 102, 0.3);
}

.bo-btn-odd:hover {
    background: linear-gradient(135deg, #ff4d7a, #e60039);
}

.bo-table-active-bets {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #475569;
    font-weight: 600;
    border-top: 1px solid #e2e8f0;
    padding-top: 2px;
    margin-top: 2px;
}

/* SHRIMP POOL CENTER BOX */
.bo-shrimp-pool-container {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border: 3px solid #38bdf8;
    border-radius: 16px;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 4px 15px rgba(56, 189, 248, 0.3);
}

.shrimp-pool-content {
    z-index: 2;
    text-align: center;
}

.shrimp-icon {
    font-size: 48px;
    display: block;
    animation: shrimpFloat 3s infinite ease-in-out;
}

@keyframes shrimpFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-5deg); }
}

.shrimp-title {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.shrimp-sub {
    font-size: 11px;
    color: #bae6fd;
    letter-spacing: 3px;
}

/* RIGHT HALF: MONITOR & SCALE PANEL */
.bo-right-monitor-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bo-live-bets-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.bo-bet-panel {
    background: rgba(18, 26, 44, 0.85);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.panel-even {
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.panel-odd {
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.bo-scale-card {
    background: rgba(18, 26, 44, 0.9);
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* QUICK BET MODAL CHIPS & BANNER */
.qb-info-banner {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.qb-quick-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.qb-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 6px;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.qb-chip:hover {
    background: rgba(0, 210, 255, 0.25);
    border-color: #00d2ff;
}

