/* ============================================
   QR PAY — Premium POS Theme v2
   Matching the new landing page aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color palette — deep dark theme */
    --bg-primary: #060a13;
    --bg-secondary: #0c1120;
    --bg-card: #111827;
    --bg-card-hover: #162036;
    --bg-input: #0c1120;
    --bg-input-focus: #0f1527;
    --bg-tertiary: #1a2332;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-focus: #6366f1;

    /* Accent colors */
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --accent-subtle: rgba(99, 102, 241, 0.08);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.25);
    --accent-red: #ef4444;
    --accent-amber: #f59e0b;
    --accent-pink: #ec4899;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;

    /* Spacing */
    --nav-height: 60px;
    --radius: 14px;
    --radius-lg: 20px;

    /* Transitions */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Autofill fix — uses CSS variable so light/dark both work */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-primary);
}

body.qrpay-body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- Background effects ---- */
.app-bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.app-bg-blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.06);
    top: -200px;
    left: -200px;
    animation: blobDrift 30s infinite ease-in-out alternate;
}

.app-bg-blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.04);
    bottom: -150px;
    right: -150px;
    animation: blobDrift 25s infinite ease-in-out alternate-reverse;
}

@keyframes blobDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -30px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* ---- Navigation ---- */
.qrpay-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 1.5rem;
    background: rgba(6, 10, 19, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-subtle);
    border-radius: 10px;
}

.brand-logo {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.brand-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-subtle);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.locale-select {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.locale-select:hover {
    border-color: var(--border-hover);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.business-badge {
    font-size: 0.7rem;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: inherit;
    transition: var(--transition);
}

.logout-btn:hover {
    color: var(--accent-red);
}

.logout-icon {
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: middle;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.locale-form {
    display: inline;
}

.inline {
    display: inline;
}

/* ---- Nav Icon Links (Settings, Staff) ---- */
.nav-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    background: transparent;
}

.nav-icon-link:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: scale(1.05);
}

.nav-icon-link.active {
    background: var(--accent-subtle);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ---- Floating Mode Toggle ---- */
.floating-mode-toggle {
    position: fixed;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
}

/* ---- Floating Staff Logout (right side, orange) ---- */
.floating-staff-logout {
    position: fixed;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
}

.floating-staff-logout-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.95));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(245, 158, 11, 0.6);
    border-radius: 20px;
    padding: 0.75rem 0.6rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 158, 11, 0.2);
}

.floating-staff-logout-btn:hover {
    border-color: rgba(245, 158, 11, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(245, 158, 11, 0.4);
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(245, 158, 11, 1), rgba(217, 119, 6, 1));
}

.floating-staff-logout-icon {
    font-size: 1.2rem;
    display: block;
    filter: brightness(0) invert(1);
}

.floating-staff-logout-text {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    white-space: nowrap;
}

.floating-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(6, 10, 19, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.65rem 0.6rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.floating-toggle-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
    transform: scale(1.05);
}

.floating-toggle-btn.simple {
    border-color: rgba(16, 185, 129, 0.2);
}

.floating-toggle-btn.advanced {
    border-color: rgba(99, 102, 241, 0.2);
}

.floating-toggle-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.floating-toggle-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.5rem;
    border-radius: 14px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all var(--transition);
    min-width: 56px;
}

.floating-toggle-label.current {
    color: white;
}

.floating-toggle-btn.simple .floating-toggle-label.current {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    box-shadow: 0 4px 12px var(--accent-green-glow);
}

