:root {
    --bg: #030303;
    --card: #0a0a0a;
    --cyan: #00e5ff;
    --green: #00ff9d;
    --ps5-blue: #0043ff;
    --red: #ff3b3b;
    --text-main: #ffffff;
    --text-dim: #717171;
    --border: #1a1a1a;
    --modal-bg: rgba(0, 0, 0, 0.95);
    --purple: #9b4dff;
    --orange: #ff8c00;
    --yellow: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    padding: calc(max(10px, min(24px, 3vw)));
    overflow-x: hidden;
    overflow-x: clip;
    min-height: 100vh;
}

/* --- CUSTOM NOTIFICATION --- */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 25px;
    min-width: 320px;
    max-width: 400px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.custom-notification.show {
    transform: translateX(0);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon.info {
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.notification-icon.success {
    background: rgba(0, 255, 157, 0.15);
    border: 1px solid var(--green);
    color: var(--green);
}

.notification-icon.warning {
    background: rgba(255, 140, 0, 0.15);
    border: 1px solid var(--orange);
    color: var(--orange);
}

.notification-icon.error {
    background: rgba(255, 59, 59, 0.15);
    border: 1px solid var(--red);
    color: var(--red);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    transition: color 0.3s;
    align-self: flex-start;
}

@media (hover: hover) {
    .notification-close:hover {
        color: white;
    }
}

/* --- CUSTOM CONFIRM MODAL --- */
.custom-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.custom-confirm-modal.show {
    display: flex;
}

.confirm-modal-content {
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.confirm-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.confirm-modal-message {
    color: var(--text-dim);
    margin-bottom: 30px;
    line-height: 1.5;
    font-size: 1rem;
}

.confirm-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.confirm-btn {
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.confirm-btn.cancel {
    background: #222;
    color: white;
    border: 1px solid #333;
}

@media (hover: hover) {
    .confirm-btn.cancel:hover {
        background: #333;
        border-color: #444;
    }
}

.confirm-btn.confirm {
    background: var(--red);
    color: white;
    border: 1px solid var(--red);
}

@media (hover: hover) {
    .confirm-btn.confirm:hover {
        background: #ff2a2a;
        transform: translateY(-2px);
    }
}

.confirm-btn.success {
    background: var(--green);
    color: black;
    border: 1px solid var(--green);
}

@media (hover: hover) {
    .confirm-btn.success:hover {
        background: #00e68a;
        transform: translateY(-2px);
    }
}

/* --- CUSTOM PROMPT MODAL --- */
.custom-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.custom-prompt-modal.show {
    display: flex;
}

.prompt-modal-content {
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.prompt-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.prompt-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.prompt-modal-message {
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 1rem;
}

.prompt-input {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
    font-family: 'Outfit';
    font-size: 16px;
    margin-bottom: 25px;
    transition: border-color 0.3s;
}

.prompt-input:focus {
    outline: none;
    border-color: var(--cyan);
}

.prompt-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.prompt-btn {
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.prompt-btn.cancel {
    background: #222;
    color: white;
    border: 1px solid #333;
}

@media (hover: hover) {
    .prompt-btn.cancel:hover {
        background: #333;
        border-color: #444;
    }
}

.prompt-btn.submit {
    background: var(--cyan);
    color: black;
    border: 1px solid var(--cyan);
}

@media (hover: hover) {
    .prompt-btn.submit:hover {
        background: #00cce6;
        transform: translateY(-2px);
    }
}

/* --- AUTH SCREEN --- */
#authSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg);
    z-index: 2000;
    padding: 20px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: calc(max(25px, min(50px, 4vw)));
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.auth-logo {
    font-family: 'Space Grotesk';
    font-size: calc(max(1.8rem, min(2.5rem, 5vw)));
    margin-bottom: 25px;
}

.auth-logo span {
    color: var(--cyan);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.app-input {
    width: 100%;
    padding: 14px;
    background: #000;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
    font-family: 'Outfit';
    font-size: 16px;
    transition: border-color 0.3s;
}

.app-input:focus {
    outline: none;
    border-color: var(--cyan);
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: var(--cyan);
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    font-family: 'Space Grotesk';
    letter-spacing: 1px;
    font-size: 1rem;
    transition: all 0.3s;
}

@media (hover: hover) {
    .auth-btn:hover {
        background: #00cce6;
        transform: translateY(-2px);
    }
}

.switch-auth {
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--text-dim);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

@media (hover: hover) {
    .switch-auth:hover {
        color: var(--cyan);
    }
}

/* --- NEW: AUTH BUTTONS STYLES --- */
.auth-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.auth-action-btn {
    padding: 14px;
    background: #111;
    color: white;
    border: 1px solid #333;
    border-radius: 8px;
    font-family: 'Outfit';
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (hover: hover) {
    .auth-action-btn:hover {
        background: #1a1a1a;
        border-color: #444;
        transform: translateY(-2px);
    }
}

.auth-action-btn.cyan {
    background: var(--cyan);
    color: black;
    border-color: var(--cyan);
}

@media (hover: hover) {
    .auth-action-btn.cyan:hover {
        background: #00cce6;
    }
}

.auth-action-btn.green {
    background: var(--green);
    color: black;
    border-color: var(--green);
}

@media (hover: hover) {
    .auth-action-btn.green:hover {
        background: #00e68a;
    }
}

.auth-action-btn.red {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

@media (hover: hover) {
    .auth-action-btn.red:hover {
        background: #ff2a2a;
    }
}

/* --- APP HEADER --- */
.top-nav {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    font-family: 'Outfit', sans-serif;
}

.logo-section h1 {
    font-size: calc(max(1rem, min(1.5rem, 2.5vw)));
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
}

.logo-section h1 span {
    color: var(--cyan);
}

.owner-display {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.nav-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.nav-tabs {
    display: flex;
    background: #111;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit';
    transition: all 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (hover: hover) {
    .nav-btn:hover {
        background: #1a1a1a;
        color: white;
    }
}

.nav-btn.active {
    background: #1a1a1a;
    color: white;
    border: 1px solid #333;
}

.zone-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zone-select {
    background: #111;
    color: white;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Outfit';
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.3s;
}

.zone-select:focus {
    border-color: var(--cyan);
    outline: none;
}

.active-sessions-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 30px;
    border-left: 1px solid #222;
    min-width: 180px;
}

.active-sessions-label label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}

.active-sessions-count {
    font-size: calc(max(1.5rem, min(2.2rem, 3vw)));
    font-weight: 700;
    font-family: 'Outfit';
    min-width: 80px;
    text-align: center;
}

.active-sessions-count span {
    color: #444;
    font-size: 0.8em;
}

.reset-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-family: 'Outfit';
    transition: all 0.3s;
    white-space: nowrap;
}

@media (hover: hover) {
    .reset-btn:hover {
        background: #ff2a2a;
        transform: translateY(-2px);
    }
}

/* --- MAIN DASHBOARD --- */
.dashboard-main {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 350px);
    gap: calc(max(20px, min(35px, 3vw)));
    transition: grid-template-columns 0.3s ease;
}

/* Zone Cards Grid */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(max(15px, min(25px, 2vw)));
    margin-bottom: 35px;
}

.zone-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: calc(max(20px, min(30px, 3vw)));
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

@media (hover: hover) {
    .zone-card:hover {
        border-color: var(--cyan);
        box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
    }
}

.zone-card.active {
    border-color: var(--cyan);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.25);
}

.zone-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.zone-name {
    font-size: calc(max(1.2rem, min(1.6rem, 3vw)));
    font-weight: 700;
    font-family: 'Outfit';
}

.zone-status {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 700;
}

.zone-status.active {
    background: rgba(0, 255, 157, 0.15);
    color: var(--green);
    border: 1px solid var(--green);
}

.zone-status.idle {
    background: rgba(113, 113, 113, 0.15);
    color: var(--text-dim);
    border: 1px solid var(--text-dim);
}

.zone-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

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

.zone-stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.zone-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Outfit';
}

.zone-stat-value.green {
    color: var(--green);
}

.zone-stat-value.yellow {
    color: var(--yellow);
}

/* FIXED: Zone PIN - now flows naturally in layout */
.zone-pin {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

/* Zone Detail View */
.zone-detail-view {
    display: none;
}

.zone-detail-view.active {
    display: block;
}

/* Station Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(max(15px, min(25px, 2vw)));
    margin-bottom: 45px;
}

.station {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    /* Name the properties that actually animate. `all` made every incidental
       change (layout, colours, size) start a 300ms transition on the card, and
       transitions on geometry force a full repaint of the card each frame. */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease, opacity 0.25s ease;
    position: relative;
    overflow: hidden;
}

.station.allow-drag {
    cursor: move;
}

.station.dragging {
    opacity: 0.4;
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.6);
    z-index: 1000;
}

.station.drag-over {
    border: 3px dashed var(--cyan);
    transform: scale(1.02);
}

.station.active-blue {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.3);
}

.station.warning-yellow {
    border-color: rgba(255, 157, 0, 0.5);
    box-shadow: 0 0 25px rgba(255, 157, 0, 0.3);
}

@keyframes flashRed {

    0%,
    100% {
        border-color: var(--red);
        box-shadow: 0 0 30px rgba(255, 59, 59, 0.5);
    }

    50% {
        border-color: #333;
        box-shadow: none;
    }
}

.station.flashing-red {
    animation: flashRed 0.8s infinite;
}

.station-header {
    padding: calc(max(15px, min(25px, 2vw)));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
}

.station-name {
    font-size: calc(max(1.5rem, min(2rem, 3vw)));
    font-weight: 700;
    font-family: 'Outfit';
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.total-amount {
    font-size: calc(max(1.4rem, min(1.8rem, 2.5vw)));
    font-weight: 700;
    text-align: right;
}

.total-amount span {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-left: 6px;
}

.station-unpaid-value,
.station-total-value {
    display: inline-block;
}

.total-amount .station-total-value {
    font-size: inherit;
    color: inherit;
    margin-left: 0;
}

.status-bar {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.timer-display {
    font-weight: 700;
    font-size: 1.1rem;
}

.timer-display.cyan {
    color: var(--cyan);
}

.timer-display.yellow {
    color: #ff9d00;
}

.timer-display.red {
    color: var(--red);
}

.station-content {
    flex-grow: 1;
    padding: calc(max(20px, min(30px, 3vw)));
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.session-dots {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

/* Session dots with animations */
.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
}

.dot.green {
    background: var(--green);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
    
}

.dot.dark {
    border: 2px solid #666;
    background: transparent;
   
}

.dot.removing {
    animation: shrinkOut 0.3s forwards;
}

.dot.adding {
    animation: popIn 0.3s forwards;
}

/* Animation for green dots (confirmed sessions) */
@keyframes pulseGreen {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 255, 157, 0.9);
        transform: scale(1.1);
    }
}

/* Animation for dark dots (active sessions) */
@keyframes pulseDark {

    0%,
    100% {
        border-color: #333;
        box-shadow: none;
    }

    50% {
        border-color: #555;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    }
}

/* Animation for adding a new dot */
@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}



/* Animation for removing a dot */
@keyframes shrinkOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Timer pulse animations */
@keyframes timerPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.timer-display.cyan {
    animation: timerPulse 3s infinite;
}

.timer-display.yellow {
    animation: timerPulse 1.5s infinite;
}

.timer-display.red {
    animation: timerPulse 0.8s infinite;
}

.no-games {
    color: #555;
    font-size: 0.9rem;
    width: 100%;
    text-align: left;
    font-family: 'Outfit';
    font-weight: 600;
}

.station-footer {
    padding: calc(max(15px, min(25px, 2vw)));
    border-top: 1px solid var(--border);
}

.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.action-btn {
    background: transparent;
    border: 1px solid #222;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    height: 48px;
    font-size: 0.95rem;
    transition: all 0.3s;
    gap: 8px;
}

@media (hover: hover) {
    .action-btn:hover {
        background: #1a1a1a;
        border-color: #444;
        transform: translateY(-2px);
    }
}

.action-btn i {
    width: 20px;
    height: 20px;
}

.action-btn.primary {
    background: var(--cyan);
    color: #000;
    border: none;
    font-weight: bold;
}

@media (hover: hover) {
    .action-btn.primary:hover {
        background: #00cce6;
        box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
    }
}

/* Console badges */
.console-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 800;
    font-family: 'Outfit';
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
}

.console-badge.ps4 {
    background: #333;
    color: #aaa;
    border: 1px solid #444;
}

.console-badge.ps5 {
    background: #001a66;
    color: #fff;
    border: 1px solid var(--ps5-blue);
}


/* --- SIDEBAR (Aggregate Stats) - SCROLLABLE VERSION --- */
.sidebar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: calc(max(20px, min(30px, 3vw)));
    /* Remove height and overflow */
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Add these for better spacing */
    align-self: start;
    width: 100%;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.3s;
}

@media (hover: hover) {
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Ensure content inside sidebar doesn't overflow */
.sidebar>* {
    flex-shrink: 0;
}

/* Zone summary section inside sidebar */
.zone-summary-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-title {
    color: var(--cyan);
    font-family: 'Space Grotesk';
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-left: 4px solid var(--cyan);
    padding-left: 12px;
}

.total-rev-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.total-rev-amt {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Space Grotesk';
    line-height: 1;
    margin: 10px 0;
}

.total-rev-amt span {
    color: var(--cyan);
    font-size: 1rem;
    margin-left: 8px;
}

.top-zones {
    margin-top: 30px;
}

.top-zone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #222;
    transition: background 0.3s;
}

@media (hover: hover) {
    .top-zone-item:hover {
        background: rgba(255, 255, 255, 0.03);
    }
}

.top-zone-item:last-child {
    border-bottom: none;
}

/* Zone Summary Section for better targeting */
.zone-summary-section {
    /* This class can be added to the sidebar for better targeting */
}

/* --- VIEWS --- */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* --- WORKER KIOSK MODE --- */
.kiosk-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 25px;
    text-align: center;
    margin-bottom: 35px;
}

.kiosk-zone-name {
    font-size: 2rem;
    font-family: 'Space Grotesk';
    color: var(--cyan);
}

.kiosk-time {
    font-size: 1rem;
    color: var(--text-dim);
    margin-top: 8px;
}

/* --- HISTORY VIEW (Multi-Zone) --- */
.hist-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(max(15px, min(25px, 2vw)));
    margin-bottom: 40px;
}

.hist-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: calc(max(15px, min(25px, 2vw)));
    height: 350px;
    position: relative;
}

.hist-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cyan);
    font-family: 'Space Grotesk';
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.chart-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 25px;
    border-left: 1px solid #222;
    border-bottom: 1px solid #222;
}

.chart-bar {
    background: linear-gradient(to top, var(--cyan), #00a3cc);
    width: 100%;
    min-height: 2px;
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

@media (hover: hover) {
    .chart-bar:hover {
        box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
    }
}

.chart-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
}

.chart-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--cyan);
    opacity: 0;
    transition: 0.3s;
    font-weight: 600;
}

.chart-bar:hover .chart-value,
.chart-bar.tapped .chart-value {
    opacity: 1;
}

.hist-bottom-grid {
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    gap: calc(max(20px, min(40px, 3vw)));
    margin-top: 20px;
}

/* ========== ENHANCED HISTORY HEADER & ZONE FILTER ========== */
.history-header {
    background: linear-gradient(145deg, rgba(0, 229, 255, 0.15) 0%, rgba(0, 0, 0, 0) 80%);
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 229, 255, 0.2);
    padding: 30px 0;
    margin-bottom: 40px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.history-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.analytics-badge {
    background: linear-gradient(135deg, var(--cyan) 0%, #00a3cc 100%);
    color: #000;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.analytics-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.6);
}

.zone-filter {
    display: flex;
    gap: 8px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.zone-filter-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.zone-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, transparent 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.zone-filter-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}
.zone-filter-btn:hover::before {
    width: 200px;
    height: 200px;
}


@media (hover: hover) {
    .zone-filter-btn:hover {
        border-color: var(--cyan);
        color: white;
    }
}

.zone-filter-btn.active {
    background: linear-gradient(135deg, var(--cyan) 0%, #00a3cc 100%);
    color: black;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.zone-filter-btn.active::before {
    display: none;
}

.zone-filter-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.zone-filter-btn:hover i {
    transform: scale(1.1);
}

/* Calendar Styles */
.calendar-container {
    width: 100%;
    padding: 15px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-nav-btn {
    background: #111;
    border: 1px solid #333;
    color: var(--cyan);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

@media (hover: hover) {
    .calendar-nav-btn:hover {
        background: #1a1a1a;
        border-color: var(--cyan);
    }
}

.calendar-month-year {
    font-family: 'Space Grotesk';
    font-size: 1.5rem;
    color: var(--cyan);
    margin: 10px 0;
    padding: 8px 15px;
    background: rgba(0, 229, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 8px;
    font-weight: 600;
}

.calendar-day {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    background: #111;
    border: 1px solid #222;
}

@media (hover: hover) {
    .calendar-day:hover {
        background: #1a1a1a;
    }
}

.calendar-day.selected {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.calendar-day.today {
    border-color: var(--green);
    background: rgba(0, 255, 157, 0.1);
}

.calendar-day.has-revenue {
    background: rgba(0, 229, 255, 0.1);
}


.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

@media (hover: hover) {
    .calendar-day.empty:hover {
        background: transparent;
    }
}

/* --- MODALS --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.modal-content {
    background: #0f0f0f;
    border: 1px solid #333;
    padding: calc(max(25px, min(50px, 5vw)));
    border-radius: 25px;
    width: 100%;
    max-width: 550px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.save-btn {
    background: var(--cyan);
    color: #000;
    border: none;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    font-weight: 800;
    cursor: pointer;
    margin-top: 30px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

@media (hover: hover) {
    .save-btn:hover {
        background: #00cce6;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 229, 255, 0.3);
    }
}

.close-modal-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.3s;
}

@media (hover: hover) {
    .close-modal-btn:hover {
        color: white;
    }
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

#pinDisplay {
    font-size: 2.5rem;
    letter-spacing: 12px;
    color: var(--cyan);
    margin: 30px 0;
    font-family: 'Space Grotesk';
    min-height: 50px;
    padding: 10px;
    background: rgba(0, 229, 255, 0.05);
    border-radius: 10px;
}

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

.pin-btn {
    background: #1a1a1a;
    color: white;
    border: 1px solid #333;
    padding: 20px;
    font-size: 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

@media (hover: hover) {
    .pin-btn:hover {
        background: #222;
        transform: translateY(-3px);
    }
}

/* --- BOTTOM SECTION --- */
.bottom-section {
    display: flex;
    flex-direction: column;
    gap: calc(max(20px, min(35px, 3vw)));
    border-top: 1px solid #111;
    padding-top: 40px;
    margin-top: 50px;
}

.section-title {
    color: var(--cyan);
    font-family: 'Space Grotesk';
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    border-left: 4px solid var(--cyan);
    padding-left: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* FIXED: Inventory grid - no longer scrollable */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(max(15px, min(25px, 2vw)));
}

.inventory-grid::-webkit-scrollbar {
    width: 6px;
}

.inventory-grid::-webkit-scrollbar-track {
    background: transparent;
}

.inventory-grid::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.inv-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: clamp(12px, 2vw, 30px);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (hover: hover) {
    .inv-card:hover {
        border-color: var(--cyan);
    }
}

.inv-header {
    display: flex;
    gap: clamp(8px, 1.5vw, 20px);
    align-items: center;
    margin-bottom: clamp(8px, 1.2vw, 20px);
}

.inv-card.enabled {
    border-color: var(--cyan);
}

.inv-card.disabled {
    opacity: 0.6;
    border-color: #444;
}

.inv-card .inv-header > div:last-child div:first-child {
    font-size: clamp(0.7rem, 1.1vw, 1.1rem);
}

.inv-card .inv-header > div:last-child div:nth-child(2) {
    font-size: clamp(0.6rem, 0.9vw, 0.9rem);
}

.stock-management {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: clamp(6px, 1vw, 15px);
    margin-top: clamp(6px, 1vw, 15px);
}

.stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(4px, 0.6vw, 10px);
}

.stock-label {
    font-size: clamp(0.55rem, 0.8vw, 0.85rem);
    color: var(--text-dim);
}

.stock-value {
    font-weight: 700;
    font-size: clamp(0.7rem, 1vw, 1.1rem);
}

.qty-control {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #000;
    padding: clamp(6px, 1.2vw, 15px) clamp(8px, 1.5vw, 20px);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: clamp(6px, 1vw, 15px);
    gap: clamp(6px, 1vw, 12px);
}

.qty-control > span:first-child {
    font-size: clamp(0.5rem, 0.7vw, 0.75rem);
}

.qty-control > div {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    flex-shrink: 0;
}

.qty-control > div > span {
    font-weight: 800;
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
    min-width: clamp(24px, 3vw, 50px);
    text-align: center;
}

.inv-card .inventory-decrease-btn,
.inv-card .inventory-increase-btn {
    width: clamp(22px, 2.5vw, 36px) !important;
    height: clamp(22px, 2.5vw, 36px) !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.7rem, 1vw, 1.2rem);
    padding: 0 !important;
    min-width: clamp(22px, 2.5vw, 36px) !important;
}

.inventory-decrease-btn i,
.inventory-increase-btn i,
.inventory-decrease-btn svg,
.inventory-increase-btn svg {
    width: clamp(12px, 1.2vw, 20px) !important;
    height: clamp(12px, 1.2vw, 20px) !important;
}

.rev-card-dash {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 45px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rev-amt {
    font-size: 5.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk';
    line-height: 1;
}

.rev-amt span {
    color: var(--cyan);
    font-size: 1.6rem;
    margin-left: 15px;
}

.coin-bg {
    position: absolute;
    right: -20px;
    bottom: -30px;
    opacity: 0.05;
    transform: rotate(-10deg);
    color: #717171;
    pointer-events: none;
    font-size: 250px !important;
}

/* --- CUSTOMIZE VIEW --- */
.cust-section {
    margin-bottom: 60px;
}

.cust-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--cyan);
    font-family: 'Space Grotesk';
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 35px;
    border-left: 5px solid var(--cyan);
    padding-left: 20px;
}

.cust-add-btns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.cust-add-btns button {
    flex: 1;
    padding: 22px;
    font-size: 1.1rem;
    font-weight: bold;
}

.cust-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(max(15px, min(25px, 2vw)));
}

/* Sync button styles */
.sync-btn {
    background: transparent;
    border: 1px solid #333;
    color: var(--cyan);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.sync-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.sync-btn i {
    transition: transform 0.3s ease;
}

.sync-btn.syncing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FIXED: Removed the long button styling from .cust-reorder-option */
.cust-note {
    font-size: 0.9rem;
    color: var(--red);
    margin-top: 25px;
    font-style: italic;
}

/* --- INVENTORY MANAGEMENT --- */
.inventory-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(max(15px, min(20px, 2vw)));
}

.inventory-item-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
}

@media (hover: hover) {
    .inventory-item-card:hover {
        border-color: var(--cyan);
    }
}

.inventory-item-card.enabled {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.inventory-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.inventory-item-icon {
    width: 50px;
    height: 50px;
    background: #111;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #222;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: var(--cyan);
}

input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

/* --- ADD ZONE MODAL --- */
.zone-form {
    text-align: left;
}

/* ========== ENHANCED PRICING SECTION STYLES ========== */
.pricing-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(max(15px, min(25px, 2vw)));
    margin-bottom: 40px;
}

.pricing-card.enhanced {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: calc(max(15px, min(25px, 2vw)));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {
    .pricing-card.enhanced:hover {
        border-color: var(--cyan);
        box-shadow: 0 15px 35px rgba(0, 229, 255, 0.1);
    }
}

.pricing-card.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--ps5-blue));
    opacity: 0;
    transition: opacity 0.3s;
}

@media (hover: hover) {
    .pricing-card.enhanced:hover::before {
        opacity: 1;
    }
}

.pricing-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-icon-container {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== COIN MANAGEMENT SECTION SPACING ========== */
.coin-management-section {
    margin-bottom: 40px !important;
}

/* Add spacing after the coin management card */
.pricing-card.enhanced:has(#coinBalanceDisplay) {
    margin-bottom: 30px !important;
}

/* Alternative: Add spacing to the section that follows coin management */
#zoneSpecificCustomize .cust-section:first-of-type {
    margin-top: 20px;
}

/* Create a visible separator between sections */
.coin-management-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), var(--orange), transparent);
    margin: 30px 0 40px 0;
    opacity: 0.3;
    border-radius: 2px;
    position: relative;
}

/* Add 📦 emoji in the middle */
.coin-management-separator::after {
    content: '📦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 0 20px;
    color: var(--purple);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* ========== INVENTORY-BANKING SEPARATOR ========== */
.inventory-banking-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), var(--orange), transparent);
    margin: 40px 0 40px 0;
    opacity: 0.3;
    border-radius: 2px;
    position: relative;
}

/* Add 📱 emoji in the middle for mobile banking */
.inventory-banking-separator::after {
    content: '📱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 0 20px;
    color: var(--purple);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Alternative: Use 💳 emoji for banking */
.inventory-banking-separator.bank::after {
    content: '💳';
}

/* Alternative: Use 📲 emoji for mobile */
.inventory-banking-separator.mobile::after {
    content: '📲';
}

/* ========== BANKING-PIN SEPARATOR ========== */
.banking-pin-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--orange), var(--purple), transparent);
    margin: 40px 0 40px 0;
    opacity: 0.3;
    border-radius: 2px;
    position: relative;
}

/* Add 🔐 emoji in the middle for PIN security */
.banking-pin-separator::after {
    content: '🔐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 0 20px;
    color: var(--orange);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Alternative: Use 🔑 emoji for keys */
.banking-pin-separator.key::after {
    content: '🔑';
}

/* Alternative: Use 🛡️ emoji for security */
.banking-pin-separator.shield::after {
    content: '🛡️';
}

/* ========== PIN-DANGER SEPARATOR ========== */
.pin-danger-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--red), var(--orange), transparent);
    margin: 40px 0 40px 0;
    opacity: 0.3;
    border-radius: 2px;
    position: relative;
}

/* Add ⚠️ emoji in the middle for danger warning */
.pin-danger-separator::after {
    content: '⚠️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 0 20px;
    color: var(--red);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Alternative: Use 🚨 emoji for alert */
.pin-danger-separator.alert::after {
    content: '🚨';
}

/* Alternative: Use 🔥 emoji for hot/dangerous */
.pin-danger-separator.fire::after {
    content: '🔥';
}

/* ========== DANGER-SUBSCRIPTION SEPARATOR ========== */
.danger-subscription-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), var(--purple), var(--cyan), transparent);
    margin: 40px 0 40px 0;
    opacity: 0.3;
    border-radius: 2px;
    position: relative;
}

/* Add 💳 emoji in the middle for subscription/billing */
.danger-subscription-separator::after {
    content: '💳';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 0 20px;
    color: var(--purple);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Alternative: Use 👑 emoji for premium/subscription */
.danger-subscription-separator.crown::after {
    content: '👑';
}

/* Alternative: Use 📋 emoji for billing */
.danger-subscription-separator.billing::after {
    content: '📋';
}

.ps4-bg {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    border: 1px solid #444;
}

.ps5-bg {
    background: linear-gradient(135deg, #001a66 0%, #0043ff 100%);
    border: 1px solid var(--ps5-blue);
}

/* ========== PRICING-COIN SEPARATOR ========== */
.pricing-coin-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), #ffd700, var(--orange), transparent);
    margin: 40px 0 40px 0;
    opacity: 0.3;
    border-radius: 2px;
    position: relative;
}

/* Optional: Add a little coin emoji in the middle */
.pricing-coin-separator::after {
    content: '🪙';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 0 20px;
    color: #ffd700;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Alternative: Different emoji options */
.pricing-coin-separator.dollar::after {
    content: '💰';
}

.pricing-coin-separator.cash::after {
    content: '💵';
}

/* Simple version without emoji */
.pricing-coin-separator.simple {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 30px 0;
    opacity: 0.2;
}/* ========== STATIONS-PRICING SEPARATOR ========== */
.stations-pricing-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--ps5-blue), var(--green), transparent);
    margin: 40px 0 40px 0;
    opacity: 0.3;
    border-radius: 2px;
    position: relative;
}

/* Optional: Add a little decorative element */
.stations-pricing-separator::after {
    content: '⚡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 0 20px;
    color: var(--cyan);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Alternative simpler version without the emoji */
.stations-pricing-separator.simple {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    margin: 30px 0;
    opacity: 0.2;
}

.inventory-bg {
    background: linear-gradient(135deg, #0a2a0a 0%, #1a5a1a 100%);
    border: 1px solid var(--green);
}

.pricing-title {
    flex: 1;
}

.pricing-title h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.pricing-subtitle {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 400;
}

.inventory-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    background: var(--green);
    color: #000;
    font-family: 'Outfit';
    letter-spacing: 0.5px;
}

.pricing-input-group {
    margin-bottom: 20px;
}

.pricing-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-symbol {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--cyan);
    font-family: 'Space Grotesk';
    min-width: 70px;
    text-align: center;
}

.pricing-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Space Grotesk';
    color: var(--text-main);
    transition: all 0.3s;
}

.pricing-input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.input-hint {
    font-size: 0.85rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.rate-presets {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

@media (hover: hover) {
    .preset-btn:hover {
        background: rgba(0, 229, 255, 0.1);
        border-color: var(--cyan);
        color: var(--cyan);
    }
}

.pricing-stats {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.stat-item i {
    color: var(--cyan);
}



.settings-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.settings-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-icon i {
    color: var(--cyan);
}

.settings-content {
    flex: 1;
}

.settings-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

.settings-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.4;
}

/* FIXED: Made settings option more compact */
.settings-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

@media (hover: hover) {
    .settings-option:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(0, 229, 255, 0.2);
    }
}

.option-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.option-info i {
    color: var(--cyan);
    flex-shrink: 0;
}

.option-text {
    flex: 1;
}

.option-info h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-main);
}

.option-info p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.3;
}

/* FIXED: Made toggle switch more compact */
.modern-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

.modern-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.modern-toggle .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 22px;
}

.modern-toggle .toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.modern-toggle input:checked+.toggle-slider {
    background-color: var(--cyan);
}

.modern-toggle input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

/* FIXED: Made settings hint more compact */
.settings-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.3;
    margin-top: 10px;
}

.settings-hint i {
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Save Section */
.save-section {
    margin-top: 40px;
}

.save-btn-large {
    background: linear-gradient(135deg, var(--cyan) 0%, #00a3cc 100%);
    color: #000;
    border: none;
    padding: 22px 40px;
    border-radius: 15px;
    width: 100%;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s;
    font-family: 'Space Grotesk';
    letter-spacing: 1px;
}

@media (hover: hover) {
    .save-btn-large:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(0, 229, 255, 0.3);
        background: linear-gradient(135deg, #00e5ff 0%, #008fb3 100%);
    }
}

.warning-note {
    background: rgba(255, 59, 59, 0.05);
    border: 1px solid rgba(255, 59, 59, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--red);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.warning-note p {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    line-height: 1.5;
}

.warning-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.warning-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stock management styles */
.stock-management {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stock-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.stock-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.restock-btn {
    background: var(--green);
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (hover: hover) {
    .restock-btn:hover {
        background: #00e68a;
    }
}

.stock-warning {
    color: var(--red);
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-ok {
    color: var(--green);
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Fix for selected date in history */
#histSelectedDate {
    font-family: 'Space Grotesk';
    font-size: 1.6rem;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

/* ========== FIXED INVENTORY BUTTONS ========== */
.inventory-decrease-btn,
.inventory-increase-btn {
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--cyan);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    font-weight: 800;
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {

    .inventory-decrease-btn:hover,
    .inventory-increase-btn:hover {
        background: rgba(0, 229, 255, 0.25);
        border-color: var(--cyan);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 229, 255, 0.25);
    }
}

.inventory-decrease-btn:active,
.inventory-increase-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.2);
}

.inventory-decrease-btn:disabled,
.inventory-increase-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Qty control container */
.qty-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.qty-control>span:first-child {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qty-control>div {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qty-control>div>span {
    font-weight: 800;
    font-size: 1.5rem;
    min-width: 50px;
    text-align: center;
    font-family: 'Space Grotesk';
    color: white;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* ========== CONNECTION STATUS ========== */
#connectionStatus {
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

#connectionStatus.connected {
    border-color: var(--green);
    color: var(--green);
}

#connectionStatus.disconnected {
    border-color: var(--red);
    color: var(--red);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ========== NETWORK UPLINK ==========
   The sidebar instrument that answers "is this kiosk actually talking to the
   server, and how well": a measured round-trip time, the transport carrying
   live events, and what is queued while the link is down. The border tint is
   an inset ring rather than a border so the compact kiosk passes, which set
   their own border and background, keep the state colour. */
.network-bar {
    margin-top: 15px;
    padding: 12px 14px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: grid;
    gap: 8px;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.network-bar.is-on {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(0, 229, 255, 0.16);
}

.network-bar.is-warn {
    background: rgba(255, 140, 0, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(255, 159, 67, 0.26);
}

.network-bar.is-off {
    background: rgba(255, 59, 59, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(255, 59, 59, 0.26);
}

.network-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.network-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7fa3ad;
}

.network-bar-label svg {
    width: 12px;
    height: 12px;
}

.network-bar-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #8b96a8;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.network-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

.network-bar-status.is-on {
    color: #4ee7a4;
    border-color: rgba(0, 255, 157, 0.3);
    background: rgba(0, 255, 157, 0.07);
}

.network-bar-status.is-warn {
    color: #ffb46b;
    border-color: rgba(255, 140, 0, 0.32);
    background: rgba(255, 140, 0, 0.08);
}

.network-bar-status.is-off {
    color: #ff8f8f;
    border-color: rgba(255, 59, 59, 0.34);
    background: rgba(255, 59, 59, 0.08);
}

.network-bar-status.is-idle {
    color: #8b96a8;
}

.network-signal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.network-bar-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
    flex: 0 0 auto;
}

.net-bar {
    width: 4px;
    border-radius: 2px 2px 1px 1px;
    background: rgba(255, 255, 255, 0.09);
    transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.net-bar[data-level="1"] {
    height: 7px;
}

.net-bar[data-level="2"] {
    height: 11px;
}

.net-bar[data-level="3"] {
    height: 15px;
}

.net-bar[data-level="4"] {
    height: 19px;
}

.net-bar[data-level="5"] {
    height: 24px;
}

.net-bar.on {
    background: linear-gradient(180deg, #baf9ff, #00e5ff);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.45);
}

.net-bar.warn {
    background: linear-gradient(180deg, #ffd9a8, #ff9f43);
    box-shadow: 0 0 8px rgba(255, 159, 67, 0.4);
    animation: barPulse 1.4s ease-in-out infinite;
}

.net-bar.off {
    background: linear-gradient(180deg, #ffb3b3, #ff5a5a);
    box-shadow: none;
}

.network-readout {
    display: grid;
    gap: 1px;
    justify-items: end;
    min-width: 0;
}

.network-latency {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #eaf6fb;
    white-space: nowrap;
}

.network-latency em {
    margin-left: 2px;
    font-size: 0.5rem;
    font-style: normal;
    letter-spacing: 0.08em;
    color: #7f8b9c;
}

.network-bar.is-warn .network-latency {
    color: #ffd2a0;
}

.network-bar.is-off .network-latency {
    color: #ffb3b3;
}

.network-quality {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.46rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7f8b9c;
    white-space: nowrap;
}

.network-retry {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #7f8b9c;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.network-retry svg {
    width: 13px;
    height: 13px;
}

.network-retry:hover {
    color: #8ef4ff;
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.08);
}

.network-retry:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 2px;
}

.network-retry.is-checking {
    color: #8ef4ff;
    border-color: rgba(0, 229, 255, 0.4);
}

.network-retry.is-checking svg {
    animation: spin 0.9s linear infinite;
}

.network-detail {
    margin: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.54rem;
    letter-spacing: 0.04em;
    color: #7f8b9c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.network-bar.is-off .network-detail {
    color: #ff9b9b;
}

@keyframes barPulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .net-bar.warn {
        animation: none;
    }

    .network-retry.is-checking svg {
        animation: none;
    }
}

/* ========== KIOSK CALCULATOR ========== */
.kiosk-calculator {
    margin-top: 15px;
    padding: 12px;
    background: #111;
    border-radius: 12px;
    border: 1px solid #222;
}
.calc-display {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 1.1rem;
    text-align: right;
    color: #fff;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    min-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.calc-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    padding: 7px 2px;
    font-size: 0.85rem;
    color: #ccc;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
    font-family: inherit;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}
.calc-btn:hover { background: #2a2a2a; }
.calc-btn:active { background: #333; transform: scale(0.95); }
.calc-num { color: #e0e0e0; }
.calc-op { color: #00ff9d; }
.calc-clear { color: #ff6b6b; font-weight: 600; }
.calc-bs { color: #ffa500; font-weight: 600; }
.calc-eq {
    background: #00ff9d;
    color: #000;
    font-weight: 700;
    border-color: #00ff9d;
    grid-column: 1 / 4;
}
.calc-eq:hover { background: #00cc7a; }
.calc-eq:active { background: #009955; transform: scale(0.95); }
.calc-bs {
    grid-column: 4 / 5;
}
.calc-btn[data-calc="*"],
.calc-btn[data-calc="+"] {
    font-size: 1.1rem;
    padding: 7px 4px;
}

/* Tablet compact calculator */
@media (max-width: 1365px) {
    .kiosk-calculator { padding: 8px; }
    .calc-display { font-size: 0.85rem; padding: 4px 6px; }
    .calc-btn { padding: 4px 2px; font-size: 0.7rem; }
}

/* ========== TIMER ANIMATIONS ========== */
@keyframes timerCritical {

    0%,
    100% {
        color: #ff9d00;
        text-shadow: 0 0 10px rgba(255, 157, 0, 0.7);
    }

    50% {
        color: #ff6b00;
        text-shadow: 0 0 15px rgba(255, 107, 0, 0.9);
    }
}

@keyframes timerExpired {

    0%,
    100% {
        color: var(--red);
        text-shadow: 0 0 10px rgba(255, 59, 59, 0.7);
    }

    50% {
        color: #ff2a2a;
        text-shadow: 0 0 20px rgba(255, 42, 42, 1);
    }
}

.timer-display.yellow {
    animation: timerCritical 1.5s infinite;
}

.timer-display.red {
    animation: timerExpired 0.8s infinite;
}

/* ========== SESSION DOT STATES ========== */
/* A confirm that is already green on screen but not yet acknowledged by the
   server: a quick pop when it turns green, then a slow breathing glow. */
@keyframes confirmTransition {
    0% {
        transform: scale(0.6);
        box-shadow: 0 0 0 rgba(0, 255, 157, 0);
    }

    60% {
        transform: scale(1.25);
        box-shadow: 0 0 18px rgba(0, 255, 157, 0.85);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
    }
}

.dot.confirming {
    animation: confirmTransition 0.5s forwards, pulseGreen 2s 0.5s ease-in-out infinite;
}

.dot.activating {
    animation: activateTransition 0.5s forwards;
}

/* ========== DAY MANAGEMENT BUTTONS FOR MOBILE & TABLET ========== */
/* Base styling for day management buttons */
.day-management-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
    width: 100%;
}

/* Ensure buttons are visible and properly sized on all devices */
.day-management-buttons button {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    min-height: 52px;
}

@media (hover: hover) {
    .day-management-buttons button:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

.day-management-buttons button:active {
    transform: translateY(0);
}

.day-management-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Save button */
#saveDayBtn {
    background: var(--green);
    color: black;
}

@media (hover: hover) {
    #saveDayBtn:hover {
        background: #00e68a;
    }
}

/* Reset button */
#resetDayBtn {
    background: var(--red);
    color: white;
}

@media (hover: hover) {
    #resetDayBtn:hover {
        background: #ff2a2a;
    }
}

/* Info text */
.day-management-buttons .info-text {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

/* ========== STATION SESSION COUNTS ROW ========== */
.session-counts-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
}

.session-count-left {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.session-count-right {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

/* ========== ADMIN STYLES ========== */
/* Admin login button */
.auth-action-btn.red {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

@media (hover: hover) {
    .auth-action-btn.red:hover {
        background: #ff2a2a;
    }
}

/* Admin panel */
.admin-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: calc(max(20px, min(30px, 3vw)));
    margin-top: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.admin-header h2 {
    font-family: 'Space Grotesk';
    color: var(--red);
    font-size: 1.8rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(max(15px, min(20px, 2vw)));
    margin-bottom: 30px;
}

.stat-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cyan);
    margin: 10px 0;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* User management table */
.user-table-container {
    overflow-x: auto;
    margin-top: 30px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: #0a0a0a;
}

.user-table th {
    background: #111;
    color: var(--text-dim);
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--border);
    font-family: 'Outfit';
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Outfit';
    vertical-align: middle;
}

@media (hover: hover) {
    .user-table tr:hover {
        background: rgba(255, 255, 255, 0.02);
    }
}

/* Status badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-badge.pending {
    background: rgba(255, 140, 0, 0.15);
    color: var(--orange);
    border: 1px solid var(--orange);
}

.status-badge.approved {
    background: rgba(0, 255, 157, 0.15);
    color: var(--green);
    border: 1px solid var(--green);
}

.status-badge.blocked {
    background: rgba(255, 59, 59, 0.15);
    color: var(--red);
    border: 1px solid var(--red);
}

.status-badge.admin {
    background: rgba(155, 77, 255, 0.15);
    color: var(--purple);
    border: 1px solid var(--purple);
}

/* Action buttons */
.btn-small {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    font-family: 'Outfit';
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 2px;
}

.btn-small.approve {
    background: rgba(0, 255, 157, 0.15);
    color: var(--green);
    border: 1px solid var(--green);
}

@media (hover: hover) {
    .btn-small.approve:hover {
        background: rgba(0, 255, 157, 0.25);
    }
}

.btn-small.block {
    background: rgba(255, 59, 59, 0.15);
    color: var(--red);
    border: 1px solid var(--red);
}

@media (hover: hover) {
    .btn-small.block:hover {
        background: rgba(255, 59, 59, 0.25);
    }
}

.btn-small.unblock {
    background: rgba(0, 229, 255, 0.15);
    color: var(--cyan);
    border: 1px solid var(--cyan);
}

@media (hover: hover) {
    .btn-small.unblock:hover {
        background: rgba(0, 229, 255, 0.25);
    }
}

.btn-small.make-admin {
    background: rgba(155, 77, 255, 0.15);
    color: var(--purple);
    border: 1px solid var(--purple);
}

@media (hover: hover) {
    .btn-small.make-admin:hover {
        background: rgba(155, 77, 255, 0.25);
    }
}

.btn-small.remove-admin {
    background: rgba(255, 140, 0, 0.15);
    color: var(--orange);
    border: 1px solid var(--orange);
}

@media (hover: hover) {
    .btn-small.remove-admin:hover {
        background: rgba(255, 140, 0, 0.25);
    }
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    background: #111;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.admin-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit';
    transition: all 0.3s;
    font-size: 0.9rem;
}

@media (hover: hover) {
    .admin-tab:hover {
        background: #1a1a1a;
        color: white;
    }
}

.admin-tab.active {
    background: #1a1a1a;
    color: white;
    border: 1px solid #333;
}

/* Admin filters */
.admin-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    background: #111;
    color: white;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Outfit';
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
}

/* Log viewer */
.log-entry {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.log-time {
    color: var(--cyan);
    font-weight: 600;
}

.log-action {
    color: var(--text-main);
    margin-left: 10px;
}

.log-details {
    color: var(--text-dim);
    margin-top: 5px;
    font-size: 0.8rem;
}

/* ========== ADMIN MAIN MENU STYLES ========== */
.admin-main-menu {
    margin: 30px 0;
    padding: 20px 0;
}

.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(max(15px, min(25px, 2vw)));
    margin-bottom: 40px;
}

.admin-menu-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: calc(max(20px, min(30px, 3vw)));
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border: none;
}

@media (hover: hover) {
    .admin-menu-card:hover {
        border-color: var(--cyan);
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 229, 255, 0.1);
    }
}

.admin-menu-card:active {
    transform: translateY(-2px);
}

.menu-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.menu-icon i {
    color: var(--cyan);
}

.admin-menu-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.admin-menu-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
}

/* ========== ADMIN BACK BUTTON ========== */
.admin-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-family: 'Outfit';
    transition: all 0.3s;
}

@media (hover: hover) {
    .admin-back-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--cyan);
        color: var(--cyan);
    }
}

/* ========== ANALYTICS TAB STYLES ========== */
#adminAnalyticsTab {
    padding: 20px 0;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(max(15px, min(25px, 2vw)));
    margin-bottom: 40px;
}

.analytics-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: calc(max(15px, min(25px, 2vw)));
}

.analytics-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-value-large {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Space Grotesk';
    color: var(--text-main);
    margin: 10px 0;
}

.stat-value-large span {
    font-size: 1rem;
    color: var(--cyan);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== HIDE UNNECESSARY ELEMENTS FOR ADMIN ========== */
.admin-panel .nav-tabs,
.admin-panel .zone-selector,
.admin-panel .active-sessions-wrapper,
.admin-panel #addZoneBtn {
    display: none !important;
}



/* Bank Transfers Modal */
#bankTransfersModal .modal-content {
    background: var(--bg);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 25px;
    animation: slideUp 0.3s ease;
}

#allTransfersList::-webkit-scrollbar {
    width: 6px;
}

#allTransfersList::-webkit-scrollbar-track {
    background: #111;
    border-radius: 3px;
}

#allTransfersList::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

@media (hover: hover) {
    #allTransfersList::-webkit-scrollbar-thumb:hover {
        background: #444;
    }
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.8rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

@media (hover: hover) {
    .close-modal-btn:hover {
        background: #222;
        color: white;
    }
}

/* Delete button styles */
.delete-transfer-btn {
    background: var(--red) !important;
    color: white !important;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
    min-width: 80px;
}

@media (hover: hover) {
    .delete-transfer-btn:hover {
        background: #ff4444 !important;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(255, 0, 0, 0.2);
    }
}

.delete-transfer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Spin animation for delete button */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* History transfers styling */
#histTransfersList {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 8px;
}

#histTransfersList::-webkit-scrollbar {
    width: 6px;
}

#histTransfersList::-webkit-scrollbar-track {
    background: #111;
    border-radius: 3px;
}

#histTransfersList::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

@media (hover: hover) {
    #histTransfersList::-webkit-scrollbar-thumb:hover {
        background: #444;
    }
}

.banking-history-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .banking-history-card:hover {
        border-color: #333;
    }
}

.banking-history-card h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-day.has-bank-transfers {
    position: relative;
}

.calendar-day-bank-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--purple);
    color: white;
    border-radius: 10px;
    padding: 2px 5px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.calendar-day-bank-indicator i {
    opacity: 0.8;
}

/* ========== TOUCH FIXES FOR TABLET ========== */
/* Improve touch target size and feedback */
.action-btn,
.nav-btn,
.confirm-btn,
.prompt-btn,
.auth-btn,
.auth-action-btn,
.reset-btn,
.preset-btn,
.admin-menu-card {
    min-height: 48px;
    /* Minimum touch target size */
    touch-action: manipulation;
    /* Disable double-tap zoom */
    -webkit-tap-highlight-color: rgba(0, 229, 255, 0.3);
    /* Touch feedback */
    user-select: none;
    /* Prevent text selection on tap */
}

/* Station action buttons specific fixes */
.btn-group .action-btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    padding: 10px;
    font-size: 0.95rem;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Inventory buttons touch fix */
.inventory-decrease-btn,
.inventory-increase-btn {
    min-width: 50px;
    min-height: 50px;
    touch-action: manipulation;
}

/* Prevent accidental dragging on touch devices */
.station {
    touch-action: pan-y;
    /* Allow vertical scrolling only */
}

/* Improve button states for touch */
.action-btn:active,
.nav-btn:active,
.confirm-btn:active,
.prompt-btn:active {
    transform: scale(0.98);
    /* Visual feedback on touch */
    transition: transform 0.1s;
}

/* Fix for iOS Safari */
input,
button,
select,
textarea {
    font-size: 16px;
    /* Prevents zoom on focus in iOS */
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 767px) {

    /* Mobile */
    body {
        padding: 10px;
    }

    .top-nav {
        gap: 15px;
        margin-bottom: 20px;
    }

    .nav-controls {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-tabs {
        flex-wrap: wrap;
        gap: 5px;
        padding: 4px;
    }

    .nav-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .zone-select {
        min-width: 150px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .active-sessions-wrapper {
        padding-left: 15px;
        min-width: auto;
    }

    .dashboard-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .sidebar {
        position: static;
        top: auto;
    }

    .hist-top-grid {
        grid-template-columns: 1fr;
    }

    .hist-bottom-grid {
        grid-template-columns: 1fr;
    }

    .bottom-section {
        grid-template-columns: 1fr;
    }

    .station-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .total-amount {
        text-align: left;
        margin-top: 10px;
    }

    .zone-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .zones-grid {
        grid-template-columns: 1fr;
    }

    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .cust-pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {

    /* Tablet Portrait */
    body {
        padding: 20px;
    }

    .dashboard-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        position: static;
    }

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

    .zones-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
    }

    .cust-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hist-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hist-bottom-grid {
        grid-template-columns: 1fr;
    }

    .bottom-section {
        grid-template-columns: 1fr;
    }

    .admin-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (orientation: landscape) {

    /* Tablet Landscape */
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .zones-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid-enhanced {
        grid-template-columns: repeat(3, 1fr);
    }

    .cust-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hist-top-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hist-bottom-grid {
        grid-template-columns: 400px 1fr;
    }

    .bottom-section {
        grid-template-columns: 2fr 1fr;
    }

    .admin-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {

    /* Desktop */
    body {
        padding: 30px;
        max-width: 1600px;
        margin: 0 auto;
    }

    .dashboard-main {
        grid-template-columns: 1fr minmax(300px, 350px);
        gap: 35px;
    }

    .sidebar {
        position: sticky;
        top: 30px;
    }

    .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 20px;
    }

    .zones-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .inventory-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pricing-grid-enhanced {
        grid-template-columns: repeat(3, 1fr);
    }

    .cust-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hist-top-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hist-bottom-grid {
        grid-template-columns: 400px 1fr;
    }

    .bottom-section {
        grid-template-columns: 2fr 1fr;
    }

    .admin-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {

    /* Large Desktop */
    body {
        padding: 40px;
        max-width: 1800px;
    }

    .dashboard-main {
        grid-template-columns: 1fr 400px;
        gap: 45px;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .zones-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .inventory-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pricing-grid-enhanced {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .cust-pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hist-top-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .hist-card {
        height: 400px;
        padding: 30px;
    }

    .chart-container {
        height: 240px;
    }

    .bottom-section {
        gap: 45px;
    }

    .admin-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .analytics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.btn-group .action-btn i {
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Remove button */
.btn-group .remove-sess-btn {
    background: rgba(255, 59, 59, 0.15);
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: var(--red);
}

@media (hover: hover) {
    .btn-group .remove-sess-btn:hover {
        background: rgba(255, 59, 59, 0.25);
        border-color: var(--red);
        transform: translateY(-2px);
    }
}

/* Confirm button */
.btn-group .confirm-sess-btn {
    background: rgba(0, 255, 157, 0.15);
    border: 1px solid rgba(0, 255, 157, 0.3);
    color: var(--green);
}

@media (hover: hover) {
    .btn-group .confirm-sess-btn:hover {
        background: rgba(0, 255, 157, 0.25);
        border-color: var(--green);
        transform: translateY(-2px);
    }
}

/* "saving" chip shown on a station that has confirms the server has not
   acknowledged yet. Without it a slow request just looks like nothing happened. */
.station-sync-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 255, 157, 0.12);
    border: 1px solid rgba(0, 255, 157, 0.3);
    line-height: 1;
    white-space: nowrap;
}

#dashboard .station-unpaid .station-sync-chip,
#kioskMode .station-unpaid .station-sync-chip {
    color: var(--green);
    font-size: 0.52rem;
    letter-spacing: 0.1em;
}

.station-sync-chip .sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: syncPulse 1.1s ease-in-out infinite;
}

/* An add whose 20-minute retry window ran out: still on the card, never
   deleted, and tapping the chip puts it back in the queue. */
.station-sync-chip.is-queued,
#dashboard .station-unpaid .station-sync-chip.is-queued,
#kioskMode .station-unpaid .station-sync-chip.is-queued {
    color: var(--orange);
    background: rgba(255, 140, 0, 0.12);
    border-color: rgba(255, 140, 0, 0.35);
}

.station-sync-chip.is-failed,
#dashboard .station-unpaid .station-sync-chip.is-failed,
#kioskMode .station-unpaid .station-sync-chip.is-failed {
    color: var(--red);
    background: rgba(255, 59, 59, 0.14);
    border-color: rgba(255, 59, 59, 0.4);
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#dashboard .station-unpaid .station-sync-chip.is-failed,
#kioskMode .station-unpaid .station-sync-chip.is-failed {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
}

/* The dark "active" dot pulses while its add is still in the queue. */
.dot.saving {
    animation: savingPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

@keyframes savingPulse {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.92);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes syncPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@media (prefers-reduced-motion: reduce) {

    .dot.confirming,
    .dot.saving,
    .station-sync-chip .sync-dot {
        animation: none;
    }

    .station-sync-chip .sync-dot {
        opacity: 1;
    }
}

/* Add button */
.btn-group .add-sess-btn.primary {
    background: var(--cyan);
    color: black;
    border: none;
    font-weight: bold;
}

@media (hover: hover) {
    .btn-group .add-sess-btn.primary:hover {
        background: #00cce6;
        transform: translateY(-2px);
    }
}

/* Touch device improvements */
@media (max-width: 767px) {
    .btn-group .action-btn {
        height: 50px;
        min-height: 50px;
        padding: 12px;
    }

    .btn-group .action-btn i {
        width: 22px;
        height: 22px;
    }
}

/* Fix for inventory toggle buttons */
.toggle-inventory-btn {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.toggle-inventory-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.toggle-inventory-btn i {
    transition: all 0.2s ease !important;
}

.toggle-inventory-btn[data-enabled="true"] i {
    color: var(--cyan) !important;
}

.toggle-inventory-btn[data-enabled="false"] i {
    color: #666 !important;
}

/* Inventory item cards styling */
.inventory-item-card {
    background: #111 !important;
    border: 1px solid #222 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    transition: all 0.2s ease !important;
}

.inventory-item-card.enabled {
    border-color: #333 !important;
    opacity: 1 !important;
}

.inventory-item-card.disabled {
    opacity: 0.6 !important;
    border-color: #222 !important;
}

.inventory-item-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

.inventory-item-icon {
    width: 48px !important;
    height: 48px !important;
    background: #070707 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #222 !important;
}

/* Restock button styling */
.restock-btn {
    background: var(--cyan) !important;
    color: black !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.restock-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
}

.delete-inventory-btn {
    background: var(--red) !important;
    color: white !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.delete-inventory-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
}

.stock-management {
    background: #080808 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-top: 15px !important;
}

.stock-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #222 !important;
}

.stock-row:last-child {
    border-bottom: none !important;
}

.stock-label {
    color: #888 !important;
    font-size: 0.85rem !important;
}

.stock-value {
    font-weight: 700 !important;
    color: var(--cyan) !important;
}

/* Modal animations and enhancements */
.modal-overlay {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Icon button hover effects */
.icon-select {
    transition: all 0.2s ease;
}

.icon-select:hover {
    transform: scale(1.1);
    border-color: var(--cyan) !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.icon-select.selected {
    border-color: var(--cyan) !important;
    background: rgba(0, 229, 255, 0.1) !important;
}

/* Color select hover effects */
.color-select {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.color-select:hover {
    transform: scale(1.15);
    border-color: white !important;
    box-shadow: 0 0 15px currentColor;
}

.color-select.selected {
    border-color: white !important;
    box-shadow: 0 0 20px currentColor;
}

/* Input focus effects */
.app-input:focus {
    border-color: var(--cyan) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

/* Custom toggle switch */
#newItemEnabled:checked+#enableToggleBg {
    background: var(--cyan) !important;
}

#newItemEnabled:checked+#enableToggleBg #enableToggleDot {
    transform: translateX(24px);
    background: white !important;
}

/* ========== CUSTOM SCROLLBAR STYLING ========== */

/* For the entire app */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #333 #0a0a0a;
}

/* Specific styling for the icon grid */
.modal-content .icon-select-grid,
.modal-content div[style*="overflow-y: auto"] {
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) #1a1a1a;
}

.modal-content div[style*="overflow-y: auto"]::-webkit-scrollbar {
    width: 6px;
}

.modal-content div[style*="overflow-y: auto"]::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.modal-content div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 10px;
    border: 1px solid #1a1a1a;
}

.modal-content div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb:hover {
    background: #7f7fff;
}

/* For the icon grid container specifically */
#addInventoryModal .modal-content div[style*="max-height: 220px"] {
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) #1a1a1a;
}

#addInventoryModal .modal-content div[style*="max-height: 220px"]::-webkit-scrollbar {
    width: 6px;
}

#addInventoryModal .modal-content div[style*="max-height: 220px"]::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

#addInventoryModal .modal-content div[style*="max-height: 220px"]::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 10px;
    border: 1px solid #1a1a1a;
}

#addInventoryModal .modal-content div[style*="max-height: 220px"]::-webkit-scrollbar-thumb:hover {
    background: #7f7fff;
}

/* ========== ENHANCED HISTORY PAGE STYLES ========== */

/* Stat cards hover effect */
#history [style*="linear-gradient"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#history [style*="linear-gradient"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Chart bars enhancement */
#history .chart-bar {
    background: linear-gradient(180deg, var(--cyan) 0%, #0066cc 100%);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-width: 30px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

#history .chart-bar:hover {
    transform: scaleY(1.05);
    filter: brightness(1.2);
    box-shadow: 0 -5px 15px rgba(0, 229, 255, 0.3);
}

#history .chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: var(--cyan);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    border: 1px solid #333;
}

#history .chart-bar:hover::after {
    opacity: 1;
}

/* Calendar day enhancements */
#history .calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    border-radius: 12px;
    font-weight: 500;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid #222;
}

/* Hover only recolours the edge. Swapping the gradient for a flat dark fill and
   moving the cell made the pointer leave/re-enter at the edge, which is what
   read as a dark flicker. */
#history .calendar-day:hover {
    border-color: rgba(0, 229, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.12);
}

#history .calendar-day.selected {
    background: rgba(0, 229, 255, 0.15);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

#history .calendar-day.today {
    border-color: var(--green);
    position: relative;
}

#history .calendar-day.today::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

#history .calendar-day.has-revenue {
    background: rgba(0, 229, 255, 0.05);
}

#history .calendar-day.has-bank-transfers {
    position: relative;
}

#history .calendar-day.has-bank-transfers::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    background: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--purple);
}

/* Zone filter buttons enhancement */
#history .zone-filter-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

#history .zone-filter-btn:hover {
    color: white;
    background: #1a1a1a;
}

#history .zone-filter-btn.active {
    background: var(--cyan);
    color: black;
    font-weight: 600;
}

/* Bank transfers card styling */
#history .banking-history-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #121212 100%);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #333;
}

/* Count badge styling */
#history .bank-count-badge {
    background: var(--purple);
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(155, 77, 255, 0.3);
    display: inline-block;
}

/* Total amount styling */
#history .bank-total-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
    background: rgba(255, 59, 59, 0.1);
    padding: 12px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 59, 59, 0.3);
    display: inline-block;
    margin-top: 10px;
}

/* Transfer item styling */
#history .transfer-item {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

#history .transfer-item:hover {
    background: #222;
    transform: translateX(5px);
}

/* Transfer number badge */
#history .transfer-number {
    background: var(--purple);
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

/* Transfer list scrollbar */
#histTransfersList::-webkit-scrollbar {
    width: 4px;
}

#histTransfersList::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

#histTransfersList::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px;
}

/* Responsive adjustments */
/* The old positional selectors (#history>div:first-child etc.) matched whatever
   happened to sit at that DOM position. Layout is class-driven now: .rev-two-col
   and .rev-lists own their own breakpoints further down the sheet. */
@media (max-width: 768px) {
    #history .calendar-header {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========== FIX 1: PURPLE DOT VISIBILITY ON CALENDAR ========== */
.calendar-day.has-bank-transfers {
    position: relative;
}

.calendar-day.has-bank-transfers::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    background: var(--purple);
    border-radius: 50%;
    z-index: 10;
    display: block;
}

@keyframes pulsePurple {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Make sure the calendar day has position relative */
.calendar-day {
    position: relative;
}

/* ========== FIX 2: FIX THE TRANSFER COUNT SPACING ========== */
.banking-history-card h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.banking-history-card h4 span {
    background: var(--purple);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Alternative fix if you're using the new design */
#histBankTransfersCount {
    display: inline-block;
    background: var(--purple);
    color: white;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    margin-left: 10px;
    vertical-align: middle;
}

/* ========== FIX 3: REMOVE THE DARK DOT ON CHART HOVER ========== */
.chart-bar {
    position: relative;
    transition: all 0.3s ease;
}

/* Remove any pseudo-elements that might be causing the dark dot */
.chart-bar::before,
.chart-bar::after {
    display: none !important;
}

/* Instead, show a clean tooltip on hover */
.chart-bar:hover {
    filter: brightness(1.2);
    transform: scaleY(1.05);
}

/* Add a nice clean tooltip instead */
.chart-bar[data-value] {
    position: relative;
}

.chart-bar[data-value]:hover::after {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: var(--cyan);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    display: block !important;
    opacity: 1 !important;
}

/* ========== ADDITIONAL FIX: Ensure the transfer amount is properly spaced ========== */
.banking-history-card {
    padding: 20px;
}

.banking-history-card .transfer-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 12px;
    transition: all 0.2s;
}

.banking-history-card .transfer-item:hover {
    background: #222;
    transform: translateX(5px);
}

.banking-history-card .transfer-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red);
    margin-top: 5px;
}

/* ========== FIX FOR THE CHART CONTAINER ========== */
.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 15px 10px 30px 10px;
    position: relative;
    background: transparent;
}

/* ========== FIXED BANK TRANSFERS HEADER STYLING ========== */

/* Container for the bank transfers header */
.banking-history-card>div:first-child,
#histBankHeader {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Left side with title and count */
.banking-history-card h4,
#histBankTitle {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
}

/* Count badge styling */
.bank-count-badge,
#histBankTransfersCount {
    background: var(--purple) !important;
    color: white !important;
    padding: 6px 16px !important;
    border-radius: 40px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    margin-left: 0 !important;
    box-shadow: 0 4px 12px rgba(155, 77, 255, 0.3) !important;
    white-space: nowrap !important;
}

/* Total amount styling */
.bank-total-amount {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--red) !important;
    background: rgba(255, 59, 59, 0.1) !important;
    padding: 8px 20px !important;
    border-radius: 40px !important;
    border: 1px solid rgba(255, 59, 59, 0.3) !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

/* Alternative: If you prefer a dot inside the day */
.calendar-day.has-bank-transfers .bank-dot {
    display: flex !important;
}

/* Revenue indicator - make it smaller to leave room for bank dot */
.calendar-day.has-revenue .calendar-day-revenue {
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 15px;
    /* Space for bank dot */
}

/* ========== PEAK HOURS CHART STYLES ========== */

.peak-hour-bar {
    transition: all 0.2s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.peak-hour-bar:hover {
    transform: scaleY(1.05);
    filter: brightness(1.2);
    box-shadow: 0 -4px 15px currentColor;
}

/* Tooltip styling */
.peak-hour-bar[title] {
    position: relative;
}

/* Add hour labels on hover (optional) */
/* Peak hours chart container for SVG line chart */
#peakHoursChart {
    position: relative;
    width: 100%;
    height: 220px;
}

/* Tooltip styling for line chart */
.peak-chart-tooltip {
    position: absolute;
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 158px;
    padding: 9px 13px;
    border-radius: 14px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(13, 16, 20, 0.97);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    white-space: nowrap;
    animation: tooltipFadeIn 0.16s ease;
}

.peak-chart-tooltip .pct-when {
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7f8b9c;
}

.peak-chart-tooltip .pct-total {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #eefdff;
}

.peak-chart-tooltip .pct-sub {
    font-size: 0.6rem;
    color: #8ff3ff;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Hour labels are now dynamically generated by JavaScript */
/* Removed static ::after element to prevent duplicate labels */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}
/* ========== ENSURE KIOSK MODE IS VISIBLE ========== */
#kioskMode {
    display: none;
    position: relative;
    z-index: 100;
    min-height: 100vh;
    background: var(--bg);
}

#kioskMode.active,
#kioskMode[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Make sure no parent can hide it */
#mainApp + #kioskMode {
    display: block;
}
/* ========== CUSTOMIZE VIEW CARD STYLES ========== */
.customize-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.danger-zone-card,
.dashboard-settings-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.danger-zone-card {
    border-color: rgba(255, 59, 59, 0.3);
    box-shadow: 0 5px 15px rgba(255, 59, 59, 0.1);
}

.danger-zone-card:hover {
    border-color: var(--red);
    box-shadow: 0 10px 25px rgba(255, 59, 59, 0.2);
}

.dashboard-settings-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    color: var(--cyan);
    width: 24px;
    height: 24px;
}

.card-title h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.card-title p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
}

.card-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #888;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
    border-radius: 10px;
}

/* Mobile Banking Cards Grid */
.bank-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bank-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bank-card.enabled {
    border-color: var(--cyan);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.1);
}

.bank-card.disabled {
    opacity: 0.7;
    border-color: #333;
}

.bank-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-icon {
    width: 44px;
    height: 44px;
    background: #111;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #222;
}

.bank-icon i {
    color: var(--purple);
}

.bank-details h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.bank-details .bank-code {
    font-size: 0.75rem;
    color: #888;
    font-family: 'JetBrains Mono', monospace;
}

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

.bank-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.2s;
}

.bank-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bank-delete {
    background: rgba(255, 59, 59, 0.1);
    border: none;
    color: var(--red);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.bank-delete:hover {
    background: var(--red);
    color: white;
}

/* Station Cards (customize) */
.custom-stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.custom-station-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.custom-station-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.1);
}

.station-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.station-name-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.station-number {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Outfit';
}

.station-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.station-type-badge.ps4 {
    background: #333;
    color: #aaa;
    border: 1px solid #444;
}

.station-type-badge.ps5 {
    background: #001a66;
    color: white;
    border: 1px solid var(--ps5-blue);
}

.remove-station-btn {
    background: rgba(255, 59, 59, 0.1);
    border: none;
    color: var(--red);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-station-btn:hover {
    background: var(--red);
    color: white;
}

.station-type-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.station-type-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #333;
    background: transparent;
    color: var(--text-dim);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.station-type-btn.active {
    background: var(--cyan);
    color: black;
    border-color: var(--cyan);
}

.station-type-btn.ps4.active {
    background: #333;
    color: white;
    border-color: #666;
}

.station-type-btn.ps5.active {
    background: var(--ps5-blue);
    color: white;
    border-color: var(--ps5-blue);
}

/* Add Bank Form */
.add-bank-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: #111;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #222;
    margin-top: 25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .customize-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Ensure both cards have identical header styling */
.dashboard-settings-card .card-header,
.danger-zone-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.dashboard-settings-card .card-icon,
.danger-zone-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-settings-card .card-title h4,
.danger-zone-card .card-title h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard-settings-card .card-title p,
.danger-zone-card .card-title p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.4;
}

/* Settings option styling */
.dashboard-settings-card .settings-option {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.dashboard-settings-card .settings-option:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.2);
}

/* Toggle button styling (matching inventory card toggles) */
.toggle-settings-btn {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.toggle-settings-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: scale(1.1);
}

.toggle-settings-btn i {
    transition: all 0.2s ease !important;
}

.toggle-settings-btn[data-enabled="true"] i {
    color: var(--cyan) !important;
}

.toggle-settings-btn[data-enabled="false"] i {
    color: #666 !important;
}


.dashboard-settings-card .card-hint,
.danger-zone-card .card-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    margin-top: auto; /* Pushes hint to bottom */
}

/* Danger zone specific */
.danger-zone-card .card-hint {
    background: rgba(255, 59, 59, 0.05);
    border: 1px solid rgba(255, 59, 59, 0.2);
}

/* Dashboard settings specific */
.dashboard-settings-card .card-hint {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

/* Ensure both cards have equal height */
.customize-grid-2col > div {
    height: 100%;
    min-height: 300px; /* Minimum height to ensure consistency */
}


/* Make card bodies flexible to fill space */
.dashboard-settings-card .card-body,
.danger-zone-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Make the toggle switch slightly larger to match button height */
.dashboard-settings-card .modern-toggle {
    width: 50px;
    height: 26px;
}

.dashboard-settings-card .modern-toggle .toggle-slider:before {
    height: 18px;
    width: 18px;
}

.dashboard-settings-card .modern-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Responsive */
@media (max-width: 768px) {
    .customize-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .customize-grid-2col > div {
        min-height: auto;
    }
}

/* ========== CUSTOM STATION CARDS (ENHANCED) ========== */
.custom-station-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.custom-station-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
}

.station-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.remove-station-btn {
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: var(--red);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-station-btn:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: var(--red);
    transform: scale(1.05);
}

.station-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-value.ps4-rate {
    color: var(--cyan);
}

.stat-value.ps5-rate {
    color: var(--ps5-blue);
}

.stat-value.sessions {
    color: var(--green);
}

.stat-unit {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Clean console type buttons - no header */
.type-selector-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.type-btn {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.type-btn.ps4 {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-dim);
}

.type-btn.ps4.active {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
}

.type-btn.ps5 {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-dim);
}

.type-btn.ps5.active {
    border-color: var(--ps5-blue);
    background: rgba(0, 67, 255, 0.1);
    color: var(--ps5-blue);
}

.station-footer-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.75rem;
    color: #666;
}

/* Add Station Buttons */
.add-stations-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.add-station-btn {
    flex: 1;
    padding: 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.add-station-btn.ps4 {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: white;
    border: 1px solid #555;
}

.add-station-btn.ps4:hover {
    background: linear-gradient(135deg, #444 0%, #555 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.add-station-btn.ps5 {
    background: linear-gradient(135deg, #001a66 0%, #0043ff 100%);
    color: white;
    border: 1px solid var(--ps5-blue);
}

.add-station-btn.ps5:hover {
    background: linear-gradient(135deg, #002080 0%, #0055ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 67, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .station-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .type-selector-buttons {
        flex-direction: column;
    }
    
    .add-stations-container {
        flex-direction: column;
    }
}

/* ========== ENHANCED NOTE INDICATOR - UNIFIED BLUE GEAR-STYLE RING ========== */
.dot.has-note {
    position: relative;
    z-index: 100;
}

.station, 
.station-content, 
.session-dots,
.station * {
    overflow: visible !important;
    contain: none !important;
    clip-path: none !important;
}

/* Note ring around the dot. It is a border-box circle just outside the dot:
   20px around a 16px dot means ~2px of air, so the ring reads as part of the
   session instead of floating away from it. The old 22px content-box ring
   plus its 2px border rendered at 26px, which left a 5px gap and made the
   ring look detached — most visibly on an active session, where the dot
   underneath is the nearly invisible .dot.dark. */
.dot.has-note::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--cyan);
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

/* A noted session that is still active carries a transparent dot, so the ring
   would be the only thing visible. Tinting the dot keeps it legible inside
   its ring, exactly like a confirmed green dot. */
.dot.has-note.dark {
    border-color: rgba(0, 229, 255, 0.6);
    background: rgba(0, 229, 255, 0.18);
}

/* ========== SIMPLE SOLID TOOLTIP (NO ARROW) ========== */

/* One real element, shared by every dot and appended to <body> by script.js.
   A pseudo-element could not be measured, so its 50%/translateX(-50%)
   centring ran off the screen edge on the first dot of the left-most card.
   Being fixed-positioned at body level, this one is clamped to the viewport
   by showDotTip() and is unaffected by the card's transforms and overflow
   rules. */
.dot-tip {
    position: fixed;
    z-index: 2147483000;
    display: none;
    max-width: min(320px, calc(100vw - 16px));
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    box-shadow: 0 18px 30px -22px #000;
}

/* Make tooltip escape with high z-index */
.dot-wrapper {
    position: relative;
    display: inline-block;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .dot.has-note::after {
        width: 20px;
        height: 20px;
        border-width: 1.8px;
    }

    .dot-tip {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}
/* ========== HAMBURGER MENU FOR MOBILE ========== */

/* Desktop navigation - visible by default */
.desktop-nav {
    display: flex !important;
}

/* Mobile menu button - hidden by default */
.mobile-menu-btn {
    display: none !important;
    background: transparent !important;
    border: 1px solid #333 !important;
    color: white !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.mobile-menu-btn:hover {
    border-color: var(--cyan) !important;
    background: rgba(0, 229, 255, 0.1) !important;
}

.mobile-menu-btn i {
    width: 24px !important;
    height: 24px !important;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 10000 !important;
    display: none !important;
    flex-direction: column !important;
    padding: 20px !important;
    overflow-y: auto !important;
}

.mobile-menu-overlay.active {
    display: flex !important;
}

.mobile-menu-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #333 !important;
}

.mobile-menu-header h2 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.5rem !important;
    color: var(--cyan) !important;
}

.mobile-menu-close {
    background: transparent !important;
    border: 1px solid #333 !important;
    color: white !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
}

.mobile-menu-close:hover {
    border-color: var(--red) !important;
    background: rgba(255, 59, 59, 0.1) !important;
}

.mobile-menu-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
}

.mobile-menu-item {
    background: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 15px !important;
    padding: 18px 20px !important;
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: left !important;
}

.mobile-menu-item i {
    width: 24px !important;
    height: 24px !important;
    color: var(--cyan) !important;
}

.mobile-menu-item:hover {
    border-color: var(--cyan) !important;
    background: #1a1a1a !important;
    transform: translateX(5px) !important;
}

.mobile-menu-item.active {
    background: var(--cyan) !important;
    color: black !important;
    border-color: var(--cyan) !important;
}

.mobile-menu-item.active i {
    color: black !important;
}

.mobile-menu-divider {
    height: 1px !important;
    background: #333 !important;
    margin: 20px 0 !important;
}

.mobile-menu-footer {
    margin-top: auto !important;
    padding-top: 20px !important;
    border-top: 1px solid #333 !important;
}

.mobile-zone-selector {
    margin-bottom: 20px !important;
}

.mobile-zone-select {
    width: 100% !important;
    background: #111 !important;
    border: 1px solid #333 !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
}

.mobile-session-info {
    background: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.mobile-session-label {
    font-size: 0.8rem !important;
    color: #888 !important;
    margin-bottom: 8px !important;
}

.mobile-session-count {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--cyan) !important;
}

.mobile-session-count span {
    color: #444 !important;
    font-size: 1rem !important;
}

/* ========== MODIFIED TOP NAV FOR MOBILE ========== */
@media (max-width: 1023px) {
    .top-nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 20px !important;
        background: var(--card) !important;
        border-bottom: 1px solid var(--border) !important;
        margin-bottom: 20px !important;
    }

    .logo-section {
        flex: 1 !important;
    }

    .logo-section h1 {
        font-size: 1.2rem !important;
    }

    .owner-display {
        font-size: 0.7rem !important;
    }

    /* Hide desktop nav on mobile/tablet */
    .desktop-nav {
        display: none !important;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* Keep desktop nav visible on larger screens */
@media (min-width: 1024px) {
    .desktop-nav {
        display: flex !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Subscription badges */
.status-badge.trial {
  background: rgba(0, 229, 255, 0.15);
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.status-badge.expired {
  background: rgba(255, 59, 59, 0.15);
  color: var(--red);
  border: 1px solid var(--red);
}

.status-badge.pending {
  background: rgba(255, 140, 0, 0.15);
  color: var(--orange);
  border: 1px solid var(--orange);
}

/* Trial warning banner */
.trial-warning {
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== SUBSCRIPTION CARD STYLES ========== */
.subscription-card {
    background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.subscription-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subscription-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-icon i {
    color: var(--cyan);
}

.subscription-title {
    flex: 1;
}

.subscription-title h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

.subscription-title p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

.subscription-badge {
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subscription-badge.trial {
    background: rgba(0, 229, 255, 0.15);
    color: var(--cyan);
    border: 1px solid var(--cyan);
}

.subscription-badge.active {
    background: rgba(0, 255, 157, 0.15);
    color: var(--green);
    border: 1px solid var(--green);
}

.subscription-badge.expired {
    background: rgba(255, 59, 59, 0.15);
    color: var(--red);
    border: 1px solid var(--red);
}

.subscription-badge.pending {
    background: rgba(255, 140, 0, 0.15);
    color: var(--orange);
    border: 1px solid var(--orange);
}

.subscription-details {
    margin-top: 20px;
}

.subscription-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--cyan);
}

.subscription-progress {
    margin: 30px 0;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan) 0%, #7f7fff 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #666;
}

.payment-instructions {
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
}

.instructions-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--orange);
}

.instructions-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.instructions-steps {
    margin-bottom: 20px;
}

.step {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--orange);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    color: var(--text-dim);
    line-height: 1.5;
    padding-top: 4px;
}

.payment-details {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0 15px 43px;
    font-size: 0.9rem;
}

.payment-details p {
    margin: 5px 0;
}

.instructions-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    font-size: 0.85rem;
    color: #888;
}

.subscription-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.subscription-actions button {
    flex: 1;
    padding: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .subscription-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .subscription-info-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-actions {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
        gap: 8px;
    }
    
    .payment-details {
        margin-left: 0;
    }
}

/* ========== ENHANCED ZONE SELECTOR STYLES ========== */
#zoneSelector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0 15px;
    transition: all 0.3s ease;
}

#zoneSelector:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

#zoneSelector i {
    color: var(--cyan);
    flex-shrink: 0;
}

/* Style the select element */
.zone-select {
    background: transparent;
    color: white;
    border: none;
    padding: 12px 30px 12px 5px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 180px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.zone-select:focus {
    outline: none;
}

/* Style the placeholder option to make it less prominent */
.zone-select option {
    background: #1a1a1a;
    color: white;
    padding: 12px;
}

/* Style for the placeholder (first option) */
.zone-select option[value=""] {
    color: #888;
    font-style: italic;
    display: none; /* This hides the "Select Zone" option from the dropdown */
}

/* Show a gray placeholder text when nothing is selected */
.zone-select:invalid {
    color: #888;
}

/* Style for selected option */
.zone-select option:checked {
    background: var(--cyan);
    color: black;
    font-weight: 600;
}

/* Add a subtle animation when changing selection */
.zone-select {
    transition: background-color 0.2s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #zoneSelector {
        width: 100%;
        justify-content: space-between;
    }
    
    .zone-select {
        min-width: 140px;
        font-size: 0.85rem;
        padding: 10px 25px 10px 5px;
    }
}

/* ========== WORKER MODE MOBILE MENU STYLES ========== */
#kioskMode .mobile-menu-btn {
    display: none;
    background: var(--cyan);
    border: none;
    color: black;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 100;
}

#kioskMode .mobile-menu-btn i {
    width: 24px;
    height: 24px;
}

#kioskMode .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

#kioskMode .mobile-menu-overlay.active {
    display: flex;
}

#kioskMode .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

#kioskMode .mobile-menu-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--cyan);
}

#kioskMode .mobile-menu-header h2 span {
    color: white;
}

#kioskMode .mobile-menu-close {
    background: #222;
    border: 1px solid #333;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#kioskMode .mobile-menu-close:hover {
    border-color: var(--red);
    background: rgba(255, 59, 59, 0.1);
}

#kioskMode .mobile-zone-info,
#kioskMode .mobile-session-info {
    background: #111;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
}

#kioskMode .mobile-info-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#kioskMode .mobile-info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
}

#kioskMode .mobile-info-value span {
    color: #444;
    font-size: 1rem;
}

#kioskMode .mobile-menu-item {
    background: #111;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 18px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

#kioskMode .mobile-menu-item i {
    color: var(--cyan);
    width: 24px;
    height: 24px;
}

#kioskMode .mobile-menu-item:hover {
    border-color: var(--cyan);
    background: #1a1a1a;
    transform: translateX(5px);
}

#kioskMode .mobile-menu-item.exit {
    background: rgba(255, 59, 59, 0.1);
    border-color: var(--red);
}

#kioskMode .mobile-menu-item.exit i {
    color: var(--red);
}

#kioskMode .mobile-menu-item.exit:hover {
    background: rgba(255, 59, 59, 0.2);
}

#kioskMode .mobile-menu-footer {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    border-top: 1px solid #333;
}

/* Media Queries for Mobile */
@media (max-width: 767px) {
    #kioskMode .desktop-nav {
        display: none !important;
    }
    
    #kioskMode .mobile-menu-btn {
        display: flex !important;
    }
    
    #kioskMode .top-nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
    }
    
    #kioskMode .logo-section h1 {
        font-size: 1.2rem !important;
    }
}

@media (min-width: 768px) {
    #kioskMode .mobile-menu-btn {
        display: none !important;
    }
    
    #kioskMode .desktop-nav {
        display: flex !important;
    }
}
/* Tablet Landscape (1024px – 1365px) – 4 station cards + sidebar */
@media (min-width: 1024px) and (max-width: 1365px) and (orientation: landscape) {
    body {
        max-width: 100vw;
        overflow-x: hidden;
    overflow-x: clip;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .dashboard-main > div:first-child {
        min-width: 0;
    }

    .dashboard-main {
        grid-template-columns: 1fr 200px;
        gap: 12px;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .inventory-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* ===== SHRINK INVENTORY CARDS ===== */
    .inv-card {
        padding: 12px;
    }

    .inv-card .inv-header {
        gap: 10px;
        margin-bottom: 6px;
    }

    /* Icon container */
    .inv-card .inv-header > div:first-child {
        width: 40px;
        height: 40px;
    }

    /* Icon itself */
    .inv-card .inv-header > div:first-child i {
        width: 20px !important;
        height: 20px !important;
    }

    /* Text area */
    .inv-card .inv-header > div:last-child {
        font-size: 0.9rem;
    }

    .inv-card .inv-header > div:last-child div:first-child {
        font-size: 0.95rem;
    }

    .inv-card .inv-header > div:last-child div:nth-child(2) {
        font-size: 0.8rem;
    }

    /* Stock management section */
    .inv-card .stock-management {
        padding: 8px;
        margin-top: 6px;
    }

    .inv-card .stock-row {
        font-size: 0.8rem;
    }

    .inv-card .stock-row .stock-value {
        font-size: 0.9rem;
    }

    /* Quantity controls */
    .inv-card .qty-control {
        padding: 6px 10px;
        margin-top: 6px;
    }

    .inv-card .qty-control > span:first-child {
        font-size: 0.7rem;
    }

    .inv-card .qty-control > div > span {
        font-size: 1.2rem;
        min-width: 30px;
    }

    .inv-card .inventory-decrease-btn,
    .inv-card .inventory-increase-btn {
        width: 32px;
        height: 32px;
    }

    .inv-card .inventory-decrease-btn i,
    .inv-card .inventory-increase-btn i {
        width: 16px;
        height: 16px;
    }

    /* Restock button (if present) */
    .inv-card .restock-btn {
        padding: 8px;
        font-size: 0.8rem;
    }

    /* Stock status indicator */
    .inv-card .stock-ok,
    .inv-card .stock-warning {
        font-size: 0.7rem;
    }

    /* ===== COMPACT STATION CARDS (tablet parity with iPad Air 1) ===== */
    .station {
        padding: 0 !important;
    }

    .station-header {
        padding: 8px 6px !important;
    }

    .station-name {
        font-size: 0.95rem !important;
    }

    .console-badge {
        font-size: 0.55rem !important;
        padding: 2px 5px !important;
    }

    .total-amount {
        font-size: 0.85rem !important;
    }

    .total-amount span {
        font-size: 0.55rem !important;
    }

    .station-header div[style*="font-size: 0.9rem"] {
        font-size: 0.65rem !important;
        margin-top: 2px !important;
    }

    .station > div[style*="display: flex; justify-content: space-between"] {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }

    .status-bar {
        padding: 4px !important;
        font-size: 0.65rem !important;
    }

    .station-content {
        padding: 6px !important;
        min-height: 50px !important;
    }

    .session-dots {
        gap: 3px !important;
    }

    .dot {
        width: 8px !important;
        height: 8px !important;
    }

    .dot.has-note::after {
        width: 12px !important;
        height: 12px !important;
        border: 1.5px solid var(--cyan) !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
    }

    .station-footer {
        padding: 4px !important;
    }

    .btn-group .action-btn {
        padding: 0 !important;
        height: 26px !important;
        width: 26px !important;
        min-width: 26px !important;
        border-radius: 5px !important;
        font-size: 0 !important;
    }

    .btn-group .action-btn + .action-btn {
        margin-left: 8px !important;
    }

    .btn-group .action-btn i,
    .action-btn i,
    button i {
        display: inline-block !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
    }

    .btn-group .action-btn svg,
    .action-btn svg {
        display: block !important;
        width: 16px !important;
        height: 16px !important;
    }

    /* ===== COMPACT SIDEBAR (tablet parity) ===== */
    .sidebar {
        padding: 8px !important;
    }

    .sidebar-title {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
        padding-left: 5px !important;
    }

    .sidebar-title i {
        width: 14px !important;
        height: 14px !important;
    }

    #kioskPettyCashAmount {
        font-size: 0.9rem !important;
        padding: 6px !important;
        margin-bottom: 8px !important;
    }

    .banking-section {
        margin-bottom: 8px !important;
    }

    .banking-section .input-group {
        margin-bottom: 4px !important;
    }

    .banking-section label {
        font-size: 0.6rem !important;
        margin-bottom: 2px !important;
    }

    #kioskBankSelectContainer {
        max-height: 70px !important;
    }

    #kioskBankSelectContainer label {
        padding: 3px 5px !important;
        font-size: 0.55rem !important;
        gap: 3px !important;
        border-radius: 4px !important;
    }

    #kioskBankSelectContainer label span {
        font-size: 0.55rem !important;
    }

    #kioskBankSelectContainer label input[type="radio"] {
        transform: scale(0.55) !important;
        margin: 0 !important;
    }

    #kioskBankAmount,
    #kioskBankDescription {
        padding: 3px !important;
        font-size: 0.55rem !important;
    }

    #kioskAddBankTransferBtn {
        padding: 5px !important;
        font-size: 0.65rem !important;
        margin-bottom: 6px !important;
        height: auto !important;
    }

    #kioskAddBankTransferBtn i {
        width: 12px !important;
        height: 12px !important;
    }

    .banking-summary {
        padding-top: 4px !important;
    }

    .banking-summary > div:first-child {
        margin-bottom: 4px !important;
    }

    .banking-summary > div:first-child > div:first-child {
        font-size: 0.6rem !important;
    }

    #kioskTodayBankTotal {
        font-size: 0.8rem !important;
    }

    #kioskRecentTransfersList {
        max-height: 50px !important;
        font-size: 0.6rem !important;
    }

    #kioskRecentTransfersList > div {
        padding: 2px 0 !important;
    }

    .cash-in-hand {
        padding: 6px !important;
        margin-top: 6px !important;
    }

    .cash-in-hand > div:first-child > div:first-child {
        font-size: 0.6rem !important;
    }

    #kioskCashInHand {
        font-size: 1rem !important;
    }

    .cash-in-hand i {
        width: 18px !important;
        height: 18px !important;
    }

    .total-rev-card {
        padding: 6px !important;
        margin-bottom: 8px !important;
    }

    .total-rev-card > div:first-child {
        font-size: 0.6rem !important;
    }

    #kioskZoneTodayTotal {
        font-size: 1.1rem !important;
    }

    .total-rev-card > div:last-child {
        margin-top: 6px !important;
        font-size: 0.6rem !important;
    }

    .coin-counter-section > div {
        padding: 6px !important;
    }

    .coin-counter-section > div > div:first-child {
        margin-bottom: 4px !important;
    }

    .coin-counter-section > div > div:first-child > div:first-child {
        width: 26px !important;
        height: 26px !important;
    }

    .coin-counter-section > div > div:first-child > div:first-child i {
        width: 14px !important;
        height: 14px !important;
    }

    #workerCoinBalance {
        font-size: 1.1rem !important;
    }

    .day-management-buttons {
        gap: 4px !important;
        margin: 8px 0 !important;
    }

    .day-management-buttons button {
        padding: 5px !important;
        font-size: 0.6rem !important;
        height: auto !important;
        min-height: 30px !important;
    }

    .day-management-buttons button i {
        width: 10px !important;
        height: 10px !important;
    }

    .day-management-buttons .info-text {
        font-size: 0.5rem !important;
        margin-top: 2px !important;
    }

    #kioskViewAllTransfersBtn {
        padding: 4px !important;
        font-size: 0.6rem !important;
    }

    #kioskViewAllTransfersBtn i {
        width: 10px !important;
        height: 10px !important;
    }

    /* ===== COMPACT SIDEBAR INVENTORY (tablet parity) ===== */
    #kioskInventoryGrid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }

    #kioskInventoryGrid .inv-card {
        padding: 5px !important;
    }

    #kioskInventoryGrid .inv-header {
        gap: 4px !important;
        margin-bottom: 3px !important;
    }

    #kioskInventoryGrid .inv-header > div:first-child {
        width: 26px !important;
        height: 26px !important;
    }

    #kioskInventoryGrid .inv-header i {
        width: 14px !important;
        height: 14px !important;
    }

    .kiosk-calculator { padding: 8px !important; }
    .calc-display { font-size: 0.85rem !important; padding: 4px 6px !important; }
    .calc-btn { padding: 4px 2px !important; font-size: 0.7rem !important; }

    /* Tablet: hide brightness percentage text, smaller clock */
    .brightness-percent { display: none !important; }
    #kioskLiveClock { font-size: 1rem !important; }
}


/* ========== SECTION HEADERS ========== */
.section-header {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== COIN-OP STATION STYLES ========== */
.station.coin-op-station {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.station.coin-op-station:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: #ffd700;
}

/* Coin button styles */
.coin-btn {
    position: relative;
    overflow: hidden;
}

.coin-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.coin-btn:hover::after {
    opacity: 1;
    animation: coinShine 1.5s infinite;
}

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

@keyframes coinShine {
    0% {
        transform: translate(-30%, -30%) rotate(0deg);
    }
    100% {
        transform: translate(30%, 30%) rotate(20deg);
    }
}

/* Coin pulse animation when available */
.coin-btn:not(:disabled) {
    animation: coinPulse 2s infinite;
}

@keyframes coinPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .station.coin-op-station .coin-op-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .station.coin-op-station .coin-op-header > div:last-child {
        align-self: flex-end;
    }
}

/* Tablet Landscape fix */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .station.coin-op-station {
        min-width: 280px;
    }
}
@media (min-width: 768px) and (orientation: landscape) {
  /* already existing rules … */

  /* ===== FIX: COMPACT STATION CARDS ===== */
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* allow columns to shrink */
  }

  .station-header {
    padding: 12px 15px;
  }

  .station-name {
    font-size: 1.2rem;
  }

  .total-amount {
    font-size: 1.2rem;
  }

  .status-bar {
    padding: 10px;
    font-size: 0.8rem;
  }

  .station-content {
    padding: 15px;
  }

  .station-footer {
    padding: 12px 15px;
  }

  .btn-group .action-btn {
    padding: 8px;
    height: 40px;
  }
}
/* Duration preset buttons */
.duration-preset-btn {
    transition: all 0.2s ease;
}

.duration-preset-btn:hover {
    transform: translateY(-2px);
    border-color: var(--cyan) !important;
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.1);
}

.duration-preset-btn.selected {
    background: rgba(0, 229, 255, 0.1) !important;
    border-color: var(--cyan) !important;
}

#customDurationInput {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Force subscription modal to be visible */
#subscriptionDurationModal.modal-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    display: none; /* Keep hidden by default */
}

#subscriptionDurationModal.modal-overlay.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========== SOUND VOLUME CONTROL STYLING ========== */
.sound-volume-control {
    animation: slideDown 0.3s ease;
}

.sound-volume-control input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.sound-volume-control input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cyan);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transition: all 0.2s ease;
    margin-top: -6px;
}

.sound-volume-control input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.8);
}

.sound-volume-control input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-radius: 10px;
}

.sound-volume-control input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cyan);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transition: all 0.2s ease;
}

.sound-volume-control input[type=range]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.8);
}

.sound-volume-control input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-radius: 10px;
}

.sound-volume-control input[type=range]::-ms-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cyan);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transition: all 0.2s ease;
}

.sound-volume-control input[type=range]::-ms-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

/* Animation for the volume control */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Volume icon hover effects */
.sound-volume-control i {
    transition: all 0.2s ease;
}

.sound-volume-control:hover i[data-lucide="volume-2"] {
    color: var(--cyan) !important;
}

/* ===== BRIGHTNESS SLIDER (Kiosk Sidebar) ===== */
.kiosk-brightness-control {
    margin-top: 20px;
    padding: 18px;
    background: #111;
    border-radius: 12px;
    border: 1px solid #222;
}


.brightness-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.brightness-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
}
.brightness-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brightness-slider-row input[type=range] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #ffd700 0%, #ffd700 100%, #333 100%, #333 100%);
    border-radius: 10px;
    outline: none;
}
.brightness-slider-row input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffd700;
    border: 2px solid #333;
    cursor: pointer;
    transition: transform 0.15s;
}
.brightness-slider-row input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.brightness-slider-row input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffd700;
    border: 2px solid #333;
    cursor: pointer;
}
.brightness-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffd700;
    min-width: 35px;
    text-align: right;
}

/* ===== FULLSCREEN TOGGLE (Kiosk Sidebar) ===== */
.kiosk-fullscreen-btn {
    width: 100%;
    padding: 14px;
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}
.kiosk-fullscreen-btn:hover {
    background: #1a1a1a;
    border-color: #ffd700;
    color: #ffd700;
}
.kiosk-fullscreen-btn:active {
    transform: scale(0.98);
}

.kiosk-fullscreen-btn.saved { border-color: var(--cyan); color: var(--cyan); }
.kiosk-fullscreen-btn.saved:hover { background: rgba(0, 229, 255, 0.1); }

#kioskRefreshBtn:hover { border-color: #ffd700 !important; color: #ffd700 !important; }

.clock-expired {
    animation: timerExpired 0.8s infinite;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .sound-volume-control {
        padding: 15px !important;
    }
    
    .sound-volume-control input[type=range] {
        height: 8px;
    }
    
    .sound-volume-control input[type=range]::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
        margin-top: -8px;
    }
}
/* ========== WORKER INVENTORY GRID - 3 ITEMS PER ROW ========== */
#kioskInventoryGrid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: calc(max(15px, min(20px, 2vw))) !important;
    width: 100% !important;
}

/* Ensure cards don't stretch too much on very large screens */
@media (min-width: 1600px) {
    #kioskInventoryGrid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Responsive for tablets - 4 items per row */
@media (max-width: 1024px) and (min-width: 768px) {
    #kioskInventoryGrid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Mobile - 1 item per row */
@media (max-width: 767px) {
    #kioskInventoryGrid {
        grid-template-columns: 1fr !important;
    }
}

/* Style the inventory cards consistently */
#kioskInventoryGrid .inv-card {
    width: 100% !important;
    margin: 0 !important;
    min-width: 0 !important; /* Prevents overflow */
}

/* Ensure content doesn't overflow */
#kioskInventoryGrid .inv-card .inv-header {
    flex-wrap: wrap !important;
}

#kioskInventoryGrid .inv-card .qty-control {
    flex-wrap: wrap !important;
    gap: 10px !important;
}
/* ========== IPAD AIR 1 (iOS 12.5.7) SPECIFIC FIXES - WITH WORKING ICONS ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* Fix the main dashboard layout - make sidebar narrower */
    .dashboard-main {
        grid-template-columns: 1fr 200px !important; /* Even narrower sidebar */
        gap: 12px !important;
    }
    
    /* Make station cards wider - 4 per row */
    .grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Adjust station card padding to fit better */
    .station {
        padding: 0 !important;
    }
    
    .station-header {
        padding: 8px 6px !important;
    }
    
    .station-name {
        font-size: 0.95rem !important;
    }
    
    .console-badge {
        font-size: 0.55rem !important;
        padding: 2px 5px !important;
    }
    
    .total-amount {
        font-size: 0.85rem !important;
    }
    
    .total-amount span {
        font-size: 0.55rem !important;
    }
    
    /* Make the rate text smaller */
    .station-header div[style*="font-size: 0.9rem"] {
        font-size: 0.65rem !important;
        margin-top: 2px !important;
    }
    
    /* Active/Total row */
    .station > div[style*="display: flex; justify-content: space-between"] {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }
    
    /* Status bar (timer) */
    .status-bar {
        padding: 4px !important;
        font-size: 0.65rem !important;
    }
    
    /* Station content (dots area) */
    .station-content {
        padding: 6px !important;
        min-height: 50px !important;
    }
    
    /* Session dots */
    .session-dots {
        gap: 3px !important;
    }
    
    .dot {
        width: 8px !important;
        height: 8px !important;
    }
    
    /* ========== SMALLER BUTTONS WITH WORKING ICONS ========== */
.station-footer {
    padding: 4px !important;
}

.btn-group {
    display: flex !important;
    justify-content: center !important;
}

.btn-group .action-btn {
    padding: 0 !important;
    height: 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    border-radius: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important; /* Hide text */
}

/* Add margin to create gaps between buttons */
.btn-group .action-btn + .action-btn {
    margin-left: 8px !important; /* THIS ADDS SPACE BETWEEN BUTTONS */
}
    
    /* Keep the working icon styles from before */
    .btn-group .action-btn i,
    .action-btn i,
    button i {
        display: inline-block !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    /* Fix for missing icons - ensure they appear */
    .btn-group .action-btn svg,
    .action-btn svg {
        display: block !important;
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Fallback for icons if Lucide fails */
    .btn-group .remove-sess-btn i {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff3b3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3C/svg%3E") !important;
    }
    
    .btn-group .confirm-sess-btn i {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300ff9d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E") !important;
    }
    
    .btn-group .add-sess-btn i {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='16'%3E%3C/line%3E%3Cline x1='8' y1='12' x2='16' y2='12'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    /* Make sidebar sections more compact */
    .sidebar {
        padding: 8px !important;
    }
    
    .sidebar-title {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
        padding-left: 5px !important;
    }
    
    .sidebar-title i {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Petty cash display */
    #kioskPettyCashAmount {
        font-size: 0.9rem !important;
        padding: 6px !important;
        margin-bottom: 8px !important;
    }
    
    /* Banking section */
    .banking-section {
        margin-bottom: 8px !important;
    }
    
    .banking-section .input-group {
        margin-bottom: 4px !important;
    }
    
    .banking-section label {
        font-size: 0.6rem !important;
        margin-bottom: 2px !important;
    }
    
    #kioskBankSelectContainer {
        max-height: 70px !important;
    }
    
    #kioskBankSelectContainer label {
        padding: 3px 5px !important;
        font-size: 0.55rem !important;
        gap: 3px !important;
        border-radius: 4px !important;
    }
    
    #kioskBankSelectContainer label span {
        font-size: 0.55rem !important;
    }
    
    #kioskBankSelectContainer label input[type="radio"] {
        transform: scale(0.55) !important;
        margin: 0 !important;
    }
    
    /* Amount input */
    #kioskBankAmount, #kioskBankDescription {
        padding: 3px !important;
        font-size: 0.55rem !important;
    }
    
    /* Record Transfer button */
    #kioskAddBankTransferBtn {
        padding: 5px !important;
        font-size: 0.65rem !important;
        margin-bottom: 6px !important;
        height: auto !important;
    }
    
    #kioskAddBankTransferBtn i {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Today's transfers */
    .banking-summary {
        padding-top: 4px !important;
    }
    
    .banking-summary > div:first-child {
        margin-bottom: 4px !important;
    }
    
    .banking-summary > div:first-child > div:first-child {
        font-size: 0.6rem !important;
    }
    
    #kioskTodayBankTotal {
        font-size: 0.8rem !important;
    }
    
    #kioskRecentTransfersList {
        max-height: 50px !important;
        font-size: 0.6rem !important;
    }
    
    #kioskRecentTransfersList > div {
        padding: 2px 0 !important;
    }
    
    /* Cash in hand */
    .cash-in-hand {
        padding: 6px !important;
        margin-top: 6px !important;
    }
    
    .cash-in-hand > div:first-child > div:first-child {
        font-size: 0.6rem !important;
    }
    
    #kioskCashInHand {
        font-size: 1rem !important;
    }
    
    .cash-in-hand i {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Zone summary */
    .total-rev-card {
        padding: 6px !important;
        margin-bottom: 8px !important;
    }
    
    .total-rev-card > div:first-child {
        font-size: 0.6rem !important;
    }
    
    #kioskZoneTodayTotal {
        font-size: 1.1rem !important;
    }
    
    .total-rev-card > div:last-child {
        margin-top: 6px !important;
        font-size: 0.6rem !important;
    }
    
    /* Coin counter */
    .coin-counter-section > div {
        padding: 6px !important;
    }
    
    .coin-counter-section > div > div:first-child {
        margin-bottom: 4px !important;
    }
    
    .coin-counter-section > div > div:first-child > div:first-child {
        width: 26px !important;
        height: 26px !important;
    }
    
    .coin-counter-section > div > div:first-child > div:first-child i {
        width: 14px !important;
        height: 14px !important;
    }
    
    #workerCoinBalance {
        font-size: 1.1rem !important;
    }
    
    /* Day management buttons */
    .day-management-buttons {
        gap: 4px !important;
        margin: 8px 0 !important;
    }
    
    .day-management-buttons button {
        padding: 5px !important;
        font-size: 0.6rem !important;
        height: auto !important;
        min-height: 30px !important;
    }
    
    .day-management-buttons button i {
        width: 10px !important;
        height: 10px !important;
    }
    
    .day-management-buttons .info-text {
        font-size: 0.5rem !important;
        margin-top: 2px !important;
    }
    
    /* View All Transfers button */
    #kioskViewAllTransfersBtn {
        padding: 4px !important;
        font-size: 0.6rem !important;
    }
    
    #kioskViewAllTransfersBtn i {
        width: 10px !important;
        height: 10px !important;
    }
    
    /* Fix inventory grid - 4 items per row */
    #kioskInventoryGrid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }

    /* Make inventory cards smaller */
    #kioskInventoryGrid .inv-card {
        padding: 5px !important;
    }

    #kioskInventoryGrid .inv-header {
        gap: 4px !important;
        margin-bottom: 4px !important;
    }

    #kioskInventoryGrid .inv-header > div:first-child {
        width: 26px !important;
        height: 26px !important;
    }

    #kioskInventoryGrid .inv-header i {
        width: 14px !important;
        height: 14px !important;
    }
}

/* ========== GLOBAL ICON FIX FOR iOS 12 ========== */
/* Ensure Lucide icons load properly on iOS 12 */
.btn-group .action-btn i,
.action-btn i,
button i {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

/* Force icons to show */
.btn-group .action-btn svg,
.action-btn svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
}

/* Make all icon elements visible */
i[data-lucide],
svg[data-lucide] {
    display: inline-block !important;
}

.lucide {
    display: inline-block !important;
    stroke: currentColor !important;
    fill: none !important;
}
/* ========== FIX MISSING ICONS ON IPAD AIR 1 ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* Fix notification sound card icons */
    .sound-volume-control i,
    .sound-volume-control [data-lucide] {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    /* Volume icon low */
    .sound-volume-control [data-lucide="volume-x"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'%3E%3C/polygon%3E%3Cline x1='23' y1='9' x2='17' y2='15'%3E%3C/line%3E%3Cline x1='17' y1='9' x2='23' y2='15'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    .sound-volume-control [data-lucide="volume-2"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'%3E%3C/polygon%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'%3E%3C/path%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'%3E%3C/path%3E%3C/svg%3E") !important;
    }
    
    /* Fix inventory plus/minus buttons */
    .inventory-decrease-btn i,
    .inventory-increase-btn i {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    .inventory-decrease-btn i {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    .inventory-increase-btn i {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    /* Fix record transfer button icon */
    #kioskAddBankTransferBtn i,
    [data-lucide="plus"] {
        display: inline-block !important;
        width: 18px !important;
        height: 18px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    #kioskAddBankTransferBtn i,
    [data-lucide="plus"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    /* Fix view all transfers button icon */
    #kioskViewAllTransfersBtn i,
    [data-lucide="list"] {
        display: inline-block !important;
        width: 18px !important;
        height: 18px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    #kioskViewAllTransfersBtn i,
    [data-lucide="list"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='8' y1='18' x2='21' y2='18'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    /* Fix sync button icon */
    .sync-btn i,
    [data-lucide="refresh-ccw"] {
        display: inline-block !important;
        width: 18px !important;
        height: 18px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    .sync-btn i,
    [data-lucide="refresh-ccw"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8'%3E%3C/path%3E%3Cpath d='M21 3v5h-5'%3E%3C/path%3E%3Cpath d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16'%3E%3C/path%3E%3Cpath d='M3 21v-5h5'%3E%3C/path%3E%3C/svg%3E") !important;
    }
    
    /* Fix exit button icon */
    .reset-btn i,
    [data-lucide="log-out"] {
        display: inline-block !important;
        width: 18px !important;
        height: 18px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    .reset-btn i,
    [data-lucide="log-out"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'%3E%3C/path%3E%3Cpolyline points='16 17 21 12 16 7'%3E%3C/polyline%3E%3Cline x1='21' y1='12' x2='9' y2='12'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    /* Fix coin icon */
    [data-lucide="circle-dollar-sign"] {
        display: inline-block !important;
        width: 24px !important;
        height: 24px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    [data-lucide="circle-dollar-sign"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='6' x2='12' y2='18'%3E%3C/line%3E%3Cpath d='M8 12h8'%3E%3C/path%3E%3C/svg%3E") !important;
    }
}

/* ========== COMPLETE ICON FIX FOR IPAD AIR 1 ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* Hide all Lucide SVG elements and replace with background images */
    .inv-card [data-lucide],
    .inv-card svg,
    .inv-card i {
        font-size: 0 !important;
        color: transparent !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
        display: inline-block !important;
        width: 24px !important;
        height: 24px !important;
        border: none !important;
        outline: none !important;
    }
    
    /* Water icon (droplets) */
    .inv-card [data-lucide="droplets"],
    .inv-card [data-lucide="droplets"] svg,
    .inv-card i[class*="droplets"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300a8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'%3E%3C/path%3E%3C/svg%3E") !important;
    }
    
    /* Chips icon (cookie) */
    .inv-card [data-lucide="cookie"],
    .inv-card [data-lucide="cookie"] svg,
    .inv-card i[class*="cookie"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff9d00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'%3E%3C/path%3E%3Ccircle cx='8' cy='8' r='1'%3E%3C/circle%3E%3Ccircle cx='16' cy='16' r='1'%3E%3C/circle%3E%3C/svg%3E") !important;
    }
    
    /* Energy Drink icon (zap) */
    .inv-card [data-lucide="zap"],
    .inv-card [data-lucide="zap"] svg,
    .inv-card i[class*="zap"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'%3E%3C/polygon%3E%3C/svg%3E") !important;
    }
    
    /* Package icon (default) */
    .inv-card [data-lucide="package"],
    .inv-card [data-lucide="package"] svg,
    .inv-card i[class*="package"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='16.5' y1='9.4' x2='7.5' y2='4.21'%3E%3C/line%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'%3E%3C/path%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'%3E%3C/polyline%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    /* Coffee icon */
    .inv-card [data-lucide="coffee"],
    .inv-card [data-lucide="coffee"] svg {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b4513' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8h1a4 4 0 0 1 0 8h-1'%3E%3C/path%3E%3Cpath d='M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z'%3E%3C/path%3E%3Cline x1='6' y1='1' x2='6' y2='4'%3E%3C/line%3E%3Cline x1='10' y1='1' x2='10' y2='4'%3E%3C/line%3E%3Cline x1='14' y1='1' x2='14' y2='4'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    /* Beer icon */
    .inv-card [data-lucide="beer"],
    .inv-card [data-lucide="beer"] svg {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffaa00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 11h-2V7h2a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-2'%3E%3C/path%3E%3Cpath d='M13 5v14'%3E%3C/path%3E%3Cpath d='M8 5v14'%3E%3C/path%3E%3Cpath d='M3 5h14v14H3z'%3E%3C/path%3E%3C/svg%3E") !important;
    }
    
    /* Milk icon */
    .inv-card [data-lucide="milk"],
    .inv-card [data-lucide="milk"] svg {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2h8'%3E%3C/path%3E%3Cpath d='M9 2v2.789a4 4 0 0 1-.672 2.219l-.656.984A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-9.789a4 4 0 0 0-.672-2.219l-.656-.984A4 4 0 0 1 15 4.788V2'%3E%3C/path%3E%3Cpath d='M7 15a6.472 6.472 0 0 1 5 0 6.47 6.47 0 0 0 5 0'%3E%3C/path%3E%3C/svg%3E") !important;
    }
    
    /* Fix the icon container */
    .inv-card .inv-header > div:first-child {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        height: 48px !important;
        background: #070707 !important;
        border-radius: 12px !important;
        border: 1px solid #222 !important;
    }
    
    /* Ensure icons are visible */
    .inv-card .inv-header i,
    .inv-card .inv-header svg {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    /* Force hide any text that might appear */
    .inv-card .inv-header i::before,
    .inv-card .inv-header svg::before {
        display: none !important;
        content: none !important;
    }
}
/* ========== FIX BUTTON GAP AND DOT SPACING - NO FLEX ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* ===== FIX 1: GAP BETWEEN SAVE AND RESET BUTTONS ===== */
    .day-management-buttons {
        display: block !important;
        width: 100% !important;
    }
    
    .day-management-buttons button {
        display: block !important;
        width: 100% !important;
        padding: 12px !important;
        margin: 0 0 12px 0 !important; /* Bottom margin creates gap */
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    
    /* Remove bottom margin from last button */
    .day-management-buttons button:last-child {
        margin-bottom: 0 !important;
    }
    
    /* ===== FIX 2: GAP BETWEEN SESSION DOTS ===== */
    .session-dots {
        display: block !important;
    }
    
    .dot {
        display: inline-block !important;
        width: 10px !important; /* Slightly larger dots */
        height: 10px !important;
        margin-right: 6px !important; /* Creates gap between dots */
        vertical-align: middle !important;
    }
    
    /* Remove right margin from last dot */
    .dot:last-child {
        margin-right: 0 !important;
    }
    
    /* ===== FIX 3: BETTER INVENTORY CARD LAYOUT ===== */
    .inv-card {
        padding: 12px !important;
    }
    
    .stock-management {
        margin-top: 12px !important;
        padding: 10px !important;
    }
    
    .stock-row {
        display: block !important;
        overflow: hidden !important; /* Clearfix */
        padding: 6px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    .stock-row:last-child {
        border-bottom: none !important;
    }
    
    .stock-label {
        float: left !important;
        font-size: 0.75rem !important;
        color: #888 !important;
    }
    
    .stock-value {
        float: right !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: var(--cyan) !important;
    }
}
/* ========== FIX SESSION DOTS GAP - RELIABLE VERSION ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* ===== FIX 2: GAP BETWEEN SESSION DOTS ===== */
    .session-dots {
        display: block !important;
        font-size: 0 !important; /* Removes any extra spacing */
        line-height: 0 !important;
    }
    
    .dot {
        display: inline-block !important;
        width: 10px !important;
        height: 10px !important;
        margin: 0 4px 4px 0 !important; /* Right and bottom margin for gap and wrapping */
        vertical-align: middle !important;
        float: none !important;
        position: relative !important;
    }
    
    /* Optional: Add a little extra space at the end of each row */
    .dot-wrapper {
        display: inline-block !important;
        margin-right: 4px !important;
    }
    
    /* If dots are wrapped in wrapper divs */
    .session-dots > div,
    .session-dots > span {
        display: inline-block !important;
        margin-right: 4px !important;
        margin-bottom: 4px !important;
    }
    
    /* Clear any floats that might interfere */
    .station-content::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }
}
/* ========== FIX NOTIFICATION SOUND CARD LAYOUT ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* ===== FIX NOTIFICATION SOUND CARD ===== */
    .sound-volume-control {
        padding: 15px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Header section */
    .sound-volume-control > div:first-child {
        display: block !important;
        margin-bottom: 15px !important;
        overflow: hidden !important;
    }
    
    .sound-volume-control > div:first-child > div:first-child {
        float: left !important;
        width: 40px !important;
        height: 40px !important;
        margin-right: 12px !important;
    }
    
    .sound-volume-control > div:first-child > div:last-child {
        overflow: hidden !important;
    }
    
    .sound-volume-control > div:first-child > div:last-child > div:first-child {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: var(--cyan) !important;
        margin-bottom: 4px !important;
    }
    
    .sound-volume-control > div:first-child > div:last-child > div:last-child {
        font-size: 0.8rem !important;
        color: #888 !important;
    }
    
    /* Volume control row */
    .sound-volume-control > div:nth-child(2) {
        display: block !important;
        margin: 15px 0 !important;
        overflow: hidden !important;
    }
    
    /* Icons */
    .sound-volume-control [data-lucide="volume-x"],
    .sound-volume-control [data-lucide="volume-2"] {
        float: left !important;
        width: 20px !important;
        height: 20px !important;
        margin-top: 8px !important;
    }
    
    .sound-volume-control [data-lucide="volume-x"] {
        margin-right: 10px !important;
    }
    
    .sound-volume-control [data-lucide="volume-2"] {
        margin-left: 10px !important;
    }
    
    /* Volume slider */
    .sound-volume-control input[type="range"] {
        float: left !important;
        width: calc(100% - 80px) !important; /* Account for both icons */
        height: 6px !important;
        margin: 10px 0 !important;
    }
    
    /* Percentage and labels row */
    .sound-volume-control > div:nth-child(3) {
        display: block !important;
        margin: 10px 0 !important;
        overflow: hidden !important;
    }
    
    .sound-volume-control > div:nth-child(3) > span:first-child {
        float: left !important;
        font-size: 0.75rem !important;
        color: #888 !important;
    }
    
    .sound-volume-control > div:nth-child(3) > span:nth-child(2) {
        float: none !important;
        display: inline-block !important;
        margin: 0 auto !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: var(--cyan) !important;
        text-align: center !important;
        width: auto !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .sound-volume-control > div:nth-child(3) > span:last-child {
        float: right !important;
        font-size: 0.75rem !important;
        color: #888 !important;
    }
    
    /* Info footer */
    .sound-volume-control > div:last-child {
        display: block !important;
        margin-top: 15px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255,255,255,0.05) !important;
        overflow: hidden !important;
        clear: both !important;
    }
    
    .sound-volume-control > div:last-child i {
        float: left !important;
        width: 14px !important;
        height: 14px !important;
        margin-right: 8px !important;
        margin-top: 2px !important;
    }
    
    .sound-volume-control > div:last-child span {
        display: block !important;
        overflow: hidden !important;
        font-size: 0.75rem !important;
        color: #888 !important;
        line-height: 1.4 !important;
    }
    
    /* Fix any inline styles that might be causing issues */
    .sound-volume-control [style*="display: flex"] {
        display: block !important;
    }
    
    .sound-volume-control [style*="justify-content"] {
        justify-content: normal !important;
    }
    
    .sound-volume-control [style*="align-items"] {
        align-items: normal !important;
    }
    
    /* Ensure text is visible */
    .sound-volume-control div,
    .sound-volume-control span,
    .sound-volume-control label {
        font-family: 'Outfit', sans-serif !important;
        line-height: 1.4 !important;
    }
}
/* ========== FIX INVENTORY CARD SPACING ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* ===== FIX INVENTORY CARD LAYOUT ===== */
    .inv-card {
        padding: 15px !important;
        margin-bottom: 10px !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Header section with icon and text */
    .inv-card .inv-header {
        display: block !important;
        margin-bottom: 15px !important;
        overflow: hidden !important;
    }
    
    /* Icon container */
    .inv-card .inv-header > div:first-child {
        float: left !important;
        width: 56px !important;
        height: 56px !important;
        margin-right: 15px !important; /* Space between icon and text */
        background: #0a0a0a !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid #222 !important;
    }
    
    /* Text container */
    .inv-card .inv-header > div:last-child {
        overflow: hidden !important;
        padding-top: 4px !important;
    }
    
    /* Item name */
    .inv-card .inv-header > div:last-child > div:first-child {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        margin-bottom: 6px !important;
        color: white !important;
    }
    
    /* Price line */
    .inv-card .inv-header > div:last-child > div:nth-child(2) {
        font-size: 0.9rem !important;
        color: #888 !important;
        margin-bottom: 8px !important;
    }
    
    /* Price value */
    .inv-card .inv-header > div:last-child > div:nth-child(2) span {
        color: var(--cyan) !important;
        font-weight: 600 !important;
    }
    
    /* Stock status */
    .inv-card .inv-header > div:last-child > div:last-child {
        font-size: 0.8rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    /* Stock status colors */
    .inv-card .stock-ok {
        color: var(--green) !important;
    }
    
    .inv-card .stock-warning {
        color: var(--orange) !important;
    }
    
    /* Stock management section */
    .inv-card .stock-management {
        background: #0a0a0a !important;
        border-radius: 12px !important;
        padding: 15px !important;
        margin: 15px 0 !important;
        border: 1px solid #222 !important;
        clear: both !important;
        overflow: hidden !important;
    }
    
    /* Stock rows */
    .inv-card .stock-row {
        display: block !important;
        overflow: hidden !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    .inv-card .stock-row:last-child {
        border-bottom: none !important;
    }
    
    .inv-card .stock-label {
        float: left !important;
        font-size: 0.8rem !important;
        color: #888 !important;
        font-weight: 500 !important;
    }
    
    .inv-card .stock-value {
        float: right !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--cyan) !important;
    }
    
    /* Quantity control section */
    .inv-card .qty-control {
        display: block !important;
        overflow: hidden !important;
        background: #0a0a0a !important;
        border-radius: 12px !important;
        padding: 12px 15px !important;
        border: 1px solid #222 !important;
        margin-top: 10px !important;
    }
    
    .inv-card .qty-control > span:first-child {
        float: left !important;
        font-size: 0.75rem !important;
        color: #888 !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-top: 10px !important;
    }
    
    .inv-card .qty-control > div {
        float: right !important;
        display: block !important;
        overflow: hidden !important;
    }
    
    .inv-card .qty-control > div > button {
        float: left !important;
        width: 36px !important;
        height: 36px !important;
        margin: 0 5px !important;
        background: rgba(0, 229, 255, 0.1) !important;
        border: 1px solid rgba(0, 229, 255, 0.2) !important;
        border-radius: 8px !important;
        cursor: pointer !important;
    }
    
    .inv-card .qty-control > div > span {
        float: left !important;
        min-width: 40px !important;
        text-align: center !important;
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        color: white !important;
        line-height: 36px !important;
    }
    
    /* Fix for plus/minus icons */
    .inv-card .inventory-decrease-btn i,
    .inv-card .inventory-increase-btn i {
        display: block !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 auto !important;
    }
    
    /* Restock button if present */
    .inv-card .restock-btn {
        display: block !important;
        width: 100% !important;
        padding: 12px !important;
        margin-top: 10px !important;
        background: var(--green) !important;
        color: black !important;
        border: none !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        text-align: center !important;
        clear: both !important;
    }
}
/* ========== FIX NOTE INDICATOR - MAKE IT COMPACT ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* Reset the note indicator to be compact like first image */
    .dot.has-note {
        position: relative !important;
    }
    
    /* Simple single ring - not double circle */
    .dot.has-note::after {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 12px !important;  /* Just over dot size */
        height: 12px !important; /* Just over dot size */
        border: 1.5px solid var(--cyan) !important; /* Thinner border */
        border-radius: 50% !important;
        z-index: 2 !important;
        pointer-events: none !important;
        box-sizing: border-box !important;
    }
    
    
    
    /* Make the dot itself smaller to match first image */
    .dot {
        width: 8px !important;
        height: 8px !important;
        margin-right: 4px !important;
    }
    
    /* Green dot for confirmed sessions */
    .dot.green {
        background: var(--green) !important;
        box-shadow: 0 0 8px rgba(0, 255, 157, 0.4) !important;
    }
    
    /* Dark dot for active sessions */
    .dot.dark {
        border: 2px solid #666 !important;
        background: transparent !important;
    }
    
    /* Ensure the wrapper doesn't add extra space */
    .dot-wrapper {
        display: inline-block !important;
        margin-right: 4px !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }
}
/* ========== FIX TIMER EXPIRED NOTIFICATION ICON ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* Custom notification icon */
    .custom-notification .notification-icon {
        display: inline-block !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 24px !important;
        flex-shrink: 0 !important;
    }
    
    /* Warning icon for timer expired */
    .custom-notification .notification-icon.warning {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff8c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v6'%3E%3C/path%3E%3Ccircle cx='12' cy='17' r='1'%3E%3C/circle%3E%3Cpath d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z'%3E%3C/path%3E%3C/svg%3E") !important;
        background-color: rgba(255, 140, 0, 0.15) !important;
        border: 1px solid var(--orange) !important;
    }
    
    /* Success icon */
    .custom-notification .notification-icon.success {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300ff9d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-color: rgba(0, 255, 157, 0.15) !important;
        border: 1px solid var(--green) !important;
    }
    
    /* Error icon */
    .custom-notification .notification-icon.error {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff3b3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") !important;
        background-color: rgba(255, 59, 59, 0.15) !important;
        border: 1px solid var(--red) !important;
    }
    
    /* Info icon */
    .custom-notification .notification-icon.info {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E") !important;
        background-color: rgba(0, 229, 255, 0.15) !important;
        border: 1px solid var(--cyan) !important;
    }
    
    /* Hide any existing icon content */
    .custom-notification .notification-icon i,
    .custom-notification .notification-icon svg {
        display: none !important;
    }
    
    /* Ensure notification layout is correct */
    .custom-notification {
        display: flex !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 20px !important;
        background: #0f0f0f !important;
        border: 1px solid #222 !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.7) !important;
    }
    
    .custom-notification .notification-content {
        flex: 1 !important;
    }
    
    .custom-notification .notification-title {
        font-family: 'Outfit', sans-serif !important;
        font-weight: 600 !important;
        margin-bottom: 5px !important;
        font-size: 1rem !important;
    }
    
    .custom-notification .notification-message {
        font-size: 0.9rem !important;
        color: var(--text-dim) !important;
        line-height: 1.4 !important;
    }
    
    .custom-notification .notification-close {
        background: none !important;
        border: none !important;
        color: #666 !important;
        cursor: pointer !important;
        padding: 5px !important;
        font-size: 1.2rem !important;
        align-self: flex-start !important;
    }
}
/* ========== REMOVE NOTIFICATION SOUND CARD ICON AND EXPAND SLIDER ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* Hide the volume icon */
    .sound-volume-control [data-lucide="volume-2"],
    .sound-volume-control [data-lucide="volume-x"],
    .sound-volume-control > div:first-child > div:first-child {
        display: none !important;
    }
    
    /* Make the header take full width */
    .sound-volume-control > div:first-child {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    /* Expand the text to full width - LEFT ALIGN */
    .sound-volume-control > div:first-child > div:last-child {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: left !important;
    }
    
    /* Make the slider row take full width - SHOW ICONS */
    .sound-volume-control > div:nth-child(2) {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    /* SHOW the volume icons on the sides */
    .sound-volume-control [data-lucide="volume-x"],
    .sound-volume-control [data-lucide="volume-2"] {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
        flex-shrink: 0 !important;
    }
    
    /* Mute icon */
    .sound-volume-control [data-lucide="volume-x"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'%3E%3C/polygon%3E%3Cline x1='23' y1='9' x2='17' y2='15'%3E%3C/line%3E%3Cline x1='17' y1='9' x2='23' y2='15'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    /* Loud icon */
    .sound-volume-control [data-lucide="volume-2"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'%3E%3C/polygon%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'%3E%3C/path%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'%3E%3C/path%3E%3C/svg%3E") !important;
    }
    
    /* Make the slider take full width */
    .sound-volume-control input[type="range"] {
        width: 100% !important;
        margin: 0 !important;
        flex: 1 !important;
    }
    
    /* Show the percentage display */
    .sound-volume-control > div:nth-child(3) {
        display: block !important;
        margin: 10px 0 !important;
        text-align: center !important;
    }
    
    /* Hide the "Mute" and "Max" labels */
    .sound-volume-control > div:nth-child(3) > span:first-child,
    .sound-volume-control > div:nth-child(3) > span:last-child {
        display: none !important;
    }
    
    /* Show the percentage */
    .sound-volume-control > div:nth-child(3) > span:nth-child(2) {
        display: inline-block !important;
        margin: 0 auto !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--cyan) !important;
    }
    
    /* Make the info text full width and centered */
    .sound-volume-control > div:last-child {
        text-align: center !important;
        margin-top: 15px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    .sound-volume-control > div:last-child i {
        display: none !important;
    }
    
    .sound-volume-control > div:last-child span {
        display: block !important;
        width: 100% !important;
        font-size: 0.75rem !important;
        color: #888 !important;
    }
}
/* ========== CREATE GAPS BETWEEN INVENTORY CARDS - NO FLEX ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* Target the inventory grid container */
    #kioskInventoryGrid,
    .inventory-grid {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Style each inventory card */
    #kioskInventoryGrid .inv-card,
    .inventory-grid .inv-card {
        display: block !important;
        width: calc(33.333% - 10px) !important; /* 3 cards per row */
        margin-right: 15px !important; /* Horizontal gap */
        margin-bottom: 15px !important; /* Vertical gap */
        float: left !important; /* Use float for layout */
        box-sizing: border-box !important;
    }
    
    /* Remove right margin from every 4th card */
    #kioskInventoryGrid .inv-card:nth-child(4n),
    .inventory-grid .inv-card:nth-child(4n) {
        margin-right: 0 !important;
    }
    
    /* Clear float after each row */
    #kioskInventoryGrid::after,
    .inventory-grid::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }
}

/* ========== REMOVE BLUE BORDER FROM INVENTORY CARDS ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* Remove blue border from all inventory cards */
    .inv-card {
        border: 1px solid #222 !important; /* Change to subtle gray border */
        box-shadow: none !important;
        outline: none !important;
    }
    
    /* Remove any hover effects that add blue */
    .inv-card:hover {
        border-color: #333 !important; /* Darker gray on hover, not blue */
        box-shadow: none !important;
    }
    
    /* Remove blue border from enabled cards */
    .inv-card.enabled {
        border-color: #222 !important; /* Keep consistent with disabled cards */
        box-shadow: none !important;
    }
    
    /* Remove any cyan-colored borders */
    .inv-card .inv-header > div:first-child {
        border-color: #222 !important; /* Icon container border */
    }
    
    /* Remove any cyan text colors if you want (optional) */
    .inv-card .stock-value {
        color: #ccc !important; /* Change from cyan to light gray */
    }
    
    /* Keep status colors but remove blue */
    .inv-card .stock-ok {
        color: #888 !important; /* Change from green to gray */
    }
    
    .inv-card .stock-warning {
        color: var(--orange) !important; /* Keep orange for warnings */
    }
}

/* ========== FIX INVENTORY CARD - KEEP BLUE NUMBERS, ADD ICON ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* Keep stock numbers blue */
    .inv-card .stock-value {
        color: var(--cyan) !important; /* Keep cyan color */
        font-size: 1rem !important;
        font-weight: 700 !important;
    }
    
    /* Keep SOLD TODAY numbers blue */
    .inv-card .stock-row .stock-value {
        color: var(--cyan) !important;
    }
    
    /* Fix "In stock" icon and text */
    .inv-card .stock-ok,
    .inv-card [class*="stock-ok"] {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: var(--green) !important;
        font-size: 0.8rem !important;
    }
    
    /* Add check circle icon for "In stock" */
    .inv-card .stock-ok::before,
    .inv-card [class*="stock-ok"]::before {
        content: '' !important;
        display: inline-block !important;
        width: 14px !important;
        height: 14px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300ff9d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
        margin-right: 4px !important;
    }
    
    /* For "Low stock" warning */
    .inv-card .stock-warning,
    .inv-card [class*="stock-warning"] {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: var(--orange) !important;
    }
    
    .inv-card .stock-warning::before {
        content: '' !important;
        display: inline-block !important;
        width: 14px !important;
        height: 14px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff8c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v6'%3E%3C/path%3E%3Ccircle cx='12' cy='17' r='1'%3E%3C/circle%3E%3Cpath d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z'%3E%3C/path%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
        margin-right: 4px !important;
    }
    
    /* For "Out of stock" */
    .inv-card .stock-warning:contains("Out"),
    .inv-card [class*="stock-warning"]:contains("Out") {
        color: var(--red) !important;
    }
    
    .inv-card .stock-warning:contains("Out")::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff3b3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") !important;
    }
    
    /* If the stock status is inside a div with specific ID or class */
    #kioskInventoryGrid .stock-ok,
    #kioskInventoryGrid .stock-warning {
        display: flex !important;
        align-items: center !important;
    }
    
    /* Hide any existing icon that might be broken */
    .inv-card .stock-ok i,
    .inv-card .stock-warning i,
    .inv-card .stock-ok svg,
    .inv-card .stock-warning svg {
        display: none !important;
    }
}
/* ========== FIX AUTH BUTTON SPACING AND AUTOCOMPLETE ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* ===== FIX 1: ADD GAPS BETWEEN AUTH BUTTONS ===== */
    .auth-action-buttons {
        display: block !important;
        margin-top: 25px !important;
    }
    
    .auth-action-btn {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px !important; /* Creates gap between buttons */
        padding: 16px !important;
        text-align: center !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
    }
    
    /* Remove margin from last button */
    .auth-action-btn:last-child {
        margin-bottom: 0 !important;
    }
    
    /* ===== FIX 2: ENABLE AUTOCOMPLETE ON IPAD AIR ===== */
    /* Force input fields to support autocomplete */
    #loginIdentifier,
    #loginPin,
    #workerPin,
    #workerOwnerEmail,
    #regUsername,
    #regPin,
    #regEmail,
    #adminEmail,
    #adminPassword {
        -webkit-appearance: none !important;
        appearance: none !important;
        font-size: 16px !important; /* Prevents zoom on focus */
        background-color: #000 !important;
        color: white !important;
        border: 1px solid #333 !important;
        border-radius: 8px !important;
        padding: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure autocomplete attributes are respected */
    input[autocomplete="on"],
    input[autocomplete="email"],
    input[autocomplete="tel"],
    input[autocomplete="username"] {
        -webkit-text-security: none !important;
        text-security: none !important;
    }
    
    /* Force iOS to show autocomplete suggestions */
    #loginIdentifier::-webkit-contacts-auto-fill-button,
    #loginPin::-webkit-contacts-auto-fill-button,
    #workerPin::-webkit-contacts-auto-fill-button,
    #workerOwnerEmail::-webkit-contacts-auto-fill-button {
        visibility: hidden !important;
        display: none !important;
    }
    
    /* Add background color to inputs when autofilled */
    #loginIdentifier:-webkit-autofill,
    #loginPin:-webkit-autofill,
    #workerPin:-webkit-autofill,
    #workerOwnerEmail:-webkit-autofill,
    #regUsername:-webkit-autofill,
    #regPin:-webkit-autofill,
    #regEmail:-webkit-autofill,
    #adminEmail:-webkit-autofill,
    #adminPassword:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 30px #000 inset !important;
        -webkit-text-fill-color: white !important;
        caret-color: white !important;
        border-color: var(--cyan) !important;
    }
    
    /* Ensure the auth card has proper spacing */
    .auth-card {
        padding: 30px 25px !important;
        max-width: 450px !important;
        margin: 0 auto !important;
    }
    
    /* Add some breathing room between input groups */
    .input-group {
        margin-bottom: 20px !important;
    }
}
/* ========== IPAD AIR 1 SPECIFIC FIXES ========== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
    
    /* Fix 1: Add gap between "Gaming Stations" title and blue "9 stations" badge */
    .section-header {
        display: block !important;
        margin-bottom: 20px !important;
        overflow: hidden !important;
    }
    
    .section-header h2 {
        float: left !important;
        margin-right: 15px !important;
        font-size: 1.5rem !important;
    }
    
    .section-header span {
        float: left !important;
        margin-top: 5px !important;
        padding: 4px 12px !important;
        background: var(--cyan) !important;
        color: black !important;
        border-radius: 20px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
    }
    
    /* Fix 2: Make "Confirmed Games - Mobile Banking Transfers" text smaller and left-aligned */
    .cash-in-hand > div:last-child {
        text-align: left !important;
        font-size: 0.7rem !important;
        color: #888 !important;
        margin-top: 5px !important;
        line-height: 1.3 !important;
    }
    
    /* Fix 3: Make notification sound title same size as other titles */
    .sound-volume-control > div:first-child > div:last-child > div:first-child {
        font-size: 0.8rem !important;
        color: var(--cyan) !important; /* Changed back to blue */
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 4px !important;
    }
    
    .sound-volume-control > div:first-child > div:last-child > div:last-child {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: white !important;
    }
    
    /* Match Zone Summary title style */
    .sidebar-title {
        font-size: 0.8rem !important;
        color: #888 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 15px !important;
        border-left: 4px solid var(--cyan) !important;
        padding-left: 12px !important;
    }
    
    /* Ensure Cash in Hand title matches */
    .cash-in-hand > div:first-child > div:first-child {
        font-size: 0.8rem !important;
        color: #888 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
}

/* Revenue Visibility Toggle Button */
.revenue-visibility-toggle {
    transition: all 0.2s ease;
}

.revenue-visibility-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.1);
}

.revenue-visibility-toggle:active {
    transform: scale(0.95);
}

/* Blur effect for hidden revenue */
.revenue-blurred {
    filter: blur(8px);
    user-select: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.revenue-blurred:hover {
    filter: blur(6px);
}

/* Hidden station card values: skeleton shimmer bar — zero clue about the amount */
.station .station-unpaid-value {
    color: var(--text-main);
}
.station .station-unpaid-value.revenue-blurred,
.station .station-total-value.revenue-blurred {
    position: relative;
    color: transparent;
    user-select: none;
}
.station .station-unpaid-value.revenue-blurred::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(90px, 100%);
    min-width: 45px;
    height: 0.85em;
    border-radius: 5px;
    background: linear-gradient(90deg, #2a2a2a 25%, #454545 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: gtSkeletonShimmer 1.4s infinite linear;
}
.station .station-total-value.revenue-blurred::after {
    content: '';
    position: absolute;
    right: 0;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: min(90px, 100%);
    height: 0.85em;
    border-radius: 5px;
    background: linear-gradient(90deg, #2a2a2a 25%, #454545 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: gtSkeletonShimmer 1.4s infinite linear;
}
@keyframes gtSkeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Today's Transfers (sidebar) — same skeleton shimmer as station card values */
#kioskTodayBankTotal.revenue-blurred {
    position: relative;
    color: transparent !important;
    user-select: none;
}
#kioskTodayBankTotal.revenue-blurred span {
    color: transparent !important;
}
#kioskTodayBankTotal.revenue-blurred::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(90px, 100%);
    min-width: 45px;
    height: 0.85em;
    border-radius: 5px;
    background: linear-gradient(90deg, #2a2a2a 25%, #454545 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: gtSkeletonShimmer 1.4s infinite linear;
}

/* Today's Revenue, Cash in Hand, Petty Cash (sidebar) — same skeleton shimmer */
#kioskZoneTodayTotal.revenue-blurred,
#kioskCashInHand.revenue-blurred,
#kioskPettyCashAmount.revenue-blurred {
    position: relative;
    color: transparent !important;
    user-select: none;
}
#kioskZoneTodayTotal.revenue-blurred span,
#kioskCashInHand.revenue-blurred span {
    color: transparent !important;
}
#kioskZoneTodayTotal.revenue-blurred::after,
#kioskCashInHand.revenue-blurred::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(90px, 100%);
    min-width: 45px;
    height: 0.85em;
    border-radius: 5px;
    background: linear-gradient(90deg, #2a2a2a 25%, #454545 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: gtSkeletonShimmer 1.4s infinite linear;
}
#kioskZoneTodayTotal.revenue-blurred::after {
    width: min(120px, 100%);
}
#kioskPettyCashAmount.revenue-blurred::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(90px, 100%);
    min-width: 45px;
    height: 0.85em;
    border-radius: 5px;
    background: linear-gradient(90deg, #2a2a2a 25%, #454545 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: gtSkeletonShimmer 1.4s infinite linear;
}

/* Optional: Add a subtle overlay when blurred */
.revenue-container {
    position: relative;
    transition: all 0.2s ease;
}

/* Total Unpaid styling */
#kioskTotalUnpaid {
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 0.875rem;
}

.total-unpaid-warning {
    animation: pulseWarning 1.5s infinite;
}

@keyframes pulseWarning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Bank Transfers Card - Clickable */
.bank-transfers-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bank-transfers-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple) !important;
    box-shadow: 0 10px 30px rgba(155, 77, 255, 0.2);
}

.bank-transfers-card:active {
    transform: translateY(-2px);
}

/* Loading state for bank transfers card */
.bank-transfers-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.bank-transfers-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 2px solid var(--purple);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Period badge animation */
#bankTransfersPeriodIndicator {
    transition: all 0.2s ease;
}

.bank-transfers-card:hover #bankTransfersPeriodIndicator {
    background: rgba(155, 77, 255, 0.3);
}

/* PIN Toggle Button Styles */
.pin-toggle-btn {
    transition: all 0.2s ease;
}

.pin-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.05);
}

.pin-toggle-btn:active {
    transform: scale(0.95);
}

/* Focus state for PIN inputs */
input[type="password"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.1);
}

/* Ensure the input and button align properly */
.input-group .pin-toggle-btn {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* For the zone PIN display (non-input field) */
#toggleZonePinVisibilityBtn {
    transition: all 0.2s ease;
}

#toggleZonePinVisibilityBtn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ========== SETTINGS TABS ========== */
.settings-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: #0a0a0a;
    border-radius: 14px;
    border: 1px solid #1a1a1a;
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.settings-tabs::-webkit-scrollbar {
    display: none;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #666;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    position: relative;
}

.settings-tab:hover {
    color: #aaa;
    background: rgba(255, 255, 255, 0.04);
}

.settings-tab.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(0, 229, 255, 0.05) 100%);
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 2px 12px rgba(0, 229, 255, 0.1);
}

.settings-tab.active i {
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.5));
}

/* ========== SETTINGS PAGES ========== */
.settings-page {
    display: none;
    animation: settingsPageIn 0.3s ease;
}

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

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

/* Sound cards grid (Reminder + Timer Expiration) */
.sound-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* Mobile settings tabs - 2x3 grid */
@media (max-width: 767px) {
    .settings-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px;
        padding: 4px;
        border-radius: 12px;
        margin-bottom: 20px;
        overflow-x: hidden;
    }

    .settings-tab {
        padding: 10px 12px;
        font-size: 0.8rem;
        gap: 6px;
        border-radius: 8px;
        justify-content: center;
    }

    .settings-tab i {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Tablet settings tabs */
@media (min-width: 768px) and (max-width: 1023px) {
    .settings-tabs {
        gap: 5px;
        margin-bottom: 25px;
    }

    .settings-tab {
        padding: 11px 16px;
        font-size: 0.85rem;
    }
}

/* ========== FIRE HD 10 & SIMILAR TABLETS — 960px+ LANDSCAPE ========== */
/* Amazon Fire HD 10 7th Gen: 1920×1200 physical, ~960×600 CSS viewport landscape */
@media (min-width: 960px) and (max-width: 1023px) and (orientation: landscape) {
    body {
        padding: 18px;
        max-width: 100vw;
        overflow-x: hidden;
    overflow-x: clip;
        box-sizing: border-box;
    }

    /* 4 station cards + narrow sidebar */
    .dashboard-main {
        grid-template-columns: 1fr 200px !important;
        gap: 12px !important;
    }

    .dashboard-main > div:first-child {
        min-width: 0;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }

    /* Compact sidebar */
    .sidebar {
        position: sticky;
        top: 20px;
        padding: 8px;
    }

    .sidebar .total-rev-card {
        padding: 6px;
        margin-bottom: 8px;
    }

    .sidebar .total-rev-amt {
        font-size: 1.1rem;
    }

    .sidebar h3.sidebar-title {
        font-size: 0.75rem;
    }

    .sidebar .total-rev-card > div:first-child {
        font-size: 0.6rem;
    }

    .sidebar .total-rev-card > div:last-child {
        margin-top: 6px;
        font-size: 0.6rem;
    }

    /* Compact station cards */
    .station {
        padding: 0;
    }

    .station-header {
        padding: 8px 6px;
    }

    .station-name {
        font-size: 0.95rem;
    }

    .console-badge {
        font-size: 0.55rem;
        padding: 2px 5px;
    }

    .total-amount {
        font-size: 0.85rem;
    }

    .total-amount span {
        font-size: 0.55rem;
    }

    .status-bar {
        padding: 4px;
        font-size: 0.65rem;
    }

    .station-content {
        padding: 6px;
        min-height: 50px;
    }

    .session-dots {
        gap: 3px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.has-note::after {
        width: 12px;
        height: 12px;
        border: 1.5px solid var(--cyan);
        border-radius: 50%;
        box-sizing: border-box;
    }

    .station-footer {
        padding: 4px;
    }

    .btn-group .action-btn {
        padding: 0;
        height: 26px;
        width: 26px;
        min-width: 26px;
        border-radius: 5px;
        font-size: 0;
    }

    .btn-group .action-btn + .action-btn {
        margin-left: 8px;
    }

    .btn-group .action-btn i,
    .action-btn i,
    button i {
        display: inline-block;
        width: 16px;
        height: 16px;
        margin: 0;
    }

    .btn-group .action-btn svg,
    .action-btn svg {
        display: block;
        width: 16px;
        height: 16px;
    }

    /* Compact nav */
    .top-nav {
        gap: 12px;
        margin-bottom: 18px;
    }

    .nav-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .active-sessions-wrapper {
        padding-left: 15px;
        min-width: 120px;
        gap: 12px;
    }

    .active-sessions-count {
        font-size: 1.6rem;
        min-width: 60px;
    }

    /* Compact inventory */
    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bottom-section {
        grid-template-columns: 2fr 1fr;
    }

    /* Compact the rev card */
    .rev-card-dash {
        padding: 18px;
    }

    /* ===== COMPACT SIDEBAR CONTENT (tablet parity) ===== */
    .sidebar-title i {
        width: 14px;
        height: 14px;
    }

    #kioskPettyCashAmount {
        font-size: 0.9rem;
        padding: 6px;
        margin-bottom: 8px;
    }

    .banking-section {
        margin-bottom: 8px;
    }

    .banking-section .input-group {
        margin-bottom: 4px;
    }

    .banking-section label {
        font-size: 0.6rem;
        margin-bottom: 2px;
    }

    #kioskBankSelectContainer {
        max-height: 70px;
    }

    #kioskBankSelectContainer label {
        padding: 3px 5px;
        font-size: 0.55rem;
        gap: 3px;
        border-radius: 4px;
    }

    #kioskBankSelectContainer label span {
        font-size: 0.55rem;
    }

    #kioskBankSelectContainer label input[type="radio"] {
        transform: scale(0.55);
        margin: 0;
    }

    #kioskBankAmount,
    #kioskBankDescription {
        padding: 3px;
        font-size: 0.55rem;
    }

    #kioskAddBankTransferBtn {
        padding: 5px;
        font-size: 0.65rem;
        margin-bottom: 6px;
        height: auto;
    }

    #kioskAddBankTransferBtn i {
        width: 12px;
        height: 12px;
    }

    .banking-summary {
        padding-top: 4px;
    }

    .banking-summary > div:first-child {
        margin-bottom: 4px;
    }

    .banking-summary > div:first-child > div:first-child {
        font-size: 0.6rem;
    }

    #kioskTodayBankTotal {
        font-size: 0.8rem;
    }

    #kioskRecentTransfersList {
        max-height: 50px;
        font-size: 0.6rem;
    }

    #kioskRecentTransfersList > div {
        padding: 2px 0;
    }

    .cash-in-hand {
        padding: 6px;
        margin-top: 6px;
    }

    .cash-in-hand > div:first-child > div:first-child {
        font-size: 0.6rem;
    }

    #kioskCashInHand {
        font-size: 1rem;
    }

    .cash-in-hand i {
        width: 18px;
        height: 18px;
    }

    .coin-counter-section > div {
        padding: 6px;
    }

    .coin-counter-section > div > div:first-child {
        margin-bottom: 4px;
    }

    .coin-counter-section > div > div:first-child > div:first-child {
        width: 26px;
        height: 26px;
    }

    .coin-counter-section > div > div:first-child > div:first-child i {
        width: 14px;
        height: 14px;
    }

    #workerCoinBalance {
        font-size: 1.1rem;
    }

    .day-management-buttons {
        gap: 4px;
        margin: 8px 0;
    }

    .day-management-buttons button {
        padding: 5px;
        font-size: 0.6rem;
        height: auto;
        min-height: 30px;
    }

    .day-management-buttons button i {
        width: 10px;
        height: 10px;
    }

    .day-management-buttons .info-text {
        font-size: 0.5rem;
        margin-top: 2px;
    }

    #kioskViewAllTransfersBtn {
        padding: 4px;
        font-size: 0.6rem;
    }

    #kioskViewAllTransfersBtn i {
        width: 10px;
        height: 10px;
    }

    /* ===== COMPACT SIDEBAR INVENTORY (tablet parity) ===== */
    #kioskInventoryGrid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    #kioskInventoryGrid .inv-card {
        padding: 5px;
    }

    #kioskInventoryGrid .inv-header {
        gap: 4px;
        margin-bottom: 4px;
    }

    #kioskInventoryGrid .inv-header > div:first-child {
        width: 26px;
        height: 26px;
    }

    #kioskInventoryGrid .inv-header i {
        width: 14px;
        height: 14px;
    }
}

/* Also ensure the existing 768-1023 tablet landscape gets proper treatment */
@media (min-width: 768px) and (max-width: 959px) and (orientation: landscape) {
    .dashboard-main {
        grid-template-columns: 1fr 220px;
        gap: 15px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sidebar {
        position: sticky;
        top: 20px;
    }

    .station-header {
        padding: 10px 12px;
    }

    .station-name {
        font-size: 1rem;
    }

    .station-content {
        padding: 10px;
        min-height: 50px;
    }

    .station-footer {
        padding: 8px 10px;
    }

    .btn-group .action-btn {
        padding: 6px;
        height: 36px;
        font-size: 0.8rem;
    }
}

/* ========== FINANCE / EXPENSE TRACKING ========== */
#finance {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.finance-header {
    padding: 0 20px;
    margin-bottom: 25px;
}
.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 20px;
    margin-bottom: 20px;
}
.finance-summary-card {
    background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #222;
    border-left: 3px solid;
    position: relative;
    overflow: hidden;
}
.finance-summary-label {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.finance-summary-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}
.finance-summary-sub {
    font-size: 0.7rem;
    color: #888;
    margin-top: 6px;
}

/* Recurring Bills Section */
.finance-recurring-section {
    margin: 0 20px 20px 20px;
    border: 1px solid #222;
    border-radius: 16px;
    overflow: hidden;
    background: #0f0f0f;
}
.finance-recurring-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.finance-recurring-header:hover {
    background: rgba(255,255,255,0.03);
}
.finance-recurring-toggle {
    font-size: 0.7rem;
    color: #888;
    transition: transform 0.2s;
    width: 12px;
}
.finance-recurring-toggle.open {
    transform: rotate(90deg);
}
.finance-recurring-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ccc;
    letter-spacing: 1px;
}
.finance-recurring-total {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--orange);
}
.finance-recurring-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.finance-recurring-body.open {
    max-height: 600px;
}
.finance-recurring-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-top: 1px solid #1a1a1a;
}
.finance-recurring-item:hover {
    background: rgba(255,255,255,0.02);
}
.finance-recurring-item-name {
    flex: 1;
    font-size: 0.85rem;
    color: #ddd;
}
.finance-recurring-item-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange);
    min-width: 70px;
    text-align: right;
}
.finance-recurring-item-desc {
    font-size: 0.7rem;
    color: #666;
    flex: 0 0 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.finance-recurring-toggle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #333;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    padding: 0;
    transition: all 0.2s;
}
.finance-recurring-toggle-btn.active {
    border-color: #00ff9d;
    background: rgba(0,255,157,0.1);
}
.finance-recurring-toggle-btn.inactive {
    border-color: #555;
}
.finance-recurring-toggle-btn.inactive::after {
    content: '';
    width: 10px;
    height: 2px;
    background: #555;
    border-radius: 1px;
}
.finance-recurring-toggle-btn.active::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #00ff9d;
    border-radius: 50%;
}
.finance-recurring-item-actions {
    display: flex;
    gap: 4px;
}
.finance-recurring-item-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.finance-recurring-item-actions button:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.finance-recurring-item-actions button.danger:hover {
    color: #ff6b6b;
}
.finance-recurring-item-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.finance-recurring-item-edit input {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
}
.finance-recurring-item-edit input:focus {
    border-color: var(--cyan);
}
.finance-recurring-item-edit .name-input {
    flex: 1;
}
.finance-recurring-item-edit .amount-input {
    max-width: 100px;
}
.finance-recurring-item-edit-actions {
    display: flex;
    gap: 4px;
}
.finance-recurring-item-edit-actions button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.finance-recurring-item-edit-actions button.save {
    color: var(--cyan);
}
.finance-recurring-item-edit-actions button.save:hover {
    background: rgba(0,255,255,0.1);
}
.finance-recurring-item-edit-actions button.cancel {
    color: #888;
}
.finance-recurring-item-edit-actions button.cancel:hover {
    background: rgba(255,255,255,0.05);
}
.finance-recurring-add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #1a1a1a;
    flex-wrap: wrap;
}
.finance-recurring-add input {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    flex: 1;
    min-width: 120px;
}
.finance-recurring-add input:focus {
    border-color: var(--cyan);
}
.finance-recurring-add input::placeholder {
    color: #555;
}
.finance-recurring-add .finance-btn {
    white-space: nowrap;
}

.finance-action-row {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 20px;
}
.finance-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.finance-btn.primary {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
}
.finance-btn.primary:hover {
    filter: brightness(1.2);
}
.finance-btn.secondary {
    background: #181818;
    color: #ccc;
    border-color: #333;
}
.finance-btn.secondary:hover {
    border-color: #555;
    color: #fff;
}
.finance-btn.small {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
}
.finance-form {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 16px;
    margin: 0 20px 20px 20px;
    overflow: hidden;
}
.finance-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #222;
}
.finance-form-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.finance-form-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.finance-form-close:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.finance-form-body {
    padding: 20px;
}
.finance-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.finance-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.finance-form-group label {
    font-size: 0.75rem;
    color: #888;
}
.finance-quick-amounts {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.finance-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'Space Grotesk', monospace;
    cursor: pointer;
    transition: all 0.15s;
}
.finance-chip:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #000;
}
.finance-form-group input,
.finance-form-group select {
    background: #181818;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.finance-form-group input:focus,
.finance-form-group select:focus {
    border-color: var(--cyan);
}
.finance-panel {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 16px;
    margin: 0 20px 20px 20px;
    padding: 20px;
}
.finance-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.finance-panel-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.finance-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.finance-category-card {
    background: #181818;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.finance-category-card:hover {
    border-color: #555;
}
.finance-category-card .cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.finance-category-card .cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.finance-category-card .cat-name {
    font-size: 0.85rem;
    font-weight: 600;
    flex: 1;
}
.finance-category-card .cat-budget {
    font-size: 0.7rem;
    color: #888;
}
.finance-category-card .cat-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
.finance-category-card .cat-actions button {
    background: none;
    border: 1px solid #333;
    color: #888;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}
.finance-category-card .cat-actions button:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}
.finance-category-card .cat-actions button.danger:hover {
    border-color: #ff3b3b;
    color: #ff3b3b;
}
.finance-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.finance-modal-content {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 20px;
    width: 440px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}
.finance-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #222;
}
.finance-modal-header h3 {
    font-size: 1.05rem;
}
.finance-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.finance-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}
.finance-icon-picker {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.finance-icon-option {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #181818;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}
.finance-icon-option:hover {
    border-color: #555;
}
.finance-icon-option.selected {
    border-color: var(--cyan);
    background: rgba(0,229,255,0.1);
}
.finance-color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.finance-color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.finance-color-option:hover {
    transform: scale(1.15);
}
.finance-color-option.selected {
    border-color: #fff;
    transform: scale(1.15);
}
.finance-section-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 16px;
    margin: 0 20px 20px 20px;
    padding: 20px;
}
.finance-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.finance-section-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.finance-filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.finance-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.finance-filter-group label {
    font-size: 0.7rem;
    color: #888;
}
.finance-filter-group input,
.finance-filter-group select {
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 7px 10px;
    color: #fff;
    font-size: 0.8rem;
    outline: none;
}
.finance-filter-group input:focus,
.finance-filter-group select:focus {
    border-color: var(--cyan);
}
.finance-expense-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.finance-list-empty {
    text-align: center;
    color: #666;
    padding: 30px 20px;
    font-size: 0.85rem;
}
.finance-expense-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    align-items: center;
    background: #181818;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s;
}
.finance-expense-item:hover {
    border-color: #333;
}
.finance-expense-item .exp-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.finance-expense-item .exp-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.finance-expense-item .exp-category {
    font-size: 0.8rem;
    font-weight: 600;
}
.finance-expense-item .exp-desc {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.finance-expense-item .exp-amount {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-align: right;
    white-space: nowrap;
}
.finance-expense-item .exp-actions {
    display: flex;
    gap: 4px;
}
.finance-expense-item .exp-actions button {
    background: none;
    border: 1px solid #333;
    color: #888;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s;
}
.finance-expense-item .exp-actions button:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}
.finance-expense-item .exp-actions button.danger:hover {
    border-color: #ff3b3b;
    color: #ff3b3b;
}
.finance-analysis-month {
    display: flex;
    align-items: center;
    gap: 10px;
}
.finance-analysis-month span {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}
.finance-nav-btn {
    background: #181818;
    border: 1px solid #333;
    color: #ccc;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.finance-nav-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}
.finance-alerts {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.finance-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
}
.finance-alert.exceeded {
    background: rgba(255,59,59,0.1);
    border: 1px solid rgba(255,59,59,0.3);
    color: #ff6b6b;
}
.finance-alert.near {
    background: rgba(255,165,0,0.1);
    border: 1px solid rgba(255,165,0,0.3);
    color: #ffa500;
}
.finance-chart-container {
    margin-bottom: 20px;
}
.finance-chart-container.half {
    flex: 1;
    min-width: 0;
}
.finance-chart-row {
    display: flex;
    gap: 20px;
}
.finance-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 120px;
    padding: 5px 0;
    overflow-x: auto;
}
.finance-bar {
    flex: 1;
    min-width: 4px;
    border-radius: 3px 3px 0 0;
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s;
}
.finance-bar:hover {
    opacity: 0.7;
}
.finance-pie-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}
.finance-pie-svg {
    width: 140px;
    height: 140px;
}
.finance-pie-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 16px;
    flex: 1;
}
.finance-pie-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}
.finance-pie-legend-item .pie-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}
.finance-pie-legend-item .pie-label {
    color: #888;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.finance-pie-legend-item .pie-value {
    font-weight: 600;
    white-space: nowrap;
}
.finance-cuts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.finance-cut-card {
    background: #181818;
    border: 1px solid #333;
    border-left: 3px solid;
    border-radius: 10px;
    padding: 12px 14px;
}
.finance-cut-card .cut-rank {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.finance-cut-card .cut-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.finance-cut-card .cut-header .cut-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.finance-cut-card .cut-header .cut-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.finance-cut-card .cut-reason {
    font-size: 0.75rem;
    color: #ff6b6b;
}

/* Finance responsive */
@media (max-width: 1023px) {
    .finance-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .finance-form-row {
        grid-template-columns: 1fr;
    }
    .finance-chart-row {
        flex-direction: column;
    }
    .finance-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .finance-summary-grid {
        grid-template-columns: 1fr;
    }
    .finance-categories-grid {
        grid-template-columns: 1fr;
    }
    .finance-filter-row {
        flex-direction: column;
    }
    .finance-action-row {
        flex-direction: column;
    }
}
/* ========== AMHARIC CALENDAR TEXT ========== */
.calendar-day-header.amharic {
    font-size: 1rem;
}
.calendar-preference-section label:hover {
    border-color: var(--cyan) !important;
}
.calendar-preference-section input[type="radio"]:checked + div {
    color: var(--cyan);
}
.calendar-preference-section label:has(input:checked) {
    border-color: var(--cyan) !important;
}

/* Theme Preset Cards */
.theme-preset-card:hover {
    border-color: var(--cyan) !important;
    transform: translateY(-2px);
}
.theme-preset-card.active {
    border-color: var(--cyan) !important;
    background: rgba(0, 229, 255, 0.15) !important;
}

/* ========== TABLET PERFORMANCE FIXES ========== */
@media (max-width: 1024px) {
    .custom-confirm-modal,
    .custom-prompt-modal,
    .modal-overlay,
    .zone-filter {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .timer-display.cyan,
    .timer-display.yellow,
    .timer-display.red {
        animation: none !important;
    }
    .station,
    .station *,
    .coin-op-station,
    .coin-op-station * {
        transition: none !important;
    }
}

.widget-footer {
    text-align: center;
    padding: 16px 12px;
    margin-top: 30px;
    font-size: 0.8rem;
    color: var(--text-dim, #666);
    border-top: 1px solid var(--border, #222);
    line-height: 1.6;
}
.widget-footer a {
    color: var(--cyan, #00e5ff);
    text-decoration: none;
}

/* Chat Styles */
.conversation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--card, #0a0a0a);
    border: 1px solid var(--border, #1a1a1a);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 8px;
}
.conversation-item:hover {
    border-color: var(--cyan, #00e5ff);
}
.conversation-item .conversation-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,229,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan, #00e5ff);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.conversation-item .conversation-info {
    flex: 1;
    min-width: 0;
}
.conversation-item .conversation-name {
    font-weight: 600;
    margin-bottom: 4px;
}
.conversation-item .conversation-preview {
    font-size: 0.85rem;
    color: var(--text-dim, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.conversation-item .conversation-time {
    font-size: 0.75rem;
    color: var(--text-dim, #666);
    flex-shrink: 0;
}
.conversation-item .unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cyan, #00e5ff);
    flex-shrink: 0;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 8px;
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.4;
}
.chat-bubble.own {
    background: var(--cyan, #00e5ff);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble.other {
    background: var(--card, #111);
    color: #fff;
    align-self: flex-start;
    border: 1px solid var(--border, #222);
    border-bottom-left-radius: 4px;
}
.chat-bubble .chat-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 4px;
    display: block;
}
.chat-bubble.own .chat-time {
    text-align: right;
}

#adminChatMessages, #ownerChatMessages {
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #222);
    margin-bottom: 10px;
}

.admin-back-btn {
    background: none;
    border: 1px solid var(--border, #222);
    color: white;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: border-color 0.2s;
}
.admin-back-btn:hover {
    border-color: var(--cyan, #00e5ff);
}

/* ===== CHAT REDESIGN ===== */

/* Chat Modal */
.owner-chat-modal {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.owner-chat-modal .modal-content {
    border: 1px solid rgba(0,229,255,0.15);
    box-shadow: 0 0 60px rgba(0,229,255,0.08), 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Header */
.chat-modal-header {
    background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(0,180,216,0.05));
    border-bottom: 1px solid rgba(0,229,255,0.12);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.chat-modal-header .admin-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #00b4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #000;
    position: relative;
    flex-shrink: 0;
}
.chat-modal-header .admin-avatar .online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff88;
    border: 2px solid var(--bg, #030303);
    box-shadow: 0 0 8px rgba(0,255,136,0.5);
}
.chat-modal-header .header-info {
    flex: 1;
}
.chat-modal-header .header-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.chat-modal-header .header-info .header-sub {
    font-size: 0.75rem;
    color: var(--text-dim, #666);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-modal-header .header-info .header-sub .status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    animation: pulse-dot 2s infinite;
}

/* Messages Container */
.owner-chat-messages {
    flex: 1;
    overflow-y: scroll;
    padding: 20px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,229,255,0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0,180,216,0.02) 0%, transparent 60%),
        var(--bg, #030303);
    margin: 0;
    border-radius: 0;
    scroll-behavior: smooth;
}
.owner-chat-messages::-webkit-scrollbar {
    width: 4px;
}
.owner-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.owner-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0,229,255,0.3);
    border-radius: 4px;
}

/* Date Separator */
.chat-date-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 0.75rem;
}
.chat-date-sep::before,
.chat-date-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}
.chat-date-sep span {
    color: var(--text-dim, #666);
    background: var(--bg, #030303);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Chat Bubbles */
.chat-bubble-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
    animation: bubble-in 0.3s ease-out;
}
.chat-bubble-wrap.own {
    align-items: flex-end;
}
.chat-bubble-wrap.other {
    align-items: flex-start;
}

@keyframes bubble-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-bubble {
    max-width: 78%;
    padding: 12px 18px;
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    transition: box-shadow 0.2s;
}
.chat-bubble-wrap.own .chat-bubble {
    background: linear-gradient(135deg, var(--cyan), #00b4d8);
    color: #000;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,229,255,0.2);
}
.chat-bubble-wrap.other .chat-bubble {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.chat-bubble .bubble-text {
    word-wrap: break-word;
}
.chat-bubble .bubble-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.65rem;
}
.chat-bubble-wrap.own .chat-bubble .bubble-meta {
    justify-content: flex-end;
    color: rgba(0,0,0,0.6);
}
.chat-bubble-wrap.other .chat-bubble .bubble-meta {
    color: rgba(255,255,255,0.4);
}
.chat-bubble .bubble-meta .read-receipt {
    display: inline-flex;
    align-items: center;
}
.chat-bubble .bubble-meta .read-receipt svg {
    width: 14px;
    height: 14px;
}
.chat-bubble .bubble-meta .read-receipt.read svg {
    color: var(--cyan, #00e5ff);
}

/* Consecutive bubbles grouping */
.chat-bubble-wrap + .chat-bubble-wrap.own {
    margin-top: 2px;
}
.chat-bubble-wrap + .chat-bubble-wrap.own .chat-bubble {
    border-radius: 18px;
    border-bottom-right-radius: 4px;
}
.chat-bubble-wrap + .chat-bubble-wrap.own .bubble-meta {
    display: none;
}
.chat-bubble-wrap + .chat-bubble-wrap.own:last-child .bubble-meta {
    display: flex;
}

.chat-bubble-wrap + .chat-bubble-wrap.other {
    margin-top: 2px;
}
.chat-bubble-wrap + .chat-bubble-wrap.other .chat-bubble {
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}
.chat-bubble-wrap + .chat-bubble-wrap.other .bubble-meta {
    display: none;
}
.chat-bubble-wrap + .chat-bubble-wrap.other:last-child .bubble-meta {
    display: flex;
}

/* Typing Indicator */
.chat-typing {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--text-dim, #666);
    align-self: flex-start;
}
.chat-typing.visible {
    display: flex;
}
.typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}
.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim, #666);
    animation: typing-bounce 1.4s infinite;
}
.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Empty State */
.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-dim, #666);
    text-align: center;
    padding: 40px 20px;
}
.chat-empty .empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,229,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan, #00e5ff);
}
.chat-empty h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}
.chat-empty p {
    margin: 0;
    font-size: 0.85rem;
    max-width: 260px;
    line-height: 1.5;
}

/* Empty state overlays the messages container */
#ownerChatEmpty {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 1;
    pointer-events: none;
}
#ownerChatMessages:empty + #ownerChatEmpty {
    display: flex !important;
}
#ownerChatMessages:not(:empty) + #ownerChatEmpty {
    display: none !important;
}

/* Input Area */
.chat-input-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.3);
}
.chat-input-footer input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 12px 18px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.chat-input-footer input:focus {
    border-color: rgba(0,229,255,0.4);
    background: rgba(255,255,255,0.08);
}
.chat-input-footer input::placeholder {
    color: rgba(255,255,255,0.25);
}
.chat-input-footer .send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #00b4d8);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    flex-shrink: 0;
}
.chat-input-footer .send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,229,255,0.3);
}
.chat-input-footer .send-btn:active {
    transform: scale(0.95);
}

/* Sidebar Chat Button */
.owner-chat-btn {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--cyan), #00b4d8);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.owner-chat-btn.has-unread {
    box-shadow: 0 0 12px rgba(245,166,35,0.25);
}
.owner-chat-btn .chat-unread-bell { display: none !important; }
.owner-chat-btn.has-unread .chat-unread-bell {
    display: inline-block !important;
    animation: bell-shake 0.6s ease-in-out infinite;
    color: #FFD600;
    margin-left: 4px;
}
@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(12deg); }
    40% { transform: rotate(-12deg); }
    60% { transform: rotate(6deg); }
    80% { transform: rotate(-6deg); }
}
.owner-chat-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,229,255,0.25);
}
.owner-chat-btn:active {
    transform: translateY(0);
}
.owner-chat-btn .unread-dot {
    background: var(--red, #ff3b3b);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: auto;
    display: none;
}
.owner-chat-btn .unread-dot.visible {
    display: inline;
}
.owner-chat-btn.pulse {
    animation: btn-pulse 2s infinite;
}
@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0,229,255,0); }
}

/* Admin Chat Styles (mirror improvements) */
#adminChatMessages {
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}
#adminChatMessages::-webkit-scrollbar {
    width: 4px;
}
#adminChatMessages::-webkit-scrollbar-track {
    background: transparent;
}
#adminChatMessages::-webkit-scrollbar-thumb {
    background: rgba(0,229,255,0.3);
    border-radius: 4px;
}

/* Admin Conversation List */
.conversation-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.conversation-list-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* ========== SETTINGS PAGE MOBILE RESPONSIVENESS ========== */

/* --- Mobile: All screens < 768px --- */
@media (max-width: 767px) {
    /* Settings title */
    #settings .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    /* Cust section spacing */
    .cust-section {
        margin-bottom: 35px;
    }

    /* Cust title: smaller, less padding */
    .cust-title {
        font-size: 1.1rem;
        gap: 10px;
        padding-left: 14px;
        margin-bottom: 20px;
        border-left-width: 4px;
    }

    .cust-title i {
        width: 18px;
        height: 18px;
    }

    /* Zones grid: single column */
    #settings-zones .cust-section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Custom stations grid: single column */
    .custom-stations-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Station add buttons: 2 columns */
    .cust-add-btns {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-top: 15px !important;
    }

    .cust-add-btns button {
        padding: 12px 8px !important;
        font-size: 0.85rem !important;
        font-weight: 600;
    }

    .cust-add-btns button i {
        width: 16px;
        height: 16px;
    }

    /* Pricing grid: single column */
    .pricing-grid-enhanced {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .pricing-card.enhanced {
        padding: 15px;
        border-radius: 14px;
    }

    .pricing-card-header {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .pricing-card-header h3 {
        font-size: 1rem;
    }

    .pricing-icon-container {
        width: 40px !important;
        height: 40px !important;
    }

    .pricing-icon-container i {
        width: 20px !important;
        height: 20px !important;
    }

    .console-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .pricing-input-group label {
        font-size: 0.85rem;
    }

    .pricing-input {
        padding: 12px !important;
        font-size: 1rem !important;
    }

    .rate-presets {
        gap: 6px;
    }

    .preset-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .pricing-stats {
        flex-direction: column;
        gap: 6px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .stat-item {
        font-size: 0.8rem;
    }

    /* Security PIN grid: single column */
    #settings-security .cust-section > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    #settings-security .pricing-card-header {
        flex-wrap: wrap;
    }

    #settings-security .pricing-card-header h3 {
        font-size: 0.95rem;
    }

    #settings-security .pricing-icon-container {
        width: 40px !important;
        height: 40px !important;
    }

    /* General settings: calendar preference */
    .calendar-preference-section > div[style*="border-radius: 24px"] {
        padding: 15px !important;
        border-radius: 16px !important;
    }

    .calendar-preference-section h3 {
        font-size: 1.1rem !important;
    }

    .calendar-preference-section > div > div[style*="display: flex; gap: 25px"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .calendar-preference-section label {
        padding: 12px 15px !important;
    }

    /* Subscription card */
    .subscription-info-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .subscription-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Theme presets grid: 2 columns */
    #themePresets {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Theme color pickers: single column */
    #themeColorPickers {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .theme-preset-card {
        padding: 10px;
        border-radius: 10px;
    }

    /* Save button: smaller padding */
    .save-btn-large {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        gap: 10px;
    }

    .save-section {
        margin-top: 25px;
    }

    /* Warning note */
    .warning-note {
        padding: 15px;
        border-radius: 12px;
    }

    .warning-note p {
        font-size: 0.85rem;
    }

    .warning-details {
        flex-wrap: wrap;
        gap: 8px;
    }

    .warning-details span {
        font-size: 0.8rem;
    }

    /* Reminder + Timer Expiration cards: stack on mobile */
    .sound-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .sound-cards-grid > div {
        padding: 15px !important;
    }

    .sound-cards-grid h4 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }

    .sound-cards-grid label {
        font-size: 0.75rem !important;
    }

    .sound-cards-grid select {
        padding: 8px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }

    .sound-cards-grid .action-btn {
        padding: 10px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }

    /* Cust pricing grid */
    .cust-pricing-grid {
        grid-template-columns: 1fr !important;
    }

    /* Dashboard settings card */
    .dashboard-settings-card {
        padding: 15px !important;
    }

    /* Danger zone card */
    .danger-zone-card {
        padding: 15px !important;
    }

    /* Inventory manage grid */
    .inventory-manage-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .inventory-item-card {
        padding: 12px;
        border-radius: 12px;
    }

    .inventory-item-card h4,
    .inventory-item-card .item-name {
        font-size: 0.9rem;
    }

    /* Bank cards grid */
    .bank-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .bank-card {
        padding: 12px;
        border-radius: 12px;
    }

    /* Add bank form: stack on mobile */
    .add-bank-form {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px !important;
    }

    .add-bank-form input {
        min-width: 0 !important;
        width: 100%;
    }

    .add-bank-form .action-btn {
        width: 100%;
        justify-content: center;
    }

    /* Pricing coin separator */
    .pricing-coin-separator {
        margin: 20px 0;
    }

    /* Inventory banking separator */
    .inventory-banking-separator {
        margin: 20px 0;
    }

    /* Subscription card */
    .subscription-card {
        padding: 15px;
        border-radius: 16px;
    }

    .subscription-card::before {
        display: none;
    }

    .subscription-header {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .subscription-header h3 {
        font-size: 1.1rem;
    }

    .subscription-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .subscription-info-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .info-item {
        padding: 12px;
        border-radius: 12px;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    /* Payment instructions */
    .payment-instructions {
        padding: 12px;
    }

    /* Coin balance display */
    .coin-balance-display {
        font-size: 1.5rem;
    }

    /* Section title */
    .section-title {
        font-size: 1.3rem;
    }

    .section-title i {
        width: 20px;
        height: 20px;
    }

    /* Action buttons */
    .action-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* App inputs */
    .app-input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    /* Zone-specific content */
    .zone-specific-content {
        padding: 0;
    }
}

/* --- Tablet: 768px - 1023px --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .cust-title {
        font-size: 1.3rem;
    }

    .cust-add-btns {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .cust-add-btns button {
        padding: 14px 10px;
        font-size: 0.9rem;
    }

    .pricing-grid-enhanced {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .pricing-card-header {
        flex-wrap: wrap;
    }

    #settings-security .cust-section > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }

    #themePresets {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    #themeColorPickers {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .save-btn-large {
        padding: 18px 30px;
        font-size: 1.1rem;
    }

    /* Inventory manage grid: 2 columns */
    .inventory-manage-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Bank cards grid: 2 columns */
    .bank-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Subscription info grid: 2 columns */
    .subscription-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Reminder + Timer Expiration cards: 2 columns on tablet */
    .sound-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .sound-cards-grid > div {
        padding: 18px !important;
    }

    .sound-cards-grid h4 {
        font-size: 1.05rem !important;
    }

    .sound-cards-grid select {
        padding: 10px !important;
    }
}
/* ========== SETTINGS + STATION POLISH (overhaul pass) ========== */
/* Keyboard focus that is visible on the dark theme */
#settings button:focus-visible,
#settings input:focus-visible,
#settings select:focus-visible,
#settings [role="tab"]:focus-visible,
.station button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* Settings tab bar: clearer active state and a gentle press effect */
.settings-tab {
    letter-spacing: 0.2px;
}

.settings-tab:active {
    transform: scale(0.98);
}

.settings-tab:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* Settings cards: subtle lift on hover, consistent radius */
#settings .cust-section,
#settings .pricing-card,
#settings .custom-station-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#settings .cust-section:hover {
    border-color: rgba(0, 229, 255, 0.2);
}

/* Station cards: animate state changes without a full rebuild */
.station {
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease, opacity 0.25s ease;
    will-change: auto;
    /* A floor with 20 cards painted every frame (gradients, shadows, dots) is
       what makes a low-RAM phone crawl while scrolling. content-visibility lets
       the browser skip layout and paint for cards that are offscreen, and the
       remembered size keeps the scroll height stable once a card has been seen. */
    content-visibility: auto;
    contain-intrinsic-size: auto 340px;
}

/* Phones: the two things that cost frames continuously on a cheap GPU.
   1. Every live card's timer ran an endless 3s opacity/transform pulse.
   2. Blurred fixed chrome re-blurred the scrolling grid behind it every frame.
   Colour states and layout are unchanged; only the constant motion goes. */
@media (max-width: 767px) {

    .timer-display.cyan,
    .timer-display.yellow,
    .timer-display.red {
        animation: none !important;
    }

    #connectionStatus,
    #dashboard .dash-chip,
    .zone-filter {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

.station.session-entering {
    animation: stationSessionIn 0.35s ease-out;
}

.station.session-leaving {
    animation: stationSessionOut 0.25s ease-in forwards;
}

@keyframes stationSessionIn {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

@keyframes stationSessionOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.97); }
}

/* Visible "saving" state for sessions the server has not confirmed yet */
.session-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--orange);
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .station,
    .settings-tab,
    #settings .cust-section,
    .settings-page,
    .station.session-entering,
    .station.session-leaving {
        animation: none !important;
        transition: none !important;
    }

    .timer-display.cyan,
    .timer-display.yellow,
    .timer-display.red {
        animation: none !important;
    }
}

/* ==========================================================================
   SETTINGS PAGE — redesigned control deck
   Scoped to #settings. Station cards on the dashboard (.station) are not
   touched; the settings station layout list (.custom-station-card) keeps its
   own inline styling from script.js.
   ========================================================================== */

#settings.settings-view {
    max-width: 1320px;
    margin: 0 auto;
}

#settings.settings-view:not(.active) {
    display: none;
}

/* ---------- Hero ---------- */
#settings .settings-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
    padding: 30px 32px;
    margin-bottom: 26px;
    border-radius: 26px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(0, 229, 255, 0.16) 0%, transparent 55%),
        radial-gradient(90% 160% at 100% 20%, rgba(155, 77, 255, 0.14) 0%, transparent 60%),
        linear-gradient(160deg, #0d1117 0%, #07080a 60%, #050506 100%);
}

#settings .settings-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(120% 120% at 15% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(120% 120% at 15% 0%, #000 0%, transparent 70%);
}

#settings .settings-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 260px;
    flex: 1;
}

#settings .settings-hero-glow {
    position: absolute;
    inset: -60% -10% auto -14%;
    height: 190%;
    pointer-events: none;
    background: radial-gradient(55% 55% at 22% 30%, rgba(0, 229, 255, 0.22) 0%, transparent 70%);
    filter: blur(26px);
}

#settings .settings-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

#settings .settings-hero .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
    border-left: 0;
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
    text-transform: none;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    background: linear-gradient(120deg, #ffffff 10%, #8ff3ff 55%, #b79bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#settings .settings-hero .section-title i,
#settings .settings-hero .section-title svg {
    -webkit-text-fill-color: var(--cyan);
    color: var(--cyan);
}

#settings .settings-hero-sub {
    color: #8a94a3;
    font-size: 0.94rem;
    line-height: 1.55;
    max-width: 52ch;
    margin: 0;
}

#settings .settings-hero-badge {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
}

#settings .settings-hero-badge i,
#settings .settings-hero-badge svg {
    color: var(--green);
    flex-shrink: 0;
}

#settings .settings-hero-badge strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: #fff;
}

#settings .settings-hero-badge span {
    display: block;
    font-size: 0.76rem;
    color: #7f8a99;
}

/* ---------- Shell ---------- */
#settings .settings-shell {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

#settings .settings-body {
    min-width: 0;
    padding-bottom: 150px;
}

/* ---------- Rail navigation ---------- */
#settings .settings-tabs {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    margin: 0;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 20, 24, 0.92) 0%, rgba(9, 10, 12, 0.94) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    overflow: visible;
}

#settings .settings-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #8792a2;
    font-family: 'Outfit', sans-serif;
    text-align: left;
    cursor: pointer;
    white-space: normal;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#settings .settings-tab:hover {
    background: rgba(255, 255, 255, 0.045);
    color: #e6edf5;
}

#settings .settings-tab.active {
    color: #fff;
    border-color: rgba(0, 229, 255, 0.32);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.17) 0%, rgba(0, 229, 255, 0.04) 60%, rgba(155, 77, 255, 0.08) 100%);
    box-shadow: 0 10px 26px rgba(0, 229, 255, 0.12);
}

#settings .settings-tab.active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 16%;
    bottom: 16%;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--cyan), rgba(0, 229, 255, 0.1));
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
}

#settings .settings-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #9aa5b4;
    transition: all 0.18s ease;
}

#settings .settings-tab.active .settings-tab-icon {
    color: #001d22;
    background: linear-gradient(135deg, var(--cyan) 0%, #6df3ff 100%);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0, 229, 255, 0.35);
}

#settings .settings-tab-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

#settings .settings-tab-label {
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#settings .settings-tab-hint {
    font-size: 0.71rem;
    color: #6c7789;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#settings .settings-tab.active .settings-tab-hint {
    color: rgba(190, 245, 255, 0.75);
}

#settings .settings-tab-chevron {
    opacity: 0;
    transform: translateX(-4px);
    color: var(--cyan);
    transition: all 0.18s ease;
    flex-shrink: 0;
}

#settings .settings-tab.active .settings-tab-chevron {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Page header ---------- */
#settings .settings-page-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

#settings .settings-page-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    color: var(--cyan);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.16) 0%, rgba(0, 229, 255, 0.03) 100%);
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#settings .settings-page-head h3 {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
    color: #fff;
}

#settings .settings-page-head p {
    margin: 0;
    color: #8592a2;
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 70ch;
}

/* ---------- Panels ---------- */
#settings .settings-panel {
    background: linear-gradient(180deg, rgba(22, 24, 28, 0.85) 0%, rgba(11, 12, 14, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

#settings .cust-section {
    border-radius: 22px;
}

#settings .cust-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f4f7fb;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#settings .cust-title i,
#settings .cust-title svg {
    color: var(--cyan);
}

#settings .settings-subhead {
    margin: 26px 0 14px;
}

#settings .settings-subhead:first-child {
    margin-top: 0;
}

#settings .settings-subhead h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7f8b9c;
    margin: 0 0 4px;
}

#settings .settings-subhead p {
    margin: 0;
    font-size: 0.82rem;
    color: #6d7889;
}

/* ---------- Zone list ---------- */
#settings .zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

#settings .zone-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, #14171c 0%, #0b0c0f 100%);
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#settings .zone-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

#settings .zone-card-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

#settings .zone-card-header .zone-name {
    flex: 1;
    min-width: 0;
}

#settings .zone-name {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.06rem;
    font-weight: 700;
    color: #fff;
}

/* ---------- Station layout ---------- */
#settings .custom-stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

#settings .cust-add-btns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 10px !important;
    margin-top: 22px !important;
}

#settings .cust-add-btns .action-btn {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
}

/* ---------- Rate cards ---------- */
#settings .rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 16px;
}

#settings .pricing-card.enhanced {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, #16191f 0%, #0b0c0f 100%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#settings .pricing-card.enhanced:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.26);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

#settings .pricing-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

#settings .pricing-icon-container {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

#settings .pricing-title {
    flex: 1;
    min-width: 0;
}

#settings .pricing-title h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 2px;
    color: #f2f6fb;
}

#settings .pricing-subtitle {
    font-size: 0.75rem;
    color: #77839a;
}

#settings .console-badge {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}

#settings .pricing-input-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#settings .pricing-input-group label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6f7c8e;
    margin-bottom: 8px;
}

#settings .pricing-input-group > * + label {
    margin-top: 14px;
}

#settings .pricing-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 14px;
    border-radius: 14px;
    background: #05070a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#settings .pricing-input-wrapper:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

#settings .currency-symbol {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cyan);
}

#settings .pricing-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 12px 0;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

#settings .pricing-input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

#settings .input-hint {
    font-size: 0.7rem;
    color: #66717f;
    white-space: nowrap;
}

#settings .rate-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

#settings .preset-btn {
    min-width: 42px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    color: #aab5c4;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.16s ease;
}

#settings .preset-btn:hover {
    color: #001d22;
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 6px 16px rgba(0, 229, 255, 0.25);
}

#settings .pricing-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

#settings .stat-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.71rem;
    color: #7c8797;
}

#settings .stat-item i,
#settings .stat-item svg {
    color: #5f6b7c;
    flex-shrink: 0;
}

/* ---------- Layout helpers ---------- */
#settings .settings-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

#settings .settings-panel-note {
    color: #8592a2;
    font-size: 0.86rem;
    margin: -8px 0 18px;
}

#settings .settings-panel-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.78rem;
    color: #6d7889;
}

#settings .settings-panel-hint i,
#settings .settings-panel-hint svg {
    color: #55606f;
    flex-shrink: 0;
}

/* ---------- Inputs ---------- */
#settings .app-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #05070a;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#settings .app-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

#settings select.app-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: linear-gradient(45deg, transparent 50%, #7c8797 50%),
        linear-gradient(135deg, #7c8797 50%, transparent 50%);
    background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* ---------- Action buttons ---------- */
#settings .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e8eef6;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.16s ease, transform 0.12s ease, background 0.16s ease, border-color 0.16s ease;
}

#settings .action-btn:hover {
    filter: brightness(1.1);
    border-color: rgba(0, 229, 255, 0.3);
}

#settings .action-btn:active {
    transform: scale(0.97);
}

#settings .action-btn.primary {
    background: linear-gradient(135deg, var(--cyan) 0%, #6df3ff 100%);
    border-color: transparent;
    color: #001418;
    box-shadow: 0 10px 24px rgba(0, 229, 255, 0.22);
}

#settings .settings-wide-btn {
    width: 100%;
    margin-top: 18px;
}

#settings .settings-add-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 0.95rem;
}

/* ---------- Coin panel ---------- */
#settings .coin-panel .cust-title i,
#settings .coin-panel .cust-title svg {
    color: var(--yellow);
}

#settings .coin-balance-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(255, 215, 0, 0.14) 0%, transparent 60%),
        linear-gradient(150deg, #17140a 0%, #0b0b0c 100%);
}

#settings .coin-balance-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.8);
    margin-bottom: 4px;
}

#settings .coin-balance-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    line-height: 1;
    color: var(--yellow);
    text-shadow: 0 0 26px rgba(255, 215, 0, 0.35);
}

#settings .coin-balance-hint {
    display: block;
    font-size: 0.75rem;
    color: #8b8470;
    margin-top: 8px;
}

#settings .coin-balance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#settings .coin-balance-actions .action-btn {
    background: rgba(255, 255, 255, 0.05);
}

#settings .coin-balance-actions #resetCoinBalanceBtn {
    color: #ff9b9b;
    border-color: rgba(255, 59, 59, 0.3);
}

#settings .coin-restock-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}

#settings .coin-restock-field label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6f7c8e;
    margin-bottom: 7px;
}

#settings .coin-add-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--green) 0%, #7dffc6 100%);
    border-color: transparent;
    color: #001a10;
    font-weight: 700;
}

#settings .coin-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

#settings .coin-history-head h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin: 0;
    color: #e8eef6;
}

#settings #coinTransactionList {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #0a0b0d;
    padding: 18px;
    max-height: 400px;
    overflow-y: auto;
}

#settings .settings-empty {
    text-align: center;
    color: #77839a;
    padding: 34px;
}

/* ---------- Inventory ---------- */
#settings .inventory-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

#settings .inventory-item-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, #15181d 0%, #0a0b0e 100%);
    padding: 18px;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

#settings .inventory-item-card:hover {
    border-color: rgba(0, 229, 255, 0.25);
    transform: translateY(-2px);
}

#settings .inventory-item-card.disabled {
    opacity: 0.55;
}

#settings .inventory-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

#settings .inventory-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.09);
    color: var(--cyan);
    flex-shrink: 0;
}

#settings .stock-management {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#settings .stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#settings .stock-label {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #6d7889;
}

#settings .stock-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: #eef4fb;
}

#settings .inventory-banking-separator {
    height: 1px;
    margin: 8px 0 22px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ---------- Bank cards ---------- */
#settings .bank-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

#settings .bank-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, #14171c 0%, #0a0b0e 100%);
    padding: 16px;
}

#settings .bank-card.disabled {
    opacity: 0.55;
}

#settings .bank-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#settings .bank-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#settings .bank-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(155, 77, 255, 0.12);
    flex-shrink: 0;
}

#settings .bank-details h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    margin: 0;
    color: #eef4fb;
}

#settings .bank-code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    color: #6d7889;
}

#settings .bank-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

#settings .bank-toggle,
#settings .bank-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background 0.16s ease;
}

#settings .bank-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

#settings .bank-delete:hover {
    background: rgba(255, 59, 59, 0.14);
}

#settings .add-bank-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.015);
}

#settings .add-bank-form .app-input {
    flex: 1;
    min-width: 150px;
}

#settings .add-bank-form .action-btn {
    background: linear-gradient(135deg, var(--cyan) 0%, #6df3ff 100%);
    border-color: transparent;
    color: #001418;
}

/* ---------- PIN / security ---------- */
#settings .pin-field {
    position: relative;
    display: flex;
    align-items: center;
}

#settings .pin-field .app-input {
    padding-right: 46px;
}

#settings .pin-toggle-btn {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #6d7889;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

#settings .pin-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
}

#settings .zone-pin-display {
    flex: 1;
    padding: 12px 14px;
    padding-right: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #05070a;
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: #eef4fb;
}

#settings .pin-danger-separator {
    height: 1px;
    margin: 8px 0 22px;
    background: linear-gradient(90deg, transparent, rgba(255, 59, 59, 0.35), transparent);
}

#settings .danger-panel {
    border-color: rgba(255, 59, 59, 0.22);
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(255, 59, 59, 0.1) 0%, transparent 55%),
        linear-gradient(180deg, rgba(24, 14, 14, 0.85) 0%, rgba(11, 9, 9, 0.9) 100%);
}

#settings .danger-zone-card .card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

#settings .danger-zone-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(255, 59, 59, 0.12);
    color: var(--red);
    flex-shrink: 0;
}

#settings .danger-zone-card .card-title h4 {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.05rem;
    color: var(--red);
    margin: 0;
}

#settings .danger-zone-card .card-title p {
    font-size: 0.78rem;
    color: #8a7a7a;
    margin: 2px 0 0;
}

#settings .danger-copy {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #a69999;
    margin-bottom: 18px;
}

#settings #clearHistoryBtn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff3b3b 0%, #c41f1f 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 26px rgba(255, 59, 59, 0.2);
}

#settings .danger-zone-card .card-hint {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1px solid rgba(255, 59, 59, 0.2);
    background: rgba(255, 59, 59, 0.05);
    font-size: 0.8rem;
    color: #a69999;
}

#settings .danger-zone-card .card-hint strong {
    color: var(--red);
}

/* ---------- General feature cards ---------- */
#settings .settings-feature {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(22, 24, 28, 0.85) 0%, rgba(11, 12, 14, 0.9) 100%);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

#settings .settings-feature-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

#settings .settings-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#settings .settings-feature-icon.accent-cyan {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.09);
}

#settings .settings-feature-icon.accent-orange {
    color: var(--orange);
    background: rgba(255, 140, 0, 0.09);
}

#settings .settings-feature-head h4 {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.02rem;
    margin: 0 0 3px;
    color: #f2f6fb;
}

#settings .settings-feature-head p {
    margin: 0;
    font-size: 0.8rem;
    color: #788394;
}

#settings .timer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: flex-end;
}

#settings .timer-input-wrap {
    flex: 1;
    min-width: 220px;
}

#settings .timer-input-wrap > label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6f7c8e;
    margin-bottom: 8px;
}

#settings .timer-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #05070a;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#settings .timer-field:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

#settings .timer-field .pricing-input {
    padding: 12px 0;
}

#settings .timer-field > span {
    font-size: 0.78rem;
    color: #6f7c8e;
}

#settings .timer-presets {
    margin-top: 0;
}

/* ---------- Calendar preference ---------- */
#settings .cal-pref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

#settings .cal-pref-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #08090c;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

#settings .cal-pref-option:hover {
    border-color: rgba(0, 229, 255, 0.3);
}

#settings .cal-pref-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#settings .cal-pref-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.18s ease;
}

#settings .cal-pref-option:has(input:checked) {
    border-color: rgba(0, 229, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12) 0%, rgba(0, 229, 255, 0.02) 100%);
}

#settings .cal-pref-option:has(input:checked) .cal-pref-check {
    border-color: var(--cyan);
    background: radial-gradient(circle at center, var(--cyan) 0 42%, transparent 46%);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

#settings .cal-pref-option strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #eef4fb;
}

#settings .cal-pref-option small {
    display: block;
    font-size: 0.74rem;
    color: #788394;
    margin-top: 2px;
}

/* ---------- Subscription ---------- */
#settings .subscription-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(155, 77, 255, 0.22);
    background:
        radial-gradient(110% 150% at 100% 0%, rgba(155, 77, 255, 0.16) 0%, transparent 55%),
        linear-gradient(160deg, #12131a 0%, #0a0a0d 100%);
    padding: 26px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

#settings .subscription-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#settings .subscription-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #d9c2ff;
    background: linear-gradient(135deg, rgba(155, 77, 255, 0.3) 0%, rgba(155, 77, 255, 0.06) 100%);
    border: 1px solid rgba(155, 77, 255, 0.3);
    flex-shrink: 0;
}

#settings .subscription-title {
    flex: 1;
    min-width: 160px;
}

#settings .subscription-title h3 {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.15rem;
    margin: 0 0 3px;
    color: #fff;
}

#settings .subscription-title p {
    margin: 0;
    font-size: 0.8rem;
    color: #8b8fa3;
}

#settings .subscription-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: var(--cyan);
    color: #001418;
}

#settings .subscription-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

#settings .info-item {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

#settings .info-label {
    display: block;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #788394;
    margin-bottom: 5px;
}

#settings .info-value {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.92rem;
    font-weight: 700;
    color: #eef4fb;
}

#settings .progress-bar-container {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

#settings .progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan) 0%, #9b4dff 100%);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
    transition: width 0.4s ease;
}

#settings .progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.68rem;
    color: #6f7c8e;
}

#settings .payment-instructions {
    margin: 20px 0;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 140, 0, 0.25);
    background: rgba(255, 140, 0, 0.05);
}

#settings .instructions-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--orange);
}

#settings .instructions-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    margin: 0;
}

#settings .instructions-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.82rem;
    color: #b9b3a6;
}

#settings .step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

#settings .step-number {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 0, 0.2);
    color: var(--orange);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    font-weight: 700;
}

#settings .payment-details {
    margin-left: 32px;
    padding: 10px 14px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.8rem;
    line-height: 1.65;
}

#settings .instructions-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.76rem;
    color: #8b8470;
}

#settings .subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Theme tab ---------- */
#settings .theme-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}

#settings .theme-preset-card {
    border-radius: 16px !important;
}

#settings .theme-pickers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

/* ---------- Save bar ---------- */
#settings .save-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 24px;
}

#settings .settings-savebar {
    position: sticky;
    bottom: 14px;
    z-index: 30;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    background: rgba(9, 11, 14, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

#settings .save-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan) 0%, #6df3ff 100%);
    color: #001418;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0, 229, 255, 0.24);
    transition: transform 0.15s ease, filter 0.16s ease;
}

#settings .save-btn-large:hover {
    filter: brightness(1.06);
}

#settings .save-btn-large:active {
    transform: scale(0.99);
}

#settings .warning-note {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 59, 59, 0.2);
    background: rgba(255, 59, 59, 0.04);
}

#settings .warning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: #ff8f8f;
}

#settings .warning-note p {
    font-size: 0.76rem;
    line-height: 1.55;
    color: #9c9292;
}

#settings .warning-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #8a7d7d;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    #settings .settings-shell {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #settings .settings-tabs {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 8px;
        border-radius: 18px;
    }

    #settings .settings-tabs::-webkit-scrollbar {
        display: none;
    }

    #settings .settings-tab {
        width: auto;
        flex: 0 0 auto;
        min-width: 148px;
    }

    #settings .settings-tab.active::before {
        display: none;
    }

    #settings .settings-savebar {
        position: static;
    }

    #settings .settings-body {
        padding-bottom: 40px;
    }

    #settings .settings-tab-hint {
        display: none;
    }

    #settings .settings-tab-chevron {
        display: none;
    }
}

@media (max-width: 767px) {
    #settings .settings-tabs {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 6px !important;
        padding: 7px !important;
    }

    #settings .settings-tab {
        min-width: 128px;
        padding: 9px 11px;
    }

    #settings .settings-tab-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    #settings .settings-hero {
        padding: 22px;
        border-radius: 20px;
    }

    #settings .settings-hero-badge {
        width: 100%;
    }

    #settings .settings-panel,
    #settings .settings-feature,
    #settings .subscription-card {
        padding: 18px;
        border-radius: 18px;
    }

    #settings .coin-restock-row {
        grid-template-columns: 1fr;
    }

    #settings .save-section {
        grid-template-columns: 1fr;
    }

    #settings .settings-savebar {
        bottom: 8px;
        padding: 12px;
    }

    #settings .settings-body {
        padding-bottom: 110px;
    }

    #settings .pricing-stats {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   REVENUE PAGE (formerly History)
   Scoped to #history.revenue-view. Station cards and other views untouched.
   Visibility stays controlled by .view-section / .view-section.active.
   ========================================================================== */

#history.revenue-view {
    max-width: 1320px;
    margin: 0 auto;
}

#history.revenue-view:not(.active) {
    display: none;
}

/* ---------- Hero ---------- */
#history .rev-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 30px 32px;
    margin-bottom: 24px;
    border-radius: 26px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(0, 229, 255, 0.16) 0%, transparent 55%),
        radial-gradient(90% 160% at 100% 15%, rgba(0, 255, 157, 0.1) 0%, transparent 60%),
        linear-gradient(160deg, #0d1117 0%, #07080a 60%, #050506 100%);
}

#history .rev-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(120% 120% at 15% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(120% 120% at 15% 0%, #000 0%, transparent 70%);
}

#history .rev-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 260px;
}

#history .rev-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

#history .rev-title.section-title {
    display: block;
    margin: 0 0 8px;
    border-left: 0;
    padding: 0;
    text-transform: none;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    background: linear-gradient(120deg, #ffffff 10%, #8ff3ff 55%, #7dffc6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#history .rev-sub {
    margin: 0 0 12px;
    color: #8a94a3;
    font-size: 0.94rem;
    line-height: 1.55;
    max-width: 56ch;
}

#history .rev-multi {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #9fb0c4;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
}

#history .rev-multi i,
#history .rev-multi svg {
    color: var(--cyan);
}

#history .rev-filter-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

#history .rev-filter-label {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6f7c8e;
}

#history .zone-filter {
    display: flex;
    gap: 4px;
    padding: 5px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(8, 10, 12, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

#history .zone-filter::-webkit-scrollbar {
    display: none;
}

#history .zone-filter-btn {
    flex: 0 0 auto;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #8792a2;
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: max-content;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

#history .zone-filter-btn::before {
    display: none;
}

#history .zone-filter-btn:hover {
    color: #e6edf5;
    background: rgba(255, 255, 255, 0.05);
}

#history .zone-filter-btn.active {
    color: #001418;
    background: linear-gradient(135deg, var(--cyan) 0%, #6df3ff 100%);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0, 229, 255, 0.28);
}

/* ---------- KPI cards ---------- */
#history .rev-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

#history .rev-kpi {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(165deg, #16191f 0%, #0b0c0f 100%);
    padding: 20px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

#history .rev-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.24);
}

#history .rev-kpi-clickable {
    cursor: pointer;
}

#history .rev-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

#history .rev-kpi-icon.accent-cyan {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.09);
}

#history .rev-kpi-icon.accent-green {
    color: var(--green);
    background: rgba(0, 255, 157, 0.09);
}

#history .rev-kpi-icon.accent-orange {
    color: var(--orange);
    background: rgba(255, 140, 0, 0.09);
}

#history .rev-kpi-icon.accent-purple {
    color: var(--purple);
    background: rgba(155, 77, 255, 0.09);
}

#history .rev-kpi-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7f8b9c;
    margin-bottom: 6px;
}

#history .rev-kpi-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f4f8fc;
    line-height: 1.1;
}

#history .rev-kpi-value span {
    font-size: 0.72rem;
    color: var(--cyan);
    letter-spacing: 0.04em;
}

#history .rev-kpi-hint {
    margin-top: 6px;
    font-size: 0.74rem;
    color: #78839a;
}

#history .rev-kpi-action {
    margin-top: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: #566170;
}

#history .rev-kpi-value.accent-cyan,
#history .accent-cyan {
    color: var(--cyan);
}

#history .accent-green {
    color: var(--green);
}

#history .accent-orange {
    color: var(--orange);
}

#history .accent-purple {
    color: var(--purple);
}

/* ---------- Panels ---------- */
#history .rev-panel {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(22, 24, 28, 0.85) 0%, rgba(11, 12, 14, 0.9) 100%);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

#history .rev-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

#history .rev-panel-head h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 3px;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #f2f6fb;
}

#history .rev-panel-head h3 i,
#history .rev-panel-head h3 svg {
    color: var(--cyan);
}

#history .rev-panel-head p {
    margin: 0;
    font-size: 0.8rem;
    color: #78839a;
}

#history .rev-legend-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    color: #9aa5b4;
}

#history .rev-legend-pill span,
#history .rev-legend span,
#history .rev-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#history .dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

#history .dot.high,
#history .dot.sales {
    background: var(--orange);
}

#history .dot.medium,
#history .dot.games {
    background: var(--cyan);
}

#history .dot.low {
    background: #333;
}

#history .dot.green,
#history .dot.today {
    background: var(--green);
}

#history .dot.revenue {
    background: var(--cyan);
}

#history .dot.bank {
    background: var(--purple);
}

/* ---------- Peak hours ---------- */
#history .rev-peak-pill {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    background: rgba(255, 140, 0, 0.1);
}

#history .rev-peak-pill span {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
    color: var(--orange);
}

#history .rev-peak-pill small {
    font-size: 0.72rem;
    color: #8b8470;
}

#history .rev-chart {
    width: 100%;
}

#history .rev-peak-chart {
    min-height: 230px;
}

#history .rev-peak-chart svg {
    display: block;
    width: 100%;
}

#history .rev-peak-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

#history .rev-peak-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#history .rev-peak-stat-label {
    font-size: 0.64rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #6f7c8e;
}

#history .rev-peak-stat strong {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.15rem;
    color: #eef4fb;
}

#history .rev-legend {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #78839a;
}

/* ---------- Bar charts ---------- */
#history .rev-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 244px;
    padding: 26px 4px 30px;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#history .rev-bar-chart .chart-bar {
    background: linear-gradient(to top, rgba(0, 229, 255, 0.85), rgba(0, 163, 204, 0.35));
    border-radius: 8px 8px 3px 3px;
    min-width: 14px;
}

#history .rev-bar-chart .chart-bar:hover {
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

#history .rev-bar-chart .chart-bar.is-empty {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

#history .rev-bar-chart .chart-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.66rem;
    color: #8b96a8;
    letter-spacing: 0.02em;
    bottom: -24px;
}

#history .rev-bar-chart .chart-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.66rem;
}

/* ---------- Two-column rows ---------- */
#history .rev-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

#history .rev-two-col > .rev-panel {
    margin-bottom: 18px;
}

/* ---------- Calendar ---------- */
#history .rev-cal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

#history .rev-cal-controls .calendar-nav-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

#history .rev-cal-controls .calendar-month-year {
    margin: 0;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

#history .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

#history .calendar-day-header {
    text-align: center;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7688;
    padding: 4px 0 8px;
}

#history .calendar-day {
    min-height: 62px;
    padding: 8px 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, #15181d 0%, #0e1013 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#history .calendar-day:hover {
    border-color: rgba(0, 229, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.12);
}

#history .calendar-day.selected {
    border-color: var(--cyan);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0.06) 100%);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.18);
}

#history .calendar-day.today {
    border-color: rgba(0, 255, 157, 0.55);
    background: linear-gradient(180deg, rgba(0, 255, 157, 0.12) 0%, rgba(0, 255, 157, 0.03) 100%);
}

#history .calendar-day.has-revenue {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.1) 0%, rgba(0, 229, 255, 0.03) 100%);
}

#history .calendar-day.empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
    transform: none;
}

#history .calendar-day-number {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    color: #eef4fb;
}

#history .calendar-day-revenue {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem;
    color: var(--cyan);
}

#history .rev-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.72rem;
    color: #78839a;
}

/* ---------- Selected date ---------- */
#history .rev-date-head {
    margin-bottom: 16px;
}

#history .rev-date-label {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6f7c8e;
}

#history .rev-date-head h2 {
    margin: 6px 0 0;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    background: linear-gradient(120deg, #8ff3ff 0%, #b79bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#history .rev-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#history .rev-date-tile {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#history .rev-date-tile > span {
    font-size: 0.64rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #7f8b9c;
}

#history .rev-date-tile strong {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.45rem;
    font-weight: 700;
    color: #f2f6fb;
}

#history .rev-date-tile small {
    font-size: 0.66rem;
    color: #6b7688;
}

#history .rev-date-tile.accent-cyan {
    border-color: rgba(0, 229, 255, 0.22);
    background: rgba(0, 229, 255, 0.05);
}

#history .rev-date-tile.accent-green {
    border-color: rgba(0, 255, 157, 0.2);
    background: rgba(0, 255, 157, 0.04);
}

#history .rev-date-tile.accent-orange {
    border-color: rgba(255, 140, 0, 0.2);
    background: rgba(255, 140, 0, 0.04);
}

#history .rev-date-tile.accent-purple {
    border-color: rgba(155, 77, 255, 0.22);
    background: rgba(155, 77, 255, 0.05);
}

/* ---------- Lists row ---------- */
#history .rev-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    align-items: stretch;
}

#history .rev-lists > .rev-panel {
    display: flex;
    flex-direction: column;
    margin: 0;
    align-self: stretch;
}

#history .rev-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

#history .rev-list-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 0.98rem;
    color: #f2f6fb;
}

#history .rev-list-head h3 i,
#history .rev-list-head h3 svg {
    color: var(--cyan);
}

#history .rev-count {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#history .rev-count.accent-purple {
    color: #d9c2ff;
    background: rgba(155, 77, 255, 0.14);
    border-color: rgba(155, 77, 255, 0.28);
}

#history .rev-count.accent-orange {
    color: #ffc07a;
    background: rgba(255, 140, 0, 0.13);
    border-color: rgba(255, 140, 0, 0.28);
}

#history .rev-count.accent-cyan {
    color: #8ff3ff;
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.26);
}

#history .rev-list-total {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

#history .rev-list-total.accent-purple {
    color: #b79bff;
}

#history .rev-list-total.accent-orange {
    color: var(--orange);
}

#history .rev-list-total.accent-cyan {
    color: var(--cyan);
}

#history .rev-cash-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 157, 0.2);
    background: rgba(0, 255, 157, 0.05);
    font-size: 0.8rem;
    color: var(--green);
}

#history .rev-cash-row strong {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1rem;
}

#history .rev-scroll {
    max-height: 340px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #2a3038 transparent;
}

#history .rev-scroll::-webkit-scrollbar {
    width: 6px;
}

#history .rev-scroll::-webkit-scrollbar-thumb {
    background: #2a3038;
    border-radius: 999px;
}

#history .rev-scroll > div:not(.rev-row):not(.rev-transfer-row) {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#history .rev-scroll > div:last-child {
    border-bottom: none;
}

#history .rev-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 34px 16px;
    margin-block: auto;
    text-align: center;
    color: #6b7688;
    font-size: 0.85rem;
}

#history .rev-empty i,
#history .rev-empty svg {
    color: #3f4855;
}

#history .rev-view-all {
    width: 100%;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #aab5c4;
}

#history .rev-view-all:hover {
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--cyan);
}

/* ---------- Generated list rows (bank transfers, deletions, SMS) ---------- */
#history .rev-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left-width: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

#history .rev-row:hover {
    border-color: rgba(0, 229, 255, 0.24);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.07) 0%, rgba(0, 229, 255, 0.02) 100%);
    transform: translateY(-1px);
}

#history .rev-row-main {
    flex: 1;
    min-width: 0;
}

#history .rev-row-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #e8eef7;
}

#history .rev-row-sub {
    margin-top: 3px;
    font-size: 0.76rem;
    color: #78839a;
}

#history .rev-row-amount {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--orange);
    white-space: nowrap;
}

#history .rev-row-deleted {
    border-left-color: rgba(255, 140, 60, 0.5);
}

#history .rev-row-sms {
    border-left-color: rgba(0, 229, 255, 0.45);
}

#history .rev-sms-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#history .rev-sms-amount {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cyan);
}

#history .rev-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#history .rev-badge-muted {
    background: rgba(255, 255, 255, 0.08);
    color: #c3ccd9;
}

#history .rev-discard {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #8792a4;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#history .rev-discard:hover {
    color: var(--red);
    border-color: rgba(255, 70, 70, 0.35);
    background: rgba(255, 70, 70, 0.08);
}

#history .rev-table-head {
    display: flex;
    justify-content: space-between;
    padding: 8px 2px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7688;
    font-weight: 600;
}

#history .rev-transfer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 12px;
    margin-bottom: 6px;
    border-radius: 12px;
    transition: background 0.18s ease;
}

#history .rev-transfer-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

#history .rev-transfer-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 4px;
}

#history .rev-transfer-index {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--orange);
}

#history .rev-transfer-bank {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e8eef7;
}

#history .rev-transfer-desc {
    margin-left: 22px;
}

#history .rev-transfer-time {
    margin-left: 22px;
    margin-top: 2px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    color: #5f6a7c;
}

#history .rev-transfer-amount {
    text-align: right;
    min-width: 96px;
    flex-shrink: 0;
}

#history .rev-transfer-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--red);
}

#history .rev-transfer-via {
    margin-top: 2px;
    font-size: 0.68rem;
    color: #5f6a7c;
}

#history .rev-table-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
}

#history .rev-table-foot-label {
    color: #78839a;
}

#history .rev-table-foot-total {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
    color: var(--red);
}

/* Small currency suffixes generated by script.js */
#history .rev-date-tile strong span,
#history .rev-list-total span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.75;
}

/* Bank-transfer marker on calendar days */
#history .calendar-day {
    position: relative;
}

#history .calendar-day.has-bank-transfers::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #b79bff;
    box-shadow: 0 0 6px rgba(183, 155, 255, 0.7);
}

/* ---------- Empty-state text inside JS-generated lists ---------- */
#history .rev-peak-chart > div {
    color: #6b7688;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    #history .rev-two-col {
        grid-template-columns: 1fr;
    }

    #history .rev-peak-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #history .rev-legend {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    #history .rev-hero {
        padding: 22px;
        border-radius: 20px;
        align-items: flex-start;
    }

    #history .rev-filter-wrap {
        width: 100%;
        align-items: flex-start;
    }

    #history .rev-kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    #history .rev-kpi {
        padding: 16px;
        border-radius: 16px;
    }

    #history .rev-panel {
        padding: 16px;
        border-radius: 18px;
    }

    #history .rev-peak-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #history .rev-date-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #history .rev-date-tile {
        padding: 12px;
    }

    #history .rev-date-tile strong {
        font-size: 1.12rem;
    }

    #history .rev-lists {
        grid-template-columns: 1fr;
    }

    #history .rev-scroll {
        max-height: none;
    }

    #history .rev-two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    #history .rev-panel-head {
        flex-wrap: wrap;
        gap: 10px;
    }

    #history .rev-cal-controls .calendar-nav-btn {
        width: 30px;
        height: 30px;
    }

    #history .rev-cal-controls .calendar-month-year {
        padding: 5px 10px;
        font-size: 0.74rem;
    }

    #history .calendar-grid {
        gap: 3px;
    }

    #history .calendar-day {
        min-height: 46px;
        padding: 4px 2px;
        border-radius: 9px;
    }

    #history .calendar-day-header {
        font-size: 0.52rem;
        letter-spacing: 0.04em;
    }

    #history .calendar-day-number {
        font-size: 0.74rem;
    }

    #history .calendar-day-revenue {
        font-size: 0.5rem;
        letter-spacing: -0.02em;
        white-space: nowrap;
    }

    #history .rev-bar-chart {
        height: 180px;
    }

    #history .rev-row {
        padding: 10px 12px;
        gap: 10px;
    }

    #history .rev-transfer-desc,
    #history .rev-transfer-time {
        margin-left: 0;
    }

    #history .rev-transfer-amount {
        min-width: 78px;
    }
}

/* ==========================================================================
   OWNER DASHBOARD & WORKER KIOSK
   Scoped to #dashboard and #kioskMode. Layout and behaviour untouched.
   ========================================================================== */

#dashboard,
#kioskMode {
    /* Section accent for the gaming block: header, count badge, gamepad icon
       and the active card's light rail. */
    --gaming-accent: #00ff9d;
    --panel-surface: linear-gradient(165deg, rgba(20, 24, 30, 0.96) 0%, rgba(8, 10, 13, 0.99) 100%);
    --panel-line: rgba(255, 255, 255, 0.07);
    --panel-line-strong: rgba(255, 255, 255, 0.12);
    --label-dim: #6f7c8e;
}

/* ---------- Hero headers ---------- */
#dashboard .dash-hero,
#dashboard .detail-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 30px 32px;
    border-radius: 26px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(0, 229, 255, 0.15) 0%, transparent 55%),
        radial-gradient(90% 160% at 100% 10%, rgba(0, 255, 157, 0.09) 0%, transparent 60%),
        linear-gradient(160deg, #0d1117 0%, #07080a 60%, #050506 100%);
}

#dashboard .dash-hero {
    margin-bottom: 26px;
}

#dashboard .detail-hero {
    margin-bottom: 24px;
    padding: 24px 26px;
    border-radius: 22px;
}

#dashboard .dash-hero::after,
#dashboard .detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(120% 120% at 12% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(120% 120% at 12% 0%, #000 0%, transparent 70%);
}

#dashboard .dash-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 260px;
    flex: 1 1 320px;
}

#dashboard .dash-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, 0.24);
    background: rgba(0, 229, 255, 0.07);
    color: #7ee9f7;
    font-size: 0.63rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

#dashboard .dash-title,
#dashboard .dash-title.section-title {
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    text-transform: none;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #f4f8fd;
    display: flex;
    align-items: center;
    gap: 12px;
}

#dashboard .dash-title svg,
#dashboard .dash-title i {
    width: 22px;
    height: 22px;
    color: var(--cyan);
}

#dashboard .dash-sub {
    margin: 10px 0 0;
    max-width: 52ch;
    color: #8794a6;
    font-size: 0.84rem;
    line-height: 1.55;
}

/* Live chips */
#dashboard .dash-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#dashboard .dash-chip {
    min-width: 116px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(8, 10, 13, 0.6);
    backdrop-filter: blur(6px);
}

#dashboard .dash-chip span {
    display: block;
    font-size: 0.57rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--label-dim);
    margin-bottom: 4px;
}

#dashboard .dash-chip strong {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.35rem;
    color: #eef4fb;
    line-height: 1;
}

#dashboard .dash-chip.accent {
    border-color: rgba(0, 229, 255, 0.26);
    background: rgba(0, 229, 255, 0.08);
}

#dashboard .dash-chip.accent strong {
    color: var(--cyan);
}

/* Back button */
#dashboard .detail-back {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #c3cdda;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

#dashboard .detail-back:hover {
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.07);
}

/* ---------- Product-line sections ---------- */
#dashboard .bottom-section .section-title,
#kioskMode .bottom-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #e8eef7;
}

#dashboard .bottom-section .section-title svg,
#kioskMode .bottom-section .section-title svg {
    width: 18px;
    height: 18px;
    color: var(--cyan);
}

#dashboard .bottom-section {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Zone cards ---------- */
#dashboard .zones-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

#dashboard .zone-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid var(--panel-line);
    background: var(--panel-surface);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#dashboard .zone-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.75), rgba(0, 229, 255, 0) 70%);
    opacity: 0.5;
}

#dashboard .zone-card.active::before {
    background: linear-gradient(90deg, rgba(0, 255, 157, 0.9), rgba(0, 229, 255, 0) 75%);
    opacity: 1;
}

@media (hover: hover) {
    #dashboard .zone-card:hover {
        transform: translateY(-3px);
        border-color: rgba(0, 229, 255, 0.34);
        box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 229, 255, 0.08);
    }
}

#dashboard .zone-card.active {
    border-color: rgba(0, 255, 157, 0.32);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45), 0 0 26px rgba(0, 255, 157, 0.07);
}

#dashboard .zone-card-header {
    margin-bottom: 18px;
    align-items: flex-start;
}

#dashboard .zone-name {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #f4f8fd;
}

#dashboard .zone-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    font-size: 0.58rem;
    letter-spacing: 0.13em;
    font-weight: 700;
    text-transform: uppercase;
}

#dashboard .zone-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

#dashboard .zone-status.active {
    background: rgba(0, 255, 157, 0.12);
    color: var(--green);
}

#dashboard .zone-status.idle {
    background: rgba(255, 255, 255, 0.05);
    color: #93a0b1;
}

#dashboard .zone-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 4px;
}

#dashboard .zone-stat {
    text-align: left;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.025);
}

#dashboard .zone-stat-label {
    margin-bottom: 5px;
    font-size: 0.57rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--label-dim);
}

#dashboard .zone-stat-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

#dashboard .zone-pin {
    margin-top: 16px;
    padding: 6px 10px;
    width: fit-content;
    border-top: 0;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #93a0b1;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    justify-content: flex-start;
}

#dashboard .zone-pin svg {
    color: var(--cyan);
    width: 13px;
    height: 13px;
}

/* ---------- Station cards (owner + kiosk) ---------- */
#dashboard .station,
#kioskMode .station {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--panel-line);
    background: var(--panel-surface);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* .station keeps overflow: visible (the dots rely on it), so the rail follows
   the card's rounded top instead of poking past the corners. */
/* The rail is a full-size overlay that inherits the card's radius and paints
   only the top strip (background-size 100% 3px). A 3px-tall element cannot
   carry a 22px corner radius — CSS clamps it — so the old version rendered as
   a square bar whose ends stuck out of the rounded card. As an overlay, the
   strip is clipped by the card's own curve and nothing escapes. */
#dashboard .station::before,
#kioskMode .station::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: 0 0;
    pointer-events: none;
    opacity: 0.55;
}

#dashboard .station.active-blue::before,
#kioskMode .station.active-blue::before {
    background-image: linear-gradient(90deg, var(--gaming-accent), rgba(0, 255, 157, 0));
    background-size: 100% 3px;
    opacity: 1;
}

#dashboard .station.warning-yellow::before,
#kioskMode .station.warning-yellow::before {
    background-image: linear-gradient(90deg, #ffb020, rgba(255, 176, 32, 0));
    background-size: 100% 3px;
    opacity: 1;
}

#dashboard .station.flashing-red::before,
#kioskMode .station.flashing-red::before {
    background-image: linear-gradient(90deg, var(--red), rgba(255, 59, 59, 0));
    background-size: 100% 3px;
    opacity: 1;
}

@media (hover: hover) {
    #dashboard .station:hover,
    #kioskMode .station:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 229, 255, 0.26);
        box-shadow: 0 22px 42px rgba(0, 0, 0, 0.48);
    }
}

#dashboard .station-header,
#kioskMode .station-header {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--panel-line);
    align-items: flex-start;
    gap: 14px;
}

#dashboard .station-name,
#kioskMode .station-name {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0;
    gap: 10px;
}

#dashboard .station-name svg,
#kioskMode .station-name svg {
    width: 22px;
    height: 22px;
    opacity: 0.85;
}

#dashboard .console-badge,
#kioskMode .console-badge {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.57rem;
    letter-spacing: 0.12em;
}

#dashboard .console-badge.ps4,
#kioskMode .console-badge.ps4 {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #aab5c4;
}

#dashboard .console-badge.ps5,
#kioskMode .console-badge.ps5 {
    background: rgba(0, 67, 255, 0.22);
    border-color: rgba(90, 130, 255, 0.5);
    color: #d6e2ff;
}

#dashboard .station-unpaid,
#kioskMode .station-unpaid {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
}

#dashboard .station-unpaid span,
#kioskMode .station-unpaid span {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--label-dim);
}

#dashboard .station-unpaid-value,
#kioskMode .station-unpaid-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.8rem;
    color: var(--orange);
}

#dashboard .total-amount,
#kioskMode .total-amount {
    text-align: right;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.75rem;
    line-height: 1;
}

#dashboard .station-total-label,
#kioskMode .station-total-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--label-dim);
    margin-bottom: 6px;
}

#dashboard .station-total-value,
#kioskMode .station-total-value {
    color: #f4f8fd;
}

#dashboard .station-total-value span,
#kioskMode .station-total-value span {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.65rem;
    color: var(--cyan);
    margin-left: 4px;
}

/* Stats strip */
#dashboard .station-stats,
#kioskMode .station-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--panel-line);
    border-bottom: 1px solid var(--panel-line);
    background: rgba(0, 0, 0, 0.24);
}

#dashboard .station-stat,
#kioskMode .station-stat {
    padding: 10px 6px;
    text-align: center;
    border-right: 1px solid var(--panel-line);
}

#dashboard .station-stat:last-child,
#kioskMode .station-stat:last-child {
    border-right: 0;
}

#dashboard .station-stat span,
#kioskMode .station-stat span {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--label-dim);
    margin-bottom: 3px;
}

#dashboard .station-stat strong,
#kioskMode .station-stat strong {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.92rem;
    color: #e8eef7;
}

#dashboard .station-stat em,
#kioskMode .station-stat em {
    font-style: normal;
    font-size: 0.58rem;
    color: var(--cyan);
}

/* Timer bar */
#dashboard .status-bar,
#kioskMode .status-bar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--panel-line);
    background: rgba(0, 229, 255, 0.04);
    color: #9fb0c3;
    font-size: 0.8rem;
    gap: 8px;
}

#dashboard .status-bar i,
#kioskMode .status-bar i {
    color: #7ee9f7;
}

#dashboard .timer-display,
#kioskMode .timer-display {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

/* Session area */
#dashboard .station-content,
#kioskMode .station-content {
    padding: 20px 22px;
    min-height: 116px;
    align-items: flex-start;
}

#dashboard .session-dots,
#kioskMode .session-dots {
    gap: 10px;
}

#dashboard .dot,
#kioskMode .dot {
    width: 20px;
    height: 20px;
}

#dashboard .dot.green,
#kioskMode .dot.green {
    box-shadow: 0 0 14px rgba(0, 255, 157, 0.55), inset 0 0 6px rgba(255, 255, 255, 0.35);
}

#dashboard .dot.dark,
#kioskMode .dot.dark {
    border: 2px dashed rgba(255, 255, 255, 0.5);
}

#dashboard .no-games,
#kioskMode .no-games {
    color: #4d5663;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 12px 0;
}

/* Footer actions */
#dashboard .station-footer,
#kioskMode .station-footer {
    padding: 16px 20px 18px;
    border-top: 1px solid var(--panel-line);
}

#dashboard .station-footer .btn-group,
#kioskMode .station-footer .btn-group {
    margin-top: 0;
    gap: 10px;
}

#dashboard .station-footer .action-btn,
#kioskMode .station-footer .action-btn {
    height: 44px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
}

#dashboard .remove-sess-btn,
#kioskMode .remove-sess-btn {
    color: #ff8a8a;
    border-color: rgba(255, 59, 59, 0.24);
    background: rgba(255, 59, 59, 0.07);
}

#dashboard .remove-sess-btn:hover,
#kioskMode .remove-sess-btn:hover {
    border-color: rgba(255, 59, 59, 0.5);
    background: rgba(255, 59, 59, 0.14);
}

#dashboard .confirm-sess-btn,
#kioskMode .confirm-sess-btn {
    color: #78f7c4;
    border-color: rgba(0, 255, 157, 0.24);
    background: rgba(0, 255, 157, 0.07);
}

#dashboard .confirm-sess-btn:hover,
#kioskMode .confirm-sess-btn:hover {
    border-color: rgba(0, 255, 157, 0.5);
    background: rgba(0, 255, 157, 0.14);
}

#dashboard .add-sess-btn,
#kioskMode .add-sess-btn {
    flex: 1.5;
    color: #041014;
    border: 0;
    background: linear-gradient(135deg, #7ef0ff 0%, #00e5ff 55%, #00b8d4 100%);
    box-shadow: 0 8px 22px rgba(0, 229, 255, 0.28);
}

#dashboard .add-sess-btn:hover,
#kioskMode .add-sess-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 229, 255, 0.4);
}

/* Coin-op table cards */
#dashboard .coin-op-station,
#kioskMode .coin-op-station {
    border-radius: 22px;
}

#dashboard .coin-btn,
#kioskMode .coin-btn {
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(255, 200, 0, 0.22);
}

/* ---------- Sidebar ---------- */
#dashboard .sidebar {
    border-radius: 24px;
    border: 1px solid var(--panel-line);
    background: var(--panel-surface);
    padding: 22px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

#dashboard .sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93a0b1;
}

#dashboard .sidebar-title svg,
#dashboard .sidebar-title i {
    width: 15px;
    height: 15px;
    color: var(--cyan);
}

#dashboard .total-rev-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(0, 229, 255, 0.14) 0%, transparent 62%),
        rgba(255, 255, 255, 0.02);
    margin-bottom: 20px;
}

#dashboard .total-rev-amt {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.05;
    margin: 6px 0 10px;
    background: linear-gradient(120deg, #8ff3ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#dashboard .total-rev-amt span {
    -webkit-text-fill-color: #7ee9f7;
    color: #7ee9f7;
    font-size: 0.7rem;
    margin-left: 4px;
}

#dashboard .zone-pin-display {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
    color: #eaf9ff;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.3em;
    text-align: center;
    text-indent: 0.3em;
}

#dashboard .top-zones {
    margin-top: 22px;
}

#dashboard .top-zone-item {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#dashboard .top-zone-item:hover {
    background: transparent;
}

#dashboard .owner-chat-btn {
    margin-top: 18px;
    border-radius: 14px;
}

/* ---------- Inventory cards ---------- */
#dashboard .inventory-grid,
#kioskMode .inventory-grid {
    /* Legacy rules (including the iPad Air block) pin these grids to fixed
       columns or to display:block with !important, which crushes the themed
       cards; let the grid size itself instead. */
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 18px;
}

#dashboard .inventory-grid .inv-card,
#kioskMode .inventory-grid .inv-card {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
}

#dashboard .inv-card,
#kioskMode .inv-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--panel-line);
    background: var(--panel-surface);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    #dashboard .inv-card:hover,
    #kioskMode .inv-card:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 229, 255, 0.28);
        box-shadow: 0 20px 38px rgba(0, 0, 0, 0.42);
    }
}

#dashboard .inv-card.enabled,
#kioskMode .inv-card.enabled {
    border-color: rgba(0, 229, 255, 0.2);
}

#dashboard .inv-card.disabled,
#kioskMode .inv-card.disabled {
    opacity: 0.55;
    border-color: rgba(255, 255, 255, 0.08);
}

#dashboard .inv-header,
#kioskMode .inv-header {
    gap: 14px;
    margin-bottom: 14px;
    align-items: flex-start;
}

#dashboard .inv-icon,
#kioskMode .inv-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 70%);
}

#dashboard .inv-meta,
#kioskMode .inv-meta {
    min-width: 0;
}

#dashboard .inv-name,
#kioskMode .inv-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #eef4fb;
    line-height: 1.25;
}

#dashboard .inv-price,
#kioskMode .inv-price {
    margin-top: 3px;
    font-size: 0.72rem;
    color: #8b96a8;
}

#dashboard .inv-total,
#kioskMode .inv-total {
    margin-top: 4px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    color: #cfd8e3;
}

#dashboard .inv-stock-pill,
#kioskMode .inv-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.62rem;
    border: 1px solid transparent;
    width: fit-content !important;
    max-width: 100%;
}

/* The iPad Air compatibility block hides .inv-card icons by setting their
   colour to transparent with a plain declaration; inherit it back so the
   themed glyphs stay visible (and keep the per-item accent). */
#dashboard .inv-card .inv-icon svg,
#dashboard .inv-card .inv-icon i,
#kioskMode .inv-card .inv-icon svg,
#kioskMode .inv-card .inv-icon i,
#dashboard .inv-stock-pill svg,
#kioskMode .inv-stock-pill svg {
    color: inherit !important;
}

#dashboard .inv-stock-pill.stock-ok,
#kioskMode .inv-stock-pill.stock-ok {
    color: #78f7c4;
    background: rgba(0, 255, 157, 0.08);
    border-color: rgba(0, 255, 157, 0.2);
}

#dashboard .inv-stock-pill.stock-warning,
#kioskMode .inv-stock-pill.stock-warning {
    color: #ffb020;
    background: rgba(255, 176, 32, 0.1);
    border-color: rgba(255, 176, 32, 0.25);
}

#dashboard .stock-management,
#kioskMode .stock-management {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.28);
    margin-top: 0;
}

#dashboard .stock-row,
#kioskMode .stock-row {
    margin-bottom: 7px;
}

#dashboard .stock-row:last-child,
#kioskMode .stock-row:last-child {
    margin-bottom: 0;
}

#dashboard .stock-label,
#kioskMode .stock-label {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--label-dim);
}

#dashboard .stock-value,
#kioskMode .stock-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.9rem;
}

#dashboard .inv-restock,
#kioskMode .inv-restock {
    margin-top: 10px;
}

#dashboard .restock-btn,
#kioskMode .restock-btn {
    width: 100%;
    min-height: 36px;
    border-radius: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

#dashboard .qty-control,
#kioskMode .qty-control {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 229, 255, 0.14);
    background: rgba(0, 229, 255, 0.05);
}

#dashboard .qty-label,
#kioskMode .qty-label {
    font-size: 0.55rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--label-dim);
}

#dashboard .qty-steppers,
#kioskMode .qty-steppers {
    display: flex;
    align-items: center;
    gap: 14px;
}

#dashboard .qty-value,
#kioskMode .qty-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 34px;
    text-align: center;
    color: #eef4fb;
}

#dashboard .inventory-decrease-btn,
#kioskMode .inventory-decrease-btn {
    color: #ff8a8a;
    background: rgba(255, 59, 59, 0.1);
    border-radius: 10px;
}

#dashboard .inventory-increase-btn,
#kioskMode .inventory-increase-btn {
    color: #041014;
    background: linear-gradient(135deg, #7ef0ff, #00e5ff);
    border-radius: 10px;
}

/* ---------- Kiosk shell ---------- */
#kioskMode {
    min-height: 100vh;
    padding-bottom: 24px;
    /* Flat page tone: the old cyan/green wash tinted the section headers.
       Matches the body (#030303) so empty grid space reads as one surface. */
    background: var(--bg);
}

#kioskMode .top-nav {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 10, 13, 0.96);
}

#kioskMode .logo-section h1 {
    font-size: 1.15rem;
}

#kioskMode .owner-display {
    margin-top: 6px;
    padding: 4px 10px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, 0.24);
    background: rgba(0, 229, 255, 0.08);
    color: #7ee9f7;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#kioskMode .nav-btn.active {
    background: rgba(0, 229, 255, 0.14);
    border-color: rgba(0, 229, 255, 0.35);
    color: #cff9ff;
}

#kioskMode .active-sessions-count {
    color: var(--cyan);
}

#kioskMode .dashboard-main {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
}

#kioskMode .grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

#kioskMode .station-name {
    font-size: 1.75rem;
}

#kioskMode .total-amount {
    font-size: 2rem;
}

#kioskMode .station-content {
    min-height: 132px;
}

#kioskMode .dot {
    width: 24px;
    height: 24px;
}

#kioskMode .station-footer .action-btn {
    height: 52px;
}

/* Kiosk sidebar panels */
#kioskMode .sidebar {
    border-radius: 24px;
    border: 1px solid var(--panel-line);
    background: var(--panel-surface);
    padding: 20px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

#kioskMode .sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93a0b1;
}

#kioskMode .sidebar-title svg,
#kioskMode .sidebar-title i {
    width: 15px;
    height: 15px;
    color: var(--cyan);
}

#kioskMode .kiosk-clock-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(0, 229, 255, 0.16) 0%, transparent 62%),
        rgba(255, 255, 255, 0.02);
}

#kioskMode .kiosk-clock {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #eaf9ff;
}

#kioskMode .kiosk-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #9fb0c3;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

#kioskMode .kiosk-icon-btn:hover {
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.4);
}

#kioskMode .banking-section {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(0, 229, 255, 0.055), transparent 62%),
        rgba(255, 255, 255, 0.015);
    overflow: hidden;
}

#kioskMode .banking-form {
    display: grid;
    gap: 10px;
}

#kioskMode .bank-field {
    margin: 0 !important;
}

#kioskMode .bank-field > label {
    display: block;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7fa3ad;
}

/* Bank picker: a real radio group. The input is hidden but stays focusable;
   the drawn ring carries the selection so each row can read as a card. */
#kioskMode .bank-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    max-height: 160px;
    overflow-y: auto;
    margin-top: 4px;
    padding-right: 2px;
}

#kioskMode .bank-picker::-webkit-scrollbar {
    width: 4px;
}

#kioskMode .bank-picker::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 2px;
}

#kioskMode .bank-radio {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

#kioskMode .bank-radio:hover {
    border-color: rgba(0, 229, 255, 0.28);
    background: rgba(255, 255, 255, 0.035);
}

#kioskMode .bank-radio input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#kioskMode .bank-radio-mark {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#kioskMode .bank-radio-mark::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: transparent;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

#kioskMode .bank-radio:has(input:checked) {
    border-color: rgba(0, 229, 255, 0.42);
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.02));
    box-shadow: inset 2px 0 0 rgba(0, 229, 255, 0.65);
}

#kioskMode .bank-radio:has(input:checked) .bank-radio-mark {
    border-color: rgba(0, 229, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

#kioskMode .bank-radio:has(input:checked) .bank-radio-mark::after {
    background: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

#kioskMode .bank-radio:has(input:focus-visible) {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 2px;
}

#kioskMode .bank-radio-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    color: #dbe4ef;
}

#kioskMode .bank-radio-code {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.48rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f8b9c;
}

#kioskMode .bank-radio:has(input:checked) .bank-radio-code {
    border-color: rgba(0, 229, 255, 0.28);
    color: #8fd9e5;
}

/* Amount is the one figure that reads like money. */
#kioskMode .bank-amount {
    position: relative;
}

#kioskMode .bank-amount .app-input {
    padding-right: 46px !important;
    /* Space Grotesk, not the mono face: a slashed zero reads like a glyph
       error in an amount field. */
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

#kioskMode .bank-amount .app-input::placeholder {
    color: #6f8494;
    opacity: 1;
}

#kioskMode .bank-amount-cur {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: #7f8b9c;
    pointer-events: none;
}

#kioskMode .banking-summary {
    margin-top: 4px;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#kioskMode .bank-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

#kioskMode .bank-summary-head .kiosk-summary-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7fa3ad;
    white-space: nowrap;
}

#kioskMode .bank-summary-head .total-rev-amt {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: #8ef4ff;
}

#kioskMode .bank-summary-head .total-rev-amt span {
    margin-left: 4px !important;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: #7f8b9c;
}

/* Today's ledger: initial badge, name, one muted meta line, amount. */
#kioskMode .bank-tx-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 2px;
}

/* The compact passes cap these at 50–104px, which cuts a row in half at
   several widths. Three banks and five transfers should simply fit. */
#kioskMode #kioskBankSelectContainer.bank-picker {
    max-height: 220px !important;
}

#kioskMode #kioskRecentTransfersList.bank-tx-list {
    max-height: 220px !important;
}

#kioskMode .bank-tx-list::-webkit-scrollbar {
    width: 4px;
}

#kioskMode .bank-tx-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 2px;
}

#kioskMode .bank-tx {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px 4px;
    border-radius: 8px;
}

#kioskMode .bank-tx + .bank-tx {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#kioskMode .bank-tx.is-pending {
    opacity: 0.65;
}

#kioskMode .bank-tx-badge {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.07);
    color: #9fe9f4;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
}

#kioskMode .bank-tx-what {
    min-width: 0;
    display: grid;
    gap: 1px;
}

#kioskMode .bank-tx-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 600;
    color: #e8f0f8;
}

#kioskMode .bank-tx-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.56rem;
    color: #6f8494;
}

#kioskMode .bank-tx-amount {
    padding-left: 2px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #ff8f8f;
    white-space: nowrap;
}

#kioskMode .bank-tx-empty {
    padding: 14px 0;
    text-align: center;
    font-size: 0.66rem;
    color: #6f8494;
}

#kioskMode .bank-tx-more {
    padding: 5px 0 2px;
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f8494;
}

#kioskMode .kiosk-brightness-control {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

#kioskMode .brightness-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

#kioskMode .brightness-label {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: #93a0b1;
}

#kioskMode .brightness-slider-row input[type="range"] {
    accent-color: var(--cyan);
}

#kioskMode .network-bar {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    margin-top: 14px;
}

#kioskMode .kiosk-calculator {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
}

#kioskMode .calc-display {
    border-radius: 10px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    background: rgba(0, 0, 0, 0.5);
    color: #eaf9ff;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    text-align: right;
    font-size: 1.15rem;
    padding: 10px 12px;
}

#kioskMode .calc-btn {
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #dbe4ef;
    transition: background 0.15s ease, transform 0.1s ease;
}

#kioskMode .calc-btn:active {
    transform: scale(0.95);
}

#kioskMode .kiosk-fullscreen-btn {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #9fb0c3;
}

/* ---------- Responsive ---------- */
/* The legacy tablet blocks (including the iPad Air one) pin the sidebar to
   200px with !important. The themed panels need the full width below 1100px,
   so the single-column rule has to outrank them. */
@media (max-width: 1100px) {
    #dashboard .dashboard-main,
    #kioskMode .dashboard-main {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
    }

    #dashboard .sidebar,
    #kioskMode .sidebar {
        position: static;
    }

    #dashboard .zones-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Between 768px and 1100px the kiosk desktop nav is forced visible but no
       longer fits on one line, so let the bar wrap instead of overflowing. */
    #kioskMode .top-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }

    #kioskMode .top-nav .nav-controls {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

    #kioskMode .top-nav .nav-btn,
    #kioskMode .top-nav .sync-btn,
    #kioskMode .top-nav .reset-btn {
        padding-inline: 12px;
    }

    #kioskMode .top-nav .active-sessions-count {
        font-size: 1.4rem;
        min-width: 48px;
    }
}

/* Tablet widths: the legacy iPad-Air block shrinks the station chrome with
   !important. Now that the sidebar stacks, the cards have room for the themed
   spacing, so restate it for the 768-1100px range. */
@media (min-width: 768px) and (max-width: 1100px) {
    #dashboard .station-header,
    #kioskMode .station-header {
        padding: 18px 20px 14px !important;
    }

    #dashboard .station-name,
    #kioskMode .station-name {
        font-size: 1.4rem !important;
    }

    #dashboard .total-amount,
    #kioskMode .total-amount {
        font-size: 1.5rem !important;
    }

    #dashboard .status-bar,
    #kioskMode .status-bar {
        padding: 10px 14px !important;
    }

    #dashboard .station-content,
    #kioskMode .station-content {
        padding: 16px 20px !important;
        min-height: 100px !important;
    }

    #dashboard .dot,
    #kioskMode .dot {
        width: 18px !important;
        height: 18px !important;
    }

    #dashboard .station-footer,
    #kioskMode .station-footer {
        padding: 14px 16px 16px !important;
    }

    #dashboard .station-footer .action-btn,
    #kioskMode .station-footer .action-btn {
        height: 46px !important;
    }

    #dashboard .sidebar,
    #kioskMode .sidebar {
        padding: 18px !important;
    }

    #dashboard .zone-pin-display {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    #dashboard .dash-hero,
    #dashboard .detail-hero {
        padding: 20px;
        border-radius: 20px;
        align-items: flex-start;
    }

    #dashboard .dash-title,
    #dashboard .dash-title.section-title {
        font-size: 1.55rem;
    }

    #dashboard .dash-chips {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #dashboard .dash-chip {
        min-width: 0;
        padding: 10px 10px;
    }

    #dashboard .dash-chip span {
        font-size: 0.52rem;
        letter-spacing: 0.1em;
    }

    #dashboard .dash-chip strong {
        font-size: 1.15rem;
    }

    #dashboard .zones-grid,
    #dashboard .grid,
    #kioskMode .grid,
    #dashboard .inventory-grid,
    #kioskMode .inventory-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px;
    }

    #dashboard .station-name,
    #kioskMode .station-name {
        font-size: 1.4rem;
    }

    #dashboard .total-amount,
    #kioskMode .total-amount {
        font-size: 1.5rem;
    }

    #dashboard .station-header,
    #kioskMode .station-header {
        padding: 16px 16px 14px;
    }

    #dashboard .station-content,
    #kioskMode .station-content {
        padding: 16px;
        min-height: 96px;
    }

    #dashboard .station-footer,
    #kioskMode .station-footer {
        padding: 14px 16px 16px;
    }

    #dashboard .sidebar,
    #kioskMode .sidebar {
        padding: 16px;
        border-radius: 20px;
    }

    #dashboard .total-rev-amt {
        font-size: 1.9rem;
    }

    #kioskMode .top-nav {
        padding: 12px;
        border-radius: 16px;
    }

    #kioskMode .kiosk-clock {
        font-size: 1.45rem;
    }
}

/* Owner top bar: keep brand and controls on one line */
#mainApp > .top-nav {
    padding: 12px 16px;
    margin-bottom: 22px;
    gap: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 10, 13, 0.96);
}

#mainApp > .top-nav .nav-controls {
    gap: 16px;
}

#mainApp > .top-nav .nav-btn {
    padding: 10px 16px;
}

#mainApp > .top-nav .logo-section h1 {
    white-space: nowrap;
    font-size: 1.12rem;
}

#mainApp > .top-nav .nav-btn,
#mainApp > .top-nav .action-btn,
#mainApp > .top-nav .sync-btn,
#mainApp > .top-nav .reset-btn {
    white-space: nowrap;
}

@media (max-width: 1365px) {
    #mainApp > .top-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
    }

    #mainApp > .top-nav .nav-controls {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* Station grid sizing + header balance */
#dashboard .grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

#dashboard .station-header,
#kioskMode .station-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

#dashboard .station-name,
#kioskMode .station-name {
    flex-wrap: wrap;
    row-gap: 6px;
}

#dashboard .total-amount,
#kioskMode .total-amount {
    min-width: 88px;
    margin-left: auto;
}

#dashboard .station-header > div:first-child,
#kioskMode .station-header > div:first-child {
    min-width: 0;
}

/* The legacy desktop rule pins .grid to four columns with !important. */
#dashboard .grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

#kioskMode .grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
}

@media (max-width: 767px) {
    #dashboard .grid,
    #kioskMode .grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

#dashboard .zone-pin-label {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--label-dim);
    margin-bottom: 10px;
}

#dashboard .add-sess-btn,
#kioskMode .add-sess-btn {
    flex: 1;
}

#dashboard .add-sess-btn svg,
#kioskMode .add-sess-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.4;
}

/* Footer .action-btn base rule is more specific, so restate the primary action here. */
#dashboard .station-footer .add-sess-btn,
#kioskMode .station-footer .add-sess-btn {
    flex: 1;
    color: #041014;
    border: 0;
    background: linear-gradient(135deg, #7ef0ff 0%, #00e5ff 55%, #00b8d4 100%);
    box-shadow: 0 8px 22px rgba(0, 229, 255, 0.28);
}

#dashboard .station-footer .add-sess-btn:hover,
#kioskMode .station-footer .add-sess-btn:hover {
    background: linear-gradient(135deg, #a6f6ff 0%, #22ecff 55%, #00c9e6 100%);
    box-shadow: 0 12px 26px rgba(0, 229, 255, 0.42);
}

#dashboard .zone-card-header {
    flex-wrap: nowrap;
    gap: 10px;
}

#dashboard .zone-status {
    flex-shrink: 0;
}

/* ==========================================================================
   DENSE STATION GRID
   Desktop lays stations out four across (twelve fill three rows); portrait
   tablets three across. Card chrome is compacted so a full three rows of
   stations, including their action buttons, stays on screen.
   ========================================================================== */
@media (min-width: 1024px) {
    #dashboard .grid,
    #kioskMode .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 12px;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    #dashboard .grid,
    #kioskMode .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px;
    }
}

@media (min-width: 420px) and (max-width: 599px) {
    #dashboard .grid,
    #kioskMode .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }
}

@media (max-width: 419px) {
    #dashboard .grid,
    #kioskMode .grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (min-width: 768px) {
    #dashboard .grid .section-header,
    #kioskMode .grid .section-header {
        margin: 4px 0 10px !important;
        padding-bottom: 6px !important;
        gap: 8px;
    }

    #dashboard .grid .section-header h2,
    #kioskMode .grid .section-header h2 {
        font-size: 1.15rem !important;
    }

    #dashboard .grid .section-header span,
    #kioskMode .grid .section-header span {
        padding: 2px 9px !important;
        font-size: 0.65rem !important;
    }

    /* Header */
    #dashboard .station-header,
    #kioskMode .station-header {
        padding: 10px 12px 8px !important;
        gap: 8px;
    }

    #dashboard .station-name,
    #kioskMode .station-name {
        font-size: 1.1rem !important;
        gap: 6px;
        row-gap: 3px;
    }

    #dashboard .station-name svg,
    #kioskMode .station-name svg {
        width: 17px;
        height: 17px;
    }

    #dashboard .console-badge,
    #kioskMode .console-badge {
        padding: 2px 6px;
        font-size: 0.48rem;
    }

    #dashboard .station-unpaid,
    #kioskMode .station-unpaid {
        margin-top: 5px;
        gap: 4px;
    }

    #dashboard .station-unpaid span,
    #kioskMode .station-unpaid span {
        font-size: 0.48rem;
    }

    #dashboard .station-unpaid-value,
    #kioskMode .station-unpaid-value {
        font-size: 0.7rem;
    }

    #dashboard .total-amount,
    #kioskMode .total-amount {
        font-size: 1.25rem !important;
        min-width: 0;
    }

    #dashboard .station-total-label,
    #kioskMode .station-total-label {
        margin-bottom: 2px;
        font-size: 0.46rem;
    }

    #dashboard .station-total-value span,
    #kioskMode .station-total-value span {
        font-size: 0.52rem;
    }

    /* Stats strip */
    #dashboard .station-stat,
    #kioskMode .station-stat {
        padding: 5px 3px;
    }

    #dashboard .station-stat span,
    #kioskMode .station-stat span {
        margin-bottom: 1px;
        font-size: 0.46rem;
        letter-spacing: 0.07em;
    }

    #dashboard .station-stat strong,
    #kioskMode .station-stat strong {
        font-size: 0.8rem;
    }

    #dashboard .station-stat em,
    #kioskMode .station-stat em {
        font-size: 0.48rem;
    }

    /* Timer */
    #dashboard .status-bar,
    #kioskMode .status-bar {
        padding: 5px 10px !important;
        font-size: 0.66rem;
    }

    #dashboard .timer-display,
    #kioskMode .timer-display {
        font-size: 0.95rem;
    }

    /* Session area */
    #dashboard .station-content,
    #kioskMode .station-content {
        padding: 8px 12px !important;
        min-height: 44px !important;
    }

    #dashboard .session-dots,
    #kioskMode .session-dots {
        gap: 6px;
    }

    #dashboard .dot,
    #kioskMode .dot {
        width: 12px !important;
        height: 12px !important;
    }

    #dashboard .no-games,
    #kioskMode .no-games {
        padding: 4px 0;
        font-size: 0.55rem;
    }

    /* Footer */
    #dashboard .station-footer,
    #kioskMode .station-footer {
        padding: 8px 10px 10px !important;
    }

    #dashboard .station-footer .btn-group,
    #kioskMode .station-footer .btn-group {
        gap: 8px;
    }

    #dashboard .station-footer .action-btn {
        height: 34px !important;
        border-radius: 10px;
    }

    #kioskMode .station-footer .action-btn {
        height: 40px !important;
        border-radius: 10px;
    }

    #dashboard .station-footer .action-btn svg,
    #kioskMode .station-footer .action-btn svg {
        width: 17px;
        height: 17px;
    }

    #dashboard .station-footer .add-sess-btn svg,
    #kioskMode .station-footer .add-sess-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Shorter zone hero so the grid starts higher */
    #dashboard .detail-hero {
        margin-bottom: 14px;
        padding: 16px 20px;
    }

    #dashboard .detail-hero .dash-title {
        margin-top: 6px;
        font-size: 1.5rem;
    }

    #dashboard .detail-hero .dash-sub {
        margin-top: 5px;
        font-size: 0.76rem;
    }

    #dashboard .detail-back {
        height: 36px;
        font-size: 0.7rem;
    }
}

/* The top bar has to stay on one row on narrow desktops; the counter keeps
   its number but drops the redundant label. */
@media (min-width: 1024px) and (max-width: 1365px) {
    #mainApp > .top-nav {
        padding: 10px 12px;
        gap: 10px;
    }

    #mainApp > .top-nav .nav-controls {
        gap: 8px;
    }

    #mainApp > .top-nav .nav-btn {
        padding: 8px 10px;
        font-size: 0.78rem;
        gap: 6px;
    }

    #mainApp > .top-nav .nav-btn svg {
        width: 16px;
        height: 16px;
    }

    #mainApp > .top-nav .sync-btn {
        padding: 0 10px;
    }

    #mainApp > .top-nav .active-sessions-label {
        display: none;
    }

    #mainApp > .top-nav .active-sessions-count {
        font-size: 1.25rem;
        min-width: 44px;
    }

    #mainApp > .top-nav .reset-btn {
        padding: 0 12px;
    }
}

/* Tighter pass: fit twelve stations plus chrome inside a 1094x991 viewport. */
@media (min-width: 768px) {
    #dashboard .station-header,
    #kioskMode .station-header {
        padding: 8px 10px 7px !important;
    }

    #dashboard .station-name,
    #kioskMode .station-name {
        font-size: 1.05rem !important;
        row-gap: 2px;
    }

    #dashboard .station-unpaid,
    #kioskMode .station-unpaid {
        margin-top: 4px;
    }

    #dashboard .station-unpaid-value,
    #kioskMode .station-unpaid-value {
        font-size: 0.66rem;
    }

    #dashboard .total-amount,
    #kioskMode .total-amount {
        font-size: 1.15rem !important;
    }

    #dashboard .station-stat,
    #kioskMode .station-stat {
        padding: 4px 2px;
    }

    #dashboard .station-stat span,
    #kioskMode .station-stat span {
        font-size: 0.44rem;
    }

    #dashboard .station-stat strong,
    #kioskMode .station-stat strong {
        font-size: 0.76rem;
    }

    #dashboard .status-bar,
    #kioskMode .status-bar {
        padding: 4px 8px !important;
        font-size: 0.62rem;
    }

    #dashboard .timer-display,
    #kioskMode .timer-display {
        font-size: 0.88rem;
    }

    #dashboard .station-content,
    #kioskMode .station-content {
        padding: 6px 10px !important;
        min-height: 38px !important;
    }

    #dashboard .session-dots,
    #kioskMode .session-dots {
        gap: 5px;
    }

    #dashboard .dot,
    #kioskMode .dot {
        width: 11px !important;
        height: 11px !important;
    }

    #dashboard .station-footer,
    #kioskMode .station-footer {
        padding: 6px 8px 8px !important;
    }

    #dashboard .station-footer .action-btn {
        height: 32px !important;
    }

    #kioskMode .station-footer .action-btn {
        height: 38px !important;
    }

    #dashboard .detail-hero {
        margin-bottom: 12px;
        padding: 14px 18px;
    }

    #dashboard .detail-hero .dash-title {
        margin-top: 4px;
        font-size: 1.4rem;
    }

    #dashboard .detail-hero .dash-sub {
        margin-top: 4px;
        font-size: 0.72rem;
    }

    #dashboard .detail-back {
        height: 34px;
    }
}

@media (min-width: 1024px) and (max-width: 1365px) {
    #mainApp > .top-nav .nav-tabs .nav-btn {
        padding: 8px 8px;
    }

    #mainApp > .top-nav #addZoneBtn {
        padding: 9px 12px !important;
    }

    #mainApp > .top-nav .active-sessions-wrapper {
        gap: 2px;
        padding-left: 4px;
    }

    #mainApp > .top-nav .active-sessions-count {
        font-size: 1.05rem;
        min-width: 30px;
    }

    #mainApp > .top-nav .reset-btn {
        padding: 0 10px;
    }
}

@media (min-width: 1024px) and (max-width: 1365px) {
    #mainApp > .top-nav .active-sessions-wrapper {
        min-width: 0;
        padding-left: 10px;
        gap: 0;
    }
}

@media (min-width: 768px) {
    #dashboard .station-header,
    #kioskMode .station-header {
        padding: 7px 10px 6px !important;
    }

    #dashboard .total-amount,
    #kioskMode .total-amount {
        font-size: 1.1rem !important;
    }

    #dashboard .station-stat,
    #kioskMode .station-stat {
        padding: 3px 2px;
    }

    #dashboard .station-stat strong,
    #kioskMode .station-stat strong {
        font-size: 0.74rem;
    }

    #dashboard .status-bar,
    #kioskMode .status-bar {
        padding: 3px 8px !important;
    }

    #dashboard .timer-display,
    #kioskMode .timer-display {
        font-size: 0.85rem;
    }

    #dashboard .station-content,
    #kioskMode .station-content {
        padding: 5px 10px !important;
        min-height: 34px !important;
    }

    #dashboard .station-footer,
    #kioskMode .station-footer {
        padding: 5px 8px 7px !important;
    }

    #dashboard .station-footer .action-btn {
        height: 30px !important;
    }

    #kioskMode .station-footer .action-btn {
        height: 36px !important;
    }

    #dashboard .detail-hero {
        margin-bottom: 10px;
        padding: 12px 16px;
    }

    #dashboard .detail-hero .dash-title {
        font-size: 1.3rem;
    }

    #dashboard .detail-hero .dash-sub {
        font-size: 0.7rem;
    }
}

@media (min-width: 1024px) and (max-width: 1365px) {
    /* The hero/chips already carry the live count; the bare number here read
       as "13 / 12" and stole room from the tabs. */
    #mainApp > .top-nav .active-sessions-wrapper {
        display: none;
    }
}

@media (min-width: 768px) {
    #dashboard .grid,
    #kioskMode .grid {
        gap: 10px;
    }

    #dashboard .grid .section-header,
    #kioskMode .grid .section-header {
        margin: 2px 0 8px !important;
    }

    #dashboard .detail-hero {
        padding: 11px 16px;
    }
}

/* Keep the live counter compact enough not to set the top bar's height. */
#mainApp > .top-nav .active-sessions-wrapper {
    gap: 2px;
    min-width: 0;
    padding-left: 16px;
}

#mainApp > .top-nav .active-sessions-label label {
    margin-bottom: 0;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
}

#mainApp > .top-nav .active-sessions-count {
    font-size: 1.3rem;
    line-height: 1.1;
}

/* The legacy iPad block forces section headers to display:block with floats,
   which pushes the icon after the label; keep the flex row intact. */
@media (min-width: 768px) {
    #dashboard .grid .section-header,
    #kioskMode .grid .section-header {
        display: flex !important;
        align-items: center !important;
    }

    #dashboard .grid .section-header h2,
    #kioskMode .grid .section-header h2 {
        float: none !important;
        margin-right: 0 !important;
    }

    #dashboard .grid .section-header span,
    #kioskMode .grid .section-header span {
        float: none !important;
        margin-top: 0 !important;
    }
}

/* ==========================================================================
   STATION ALERT STATES — expiring (amber) and expired (red)
   The old treatment blinked the whole rounded card. The frame now stays
   still: state colour lives in a tinted hairline, a soft drop glow and a
   faint wash behind the timer, while the only motion is a short beam of
   light crossing the top edge and a slow ember in the upper corner. A grid
   full of expiring stations reads as calm and urgent, not as a strobe.

   Everything stays inside the card box: .station keeps overflow: visible so
   dot tooltips can escape, so the beam is a background sweep on the full
   width rail (backgrounds never overflow) and the ember never scales past
   1. No clipped tooltips, no page-wide horizontal scroll.
   ========================================================================== */

@keyframes gtAlertSweep {
    0% {
        background-position: 0 0, -30% 0;
    }

    46% {
        background-position: 0 0, 130% 0;
    }

    100% {
        background-position: 0 0, 130% 0;
    }
}

@keyframes gtAlertEmber {

    0%,
    100% {
        opacity: 0.26;
        transform: scale(0.96);
    }

    50% {
        opacity: 0.58;
        transform: scale(1);
    }
}

/* Retire the whole-card blink wherever it is still declared. */
.station.flashing-red {
    animation: none;
}

#dashboard .station.warning-yellow,
#kioskMode .station.warning-yellow,
#dashboard .station.flashing-red,
#kioskMode .station.flashing-red {
    isolation: isolate;
}

/* ---------- Expiring: amber ---------- */
#dashboard .station.warning-yellow,
#kioskMode .station.warning-yellow {
    border-color: rgba(255, 176, 32, 0.30);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(255, 176, 32, 0.05),
        0 18px 38px -20px rgba(255, 176, 32, 0.65);
}

#dashboard .station.warning-yellow::before,
#kioskMode .station.warning-yellow::before {
    height: auto;
    border-radius: inherit;
    background-image:
        linear-gradient(90deg, rgba(255, 176, 32, 0.42), rgba(255, 176, 32, 0.05)),
        linear-gradient(90deg,
            rgba(255, 236, 200, 0) 0%,
            rgba(255, 214, 150, 0.45) 34%,
            rgba(255, 244, 222, 1) 50%,
            rgba(255, 214, 150, 0.45) 66%,
            rgba(255, 236, 200, 0) 100%);
    background-size: 100% 2px, 26% 2px;
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, -30% 0;
    box-shadow: inset 0 2px 12px -8px rgba(255, 176, 32, 0.95);
    opacity: 1;
    animation: gtAlertSweep 4.6s cubic-bezier(0.4, 0, 0.35, 1) infinite;
}

#dashboard .station.warning-yellow::after,
#kioskMode .station.warning-yellow::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 64%;
    height: 58%;
    z-index: -1;
    pointer-events: none;
    border-radius: 22px 22px 0 0;
    background: radial-gradient(circle at 100% 0%,
            rgba(255, 176, 32, 0.46) 0%,
            rgba(255, 176, 32, 0.12) 42%,
            rgba(255, 176, 32, 0) 72%);
    animation: gtAlertEmber 4.6s ease-in-out infinite;
}

#dashboard .station.warning-yellow .status-bar,
#kioskMode .station.warning-yellow .status-bar {
    background: linear-gradient(90deg, rgba(255, 176, 32, 0.10), rgba(255, 176, 32, 0));
}

/* ---------- Expired: red ---------- */
#dashboard .station.flashing-red,
#kioskMode .station.flashing-red {
    border-color: rgba(255, 59, 59, 0.34);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(255, 59, 59, 0.06),
        0 20px 42px -20px rgba(255, 59, 59, 0.72);
}

#dashboard .station.flashing-red::before,
#kioskMode .station.flashing-red::before {
    height: auto;
    border-radius: inherit;
    background-image:
        linear-gradient(90deg, rgba(255, 59, 59, 0.46), rgba(255, 59, 59, 0.06)),
        linear-gradient(90deg,
            rgba(255, 220, 220, 0) 0%,
            rgba(255, 150, 150, 0.5) 34%,
            rgba(255, 240, 240, 1) 50%,
            rgba(255, 150, 150, 0.5) 66%,
            rgba(255, 220, 220, 0) 100%);
    background-size: 100% 2px, 26% 2px;
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, -30% 0;
    box-shadow: inset 0 2px 12px -8px rgba(255, 59, 59, 1);
    opacity: 1;
    animation: gtAlertSweep 3.1s cubic-bezier(0.4, 0, 0.35, 1) infinite;
}

#dashboard .station.flashing-red::after,
#kioskMode .station.flashing-red::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 64%;
    height: 58%;
    z-index: -1;
    pointer-events: none;
    border-radius: 22px 22px 0 0;
    background: radial-gradient(circle at 100% 0%,
            rgba(255, 59, 59, 0.5) 0%,
            rgba(255, 59, 59, 0.14) 42%,
            rgba(255, 59, 59, 0) 72%);
    animation: gtAlertEmber 3.1s ease-in-out infinite;
}

#dashboard .station.flashing-red .status-bar,
#kioskMode .station.flashing-red .status-bar {
    background: linear-gradient(90deg, rgba(255, 59, 59, 0.11), rgba(255, 59, 59, 0));
}

/* Still frame for anyone who asked for less motion: the edge keeps its
   state colour, nothing sweeps or breathes. */
@media (prefers-reduced-motion: reduce) {

    #dashboard .station.warning-yellow::before,
    #kioskMode .station.warning-yellow::before,
    #dashboard .station.flashing-red::before,
    #kioskMode .station.flashing-red::before {
        animation: none;
        transform: none;
        background-size: 100% 2px;
        border-radius: inherit;
        box-shadow: none;
    }

    #dashboard .station.warning-yellow::before,
    #kioskMode .station.warning-yellow::before {
        background-image: linear-gradient(90deg, #ffb020, rgba(255, 176, 32, 0));
        background-size: 100% 2px;
    }

    #dashboard .station.flashing-red::before,
    #kioskMode .station.flashing-red::before {
        background-image: linear-gradient(90deg, var(--red), rgba(255, 59, 59, 0));
        background-size: 100% 2px;
    }

    #dashboard .station.warning-yellow::after,
    #kioskMode .station.warning-yellow::after,
    #dashboard .station.flashing-red::after,
    #kioskMode .station.flashing-red::after {
        animation: none;
        opacity: 0.3;
        transform: none;
    }
}

/* ==========================================================================
   INVENTORY CARDS — same panel as the station cards, same width
   The cards already asked for the panel surface, but two legacy !important
   rules painted their inner blocks (stock management, quantity stepper) pure
   black, so the card read as a black hole next to the stations. Those blocks
   now inherit the panel tint, and the grid uses the station tracks so a card
   is exactly as wide as a station card.
   ========================================================================== */

#dashboard .inventory-grid .inv-card,
#kioskMode .inventory-grid .inv-card {
    background: var(--panel-surface);
    border: 1px solid var(--panel-line);
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

#dashboard .inventory-grid .inv-card.enabled,
#kioskMode .inventory-grid .inv-card.enabled {
    border-color: rgba(0, 229, 255, 0.32);
}

/* Reference swatch #0c0b0b sits between these inner panels and the card's
   gradient bottom, so the blocks read as part of one surface. */
#dashboard .inv-card .stock-management,
#kioskMode .inv-card .stock-management,
#dashboard .inv-card .qty-control,
#kioskMode .inv-card .qty-control {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
}

@media (min-width: 1024px) {

    #dashboard .inventory-grid,
    #kioskMode .inventory-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {

    #dashboard .inventory-grid,
    #kioskMode .inventory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (min-width: 420px) and (max-width: 599px) {

    #dashboard .inventory-grid,
    #kioskMode .inventory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 419px) {

    #dashboard .inventory-grid,
    #kioskMode .inventory-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* ==========================================================================
   KIOSK SIDEBAR — compact desktop rhythm
   The banking column is the tallest thing on the worker screen (clock, bank
   transfer form, network, sliders, calculator, cash, summaries). Trimming its
   chrome lets roughly half of it sit above the fold instead of a third, while
   every touch target stays at least 30px tall.
   ========================================================================== */
@media (min-width: 1101px) {

    #kioskMode .sidebar {
        padding: 14px;
    }

    /* Clock */
    #kioskMode .kiosk-clock-card {
        padding: 8px 12px;
        margin-bottom: 10px;
        border-radius: 16px;
    }

    #kioskMode .kiosk-clock {
        font-size: 1.4rem;
    }

    #kioskMode .kiosk-icon-btn {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    /* Banking panel */
    #kioskMode .banking-section {
        padding: 11px !important;
        margin-bottom: 10px !important;
        border-radius: 16px;
    }

    #kioskMode .banking-section .sidebar-title {
        margin-bottom: 7px !important;
    }

    #kioskMode .banking-section .input-group {
        margin-bottom: 7px !important;
    }

    #kioskMode .banking-section label {
        font-size: 0.66rem !important;
        margin-bottom: 3px !important;
    }

    #kioskMode .banking-section .app-input {
        padding: 7px 10px !important;
        font-size: 0.85rem !important;
    }

    #kioskMode #kioskBankSelectContainer {
        max-height: 104px !important;
        gap: 5px !important;
    }

    #kioskMode .bank-radio {
        padding: 5px 9px !important;
        border-radius: 10px;
    }

    #kioskMode .bank-radio-name {
        font-size: 0.74rem;
    }

    #kioskMode #kioskAddBankTransferBtn {
        height: 38px !important;
        margin-bottom: 6px !important;
    }

    #kioskMode .banking-summary {
        padding-top: 7px !important;
    }

    #kioskMode #kioskRecentTransfersList {
        max-height: 76px !important;
        margin-bottom: 6px !important;
    }

    #kioskMode #kioskViewAllTransfersBtn {
        padding: 6px !important;
        height: 34px !important;
    }

    /* Network + sliders */
    #kioskMode .network-bar {
        margin-top: 7px;
        padding: 8px 12px;
        border-radius: 14px;
    }

    #kioskMode .kiosk-brightness-control {
        margin-top: 7px;
        padding: 8px 12px;
        border-radius: 14px;
    }

    #kioskMode .brightness-header {
        margin-bottom: 4px;
    }

    /* Fullscreen row */
    #kioskMode .kiosk-fullscreen-btn {
        min-height: 38px;
    }

    /* Calculator */
    #kioskMode .kiosk-calculator {
        margin-top: 9px;
        padding: 9px;
        border-radius: 14px;
    }

    #kioskMode .calc-display {
        margin-bottom: 5px;
        padding: 6px 9px;
        font-size: 1rem;
    }

    #kioskMode .calc-buttons {
        gap: 3px;
    }

    #kioskMode .calc-btn {
        padding: 3px 2px;
        font-size: 0.72rem;
        min-height: 26px;
    }

    /* Cash in hand */
    #kioskMode .cash-in-hand {
        margin-top: 8px !important;
        padding: 8px 11px !important;
        border-radius: 14px !important;
    }

    #kioskMode .cash-in-hand .total-rev-amt {
        font-size: 1.4rem !important;
    }

    /* Summaries */
    #kioskMode .total-rev-card {
        padding: 14px !important;
        margin-bottom: 10px !important;
        border-radius: 16px;
    }

    #kioskMode .total-rev-amt {
        font-size: 1.55rem;
    }

    #kioskMode .sidebar > div {
        margin-bottom: 12px !important;
    }

    #kioskMode .coin-counter-section {
        margin-bottom: 10px;
        padding: 8px 11px;
        border-radius: 14px;
    }

    #kioskMode .day-management-buttons {
        margin: 10px 0;
        gap: 7px;
    }

    #kioskMode .day-management-buttons button {
        padding: 8px;
        min-height: 38px;
        font-size: 0.82rem;
        border-radius: 10px;
    }
}

/* The legacy desktop block turns .bottom-section into a 2fr/1fr grid, which
   leaves the single inventory column at two thirds of the station grid. One
   full-width column keeps inventory cards exactly as wide as station cards. */
@media (min-width: 1024px) {

    #dashboard .bottom-section,
    #kioskMode .bottom-section {
        display: block !important;
    }
}

/* A legacy wide-screen rule caps the kiosk inventory grid at 1200px and
   centres it, which made its cards 292px against 316px stations. Drop the
   cap so both grids share the same tracks and the same card width. */
#dashboard .inventory-grid,
#kioskMode .inventory-grid {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ==========================================================================
   KIOSK SIDEBAR — second compaction pass
   Same sections, just tighter: a slightly narrower column, shorter clock and
   banking rows, denser calculator and summary cards. Every interactive
   element stays at least 24px tall.
   ========================================================================== */
@media (min-width: 1101px) {

    #kioskMode .dashboard-main {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    }

    #kioskMode .sidebar {
        padding: 12px;
    }

    #kioskMode .sidebar > div {
        margin-bottom: 10px !important;
    }

    #kioskMode .kiosk-clock-card {
        padding: 6px 10px;
        margin-bottom: 8px;
        border-radius: 14px;
    }

    #kioskMode .kiosk-clock {
        font-size: 1.2rem;
    }

    #kioskMode .kiosk-icon-btn {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    /* Banking */
    #kioskMode .banking-section {
        padding: 9px !important;
        border-radius: 14px;
    }

    #kioskMode .banking-section .sidebar-title {
        margin-bottom: 6px !important;
        font-size: 0.6rem;
    }

    #kioskMode .banking-section .input-group {
        margin-bottom: 5px !important;
    }

    #kioskMode .banking-section label {
        font-size: 0.62rem !important;
        margin-bottom: 2px !important;
    }

    #kioskMode .banking-section .app-input {
        padding: 6px 9px !important;
        font-size: 0.8rem !important;
    }

    #kioskMode #kioskBankSelectContainer {
        max-height: 88px !important;
        gap: 4px !important;
    }

    #kioskMode .bank-radio {
        padding: 4px 8px !important;
        border-radius: 9px;
    }

    #kioskMode .bank-radio-name {
        font-size: 0.7rem;
    }

    #kioskMode .bank-radio-code {
        font-size: 0.58rem;
    }

    #kioskMode #kioskAddBankTransferBtn {
        height: 34px !important;
        margin-bottom: 5px !important;
        font-size: 0.8rem !important;
    }

    #kioskMode .banking-summary {
        padding-top: 6px !important;
    }

    #kioskMode #kioskRecentTransfersList {
        max-height: 60px !important;
        margin-bottom: 5px !important;
        font-size: 0.78rem !important;
    }

    #kioskMode #kioskViewAllTransfersBtn {
        height: 30px !important;
        padding: 4px !important;
        font-size: 0.72rem !important;
    }

    /* Network + sliders */
    #kioskMode .network-bar {
        margin-top: 6px;
        padding: 6px 10px;
        border-radius: 12px;
    }

    #kioskMode .network-bar-label,
    #kioskMode .network-bar-status {
        font-size: 0.6rem;
    }

    #kioskMode .kiosk-brightness-control {
        margin-top: 6px;
        padding: 6px 10px;
        border-radius: 12px;
    }

    #kioskMode .brightness-header {
        margin-bottom: 2px;
    }

    #kioskMode .brightness-label {
        font-size: 0.6rem;
    }

    /* Device buttons */
    #kioskMode .kiosk-fullscreen-btn {
        min-height: 32px;
    }

    #kioskMode .kiosk-fullscreen-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Calculator */
    #kioskMode .kiosk-calculator {
        margin-top: 7px;
        padding: 7px;
        border-radius: 12px;
    }

    #kioskMode .calc-display {
        margin-bottom: 4px;
        padding: 5px 8px;
        font-size: 0.92rem;
    }

    #kioskMode .calc-buttons {
        gap: 2px;
    }

    #kioskMode .calc-btn {
        padding: 2px;
        font-size: 0.68rem;
        min-height: 24px;
    }

    /* Cash in hand */
    #kioskMode .cash-in-hand {
        margin-top: 7px !important;
        padding: 6px 10px !important;
        border-radius: 12px !important;
    }

    #kioskMode .cash-in-hand .total-rev-amt {
        font-size: 1.25rem !important;
    }

    /* Summaries */
    #kioskMode .total-rev-card {
        padding: 12px !important;
        border-radius: 14px;
    }

    #kioskMode .total-rev-amt {
        font-size: 1.4rem;
    }

    #kioskMode .coin-counter-section {
        padding: 7px 10px;
        border-radius: 12px;
    }

    #kioskMode .day-management-buttons {
        margin: 8px 0;
        gap: 6px;
    }

    #kioskMode .day-management-buttons button {
        padding: 6px;
        min-height: 34px;
        font-size: 0.76rem;
        border-radius: 9px;
    }
}

/* ==========================================================================
   KIOSK SIDEBAR — icon + control polish
   The compact rhythm left some glyphs at their full-size defaults, which made
   neighbouring rows look mismatched. Everything in the column now shares one
   icon scale and one corner radius so the tight layout reads as intentional.
   ========================================================================== */
@media (min-width: 1101px) {

    #kioskMode .sidebar svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    #kioskMode .sidebar .sidebar-title svg {
        width: 12px;
        height: 12px;
    }

    #kioskMode .sidebar .kiosk-icon-btn svg {
        width: 14px;
        height: 14px;
    }

    #kioskMode .sidebar .bank-radio input {
        width: 13px;
        height: 13px;
        margin: 0;
    }

    #kioskMode .sidebar .brightness-header svg,
    #kioskMode .sidebar .brightness-slider-row svg {
        width: 14px;
        height: 14px;
    }

    #kioskMode .sidebar .kiosk-fullscreen-btn svg {
        width: 15px;
        height: 15px;
    }

    #kioskMode .sidebar .cash-in-hand svg {
        width: 17px;
        height: 17px;
    }

    #kioskMode .sidebar .day-management-buttons button svg {
        width: 15px;
        height: 15px;
    }

    #kioskMode .sidebar button,
    #kioskMode .sidebar .bank-radio {
        border-radius: 9px;
    }

    #kioskMode .sidebar .day-management-buttons button {
        gap: 6px;
    }
}

/* ==========================================================================
   TOP BAR — owner console and worker kiosk share one command bar
   Both bars used to read as browser chrome: a wordmark stacked over a small
   pill on the left, then four controls in four different shapes (boxed tab
   strip, bare counter, outlined sync, filled red exit) crowded to the right,
   with the loudest object on the bar being the button that leaves. Now it is
   one surface: a mark + wordmark + zone chip lockup, and a single right-hand
   rail where everything is 36px tall on one radius family. The accent is
   spent on the mark, the active tab and the session pill — nothing else.
   ========================================================================== */

#mainApp > .top-nav,
#kioskMode .top-nav {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    min-height: 62px;
    padding: 9px 12px 9px 14px;
    margin-bottom: 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 60%),
        var(--card, #090c0f);
    box-shadow:
        0 24px 48px -36px #000,
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* One lit hairline along the top edge — the bar's only ornament. */
#mainApp > .top-nav::before,
#kioskMode .top-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    width: min(320px, 38%);
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.6), rgba(0, 229, 255, 0.08) 70%, transparent);
    pointer-events: none;
}

/* --- brand lockup: mark, wordmark, zone/owner chip ----------------------- */
#mainApp > .top-nav .logo-section,
#kioskMode .top-nav .logo-section {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 5px;
    min-width: 0;
}

#mainApp > .top-nav .brand-mark,
#kioskMode .top-nav .brand-mark {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #8ef4ff;
    background: radial-gradient(130% 130% at 30% 15%, rgba(0, 229, 255, 0.22), rgba(255, 255, 255, 0.02) 72%);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 10px 20px -14px rgba(0, 229, 255, 0.9);
}

#mainApp > .top-nav .brand-mark svg,
#kioskMode .top-nav .brand-mark svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.1;
}

#mainApp > .top-nav .logo-section h1,
#kioskMode .top-nav .logo-section h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: #f2f9fc;
    white-space: nowrap;
}

#mainApp > .top-nav .logo-section h1 span,
#kioskMode .top-nav .logo-section h1 span {
    color: #6fe9f9;
}

#mainApp > .top-nav .owner-display,
#kioskMode .top-nav .owner-display {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin: 0;
    padding: 3px 9px 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    background: rgba(0, 229, 255, 0.05);
    color: #8fd9e5;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mainApp > .top-nav .owner-display svg,
#kioskMode .top-nav .owner-display svg {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
}

/* --- the right-hand control rail ---------------------------------------- */
#mainApp > .top-nav .nav-controls,
#kioskMode .top-nav .nav-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    gap: 10px;
    margin-left: auto;
    min-width: 0;
}

/* Tabs become one quiet segmented strip, not a second card. */
#mainApp > .top-nav .nav-tabs,
#kioskMode .top-nav .nav-tabs {
    display: flex;
    gap: 2px;
    padding: 2px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

#mainApp > .top-nav .nav-btn,
#kioskMode .top-nav .nav-btn {
    height: 30px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #93a3ae;
    font-family: 'Outfit', sans-serif;
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.015em;
    gap: 6px;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

#mainApp > .top-nav .nav-btn svg,
#kioskMode .top-nav .nav-btn svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

#mainApp > .top-nav .nav-btn.active,
#kioskMode .top-nav .nav-btn.active {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.14), rgba(0, 229, 255, 0.07));
    border-color: rgba(0, 229, 255, 0.3);
    color: #f2feff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 6px 14px -12px rgba(0, 229, 255, 0.9);
}

@media (hover: hover) {

    #mainApp > .top-nav .nav-btn:hover,
    #kioskMode .top-nav .nav-btn:hover {
        background: rgba(255, 255, 255, 0.045);
        border-color: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }

    #mainApp > .top-nav .nav-btn.active:hover,
    #kioskMode .top-nav .nav-btn.active:hover {
        background: rgba(0, 229, 255, 0.15);
        border-color: rgba(0, 229, 255, 0.34);
        color: #ffffff;
    }
}

/* --- every action button: one geometry ---------------------------------- */
#mainApp > .top-nav .sync-btn,
#kioskMode .top-nav .sync-btn,
#mainApp > .top-nav .reset-btn,
#kioskMode .top-nav .reset-btn,
#mainApp > .top-nav .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 13px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.02);
    color: #c3d2da;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

#mainApp > .top-nav .sync-btn svg,
#kioskMode .top-nav .sync-btn svg,
#mainApp > .top-nav .reset-btn svg,
#kioskMode .top-nav .reset-btn svg,
#mainApp > .top-nav .action-btn svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

/* Sync is the neutral one — cyan only when you reach for it. */
@media (hover: hover) {

    #mainApp > .top-nav .sync-btn:hover,
    #kioskMode .top-nav .sync-btn:hover {
        background: rgba(0, 229, 255, 0.07);
        border-color: rgba(0, 229, 255, 0.35);
        color: #dcfbff;
        transform: none;
    }
}

/* Exit is a ghost until intent arrives, then the red shows up. */
#mainApp > .top-nav .reset-btn,
#kioskMode .top-nav .reset-btn {
    border-color: rgba(255, 94, 94, 0.26);
    background: rgba(255, 94, 94, 0.05);
    color: #ff9f9f;
}

@media (hover: hover) {

    #mainApp > .top-nav .reset-btn:hover,
    #kioskMode .top-nav .reset-btn:hover {
        border-color: rgba(255, 94, 94, 0.55);
        background: rgba(255, 59, 59, 0.14);
        color: #ffe1e1;
        transform: none;
    }
}

/* Add Zone is the one green thing on the owner bar. */
#mainApp > .top-nav .action-btn {
    border-color: rgba(0, 255, 157, 0.26);
    background: rgba(0, 255, 157, 0.07);
    color: #9dffd9;
}

@media (hover: hover) {
    #mainApp > .top-nav .action-btn:hover {
        border-color: rgba(0, 255, 157, 0.5);
        background: rgba(0, 255, 157, 0.13);
        color: #dcfff1;
        transform: none;
    }
}

/* --- session counter: a pill, not a floating number --------------------- */
#mainApp > .top-nav .active-sessions-wrapper,
#kioskMode .top-nav .active-sessions-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 4px 11px 4px 12px;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.08), rgba(0, 229, 255, 0.03));
    min-width: 0;
}

#mainApp > .top-nav .active-sessions-label,
#kioskMode .top-nav .active-sessions-label {
    margin: 0;
    min-width: 0;
}

/* "ACTIVE SESSIONS" is too wide for the owner rail between 1024 and 1365px,
   and the old sheet simply hid the label, leaving a mystery pill. Ship both
   labels and swap to "LIVE" there instead. */
#mainApp > .top-nav .as-short,
#kioskMode .top-nav .as-short {
    display: none;
}

#mainApp > .top-nav .active-sessions-label label,
#kioskMode .top-nav .active-sessions-label label {
    display: block;
    margin: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.52rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.14em;
    color: #86aab4;
}

#mainApp > .top-nav .active-sessions-count,
#kioskMode .top-nav .active-sessions-count {
    margin: 0;
    min-width: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: right;
    color: #eafcff;
}

#mainApp > .top-nav .active-sessions-count span,
#kioskMode .top-nav .active-sessions-count span {
    color: #4d6b76;
    font-size: 0.74em;
}

/* The burger belongs to the same family as the controls it replaces. The old
   hamburger block is marked !important (48px, #333 border, 24px glyph), so the
   same flags plus a deeper selector are what actually win here. */
#mainApp > .top-nav .mobile-menu-btn,
#kioskMode .top-nav .mobile-menu-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #d7e6ec !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

#mainApp > .top-nav .mobile-menu-btn i,
#mainApp > .top-nav .mobile-menu-btn svg,
#kioskMode .top-nav .mobile-menu-btn i,
#kioskMode .top-nav .mobile-menu-btn svg {
    width: 18px !important;
    height: 18px !important;
}

/* Focus: one ring for the whole bar. */
#mainApp > .top-nav .nav-btn:focus-visible,
#kioskMode .top-nav .nav-btn:focus-visible,
#mainApp > .top-nav .sync-btn:focus-visible,
#kioskMode .top-nav .sync-btn:focus-visible,
#mainApp > .top-nav .reset-btn:focus-visible,
#kioskMode .top-nav .reset-btn:focus-visible,
#mainApp > .top-nav .action-btn:focus-visible,
#mainApp > .top-nav .mobile-menu-btn:focus-visible,
#kioskMode .top-nav .mobile-menu-btn:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 2px;
}

/* Tablets and phones: a legacy block flattens .top-nav into a full-bleed
   strip (background/border/padding, all !important). Keep the bar a card. */
@media (max-width: 1023px) {

    #mainApp > .top-nav,
    #kioskMode .top-nav {
        padding: 10px 12px !important;
        margin-bottom: 18px !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        border-radius: 16px !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 60%),
            rgba(9, 12, 15, 0.9) !important;
    }

    #mainApp > .top-nav .nav-controls,
    #kioskMode .top-nav .nav-controls {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }

    /* The same legacy block sets .logo-section { flex: 1 !important }, which
       lets the lockup shrink under its own content and overlap the rail. Keep
       the lockup at its natural width and let the rail take the next row. */
    #mainApp > .top-nav .logo-section,
    #kioskMode .top-nav .logo-section {
        flex: 0 0 auto !important;
        min-width: 0;
    }

    /* The same legacy block bumps the wordmark to 1.2rem and the chip to
       0.7rem with !important; keep the lockup's own scale instead. */
    #mainApp > .top-nav .logo-section h1,
    #kioskMode .top-nav .logo-section h1 {
        font-size: 0.95rem !important;
    }

    #mainApp > .top-nav .owner-display,
    #kioskMode .top-nav .owner-display {
        font-size: 0.55rem !important;
    }
}

/* Four owner tabs plus the rail have to stay on one line at 1024-1365: the
   type, padding and letter-spacing all tighten together, which is what buys
   the ~115px a 1024px console is short of. */
@media (min-width: 1024px) and (max-width: 1365px) {

    #mainApp > .top-nav,
    #kioskMode .top-nav {
        gap: 8px 10px;
        padding: 9px 10px 9px 12px;
    }

    #mainApp > .top-nav .nav-controls,
    #kioskMode .top-nav .nav-controls {
        gap: 6px;
    }

    #mainApp > .top-nav .nav-btn,
    #kioskMode .top-nav .nav-btn {
        padding: 0 8px;
        gap: 5px;
        font-size: 0.72rem;
        letter-spacing: 0;
    }

    #mainApp > .top-nav .sync-btn,
    #kioskMode .top-nav .sync-btn,
    #mainApp > .top-nav .reset-btn,
    #kioskMode .top-nav .reset-btn,
    #mainApp > .top-nav .action-btn {
        padding: 0 9px;
        font-size: 0.71rem;
        letter-spacing: 0.04em;
    }

    #mainApp > .top-nav .active-sessions-wrapper,
    #kioskMode .top-nav .active-sessions-wrapper {
        gap: 7px;
        padding: 4px 8px;
    }

    #mainApp > .top-nav .active-sessions-count,
    #kioskMode .top-nav .active-sessions-count {
        font-size: 0.92rem;
    }

    /* The legacy compact pass hides this label outright; show the short one. */
    #mainApp > .top-nav .active-sessions-label {
        display: block;
    }

    #mainApp > .top-nav .as-long {
        display: none;
    }

    #mainApp > .top-nav .as-short {
        display: inline;
    }
}

@media (prefers-reduced-motion: reduce) {

    #mainApp > .top-nav .nav-btn,
    #kioskMode .top-nav .nav-btn,
    #mainApp > .top-nav .sync-btn,
    #kioskMode .top-nav .sync-btn,
    #mainApp > .top-nav .reset-btn,
    #kioskMode .top-nav .reset-btn,
    #mainApp > .top-nav .action-btn {
        transition: none;
    }
}

/* ==========================================================================
   KIOSK SIDEBAR — clock, banking, device controls, calculator
   The column used to be one undifferentiated card: a small icon-plus-label
   heading, three label sizes, a solid cyan submit block, a bright green equals
   key, amber slider tracks and a handful of inline #111/#222/#444 surfaces.
   Now each card opens with the grid's head language (icon chip, title, fading
   hairline), the form speaks one mono micro-label, the submit is a quiet
   primary, and colour is reserved for meaning: cyan for the live chrome, green
   for cash, red only for destructive keys.
   ========================================================================== */

#kioskMode .zone-summary-section .sidebar-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: #eaf2f8;
}

/* The heading's own icon becomes the chip — no markup change needed. */
#kioskMode .zone-summary-section .sidebar-title svg {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 9px;
    color: #8ef4ff;
    background: radial-gradient(130% 130% at 30% 15%, rgba(0, 229, 255, 0.2), rgba(255, 255, 255, 0.02) 72%);
    border: 1px solid rgba(0, 229, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#kioskMode .zone-summary-section .sidebar-title::after {
    content: "";
    flex: 1 1 auto;
    min-width: 18px;
    height: 1px;
    margin-left: 3px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.3), rgba(255, 255, 255, 0.05) 62%, transparent);
}

/* One micro-label for the form, the summaries and the cash card. */
#kioskMode .zone-summary-section .input-group > label,
#kioskMode .zone-summary-section .kiosk-summary-label {
    display: block;
    margin: 0 0 6px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7fa3ad;
}

#kioskMode .zone-summary-section .app-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: #eaf2f8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

#kioskMode .zone-summary-section .app-input::placeholder {
    color: #4f6470;
}

#kioskMode .zone-summary-section .app-input:focus {
    outline: none;
    border-color: rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.04);
}

/* Two actions, two weights: the record button leads, view-all steps back. */
#kioskMode .zone-summary-section .kiosk-primary-action,
#kioskMode .zone-summary-section .kiosk-ghost-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

#kioskMode .zone-summary-section .kiosk-primary-action svg,
#kioskMode .zone-summary-section .kiosk-ghost-action svg {
    width: 15px;
    height: 15px;
}

#kioskMode .zone-summary-section .kiosk-primary-action {
    border: 1px solid rgba(0, 229, 255, 0.34);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.17), rgba(0, 229, 255, 0.08));
    color: #eafdff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 12px 22px -18px rgba(0, 229, 255, 0.95);
}

#kioskMode .zone-summary-section .kiosk-ghost-action {
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.02);
    color: #a9b8c2;
}

@media (hover: hover) {

    #kioskMode .zone-summary-section .kiosk-primary-action:hover {
        border-color: rgba(0, 229, 255, 0.55);
        background: linear-gradient(180deg, rgba(0, 229, 255, 0.24), rgba(0, 229, 255, 0.12));
    }

    #kioskMode .zone-summary-section .kiosk-ghost-action:hover {
        border-color: rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
    }

    #kioskMode .zone-summary-section .kiosk-fullscreen-btn:hover {
        border-color: rgba(0, 229, 255, 0.35);
        color: #d9fbff;
        background: rgba(0, 229, 255, 0.06);
    }
}

#kioskMode .zone-summary-section .kiosk-primary-action:focus-visible,
#kioskMode .zone-summary-section .kiosk-ghost-action:focus-visible,
#kioskMode .zone-summary-section .kiosk-fullscreen-btn:focus-visible,
#kioskMode .zone-summary-section .app-input:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 2px;
}

/* Device rows share one surface and one label scale. */
/* Banking, device and tools are three groups, not one long card: the device
   block carries its own head and each row keeps its own surface. */
#kioskMode .zone-summary-section .kiosk-device-section {
    margin-bottom: 18px;
}

#kioskMode .zone-summary-section .network-bar,
#kioskMode .zone-summary-section .kiosk-brightness-control {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(255, 255, 255, 0.018);
}

#kioskMode .zone-summary-section .network-bar-label,
#kioskMode .zone-summary-section .brightness-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #7fa3ad;
}

#kioskMode .zone-summary-section .network-bar-status {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#kioskMode .zone-summary-section .brightness-percent {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.66rem;
    color: #8fd9e5;
}

/* Sliders: a thin cyan rail with a lit handle, instead of the browser default
   amber track that used to be the brightest thing in the column. */
#kioskMode .zone-summary-section input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.7), rgba(0, 229, 255, 0.16));
    accent-color: #00e5ff;
    cursor: pointer;
}

#kioskMode .zone-summary-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e2fdff;
    border: 1px solid rgba(0, 229, 255, 0.85);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

#kioskMode .zone-summary-section input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #e2fdff;
    border: 1px solid rgba(0, 229, 255, 0.85);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

#kioskMode .zone-summary-section input[type="range"]::-moz-range-track {
    height: 3px;
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.3);
}

/* Fullscreen and position-lock read as one pair of quiet tiles. */
#kioskMode .zone-summary-section .kiosk-fullscreen-btn {
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.02);
    color: #a9b8c2;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

#kioskMode .zone-summary-section .kiosk-fullscreen-btn svg {
    width: 17px;
    height: 17px;
}

/* Calculator: same surface as the device rows, cyan only on the operator keys. */
#kioskMode .zone-summary-section .kiosk-calculator {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(255, 255, 255, 0.018);
}

#kioskMode .zone-summary-section .calc-display {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    background: rgba(0, 0, 0, 0.45);
    color: #eaf9ff;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1rem;
    text-align: right;
}

#kioskMode .zone-summary-section .calc-btn {
    min-height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: #dbe4ef;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
}

#kioskMode .zone-summary-section .calc-btn.calc-op {
    color: #8ef4ff;
}

#kioskMode .zone-summary-section .calc-btn.calc-clear {
    color: #ff9f9f;
}

#kioskMode .zone-summary-section .calc-btn.calc-bs {
    color: #ffc07a;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

#kioskMode .zone-summary-section .calc-btn.calc-eq {
    border-color: rgba(0, 229, 255, 0.35);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.1));
    color: #f2feff;
    font-weight: 700;
}

@media (hover: hover) {

    #kioskMode .zone-summary-section .calc-btn:hover {
        background: rgba(255, 255, 255, 0.07);
    }

    #kioskMode .zone-summary-section .calc-btn.calc-eq:hover {
        background: rgba(0, 229, 255, 0.26);
    }
}

/* Cash in hand: the one card that carries green. */
#kioskMode .zone-summary-section .kiosk-cash-card {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 157, 0.16);
    background: linear-gradient(180deg, rgba(0, 255, 157, 0.06), rgba(0, 255, 157, 0.02));
}

#kioskMode .zone-summary-section .kiosk-cash-card .total-rev-amt {
    font-family: 'Space Grotesk', sans-serif;
    color: #9dffd9;
}

#kioskMode .zone-summary-section .kiosk-cash-note {
    margin-top: 6px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: #6f8a86;
}

/* The transfers total keeps the tabular rhythm of the rest of the column. */
#kioskMode .zone-summary-section #kioskTodayBankTotal {
    font-family: 'Space Grotesk', sans-serif;
}

#kioskMode .zone-summary-section #kioskRecentTransfersList {
    font-family: 'Outfit', sans-serif;
    color: #a9b8c2;
}

@media (prefers-reduced-motion: reduce) {

    #kioskMode .zone-summary-section .kiosk-primary-action,
    #kioskMode .zone-summary-section .kiosk-ghost-action,
    #kioskMode .zone-summary-section .kiosk-fullscreen-btn,
    #kioskMode .zone-summary-section .app-input,
    #kioskMode .zone-summary-section .calc-btn {
        transition: none;
    }
}

/* ==========================================================================
   KIOSK SIDEBAR — fits the column
   The two compaction passes above lowered the sidebar's chrome, but the
   language pass that came after them restated the same selectors at the same
   specificity with a 26px head chip, 0.92rem titles, 44px actions and a
   30px-key calculator. Later in the sheet, those won — so the column quietly
   grew back to about one and a half screens on a 1440px kiosk.

   This pass is the floor. It sits last among the sidebar blocks, restates the
   same selectors, and takes the whole column down one notch at once: a 20px
   head chip, 0.72rem titles, 30px primary and 26px ghost actions, a 22px
   keypad, and tighter card padding everywhere. Brightness and volume share a
   single row instead of owning one each, which is worth about 60px on its
   own.

   A few surfaces — the petty-cash amount, the coin counter, the transfer
   total, the summary figures — carry their padding and type in inline
   style attributes, so only !important can reach them. Every interactive
   target stays at least 22px tall.
   ========================================================================== */
@media (min-width: 1101px) {

    #kioskMode .sidebar.zone-summary-section {
        padding: 10px;
    }

    /* Every section, including the inline-styled wrappers, gets one gap. */
    #kioskMode .sidebar > div {
        margin-bottom: 8px !important;
    }

    /* Section heads: 20px chip, 0.72rem title. The markup carries an inline
       margin on the two banking/summary headings, hence !important. */
    #kioskMode .zone-summary-section .sidebar-title {
        gap: 7px;
        margin: 0 0 8px !important;
        font-size: 0.72rem;
    }

    #kioskMode .zone-summary-section .sidebar-title svg {
        width: 20px;
        height: 20px;
        padding: 4px;
        border-radius: 7px;
    }

    #kioskMode .zone-summary-section .sidebar-title::after {
        min-width: 12px;
    }

    /* Clock */
    #kioskMode .kiosk-clock-card {
        padding: 5px 9px;
        margin-bottom: 7px;
        border-radius: 12px;
    }

    #kioskMode .kiosk-clock {
        font-size: 1.05rem;
    }

    #kioskMode .kiosk-icon-btn {
        width: 24px;
        height: 24px;
        border-radius: 8px;
    }

    #kioskMode .kiosk-icon-btn svg {
        width: 12px;
        height: 12px;
    }

    /* Banking card */
    #kioskMode .banking-section {
        padding: 8px !important;
        margin-bottom: 8px !important;
        border-radius: 12px;
    }

    #kioskMode .banking-section .sidebar-title {
        margin-bottom: 5px !important;
    }

    #kioskMode .banking-section .input-group {
        margin-bottom: 4px !important;
    }

    #kioskMode .banking-section label {
        margin-bottom: 2px !important;
        font-size: 0.55rem !important;
        letter-spacing: 0.12em;
    }

    #kioskMode .banking-section .app-input {
        padding: 5px 8px !important;
        border-radius: 8px;
        font-size: 0.78rem !important;
    }

    #kioskMode #kioskBankSelectContainer {
        max-height: 72px !important;
        gap: 3px !important;
    }

    #kioskMode .bank-radio {
        padding: 3px 7px !important;
        border-radius: 8px;
    }

    #kioskMode .bank-radio-name {
        font-size: 0.66rem;
    }

    #kioskMode .bank-radio-code {
        font-size: 0.54rem;
    }

    #kioskMode #kioskAddBankTransferBtn {
        height: 30px !important;
        min-height: 30px !important;
        margin-bottom: 4px !important;
        font-size: 0.7rem !important;
    }

    #kioskMode .banking-summary {
        margin-top: 2px !important;
        padding-top: 5px !important;
    }

    /* The summary's own header row is inline-styled. */
    #kioskMode .banking-summary > div:first-child {
        margin-bottom: 4px !important;
    }

    #kioskMode .banking-summary .total-rev-amt,
    #kioskMode #kioskTodayBankTotal {
        font-size: 1rem !important;
    }

    #kioskMode #kioskRecentTransfersList {
        max-height: 48px !important;
        margin-bottom: 4px !important;
        font-size: 0.72rem !important;
    }

    #kioskMode #kioskViewAllTransfersBtn {
        height: 26px !important;
        min-height: 26px !important;
        padding: 3px !important;
        font-size: 0.64rem !important;
    }

    /* Device: the head, the network bar and the button pair span the row;
       brightness and volume share it. */
    #kioskMode .zone-summary-section .kiosk-device-section {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 6px;
        row-gap: 6px;
        margin-bottom: 8px;
        align-items: start;
    }

    #kioskMode .zone-summary-section .kiosk-device-section .sidebar-title,
    #kioskMode .zone-summary-section .kiosk-device-section .network-bar,
    #kioskMode .zone-summary-section .kiosk-device-section > div:last-child {
        grid-column: 1 / -1;
    }

    #kioskMode .zone-summary-section .kiosk-device-section .network-bar,
    #kioskMode .zone-summary-section .kiosk-device-section #kioskBrightnessControl,
    #kioskMode .zone-summary-section .kiosk-device-section #kioskVolumeControl {
        margin-top: 0;
        padding: 6px 8px;
        border-radius: 10px;
    }

    #kioskMode .zone-summary-section .kiosk-device-section .network-bar-label,
    #kioskMode .zone-summary-section .kiosk-device-section .brightness-label {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    #kioskMode .zone-summary-section .kiosk-device-section .network-bar-status {
        font-size: 0.54rem;
    }

    #kioskMode .zone-summary-section .kiosk-device-section .brightness-header {
        gap: 5px;
        margin-bottom: 2px;
    }

    #kioskMode .zone-summary-section .kiosk-device-section .brightness-slider-row {
        gap: 4px;
    }

    /* Half a row is about 140px of content: the rail has to be allowed to
       shrink between its two icons, or the percent label spills the card. */
    #kioskMode .zone-summary-section .kiosk-device-section .brightness-slider-row input[type="range"] {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    #kioskMode .zone-summary-section .kiosk-device-section .brightness-percent {
        flex: 0 0 auto;
        font-size: 0.54rem;
    }

    #kioskMode .zone-summary-section .kiosk-device-section .brightness-header svg,
    #kioskMode .zone-summary-section .kiosk-device-section .brightness-slider-row svg {
        width: 12px;
        height: 12px;
    }

    #kioskMode .zone-summary-section .kiosk-device-section > div:last-child {
        margin-top: 2px !important;
        gap: 6px !important;
    }

    #kioskMode .zone-summary-section .kiosk-device-section .kiosk-fullscreen-btn {
        height: 28px;
        min-height: 28px;
        border-radius: 9px;
    }

    #kioskMode .zone-summary-section .kiosk-device-section .kiosk-fullscreen-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Calculator */
    #kioskMode .zone-summary-section .kiosk-calculator {
        margin-top: 8px;
        padding: 7px;
        border-radius: 10px;
    }

    #kioskMode .zone-summary-section .calc-display {
        margin-bottom: 4px;
        padding: 4px 7px;
        border-radius: 6px;
        font-size: 0.82rem;
    }

    #kioskMode .zone-summary-section .calc-buttons {
        gap: 2px;
    }

    #kioskMode .zone-summary-section .calc-btn {
        min-height: 22px;
        padding: 1px 2px;
        border-radius: 6px;
        font-size: 0.7rem;
    }

    #kioskMode .zone-summary-section .calc-btn.calc-bs {
        font-size: 0.58rem;
    }

    /* Cash in hand */
    #kioskMode .zone-summary-section .kiosk-cash-card {
        margin-top: 7px !important;
        padding: 7px 10px !important;
        border-radius: 10px;
    }

    #kioskMode .zone-summary-section .kiosk-cash-card .cash-in-hand-header {
        margin-bottom: 4px !important;
        gap: 6px !important;
    }

    #kioskMode .zone-summary-section .kiosk-cash-card .cash-in-hand-header svg {
        width: 15px;
        height: 15px;
    }

    #kioskMode .zone-summary-section .kiosk-cash-card .total-rev-amt,
    #kioskMode .cash-in-hand .total-rev-amt {
        font-size: 1.05rem !important;
    }

    #kioskMode .zone-summary-section .kiosk-cash-note {
        margin-top: 3px;
        font-size: 0.5rem;
    }

    /* Zone summary */
    #kioskMode .total-rev-card {
        padding: 10px !important;
        border-radius: 12px;
    }

    #kioskMode #kioskZoneTodayTotal {
        font-size: 1.1rem !important;
    }

    #kioskMode .total-rev-card .total-rev-amt {
        font-size: 1.1rem;
    }

    /* TODAY'S REVENUE / PETTY CASH / COIN labels are inline-styled divs. */
    #kioskMode .total-rev-card > div:first-child > div,
    #kioskMode .sidebar > div > div[style*="font-size:0.85rem"] {
        font-size: 0.55rem !important;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #7fa3ad !important;
    }

    #kioskMode .total-rev-card > div:first-child {
        margin-bottom: 4px !important;
    }

    #kioskMode .total-rev-card > div:last-child {
        margin-top: 5px !important;
        font-size: 0.66rem !important;
    }

    /* Petty cash: an inline 20px pad and 1.5rem figure on one div. */
    #kioskMode #kioskPettyCashAmount {
        padding: 8px !important;
        border-radius: 10px !important;
        font-size: 1.05rem !important;
    }

    /* Coin counter: an inline card with its own chip and 2rem figure. */
    #kioskMode .coin-counter-section {
        padding: 0;
    }

    #kioskMode .coin-counter-section > div {
        padding: 9px !important;
        border-radius: 12px !important;
    }

    #kioskMode .coin-counter-section > div > div:first-child {
        gap: 8px !important;
        margin-bottom: 6px !important;
    }

    #kioskMode .coin-counter-section > div > div:first-child > div:first-child {
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
    }

    #kioskMode .coin-counter-section > div > div:first-child > div:first-child svg {
        width: 15px;
        height: 15px;
    }

    #kioskMode .coin-counter-section > div > div:first-child > div:last-child > div:first-child {
        font-size: 0.55rem !important;
        letter-spacing: 0.1em;
    }

    #kioskMode #workerCoinBalance {
        font-size: 1.15rem !important;
        line-height: 1.1;
    }

    /* Day management: the last two actions in the column. */
    #kioskMode .day-management-buttons {
        margin: 6px 0;
        gap: 5px;
    }

    #kioskMode .day-management-buttons button {
        height: 30px !important;
        min-height: 30px !important;
        padding: 4px !important;
        border-radius: 8px;
        font-size: 0.68rem !important;
    }

    #kioskMode .day-management-buttons button svg {
        width: 13px;
        height: 13px;
    }
}

/* ==========================================================================
   STATION SECTION HEADS — gaming and coin-op groups
   The old row shouted: green icon, green 1.5rem title, filled green pill and a
   2px bar across the whole grid. Now the accent is spent on one place — a
   glowing 30px icon chip — while a near-white title leads, a 1px hairline
   fades across the row, and the counts sit at the far right as outlined pills.
   Both tones consume the same --ssh-* locals, so gaming and coin-op stay
   siblings rather than two different designs.
   ========================================================================== */

#dashboard .station-section,
#kioskMode .station-section {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 2px;
    --ssh-accent: var(--gaming-accent);
    --ssh-line: rgba(0, 255, 157, 0.38);
    --ssh-soft: rgba(0, 255, 157, 0.09);
}

#dashboard .station-section.is-coinop,
#kioskMode .station-section.is-coinop {
    margin-top: 18px;
    --ssh-accent: #ffd700;
    --ssh-line: rgba(255, 215, 0, 0.34);
    --ssh-soft: rgba(255, 215, 0, 0.08);
}

#dashboard .station-section .ssh-chip,
#kioskMode .station-section .ssh-chip {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--ssh-accent);
    background: radial-gradient(120% 120% at 30% 20%, var(--ssh-soft), rgba(255, 255, 255, 0.015) 70%);
    border: 1px solid var(--ssh-line);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 8px 18px -12px var(--ssh-accent);
}

#dashboard .station-section .ssh-chip svg,
#kioskMode .station-section .ssh-chip svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

/* The builder ships a long and a short label; the long one is the default and
   the phone width swaps them (see the 420px block). */
#dashboard .station-section .ssh-short,
#kioskMode .station-section .ssh-short {
    display: none;
}

#dashboard .station-section .ssh-title,
#kioskMode .station-section .ssh-title {
    margin: 0;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #eaf2f8;
    white-space: nowrap;
}

#dashboard .station-section .ssh-rule,
#kioskMode .station-section .ssh-rule {
    position: relative;
    flex: 1 1 auto;
    min-width: 24px;
    height: 1px;
    background: linear-gradient(90deg,
            var(--ssh-line) 0%,
            rgba(255, 255, 255, 0.06) 52%,
            rgba(255, 255, 255, 0) 100%);
}

/* A lit node where the rule leaves the title, so the line reads as light
   rather than a stray border. */
#dashboard .station-section .ssh-rule::after,
#kioskMode .station-section .ssh-rule::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--ssh-accent);
    box-shadow: 0 0 10px var(--ssh-accent);
    opacity: 0.85;
}

#dashboard .station-section .ssh-live,
#kioskMode .station-section .ssh-live,
#dashboard .station-section .ssh-count,
#kioskMode .station-section .ssh-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--label-dim);
    white-space: nowrap;
}

#dashboard .station-section .ssh-live,
#kioskMode .station-section .ssh-live {
    border-color: var(--ssh-line);
    background: var(--ssh-soft);
    color: #d6e7df;
}

#dashboard .station-section .ssh-live strong,
#kioskMode .station-section .ssh-live strong,
#dashboard .station-section .ssh-count strong,
#kioskMode .station-section .ssh-count strong {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #ffffff;
}

#dashboard .station-section .ssh-dot,
#kioskMode .station-section .ssh-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ssh-accent);
    animation: sshLiveBreath 3.2s ease-in-out infinite;
}

@keyframes sshLiveBreath {

    0%,
    100% {
        opacity: 0.45;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px 1px var(--ssh-accent);
    }
}

@media (prefers-reduced-motion: reduce) {

    #dashboard .station-section .ssh-dot,
    #kioskMode .station-section .ssh-dot {
        animation: none;
        opacity: 1;
        box-shadow: 0 0 8px var(--ssh-accent);
    }
}

/* Narrow screens: the hairline is the first thing to go, then the pills
   tighten, so icon + title + live + total stay on one line. */
@media (max-width: 599px) {

    #dashboard .station-section,
    #kioskMode .station-section {
        gap: 8px;
    }

    #dashboard .station-section .ssh-rule,
    #kioskMode .station-section .ssh-rule {
        display: none;
    }

    /* The hairline was what pushed the pills right; without it the gap has to
       come from the pills themselves or the head reads ragged. */
    #dashboard .station-section .ssh-live,
    #kioskMode .station-section .ssh-live {
        margin-left: auto;
    }

    #dashboard .station-section .ssh-title,
    #kioskMode .station-section .ssh-title {
        font-size: 0.95rem;
        white-space: normal;
    }

    #dashboard .station-section .ssh-live,
    #kioskMode .station-section .ssh-live,
    #dashboard .station-section .ssh-count,
    #kioskMode .station-section .ssh-count {
        padding: 3px 8px;
        font-size: 0.52rem;
        letter-spacing: 0.06em;
    }
}

/* Small phones: trim the chip and the letter-spacing so the longest title
   ("Coin-Operated Tables") plus both pills still fit one 320px row. */
@media (max-width: 420px) {

    #dashboard .station-section,
    #kioskMode .station-section {
        gap: 7px;
    }

    #dashboard .station-section .ssh-chip,
    #kioskMode .station-section .ssh-chip {
        width: 26px;
        height: 26px;
        border-radius: 9px;
    }

    #dashboard .station-section .ssh-title,
    #kioskMode .station-section .ssh-title {
        font-size: 0.82rem;
        letter-spacing: -0.015em;
    }

    #dashboard .station-section .ssh-long,
    #kioskMode .station-section .ssh-long {
        display: none;
    }

    #dashboard .station-section .ssh-short,
    #kioskMode .station-section .ssh-short {
        display: inline;
    }

    #dashboard .station-section .ssh-live,
    #kioskMode .station-section .ssh-live,
    #dashboard .station-section .ssh-count,
    #kioskMode .station-section .ssh-count {
        gap: 4px;
        padding: 3px 7px;
        font-size: 0.48rem;
        letter-spacing: 0.04em;
    }

    #dashboard .station-section .ssh-live strong,
    #kioskMode .station-section .ssh-live strong,
    #dashboard .station-section .ssh-count strong,
    #kioskMode .station-section .ssh-count strong {
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   ACTIVE STATION — living green light
   The rail fades in when the card appears, then a soft highlight drifts along
   it while a green aurora breathes in the upper corner. Everything stays
   inside the card box (isolated stacking context, inset aurora, scale <= 1).
   ========================================================================== */

@keyframes gtActiveFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gtActiveDrift {
    0% {
        background-position: 0 0, -28% 0;
    }

    55% {
        background-position: 0 0, 128% 0;
    }

    100% {
        background-position: 0 0, 128% 0;
    }
}

@keyframes gtActiveAurora {

    0%,
    100% {
        opacity: 0.18;
        transform: scale(0.97);
    }

    50% {
        opacity: 0.6;
        transform: scale(1);
    }
}

#dashboard .station.active-blue,
#kioskMode .station.active-blue {
    isolation: isolate;
    border-color: rgba(0, 255, 157, 0.26);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(0, 255, 157, 0.035),
        0 16px 34px -22px rgba(0, 255, 157, 0.55);
}

#dashboard .station.active-blue::before,
#kioskMode .station.active-blue::before {
    background-image:
        linear-gradient(90deg, var(--gaming-accent), rgba(0, 255, 157, 0)),
        linear-gradient(90deg,
            rgba(214, 255, 236, 0) 0%,
            rgba(214, 255, 236, 0.55) 45%,
            rgba(240, 255, 248, 1) 50%,
            rgba(214, 255, 236, 0.55) 55%,
            rgba(214, 255, 236, 0) 100%);
    background-size: 100% 3px, 18% 3px;
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, -28% 0;
    opacity: 1;
    animation:
        gtActiveFade 0.9s ease-out both,
        gtActiveDrift 6.5s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}

#dashboard .station.active-blue::after,
#kioskMode .station.active-blue::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(120% 95% at 0% 0%,
            rgba(0, 255, 157, 0.18) 0%,
            rgba(0, 255, 157, 0.05) 42%,
            rgba(0, 255, 157, 0) 68%);
    opacity: 0.4;
    animation: gtActiveAurora 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

    #dashboard .station.active-blue::before,
    #kioskMode .station.active-blue::before {
        animation: none;
        opacity: 1;
        background-position: 0 0, -28% 0;
    }

    #dashboard .station.active-blue::after,
    #kioskMode .station.active-blue::after {
        animation: none;
        opacity: 0.3;
        transform: none;
    }
}

/* ==========================================================================
   TALLER STATION CARDS — a quarter taller per pass
   A gaming station card is five stacked bands: header, stats strip, timer
   bar, session dots and actions. Growing one of them would just open a gap,
   so the extra height is shared evenly between the ten band edges instead
   (five bands x top + bottom).

   --st-lift is the share added to a single edge, so 10 x --st-lift is the
   card's growth. Two +25% passes are folded in: ~116px sits on top of the
   205.5px desktop card and ~204px on the 363px phone card, which is 1.56x
   the original height. Only vertical rhythm moves — padding-block leaves
   the horizontal padding exactly as designed.

   Four bands carry their own knob instead of the full share, and in every
   case only spacing moves — no font-size is declared here:
     --st-header-lift  the PS / badge / UNPAID / TOTAL block (59px / 95.8px)
     --st-timer-lift   the single line of clock (38px desktop, 70px phone)
     --st-stat-lift    the ACTIVE / SESSIONS / RATE strip (45.5px / 66.5px)
     --st-footer-lift  the action row's padding; the buttons shrink with the
                       explicit heights below instead of the lift
   The dots row is elastic, so it takes back everything the timer strip gives
   up — hence 4 x --st-lift - 2 x --st-timer-lift — while the other trims
   simply make the card shorter.

   Coin-op tables build .coin-op-header / .coin-btn instead of these five
   bands, so pool, carom and foosball keep their current height.
   ========================================================================== */

:root {
    --st-lift: 20.46px;
    --st-header-lift: 8px;
    --st-timer-lift: 10.25px;
    --st-stat-lift: 6px;
    --st-footer-lift: 14px;
}

#dashboard .station-header,
#kioskMode .station-header {
    padding-block: calc(16px + var(--st-header-lift)) calc(14px + var(--st-header-lift));
}

#dashboard .station-stat,
#kioskMode .station-stat {
    padding-block: calc(10px + var(--st-stat-lift));
}

#dashboard .status-bar,
#kioskMode .status-bar {
    padding-block: calc(12px + var(--st-timer-lift));
}

#dashboard .station-content,
#kioskMode .station-content {
    padding-block: calc(16px + var(--st-lift));
    min-height: calc(96px + 4 * var(--st-lift) - 2 * var(--st-timer-lift));
}

#dashboard .station-footer,
#kioskMode .station-footer {
    padding-block: calc(14px + var(--st-footer-lift)) calc(16px + var(--st-footer-lift));
}

/* From 768px the dense-grid passes compact the same five bands and mark
   those declarations !important, so this tier has to restate them with the
   lift and keep the flag. */
@media (min-width: 768px) {
    :root {
        --st-lift: 11.56px;
        --st-header-lift: 5px;
        --st-timer-lift: 7.5px;
        --st-stat-lift: 4.5px;
        --st-footer-lift: 7px;
    }

    #dashboard .station-header,
    #kioskMode .station-header {
        padding-block: calc(7px + var(--st-header-lift)) calc(6px + var(--st-header-lift)) !important;
    }

    #dashboard .station-stat,
    #kioskMode .station-stat {
        padding-block: calc(3px + var(--st-stat-lift)) !important;
    }

    #dashboard .status-bar,
    #kioskMode .status-bar {
        padding-block: calc(3px + var(--st-timer-lift)) !important;
    }

    #dashboard .station-content,
    #kioskMode .station-content {
        padding-block: calc(5px + var(--st-lift)) !important;
        min-height: calc(34px + 4 * var(--st-lift) - 2 * var(--st-timer-lift)) !important;
    }

    #dashboard .station-footer,
    #kioskMode .station-footer {
        padding-block: calc(5px + var(--st-footer-lift)) calc(7px + var(--st-footer-lift)) !important;
    }
}

/* The action buttons themselves, a little smaller than the 48-52px they
   render at today without touching their glyph size. Both height and
   min-height are needed: the touch block's `.action-btn { min-height: 48px }`
   holds the box open even when a 30px height is declared further up. */
#dashboard .station-footer .action-btn {
    height: 44px !important;
    min-height: 44px !important;
}

#kioskMode .station-footer .action-btn {
    height: 47px !important;
    min-height: 47px !important;
}

/* Station rows read as separate rows instead of one tall block. Only the row
   axis moves — the column gap stays as designed. !important is needed because
   an iPad-only legacy block and the 960-1023px landscape block both set
   `gap: 10px !important` on .grid. Inventory grids are a different class. */
#dashboard .grid,
#kioskMode .grid {
    row-gap: 18px !important;
}

/* A hovered card paints above its neighbours so its lit rail and glow are not
   cut by the next card in the grid. The session note tooltip no longer needs
   this: it is a fixed element at body level (.dot-tip), so card stacking
   cannot clip it. Cards set no z-index of their own, so this is uncontested. */
#dashboard .station:hover,
#kioskMode .station:hover,
#dashboard .station:focus-within,
#kioskMode .station:focus-within {
    z-index: 4;
}

/* ==========================================================================
   INVENTORY & SALES — one surface per item, and a designed transfers sheet
   The cards used to stack three bordered boxes (card, black stock panel, black
   stepper bar) and print "sold today" twice — once as a row, once as the
   stepper's label. The new card is one surface with four quiet rows: who the
   item is, how healthy its stock is (pill + meter + figure), how many sold
   today (stepper), and what that is worth. Restock, which used to be the
   loudest object in the section, is a ghost chip again.
   The section head picks up the chip → title → fading hairline → pill language
   the station heads already use, so the inventory block belongs to the page.
   The transfers dialog drops its table-with-inline-styles for a sheet: a head,
   a summary strip, bank rows and a quiet footer.
   ========================================================================== */

/* ---------- Section head ---------- */

#dashboard .bottom-section .section-head,
#kioskMode .bottom-section .section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}

#dashboard .bottom-section .section-head .section-title,
#kioskMode .bottom-section .section-head .section-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#dashboard .bottom-section .section-head .section-title svg,
#kioskMode .bottom-section .section-head .section-title svg {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 9px;
    color: #8ef4ff;
    background: radial-gradient(130% 130% at 30% 15%, rgba(0, 229, 255, 0.2), rgba(255, 255, 255, 0.02) 72%);
    border: 1px solid rgba(0, 229, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#dashboard .bottom-section .section-head .section-title::after,
#kioskMode .bottom-section .section-head .section-title::after {
    content: "";
    flex: 1 1 auto;
    min-width: 18px;
    height: 1px;
    margin-left: 4px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.3), rgba(255, 255, 255, 0.05) 62%, transparent);
}

#dashboard .bottom-section .section-meta,
#kioskMode .bottom-section .section-meta {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    color: #8fa4b4;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

#dashboard .bottom-section .section-meta.is-low,
#kioskMode .bottom-section .section-meta.is-low {
    color: #ffc07a;
    border-color: rgba(255, 140, 0, 0.32);
    background: rgba(255, 140, 0, 0.08);
}

/* ---------- Card ---------- */

#dashboard .inventory-grid .inv-v2,
#kioskMode .inventory-grid .inv-v2 {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 62%),
        var(--panel-surface);
}

#dashboard .inv-v2 .inv-header,
#kioskMode .inv-v2 .inv-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 0;
}

#dashboard .inv-v2 .inv-icon,
#kioskMode .inv-v2 .inv-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: radial-gradient(120% 120% at 25% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012) 70%);
}

#dashboard .inv-v2 .inv-icon svg,
#dashboard .inv-v2 .inv-icon i,
#kioskMode .inv-v2 .inv-icon svg,
#kioskMode .inv-v2 .inv-icon i {
    width: 17px;
    height: 17px;
}

#dashboard .inv-v2 .inv-name,
#kioskMode .inv-v2 .inv-name {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    color: #eef4fb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#dashboard .inv-v2 .inv-price,
#kioskMode .inv-v2 .inv-price {
    margin-top: 3px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
    color: #7f8b9c;
}

/* Stock row: pill, meter, figure */
#dashboard .inv-v2 .inv-stock-row,
#kioskMode .inv-v2 .inv-stock-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#dashboard .inv-v2 .inv-stock-pill,
#kioskMode .inv-v2 .inv-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.48rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

#dashboard .inv-v2 .inv-status-dot,
#kioskMode .inv-v2 .inv-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

#dashboard .inv-v2 .inv-stock-pill.stock-ok,
#kioskMode .inv-v2 .inv-stock-pill.stock-ok {
    color: #4ee7a4;
    border: 1px solid rgba(0, 255, 157, 0.26);
    background: rgba(0, 255, 157, 0.07);
}

#dashboard .inv-v2 .inv-stock-pill.stock-warning,
#kioskMode .inv-v2 .inv-stock-pill.stock-warning {
    color: #ffb46b;
    border: 1px solid rgba(255, 140, 0, 0.32);
    background: rgba(255, 140, 0, 0.08);
}

#dashboard .inv-v2 .inv-stock-pill.stock-out,
#kioskMode .inv-v2 .inv-stock-pill.stock-out {
    color: #ff8f8f;
    border: 1px solid rgba(255, 59, 59, 0.34);
    background: rgba(255, 59, 59, 0.08);
}

#dashboard .inv-v2 .inv-stock-meter,
#kioskMode .inv-v2 .inv-stock-meter {
    flex: 1 1 auto;
    min-width: 24px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

#dashboard .inv-v2 .inv-stock-fill,
#kioskMode .inv-v2 .inv-stock-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00e5ff, #7ef3c9);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
    transition: width 0.35s ease;
}

#dashboard .inv-v2.is-low .inv-stock-fill,
#kioskMode .inv-v2.is-low .inv-stock-fill {
    background: linear-gradient(90deg, #ff9f43, #ffcf7a);
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.4);
}

#dashboard .inv-v2.is-out .inv-stock-fill,
#kioskMode .inv-v2.is-out .inv-stock-fill {
    background: linear-gradient(90deg, #ff3b3b, #ff8f8f);
    box-shadow: none;
}

#dashboard .inv-v2 .inv-stock-figures,
#kioskMode .inv-v2 .inv-stock-figures {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

#dashboard .inv-v2 .inv-stock-count,
#kioskMode .inv-v2 .inv-stock-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f2f8ff;
}

#dashboard .inv-v2 .inv-stock-unit,
#kioskMode .inv-v2 .inv-stock-unit {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7f8b9c;
}

/* Sold row: stepper */
#dashboard .inv-v2 .inv-sold-row,
#kioskMode .inv-v2 .inv-sold-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

#dashboard .inv-v2 .inv-sold-label,
#kioskMode .inv-v2 .inv-sold-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.5rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7fa3ad;
}

#dashboard .inv-v2 .qty-control,
#kioskMode .inv-v2 .qty-control {
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

#dashboard .inv-v2 .qty-steppers,
#kioskMode .inv-v2 .qty-steppers {
    display: flex;
    align-items: center;
    gap: 6px;
}

#dashboard .inv-v2 .qty-value,
#kioskMode .inv-v2 .qty-value {
    min-width: 26px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    color: #ffffff;
    text-shadow: none;
}

#dashboard .inv-v2 .inventory-decrease-btn,
#dashboard .inv-v2 .inventory-increase-btn,
#kioskMode .inv-v2 .inventory-decrease-btn,
#kioskMode .inv-v2 .inventory-increase-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    /* A legacy rule gives these buttons min-height: 50px, which stretched the
       stepper into a tall pill inside the compact row. */
    min-height: 30px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 10px !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

#dashboard .inv-v2 .inventory-decrease-btn svg,
#dashboard .inv-v2 .inventory-increase-btn svg,
#kioskMode .inv-v2 .inventory-decrease-btn svg,
#kioskMode .inv-v2 .inventory-increase-btn svg {
    width: 14px;
    height: 14px;
}

#dashboard .inv-v2 .inventory-decrease-btn,
#kioskMode .inv-v2 .inventory-decrease-btn {
    background: rgba(255, 59, 59, 0.08) !important;
    border: 1px solid rgba(255, 59, 59, 0.22) !important;
    color: #ff9b9b !important;
}

#dashboard .inv-v2 .inventory-increase-btn,
#kioskMode .inv-v2 .inventory-increase-btn {
    background: rgba(0, 229, 255, 0.14) !important;
    border: 1px solid rgba(0, 229, 255, 0.32) !important;
    color: #8ef4ff !important;
}

@media (hover: hover) {

    #dashboard .inv-v2 .inventory-decrease-btn:hover,
    #kioskMode .inv-v2 .inventory-decrease-btn:hover {
        background: rgba(255, 59, 59, 0.16) !important;
        border-color: rgba(255, 59, 59, 0.4) !important;
    }

    #dashboard .inv-v2 .inventory-increase-btn:hover,
    #kioskMode .inv-v2 .inventory-increase-btn:hover {
        background: rgba(0, 229, 255, 0.22) !important;
        border-color: rgba(0, 229, 255, 0.5) !important;
    }

    #dashboard .inv-v2 .restock-btn:hover,
    #kioskMode .inv-v2 .restock-btn:hover {
        color: #ffffff;
        border-color: rgba(0, 229, 255, 0.4);
        background: rgba(0, 229, 255, 0.08);
    }
}

#dashboard .inv-v2 .inventory-decrease-btn:disabled,
#dashboard .inv-v2 .inventory-increase-btn:disabled,
#kioskMode .inv-v2 .inventory-decrease-btn:disabled,
#kioskMode .inv-v2 .inventory-increase-btn:disabled {
    transform: none;
}

#dashboard .inv-v2 .inventory-decrease-btn:focus-visible,
#dashboard .inv-v2 .inventory-increase-btn:focus-visible,
#dashboard .inv-v2 .restock-btn:focus-visible,
#kioskMode .inv-v2 .inventory-decrease-btn:focus-visible,
#kioskMode .inv-v2 .inventory-increase-btn:focus-visible,
#kioskMode .inv-v2 .restock-btn:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 2px;
}

/* Foot: today's value, and the owner's restock */
#dashboard .inv-v2 .inv-foot,
#kioskMode .inv-v2 .inv-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#dashboard .inv-v2 .inv-total,
#kioskMode .inv-v2 .inv-total {
    margin: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7f8b9c;
}

#dashboard .inv-v2 .inv-total span,
#kioskMode .inv-v2 .inv-total span {
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: none;
    color: #dbe6f2;
}

#dashboard .inv-v2 .restock-btn,
#kioskMode .inv-v2 .restock-btn {
    height: 26px;
    /* Legacy .restock-btn keeps min-height: 36px, which beat the height. */
    min-height: 26px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #a9b8c2;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

#dashboard .inv-v2 .restock-btn svg,
#kioskMode .inv-v2 .restock-btn svg {
    width: 13px;
    height: 13px;
}

/* ---------- Mobile banking transfers sheet ---------- */

#bankTransfersModal .btm-sheet {
    width: min(560px, calc(100vw - 32px));
    max-width: 560px;
    max-height: min(86vh, 780px);
    padding: 0;
    /* The legacy .modal-content rule centres text; this sheet is a list. */
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(0, 229, 255, 0.09), transparent 60%),
        #0b0e12;
    box-shadow: 0 40px 80px -40px #000;
}

#bankTransfersModal .btm-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#bankTransfersModal .btm-chip {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #8ef4ff;
    background: radial-gradient(130% 130% at 30% 15%, rgba(0, 229, 255, 0.22), rgba(255, 255, 255, 0.02) 72%);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

#bankTransfersModal .btm-chip svg {
    width: 16px;
    height: 16px;
}

#bankTransfersModal .btm-head-copy {
    flex: 1 1 auto;
    min-width: 0;
}

#bankTransfersModal .btm-title {
    margin: 0;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: #eaf2f8;
}

#bankTransfersModal .btm-subtitle {
    margin: 2px 0 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.54rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6f8494;
}

#bankTransfersModal .btm-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: #8b96a8;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

#bankTransfersModal .btm-close:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

#bankTransfersModal .btm-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#bankTransfersModal .btm-total {
    display: grid;
    gap: 3px;
}

#bankTransfersModal .btm-total-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7fa3ad;
}

#bankTransfersModal .btm-total-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: #f2f9fc;
}

#bankTransfersModal .btm-total-amount em {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem;
    font-style: normal;
    letter-spacing: 0.1em;
    color: #7f8b9c;
}

#bankTransfersModal .btm-count {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    background: rgba(0, 229, 255, 0.06);
    color: #8fd9e5;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.52rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#bankTransfersModal .btm-list {
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
    padding: 4px 10px 6px;
}

#bankTransfersModal .btm-rows {
    display: flex;
    flex-direction: column;
}

#bankTransfersModal .btm-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: background-color 0.18s ease;
}

#bankTransfersModal .btm-row:last-child {
    border-bottom: 0;
}

@media (hover: hover) {

    #bankTransfersModal .btm-row:hover {
        background: rgba(255, 255, 255, 0.03);
    }
}

#bankTransfersModal .btm-bank {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.07);
    color: #9fe9f4;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}

#bankTransfersModal .btm-what {
    min-width: 0;
    display: grid;
    gap: 2px;
}

#bankTransfersModal .btm-bank-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: #e8f0f8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bankTransfersModal .btm-desc {
    font-size: 0.7rem;
    color: #7f8b9c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bankTransfersModal .btm-when {
    display: grid;
    gap: 2px;
    justify-items: end;
    text-align: right;
}

#bankTransfersModal .btm-amount {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ff8f8f;
    white-space: nowrap;
}

#bankTransfersModal .btm-time {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    color: #6f8494;
    white-space: nowrap;
}

#bankTransfersModal .btm-delete {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #5f6b7a;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

/* The legacy .delete-transfer-btn rule paints a solid red 80px block with
   !important. The row needs a quiet icon affordance, so neutralise it. */
#bankTransfersModal .btm-delete.delete-transfer-btn {
    width: 26px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #5f6b7a !important;
    transform: none !important;
    box-shadow: none !important;
}

#bankTransfersModal .btm-delete svg {
    width: 14px;
    height: 14px;
}

@media (hover: hover) {

    #bankTransfersModal .btm-delete:hover {
        color: #ff9b9b;
        border-color: rgba(255, 59, 59, 0.3);
        background: rgba(255, 59, 59, 0.1);
    }

    #bankTransfersModal .btm-delete.delete-transfer-btn:hover {
        color: #ff9b9b !important;
        background: rgba(255, 59, 59, 0.1) !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

#bankTransfersModal .btm-delete:focus-visible,
#bankTransfersModal .btm-close:focus-visible,
#bankTransfersModal .btm-ghost:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 2px;
}

#bankTransfersModal .btm-loading {
    padding: 40px 0;
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6f8494;
}

#bankTransfersModal .btm-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 42px 20px;
    text-align: center;
}

#bankTransfersModal .btm-empty-chip {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    color: #5f6b7a;
}

#bankTransfersModal .btm-empty-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: #cfd8e3;
}

#bankTransfersModal .btm-empty-hint {
    font-size: 0.74rem;
    color: #6f8494;
}

#bankTransfersModal .btm-foot {
    display: flex;
    justify-content: flex-end;
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.25);
}

#bankTransfersModal .btm-ghost {
    height: 32px;
    padding: 0 16px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #a9b8c2;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

@media (hover: hover) {

    #bankTransfersModal .btm-ghost:hover {
        color: #ffffff;
        border-color: rgba(0, 229, 255, 0.4);
        background: rgba(0, 229, 255, 0.08);
    }
}

@media (max-width: 599px) {

    #bankTransfersModal .btm-sheet {
        width: calc(100vw - 16px);
        max-height: 90vh;
        border-radius: 18px;
    }

    #bankTransfersModal .btm-head,
    #bankTransfersModal .btm-summary,
    #bankTransfersModal .btm-foot {
        padding-left: 14px;
        padding-right: 14px;
    }

    #bankTransfersModal .btm-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        row-gap: 6px;
    }

    #bankTransfersModal .btm-delete {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
    }
}

/* ==========================================================================
   KIOSK DEVICE PANEL — rails, actions, register keypad
   Sits last so it wins over the five earlier calculator passes. The keypad is
   read as three tiers: neutral digits, a tinted operator rail, one warm clear
   key, and a single full-width equals. `padding` and `font-size` on .calc-btn
   need !important because an older media query pins them that way.
   ========================================================================== */

#kioskMode .kiosk-device-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

#kioskMode .zone-summary-section .kiosk-device-actions .kiosk-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
    color: #9fb0c3;
    font-family: 'Outfit', sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

#kioskMode .zone-summary-section .kiosk-device-actions .kiosk-fullscreen-btn svg {
    width: 15px;
    height: 15px;
}

@media (hover: hover) {

    #kioskMode .zone-summary-section .kiosk-device-actions .kiosk-fullscreen-btn:hover {
        color: #8ef4ff;
        border-color: rgba(0, 229, 255, 0.35);
        background: rgba(0, 229, 255, 0.07);
    }
}

#kioskMode .zone-summary-section .kiosk-device-actions .kiosk-fullscreen-btn:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 2px;
}

/* One rail language for both sliders: a cyan fill that tracks the value. */
#kioskMode .zone-summary-section .kiosk-brightness-control input[type="range"] {
    --fill: 50%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(0, 229, 255, 0.9) 0 var(--fill),
            rgba(255, 255, 255, 0.08) var(--fill) 100%);
    outline: none;
}

#kioskMode .zone-summary-section .kiosk-brightness-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #0a0e12;
    background: #eafcff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.75), 0 0 0 1px rgba(0, 229, 255, 0.55);
    cursor: pointer;
}

#kioskMode .zone-summary-section .kiosk-brightness-control input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #0a0e12;
    background: #eafcff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.75), 0 0 0 1px rgba(0, 229, 255, 0.55);
    cursor: pointer;
}

#kioskMode .zone-summary-section .kiosk-brightness-control input[type="range"]:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 4px;
}

/* ---------- Calculator ---------- */

#kioskMode .zone-summary-section .kiosk-calculator {
    margin-top: 12px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(0, 229, 255, 0.06), transparent 60%),
        rgba(255, 255, 255, 0.018);
}

/* Readout: the operation in progress, the number, and the delete key. */
#kioskMode .zone-summary-section .calc-display {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 7px 7px 7px 10px !important;
    border-radius: 10px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3));
    box-shadow: inset 0 1px 12px -6px rgba(0, 229, 255, 0.5);
}

#kioskMode .zone-summary-section .calc-readout {
    min-width: 0;
    display: grid;
    gap: 1px;
    justify-items: end;
}

#kioskMode .zone-summary-section .calc-expression {
    min-height: 11px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    color: #6f8494;
}

#kioskMode .zone-summary-section .calc-result {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    color: #eaf9ff;
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
    transition: font-size 0.15s ease;
}

#kioskMode .zone-summary-section .calc-result.is-long {
    font-size: 1rem;
}

#kioskMode .zone-summary-section .calc-display .calc-bs {
    width: 34px;
    height: 28px;
    min-height: 0;
    /* The old compact pass pins .calc-btn padding; this key needs its own. */
    padding: 0 !important;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 179, 120, 0.26);
    background: rgba(255, 140, 0, 0.08);
    color: #ffc07a;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.48rem !important;
    letter-spacing: 0.08em;
    cursor: pointer;
}

@media (hover: hover) {

    #kioskMode .zone-summary-section .calc-display .calc-bs:hover {
        border-color: rgba(255, 179, 120, 0.45);
        background: rgba(255, 140, 0, 0.14);
    }
}

#kioskMode .zone-summary-section .calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

#kioskMode .zone-summary-section .calc-btn {
    min-height: 34px;
    padding: 0 !important;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.35);
    color: #e4ecf5;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 0.92rem !important;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.08s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

#kioskMode .zone-summary-section .calc-btn.calc-op {
    border-color: rgba(0, 229, 255, 0.18);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.04));
    color: #9fe9f4;
}

#kioskMode .zone-summary-section .calc-btn.calc-clear {
    border-color: rgba(255, 59, 59, 0.2);
    background: rgba(255, 59, 59, 0.06);
    color: #ff9f9f;
}

#kioskMode .zone-summary-section .calc-btn.calc-eq {
    grid-column: 1 / -1;
    min-height: 32px;
    /* The symbol is the hero glyph of the pad; in the sans face it read as a
       thin dash, so it switches to the mono face for a wider, heavier mark. */
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 1.6rem !important;
    font-weight: 700;
    border-color: rgba(0, 229, 255, 0.5);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.34), rgba(0, 150, 190, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 14px -8px rgba(0, 229, 255, 0.8);
    color: #f2feff;
    letter-spacing: 0.08em;
}

#kioskMode .zone-summary-section .calc-btn:active,
#kioskMode .zone-summary-section .calc-btn.is-pressed {
    transform: translateY(1px);
    box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.45);
}

@media (hover: hover) {

    #kioskMode .zone-summary-section .calc-btn:hover {
        border-color: rgba(255, 255, 255, 0.16);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    }

    #kioskMode .zone-summary-section .calc-btn.calc-op:hover {
        border-color: rgba(0, 229, 255, 0.4);
        background: rgba(0, 229, 255, 0.16);
    }

    #kioskMode .zone-summary-section .calc-btn.calc-eq:hover {
        background: linear-gradient(180deg, rgba(0, 229, 255, 0.38), rgba(0, 150, 190, 0.24));
    }
}

#kioskMode .zone-summary-section .calc-btn:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {

    #kioskMode .zone-summary-section .calc-btn,
    #kioskMode .zone-summary-section .calc-result {
        transition: none;
    }

    #kioskMode .zone-summary-section .calc-btn:active,
    #kioskMode .zone-summary-section .calc-btn.is-pressed {
        transform: none;
    }
}


/* ==========================================================================
   KIOSK SHIFT LEDGER
   One card replaces the old cash block, revenue block and petty-cash block.
   The order is the reading order of a shift: the money on hand, who is on the
   floor, what is still owed, then the two quiet figures most workers only
   glance at. Colour stays meaningful — green is cash, amber is owed.
   ========================================================================== */

#kioskMode .zone-summary-section .shift-ledger-wrap {
    margin: 0 0 14px !important;
}

#kioskMode .zone-summary-section .shift-ledger-wrap > .sidebar-title {
    margin: 0 0 10px;
}

#kioskMode .zone-summary-section .shift-ledger {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;
    background:
        radial-gradient(115% 80% at 6% 0%, rgba(0, 255, 157, 0.09), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008) 46%, rgba(255, 255, 255, 0) 100%),
        #080b0d;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 26px 44px -40px rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

/* --- cash hero ---------------------------------------------------------- */

#kioskMode .zone-summary-section .shift-hero.cash-in-hand {
    margin: 0 !important;
    padding: 14px 16px 13px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

#kioskMode .zone-summary-section .shift-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#kioskMode .zone-summary-section .shift-hero-top .kiosk-summary-label {
    margin: 0;
}

#kioskMode .zone-summary-section .shift-hero-amount.total-rev-amt {
    margin: 7px 0 0;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: clamp(1.85rem, 5.2vw, 2.45rem) !important;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: #f1fffa;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(0, 255, 157, 0.18);
    white-space: nowrap;
}

#kioskMode .zone-summary-section .shift-hero-amount span {
    margin-left: 3px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(0, 255, 157, 0.78);
    vertical-align: 0.42em;
}

#kioskMode .zone-summary-section .shift-hero-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.63rem;
    font-weight: 500;
    line-height: 1.3;
    color: #71858f;
}

#kioskMode .zone-summary-section .shift-hero-note svg {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    color: rgba(0, 255, 157, 0.6);
}

/* --- shift counts ------------------------------------------------------- */

#kioskMode .zone-summary-section .shift-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.014);
}

#kioskMode .zone-summary-section .shift-stat {
    display: grid;
    gap: 4px;
    padding: 10px 16px 11px;
    min-width: 0;
}

#kioskMode .zone-summary-section .shift-stat + .shift-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

#kioskMode .zone-summary-section .shift-stat-unpaid {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 16px 10px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#kioskMode .zone-summary-section .shift-stat-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #71858f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#kioskMode .zone-summary-section .shift-stat-value {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1;
    color: #e9f6fb;
    font-variant-numeric: tabular-nums;
}

#kioskMode .zone-summary-section .shift-stat-value em {
    font-style: normal;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.54rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #7b929d;
}

#kioskMode .zone-summary-section #kioskTotalUnpaid {
    font-family: inherit;
    font-size: inherit;
}

/* --- quiet money rows --------------------------------------------------- */

#kioskMode .zone-summary-section .shift-rows {
    display: grid;
}

#kioskMode .zone-summary-section .shift-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 16px;
}

#kioskMode .zone-summary-section .shift-row + .shift-row {
    border-top: 1px solid rgba(255, 255, 255, 0.045);
}

#kioskMode .zone-summary-section .shift-row-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    color: #a3b7c2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#kioskMode .zone-summary-section .shift-row-figure,
#kioskMode .zone-summary-section #kioskZoneTodayTotal,
#kioskMode .zone-summary-section #kioskPettyCashAmount {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 3px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 0.98rem !important;
    font-weight: 600;
    line-height: 1.2;
    text-align: right;
    color: #eaf7fb;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#kioskMode .zone-summary-section .shift-row-figure span {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    color: #7b929d;
    text-transform: uppercase;
}

/* Eye toggles: a quiet affordance, not a third column of buttons. */
#kioskMode .zone-summary-section .shift-ledger .revenue-visibility-toggle {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #5f7480;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

#kioskMode .zone-summary-section .shift-ledger .revenue-visibility-toggle svg {
    width: 14px;
    height: 14px;
}

@media (hover: hover) {

    #kioskMode .zone-summary-section .shift-ledger .revenue-visibility-toggle:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.045);
        color: #cbeef7;
    }
}

#kioskMode .zone-summary-section .shift-ledger .revenue-visibility-toggle:active {
    transform: scale(0.93);
}

#kioskMode .zone-summary-section .shift-ledger .revenue-visibility-toggle:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 2px;
}

/* --- hidden money: a deliberate mask, not a loading skeleton ------------ */

#kioskMode .zone-summary-section .shift-hero-amount.total-rev-amt.revenue-blurred,
#kioskMode .zone-summary-section .shift-row-figure.revenue-blurred,
#kioskMode .zone-summary-section #kioskZoneTodayTotal.revenue-blurred,
#kioskMode .zone-summary-section #kioskPettyCashAmount.revenue-blurred,
#kioskMode .zone-summary-section #kioskCashInHand.revenue-blurred {
    font-size: 0 !important;
    color: transparent !important;
    filter: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    cursor: pointer;
}

#kioskMode .zone-summary-section .shift-hero-amount.revenue-blurred:hover,
#kioskMode .zone-summary-section .shift-row-figure.revenue-blurred:hover {
    filter: none !important;
}

/* The raw figure collapses to zero type size; the mask is a dot band that
   occupies the same line, so toggling neither resizes the card nor hides the
   currency span — ETB stays legible in both states. */
#kioskMode .zone-summary-section .shift-hero-amount.revenue-blurred,
#kioskMode .zone-summary-section .shift-row-figure.revenue-blurred {
    display: flex !important;
    align-items: center;
    gap: 4px;
}

#kioskMode .zone-summary-section .shift-hero-amount.revenue-blurred span,
#kioskMode .zone-summary-section .shift-row-figure.revenue-blurred span {
    margin-left: 0;
}

#kioskMode .zone-summary-section .shift-hero-amount.revenue-blurred {
    min-height: 2.4rem;
}

#kioskMode .zone-summary-section .shift-row-figure.revenue-blurred {
    min-height: 1.18rem;
}

#kioskMode .zone-summary-section .shift-hero-amount.revenue-blurred::before,
#kioskMode .zone-summary-section .shift-row-figure.revenue-blurred::before {
    content: "";
    flex: 0 0 auto;
    background-repeat: repeat-x;
    background-image: radial-gradient(circle at 4px 4px, #93aab5 3.4px, transparent 3.9px);
}

#kioskMode .zone-summary-section .shift-hero-amount.revenue-blurred::before {
    width: 52px;
    height: 8px;
    background-size: 14px 8px;
}

#kioskMode .zone-summary-section .shift-row-figure.revenue-blurred::before {
    width: 38px;
    height: 7px;
    background-size: 10px 7px;
    background-image: radial-gradient(circle at 3px 3.5px, #93aab5 2.8px, transparent 3.3px);
}

/* The legacy skeleton bars must not reappear behind the mask. */
#kioskMode .zone-summary-section #kioskCashInHand.revenue-blurred::after,
#kioskMode .zone-summary-section #kioskZoneTodayTotal.revenue-blurred::after,
#kioskMode .zone-summary-section #kioskPettyCashAmount.revenue-blurred::after {
    content: none !important;
    animation: none !important;
    background: none !important;
}

/* ...and the old rules that blanked the whole element, unit included. */
#kioskMode .zone-summary-section #kioskZoneTodayTotal.revenue-blurred span,
#kioskMode .zone-summary-section #kioskPettyCashAmount.revenue-blurred span {
    color: #7b929d !important;
}

#kioskMode .zone-summary-section #kioskCashInHand.revenue-blurred span {
    color: rgba(0, 255, 157, 0.7) !important;
}

/* --- day actions: one filled primary, one outlined reset ---------------- */

#kioskMode .shift-actions {
    display: grid;
    gap: 8px;
    margin: auto 0 0 !important;
}

#kioskMode .shift-actions button {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

#kioskMode .shift-actions button svg {
    width: 15px;
    height: 15px;
}

#kioskMode .shift-actions #saveDayBtn {
    border: 1px solid rgba(0, 255, 157, 0.55);
    background: linear-gradient(180deg, #2bffb0, #00e58c);
    color: #04160f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 16px 30px -22px rgba(0, 255, 157, 0.95);
}

#kioskMode .shift-actions #resetDayBtn {
    border: 1px solid rgba(255, 95, 95, 0.26);
    background: rgba(255, 59, 59, 0.055);
    color: #ff9d9d;
    box-shadow: none;
}

@media (hover: hover) {

    #kioskMode .shift-actions #saveDayBtn:hover {
        background: linear-gradient(180deg, #51ffc2, #0bf59a);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 18px 34px -22px rgba(0, 255, 157, 1);
    }

    #kioskMode .shift-actions #resetDayBtn:hover {
        border-color: rgba(255, 95, 95, 0.48);
        background: rgba(255, 59, 59, 0.12);
        color: #ffc2c2;
    }
}

#kioskMode .shift-actions button:active {
    transform: translateY(1px);
}

#kioskMode .shift-actions button:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 2px;
}

#kioskMode .shift-actions .info-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    line-height: 1.3;
    color: #5f7480;
}

/* --- narrow kiosks ------------------------------------------------------ */

@media (max-width: 1023px) {

    #kioskMode .zone-summary-section .shift-hero.cash-in-hand {
        padding: 12px 14px 11px !important;
    }

    #kioskMode .zone-summary-section .shift-hero-amount.total-rev-amt {
        font-size: clamp(1.7rem, 6.4vw, 2.2rem) !important;
    }

    #kioskMode .zone-summary-section .shift-hero-amount.revenue-blurred {
        min-height: 1.85rem;
    }

    #kioskMode .zone-summary-section .shift-stat {
        padding: 9px 14px 10px;
    }

    #kioskMode .zone-summary-section .shift-stat-unpaid {
        padding: 8px 14px 9px;
    }

    #kioskMode .zone-summary-section .shift-row {
        padding: 8px 9px 8px 14px;
    }

    #kioskMode .zone-summary-section .shift-row-figure,
    #kioskMode .zone-summary-section #kioskZoneTodayTotal,
    #kioskMode .zone-summary-section #kioskPettyCashAmount {
        font-size: 0.92rem !important;
    }

    #kioskMode .shift-actions {
        gap: 7px;
    }

    #kioskMode .shift-actions button {
        height: 44px !important;
        min-height: 44px !important;
        font-size: 0.7rem !important;
        padding: 0 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    #kioskMode .zone-summary-section .shift-ledger .revenue-visibility-toggle,
    #kioskMode .shift-actions button {
        transition: none;
    }

    #kioskMode .zone-summary-section .shift-ledger .revenue-visibility-toggle:active,
    #kioskMode .shift-actions button:active {
        transform: none;
    }
}

/* ==========================================================================
   REVENUE DAY LEDGER
   Bank transfers, deleted sessions and SMS deposits share one anatomy so the
   three cards read as one ledger instead of three unrelated boxes: a 2px
   accent rail, an icon chip, a micro count, one figure, a body that either
   holds rows or a dashed empty well, and a footer pinned to the same line.
   ========================================================================== */

#history .rev-ledger-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 26px 0 14px;
}

#history .rev-ledger-chip {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #8ff3ff;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

#history .rev-ledger-chip svg {
    width: 15px;
    height: 15px;
}

#history .rev-ledger-heading h2 {
    margin: 0;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f2f6fb;
}

#history .rev-ledger-heading p {
    margin: 2px 0 0;
    font-size: 0.7rem;
    color: #6b7688;
}

/* --- the three cards ---------------------------------------------------- */

#history .rev-lists {
    grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
    gap: 16px;
}

#history .rev-lists > .rev-panel.rev-ledger-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px 20px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(115% 85% at 100% 0%, var(--rl-glow, rgba(0, 229, 255, 0.1)), transparent 58%),
        linear-gradient(180deg, rgba(24, 27, 32, 0.92) 0%, rgba(10, 11, 14, 0.95) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

#history .rev-ledger-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rl-accent, var(--cyan)) 0%, transparent 70%);
    opacity: 0.75;
    pointer-events: none;
}

/* One accent per card, and only as a cue: rail, icon, count, unit. */
#history .rev-ledger-card.rev-accent-purple {
    --rl-accent: #b79bff;
    --rl-tint: rgba(155, 77, 255, 0.1);
    --rl-line: rgba(155, 77, 255, 0.26);
    --rl-glow: rgba(155, 77, 255, 0.12);
}

#history .rev-ledger-card.rev-accent-orange {
    --rl-accent: #ffb066;
    --rl-tint: rgba(255, 140, 0, 0.1);
    --rl-line: rgba(255, 140, 0, 0.26);
    --rl-glow: rgba(255, 140, 0, 0.11);
}

#history .rev-ledger-card.rev-accent-cyan {
    --rl-accent: #8ff3ff;
    --rl-tint: rgba(0, 229, 255, 0.08);
    --rl-line: rgba(0, 229, 255, 0.24);
    --rl-glow: rgba(0, 229, 255, 0.1);
}

/* --- head --------------------------------------------------------------- */

#history .rev-ledger-card .rev-list-head {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#history .rev-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

/* The title block must be allowed to shrink, or a long caption slides under
   the count chip when two cards share a narrow row. */
#history .rev-list-title > div {
    min-width: 0;
    overflow: hidden;
}

#history .rev-list-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--rl-accent, var(--cyan));
    background: var(--rl-tint, rgba(0, 229, 255, 0.08));
    border: 1px solid var(--rl-line, rgba(0, 229, 255, 0.24));
}

#history .rev-list-icon svg {
    width: 15px;
    height: 15px;
}

#history .rev-ledger-card .rev-list-head h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f2f6fb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#history .rev-list-caption {
    margin: 1px 0 0;
    font-size: 0.64rem;
    line-height: 1.35;
    color: #6b7688;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#history .rev-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9aa5b4;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

#history .rev-count::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    opacity: 0.85;
}

#history .rev-count.accent-purple {
    color: #c3a6ff;
    background: rgba(155, 77, 255, 0.08);
    border-color: rgba(155, 77, 255, 0.26);
}

#history .rev-count.accent-orange {
    color: #ffbc78;
    background: rgba(255, 140, 0, 0.08);
    border-color: rgba(255, 140, 0, 0.24);
}

#history .rev-count.accent-cyan {
    color: #8ff3ff;
    background: rgba(0, 229, 255, 0.07);
    border-color: rgba(0, 229, 255, 0.22);
}

/* A legacy ID badge (!important, solid purple) still targets the bank count;
   it has to be answered at the same weight or that one card reads differently. */
#history .rev-ledger-card #histBankTransfersCount {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(155, 77, 255, 0.26);
    background: rgba(155, 77, 255, 0.08) !important;
    color: #c3a6ff !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase;
    vertical-align: baseline;
}

/* --- figure ------------------------------------------------------------- */

#history .rev-list-figure {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 12px;
}

#history .rev-ledger-card .rev-list-total {
    margin: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
    color: #f4f8fc;
    font-variant-numeric: tabular-nums;
}

#history .rev-ledger-card .rev-list-total span {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.57rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--rl-accent, var(--cyan));
    opacity: 0.9;
}

#history .rev-ledger-card .rev-cash-row {
    margin: 0 0 12px;
    padding: 8px 11px;
    border-radius: 11px;
    border: 1px solid rgba(0, 255, 157, 0.16);
    background: linear-gradient(90deg, rgba(0, 255, 157, 0.07), rgba(0, 255, 157, 0.015));
    font-size: 0.72rem;
    color: #8fe9c2;
}

#history .rev-ledger-card .rev-cash-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

#history .rev-ledger-card .rev-cash-row svg {
    width: 14px;
    height: 14px;
    opacity: 0.85;
}

#history .rev-ledger-card .rev-cash-row strong {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
    color: #c2ffe6;
}

/* --- body: rows or a dashed well --------------------------------------- */

#history .rev-ledger-card .rev-list-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 176px;
}

#history .rev-ledger-card .rev-scroll {
    max-height: 300px;
    padding-right: 4px;
}

#history .rev-ledger-card .rev-empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 18px 16px;
    min-height: 152px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: radial-gradient(120% 130% at 50% 0%, rgba(255, 255, 255, 0.028), transparent 62%);
    color: #6f7c8e;
    font-size: 0.8rem;
}

#history .rev-empty-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--rl-line, rgba(255, 255, 255, 0.1));
    background: var(--rl-tint, rgba(255, 255, 255, 0.03));
    color: var(--rl-accent, #8ff3ff);
    margin-bottom: 2px;
}

#history .rev-empty-icon svg {
    width: 15px;
    height: 15px;
    color: inherit;
}

#history .rev-ledger-card .rev-empty strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.79rem;
    font-weight: 600;
    color: #c6d2dd;
}

#history .rev-ledger-card .rev-empty small {
    font-family: 'Outfit', sans-serif;
    font-size: 0.66rem;
    line-height: 1.45;
    color: #5f6b7c;
    max-width: 228px;
}

#history .rev-ledger-card .rev-empty.is-error {
    border-color: rgba(255, 59, 59, 0.3);
    background: rgba(255, 59, 59, 0.035);
}

#history .rev-empty.is-error .rev-empty-icon {
    color: #ff9c9c;
    border-color: rgba(255, 59, 59, 0.32);
    background: rgba(255, 59, 59, 0.08);
}

#history .rev-ledger-card .rev-empty.is-error strong {
    color: #ffb3b3;
}

#history .rev-empty .rev-empty-retry {
    margin-top: 7px;
    height: auto;
    min-height: 0;
    padding: 7px 14px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #c3ceda;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
}

/* --- footer ------------------------------------------------------------- */

#history .rev-ledger-foot {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#history .rev-ledger-card .rev-view-all {
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rl-accent, var(--cyan));
}

#history .rev-ledger-card .rev-view-all svg {
    width: 14px;
    height: 14px;
    transition: transform 0.18s ease;
}

@media (hover: hover) {

    #history .rev-ledger-card .rev-view-all:hover {
        border: 0;
        background: transparent;
        color: #ffffff;
    }

    #history .rev-ledger-card .rev-view-all:hover svg {
        transform: translateX(2px);
    }
}

#history .rev-ledger-card .rev-view-all:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 3px;
    border-radius: 4px;
}

#history .rev-list-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.57rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f6b7c;
}

#history .rev-list-note svg {
    width: 14px;
    height: 14px;
    color: #4c5966;
}

@media (max-width: 1100px) {

    #history .rev-lists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    #history .rev-ledger-head {
        margin: 18px 0 12px;
    }

    /* Below tablet width a card cannot hold its title, caption and count on one
       row, so the ledger goes one-up here rather than at the usual 640px. */
    #history .rev-lists {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
}

@media (max-width: 640px) {

    #history .rev-ledger-card .rev-list-body {
        min-height: 132px;
    }

    #history .rev-ledger-card .rev-empty {
        min-height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {

    #history .rev-ledger-card .rev-view-all svg {
        transition: none;
    }

    #history .rev-ledger-card .rev-view-all:hover svg {
        transform: none;
    }
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

.widget-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    flex-wrap: wrap;
    text-align: left;
    padding: 16px 4px 4px;
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.72rem;
    color: #6f7c8e;
    line-height: 1.4;
}

.widget-footer .wf-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.widget-footer .wf-mark {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #8ff3ff;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.widget-footer .wf-mark svg {
    width: 14px;
    height: 14px;
}

.widget-footer .wf-text {
    color: #6f7c8e;
}

.widget-footer .wf-text strong {
    color: #dfe9f2;
    font-weight: 600;
}

.widget-footer .wf-dot {
    color: #3f4a57;
    margin: 0 6px;
}

.widget-footer a {
    color: #8ff3ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.widget-footer .wf-text a:hover {
    border-bottom-color: rgba(143, 243, 255, 0.45);
}

.widget-footer .wf-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
    color: #aab5c4;
}

.widget-footer .wf-support svg {
    width: 14px;
    height: 14px;
    color: #8ff3ff;
}

.widget-footer .wf-support span {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6f7c8e;
}

.widget-footer .wf-support strong {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e6eef5;
    letter-spacing: -0.01em;
}

.widget-footer .wf-support:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
    color: #dff8ff;
}

.widget-footer .wf-support:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.55);
    outline-offset: 2px;
}

@media (max-width: 640px) {

    .widget-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* Full-width support row: a comfortable tap target on a phone. */
    .widget-footer .wf-support {
        justify-content: space-between;
        min-height: 44px;
        padding: 10px 14px;
    }
}

/* ============================================================
   FINANCE — money workspace
   A self-contained visual system for #finance: ink-teal surfaces,
   accent-led KPI cards, and charts that read at a glance.
   ============================================================ */

#finance {
    --fin-bg: #070c0f;
    --fin-surface: #0c1317;
    --fin-surface-2: #101a1f;
    --fin-line: rgba(255, 255, 255, 0.075);
    --fin-line-strong: rgba(255, 255, 255, 0.14);
    --fin-text: #f2f7f8;
    --fin-muted: #8a9ba1;
    --fin-faint: #5f7178;
    --fin-cyan: var(--cyan, #00e5ff);
    --fin-mint: var(--green, #00ff9d);
    --fin-amber: #ffb648;
    --fin-purple: var(--purple, #9b4dff);
    --fin-red: #ff6b6b;
    --fin-radius: 18px;
    color: var(--fin-text);
    /* Opacity only: a lingering transform would trap the fixed category modal
       inside this section instead of the viewport. */
    animation: finFade 0.35s ease;
}

@keyframes finFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

#finance .fin-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

/* ---------- Hero ---------- */

#finance .fin-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(20px, 2.4vw, 34px);
    margin-bottom: 16px;
    border-radius: calc(var(--fin-radius) + 6px);
    border: 1px solid var(--fin-line);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(0, 229, 255, 0.13) 0%, transparent 55%),
        radial-gradient(90% 120% at 100% 120%, rgba(0, 255, 157, 0.09) 0%, transparent 60%),
        linear-gradient(150deg, #0d171c 0%, #090f13 60%, #0a1216 100%);
    overflow: hidden;
    isolation: isolate;
}

#finance .fin-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(120% 100% at 20% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(120% 100% at 20% 0%, #000 20%, transparent 75%);
    pointer-events: none;
    z-index: -1;
}

#finance .fin-hero-copy { max-width: 62ch; }

#finance .fin-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    margin-bottom: 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    background: rgba(0, 229, 255, 0.07);
    color: var(--fin-cyan);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#finance .fin-sub {
    margin-top: 10px;
    color: var(--fin-muted);
    font-size: 0.86rem;
    line-height: 1.65;
    max-width: 56ch;
}

#finance .fin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

#finance .fin-hero-net {
    flex-shrink: 0;
    min-width: 220px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 157, 0.16);
    background: linear-gradient(160deg, rgba(0, 255, 157, 0.09), rgba(0, 229, 255, 0.04));
    text-align: right;
}

#finance .fin-hero-net-label {
    display: block;
    font-size: 0.64rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--fin-muted);
}

#finance .fin-hero-net-value {
    margin-top: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--fin-mint);
    font-variant-numeric: tabular-nums;
}

#finance .fin-hero-net-value span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--fin-muted);
}

#finance .fin-hero-net-value.is-neg { color: var(--fin-red); }

#finance .fin-hero-net-delta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
    font-size: 0.68rem;
    color: var(--fin-muted);
}

#finance .fin-hero-margin {
    color: var(--fin-mint);
    font-weight: 600;
}

#finance .fin-hero-split {
    font-size: 0.62rem;
    color: var(--fin-faint);
    font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */

#finance .fin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#finance .fin-btn i, #finance .fin-btn svg { width: 15px; height: 15px; }

#finance .fin-btn.primary {
    background: linear-gradient(135deg, var(--fin-cyan), #28b8d6);
    color: #04161b;
    box-shadow: 0 8px 24px -12px rgba(0, 229, 255, 0.85);
}

#finance .fin-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -12px rgba(0, 229, 255, 0.95);
}

#finance .fin-btn.ghost {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--fin-line-strong);
    color: var(--fin-text);
}

#finance .fin-btn.ghost:hover {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.08);
    color: var(--fin-cyan);
}

#finance .fin-btn.subtle {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.28);
    color: var(--fin-cyan);
}

#finance .fin-btn.subtle:hover { background: rgba(0, 229, 255, 0.18); }

#finance .fin-btn.small {
    padding: 8px 13px;
    font-size: 0.74rem;
    border-radius: 9px;
}

#finance .fin-btn:focus-visible,
#finance .fin-icon-btn:focus-visible,
#finance .fin-row-delete:focus-visible {
    outline: 2px solid var(--fin-cyan);
    outline-offset: 2px;
}

#finance .fin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--fin-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fin-muted);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

#finance .fin-icon-btn:hover {
    color: var(--fin-cyan);
    border-color: rgba(0, 229, 255, 0.35);
    background: rgba(0, 229, 255, 0.08);
}

#finance .fin-chevron svg { transition: transform 0.25s ease; }
#finance .fin-chevron.open svg { transform: rotate(180deg); }

/* ---------- KPI grid ---------- */

#finance .fin-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

#finance .fin-kpi-wide { grid-column: span 3; }

#finance .fin-kpi {
    --accent: var(--fin-cyan);
    position: relative;
    padding: 15px 16px 14px;
    border-radius: 15px;
    border: 1px solid var(--fin-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        var(--fin-surface);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

#finance .fin-kpi::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent 80%);
    opacity: 0.85;
}

#finance .fin-kpi:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 32%, var(--fin-line));
}

#finance .accent-cyan { --accent: var(--fin-cyan); }
#finance .accent-mint { --accent: var(--fin-mint); }
#finance .accent-amber { --accent: var(--fin-amber); }
#finance .accent-purple { --accent: var(--fin-purple); }
#finance .accent-orange { --accent: var(--orange, #ff8c00); }

#finance .fin-kpi-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

#finance .fin-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

#finance .fin-kpi-icon svg { width: 14px; height: 14px; }

#finance .fin-kpi-label {
    font-size: 0.63rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--fin-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#finance .fin-kpi-value {
    margin-top: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.05rem, 0.8rem + 0.5vw, 1.32rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--fin-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#finance .fin-kpi-value span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--fin-muted);
}

#finance .fin-kpi-value.is-pos { color: var(--fin-mint); }
#finance .fin-kpi-value.is-neg { color: var(--fin-red); }
#finance .fin-kpi-value.is-good { color: var(--fin-mint); }
#finance .fin-kpi-value.is-warn { color: var(--fin-amber); }
#finance .fin-kpi-value.is-bad { color: var(--fin-red); }
#finance .fin-kpi-value.has-value { color: var(--cat, var(--fin-text)); }

#finance .fin-kpi-sub {
    margin-top: 6px;
    font-size: 0.66rem;
    line-height: 1.45;
    color: var(--fin-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#finance .fin-delta { font-weight: 700; }
#finance .fin-delta.is-bad { color: var(--fin-red); }
#finance .fin-delta.is-good { color: var(--fin-mint); }

/* ---------- Workspace layout ---------- */

#finance .fin-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 342px;
    gap: 16px;
    align-items: start;
}

#finance .fin-main,
#finance .fin-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ---------- Cards ---------- */

#finance .fin-card {
    position: relative;
    padding: 20px;
    border-radius: var(--fin-radius);
    border: 1px solid var(--fin-line);
    background:
        linear-gradient(170deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.004) 55%),
        var(--fin-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 24px 50px -40px #000;
    min-width: 0;
}

#finance .fin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

#finance .fin-card-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

#finance .fin-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    color: var(--accent, var(--fin-cyan));
    background: color-mix(in srgb, var(--accent, var(--fin-cyan)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent, var(--fin-cyan)) 24%, transparent);
}

#finance .fin-card-title h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fin-text);
}

#finance .fin-card-title p {
    margin-top: 3px;
    font-size: 0.7rem;
    color: var(--fin-faint);
    line-height: 1.4;
}

/* ---------- Composer ---------- */

#finance .fin-composer .fin-form-body {
    display: grid;
    grid-template-rows: 1fr;
    overflow: hidden;
    transition: grid-template-rows 0.28s ease, opacity 0.22s ease, margin 0.22s ease;
    opacity: 1;
}

#finance .fin-composer:not(.is-open) .fin-form-body {
    grid-template-rows: 0fr;
    opacity: 0;
    pointer-events: none;
}

#finance .fin-composer .fin-form-body > * { min-height: 0; }

#finance .fin-form-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#finance .fin-field-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#finance .fin-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 180px;
    min-width: 0;
}

#finance .fin-field-grow { flex: 1.35 1 200px; }

#finance .fin-field > span:first-child {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fin-faint);
}

#finance .fin-field input,
#finance .fin-field select,
#finance .fin-inline-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--fin-line-strong);
    background: rgba(0, 0, 0, 0.35);
    color: var(--fin-text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    color-scheme: dark;
}

#finance .fin-field input::placeholder,
#finance .fin-inline-input::placeholder { color: #55666c; }

#finance .fin-field input:focus,
#finance .fin-field select:focus,
#finance .fin-inline-input:focus {
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
    background: rgba(0, 0, 0, 0.5);
}

#finance .fin-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--fin-muted) 50%),
        linear-gradient(135deg, var(--fin-muted) 50%, transparent 50%);
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 32px;
}

#finance .fin-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

#finance .fin-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    color: var(--fin-faint);
}

#finance .finance-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

#finance .finance-chip {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--fin-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fin-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: all 0.16s ease;
}

#finance .finance-chip:hover {
    border-color: rgba(0, 229, 255, 0.45);
    color: var(--fin-cyan);
    background: rgba(0, 229, 255, 0.08);
}

/* ---------- History ---------- */

#finance .fin-filters {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 13px;
    border: 1px dashed var(--fin-line-strong);
    background: rgba(0, 0, 0, 0.18);
}

#finance .fin-filters .fin-field { flex: 1 1 130px; }
#finance .fin-filters .fin-field-cat { flex: 1.2 1 160px; }

#finance .fin-filter-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

#finance .fin-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.25) transparent;
}

#finance .fin-list::-webkit-scrollbar { width: 5px; }
#finance .fin-list::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.22);
    border-radius: 999px;
}

#finance .fin-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--fin-line);
    background: rgba(255, 255, 255, 0.018);
    transition: background 0.16s ease, border-color 0.16s ease;
}

#finance .fin-row:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.22);
}

#finance .fin-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--cat, var(--fin-cyan));
    background: color-mix(in srgb, var(--cat, var(--fin-cyan)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--cat, var(--fin-cyan)) 20%, transparent);
}

#finance .fin-row-icon svg { width: 15px; height: 15px; }

#finance .fin-row-main { min-width: 0; }

#finance .fin-row-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

#finance .fin-row-cat {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--fin-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#finance .fin-row-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--fin-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#finance .fin-row-amount small {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--fin-faint);
}

#finance .fin-row-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 3px;
    font-size: 0.68rem;
    color: var(--fin-faint);
}

#finance .fin-row-sub > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#finance .fin-row-date { flex-shrink: 0; }

#finance .fin-row-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #5a6a70;
    cursor: pointer;
    transition: all 0.16s ease;
}

#finance .fin-row-delete:hover {
    color: var(--fin-red);
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.09);
}

#finance .fin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 34px 18px;
    text-align: center;
    border-radius: 13px;
    border: 1px dashed var(--fin-line-strong);
    background: rgba(255, 255, 255, 0.012);
    color: var(--fin-faint);
}

#finance .fin-empty.small { padding: 18px 14px; }
#finance .fin-empty strong { font-size: 0.82rem; font-weight: 600; color: #c4d1d5; }
#finance .fin-empty small { font-size: 0.7rem; line-height: 1.5; max-width: 34ch; }

#finance .fin-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
    border-radius: 12px;
    color: var(--fin-cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.18);
}

/* ---------- Analysis ---------- */

#finance .fin-month-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#finance .fin-month-nav > span {
    min-width: 106px;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: #c4d1d5;
    white-space: nowrap;
}

#finance .fin-alerts {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#finance .fin-alerts:not(:empty) { margin-bottom: 14px; }

#finance .finance-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 182, 72, 0.28);
    background: rgba(255, 182, 72, 0.08);
    color: #ffd08a;
    font-size: 0.71rem;
}

#finance .finance-alert.exceeded {
    border-color: rgba(255, 107, 107, 0.32);
    background: rgba(255, 107, 107, 0.09);
    color: #ffb3b3;
}

#finance .fin-chart-block {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px dashed var(--fin-line);
}

#finance .fin-chart-block:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

#finance .fin-chart-block-last { padding-bottom: 2px; }

#finance .fin-chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

#finance .fin-chart-head h4 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #b9c7cb;
}

#finance .fin-chart-hint {
    font-size: 0.64rem;
    color: var(--fin-faint);
}

#finance .fin-legend-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.64rem;
    color: var(--fin-faint);
}

#finance .fin-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

#finance .fin-dot.mint { background: var(--fin-mint); }
#finance .fin-dot.red { background: var(--fin-red); margin-left: 6px; }

/* Daily bars */

#finance .fin-bars {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 5px;
    height: 172px;
    align-items: end;
    padding: 0 2px;
}

#finance .fin-bar-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    height: 100%;
    min-width: 0;
}

#finance .fin-bar-track {
    display: flex;
    align-items: flex-end;
    height: 148px;
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 80%);
}

#finance .fin-bar-fill {
    width: 100%;
    height: var(--bar, 0%);
    min-height: 2px;
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.85), rgba(0, 229, 255, 0.18));
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.18s ease;
}

#finance .fin-bar-col:not(.is-today):not(.is-empty):hover .fin-bar-fill {
    filter: brightness(1.35) saturate(1.1);
}

#finance .fin-bar-col.is-today .fin-bar-fill {
    background: linear-gradient(180deg, #7df6ff, var(--fin-cyan));
    box-shadow: 0 0 18px -4px rgba(0, 229, 255, 0.75);
}

#finance .fin-bar-col.is-empty .fin-bar-fill {
    background: rgba(255, 255, 255, 0.09);
    min-height: 2px;
}

#finance .fin-bar-label {
    text-align: center;
    font-size: 0.58rem;
    color: var(--fin-faint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#finance .fin-bar-label.is-faint { opacity: 0; }

#finance .fin-bar-col.is-today .fin-bar-label {
    color: var(--fin-cyan);
    font-weight: 700;
}

/* Donut + cuts */

#finance .fin-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
}

#finance .fin-donut-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

#finance .fin-donut {
    position: relative;
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 0 34px -18px rgba(0, 229, 255, 0.55);
}

#finance .fin-donut-hole {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--fin-surface);
    border: 1px solid var(--fin-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

#finance .fin-donut-hole strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

#finance .fin-donut-hole span {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fin-faint);
}

#finance .finance-pie-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 130px;
    min-width: 0;
    max-height: 150px;
    overflow-y: auto;
}

#finance .finance-pie-legend-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    font-size: 0.71rem;
}

#finance .pie-dot {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: var(--cat, var(--fin-cyan));
}

#finance .pie-label {
    color: #b9c7cb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#finance .pie-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--fin-text);
    font-variant-numeric: tabular-nums;
}

#finance .fin-cuts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#finance .fin-cut {
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--fin-line);
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--cat, var(--fin-cyan));
}

#finance .fin-cut-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

#finance .fin-cut-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 6px;
    background: color-mix(in srgb, var(--cat, var(--fin-cyan)) 15%, transparent);
    color: var(--cat, var(--fin-cyan));
    font-size: 0.6rem;
    font-weight: 700;
}

#finance .fin-cut-icon {
    display: inline-flex;
    color: var(--cat, var(--fin-cyan));
}

#finance .fin-cut-icon svg { width: 13px; height: 13px; }

#finance .fin-cut-name {
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#finance .fin-cut-amount {
    margin-left: auto;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#finance .fin-cut-amount small {
    font-size: 0.56rem;
    color: var(--fin-faint);
}

#finance .fin-cut-reason {
    margin-top: 5px;
    font-size: 0.66rem;
    line-height: 1.5;
    color: var(--fin-faint);
}

#finance .fin-cut-bar {
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

#finance .fin-cut-bar span {
    display: block;
    height: 100%;
    width: var(--bar, 0%);
    border-radius: inherit;
    background: var(--cat, var(--fin-cyan));
    opacity: 0.85;
}

/* Net chart */

#finance .fin-net-chart {
    position: relative;
    height: 220px;
    min-height: 220px;
}

/* ---------- Recurring bills ---------- */

#finance .fin-recurring-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid var(--fin-line);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.08), rgba(255, 140, 0, 0.015));
}

#finance .fin-recurring-total-row > span {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fin-faint);
}

#finance .fin-recurring-total-row strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--orange, #ff8c00);
    font-variant-numeric: tabular-nums;
}

#finance .fin-recurring-total-row small {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--fin-faint);
}

#finance .finance-recurring-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, margin 0.32s ease;
}

#finance .finance-recurring-body.open {
    max-height: 720px;
    margin-top: 12px;
}

#finance .fin-bill {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 11px;
    border: 1px solid var(--fin-line);
    background: rgba(255, 255, 255, 0.02);
}

#finance .fin-bill + .fin-bill { margin-top: 6px; }

#finance .fin-bill.is-inactive { opacity: 0.5; }

#finance .fin-bill-state {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--fin-line-strong);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.18s ease;
}

#finance .fin-bill-state.is-on {
    border-color: rgba(0, 255, 157, 0.45);
    background: rgba(0, 255, 157, 0.16);
}

#finance .fin-bill-state.is-on::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--fin-mint);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.7);
}

#finance .fin-bill-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#finance .fin-bill-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fin-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#finance .fin-bill-desc {
    font-size: 0.63rem;
    color: var(--fin-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#finance .fin-bill-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--fin-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#finance .fin-bill-amount small { font-size: 0.55rem; color: var(--fin-faint); }

#finance .fin-bill-actions {
    display: flex;
    gap: 2px;
}

#finance .fin-bill-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: #5a6a70;
    cursor: pointer;
    transition: all 0.15s ease;
}

#finance .fin-bill-actions button:hover {
    color: var(--fin-cyan);
    background: rgba(0, 229, 255, 0.08);
}

#finance .fin-bill-actions button.danger:hover {
    color: var(--fin-red);
    background: rgba(255, 107, 107, 0.09);
}

#finance .finance-recurring-item-edit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1;
}

#finance .finance-recurring-item-edit input { min-width: 0; }
#finance .finance-recurring-item-edit .name-input { flex: 1 1 90px; }
#finance .finance-recurring-item-edit .amount-input { flex: 0 1 80px; }
#finance .finance-recurring-item-edit .fin-inline-input { flex: 1 1 120px; }

#finance .finance-recurring-item-edit-actions {
    display: flex;
    gap: 4px;
}

#finance .finance-recurring-item-edit-actions button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    border-radius: 7px;
    border: 1px solid var(--fin-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fin-muted);
    font-size: 0.66rem;
    cursor: pointer;
}

#finance .finance-recurring-item-edit-actions button.save {
    color: var(--fin-mint);
    border-color: rgba(0, 255, 157, 0.3);
    background: rgba(0, 255, 157, 0.08);
}

#finance .finance-recurring-add {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--fin-line);
}

#finance .finance-recurring-add input {
    flex: 1 1 110px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid var(--fin-line-strong);
    background: rgba(0, 0, 0, 0.35);
    color: var(--fin-text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    outline: none;
}

#finance .finance-recurring-add input:focus {
    border-color: rgba(0, 229, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

#finance .finance-recurring-add #newRecurringDesc { flex: 1 1 100%; }

#finance .finance-recurring-add input::placeholder { color: #55666c; }

/* ---------- Budget health ---------- */

#finance .fin-budget-health.is-ok { --ring-color: var(--fin-mint); }
#finance .fin-budget-health.is-warn { --ring-color: var(--fin-amber); }
#finance .fin-budget-health.is-over { --ring-color: var(--fin-red); }

#finance .fin-budget-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px;
    border-radius: 13px;
    border: 1px solid var(--fin-line);
    background: rgba(255, 255, 255, 0.018);
}

#finance .fin-ring {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--ring-color, var(--fin-mint)) calc(var(--pct, 0) * 1%), rgba(255, 255, 255, 0.07) 0);
}

#finance .fin-ring::before {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--fin-surface);
    border: 1px solid var(--fin-line);
}

#finance .fin-ring span {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ring-color, var(--fin-mint));
    font-variant-numeric: tabular-nums;
}

#finance .fin-budget-figures {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#finance .fin-budget-caption {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fin-faint);
}

#finance .fin-budget-figures strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

#finance .fin-budget-left {
    font-size: 0.65rem;
    color: var(--ring-color, var(--fin-mint));
}

#finance .fin-budget-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 14px;
}

#finance .fin-budget-row-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

#finance .fin-budget-name {
    font-size: 0.73rem;
    font-weight: 600;
    color: #c4d1d5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#finance .fin-budget-pct {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--fin-mint);
    font-variant-numeric: tabular-nums;
}

#finance .fin-budget-row.is-warn .fin-budget-pct { color: var(--fin-amber); }
#finance .fin-budget-row.is-over .fin-budget-pct { color: var(--fin-red); }

#finance .fin-budget-track {
    height: 5px;
    margin: 5px 0 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

#finance .fin-budget-track span {
    display: block;
    height: 100%;
    width: var(--bar, 0%);
    border-radius: inherit;
    background: var(--cat, var(--fin-cyan));
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#finance .fin-budget-row.is-warn .fin-budget-track span { background: var(--fin-amber); }
#finance .fin-budget-row.is-over .fin-budget-track span { background: var(--fin-red); }

#finance .fin-budget-row-sub {
    font-size: 0.62rem;
    color: var(--fin-faint);
    font-variant-numeric: tabular-nums;
}

/* ---------- Categories panel + modal ---------- */

#finance .fin-categories { margin-top: 16px; }

#finance .finance-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 10px;
}

#finance .fin-cat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--fin-line);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.18s ease, transform 0.18s ease;
}

#finance .fin-cat:hover {
    border-color: rgba(0, 229, 255, 0.25);
    transform: translateY(-1px);
}

#finance .fin-cat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#finance .fin-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    color: var(--cat, var(--fin-cyan));
    background: color-mix(in srgb, var(--cat, var(--fin-cyan)) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--cat, var(--fin-cyan)) 22%, transparent);
}

#finance .fin-cat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#finance .fin-cat-name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#finance .fin-cat-budget {
    font-size: 0.64rem;
    color: var(--fin-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#finance .fin-cat-budget.is-muted { color: var(--fin-faint); }

#finance .fin-cat-actions {
    display: flex;
    gap: 5px;
}

#finance .fin-cat-actions button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 7px;
    border: 1px solid var(--fin-line);
    background: transparent;
    color: var(--fin-muted);
    font-size: 0.64rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

#finance .fin-cat-actions button:hover {
    color: var(--fin-cyan);
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.07);
}

#finance .fin-cat-actions button.danger:hover {
    color: var(--fin-red);
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.08);
}

#finance .finance-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(3, 7, 9, 0.82);
    /* No backdrop-filter here: on Chromium it blurred the dialog itself. */
}

#finance .finance-modal-content {
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
    border: 1px solid var(--fin-line-strong);
    background:
        linear-gradient(170deg, rgba(255, 255, 255, 0.04), transparent 60%),
        var(--fin-surface-2);
    box-shadow: 0 40px 90px -40px #000;
    animation: finRise 0.25s ease both;
}

#finance .finance-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--fin-line);
}

#finance .finance-modal-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
}

#finance .finance-form-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid var(--fin-line);
    background: transparent;
    color: var(--fin-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

#finance .finance-form-close:hover {
    color: var(--fin-cyan);
    border-color: rgba(0, 229, 255, 0.35);
}

#finance .finance-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 20px;
}

/* Fields in the dialog size to content; the form-row flex basis would stretch them. */
#finance .finance-modal-body > .fin-field { flex: 0 0 auto; }

#finance .finance-icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 6px;
}

#finance .finance-icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--fin-line);
    color: var(--fin-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

#finance .finance-icon-option:hover {
    color: var(--fin-cyan);
    border-color: rgba(0, 229, 255, 0.3);
}

#finance .finance-icon-option.selected {
    color: var(--fin-cyan);
    border-color: rgba(0, 229, 255, 0.55);
    background: rgba(0, 229, 255, 0.1);
}

#finance .finance-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#finance .finance-color-option {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

#finance .finance-color-option:hover { transform: scale(1.1); }

#finance .finance-color-option.selected {
    border-color: #fff;
    transform: scale(1.06);
}

#finance .finance-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1500px) {
    #finance .fin-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #finance .fin-kpi-wide { grid-column: span 1; }
}

@media (max-width: 1240px) {
    #finance .fin-workspace { grid-template-columns: minmax(0, 1fr); }
    #finance .fin-rail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 16px;
    }
}

@media (max-width: 900px) {
    #finance .fin-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    #finance .fin-hero-net {
        min-width: 0;
        text-align: left;
    }
    #finance .fin-split { grid-template-columns: minmax(0, 1fr); }
    #finance .fin-rail { grid-template-columns: minmax(0, 1fr); }
    #finance .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #finance .fin-card { padding: 16px; }
    #finance .fin-bars {
        overflow-x: auto;
        grid-auto-columns: 22px;
        padding-bottom: 4px;
    }
}

@media (max-width: 560px) {
    #finance .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    #finance .fin-kpi { padding: 12px; }
    #finance .fin-kpi-value { font-size: 1rem; }
    #finance .fin-kpi-sub {
        font-size: 0.6rem;
        white-space: normal;
        overflow: visible;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    #finance .fin-hero { padding: 18px; }
    #finance .fin-hero-actions .fin-btn { flex: 1 1 auto; }
    #finance .fin-form-foot .fin-btn { width: 100%; }
    #finance .fin-filter-actions { width: 100%; }
    #finance .fin-filter-actions .fin-btn { flex: 1; }
    #finance .fin-month-nav > span { min-width: 84px; font-size: 0.7rem; }
    #finance .fin-donut { width: 112px; height: 112px; }
    #finance .fin-donut-hole { width: 74px; height: 74px; }
    #finance .fin-card-title p { display: none; }
    #finance .fin-chart-hint { display: none; }
    #finance .fin-row { grid-template-columns: 30px minmax(0, 1fr) 28px; padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    #finance, #finance * {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
}


/* ==========================================================================
   MOBILE COMMAND CENTER — phones and tablets
   The station grid is the main menu on a phone, so it gets its own density:
   two cards across, three rows in view, and a card that keeps every figure
   (unpaid, total, active/sessions/rate, timer, dots, actions) without
   scrolling. Tablets stay three across but inherit the same quieter chrome.
   ========================================================================== */

/* ---------- 1. Phone grid: two up, six in view ---------- */
@media (max-width: 767px) {

    #dashboard .grid,
    #kioskMode .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        row-gap: 8px !important;
        margin-bottom: 16px !important;
    }

    #dashboard .grid > .station,
    #kioskMode .grid > .station {
        min-width: 0;
    }

    #dashboard .dashboard-main,
    #kioskMode .dashboard-main {
        gap: 14px !important;
    }

    /* Section head over the grid: one tight line, no wasted gutter. */
    #dashboard .grid .station-section,
    #kioskMode .grid .station-section {
        margin: 0 0 8px !important;
        padding-bottom: 6px !important;
    }

    /* ---------- 2. The phone card ---------- */
    #dashboard .grid .station,
    #kioskMode .grid .station {
        border-radius: 14px;
        background:
            radial-gradient(120% 90% at 100% 0%, rgba(0, 229, 255, 0.06), transparent 58%),
            var(--panel-surface);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
        overflow: hidden;
    }

    #dashboard .grid .station-header,
    #kioskMode .grid .station-header {
        padding: 8px 9px 6px !important;
        gap: 4px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    }

    #dashboard .grid .station-header > div:first-child,
    #kioskMode .grid .station-header > div:first-child {
        min-width: 0;
    }

    #dashboard .grid .station-name,
    #kioskMode .grid .station-name {
        font-size: 0.86rem !important;
        gap: 4px;
        row-gap: 2px;
        margin-bottom: 2px;
        flex-wrap: wrap;
        line-height: 1.1;
    }

    #dashboard .grid .station-name svg,
    #kioskMode .grid .station-name svg {
        width: 13px !important;
        height: 13px !important;
    }

    #dashboard .grid .console-badge,
    #kioskMode .grid .console-badge {
        padding: 1px 4px !important;
        font-size: 0.4rem !important;
        border-radius: 4px;
        letter-spacing: 0.04em;
    }

    #dashboard .grid .station-unpaid,
    #kioskMode .grid .station-unpaid {
        margin-top: 1px !important;
        gap: 3px !important;
        line-height: 1.2;
    }

    #dashboard .grid .station-unpaid span,
    #kioskMode .grid .station-unpaid span {
        font-size: 0.4rem !important;
        letter-spacing: 0.08em;
    }

    #dashboard .grid .station-unpaid-value,
    #kioskMode .grid .station-unpaid-value {
        font-size: 0.56rem !important;
    }

    #dashboard .grid .total-amount,
    #kioskMode .grid .total-amount {
        font-size: 1rem !important;
        min-width: 0;
        line-height: 1.05;
    }

    #dashboard .grid .station-total-label,
    #kioskMode .grid .station-total-label {
        font-size: 0.36rem !important;
        letter-spacing: 0.12em;
        margin-bottom: 1px;
    }

    #dashboard .grid .station-total-value span,
    #kioskMode .grid .station-total-value span {
        font-size: 0.44rem !important;
        margin-left: 2px;
    }

    /* The three figures stay, just closer together. */
    #dashboard .grid .station-stat,
    #kioskMode .grid .station-stat {
        padding: 4px 2px !important;
    }

    #dashboard .grid .station-stat span,
    #kioskMode .grid .station-stat span {
        font-size: 0.38rem !important;
        letter-spacing: 0.06em;
        margin-bottom: 1px;
    }

    #dashboard .grid .station-stat strong,
    #kioskMode .grid .station-stat strong {
        font-size: 0.68rem !important;
    }

    #dashboard .grid .station-stat em,
    #kioskMode .grid .station-stat em {
        font-size: 0.4rem !important;
    }

    #dashboard .grid .status-bar,
    #kioskMode .grid .status-bar {
        padding: 4px 8px !important;
        gap: 5px;
        font-size: 0.58rem !important;
    }

    #dashboard .grid .status-bar svg,
    #kioskMode .grid .status-bar svg {
        width: 11px;
        height: 11px;
    }

    #dashboard .grid .timer-display,
    #kioskMode .grid .timer-display {
        font-size: 0.72rem !important;
        letter-spacing: 0.02em;
    }

    #dashboard .grid .station-content,
    #kioskMode .grid .station-content {
        padding: 6px 9px !important;
        min-height: 30px !important;
    }

    #dashboard .grid .session-dots,
    #kioskMode .grid .session-dots {
        gap: 4px;
    }

    #dashboard .grid .dot,
    #kioskMode .grid .dot {
        width: 9px !important;
        height: 9px !important;
    }

    #dashboard .grid .no-games,
    #kioskMode .grid .no-games {
        padding: 2px 0 !important;
        font-size: 0.42rem !important;
        letter-spacing: 0.06em;
    }

    #dashboard .grid .station-footer,
    #kioskMode .grid .station-footer {
        padding: 5px 6px 6px !important;
    }

    #dashboard .grid .station-footer .btn-group,
    #kioskMode .grid .station-footer .btn-group {
        gap: 4px;
        margin-top: 0;
    }

    #dashboard .grid .station-footer .action-btn,
    #kioskMode .grid .station-footer .action-btn {
        flex: 1 1 0;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        border-radius: 9px;
    }

    #dashboard .grid .station-footer .action-btn svg,
    #kioskMode .grid .station-footer .action-btn svg,
    #dashboard .grid .station-footer .action-btn i,
    #kioskMode .grid .station-footer .action-btn i {
        width: 14px;
        height: 14px;
    }

    /* ---------- 3. Owner zone header, compacted for the phone ---------- */
    /* Copy and back control share one row: the stacked button cost 30px of
       grid the phone cannot spare. The label stays in the a11y tree. */
    #dashboard .detail-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 8px;
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
        border-radius: 16px !important;
    }

    #dashboard .detail-hero .dash-hero-copy {
        min-width: 0;
    }

    /* The eyebrow is 36px of chrome a phone cannot spare above the grid. */
    #dashboard .detail-hero .dash-eyebrow {
        display: none;
    }

    #dashboard .detail-hero .dash-title {
        font-size: 1.05rem !important;
        margin-top: 2px !important;
    }

    #dashboard .detail-hero .dash-sub {
        font-size: 0.58rem !important;
        margin-top: 2px !important;
        line-height: 1.35;
    }

    #dashboard .detail-back {
        width: 32px;
        min-width: 32px;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        gap: 0;
        font-size: 0 !important;
        border-radius: 9px !important;
    }

    #dashboard .detail-back svg {
        width: 15px;
        height: 15px;
    }
}

/* ---------- 4. Kiosk main menu on a phone ---------- */
@media (max-width: 767px) {

    /* The bar is the app's front door: brand, zone chip, one control. */
    body #kioskMode > .top-nav {
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    }

    #kioskMode .logo-section {
        gap: 1px 8px;
        align-items: center;
    }

    #kioskMode .logo-section h1 {
        letter-spacing: 0.01em;
        line-height: 1.05;
    }

    #kioskMode .owner-display {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        max-width: 100%;
        padding: 2px 7px;
        border-radius: 999px;
        border: 1px solid rgba(0, 229, 255, 0.18);
        background: rgba(0, 229, 255, 0.07);
        color: #a9f4ff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.08em;
    }

    #kioskMode .owner-display svg {
        width: 9px;
        height: 9px;
        flex-shrink: 0;
    }

    #kioskMode .top-nav .mobile-menu-btn {
        display: flex !important;
        background: rgba(0, 229, 255, 0.14) !important;
        border-color: rgba(0, 229, 255, 0.32) !important;
        color: var(--cyan) !important;
    }

    /* The sheet: a control panel, not a list on black. */
    #kioskMode .mobile-menu-overlay {
        padding:
            calc(20px + env(safe-area-inset-top)) 18px
            calc(18px + env(safe-area-inset-bottom)) !important;
        background:
            radial-gradient(90% 55% at 100% 0%, rgba(0, 229, 255, 0.16), transparent 62%),
            radial-gradient(70% 45% at 0% 100%, rgba(0, 255, 157, 0.08), transparent 60%),
            #05080a !important;
        backdrop-filter: none !important;
        gap: 0;
    }

    #kioskMode .mobile-menu-overlay.active {
        animation: kioskSheetIn 0.26s ease both;
    }

    @keyframes kioskSheetIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #kioskMode .mobile-menu-header {
        margin-bottom: 16px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    }

    #kioskMode .mobile-menu-header h2 {
        font-size: 1.02rem;
        letter-spacing: 0.08em;
    }

    #kioskMode .mobile-menu-close {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
    }

    /* Zone hero + live numeral. */
    #kioskMode .mobile-zone-info,
    #kioskMode .mobile-session-info {
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.075);
        background:
            linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 60%),
            rgba(8, 12, 15, 0.85);
        padding: 16px 18px;
        margin-bottom: 10px;
    }

    #kioskMode .mobile-zone-info {
        border-color: rgba(0, 229, 255, 0.2);
        background:
            radial-gradient(120% 140% at 0% 0%, rgba(0, 229, 255, 0.14), transparent 62%),
            rgba(8, 12, 15, 0.9);
    }

    #kioskMode .mobile-info-label {
        margin-bottom: 6px;
        font-family: 'JetBrains Mono', ui-monospace, monospace;
        font-size: 0.54rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: #7f97a4;
    }

    #kioskMode .mobile-info-label svg {
        width: 11px;
        height: 11px;
        color: var(--cyan);
    }

    #kioskMode .mobile-info-value {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.35rem;
        font-weight: 700;
        color: #ecfdff;
        line-height: 1.15;
    }

    #kioskMode .mobile-session-info .mobile-info-value {
        font-size: 2.5rem;
        letter-spacing: -0.01em;
        color: var(--cyan);
        line-height: 1;
    }

    #kioskMode .mobile-session-info .mobile-info-value span {
        font-size: 1rem;
        color: #53707c;
    }

    /* Action tiles. */
    #kioskMode .mobile-menu-items {
        display: grid;
        gap: 8px;
    }

    #kioskMode .mobile-menu-item {
        min-height: 52px;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.035);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.08em;
    }

    #kioskMode .mobile-menu-item i {
        width: 18px;
        height: 18px;
        color: var(--cyan);
    }

    #kioskMode .mobile-menu-item.exit {
        margin-top: 4px;
        border-color: rgba(255, 94, 94, 0.22);
        background: rgba(255, 59, 59, 0.06);
        color: #ffb1b1;
    }

    #kioskMode .mobile-menu-item.exit i {
        color: #ff8f8f;
    }

    #kioskMode .mobile-menu-footer {
        margin-top: auto;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.56rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        text-align: center;
        color: #5d7280;
    }
}

/* ---------- 5. Tablets: one-row bar, three-up grid ---------- */
@media (min-width: 768px) and (max-width: 1023px) {

    #dashboard .grid,
    #kioskMode .grid {
        gap: 10px !important;
        row-gap: 10px !important;
    }

    #dashboard .grid .station,
    #kioskMode .grid .station {
        border-radius: 18px;
    }

    #dashboard .station-header,
    #kioskMode .station-header {
        padding: 9px 11px 7px !important;
    }

    #dashboard .station-name,
    #kioskMode .station-name {
        font-size: 1.02rem !important;
    }

    #dashboard .status-bar,
    #kioskMode .status-bar {
        padding: 4px 10px !important;
    }

    #dashboard .station-content,
    #kioskMode .station-content {
        min-height: 34px !important;
    }

    #dashboard .station-footer .action-btn,
    #kioskMode .station-footer .action-btn {
        height: 36px !important;
        min-height: 36px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {

    /* The runtime restores the full nav here; keep it to one calm row. */
    #kioskMode .top-nav {
        flex-wrap: nowrap !important;
        gap: 10px !important;
        padding: 8px 12px !important;
        margin-bottom: 14px !important;
        border-radius: 14px !important;
    }

    #kioskMode .top-nav .desktop-nav {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: center;
    }

    #kioskMode .top-nav .logo-section h1 {
        font-size: 0.9rem !important;
    }

    #kioskMode .top-nav .owner-display {
        font-size: 0.56rem !important;
    }

    #kioskMode .top-nav .nav-btn,
    #kioskMode .top-nav .sync-btn,
    #kioskMode .top-nav .reset-btn {
        height: 34px !important;
        padding: 0 10px !important;
        font-size: 0.66rem !important;
        border-radius: 9px !important;
    }

    #kioskMode .top-nav .nav-btn svg,
    #kioskMode .top-nav .sync-btn svg,
    #kioskMode .top-nav .reset-btn svg {
        width: 14px;
        height: 14px;
    }

    /* The number alone carries the pill at this width. */
    #kioskMode .top-nav .active-sessions-label {
        display: none;
    }

    #kioskMode .top-nav .active-sessions-wrapper {
        height: 34px;
        padding: 0 10px;
        gap: 0;
    }

    #kioskMode .top-nav .active-sessions-count {
        font-size: 1rem;
        min-width: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {

    #kioskMode .mobile-menu-overlay.active {
        animation: none;
    }
}

/* Short portrait screens (SE-sized): trim the last few pixels so six cards
   still clear the fold without touching the card's reading order. */
@media (max-width: 767px) and (max-height: 700px) {

    body #kioskMode > .top-nav {
        padding: 8px 10px !important;
        margin-bottom: 8px !important;
    }

    /* The runtime mobile style pins the wordmark at 1.2rem; on a 667px-tall
       screen that 6px is the difference between six cards and five. */
    #kioskMode .top-nav .logo-section h1 {
        font-size: 1rem !important;
    }

    #kioskMode .top-nav .owner-display {
        font-size: 0.56rem !important;
    }

    #dashboard .grid,
    #kioskMode .grid {
        gap: 6px !important;
        row-gap: 6px !important;
    }

    #dashboard .grid .station-section,
    #kioskMode .grid .station-section {
        margin-bottom: 4px !important;
        padding-bottom: 2px !important;
    }

    #dashboard .grid .station-header,
    #kioskMode .grid .station-header {
        padding: 7px 9px 5px !important;
    }

    #dashboard .grid .station-footer,
    #kioskMode .grid .station-footer {
        padding: 4px 6px 5px !important;
    }

    #dashboard .grid .station-stat,
    #kioskMode .grid .station-stat {
        padding: 3px 2px !important;
    }

    #dashboard .grid .station-content,
    #kioskMode .grid .station-content {
        min-height: 24px !important;
        padding: 4px 9px !important;
    }

    #dashboard .grid .station-footer .action-btn,
    #kioskMode .grid .station-footer .action-btn {
        height: 32px !important;
        min-height: 32px !important;
    }
}

/* Small tablets in landscape (1024x768 class): four across and three rows,
   with the tablet card rhythm rather than the roomier desktop one. */
@media (min-width: 1024px) and (max-width: 1100px) {

    #kioskMode > .top-nav {
        margin-bottom: 10px !important;
    }

    #dashboard .grid,
    #kioskMode .grid {
        gap: 7px !important;
        row-gap: 7px !important;
    }

    #dashboard .grid .station-header,
    #kioskMode .grid .station-header {
        padding: 9px 11px 7px !important;
    }

    #dashboard .grid .station-name,
    #kioskMode .grid .station-name {
        font-size: 1.02rem !important;
        gap: 6px;
    }

    #dashboard .grid .station-unpaid,
    #kioskMode .grid .station-unpaid {
        margin-top: 3px !important;
    }

    #dashboard .grid .station-unpaid-value,
    #kioskMode .grid .station-unpaid-value {
        font-size: 0.64rem !important;
    }

    #dashboard .grid .total-amount,
    #kioskMode .grid .total-amount {
        font-size: 1.2rem !important;
    }

    #dashboard .grid .station-stat,
    #kioskMode .grid .station-stat {
        padding: 5px 4px !important;
    }

    #dashboard .grid .station-stat span,
    #kioskMode .grid .station-stat span {
        font-size: 0.44rem !important;
        margin-bottom: 1px;
    }

    #dashboard .grid .station-stat strong,
    #kioskMode .grid .station-stat strong {
        font-size: 0.76rem !important;
    }

    #dashboard .grid .status-bar,
    #kioskMode .grid .status-bar {
        padding: 4px 10px !important;
    }

    #dashboard .grid .timer-display,
    #kioskMode .grid .timer-display {
        font-size: 0.82rem !important;
    }

    #dashboard .grid .station-content,
    #kioskMode .grid .station-content {
        padding: 5px 10px !important;
        min-height: 24px !important;
    }

    #dashboard .grid .dot,
    #kioskMode .grid .dot {
        width: 10px !important;
        height: 10px !important;
    }

    #dashboard .grid .station-footer,
    #kioskMode .grid .station-footer {
        padding: 4px 8px 6px !important;
    }

    #dashboard .grid .station-footer .action-btn,
    #kioskMode .grid .station-footer .action-btn {
        height: 34px !important;
        min-height: 34px !important;
    }
}
/* ============================================================
   ADMIN CONTROL ROOM
   One shell for every admin surface: hero, platform totals, a
   pinned tab rail and the section body underneath.
   ============================================================ */

#adminPanel {
    --adm-panel: rgba(255, 255, 255, 0.022);
    --adm-line: rgba(255, 255, 255, 0.07);
    --adm-line-soft: rgba(255, 255, 255, 0.04);
    --adm-radius: 18px;
    --adm-gutter: 14px;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 0 48px;
    font-family: 'Outfit', sans-serif;
}

#adminPanel.view-section {
    display: none;
}

#adminPanel.view-section.active {
    display: block;
}

/* ---------- Hero ---------- */
.adm-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 24px;
    margin-bottom: var(--adm-gutter);
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-radius: var(--adm-radius);
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(0, 229, 255, 0.14) 0%, transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}

.adm-hero-id {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.adm-shield {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.04);
}

.adm-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.66rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--cyan);
}

.adm-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.14);
    animation: admPulse 2.6s ease-in-out infinite;
}

@keyframes admPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.adm-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
    letter-spacing: -0.015em;
    margin: 3px 0 4px;
}

.adm-sub {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 54ch;
}

.adm-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.adm-primary-btn,
.adm-ghost-btn,
.adm-link-btn,
.adm-icon-btn {
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
}

.adm-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 12px;
    background: linear-gradient(180deg, #00e5ff, #00b7cc);
    color: #00161a;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 22px rgba(0, 229, 255, 0.18);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .adm-primary-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(0, 229, 255, 0.26);
    }
}

.adm-primary-btn:disabled {
    opacity: 0.55;
    cursor: progress;
    transform: none;
    box-shadow: none;
}

.adm-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid var(--adm-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-size: 0.85rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
    .adm-ghost-btn:hover {
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.06);
    }
}

.adm-ghost-btn.is-danger {
    border-color: rgba(255, 59, 59, 0.35);
    color: var(--red);
}

.adm-ghost-btn:disabled {
    opacity: 0.5;
    cursor: progress;
}

.adm-link-btn {
    background: none;
    border: none;
    padding: 4px 2px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
}

@media (hover: hover) {
    .adm-link-btn:hover {
        text-decoration: underline;
    }
}

.adm-icon-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid var(--adm-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    transition: border-color 0.2s ease;
}

@media (hover: hover) {
    .adm-icon-btn:hover {
        border-color: rgba(0, 229, 255, 0.35);
    }
}

/* ---------- Platform totals ---------- */
.adm-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(144px, 1fr));
    gap: 10px;
    margin-bottom: var(--adm-gutter);
}

.adm-kpi {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 2px;
    padding: 14px 16px 16px;
    border: 1px solid var(--adm-line);
    border-radius: 14px;
    background: var(--adm-panel);
    --kpi: var(--text-main);
}

.adm-kpi::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: var(--kpi);
    opacity: 0.55;
}

.adm-kpi.is-cyan { --kpi: var(--cyan); }
.adm-kpi.is-amber { --kpi: var(--yellow); }
.adm-kpi.is-mint { --kpi: var(--green); }
.adm-kpi.is-red { --kpi: var(--red); }
.adm-kpi.is-purple { --kpi: var(--purple); }
.adm-kpi.is-orange { --kpi: var(--orange); }

.adm-kpi-label {
    font-size: 0.65rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.adm-kpi strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    line-height: 1.15;
    color: var(--kpi);
    font-variant-numeric: tabular-nums;
}

.adm-kpi strong em {
    font-style: normal;
    font-size: 0.62em;
    color: var(--text-dim);
    margin-left: 3px;
}

.adm-kpi-foot {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    color: #5a5a5a;
}

/* ---------- Tab rail ---------- */
.adm-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px;
    margin-bottom: var(--adm-gutter);
    border: 1px solid var(--adm-line);
    border-radius: 14px;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    scrollbar-width: none;
}

.adm-tabs::-webkit-scrollbar {
    display: none;
}

#adminPanel .adm-tabs .admin-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-dim);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
    #adminPanel .adm-tabs .admin-tab:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.05);
    }
}

#adminPanel .adm-tabs .admin-tab.active {
    color: #fff;
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.3);
}

#adminPanel .adm-tabs .admin-tab.active svg {
    color: var(--cyan);
}

.adm-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
}

#adminPanel .admin-tab-content.active {
    animation: admFade 0.22s ease both;
}

@keyframes admFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Panels ---------- */
.adm-panel {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius);
    background: var(--adm-panel);
    min-width: 0;
}

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

.adm-panel-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    letter-spacing: -0.005em;
}

.adm-panel-head h3 svg {
    color: var(--cyan);
}

.adm-panel-label {
    font-size: 0.62rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: #5d5d5d;
}

.adm-meta {
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    color: var(--text-dim);
}

.adm-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, 0.26);
    background: rgba(0, 229, 255, 0.12);
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---------- Overview ---------- */
.adm-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.adm-span-2 {
    grid-column: span 2;
}

#adminPanel .admin-main-menu {
    margin: 0 0 var(--adm-gutter);
    padding: 0;
}

#adminPanel .admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
    gap: 10px;
}

#adminPanel .admin-menu-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-height: 152px;
    padding: 16px;
    border: 1px solid var(--adm-line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    #adminPanel .admin-menu-card:hover {
        border-color: rgba(0, 229, 255, 0.35);
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    }
}

#adminPanel .admin-menu-card:active {
    transform: translateY(0);
}

#adminPanel .admin-menu-card .menu-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.18);
}

#adminPanel .admin-menu-card h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
}

#adminPanel .admin-menu-card p {
    font-size: 0.79rem;
    line-height: 1.45;
    color: var(--text-dim);
}

.adm-card-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ---------- Attention queue ---------- */
.adm-attention-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adm-attention-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--adm-line-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

@media (hover: hover) {
    .adm-attention-item:hover {
        border-color: rgba(0, 229, 255, 0.3);
        background: rgba(0, 229, 255, 0.05);
    }
}

.adm-attention-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.adm-attention-copy strong {
    font-size: 0.86rem;
    font-weight: 600;
}

.adm-attention-copy em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-chip {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.adm-chip.is-amber {
    color: var(--yellow);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.28);
}

.adm-chip.is-orange {
    color: var(--orange);
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.adm-more {
    padding: 6px 2px 0;
    font-size: 0.72rem;
    color: #5f5f5f;
    letter-spacing: 0.04em;
}

/* ---------- Avatars ---------- */
.adm-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(140deg, #00e5ff, #00ff9d);
    color: #00161a;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.adm-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    font-size: 1.25rem;
}

/* ---------- Subscription mix ---------- */
.adm-mix {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.adm-mix-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 78px;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
}

.adm-mix-label {
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-mix-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.adm-mix-track i {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: 999px;
    background: var(--cyan);
    font-style: normal;
    transition: width 0.4s ease;
}

.adm-mix-track i.is-mint { background: linear-gradient(90deg, #00ff9d, #00c97b); }
.adm-mix-track i.is-cyan { background: linear-gradient(90deg, #00e5ff, #009fb3); }
.adm-mix-track i.is-orange { background: linear-gradient(90deg, #ff8c00, #d46f00); }
.adm-mix-track i.is-red { background: linear-gradient(90deg, #ff3b3b, #c81f1f); }

.adm-mix-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.adm-mix-value em {
    margin-left: 6px;
    font-style: normal;
    font-size: 0.7rem;
    color: #5c5c5c;
}

.adm-mix-total {
    margin-top: 2px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5c5c5c;
}

/* ---------- Recent activity ---------- */
.adm-recent-logs {
    display: flex;
    flex-direction: column;
}

.adm-recent-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px solid var(--adm-line-soft);
    font-size: 0.8rem;
}

.adm-recent-row:last-child {
    border-bottom: none;
}

.adm-recent-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    color: var(--text-dim);
}

.adm-recent-dot.is-cyan { color: var(--cyan); }
.adm-recent-dot.is-mint { color: var(--green); }
.adm-recent-dot.is-red { color: var(--red); }
.adm-recent-dot.is-purple { color: var(--purple); }

.adm-recent-row strong {
    font-weight: 600;
    text-transform: capitalize;
}

.adm-recent-row .adm-recent-time {
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.7rem;
}

/* ---------- Section head ---------- */
.adm-tab-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 14px;
}

.adm-tab-head h3 {
    margin-top: 2px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.32rem;
    letter-spacing: -0.01em;
}

/* ---------- Filters ---------- */
#adminPanel .admin-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

#adminPanel .admin-filters .filter-select,
#adminPanel .admin-filters .app-input,
.adm-search {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--adm-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
}

.adm-search {
    flex: 1 1 220px;
    min-width: 178px;
}

#adminPanel .admin-filters .filter-select {
    flex: 0 1 auto;
    min-width: 150px;
}

/* The shared .app-input is width:100%, which would swallow the whole filter row. */
#adminPanel .admin-filters input[type="date"] {
    flex: 0 1 186px;
    width: auto;
    min-width: 150px;
}

.adm-clear-btn,
.adm-ghost-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    min-height: 42px;
    padding: 0 14px !important;
    border: 1px solid var(--adm-line) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0;
    cursor: pointer;
}

@media (hover: hover) {
    .adm-clear-btn:hover,
    .adm-ghost-action:hover {
        border-color: rgba(0, 229, 255, 0.3) !important;
    }
}

/* ---------- Users table ---------- */
#adminPanel .user-table-container {
    margin-top: 0;
    border: 1px solid var(--adm-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.015);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#adminPanel .user-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    background: transparent;
}

#adminPanel .user-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    border-bottom: 1px solid var(--adm-line);
    background: #080808;
    color: #6a6a6a;
    font-family: 'Outfit', sans-serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

#adminPanel .user-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--adm-line-soft);
    font-size: 0.82rem;
    vertical-align: middle;
}

#adminPanel .user-table tbody tr:last-child td {
    border-bottom: none;
}

#adminPanel .user-table tbody tr:hover td {
    background: rgba(0, 229, 255, 0.035);
}

.adm-id {
    color: #5c5c5c;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}

.adm-email {
    color: var(--text-dim);
}

.adm-date {
    color: var(--text-dim);
    white-space: nowrap;
}

.adm-row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
}

#adminPanel .adm-table-empty td {
    padding: 36px 14px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.84rem;
}

.adm-user-link {
    padding: 0;
    border: none;
    background: none;
    color: var(--cyan);
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

@media (hover: hover) {
    .adm-user-link:hover {
        text-decoration: underline;
    }
}

/* Compact table actions */
#adminPanel .btn-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid var(--adm-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.73rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#adminPanel .btn-small.approve {
    color: var(--green);
    border-color: rgba(0, 255, 157, 0.32);
    background: rgba(0, 255, 157, 0.08);
}

#adminPanel .btn-small.block {
    color: var(--red);
    border-color: rgba(255, 59, 59, 0.32);
    background: rgba(255, 59, 59, 0.08);
}

#adminPanel .btn-small.unblock {
    color: var(--green);
    border-color: rgba(0, 255, 157, 0.32);
    background: rgba(0, 255, 157, 0.08);
}

#adminPanel .btn-small.make-admin {
    color: var(--purple);
    border-color: rgba(155, 77, 255, 0.32);
    background: rgba(155, 77, 255, 0.08);
}

#adminPanel .btn-small.remove-admin {
    color: var(--orange);
    border-color: rgba(255, 140, 0, 0.3);
    background: rgba(255, 140, 0, 0.08);
}

#adminPanel .btn-small.extend {
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.07);
}

@media (hover: hover) {
    #adminPanel .btn-small:hover {
        border-color: rgba(255, 255, 255, 0.28);
    }
}

/* ---------- User detail ---------- */
#adminPanel .admin-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 9px 14px;
    border: 1px solid var(--adm-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
}

.adm-user-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px;
    border: 1px solid var(--adm-line);
    border-radius: 16px;
    background:
        radial-gradient(90% 150% at 0% 0%, rgba(0, 229, 255, 0.12), transparent 62%),
        rgba(255, 255, 255, 0.02);
}

.adm-user-ident {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.adm-user-ident h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.28rem;
    letter-spacing: -0.01em;
}

.adm-user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.adm-kpis-detail {
    margin: 12px 0;
}

.adm-zone-list {
    display: grid;
    gap: 10px;
}

.adm-zone-card {
    padding: 16px;
    border: 1px solid var(--adm-line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
}

.adm-zone-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.adm-zone-head h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--cyan);
}

.adm-zone-money {
    display: flex;
    gap: 18px;
}

.adm-zone-money span {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.adm-zone-money em {
    font-style: normal;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.adm-zone-money strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
}

.adm-zone-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--adm-line-soft);
}

.adm-zone-facts div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.adm-zone-facts span {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.adm-zone-facts strong {
    font-size: 0.82rem;
    font-weight: 500;
    color: #d6d6d6;
    overflow-wrap: anywhere;
}

/* ---------- Activity ---------- */
.adm-log-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adm-log-row {
    display: flex;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid var(--adm-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.adm-log-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

.adm-log-icon.is-cyan { color: var(--cyan); background: rgba(0, 229, 255, 0.1); }
.adm-log-icon.is-mint { color: var(--green); background: rgba(0, 255, 157, 0.1); }
.adm-log-icon.is-red { color: var(--red); background: rgba(255, 59, 59, 0.1); }
.adm-log-icon.is-purple { color: var(--purple); background: rgba(155, 77, 255, 0.1); }

.adm-log-body {
    flex: 1;
    min-width: 0;
}

.adm-log-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.adm-log-top strong {
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

.adm-log-top time {
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #5f5f5f;
}

.adm-log-meta {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.adm-log-detail {
    margin-top: 6px;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #8f8f8f;
    overflow-wrap: anywhere;
}

/* ---------- Empty states ---------- */
.adm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 34px 18px;
    border: 1px dashed var(--adm-line);
    border-radius: 14px;
    text-align: center;
    color: var(--text-dim);
}

.adm-empty.is-quiet {
    padding: 26px 16px;
}

.adm-empty svg {
    color: #3f3f3f;
}

.adm-empty strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: #cfcfcf;
}

.adm-empty span {
    max-width: 34ch;
    font-size: 0.78rem;
    line-height: 1.5;
}

/* ---------- Analytics ---------- */
.adm-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.adm-analytics-card {
    min-height: 126px;
}

.adm-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
}

.adm-stat-row > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.adm-stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.adm-stat-row strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.32rem;
    font-variant-numeric: tabular-nums;
}

.adm-stat-row strong em {
    margin-left: 3px;
    font-style: normal;
    font-size: 0.62em;
    color: var(--text-dim);
}

/* ---------- Messages ---------- */
.adm-msg-shell {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    gap: 12px;
    height: clamp(420px, calc(100vh - 500px), 700px);
}

.adm-conversations {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 14px;
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius);
    background: var(--adm-panel);
}

.adm-conversations .app-input {
    min-height: 40px;
    border: 1px solid var(--adm-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    padding: 0 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
}

.adm-conversation-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding-right: 2px;
}

.adm-conversation {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

@media (hover: hover) {
    .adm-conversation:hover {
        border-color: rgba(0, 229, 255, 0.25);
        background: rgba(0, 229, 255, 0.05);
    }
}

.adm-conversation.is-active {
    border-color: rgba(0, 229, 255, 0.38);
    background: rgba(0, 229, 255, 0.08);
}

.adm-conversation .adm-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.adm-conversation-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.adm-conversation-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
}

.adm-conversation-preview {
    font-size: 0.73rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-conversation-time {
    flex: 0 0 auto;
    font-size: 0.67rem;
    color: #5c5c5c;
    white-space: nowrap;
}

.adm-unread-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
}

.adm-chat {
    display: none;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius);
    background: var(--adm-panel);
}

.adm-msg-shell.is-chatting .adm-chat {
    display: flex;
}

.adm-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--adm-line);
    background: rgba(255, 255, 255, 0.02);
}

.adm-chat-ident {
    flex: 1;
    min-width: 0;
}

.adm-chat-ident h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
}

.adm-chat-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.28);
}

.adm-bubble-row {
    display: flex;
}

.adm-bubble-row.is-own {
    justify-content: flex-end;
}

.adm-bubble {
    max-width: min(74%, 520px);
    padding: 10px 13px;
    border: 1px solid var(--adm-line);
    border-radius: 14px;
    background: #161616;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.adm-bubble-row.is-own .adm-bubble {
    border-color: rgba(0, 229, 255, 0.32);
    border-bottom-right-radius: 5px;
    background: rgba(0, 229, 255, 0.14);
}

.adm-bubble-row.is-other .adm-bubble {
    border-bottom-left-radius: 5px;
}

.adm-bubble-time {
    display: block;
    margin-top: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.63rem;
    color: #7a7a7a;
    text-align: right;
}

.adm-chat-empty {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 20px;
    text-align: center;
    color: var(--text-dim);
}

.adm-chat-empty strong {
    color: #cfcfcf;
    font-size: 0.88rem;
}

.adm-chat-empty span {
    font-size: 0.76rem;
}

.adm-composer {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--adm-line);
    background: rgba(0, 0, 0, 0.2);
}

.adm-composer .app-input {
    flex: 1;
    min-height: 44px;
    border: 1px solid var(--adm-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    padding: 0 13px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.86rem;
}

.adm-composer .adm-primary-btn {
    min-width: 96px;
}

.adm-chat-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border: 1px dashed var(--adm-line);
    border-radius: var(--adm-radius);
    text-align: center;
    color: var(--text-dim);
}

.adm-chat-placeholder svg {
    color: #343434;
}

.adm-chat-placeholder strong {
    color: #cfcfcf;
    font-size: 0.92rem;
}

.adm-chat-placeholder span {
    max-width: 30ch;
    font-size: 0.78rem;
    line-height: 1.5;
}

.adm-msg-shell:not(.is-chatting) .adm-chat-placeholder {
    display: flex;
}

/* ---------- Settings ---------- */
.adm-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.adm-switch-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--adm-line-soft);
}

.adm-switch-row > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.adm-switch-row strong {
    font-size: 0.86rem;
    font-weight: 600;
}

.adm-switch-row em {
    font-style: normal;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--text-dim);
}

.adm-switch-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
    margin-top: 2px;
    border: 1px solid var(--adm-line);
    border-radius: 999px;
    background: #141414;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.adm-switch-row input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6a6a6a;
    transition: left 0.2s ease, background 0.2s ease;
}

.adm-switch-row input[type="checkbox"]:checked {
    border-color: rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.2);
}

.adm-switch-row input[type="checkbox"]:checked::after {
    left: 22px;
    background: var(--cyan);
}

.adm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.adm-field label {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.adm-field .app-input {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--adm-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.86rem;
}

.adm-field-hint {
    font-size: 0.71rem;
    color: #5f5f5f;
}

.adm-input-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.adm-input-suffix input {
    width: 100%;
    padding-right: 56px;
}

.adm-input-suffix span {
    position: absolute;
    right: 14px;
    font-size: 0.73rem;
    color: var(--text-dim);
    pointer-events: none;
}

.adm-panel-note {
    margin-bottom: 6px;
    font-size: 0.79rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.adm-inline-status {
    min-height: 18px;
    margin: 6px 0 10px;
    font-size: 0.79rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.adm-inline-status code {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(0, 229, 255, 0.12);
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

.adm-inline-status.is-ok {
    color: var(--green);
}

.adm-inline-status.is-error {
    color: var(--red);
}

.adm-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adm-status-chip {
    flex: 0 0 auto;
    padding: 5px 11px;
    border: 1px solid var(--adm-line);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.adm-status-chip.is-linked {
    color: var(--green);
    border-color: rgba(0, 255, 157, 0.35);
    background: rgba(0, 255, 157, 0.08);
}

.adm-status-chip.is-pending {
    color: var(--yellow);
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.08);
}

.adm-status-chip.is-error {
    color: var(--red);
    border-color: rgba(255, 59, 59, 0.35);
    background: rgba(255, 59, 59, 0.08);
}

.adm-save-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--adm-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.adm-save-bar .adm-meta {
    margin-right: auto;
}

.adm-save-bar .adm-meta.is-ok {
    color: var(--green);
}

.adm-save-bar .adm-meta.is-error {
    color: var(--red);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .adm-overview-grid,
    .adm-analytics-grid,
    .adm-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .adm-span-2 {
        grid-column: auto;
    }

    .adm-msg-shell {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    .adm-conversations {
        min-height: 58vh;
        max-height: 72vh;
    }

    .adm-chat {
        min-height: 60vh;
        max-height: 76vh;
    }

    .adm-chat-placeholder {
        display: none !important;
    }

    .adm-msg-shell.is-chatting .adm-conversations {
        display: none;
    }
}

@media (max-width: 767px) {
    .adm-hero {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
        margin-bottom: 10px;
    }

    .adm-hero-id {
        gap: 12px;
    }

    .adm-title {
        font-size: 1.36rem;
    }

    .adm-sub {
        font-size: 0.8rem;
    }

    .adm-hero-actions {
        width: 100%;
        gap: 8px;
    }

    .adm-hero-actions .adm-primary-btn,
    .adm-hero-actions .adm-ghost-btn {
        flex: 1 1 130px;
        min-height: 42px;
        padding: 9px 14px;
        font-size: 0.8rem;
    }

    /* Totals become a swipeable rail so the tab bar stays above the fold. */
    .adm-kpis {
        display: flex;
        gap: 8px;
        margin-bottom: 10px;
        padding-bottom: 4px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .adm-kpis::-webkit-scrollbar {
        display: none;
    }

    .adm-kpi {
        flex: 0 0 142px;
        padding: 12px 13px 14px;
        scroll-snap-align: start;
    }

    .adm-kpi strong {
        font-size: 1.24rem;
    }

    /* Menu cards collapse into compact list rows on phones. */
    #adminPanel .admin-menu-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    #adminPanel .admin-menu-card {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas:
            "icon title"
            "icon copy";
        align-items: center;
        column-gap: 12px;
        row-gap: 2px;
        min-height: 0;
        padding: 12px 14px;
    }

    #adminPanel .admin-menu-card .menu-icon {
        grid-area: icon;
        align-self: center;
        margin: 0;
    }

    #adminPanel .admin-menu-card h3 {
        grid-area: title;
        font-size: 0.92rem;
    }

    #adminPanel .admin-menu-card p {
        grid-area: copy;
        font-size: 0.73rem;
    }

    #adminPanel .admin-menu-card .adm-card-go {
        display: none;
    }

    .adm-tab-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .adm-tab-head h3 {
        font-size: 1.18rem;
    }

    #adminPanel .adm-tabs .admin-tab {
        padding: 9px 12px;
        font-size: 0.78rem;
    }

    .adm-mix-row {
        grid-template-columns: 86px minmax(0, 1fr) 68px;
    }

    .adm-log-top {
        flex-direction: column;
        gap: 2px;
    }

    .adm-chat-head {
        padding: 10px 12px;
    }

    .adm-bubble {
        max-width: 84%;
    }

    .adm-save-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .adm-save-bar .adm-meta {
        margin-right: 0;
        text-align: center;
    }

    .adm-zone-head {
        flex-direction: column;
    }

    .adm-zone-money {
        gap: 22px;
    }

    .adm-zone-money span {
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .adm-shield {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .adm-avatar-lg {
        width: 48px;
        height: 48px;
    }

    .adm-mix-row {
        grid-template-columns: 76px minmax(0, 1fr) 62px;
        gap: 8px;
    }

    .adm-attention-item .adm-chip {
        display: none;
    }
}

@media (max-width: 359px) {
    .adm-kpi {
        flex-basis: 128px;
    }
}
/* ==========================================================================
   AUTH — SPLIT STAGE
   Sign-in / sign-up lives on a two-pane stage: a living floor preview on the
   left, one calm form on the right. Appended last so it outranks the legacy
   #authSection / .auth-card / .auth-btn rules further up the sheet.
   ========================================================================== */

#authSection {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 40px);
    background:
        radial-gradient(1100px 620px at 12% -10%, rgba(0, 229, 255, 0.10), transparent 62%),
        radial-gradient(900px 560px at 96% 108%, rgba(0, 255, 157, 0.07), transparent 58%),
        #040405;
    overflow: auto;
    overscroll-behavior: contain;
}

#authSection [hidden] {
    display: none !important;
}

.auth-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 26px;
    background: linear-gradient(158deg, #0a0c0f 0%, #060708 58%, #050506 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 50px 140px -70px rgba(0, 229, 255, 0.45),
        0 30px 80px -60px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

/* ---------- Stage (left) ---------- */

.auth-stage {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vw, 30px);
    padding: clamp(24px, 3vw, 42px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(120% 85% at 8% -5%, rgba(0, 229, 255, 0.11), transparent 58%),
        radial-gradient(90% 70% at 98% 104%, rgba(0, 255, 157, 0.06), transparent 55%);
    isolation: isolate;
}

.auth-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(78% 68% at 22% 12%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(78% 68% at 22% 12%, #000 0%, transparent 78%);
    opacity: 0.75;
    pointer-events: none;
}

.auth-stage-top {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: auto;
}

.auth-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    color: #dfe7ee;
}

.auth-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.32);
    box-shadow: 0 0 22px -8px rgba(0, 229, 255, 0.7);
}

.auth-word span {
    color: var(--cyan);
}

.auth-pitch {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 2.9vw, 2.55rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: #f4f8fb;
    max-width: 13ch;
    text-wrap: balance;
}

.auth-pitch-sub {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #8b95a1;
    max-width: 40ch;
}

/* Floor preview */

.auth-floor {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.auth-tile {
    display: grid;
    gap: 5px;
    padding: 11px 12px 10px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.018);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.auth-tile.is-live {
    border-color: rgba(0, 229, 255, 0.3);
    background: linear-gradient(178deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.015));
}

.auth-tile.is-idle {
    opacity: 0.5;
}

.auth-tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.auth-tile-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    color: #7f8b98;
}

.auth-tile-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2b333b;
}

.auth-tile.is-live .auth-tile-dot {
    background: var(--cyan);
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.55);
    animation: authPulse 2.4s ease-out infinite;
}

.auth-tile-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.02rem;
    font-variant-numeric: tabular-nums;
    color: #eef4f8;
    letter-spacing: -0.02em;
}

.auth-tile.is-live .auth-tile-timer {
    color: var(--cyan);
}

.auth-tile.is-idle .auth-tile-timer {
    font-size: 0.82rem;
    color: #9aa4b0;
    letter-spacing: 0.02em;
}

.auth-tile-foot {
    font-size: 0.63rem;
    color: #6f7a86;
    line-height: 1.3;
}

/* ---------- Panel (right) ---------- */

.auth-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 20px;
    padding: clamp(24px, 3vw, 40px);
    background: rgba(4, 5, 6, 0.55);
}

.auth-modes {
    display: flex;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.02);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.auth-modes::-webkit-scrollbar {
    display: none;
}

.auth-mode {
    flex: 1 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #77828e;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) {
    .auth-mode:hover {
        color: #cfd8e1;
        background: rgba(255, 255, 255, 0.035);
    }
}

.auth-mode[aria-selected="true"] {
    color: #eafcff;
    background: rgba(0, 229, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.28);
}

.auth-mode[aria-selected="true"] svg {
    color: var(--cyan);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.auth-form-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 2px;
}

.auth-form-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f2f7fb;
}

.auth-form-head p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #838d99;
    max-width: 42ch;
}

.auth-panel-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 14px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    color: #5f6a76;
}

.auth-panel-foot a {
    color: #6f7a86;
    text-decoration: none;
}

@media (hover: hover) {
    .auth-panel-foot a:hover {
        color: var(--cyan);
    }
}

/* Fields */

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.auth-field label {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    color: #98a3af;
}

.auth-optional {
    font-size: 0.68rem;
    color: #5f6a76;
    font-weight: 400;
}

.auth-control {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.auth-control-icon {
    position: absolute;
    left: 13px;
    color: #4e5965;
    pointer-events: none;
    transition: color 0.18s ease;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 40px;
    background: #050708;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 12px;
    color: #f4f8fb;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-control.has-reveal .auth-input {
    padding-right: 46px;
}

.auth-input::placeholder {
    color: #4c5661;
}

.auth-input:focus {
    outline: none;
    background: #070a0c;
    border-color: rgba(0, 229, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.13);
}

.auth-control:focus-within .auth-control-icon {
    color: rgba(0, 229, 255, 0.85);
}

.auth-input[aria-invalid="true"] {
    border-color: rgba(255, 59, 59, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.1);
}

.auth-reveal {
    position: absolute;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6c7783;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.auth-reveal:hover {
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.05);
}

.auth-reveal:active {
    transform: scale(0.94);
}

.auth-field-error {
    font-size: 0.76rem;
    line-height: 1.45;
    color: #ff9a9a;
    margin: 0;
}

.auth-field-error:not(:empty)::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    margin-right: 7px;
    vertical-align: middle;
}

.auth-hint {
    font-size: 0.7rem;
    line-height: 1.4;
    color: #5f6a76;
}

.auth-alert {
    display: flex;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 59, 59, 0.28);
    background: rgba(255, 59, 59, 0.075);
    color: #ffb8b8;
    font-size: 0.8rem;
    line-height: 1.5;
}

.auth-strength {
    display: flex;
    gap: 5px;
    margin-top: 1px;
}

.auth-strength i {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.09);
    transition: background 0.2s ease;
}

.auth-strength[data-score="1"] i:nth-child(-n + 1) {
    background: var(--red);
}

.auth-strength[data-score="2"] i:nth-child(-n + 2) {
    background: var(--orange);
}

.auth-strength[data-score="3"] i:nth-child(-n + 3) {
    background: var(--yellow);
}

.auth-strength[data-score="4"] i {
    background: var(--green);
}

/* Submit + links */

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 50px;
    margin-top: 3px;
    border: 0;
    border-radius: 12px;
    background: var(--cyan);
    color: #00161a;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.005em;
    cursor: pointer;
    box-shadow: 0 14px 34px -18px rgba(0, 229, 255, 0.85);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

@media (hover: hover) {
    .auth-submit:hover:not(:disabled) {
        filter: brightness(1.06);
        box-shadow: 0 18px 40px -18px rgba(0, 229, 255, 0.95);
    }
}

.auth-submit:active:not(:disabled) {
    transform: translateY(1px) scale(0.995);
}

.auth-submit:disabled {
    cursor: progress;
    filter: saturate(0.8);
    opacity: 0.78;
}

.auth-submit .auth-spinner {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(0, 22, 26, 0.28);
    border-top-color: #00161a;
    animation: authSpin 0.7s linear infinite;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 16px;
}

.auth-links:has(> :only-child) {
    justify-content: flex-start;
}

.auth-link {
    padding: 2px 0;
    border: 0;
    background: none;
    color: #7d8794;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
    transition: color 0.18s ease;
}

@media (hover: hover) {
    .auth-link:hover {
        color: var(--cyan);
    }
}

.auth-link:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.6);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Help panel */

.auth-help {
    gap: 16px;
}

.auth-help-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: authstep;
}

.auth-help-steps li {
    counter-increment: authstep;
    position: relative;
    padding-left: 28px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #9aa5b1;
}

.auth-help-steps li::before {
    content: counter(authstep);
    position: absolute;
    left: 0;
    top: 1px;
    width: 19px;
    height: 19px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    line-height: 17px;
    text-align: center;
    color: #8b96a2;
}

.auth-support {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.24);
    background: rgba(0, 229, 255, 0.055);
    color: #e6fbff;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.auth-support svg {
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-support strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
}

.auth-support small {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #8c97a3;
}

@media (hover: hover) {
    .auth-support:hover {
        border-color: rgba(0, 229, 255, 0.45);
        background: rgba(0, 229, 255, 0.09);
    }
}

/* ---------- Blocked / trial-ended ---------- */

.auth-blocked {
    width: min(560px, 100%);
    padding: clamp(24px, 3vw, 40px);
    border-radius: 22px;
    border: 1px solid rgba(255, 140, 0, 0.4);
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(255, 140, 0, 0.12), transparent 62%),
        #07080a;
    font-family: 'Outfit', sans-serif;
    text-align: center;
}

.auth-blocked.is-blocked {
    border-color: rgba(255, 59, 59, 0.42);
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(255, 59, 59, 0.12), transparent 62%),
        #07080a;
}

.auth-blocked-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 140, 0, 0.45);
    background: rgba(255, 140, 0, 0.12);
    color: var(--orange);
}

.auth-blocked.is-blocked .auth-blocked-icon {
    border-color: rgba(255, 59, 59, 0.45);
    background: rgba(255, 59, 59, 0.12);
    color: var(--red);
}

.auth-blocked h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.auth-blocked-sub {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #a4aeb9;
}

.auth-blocked-reason {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border-left: 3px solid rgba(255, 140, 0, 0.6);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
    line-height: 1.55;
    color: #98a3af;
    text-align: left;
}

.auth-blocked.is-blocked .auth-blocked-reason {
    border-left-color: rgba(255, 59, 59, 0.6);
}

.auth-blocked-steps {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    text-align: left;
}

.auth-blocked-steps li {
    position: relative;
    padding-left: 20px;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #a4aeb9;
}

.auth-blocked-steps li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.8);
}

.auth-blocked-card {
    margin: 0 0 20px;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 140, 0, 0.28);
    background: rgba(255, 140, 0, 0.07);
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #c3cbd4;
}

.auth-blocked-card strong {
    color: #f0f5f9;
}

.auth-blocked-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-blocked-actions .auth-submit {
    text-decoration: none;
}

.auth-blocked-foot {
    margin-top: 18px;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #6f7a86;
}

/* ---------- Motion ---------- */

@keyframes authPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.5);
    }

    70% {
        box-shadow: 0 0 0 7px rgba(0, 229, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    .auth-tile.is-live .auth-tile-dot,
    .auth-submit .auth-spinner {
        animation: none;
    }

    .auth-tile,
    .auth-input,
    .auth-mode,
    .auth-submit {
        transition: none;
    }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-stage {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 20px 22px 18px;
        gap: 14px;
    }

    .auth-stage-top {
        margin-bottom: 0;
    }

    .auth-stage::before {
        mask-image: radial-gradient(80% 100% at 20% 0%, #000 0%, transparent 82%);
        -webkit-mask-image: radial-gradient(80% 100% at 20% 0%, #000 0%, transparent 82%);
    }

    .auth-stage-top {
        gap: 9px;
    }

    .auth-pitch {
        font-size: 1.55rem;
        max-width: 22ch;
    }

    .auth-pitch-sub {
        display: none;
    }

    .auth-floor {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .auth-tile {
        padding: 9px 10px;
    }

    .auth-tile-foot {
        display: none;
    }

    .auth-floor .auth-tile:nth-child(n + 4) {
        display: none;
    }

    .auth-panel {
        padding: 22px;
        gap: 16px;
    }
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
    #authSection {
        align-items: flex-start;
        padding: 0;
        background: #040405;
    }

    .auth-shell {
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .auth-stage {
        padding: calc(16px + env(safe-area-inset-top)) 18px 16px;
    }

    .auth-wordmark {
        font-size: 0.72rem;
    }

    .auth-mark {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .auth-pitch {
        font-size: 1.32rem;
        max-width: 26ch;
    }

    .auth-floor {
        display: flex;
        gap: 7px;
        overflow: hidden;
    }

    .auth-tile {
        flex: 1 1 0;
        min-width: 0;
    }

    .auth-tile-id {
        font-size: 0.55rem;
    }

    .auth-tile-timer {
        font-size: 0.86rem;
    }

    .auth-panel {
        padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
        gap: 14px;
    }

    .auth-form-head h2 {
        font-size: 1.3rem;
    }

    .auth-input {
        height: 46px;
    }

    .auth-submit {
        height: 48px;
    }
}

@media (max-width: 419px) {
    .auth-modes {
        gap: 2px;
        padding: 3px;
    }

    .auth-mode {
        padding: 8px 9px;
        font-size: 0.74rem;
        gap: 5px;
    }

    .auth-mode svg {
        width: 13px;
        height: 13px;
    }

    .auth-links {
        gap: 8px 12px;
    }

    .auth-tile-foot {
        display: none;
    }
}

/* ========== OWNER KIOSK DISPLAY SWITCHES ========== */
/* Hide a whole kiosk block without touching any inline style it may carry. */
.kiosk-display-off {
    display: none !important;
}

.kiosk-display-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.kiosk-display-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.kiosk-display-row:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.04);
}

.kiosk-display-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.kiosk-display-copy strong {
    font-size: 0.95rem;
    color: var(--text-main, #fff);
    font-weight: 600;
}

.kiosk-display-copy em {
    font-style: normal;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-dim, #8a8a8a);
}

.kiosk-display-status {
    min-height: 18px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--green, #00ff9d);
}

.kiosk-display-status.is-error {
    color: var(--red, #ff3b3b);
}

/* Two-column stats when the owner hides the session count. */
#kioskMode .station-stats.is-two,
#dashboard .station-stats.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 520px) {
    .kiosk-display-row {
        align-items: flex-start;
        gap: 12px;
    }
}

/* Zone Summary: when the Sessions stat is hidden, stack the remaining stats. */
#kioskMode .zone-summary-section .shift-stats.shift-stats-single {
    grid-template-columns: minmax(0, 1fr);
}
