/* ============================================================
   Supermarket POS - Custom Styles
   ============================================================ */

:root {
    --primary: #4e73df;
    --primary-dark: #2e59d9;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --sidebar-bg: #1e2a3a;
    --sidebar-hover: #2c3e57;
    --sidebar-active: #4e73df;
    --body-bg: #f0f2f5;
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--body-bg);
    color: #333;
    overflow-x: hidden;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    animation: fadeInUp 0.5s ease;
}

.login-card .logo-area {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-card .logo-area i {
    font-size: 3rem;
    color: var(--primary);
}

.login-card .logo-area h4 {
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--dark);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1040;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}

.sidebar .brand {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
}

.sidebar .brand i {
    font-size: 1.6rem;
    color: #fff;
    margin-right: 0.7rem;
}

.sidebar .brand span {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.sidebar .nav-section {
    padding: 0.6rem 0;
}

.sidebar .nav-section .nav-label {
    padding: 0.5rem 1.2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.2rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
    border-left-color: var(--primary);
}

.sidebar .nav-link.active {
    color: #fff;
    background: var(--sidebar-hover);
    border-left-color: var(--sidebar-active);
}

.sidebar .nav-link i {
    width: 22px;
    margin-right: 0.8rem;
    font-size: 1rem;
    text-align: center;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    margin-left: 260px;
    transition: var(--transition);
    min-height: 100vh;
}

/* TOP BAR */
.topbar {
    background: #fff;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.topbar .toggle-sidebar {
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--dark);
    border: none;
    background: none;
    padding: 0.3rem 0.5rem;
    border-radius: 0.3rem;
}

.topbar .toggle-sidebar:hover {
    background: var(--light);
}

.topbar .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar .user-info .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.content-wrapper {
    padding: 1.5rem;
}

/* ============================================================
   DASHBOARD CARDS
   ============================================================ */
.stat-card {
    border: none;
    border-radius: 0.8rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.12);
}

.stat-card .card-body {
    padding: 1.3rem;
}

.stat-card .stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
    font-weight: 600;
}