.floating-toggle-btn.advanced .floating-toggle-label.current {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.floating-toggle-label.other {
    color: var(--text-muted);
}

.floating-toggle-label.other:hover {
    color: var(--text-secondary);
}

.floating-toggle-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.floating-toggle-divider {
    width: 24px;
    height: 1px;
    background: var(--border);
    margin: 0.15rem 0;
}

/* ---- Mobile Inline Nav Controls (mode toggle + staff logout in top bar) ---- */
.nav-mobile-inline {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-mobile-owner-tools {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.nav-mobile-owner-tool-form {
    margin: 0;
}

.nav-mobile-owner-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-mobile-owner-tool:not(.nav-mobile-owner-logout) {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.03em;
}

.nav-mobile-owner-tool:not(.nav-mobile-owner-logout):hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.nav-mobile-owner-tool:not(.nav-mobile-owner-logout):active {
    transform: scale(0.96);
}

.nav-mobile-owner-logout {
    color: var(--accent-red);
}

.nav-mobile-owner-logout .logout-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.nav-mobile-owner-logout:active {
    transform: scale(0.96);
}

.nav-inline-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-inline-mode-btn.simple {
    border-color: rgba(16, 185, 129, 0.3);
}

.nav-inline-mode-btn.advanced {
    border-color: rgba(99, 102, 241, 0.3);
}

.nav-inline-mode-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.nav-inline-mode-other {
    opacity: 0.4;
}

.nav-inline-staff-btn {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.85), rgba(217, 119, 6, 0.9));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 0.4rem 0.55rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    color: white;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

/* ---- Main Content ---- */
.qrpay-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--nav-height));
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.qrpay-main.fullscreen {
    max-width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Flash Messages ---- */
.flash-message {
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 50;
}

.flash-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

/* ---- Card ---- */
.card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    min-width: 0;
    transition: var(--transition-slow);
}

.card:hover {
    border-color: var(--border-hover);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
    box-shadow: 0 4px 15px var(--accent-green-glow);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px var(--accent-green-glow);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--accent-red);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-left: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f1f5f9' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

select.form-input option {
    background-color: var(--bg-input);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent);
}

.form-check label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-error {
    color: var(--accent-red);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    padding-left: 0.5rem;
}

/* ---- Keypad ---- */
.keypad-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    padding: 1rem;
}

.keypad-display {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    text-align: right;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
}

.keypad-currency {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.keypad-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: color var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
}

.keypad-amount.has-value {
    color: var(--accent-green);
    text-shadow: 0 0 30px var(--accent-green-glow);
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    max-width: 400px;
    width: 100%;
    margin-bottom: 1rem;
}

.keypad-btn {
    padding: 1.15rem;
    font-size: 1.5rem;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    touch-action: manipulation;
}

.keypad-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.keypad-btn:active {
    transform: scale(0.95);
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.keypad-btn.clear {
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.15);
}

.keypad-btn.backspace {
    color: var(--accent-amber);
}

.keypad-btn.decimal {
    font-size: 2rem;
}

.quick-amounts {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 400px;
}

.quick-amount-btn {
    padding: 0.45rem 1rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    touch-action: manipulation;
}

.quick-amount-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

/* ---- QR Display ---- */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-image-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
    margin-bottom: 2rem;
    animation: qrPulse 3s ease-in-out infinite;
}

@keyframes qrPulse {

    0%,
    100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
    }

    50% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 60px var(--accent-green-glow);
    }
}

.qr-image-wrapper svg {
    display: block;
    width: 280px;
    height: 280px;
}

.qr-info {
    margin-bottom: 2rem;
}

.qr-scan-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.qr-amount-display {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-green);
    text-shadow: 0 0 30px var(--accent-green-glow);
    margin-bottom: 0.5rem;
}

.qr-payment-id {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.qr-actions {
    display: flex;
    gap: 1rem;
}

/* ---- POS Grid (Advanced) ---- */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    min-height: calc(100vh - var(--nav-height) - 3rem);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    align-content: start;
}

.product-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: var(--accent-subtle);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.product-card:active {
    transform: scale(0.96);
}

.product-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.product-price {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1rem;
}

.category-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 1rem 0 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

/* Cart */
.cart-panel {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--nav-height) - 3rem);
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
}

.cart-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    transition: var(--transition);
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-item-qty {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent-green);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--accent-red);
}

.cart-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.cart-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cart-total-amount {
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green-glow);
}

/* ---- Table ---- */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(17, 24, 39, 0.4);
    min-width: 0;
}

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

.data-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

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

.data-table tr:last-child td {
    border-bottom: none;
}

/* ---- Stats Cards ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-slow);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    text-shadow: 0 0 20px var(--accent-green-glow);
    letter-spacing: -0.02em;
}

.stat-subvalue {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ---- Setup Wizard ---- */
.setup-container {
    max-width: 600px;
    margin: 3rem auto;
}

.setup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.setup-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.setup-header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ---- Chart ---- */
.chart-container {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ---- Grid Utilities ---- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ---- Section Divider ---- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.section-icon.purple {
    background: var(--accent-subtle);
}

.section-icon.green {
    background: rgba(16, 185, 129, 0.1);
}

.section-icon.amber {
    background: rgba(245, 158, 11, 0.1);
}

.section-icon.pink {
    background: rgba(236, 72, 153, 0.1);
}

.section-icon.blue {
    background: rgba(59, 130, 246, 0.1);
}

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-purple {
    background: var(--accent-subtle);
    color: var(--accent);
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
}

.badge-red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.badge-muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

/* ---- Status Dot ---- */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green-glow);
}

.status-dot.inactive {
    background: var(--accent-red);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ---- Reveal Animation ---- */
.reveal-up {
    animation: revealUp 0.5s ease both;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.reveal-up:nth-child(2) {
    animation-delay: 0.05s;
}

.reveal-up:nth-child(3) {
    animation-delay: 0.1s;
}

.reveal-up:nth-child(4) {
    animation-delay: 0.15s;
}

/* ---- Info Box ---- */
.info-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---- Btn small ---- */
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 10px;
}

/* ---- Disabled button state ---- */
.btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.filter-bar .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 140px;
}

/* ---- Chart bar hover ---- */
.chart-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.chart-bar:hover {
    filter: brightness(1.3);
}

.chart-bar-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* ---- Inline edit row ---- */
.edit-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.edit-row .form-input {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

/* ---- Card with top accent ---- */
.card-accent {
    position: relative;
    overflow: hidden;
}

.card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-green));
}

/* ---- Mono text ---- */
.mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
}

/* ---- Settings Navigation (drill-down menu) ---- */
.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    overflow: hidden;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-family: inherit;
    color: var(--text-primary);
}

.settings-nav-item:hover {
    background: var(--bg-tertiary);
}

.settings-nav-item:active {
    background: rgba(99, 102, 241, 0.08);
}

.settings-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.settings-nav-icon.purple {
    background: rgba(99, 102, 241, 0.12);
}

.settings-nav-icon.amber {
    background: rgba(245, 158, 11, 0.12);
}

.settings-nav-icon.pink {
    background: rgba(236, 72, 153, 0.12);
}

.settings-nav-icon.blue {
    background: rgba(59, 130, 246, 0.12);
}

.settings-nav-icon.green {
    background: rgba(16, 185, 129, 0.12);
}

.settings-nav-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.settings-nav-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.settings-nav-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0;
}

.settings-nav-chevron {
    font-size: 1.4rem;
    color: var(--text-muted);
    flex-shrink: 0;
    font-weight: 300;
    transition: var(--transition);
}

.settings-nav-item:hover .settings-nav-chevron {
    color: var(--text-secondary);
    transform: translateX(2px);
}

/* ---- Settings Back Button ---- */
.settings-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem 0.4rem 0.5rem;
    margin-bottom: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.settings-back-btn span {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1;
}

.settings-back-btn:hover {
    background: var(--accent-subtle);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* ---- Help Page ---- */
.help-intro {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--accent-subtle);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
}

.help-topic {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.help-topic:last-child {
    border-bottom: none;
}

.help-topic-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.help-topic-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.help-topic p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
    padding-left: 2.55rem;
}

/* FAQ Accordion */
.help-faq-item {
    border-bottom: 1px solid var(--border);
}

.help-faq-item:last-child {
    border-bottom: none;
}

.help-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
}

.help-faq-question:hover {
    color: var(--accent-hover);
}