/* Color classes for stat icons */
.bg-gradient-primary { background: linear-gradient(135deg, #4e73df, #224abe); }
.bg-gradient-success { background: linear-gradient(135deg, #1cc88a, #13855c); }
.bg-gradient-info    { background: linear-gradient(135deg, #36b9cc, #258391); }
.bg-gradient-warning { background: linear-gradient(135deg, #f6c23e, #dda20a); }
.bg-gradient-danger  { background: linear-gradient(135deg, #e74a3b, #be2617); }
.bg-gradient-purple  { background: linear-gradient(135deg, #6f42c1, #4e2d8c); }
.bg-gradient-indigo  { background: linear-gradient(135deg, #4f46e5, #3730a3); }
.bg-gradient-teal    { background: linear-gradient(135deg, #20c997, #0f7b6c); }
.bg-gradient-orange  { background: linear-gradient(135deg, #fd7e14, #c96309); }
.bg-gradient-dark    { background: linear-gradient(135deg, #5a5c69, #373840); }

/* ============================================================
   CARD GENERAL
   ============================================================ */
.custom-card {
    border: none;
    border-radius: 0.8rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.custom-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
    border-radius: 0.8rem 0.8rem 0 0 !important;
    font-weight: 700;
    color: var(--dark);
}

.custom-card .card-body {
    padding: 1.25rem;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive {
    border-radius: 0.5rem;
}

.table thead th {
    background: var(--light);
    border-bottom: 2px solid #dee2e6;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    white-space: nowrap;
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { border-radius: 0.4rem; font-weight: 600; font-size: 0.85rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.78rem; }
.btn-xs { padding: 0.2rem 0.45rem; font-size: 0.72rem; }

.action-btns .btn { margin: 0 2px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-header {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff;
    border-radius: 0;
}

.modal-header .close,
.modal-header .btn-close { color: #fff; opacity: 1; }

.modal-content { border: none; border-radius: 0.6rem; overflow: hidden; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-control, .form-select, .custom-select {
    border-radius: 0.4rem;
    border-color: #d1d3e2;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
}

.form-control:focus, .form-select:focus, .custom-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
}

label { font-weight: 600; font-size: 0.85rem; color: var(--dark); margin-bottom: 0.3rem; }

/* ============================================================
   SALE PAGE
   ============================================================ */
.sale-items-table th,
.sale-items-table td {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

.sale-items-table .form-control {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.sale-summary {
    background: var(--light);
    border-radius: 0.5rem;
    padding: 1rem;
}

.sale-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.sale-summary .summary-row.total {
    border-top: 2px solid var(--primary);
    padding-top: 0.6rem;
    margin-top: 0.3rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.sidebar-collapsed .sidebar {
    margin-left: -260px;
}

.sidebar-collapsed .main-content {
    margin-left: 0;
}

@media (max-width: 992px) {
    .sidebar {
        margin-left: -260px;
    }
    .sidebar.show {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .content-wrapper {
        padding: 0.8rem;
    }
    .stat-card .stat-value {
        font-size: 1.4rem;
    }
    .topbar {
        padding: 0 0.8rem;
    }
    .page-title {
        font-size: 1.05rem;
    }
    .card-header {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    .btn-xs {
        padding: 0.15rem 0.35rem;
        font-size: 0.68rem;
    }
    /* Stack action buttons vertically on very small screens */
    #recentBillsTable .btn-xs {
        margin-bottom: 2px;
    }
    /* Flatpickr inputs on mobile */
    .flatpickr-input {
        font-size: 0.85rem;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gradient {
    background: linear-gradient(135deg, #4e73df, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-pill { border-radius: 50rem; }

/* DataTable custom */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.3rem !important;
    margin: 0 2px;
}

div.dataTables_wrapper div.dataTables_length select {
    border-radius: 0.3rem;
    min-width: 60px;
    padding-right: 2rem;
}

/* Fix DataTables sorting icons overlapping header text */
table.dataTable thead th,
table.dataTable thead td {
    padding-right: 26px !important;
    position: relative;
}

table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    position: absolute;
    right: 8px;
    font-size: 0.7rem;
    opacity: 0.3;
}

table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:after {
    opacity: 1;
}

/* Ensure DataTables filter/length row doesn't overlap */
div.dataTables_wrapper div.dataTables_filter {
    margin-bottom: 0.5rem;
}
div.dataTables_wrapper div.dataTables_length {
    margin-bottom: 0.5rem;
}

/* Fix form-select inside DataTables (Show entries dropdown) */
div.dataTables_wrapper select.form-select {
    display: inline-block;
    width: auto;
    padding-right: 2rem;
}

/* Scroll bar styling */
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 5px; }

/* Page title */
.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title i {
    color: var(--primary);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1035;
}

@media (max-width: 992px) {
    .sidebar.show ~ .sidebar-overlay {
        display: block;
    }
}

/* No data illustration */
.no-data {
    text-align: center;
    padding: 2rem;
    color: var(--secondary);
}
.no-data i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Select2 size match for form-control-sm */
.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.2rem 0.5rem;
    font-size: 0.875rem;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding: 0;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    margin-top: 0.15rem;
}

/* ============================================================
   TOPBAR DATE/TIME & THEME TOGGLE
   ============================================================ */
.topbar-datetime {
    line-height: 1.2;
}
.topbar-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark);
}
.topbar-time {
    font-size: 0.72rem;
    color: var(--secondary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.theme-toggle {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    font-size: 1rem;
    transition: var(--transition);
}
.theme-toggle:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
    --body-bg: #1a1d23;
    --dark: #c4c7cf;
    --secondary: #8e929b;
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(0, 0, 0, 0.3);
}

[data-theme="dark"],
[data-theme="dark"] body,
body[data-theme="dark"] {
    background: #1a1d23 !important;
    background-color: #1a1d23 !important;
    color: #d1d5db;
}

[data-theme="dark"] .topbar {
    background: #22252d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme="dark"] .topbar .toggle-sidebar {
    color: #c4c7cf;
}
[data-theme="dark"] .topbar .toggle-sidebar:hover {
    background: #2d3039;
}

[data-theme="dark"] .topbar-date {
    color: #d1d5db;
}
[data-theme="dark"] .topbar-time {
    color: #8e929b;
}

[data-theme="dark"] .card,
[data-theme="dark"] .custom-card {
    background: #22252d;
    border-color: #2d3039;
    color: #d1d5db;
}

[data-theme="dark"] .card-header {
    background: #282b33 !important;
    border-bottom-color: #2d3039;
    color: #d1d5db;
}

[data-theme="dark"] .table {
    color: #d1d5db;
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255,255,255,0.04);
    --bs-table-striped-bg: rgba(255,255,255,0.02);
}

[data-theme="dark"] .table thead th {
    background: #282b33;
    color: #9ca3af;
    border-bottom-color: #3a3d47;
}

[data-theme="dark"] .table td {
    border-bottom-color: #2d3039;
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

[data-theme="dark"] .modal-content {
    background: #22252d;
    border-color: #2d3039;
    color: #d1d5db;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #2d3039;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #2d3039;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #1a1d23;
    border-color: #3a3d47;
    color: #d1d5db;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: #1a1d23;
    border-color: var(--primary);
    color: #d1d5db;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: #6b7280;
}

[data-theme="dark"] .form-label {
    color: #9ca3af;
}

[data-theme="dark"] .input-group-text {
    background: #282b33;
    border-color: #3a3d47;
    color: #9ca3af;
}

[data-theme="dark"] .dropdown-menu {
    background: #22252d;
    border-color: #2d3039;
}

[data-theme="dark"] .dropdown-item {
    color: #d1d5db;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #2d3039;
    color: #fff;
}

[data-theme="dark"] .dropdown-divider {
    border-top-color: #2d3039;
}

[data-theme="dark"] .page-title {
    color: #d1d5db;
}

[data-theme="dark"] .text-muted {
    color: #8e929b !important;
}

[data-theme="dark"] .stat-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .alert-info {
    background: rgba(54, 185, 204, 0.15);
    border-color: rgba(54, 185, 204, 0.3);
    color: #67d6e8;
}

[data-theme="dark"] .alert-danger {
    background: rgba(231, 74, 59, 0.15);
    border-color: rgba(231, 74, 59, 0.3);
    color: #f1928b;
}

[data-theme="dark"] .btn-outline-secondary {
    color: #9ca3af;
    border-color: #3a3d47;
}

[data-theme="dark"] .user-info .text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] .sidebar {
    background: #13161b;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .sidebar .brand {
    border-bottom-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .content-wrapper {
    background: #1a1d23;
}

/* DataTables dark mode */
[data-theme="dark"] .dataTables_wrapper .dataTables_length label,
[data-theme="dark"] .dataTables_wrapper .dataTables_filter label,
[data-theme="dark"] .dataTables_wrapper .dataTables_info,
[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #9ca3af !important;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #2d3039 !important;
    border-color: #3a3d47 !important;
    color: #fff !important;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_length select,
[data-theme="dark"] .dataTables_wrapper .dataTables_filter input {
    background: #1a1d23;
    border-color: #3a3d47;
    color: #d1d5db;
}

/* Select2 dark mode */
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
    background: #1a1d23;
    border-color: #3a3d47;
    color: #d1d5db;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
    background: #22252d;
    border-color: #3a3d47;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option {
    color: #d1d5db;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: var(--primary);
    color: #fff;
}

/* SweetAlert2 dark mode */
[data-theme="dark"] .swal2-popup {
    background: #22252d;
    color: #d1d5db;
}

[data-theme="dark"] .swal2-title {
    color: #d1d5db;
}

[data-theme="dark"] .swal2-html-container {
    color: #9ca3af;
}

[data-theme="dark"] .swal2-input,
[data-theme="dark"] .swal2-textarea {
    background: #1a1d23;
    border-color: #3a3d47;
    color: #d1d5db;
}

/* Toastr dark mode */
[data-theme="dark"] .toast {
    background: #22252d !important;
}

/* ============================================================
   Token Orders — Mobile-First 3-Screen POS UI
   ============================================================ */

/* ---- Top Bar ---- */
.tk-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    min-height: 56px;
}
.tk-topbar-left, .tk-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tk-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s;
}
.tk-back-btn:hover { background: rgba(255,255,255,0.25); color: #fff; }
.tk-token-badge {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    letter-spacing: 0.3px;
}
.tk-token-badge.tk-token-active {
    background: #28a745;
    animation: tk-pulse 2s infinite;
}
@keyframes tk-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40,167,69,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(40,167,69,0); }
}
.tk-total-display {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.tk-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.tk-icon-btn:hover { background: rgba(255,255,255,0.25); }
.tk-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74a3b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Tab Bar ---- */
.tk-tabs {
    display: flex;
    background: #f4f6fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 56px;
    z-index: 1035;
}
.tk-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 700;
    color: #6c757d;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.tk-tab i { margin-right: 6px; }
.tk-tab.active { color: #1e3a5f; }
.tk-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 3px;
    background: #4e73df;
    border-radius: 3px 3px 0 0;
}

/* ---- Screens ---- */
.tk-screen {
    padding: 16px;
    padding-bottom: 100px;
    min-height: calc(100vh - 56px - 47px);
}
.tk-screen-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* ---- Token Cards Grid ---- */
.tk-tokens-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.tk-token-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-left: 4px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s;
}
.tk-token-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}
.tk-token-card:active { transform: scale(0.97); }

/* Status color coding */
.tk-status-card-open { border-left-color: #ffc107; }
.tk-status-card-open:hover { box-shadow: 0 4px 18px rgba(255,193,7,0.2); }
.tk-status-card-ready { border-left-color: #17a2b8; }
.tk-status-card-ready:hover { box-shadow: 0 4px 18px rgba(23,162,184,0.2); }
.tk-status-card-closed { border-left-color: #28a745; cursor: default; }
.tk-status-card-closed:hover { box-shadow: 0 4px 18px rgba(40,167,69,0.2); transform: none; }

.tk-token-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.tk-token-card-no {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e3a5f;
}
.tk-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tk-dot-open { background: #ffc107; box-shadow: 0 0 6px rgba(255,193,7,0.5); }
.tk-dot-ready { background: #17a2b8; box-shadow: 0 0 6px rgba(23,162,184,0.5); }
.tk-dot-closed { background: #28a745; box-shadow: 0 0 6px rgba(40,167,69,0.5); }

.tk-token-card-customer {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 4px;
}
.tk-token-card-customer i { margin-right: 4px; }

.tk-token-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #6c757d;
}
.tk-token-card-total {
    font-weight: 700;
    color: #28a745;
    font-size: 1rem;
}
.tk-token-card-time {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 4px;
}

/* Closed token action buttons */
.tk-token-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.tk-action-btn {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, transform 0.1s;
}
.tk-action-btn:active { transform: scale(0.95); }
.tk-view-btn { background: #e3f2fd; color: #1565c0; }
.tk-view-btn:hover { background: #bbdefb; }
.tk-reopen-btn { background: #fff3e0; color: #e65100; }
.tk-reopen-btn:hover { background: #ffe0b2; }

/* Status badge (used in view modal) */
.tk-status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.3px;
}
.tk-status-open { background: #fff3cd; color: #856404; }
.tk-status-ready { background: #d1ecf1; color: #0c5460; }
.tk-status-closed { background: #d4edda; color: #155724; }

/* ---- Floating Action Button ---- */
.tk-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(40,167,69,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tk-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(40,167,69,0.45); }
.tk-fab:active { transform: scale(0.95); }

/* ---- Empty State ---- */
.tk-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 16px;
    color: #adb5bd;
    font-size: 0.9rem;
    grid-column: 1 / -1;
}
.tk-empty-state i { font-size: 2.5rem; }
.tk-empty-state small { font-size: 0.8rem; }

/* ---- Order Screen: Search ---- */
.tk-search-wrap {
    position: relative;
    margin-bottom: 14px;
    padding: 16px 16px 0;
}
.tk-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 0 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 2px solid #e9ecef;
    transition: border-color 0.2s;
}
.tk-search-box:focus-within { border-color: #4e73df; }
.tk-search-box i { color: #adb5bd; font-size: 1rem; }
.tk-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 12px;
    font-size: 1rem;
    background: transparent;
}
.tk-search-results {
    display: none;
    position: absolute;
    left: 16px; right: 16px; top: 100%;
    z-index: 1050;
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 260px;
    overflow-y: auto;
}
.tk-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.1s;
}
.tk-search-item:last-child { border-bottom: none; }
.tk-search-item:hover { background: #f0f7ff; }
.tk-search-item.disabled { cursor: default; color: #adb5bd; justify-content: center; }
.tk-search-price { font-weight: 700; color: #28a745; }

/* ---- Items Grid ---- */
.tk-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 180px;
}
.tk-item-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 14px 10px;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(.4,0,.2,1), box-shadow 0.15s, background 0.15s, border-color 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    position: relative;
    overflow: hidden;
}
.tk-item-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4e73df, #36b9cc);
    opacity: 0;
    transition: opacity 0.15s;
}
.tk-item-btn:hover::before { opacity: 1; }
.tk-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.tk-item-btn:active,
.tk-item-btn-pressed {
    transform: scale(0.94);
    background: #e8f5e9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.tk-item-btn-pressed::before { opacity: 1; background: linear-gradient(90deg, #28a745, #20c997); }

/* ---- In-Cart Active State ---- */
.tk-item-in-cart {
    background: #e8f5e9;
    border-color: #28a745;
    box-shadow: 0 2px 12px rgba(40,167,69,0.18);
}
.tk-item-in-cart::before { opacity: 1; background: linear-gradient(90deg, #28a745, #20c997); }
.tk-item-in-cart .tk-item-price { color: #1b7a34; }

/* ---- Quantity Badge ---- */
.tk-qty-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    border-radius: 0 14px 0 10px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(40,167,69,0.3);
    animation: tkBadgePop 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes tkBadgePop {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ---- Tap Bounce Animation ---- */
@keyframes tkBounce {
    0% { transform: scale(1); }
    30% { transform: scale(0.92); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.tk-item-bounce { animation: tkBounce 0.4s cubic-bezier(.4,0,.2,1); }

/* ---- Long Press Shrink Animation ---- */
@keyframes tkShrink {
    0% { transform: scale(1); }
    50% { transform: scale(0.88); }
    100% { transform: scale(1); }
}
.tk-item-shrink { animation: tkShrink 0.3s ease; }

/* ---- Cart Hint in Bottom Bar ---- */
.tk-cart-hint {
    color: #4e73df;
    font-weight: 600;
    font-size: 0.72rem;
    text-decoration: underline;
    text-decoration-style: dotted;
}
.tk-bottom-left { cursor: pointer; }
.tk-item-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    line-height: 1.25;
    margin-bottom: 4px;
    word-break: break-word;
}
.tk-item-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: #28a745;
}

/* ---- Slide-up Cart Panel ---- */
.tk-cart-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1055;
    opacity: 0;
    transition: opacity 0.3s;
}
.tk-cart-overlay-visible { display: block; opacity: 1; }

.tk-cart-panel {
    position: fixed;
    bottom: 72px;
    left: 0; right: 0;
    z-index: 1060;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    transform: translateY(calc(100% - 56px));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 65vh;
    display: flex;
    flex-direction: column;
}
.tk-cart-panel.tk-cart-expanded { transform: translateY(0); }

.tk-cart-handle {
    padding: 10px 20px 8px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}
.tk-cart-handle-bar {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 4px;
    margin: 0 auto 10px;
}
.tk-cart-summary-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #495057;
}
.tk-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 16px;
}
.tk-cart-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tk-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 12px;
    gap: 10px;
}
.tk-cart-item-info { flex: 1; min-width: 0; }
.tk-cart-item-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tk-cart-item-price {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 2px;
}
.tk-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.tk-qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
}
.tk-qty-btn:active { transform: scale(0.9); }
.tk-qty-minus { background: #fee2e2; color: #dc3545; }
.tk-qty-minus:hover { background: #fecaca; }
.tk-qty-plus { background: #d1fae5; color: #28a745; }
.tk-qty-plus:hover { background: #a7f3d0; }
.tk-qty-val {
    font-weight: 800;
    font-size: 1rem;
    min-width: 28px;
    text-align: center;
    color: #2c3e50;
}
.tk-remove-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #adb5bd;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}
.tk-remove-btn:hover { color: #dc3545; background: #fee2e2; }

/* ---- Payment Pills ---- */
.tk-cart-payment {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}
.tk-cart-payment label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 8px;
    display: block;
}
.tk-payment-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tk-pill {
    padding: 8px 18px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s;
}
.tk-pill:hover { border-color: #4e73df; color: #4e73df; }
.tk-pill.active { background: #4e73df; border-color: #4e73df; color: #fff; }

/* ---- Bottom Sticky Bar ---- */
.tk-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
    min-height: 72px;
}
.tk-bottom-left { display: flex; flex-direction: column; }
.tk-bottom-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1.1;
}
.tk-bottom-count {
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 600;
}
.tk-pay-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(40,167,69,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.tk-pay-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(40,167,69,0.4); }
.tk-pay-btn:active { transform: scale(0.97); }
.tk-pay-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ---- View/Audit Modal ---- */
.tk-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1080;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tk-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,0.2);
    animation: tk-modal-in 0.25s ease;
}
@keyframes tk-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.tk-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #e9ecef;
}
.tk-modal-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a5f;
}
.tk-modal-close {
    border: none;
    background: #f0f0f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.tk-modal-close:hover { background: #e0e0e0; }
.tk-modal-body { padding: 16px 20px 20px; }
.tk-view-info { margin-bottom: 16px; }
.tk-view-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
}
.tk-view-row span:first-child { color: #6c757d; }
.tk-view-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 8px;
}
.tk-view-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}
.tk-view-total {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a5f;
    padding: 12px 0 4px;
    border-top: 2px solid #e9ecef;
    margin-top: 8px;
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
    .tk-items-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .tk-tokens-grid { grid-template-columns: repeat(3, 1fr); }
    .tk-cart-panel {
        max-width: 480px;
        left: auto; right: 16px;
        border-radius: 24px 24px 0 0;
    }
    .tk-screen { padding: 20px 32px 100px; }
}
@media (min-width: 1024px) {
    .tk-items-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .tk-tokens-grid { grid-template-columns: repeat(4, 1fr); }
    .tk-item-btn { min-height: 96px; }
    .tk-screen { padding: 24px 40px 100px; }
}
@media (min-width: 1400px) {
    .tk-items-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---- Dark Mode ---- */
[data-theme="dark"] .tk-topbar { background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 100%); }
[data-theme="dark"] .tk-tabs { background: #12151a; border-bottom-color: #2d3039; }
[data-theme="dark"] .tk-tab { color: #888; }
[data-theme="dark"] .tk-tab.active { color: #e0e0e0; }
[data-theme="dark"] .tk-token-card {
    background: #1e222a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
[data-theme="dark"] .tk-token-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.3); }
[data-theme="dark"] .tk-token-card-no { color: #90b4e8; }
[data-theme="dark"] .tk-token-card-customer { color: #888; }
[data-theme="dark"] .tk-token-card-actions { border-top-color: #2d3039; }
[data-theme="dark"] .tk-view-btn { background: #1a2940; color: #64b5f6; }
[data-theme="dark"] .tk-reopen-btn { background: #3a2a10; color: #ffb74d; }
[data-theme="dark"] .tk-search-box { background: #1e222a; border-color: #2d3039; }
[data-theme="dark"] .tk-search-box input { color: #e0e0e0; }
[data-theme="dark"] .tk-search-results { background: #1e222a; }
[data-theme="dark"] .tk-search-item { border-bottom-color: #2d3039; }
[data-theme="dark"] .tk-search-item:hover { background: #262a33; }
[data-theme="dark"] .tk-item-btn { background: #1e222a; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
[data-theme="dark"] .tk-item-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
[data-theme="dark"] .tk-item-btn:active,
[data-theme="dark"] .tk-item-btn-pressed { background: #1a3a2a; }
[data-theme="dark"] .tk-item-in-cart { background: #1a3a2a; border-color: #28a745; box-shadow: 0 2px 12px rgba(40,167,69,0.25); }
[data-theme="dark"] .tk-item-name { color: #e0e0e0; }
[data-theme="dark"] .tk-cart-panel { background: #1a1d24; box-shadow: 0 -4px 24px rgba(0,0,0,0.3); }
[data-theme="dark"] .tk-cart-handle-bar { background: #444; }
[data-theme="dark"] .tk-cart-summary-mini { color: #ccc; }
[data-theme="dark"] .tk-cart-item { background: #22252d; }
[data-theme="dark"] .tk-cart-item-name { color: #e0e0e0; }
[data-theme="dark"] .tk-cart-item-price { color: #888; }
[data-theme="dark"] .tk-qty-val { color: #e0e0e0; }
[data-theme="dark"] .tk-bottom-bar { background: #1a1d24; border-top-color: #2d3039; }
[data-theme="dark"] .tk-bottom-total { color: #e0e0e0; }
[data-theme="dark"] .tk-pill { background: #22252d; border-color: #2d3039; color: #ccc; }
[data-theme="dark"] .tk-pill.active { background: #4e73df; border-color: #4e73df; color: #fff; }
[data-theme="dark"] .tk-cart-payment { border-top-color: #2d3039; }
[data-theme="dark"] .tk-remove-btn { color: #666; }
[data-theme="dark"] .tk-remove-btn:hover { color: #dc3545; background: #3a2020; }
[data-theme="dark"] .tk-modal { background: #1a1d24; }
[data-theme="dark"] .tk-modal-header { border-bottom-color: #2d3039; }
[data-theme="dark"] .tk-modal-header h5 { color: #e0e0e0; }
[data-theme="dark"] .tk-modal-close { background: #22252d; color: #ccc; }
[data-theme="dark"] .tk-view-row { border-bottom-color: #2d3039; }
[data-theme="dark"] .tk-view-item { background: #22252d; }
[data-theme="dark"] .tk-view-total { color: #e0e0e0; border-top-color: #2d3039; }
[data-theme="dark"] .tk-fab { box-shadow: 0 4px 20px rgba(40,167,69,0.45); }

/* ---- Waiting Time Badges ---- */
.tk-wait-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.4;
}
.tk-wait-green { background: #d1fae5; color: #065f46; }
.tk-wait-yellow { background: #fef3c7; color: #92400e; }
.tk-wait-red { background: #fee2e2; color: #991b1b; }

/* ---- Closed Token Waiting Time Row ---- */
.tk-closed-wait {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #6c757d;
}
.tk-closed-wait .fas { font-size: 0.7rem; }
.tk-wait-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 1px 6px;
    border-radius: 6px;
}
[data-theme="dark"] .tk-closed-wait { color: #888; }
[data-theme="dark"] .tk-wait-green { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .tk-wait-yellow { background: #78350f; color: #fcd34d; }
[data-theme="dark"] .tk-wait-red { background: #7f1d1d; color: #fca5a5; }

/* Blink animation for urgent tokens */
@keyframes tkBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.tk-blink { animation: tkBlink 1.2s ease-in-out infinite; }

/* Urgent token card highlight */
.tk-wait-urgent {
    box-shadow: 0 0 0 2px #dc3545, 0 4px 16px rgba(220,53,69,0.2) !important;
}
.tk-wait-urgent .tk-token-card-time { color: #dc3545; }