.help-faq-question.active {
    color: var(--accent);
}

.help-faq-chevron {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.help-faq-chevron.open {
    transform: rotate(90deg);
}

.help-faq-answer {
    overflow: hidden;
}

.help-faq-answer p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
    padding: 0 0.25rem 1rem 0.25rem;
}

/* ===== Bank API Verification ===== */
.bank-verify-status {
    text-align: center;
}

.bank-verify-checking,
.bank-verify-found,
.bank-verify-idle,
.bank-verify-waiting {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.bank-verify-waiting {
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.bank-verify-checking {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-amber);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.bank-verify-found {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: bankVerifyPulse 0.5s ease;
}

.bank-verify-idle {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.bank-verify-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.bank-verify-checking .bank-verify-dot {
    background: var(--accent-amber);
    animation: bankDotPulse 1.5s ease-in-out infinite;
}

.bank-verify-found .bank-verify-dot {
    background: var(--accent-green);
}

.bank-verify-idle .bank-verify-dot {
    background: var(--text-muted);
}

.bank-verify-waiting .bank-verify-dot {
    background: var(--accent);
    animation: bankDotPulse 2s ease-in-out infinite;
}

@keyframes bankDotPulse {

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

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

@keyframes bankVerifyPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

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

.bank-verify-btn {
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent);
    border: 1px solid rgba(96, 165, 250, 0.3);
    font-size: 0.8rem;
}

.bank-verify-btn:hover {
    background: rgba(96, 165, 250, 0.2);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(6, 10, 19, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-mobile-toggle {
        display: none;
    }

    .nav-mobile-inline {
        display: flex;
    }

    .nav-mobile-owner-tools {
        display: flex;
    }

    .nav-right {
        display: none;
    }

    .user-menu {
        display: none;
    }

    /* Mobile bottom bar */
    .nav-mobile-bar {
        display: flex;
    }

    .qrpay-main {
        padding-bottom: 80px;
    }

    .pos-layout {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }

    .cart-panel {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        max-height: none;
        border-radius: var(--radius-lg);
        z-index: auto;
        margin-bottom: 1rem;
    }

    /* ---- Mobile Transaction Table → Card Layout ---- */
    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody {
        display: block;
    }

    .data-table tr {
        display: flex;
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        gap: 0.25rem 0.75rem;
        align-items: center;
    }

    .data-table tr:last-child {
        border-bottom: none;
    }

    .data-table td {
        padding: 0;
        border-bottom: none;
        font-size: 0.85rem;
    }

    /* Payment ID — full width top row */
    .data-table td:first-child {
        width: 100%;
        font-size: 0.75rem;
    }

    /* Actions — full width bottom row */
    .data-table td:last-child {
        width: 100%;
        margin-top: 0.25rem;
    }

    .data-table td:last-child:empty {
        display: none;
    }

    .keypad-amount {
        font-size: 2.5rem;
    }

    .qr-amount-display {
        font-size: 2rem;
    }

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

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

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .floating-mode-toggle {
        display: none;
    }

    .floating-staff-logout {
        display: none;
    }

    .card {
        padding: 1.25rem;
    }
}

/* ---- Mobile Bottom Bar ---- */
.nav-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(6, 10, 19, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 0.35rem 0.5rem;
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
}

.nav-mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.6rem;
    background: none;
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.nav-mobile-bar-item span:first-child {
    font-size: 1.2rem;
}

.nav-mobile-bar-item.active {
    color: var(--accent);
}

.nav-mobile-bar-item:hover {
    color: var(--text-secondary);
}

.nav-mobile-bar form {
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-mobile-bar-logout {
    color: var(--accent-red) !important;
    opacity: 0.8;
}

.nav-mobile-bar-logout:hover {
    opacity: 1;
}

/* ---- Mobile Drawer ---- */
.nav-mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.nav-mobile-drawer.open {
    display: flex;
    justify-content: flex-end;
}

.nav-mobile-drawer-content {
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
    animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.nav-mobile-drawer-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.nav-mobile-drawer-links {
    display: flex;
    flex-direction: column;
}

.nav-mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-mobile-drawer-link:hover {
    background: var(--bg-tertiary);
}

.nav-mobile-drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Light theme support for mobile */
[data-theme="light"] .nav-mobile-bar {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .nav-mobile-drawer-content {
    background: #f8f9fa;
}

[data-theme="light"] .nav-mobile-drawer-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* ---- Print ---- */
/* ---- Print Receipt (screen: hidden) ---- */
.print-receipt {
    display: none;
}

@media print {

    .qrpay-nav,
    .qr-actions,
    .flash-message,
    .floating-mode-toggle,
    .floating-staff-logout,
    .nav-mobile-bar,
    .nav-mobile-drawer,
    .bank-verify-status,
    .qr-container {
        display: none !important;
    }

    .print-receipt {
        display: block !important;
    }

    body {
        background: white !important;
        color: #000 !important;
        font-family: 'Courier New', Courier, monospace;
        font-size: 12pt;
        margin: 0;
        padding: 0;
    }

    .receipt-inner {
        max-width: 72mm;
        margin: 0 auto;
        padding: 8mm 4mm;
    }

    .receipt-header {
        text-align: center;
        margin-bottom: 4mm;
    }

    .receipt-title {
        font-size: 14pt;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .receipt-section {
        margin: 2mm 0;
    }

    .receipt-business-name {
        text-align: center;
        font-size: 13pt;
        font-weight: bold;
        margin-bottom: 2mm;
    }

    .receipt-row {
        display: flex;
        justify-content: space-between;
        gap: 4mm;
        line-height: 1.5;
        font-size: 10pt;
    }

    .receipt-row>span:first-child {
        flex-shrink: 0;
    }

    .receipt-row>span:last-child {
        text-align: right;
    }

    .receipt-total {
        font-weight: bold;
        font-size: 13pt;
        margin-top: 2mm;
        padding-top: 2mm;
        border-top: 1px solid #000;
    }

    .receipt-address {
        font-size: 10pt;
        line-height: 1.4;
        margin-top: 1mm;
    }

    .receipt-address-label {
        font-weight: bold;
        font-size: 9pt;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.5mm;
    }

    .receipt-divider {
        border-top: 1px dashed #000;
        margin: 3mm 0;
    }

    .receipt-footer {
        text-align: center;
        font-size: 10pt;
        margin-top: 4mm;
        font-style: italic;
    }
}

/* ---- Legacy Compat: Antigravity & Modern Forms ---- */
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.5;
    animation: float 25s infinite ease-in-out alternate;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #4f46e5;
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    bottom: -50px;
    right: -50px;
    animation-duration: 20s;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #10b981;
    top: 40%;
    left: 40%;
    animation-duration: 30s;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg) scale(0.95);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.modern-form-input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.modern-form-input::placeholder {
    color: var(--text-muted);
}

.modern-btn {
    border-radius: 9999px;
    padding: 0.9rem 2rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
    transition: all 0.3s;
    text-transform: none;
}

.glass-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
}

/* Landing page buttons that use both modern-btn + btn-primary */
.modern-btn.btn-primary {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}

.modern-btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.modern-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.modern-btn.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* ---- Pagination Override ---- */
nav[role="navigation"] {
    display: flex;
    justify-content: center;
}

nav[role="navigation"] .flex.justify-between {
    display: none;
}

nav[role="navigation"] span[aria-current="page"] span {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}

nav[role="navigation"] a {
    color: var(--text-secondary) !important;
    border-color: var(--border) !important;
    background: transparent !important;
}

nav[role="navigation"] a:hover {
    color: var(--text-primary) !important;
    border-color: var(--border-hover) !important;
}

/* ---- Tip Prompt Screen ---- */
.tip-prompt-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    padding: 2rem;
}

.tip-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.4s ease;
}

/* Glass card for the question */
.tip-card {
    position: relative;
    width: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tip-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent), var(--accent-green));
    background-size: 200% 100%;
    animation: glowSlide 4s ease-in-out infinite;
}

@keyframes glowSlide {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }
}

.tip-card-content {
    padding: 3rem 2.5rem 2rem;
    text-align: center;
}

.tip-heading {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.tip-amount-line {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tip-amount-line strong {
    color: var(--text-secondary);
}

/* Button pair */
.tip-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}

.tip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.01em;
    touch-action: manipulation;
}

.tip-btn-yes {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--accent-green);
    border-right: 1px solid var(--border);
    border-bottom-left-radius: var(--radius-lg);
}

.tip-btn-yes:hover {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
    box-shadow: inset 0 0 30px rgba(16, 185, 129, 0.15);
}

.tip-btn-no {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    border-bottom-right-radius: var(--radius-lg);
}

.tip-btn-no:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Keypad step */
.tip-keypad-header {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.tip-keypad-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.tip-keypad-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.tip-keypad-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-green);
    text-shadow: 0 0 30px var(--accent-green-glow);
}

.tip-keypad-input {
    width: 220px;
    max-width: 70vw;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    color: var(--accent-green);
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.05;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    text-shadow: 0 0 30px var(--accent-green-glow);
    outline: none;
    caret-color: var(--accent-green);
    padding: 0 0.2rem;
}

.tip-keypad-input:focus {
    border-bottom-color: var(--accent-green);
}

.tip-keypad-input::placeholder {
    color: var(--text-muted);
    opacity: 0.55;
    text-shadow: none;
}

.tip-keypad-currency {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.tip-original-amount {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.tip-total-preview {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.tip-keypad-grid {
    max-width: 340px;
    margin: 0 auto 1.5rem;
}

.tip-keypad-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.tip-keypad-actions .btn {
    flex: 1;
}

.tip-keypad-actions form {
    flex: 2;
}

.tip-keypad-actions form .btn {
    width: 100%;
}

@media (max-width: 480px) {
    .tip-card-content {
        padding: 2rem 1.5rem 1.5rem;
    }

    .tip-heading {
        font-size: 1.6rem;
    }

    .tip-btn {
        padding: 1.2rem;
        font-size: 1.1rem;
    }

    .tip-keypad-value {
        font-size: 2.8rem;
    }

    .tip-keypad-input {
        width: 180px;
        font-size: 2.8rem;
    }
}

/* ---- Quick Actions Grid (Dashboard) ---- */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.quick-action-card:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.quick-action-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.quick-action-icon .logout-icon {
    width: 1.8rem;
    height: 1.8rem;
}

.quick-action-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.quick-action-logout-item {
    display: none;
    margin: 0;
}

.quick-action-mobile-owner-item {
    display: none;
}

.dashboard-mobile-help-wrap {
    display: none;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.dashboard-mobile-help-card {
    width: 100%;
}

@media (max-width: 768px) {
    .quick-action-logout-item {
        display: block;
    }

    .quick-action-mobile-owner-item {
        display: flex;
    }

    .dashboard-mobile-help-wrap {
        display: block;
    }
}

.quick-action-card-logout {
    width: 100%;
    font-family: inherit;
    color: var(--accent-red);
}

.quick-action-card-logout:hover {
    color: var(--accent-red);
}

/* ---- QR Expiry Timer ---- */
.qr-expiry-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.qr-expiry-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.qr-expiry-countdown {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    text-shadow: 0 0 15px var(--accent-green-glow);
    transition: color 0.3s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ---- Light Theme ---- */
[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;
    --bg-input: #f8f9fb;
    --bg-input-focus: #ffffff;
    --bg-tertiary: #f0f2f5;
    --border: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(0, 0, 0, 0.2);
    --border-focus: #6366f1;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
}

[data-theme="light"] body.qrpay-body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .qrpay-nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: var(--border);
}

[data-theme="light"] .nav-brand a,
[data-theme="light"] .brand-text {
    color: var(--text-primary);
}

[data-theme="light"] .card,
[data-theme="light"] .stat-card,
[data-theme="light"] .chart-container,
[data-theme="light"] .cart-panel,
[data-theme="light"] .filter-bar,
[data-theme="light"] .settings-nav {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--border);
}

[data-theme="light"] .settings-nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .settings-back-btn {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .table-container {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--border);
}

[data-theme="light"] .data-table th {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .form-input {
    background-color: var(--bg-input);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .form-input:focus {
    background-color: var(--bg-input-focus);
}

[data-theme="light"] select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

[data-theme="light"] .nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .nav-link.active {
    color: var(--accent);
    background: var(--accent-subtle);
}

[data-theme="light"] .locale-select {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    border-color: var(--border);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    border-color: var(--border);
}

[data-theme="light"] .keypad-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .keypad-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .keypad-display {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--border);
}

[data-theme="light"] .product-card {
    background: rgba(0, 0, 0, 0.01);
    border-color: var(--border);
}

[data-theme="light"] .quick-action-card {
    background: rgba(0, 0, 0, 0.01);
    border-color: var(--border);
}

[data-theme="light"] .quick-action-card:hover {
    background: var(--accent-subtle);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .flash-success {
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .flash-error {
    background: rgba(239, 68, 68, 0.08);
}

[data-theme="light"] .app-bg-blob {
    opacity: 0.3;
}

[data-theme="light"] .floating-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .nav-inline-mode-btn {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .info-box {
    background: #f0f2f5;
}

[data-theme="light"] .nav-icon-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ---- Staff PIN Indicator (Navbar) ---- */
.staff-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: var(--accent-subtle);
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

.staff-indicator-icon {
    font-size: 0.85rem;
}

.staff-indicator-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-indicator-switch,
.staff-indicator-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 0.15rem;
    transition: color 0.2s;
    line-height: 1;
}

.staff-indicator-switch:hover {
    color: var(--accent);
}

.staff-indicator-clear:hover {
    color: var(--accent-red);
}

.staff-pin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    touch-action: manipulation;
}

.staff-pin-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

/* ---- PIN Overlay ---- */
.pin-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pin-overlay-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: pinSlideIn 0.3s ease;
}

@keyframes pinSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

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

.pin-overlay-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pin-overlay-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.pin-overlay-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.pin-overlay-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* PIN Dots display */
.pin-display {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-hover);
    background: transparent;
    transition: all 0.15s ease;
}

.pin-dot.filled {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.1);
}

/* PIN Keypad */
.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.pin-key {
    padding: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pin-key:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

.pin-key:active {
    transform: scale(0.95);
    background: var(--accent-subtle);
    border-color: var(--accent);
}

.pin-key-clear {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pin-key-back {
    font-size: 1.2rem;
    color: var(--accent-amber);
}

/* PIN Error & Success */
.pin-error {
    text-align: center;
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(239, 68, 68, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.pin-error-critical {
    font-size: 0.95rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid var(--accent-red);
    animation: pulse-red 1s ease-in-out infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 12px 4px rgba(239, 68, 68, 0.3);
    }
}

.pin-success {
    text-align: center;
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-md);
}

/* Shake animation for wrong PIN */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-6px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(6px);
    }
}

.pin-overlay-card.shake {
    animation: shake 0.5s ease;
}

/* ---- VAT Badge ---- */
.vat-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Light theme additions for PIN */
[data-theme="light"] .pin-overlay-card {
    background: white;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .pin-key {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--border);
}

[data-theme="light"] .pin-key:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .staff-pin-btn {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .staff-indicator {
    background: rgba(99, 102, 241, 0.08);
}

/* ---- VAT Rate Pills ---- */
.vat-pill {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.vat-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.vat-pill-active,
.vat-pill.vat-pill-active {
    background: rgba(139, 92, 246, 0.12);
    border-color: #8b5cf6;
    color: #a78bfa;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .vat-pill {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .vat-pill-active {
    background: rgba(139, 92, 246, 0.08);
}