/* Emerald Dark POS System Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');
/* Google Fonts already has display=swap in URL for faster render */

:root {
    /* Dark Emerald Theme (Default) */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-glass: rgba(15, 23, 42, 0.92);
    --bg-glass-hover: rgba(15, 23, 42, 0.97);

    /* Emerald Palette */
    --primary-red: #10b981;
    --primary-red-dark: #059669;
    --primary-red-darker: #047857;
    --primary-red-glow: rgba(16, 185, 129, 0.3);
    --primary-red-light: #34d399;

    /* Accent Colors */
    --accent-gray: #475569;
    --accent-gray-light: #64748b;
    --accent-gray-dark: #334155;

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-accent: #34d399;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --gradient-secondary: linear-gradient(135deg, #475569 0%, #334155 100%);
    --gradient-success: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --gradient-glass: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.65) 100%);
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);

    /* Shadows & Effects */
    --shadow-neon: 0 0 20px rgba(16, 185, 129, 0.35);
    --shadow-neon-blue: 0 0 20px rgba(16, 185, 129, 0.2);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 8px 30px rgba(16, 185, 129, 0.25);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 50px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables (consistent with default emerald dark theme) */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-glass: rgba(15, 23, 42, 0.92);
    --bg-glass-hover: rgba(15, 23, 42, 0.97);

    /* Text Colors for Dark Theme */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-accent: #34d399;

    /* Gradients for Dark Theme */
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --gradient-glass: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.65) 100%);

    /* Shadows for Dark Theme */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 8px 30px rgba(16, 185, 129, 0.25);
}

/* Global theme application */
body[data-theme="dark"] {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

body[data-theme="dark"] .pos-container {
    background: var(--bg-primary);
}

body[data-theme="dark"] .cart-panel {
    background: var(--bg-secondary) !important;
    border-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

body[data-theme="dark"] .cart-panel .summary-value {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

body[data-theme="dark"] .cart-panel .summary-total .summary-value {
    color: #34d399 !important;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5), 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

/* Additional dark theme improvements */
body[data-theme="dark"] .product-card {
    background: var(--bg-secondary) !important;
    border-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

body[data-theme="dark"] .product-card .product-name {
    color: var(--text-primary) !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

body[data-theme="dark"] .product-card .product-price {
    color: #34d399 !important;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.4), 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

body[data-theme="dark"] .product-card .product-sku {
    color: var(--text-muted) !important;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8) !important;
}

body[data-theme="dark"] .product-card .product-stock {
    color: var(--text-secondary) !important;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8) !important;
}

/* Admin Panel Dark Theme */
.admin-page[data-theme="dark"] {
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
}

.admin-page[data-theme="dark"] body {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

.admin-page[data-theme="dark"] .admin-container {
    background: #1e293b;
}

.admin-page[data-theme="dark"] .admin-sidebar {
    background: #334155 !important;
    border-right-color: #475569 !important;
}

.admin-page[data-theme="dark"] .admin-main {
    background: #1e293b;
    color: #f1f5f9;
}

.admin-page[data-theme="dark"] .content-card {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

.admin-page[data-theme="dark"] .card-header {
    background: #475569 !important;
    border-bottom-color: #64748b !important;
}

.admin-page[data-theme="dark"] .card-header h3 {
    color: #f1f5f9 !important;
}

.admin-page[data-theme="dark"] .nav-link {
    color: #cbd5e1 !important;
}

.admin-page[data-theme="dark"] .nav-link:hover {
    background: #475569 !important;
    color: #f1f5f9 !important;
}

.admin-page[data-theme="dark"] .nav-link.active { background: #059669 !important;
    color: #ffffff !important;
}

.admin-page[data-theme="dark"] .form-group input,
.admin-page[data-theme="dark"] .form-group select,
.admin-page[data-theme="dark"] .form-group textarea {
    background: #475569 !important;
    border-color: #64748b !important;
    color: #f1f5f9 !important;
}

.admin-page[data-theme="dark"] .form-group input:focus,
.admin-page[data-theme="dark"] .form-group select:focus,
.admin-page[data-theme="dark"] .form-group textarea:focus {
    border-color: #059669 !important;
    background: #475569 !important;
}

.admin-page[data-theme="dark"] .page-title h2 {
    color: #f1f5f9 !important;
}

.admin-page[data-theme="dark"] .page-title p {
    color: #cbd5e1 !important;
}

.admin-page[data-theme="dark"] .sidebar-header h3 {
    color: #f1f5f9 !important;
}

.admin-page[data-theme="dark"] .nav-divider {
    color: #94a3b8 !important;
}

/* POS Panel Dark Theme */
.pos-page[data-theme="dark"] {
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
}

.pos-page[data-theme="dark"] body {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

.pos-page[data-theme="dark"] .pos-container {
    background: #1e293b;
}

.pos-page[data-theme="dark"] .pos-left-panel {
    background: #334155;
}

.pos-page[data-theme="dark"] .cart-panel {
    background: #334155 !important;
    border-color: #475569 !important;
}

.pos-page[data-theme="dark"] .product-card {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

.pos-page[data-theme="dark"] .product-card:hover {
    background: #475569 !important;
}

.pos-page[data-theme="dark"] .product-name {
    color: #f1f5f9 !important;
}

.pos-page[data-theme="dark"] .product-sku {
    color: #cbd5e1 !important;
}

.pos-page[data-theme="dark"] .product-stock {
    color: #94a3b8 !important;
}

/* Blue Theme */
.admin-page[data-theme="blue"] body,
.pos-page[data-theme="blue"] body {
    background: #1e3a8a !important;
    color: #dbeafe !important;
}

body[data-theme="blue"] {
    background: #1e3a8a !important;
    color: #dbeafe !important;
}

body[data-theme="blue"] .cart-panel {
    background: #1e40af !important;
    border-color: #3b82f6 !important;
    color: #dbeafe !important;
}

body[data-theme="blue"] .cart-panel .summary-value {
    color: #dbeafe !important;
    font-weight: 700 !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

body[data-theme="blue"] .cart-panel .summary-total .summary-value {
    color: #3b82f6 !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5), 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

.admin-page[data-theme="blue"] .admin-container,
.pos-page[data-theme="blue"] .pos-container {
    background: #1e3a8a;
}

.admin-page[data-theme="blue"] .admin-sidebar,
.pos-page[data-theme="blue"] .pos-left-panel {
    background: #1e40af !important;
    border-right-color: #3b82f6 !important;
}

.admin-page[data-theme="blue"] .admin-main,
.pos-page[data-theme="blue"] .cart-panel {
    background: #1e3a8a;
    color: #dbeafe;
}

.admin-page[data-theme="blue"] .content-card,
.pos-page[data-theme="blue"] .product-card {
    background: #1e40af !important;
    border-color: #3b82f6 !important;
    color: #dbeafe !important;
}

.admin-page[data-theme="blue"] .nav-link {
    color: #93c5fd !important;
}

.admin-page[data-theme="blue"] .nav-link:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

/* Green Theme */
.admin-page[data-theme="green"] body,
.pos-page[data-theme="green"] body {
    background: #14532d !important;
    color: #dcfce7 !important;
}

body[data-theme="green"] {
    background: #14532d !important;
    color: #dcfce7 !important;
}

body[data-theme="green"] .cart-panel {
    background: #166534 !important;
    border-color: #22c55e !important;
    color: #dcfce7 !important;
}

body[data-theme="green"] .cart-panel .summary-value {
    color: #dcfce7 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

body[data-theme="green"] .cart-panel .summary-total .summary-value {
    color: #22c55e !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5), 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

.admin-page[data-theme="green"] .admin-container,
.pos-page[data-theme="green"] .pos-container {
    background: #14532d;
}

.admin-page[data-theme="green"] .admin-sidebar,
.pos-page[data-theme="green"] .pos-left-panel {
    background: #166534 !important;
    border-right-color: #22c55e !important;
}

.admin-page[data-theme="green"] .admin-main,
.pos-page[data-theme="green"] .cart-panel {
    background: #14532d;
    color: #dcfce7;
}

.admin-page[data-theme="green"] .content-card,
.pos-page[data-theme="green"] .product-card {
    background: #166534 !important;
    border-color: #22c55e !important;
    color: #dcfce7 !important;
}

.admin-page[data-theme="green"] .nav-link {
    color: #86efac !important;
}

.admin-page[data-theme="green"] .nav-link:hover {
    background: #22c55e !important;
    color: #ffffff !important;
}

/* Purple Theme */
.admin-page[data-theme="purple"] body,
.pos-page[data-theme="purple"] body {
    background: #581c87 !important;
    color: #f3e8ff !important;
}

body[data-theme="purple"] {
    background: #581c87 !important;
    color: #f3e8ff !important;
}

body[data-theme="purple"] .cart-panel {
    background: #6b21a8 !important;
    border-color: #a855f7 !important;
    color: #f3e8ff !important;
}

body[data-theme="purple"] .cart-panel .summary-value {
    color: #f3e8ff !important;
    font-weight: 700 !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

body[data-theme="purple"] .cart-panel .summary-total .summary-value {
    color: #a855f7 !important;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5), 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

.admin-page[data-theme="purple"] .admin-container,
.pos-page[data-theme="purple"] .pos-container {
    background: #581c87;
}

.admin-page[data-theme="purple"] .admin-sidebar,
.pos-page[data-theme="purple"] .pos-left-panel {
    background: #6b21a8 !important;
    border-right-color: #a855f7 !important;
}

.admin-page[data-theme="purple"] .admin-main,
.pos-page[data-theme="purple"] .cart-panel {
    background: #581c87;
    color: #f3e8ff;
}

.admin-page[data-theme="purple"] .content-card,
.pos-page[data-theme="purple"] .product-card {
    background: #6b21a8 !important;
    border-color: #a855f7 !important;
    color: #f3e8ff !important;
}

.admin-page[data-theme="purple"] .nav-link {
    color: #c4b5fd !important;
}

.admin-page[data-theme="purple"] .nav-link:hover {
    background: #a855f7 !important;
    color: #ffffff !important;
}

/* Orange Theme */
.admin-page[data-theme="orange"] body,
.pos-page[data-theme="orange"] body {
    background: #9a3412 !important;
    color: #fed7aa !important;
}

body[data-theme="orange"] {
    background: #9a3412 !important;
    color: #fed7aa !important;
}

body[data-theme="orange"] .cart-panel {
    background: #c2410c !important;
    border-color: #f97316 !important;
    color: #fed7aa !important;
}

body[data-theme="orange"] .cart-panel .summary-value {
    color: #fed7aa !important;
    font-weight: 700 !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

body[data-theme="orange"] .cart-panel .summary-total .summary-value {
    color: #f97316 !important;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5), 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

.admin-page[data-theme="orange"] .admin-container,
.pos-page[data-theme="orange"] .pos-container {
    background: #9a3412;
}

.admin-page[data-theme="orange"] .admin-sidebar,
.pos-page[data-theme="orange"] .pos-left-panel {
    background: #c2410c !important;
    border-right-color: #f97316 !important;
}

.admin-page[data-theme="orange"] .admin-main,
.pos-page[data-theme="orange"] .cart-panel {
    background: #9a3412;
    color: #fed7aa;
}

.admin-page[data-theme="orange"] .content-card,
.pos-page[data-theme="orange"] .product-card {
    background: #c2410c !important;
    border-color: #f97316 !important;
    color: #fed7aa !important;
}

.admin-page[data-theme="orange"] .nav-link {
    color: #fdba74 !important;
}

.admin-page[data-theme="orange"] .nav-link:hover {
    background: #f97316 !important;
    color: #ffffff !important;
}

/* Red Theme */
.admin-page[data-theme="red"] body,
.pos-page[data-theme="red"] body {
    background: #064e3b !important;
    color: #fecaca !important;
}

body[data-theme="red"] {
    background: #064e3b !important;
    color: #fecaca !important;
}

body[data-theme="red"] .cart-panel {
    background: #065f46 !important;
    border-color: #34d399 !important;
    color: #fecaca !important;
}

body[data-theme="red"] .cart-panel .summary-value {
    color: #fecaca !important;
    font-weight: 700 !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

body[data-theme="red"] .cart-panel .summary-total .summary-value {
    color: #34d399 !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5), 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

.admin-page[data-theme="red"] .admin-container,
.pos-page[data-theme="red"] .pos-container {
    background: #064e3b;
}

.admin-page[data-theme="red"] .admin-sidebar,
.pos-page[data-theme="red"] .pos-left-panel {
    background: #065f46 !important;
    border-right-color: #34d399 !important;
}

.admin-page[data-theme="red"] .admin-main,
.pos-page[data-theme="red"] .cart-panel {
    background: #064e3b;
    color: #fecaca;
}

.admin-page[data-theme="red"] .content-card,
.pos-page[data-theme="red"] .product-card {
    background: #065f46 !important;
    border-color: #34d399 !important;
    color: #fecaca !important;
}

.admin-page[data-theme="red"] .nav-link {
    color: #fca5a5 !important;
}

.admin-page[data-theme="red"] .nav-link:hover {
    background: #34d399 !important;
    color: #ffffff !important;
}

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

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.admin-page {
    background-color: #0f172a;
}

/* Typography refinements for more professional look */
h1,
h2,
h3,
h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1 {
    font-weight: 800;
}

h3,
h4 {
    font-weight: 600;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-light);
}

/* Header Styles */
.pos-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-glass);
    position: relative;
}

.pos-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.store-info h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--neon-red-glow);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.store-info h1::before {
    content: '🏪';
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--primary-red-glow));
}

.store-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    background: var(--bg-glass);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: inline-block;
    backdrop-filter: blur(10px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.user-selector label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.user-selector select {
    background: var(--bg-glass);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    min-width: 200px;
}

.user-selector select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px var(--primary-red-glow), var(--shadow-hover);
    transform: translateY(-1px);
}

.user-selector select:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-hover);
}

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

.user-actions .btn {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.user-actions .btn-primary {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.user-actions .btn-primary:hover {
    background: #047857;
    border-color: #047857;
}

/* Responsive styling for user actions */
@media (max-width: 768px) {
    .user-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .user-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    letter-spacing: 0.5px;
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    height: 28px;
    gap: 0.3rem;
    line-height: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--primary-red-glow);
    background: var(--primary-red-light);
}

.btn-print-receipt {
    background: #ffffff;
    color: #064e3b;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-md);
    font-weight: 700;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
    position: relative;
    font-size: 1rem;
}

.btn-print-receipt::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-md);
    opacity: 0.8;
    z-index: -1;
}

.btn-print-receipt::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid var(--primary-red);
    border-radius: calc(var(--radius-md) - 2px);
    opacity: 0.4;
    pointer-events: none;
}

.btn-print-receipt:hover {
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    border-color: var(--primary-red-dark);
}

.btn-print-receipt:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.btn-print-receipt:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.btn-warning {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 165, 0, 0.5);
    background: linear-gradient(135deg, #ffb84d 0%, #ff9f1a 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 71, 87, 0.5);
    background: linear-gradient(135deg, #ff6b7a 0%, #d63384 100%);
}

.btn-outline {
    background: var(--bg-glass);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary-red);
    box-shadow: 0 0 25px var(--primary-red-glow);
    transform: translateY(-3px);
    color: var(--primary-red);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Main Layout */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* Search Bar */
.search-container {
    margin-bottom: 2rem;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--bg-glass);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: 1.1rem;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px var(--primary-red-glow), var(--shadow-hover);
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.search-bar::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-pill);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-neon);
    font-size: 1.2rem;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 30px var(--primary-red-glow);
    background: var(--primary-red-light);
}

.search-btn:active {
    transform: translateY(-50%) scale(1.05);
}

/* Product Grid - Responsive Design */
.products-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 2rem;
    padding: 0 8px;
    align-items: stretch;
    justify-content: center;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Mobile First - 2 columns on small screens */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 4px;
    }
}

/* Small tablets - 3 columns */
@media (min-width: 481px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

/* Tablets - 4 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Desktop - 5 columns */
@media (min-width: 1025px) and (max-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

/* Large Desktop - 6 columns */
@media (min-width: 1441px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

.product-card {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    padding: 1rem;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    z-index: 10;
    pointer-events: auto !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Ensure all child elements don't block clicks */
.product-card * {
    pointer-events: none;
    user-select: none;
}

/* Re-enable pointer events for interactive elements if any are added later */
.product-card button,
.product-card a,
.product-card input {
    pointer-events: auto;
}

/* Enhanced text readability for all themes */
.product-name {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

.product-price {
    color: var(--primary-red) !important;
    font-weight: 800 !important;
}

.product-sku {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
}

.product-stock {
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
}

/* Enhanced cart panel readability for all themes */
.cart-panel .summary-label {
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3) !important;
}

.cart-panel .summary-value {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5) !important;
}

.cart-panel .summary-total .summary-label {
    color: var(--primary-red) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3) !important;
}

.cart-panel .summary-total .summary-value {
    color: var(--primary-red) !important;
    font-weight: 800 !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4), 0 0 3px rgba(0, 0, 0, 0.7) !important;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover::after {
    transform: scaleX(1);
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
    flex: 1;
    min-height: 2.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-sku {
    background: var(--accent-gray-light);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
    width: fit-content;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.product-stock {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-stock.stock-low {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.product-stock.stock-out {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}



.product-stock {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.1);
    margin-top: auto;
    /* push stock to bottom to align card heights visually */
}

.product-stock::before {
    content: '📦';
    font-size: 0.9rem;
}

.stock-low {
    color: #ffc107;
    font-weight: 600;
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.stock-low::before {
    content: '⚠️';
}

.stock-out {
    color: var(--primary-red);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

.stock-out::before {
    content: '❌';
}

/* Cart Panel */
.cart-panel {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    position: sticky;
    top: 120px;
    height: fit-content;
    z-index: 10;
    display: block;
}

.cart-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.cart-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-red);
    filter: drop-shadow(0 0 10px var(--primary-red-glow));
}

/* Cart Items */
.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    min-height: 0;
    padding-right: 0.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.3rem;
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    gap: 0.5rem;
    min-height: 50px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.cart-item:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cart-item.added {
    animation: itemAdded 0.3s ease-out;
}

@keyframes itemAdded {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

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

.cart-item:last-child {
    margin-bottom: 0;
}

.item-info {
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

.item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.item-details {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: var(--bg-glass);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 8px var(--primary-red-glow);
    transform: scale(1.05);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.4rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: 0 0 8px var(--primary-red-glow);
    white-space: nowrap;
    margin-left: 0.3rem;
}

.remove-btn {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    transition: var(--transition);
    margin-left: 0.3rem;
    flex-shrink: 0;
}

.remove-btn:hover {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 0 8px var(--primary-red-glow);
    transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.summary-row:last-child {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 1rem;
    font-weight: 700;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.summary-total .summary-label {
    color: var(--primary-red);
    font-size: 1.1rem;
}

.summary-total .summary-value {
    color: var(--primary-red);
    font-size: 1.3rem;
    font-weight: 800;
    text-shadow: 0 0 15px var(--primary-red-glow), 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Customer Selection */
.customer-section {
    margin-bottom: 1rem;
}

.customer-section label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.customer-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.customer-select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px var(--primary-red-glow);
}

/* Payment Method */
.payment-section {
    margin-bottom: 2rem;
}

.payment-section label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

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

.payment-btn {
    padding: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    backdrop-filter: blur(10px);
}

.payment-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.payment-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-neon);
    color: white;
}

/* Amount Paid */
.amount-section {
    margin-bottom: 2rem;
}

.amount-section label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.amount-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.amount-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px var(--primary-red-glow);
    background: var(--bg-glass-hover);
}

/* Action Buttons */
.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-clear {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-clear:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary-red);
    box-shadow: 0 0 20px var(--primary-red-glow);
}

.btn-process {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-neon);
    font-weight: 700;
    font-size: 1rem;
}

.btn-process:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--primary-red-glow);
}

.btn-process:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages */
.user-switch-error,
.reading-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.reading-message {
    background: rgba(77, 255, 77, 0.1);
    border: 1px solid rgba(77, 255, 77, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.error-message {
    color: var(--neon-red);
    font-weight: 500;
    font-size: 0.9rem;
}

.success-message {
    color: var(--neon-green);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
}

/* Admin Auth Styles */
.admin-auth-container {
    width: 100%;
    max-width: 520px;
    padding: 2rem;
}

.admin-auth-card {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.admin-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

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

.admin-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.admin-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes pulse {

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

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

.admin-auth-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.admin-auth-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.user-context {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.user-badge,
.store-badge {
    background: var(--bg-tertiary);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
}

.user-label,
.store-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-value,
.store-value {
    color: var(--text-primary);
    font-weight: 600;
}

.admin-auth-form {
    margin-bottom: 2rem;
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-red);
    background: var(--bg-glass-hover);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.admin-access-btn {
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    margin-top: 1rem;
}

.admin-access-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.admin-access-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.admin-access-btn:hover::before {
    left: 100%;
}

.admin-access-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.25);
}

.admin-auth-footer {
    text-align: center;
}

.back-btn {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    transform: translateX(-2px);
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

.help-section {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.1);
    text-align: center;
}

.help-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.help-text code {
    background: var(--bg-glass);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--primary-red);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
}

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

.login-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--primary-red-glow);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px var(--primary-red-glow);
}

.btn-full {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Account Selection Styles */
.account-selection {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    margin-bottom: 1rem;
}

.account-selection h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.account-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.account-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-card:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.2);
    transform: translateY(-2px);
}

.account-icon {
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
}

.account-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

/* Readings Page Styles */
.reading-actions-section {
    margin-bottom: 2rem;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    text-align: center;
    transition: var(--transition);
}

.action-card:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.3);
    transform: translateY(-5px);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.action-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Quick Stats Section */
.quick-stats-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.reading-results-section {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    margin-bottom: 2rem;
}

.reading-history-section {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
}

.reading-history-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 77, 77, 0.2);
}

/* Reading Type Badges */
.reading-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reading-type-x {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: #fff;
}

.reading-type-z {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.no-data-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.no-data h4 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.no-data p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 77, 77, 0.2);
}

.section-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

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

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.summary-card:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.2);
}

.summary-icon {
    font-size: 2rem;
    width: 3rem;
    text-align: center;
}

.summary-content h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.summary-value {
    color: var(--neon-red) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.transactions-section {
    margin-top: 2rem;
}

.transactions-section h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.reading-history-section {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
}

.reading-history-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.reading-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reading-type-x {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.reading-type-z {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.no-data {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.no-data-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-data h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-data p {
    font-size: 0.9rem;
    margin: 0;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.alert-icon {
    font-size: 1.2rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    isolation: isolate;
}

.modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    transform: scale(0.9);
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content.large {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 77, 77, 0.2);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    color: var(--neon-red);
    background: var(--bg-glass-hover);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.modal-body p strong {
    color: var(--neon-red);
    font-weight: 600;
}

/* Reading Results Modal */
.reading-summary {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 77, 77, 0.1);
}

.reading-summary h4 {
    color: var(--neon-red);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--neon-red-glow);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 0 10px var(--neon-red-glow);
}

.reading-transactions {
    margin-top: 2rem;
}

.reading-transactions h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.transactions-table .data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.transactions-table .data-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 77, 77, 0.2);
}

.transactions-table .data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 77, 77, 0.1);
    color: var(--text-secondary);
}

.transactions-table .data-table tr:hover {
    background: var(--bg-glass-hover);
}

.no-transactions {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
}

.reading-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Admin Panel Styles */
.admin-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 77, 77, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-glass);
}

.admin-header-left h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--neon-red-glow);
}

/* Account setup polish */
.form-container small.text-muted {
    display: block;
    color: var(--text-secondary);
    opacity: 0.8;
}

.settings-section {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: var(--shadow-card);
}

.settings-section h3 {
    margin-bottom: 1rem;
}

.form-row {
    gap: 1.25rem;
}

.form-group input::placeholder {
    color: var(--accent-gray-dark);
    opacity: 0.8;
}

.data-table th,
.data-table td {
    vertical-align: middle;
}

.admin-sidebar {
    background: var(--bg-glass);
    border-right: 1px solid rgba(16, 185, 129, 0.2);
    width: 280px !important;
    height: calc(100vh - 80px) !important;
    padding: 2rem 1rem;
    backdrop-filter: blur(20px);
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    z-index: 100;
    overflow-y: auto;
    box-shadow: var(--shadow-glass);
}

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

.sidebar-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sidebar-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.sidebar-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 0.25rem;
}

.nav-section {
    margin: 1.5rem 0 0.75rem 0;
}

.nav-section-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-item:hover {
    background: rgba(255, 77, 77, 0.1);
    color: var(--neon-red);
    border-left: 3px solid var(--neon-red);
}

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}

/* Account setup grid layout */
.setup-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Wizard Layout */
.setup-wizard {
    margin-top: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-steps {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wizard-step {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--text-secondary);
    font-weight: 600;
}

.wizard-step span {
    margin-left: 0.25rem;
    font-weight: 500;
    color: var(--text-muted);
}

.wizard-step.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-neon);
}

.wizard-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: start;
}

.wizard-left,
.wizard-right {
    width: 100%;
}

.wizard-card {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
}

.wizard-right .summary-card {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 96px;
    min-height: 260px;
}

.summary-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: var(--shadow-neon);
}

.summary-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.summary-sub {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.summary-details {
    text-align: left;
    color: var(--text-secondary);
    display: grid;
    gap: 0.25rem;
}

.section-title {
    font-weight: 800;
}

.divider {
    height: 2px;
    background: var(--gradient-primary);
    opacity: .2;
    margin: 0.5rem 0 1rem;
}

.wizard-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

/* Inputs: glow focus */
.wizard-form input[type="text"],
.wizard-form input[type="email"],
.wizard-form input[type="password"],
.wizard-form input[type="file"] {
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    background: var(--bg-glass);
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
}

.wizard-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wizard-form .form-group {
    width: 100%;
}

.wizard-form input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px var(--primary-red-glow);
}

.with-hint {
    position: relative;
}

.input-hint {
    display: block;
    color: var(--text-secondary);
    font-size: .85rem;
    margin-top: .25rem;
}

.input-status {
    position: absolute;
    right: .5rem;
    top: 2.7rem;
    font-size: .95rem;
}

/* Password strength */
.password-meter {
    height: 8px;
    background: #eee;
    border-radius: 999px;
    margin-top: .5rem;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.password-meter span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #34d399, #22c55e);
    transition: width .3s;
}

/* Buttons */
.btn-gradient {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-neon);
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(16, 185, 129, .25);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--text-primary);
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.1rem;
}

.btn-icon {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.6rem;
}

/* Modern table */
/* Remove table if hidden on setup page; keep utility classes for other pages */
.modern-table tbody tr:nth-child(odd) {
    background: rgba(255, 77, 77, 0.03);
}

.modern-table tbody tr:hover {
    background: rgba(255, 77, 77, 0.08);
}

.compact-table .data-table {
    font-size: .95rem;
}

/* Features cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0.75rem;
    align-items: start;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: var(--shadow-neon);
}

.feature-content h4 {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.feature-content p {
    margin: 0;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .wizard-body {
        grid-template-columns: 1fr;
    }

    .wizard-right .summary-card {
        position: static;
    }

    .wizard-form .form-row {
        grid-template-columns: 1fr;
    }
}

.setup-aside .tips-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.12);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 1rem;
}

.tips-card h4 {
    margin-bottom: 0.5rem;
}

.tips-card ul {
    margin-left: 1rem;
    color: var(--text-secondary);
}

.quick-links {
    display: flex;
    gap: 0.5rem;
}

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

@media (max-width: 1024px) {
    .setup-grid {
        grid-template-columns: 1fr;
    }
}

/* Elegant User Switcher */
.user-switch {
    position: relative;
}

.user-switch-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.25);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.user-switch-trigger:hover {
    background: var(--bg-glass-hover);
}

.user-switch-trigger .chevron {
    color: var(--text-muted);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-switch-label {
    font-weight: 600;
}

.user-switch-menu {
    position: absolute;
    top: 110%;
    right: 0;
    width: 280px;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 77, 77, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(16px);
    z-index: 50;
    padding: 0.5rem;
}

.user-switch-search {
    padding: 0.25rem 0.25rem 0.5rem;
}

.user-switch-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 77, 77, 0.25);
    background: var(--bg-glass);
    color: var(--text-primary);
}

.user-switch-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 260px;
    overflow: auto;
}

.user-switch-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.user-switch-item:hover {
    background: var(--bg-glass-hover);
}

.user-switch-item .user-meta {
    display: flex;
    flex-direction: column;
}

.user-switch-item .user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-switch-item .user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sidebar-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 77, 77, 0.2);
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-neon);
}

.nav-divider {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--gray-400, #9CA3AF);
    padding: .45rem .75rem;
    display: block;
    background: #FFF5F6;
    border-radius: 6px;
    margin: .65rem 0 .25rem;
    height: auto;
    border: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pos-container {
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* Responsive Product Card Styles */
@media (max-width: 480px) {
    .product-card {
        padding: 0.75rem;
        min-height: 120px;
    }

    .product-name {
        font-size: 0.9rem;
        min-height: 2.2rem;
    }

    .product-sku {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-stock {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .product-card {
        padding: 0.85rem;
        min-height: 130px;
    }

    .product-name {
        font-size: 0.95rem;
        min-height: 2.4rem;
    }

    .product-sku {
        font-size: 0.72rem;
        padding: 0.25rem 0.45rem;
    }

    .product-price {
        font-size: 1.05rem;
    }

    .product-stock {
        font-size: 0.72rem;
        padding: 0.25rem 0.45rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-card {
        padding: 0.9rem;
        min-height: 135px;
    }

    .product-name {
        font-size: 0.98rem;
        min-height: 2.5rem;
    }

    .product-sku {
        font-size: 0.74rem;
        padding: 0.3rem 0.5rem;
    }

    .product-price {
        font-size: 1.08rem;
    }

    .product-stock {
        font-size: 0.74rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (min-width: 1025px) {
    .product-card {
        padding: 1rem;
        min-height: 140px;
    }

    .product-name {
        font-size: 1rem;
        min-height: 2.6rem;
    }

    .product-sku {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .product-stock {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Tablet optimizations - Much more compact */
@media (max-width: 1024px) and (min-width: 768px) {

    /* Ultra-compact login forms */
    .admin-login-container,
    .login-card,
    .admin-auth-card {
        max-width: 320px;
        padding: 1rem;
        margin: 0.25rem;
    }

    .admin-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .admin-login-header h1,
    .login-header h1,
    .form-title {
        font-size: 1.1rem;
    }

    .admin-login-header p,
    .login-header p,
    .form-subtitle {
        font-size: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group input {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        min-height: 36px;
    }

    .help-text {
        font-size: 0.65rem;
        padding: 0.6rem;
    }

    /* Ultra-compact POS header */
    .pos-header {
        padding: 0.75rem 1rem;
    }

    .store-info h1 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .store-info p {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .user-info {
        gap: 0.75rem;
    }

    .user-selector select {
        min-width: 150px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .user-actions {
        gap: 0.5rem;
    }

    /* Ultra-compact product grid */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        justify-content: center;
        align-items: stretch;
    }

    .product-card {
        padding: 1rem;
    }

    .product-name {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .product-sku {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.75rem;
    }

    .product-price {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .product-stock {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    /* Ultra-compact search */
    .search-container {
        margin-bottom: 1rem;
    }

    .search-bar {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .search-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Ultra-compact cart */
    .cart-panel {
        padding: 1rem;
        max-width: 300px;
    }

    .cart-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .cart-header h2 {
        font-size: 1.1rem;
    }

    .cart-item {
        padding: 0.4rem 0.6rem;
        min-height: 40px;
        margin-bottom: 0.25rem;
    }

    .item-info h4 {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }

    .item-details {
        font-size: 0.65rem;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .qty-display {
        min-width: 25px;
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }

    .remove-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .item-price {
        font-size: 0.8rem;
    }

    /* Ultra-compact cart summary */
    .cart-summary {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .summary-row {
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }

    .summary-row:last-child {
        font-size: 1rem;
        padding-top: 0.5rem;
    }

    /* Ultra-compact customer/payment sections */
    .customer-section,
    .payment-section,
    .amount-section {
        margin-bottom: 1rem;
    }

    .customer-section label,
    .payment-section label,
    .amount-section label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .customer-select,
    .amount-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .payment-methods {
        gap: 0.5rem;
    }

    .payment-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Ultra-compact actions */
    .cart-actions {
        gap: 0.75rem;
    }

    .btn-process {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    /* Touch-friendly minimums */
    .btn {
        min-height: 36px;
        min-width: 36px;
    }

    /* Ultra-compact admin panel */
    .admin-header {
        padding: 0.5rem 0.75rem;
    }

    .admin-header h1 {
        font-size: 1.1rem;
    }

    .admin-container {
        margin: 1rem auto 1rem 300px !important;
        padding: 0 0.75rem 1rem !important;
        width: calc(100% - 300px) !important;
    }

    /* Global Admin Layout - let admin-sidebar.css handle margins via --sidebar-w variable */
    .admin-page .admin-container,
    body .admin-container,
    div.admin-container,
    .settings-page .admin-container {
        display: block;
        grid-template-columns: none;
    }

    /* Admin sidebar - do not override padding here; handled by admin-sidebar.css */
    .admin-page .admin-sidebar,
    body .admin-sidebar,
    nav.admin-sidebar,
    .settings-page .admin-sidebar {
        position: fixed;
        top: var(--header-h, 64px);
        left: 0;
        overflow-y: auto;
        z-index: 900;
    }

    /* Mobile responsive for all admin pages - Enhanced */
    @media (max-width: 768px) {

        .admin-page .admin-sidebar,
        body .admin-sidebar,
        nav.admin-sidebar,
        .settings-page .admin-sidebar {
            width: 100% !important;
            height: 100vh !important;
            top: 0 !important;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            z-index: 1000;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        }

        .admin-page .admin-sidebar.open,
        body .admin-sidebar.open,
        nav.admin-sidebar.open,
        .settings-page .admin-sidebar.open {
            transform: translateX(0) !important;
        }

        .admin-page .admin-container,
        body .admin-container,
        div.admin-container,
        .settings-page .admin-container {
            margin: 0.75rem auto !important;
            width: 100% !important;
            padding: 0 0.75rem !important;
        }

        /* Mobile menu toggle button */
        .mobile-menu-toggle {
            min-width: 44px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        /* Navigation links - Better touch targets */
        .nav-link {
            padding: 1rem !important;
            min-height: 48px;
            font-size: 1rem;
            touch-action: manipulation;
        }

        /* Buttons - Better touch targets */
        .btn {
            min-height: 44px;
            padding: 0.75rem 1.25rem;
            font-size: 0.95rem;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        /* Form inputs - Better mobile experience */
        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="number"],
        input[type="tel"],
        input[type="date"],
        select,
        textarea {
            min-height: 44px;
            padding: 0.75rem;
            font-size: 1rem;
            border-radius: 8px;
            -webkit-appearance: none;
            appearance: none;
        }

        /* Ultra-compact wizard */
        .wizard-card,
        .summary-card {
            padding: 1.25rem;
            border-radius: 12px;
        }

        .wizard-form input[type="text"],
        .wizard-form input[type="email"],
        .wizard-form input[type="password"] {
            padding: 0.75rem;
            font-size: 1rem;
            min-height: 44px;
        }

        .btn-gradient {
            padding: 0.75rem 1.25rem;
            font-size: 0.95rem;
            min-height: 44px;
        }

        /* Enhanced modals */
        .modal-content {
            padding: 1.5rem;
            max-width: 95%;
            width: 95%;
            margin: 1rem auto;
            border-radius: 16px;
            max-height: 90vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .modal-header h3 {
            font-size: 1.25rem;
            line-height: 1.3;
        }

        .modal-footer .btn {
            min-height: 48px;
            padding: 0.875rem 1.5rem;
        }

        /* Enhanced data tables */
        .data-table {
            font-size: 0.875rem;
            display: block;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .data-table th,
        .data-table td {
            padding: 0.75rem 0.5rem;
            font-size: 0.875rem;
            min-width: 80px;
        }

        /* Cards and containers */
        .card {
            padding: 1.25rem;
            border-radius: 12px;
            margin-bottom: 1rem;
        }

        /* Page headers */
        .page-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        /* Stats grid */
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        .stat-card {
            padding: 1rem;
        }
    }

    /* Mobile responsive for sidebar - Enhanced */
    @media (max-width: 768px) {
        .admin-sidebar {
            width: 100%;
            height: 100vh;
            top: 0;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            z-index: 1000;
        }

        .admin-sidebar.open {
            transform: translateX(0);
        }

        .admin-container {
            margin: 0.75rem auto;
            width: 100%;
            padding: 0 0.75rem;
        }

        /* Sidebar overlay */
        #sidebarOverlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
        }
    }

    @media (max-width: 768px) {
        .pos-container {
            grid-template-columns: 1fr;
            gap: 1rem;
            padding: 1rem;
        }

        .cart-panel {
            position: static;
            order: -1;
        }

        .header-content {
            flex-direction: column;
            gap: 1rem;
            align-items: stretch;
        }

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

        .user-actions {
            flex-wrap: wrap;
        }
    }

    @media (max-width: 480px) {
        .payment-methods {
            grid-template-columns: 1fr;
        }

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

        .user-actions {
            flex-direction: column;
            align-items: stretch;
        }
    }

    /* Loading Animation */
    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.5;
        }
    }

    .loading {
        animation: pulse 1.5s ease-in-out infinite;
    }

    /* Glow Effects */
    @keyframes glow {

        0%,
        100% {
            box-shadow: 0 0 20px var(--neon-red-glow);
        }

        50% {
            box-shadow: 0 0 40px var(--neon-red-glow), 0 0 60px var(--neon-red-glow);
        }
    }

    .glow {
        animation: glow 2s ease-in-out infinite;
    }

    /* Hover Effects */
    .hover-lift {
        transition: var(--transition);
    }

    .hover-lift:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

    /* Focus States */
    .focus-glow:focus {
        outline: none;
        box-shadow: 0 0 0 3px var(--neon-red-glow);
    }

    /* Custom Scrollbar for Cart Items */
    .cart-items::-webkit-scrollbar {
        width: 6px;
    }

    .cart-items::-webkit-scrollbar-track {
        background: var(--bg-tertiary);
        border-radius: var(--radius-pill);
    }

    .cart-items::-webkit-scrollbar-thumb {
        background: var(--neon-red);
        border-radius: var(--radius-pill);
    }

    .cart-items::-webkit-scrollbar-thumb:hover {
        background: var(--neon-red-bright);
    }

    .empty-cart {
        text-align: center;
        padding: 2rem;
        color: var(--text-muted);
        font-style: italic;
        background: var(--bg-glass);
        border: 1px dashed rgba(16, 185, 129, 0.3);
        border-radius: var(--radius-md);
        margin: 1rem 0;
    }

    /* Real-time notification animations */
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

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

    @keyframes slideOutRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }

    .realtime-notification {
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .realtime-notification:hover {
        transform: translateY(-2px);
    }

    /* Enhanced Wizard Animations and Interactions */
    .wizard-section {
        animation: fadeInUp 0.5s ease-out;
    }

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

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

    .wizard-step {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .wizard-step::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease-in-out;
    }

    .wizard-step:hover::before {
        left: 100%;
    }

    .wizard-step.completed::after {
        content: '✓';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.8rem;
        font-weight: bold;
    }

    /* Enhanced form interactions */
    .form-group {
        position: relative;
    }

    .form-group input:focus {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    }

    .input-status {
        font-size: 0.8rem;
        font-weight: 500;
        margin-top: 0.25rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .input-status::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        display: inline-block;
    }

    .input-status.valid {
        color: #10b981;
    }

    .input-status.valid::before {
        background: #10b981;
    }

    .input-status.invalid {
        color: #34d399;
    }

    .input-status.invalid::before {
        background: #34d399;
    }

    /* Button interactions */
    .btn {
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .btn-gradient {
        position: relative;
        overflow: hidden;
    }

    .btn-gradient::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease-in-out;
    }

    .btn-gradient:hover::after {
        left: 100%;
    }

    /* Summary card animations */
    .summary-card {
        transition: all 0.3s ease;
    }

    .summary-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
    }

    .summary-logo {
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .summary-logo:hover {
        transform: scale(1.1) rotate(5deg);
    }

    /* Loading states */
    .btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none !important;
    }

    /* Error and success animations */
    .alert {
        animation: slideInDown 0.3s ease-out;
    }

    @keyframes slideInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    /* Focus indicators for accessibility */
    .wizard-step:focus {
        outline: 2px solid var(--primary-red);
        outline-offset: 2px;
    }

    .btn:focus {
        outline: 2px solid var(--primary-red);
        outline-offset: 2px;
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {

        .wizard-section,
        .form-row,
        .alert {
            animation: none;
        }

        .btn,
        .form-group input,
        .wizard-step {
            transition: none;
        }

        .btn::after,
        .btn-gradient::after,
        .wizard-step::before {
            display: none;
        }
    }

    .setup-wizard {
        max-width: 1200px;
        margin: 2rem auto;
    }

    .wizard-steps {
        display: flex;
        justify-content: center;
        margin-bottom: 2.5rem;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .wizard-step {
        flex: 1;
        background-color: #fff;
        padding: 1rem 1.5rem;
        text-align: center;
        cursor: pointer;
        color: #555;
        font-weight: 500;
        position: relative;
        transition: background-color 0.3s, color 0.3s;
        border-right: 1px solid #e5e5e5;
    }

    .wizard-step:last-child {
        border-right: none;
    }

    .wizard-step span {
        font-weight: 600;
    }

    .wizard-step.active {
        background: var(--gradient-primary);
        color: white;
        font-weight: 700;
    }

    .wizard-step.completed {
        background-color: #e8f5e9;
        /* Light green for completed */
        color: #1e8e3e;
    }

    .wizard-step.completed::after {
        content: '✓';
        color: #1e8e3e;
        margin-left: 8px;
        font-weight: bold;
    }

    .wizard-card,
    .summary-card {
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #e9e9ed;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    }

    .wizard-body {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }

    .form-group label {
        font-weight: 600;
        color: #333;
        margin-bottom: 0.5rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        background-color: #f8f8fa;
        border: 1px solid #e0e0e0;
        padding: 12px 16px;
        border-radius: 8px;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    .form-group input:focus {
        border-color: var(--primary-red);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        background-color: #fff;
    }

    .input-hint {
        color: #777;
        font-size: 0.85rem;
    }

    .btn-gradient {
        padding: 12px 24px;
        font-weight: 600;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    }

    .summary-card {
        padding: 2rem;
        position: sticky;
        top: 2rem;
    }

    .summary-logo {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        background: var(--gradient-primary);
        color: white;
        font-size: 2rem;
    }

    @media (max-width: 992px) {
        .wizard-body {
            grid-template-columns: 1fr;
        }

        .summary-card {
            position: static;
        }
    }

    .wizard-step:hover:not(.active) {
        background-color: #f5f5f5;
    }

    .btn {
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .btn-gradient {
        position: relative;
        overflow: hidden;
    }

    .btn-gradient::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease-in-out;
    }

    .btn-gradient:hover::after {
        left: 100%;
    }

    .summary-card {
        transition: all 0.3s ease;
    }

    .summary-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
    }

    .summary-logo {
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .summary-logo:hover {
        transform: scale(1.1) rotate(5deg);
    }

    /* ===================== */
    /* Admin Header + Wizard */
    /* ===================== */
    .admin-header {
        background: var(--bg-glass);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(16, 185, 129, 0.15);
        box-shadow: var(--shadow-glass);
        padding: 1rem 1.25rem;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    /* Collapsible admin sidebar (applies across admin pages) */
    .sidebar-collapsed .admin-container {
        grid-template-columns: 64px 1fr;
    }

    .sidebar-collapsed .admin-sidebar {
        width: 64px;
        padding: 1rem 0;
    }

    .sidebar-collapsed .admin-sidebar .sidebar-header h3,
    .sidebar-collapsed .admin-sidebar .nav-section-title,
    .sidebar-collapsed .admin-sidebar .nav-item span:not(.nav-icon) {
        display: none;
    }

    .sidebar-collapsed .admin-sidebar .nav-menu {
        padding: 0 0.5rem;
    }

    .sidebar-collapsed .admin-sidebar .nav-item {
        padding: 0.75rem;
        justify-content: center;
    }

    .sidebar-collapsed .admin-sidebar .nav-icon {
        margin-right: 0;
    }

    .sidebar-collapsed .admin-sidebar .sidebar-actions {
        flex-direction: column;
    }

    /* Admin pages: clear, readable buttons */
    .admin-page .btn {
        font-weight: 700;
        letter-spacing: 0.2px;
        color: #1f2937;
        /* dark text by default for contrast */
        text-shadow: none;
    }

    .admin-page .btn-primary {
        background: #ffffff;
        color: #059669;
        border: 1px solid #059669;
    }

    .admin-page .btn-primary:hover {
        background: #fff5f5;
    }

    .admin-page .btn-outline {
        background: #ffffff;
        color: #059669;
        border: 1px solid #059669;
    }

    .admin-page .btn-outline:hover {
        background: #ecfdf5;
    }

    /* Sidebar action buttons readability */
    .admin-page .admin-sidebar .btn {
        color: #059669;
    }

    /* Admin Dashboard Button Visibility Fix */
    .user-actions .btn-primary {
        background: var(--gradient-primary) !important;
        color: #ffffff !important;
        border: 2px solid var(--primary-red) !important;
        font-weight: 700 !important;
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.5) !important;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    }

    .user-actions .btn-primary:hover {
        background: var(--primary-red-light) !important;
        color: #ffffff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    }

    .user-actions .btn-primary:active {
        transform: translateY(0) !important;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
    }

    /* Additional button visibility improvements for all themes */
    .user-actions .btn {
        font-weight: 600 !important;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.3) !important;
        border: 2px solid transparent !important;
        transition: all 0.3s ease !important;
    }

    .user-actions .btn-warning {
        background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%) !important;
        color: #ffffff !important;
        border-color: #ff8c00 !important;
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.5) !important;
    }

    .user-actions .btn-outline {
        background: rgba(255, 255, 255, 0.9) !important;
        color: var(--primary-red) !important;
        border-color: var(--primary-red) !important;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.2) !important;
    }

    .user-actions .btn-outline:hover {
        background: var(--primary-red) !important;
        color: #ffffff !important;
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.5) !important;
    }

    /* Sidebar primary button as white with red text */
    .admin-page .admin-sidebar .btn-primary {
        background: #ffffff;
        color: #059669;
        border: 1px solid #059669;
    }

    .admin-page .admin-sidebar .btn-primary:hover {
        background: #fff5f5;
    }

    /* Legacy sidebar styles - keeping for backward compatibility */
    .admin-sidebar .sidebar-header .btn,
    .admin-sidebar .sidebar-header a,
    .admin-sidebar .sidebar-header button {
        display: none !important;
    }

    .admin-header .admin-header-left {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .admin-header h1 {
        font-size: 1.4rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .admin-header .account-name {
        color: var(--text-secondary);
        font-weight: 500;
    }

    .admin-header .header-actions {
        display: flex;
        gap: .5rem;
    }

    /* Global mobile menu toggle for all admin pages */
    .admin-page .mobile-menu-toggle {
        display: none;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 101;
    }

    .admin-page .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .admin-page .mobile-menu-toggle:hover span {
        background: #fecaca;
    }

    @media (max-width: 768px) {
        .admin-page .mobile-menu-toggle {
            display: flex;
        }

        .admin-page .header-actions .btn {
            display: none;
        }

        .admin-page .header-actions .btn:first-of-type {
            display: inline-block;
        }
    }

    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: none;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 101;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover span {
        background: var(--accent-red);
    }

    @media (max-width: 768px) {
        .mobile-menu-toggle {
            display: flex;
        }

        .admin-header .header-actions .btn {
            display: none;
        }

        .admin-header .header-actions .btn:first-of-type {
            display: inline-block;
        }
    }

    .admin-container {
        max-width: 1100px !important;
        margin: 2rem auto 2rem 300px !important;
        padding: 0 1rem 2rem !important;
        width: calc(100% - 300px) !important;
    }

    /* Sales List Styles */
    .sales-list {
        max-height: 400px;
        overflow-y: auto;
        padding-right: 8px;
    }

    .sales-list::-webkit-scrollbar {
        width: 6px;
    }

    .sales-list::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 3px;
    }

    .sales-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

    .sales-list::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    .sale-item {
        display: flex;
        align-items: center;
        padding: 0.75rem;
        border-bottom: 1px solid #e2e8f0;
        transition: background-color 0.2s ease;
        min-height: 60px;
    }

    .sale-item:hover {
        background-color: #f8fafc;
    }

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

    .sale-info {
        flex: 1;
        min-width: 0;
    }

    .sale-number {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .sale-cashier {
        color: var(--text-secondary);
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sale-details {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .sale-total {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .sale-time {
        color: var(--text-secondary);
        font-size: 0.75rem;
    }

    .sale-payment {
        flex: 0 0 auto;
        margin-left: 0.75rem;
    }

    .payment-badge {
        display: inline-block;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.025em;
    }

    .payment-badge.payment-cash {
        background: #dcfce7;
        color: #166534;
    }

    .payment-badge.payment-card {
        background: #dbeafe;
        color: #1e40af;
    }

    .payment-badge.payment-credit {
        background: #fef3c7;
        color: #92400e;
    }

    .payment-badge.payment-mobile {
        background: #e0e7ff;
        color: #3730a3;
    }

    /* Compact layout for smaller screens */
    @media (max-width: 768px) {
        .sale-item {
            padding: 0.5rem;
            min-height: 50px;
        }

        .sale-number {
            font-size: 0.8rem;
        }

        .sale-cashier {
            font-size: 0.7rem;
        }

        .sale-total {
            font-size: 0.8rem;
        }

        .sale-time {
            font-size: 0.7rem;
        }

        .payment-badge {
            padding: 0.2rem 0.4rem;
            font-size: 0.7rem;
        }
    }

    /* Ultra-compact layout for very small screens */
    @media (max-width: 480px) {
        .sale-item {
            flex-direction: column;
            align-items: flex-start;
            padding: 0.5rem;
            min-height: auto;
        }

        .sale-details {
            text-align: left;
            margin-top: 0.25rem;
        }

        .sale-payment {
            margin-left: 0;
            margin-top: 0.25rem;
        }
    }

    .readings-container {
        min-height: 100vh;
        background: var(--bg-primary);
        padding: 2rem;
    }

    .readings-header {
        background: var(--bg-glass);
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: var(--radius-lg);
        padding: 2rem;
        margin-bottom: 2rem;
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-glass);
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }

    .header-left h1 {
        color: var(--text-primary);
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .header-left p {
        color: var(--text-secondary);
        font-size: 1rem;
        margin: 0;
    }

    .header-actions {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .readings-main {
        background: var(--bg-glass);
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: var(--radius-lg);
        padding: 2rem;
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-glass);
    }

    /* Mobile responsiveness for readings layout */
    @media (max-width: 768px) {
        .readings-container {
            padding: 1rem;
        }

        .readings-header {
            padding: 1.5rem;
        }

        .header-content {
            flex-direction: column;
            gap: 1rem;
            text-align: center;
        }

        .header-left h1 {
            font-size: 1.5rem;
        }

        .header-actions {
            flex-wrap: wrap;
            justify-content: center;
        }

        .readings-main {
            padding: 1.5rem;
        }
    }

    .admin-main .page-header {
        margin-bottom: 1rem;
    }

    .admin-main .page-header h2 {
        font-size: 1.3rem;
    }

    .admin-main .page-header p {
        color: var(--text-secondary);
    }

    .readings-main .page-header {
        margin-bottom: 1rem;
    }

    .readings-main .page-header h2 {
        font-size: 1.3rem;
    }

    .readings-main .page-header p {
        color: var(--text-secondary);
    }

    /* Wizard Shell */
    .setup-wizard {
        display: grid;
        gap: 1.25rem;
    }

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

    .wizard-step {
        display: flex;
        align-items: center;
        gap: .6rem;
        background: var(--bg-glass);
        border: 1px solid rgba(16, 185, 129, 0.15);
        border-radius: var(--radius-lg);
        padding: .6rem .9rem;
        cursor: pointer;
        transition: var(--transition);
        color: var(--text-secondary);
        user-select: none;
    }

    .wizard-step:hover {
        border-color: var(--primary-red);
        box-shadow: var(--shadow-hover);
    }

    .wizard-step.active {
        background: var(--gradient-primary);
        color: #fff;
        border-color: var(--primary-red);
        box-shadow: var(--shadow-neon);
    }

    .wizard-step.completed {
        border-color: var(--primary-red);
    }

    .step-number {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: .9rem;
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }

    .wizard-step.active .step-number {
        background: rgba(255, 255, 255, .2);
        color: #fff;
    }

    /* Wizard Layout */
    .wizard-body {
        display: grid;
        grid-template-columns: 1.4fr .9fr;
        gap: 1.25rem;
    }

    .wizard-card,
    .summary-card {
        background: var(--bg-glass);
        border: 1px solid rgba(16, 185, 129, 0.15);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-card);
    }

    .wizard-card {
        padding: 1.25rem;
    }

    .summary-card {
        padding: 1.25rem;
        position: sticky;
        top: 96px;
        height: fit-content;
    }

    .summary-logo {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        background: var(--bg-tertiary);
        border: 1px solid rgba(16, 185, 129, .15);
        font-size: 1.7rem;
        margin-bottom: .75rem;
    }

    .summary-title {
        font-size: 1.15rem;
        font-weight: 700;
    }

    .summary-sub {
        color: var(--text-secondary);
        margin-bottom: .75rem;
    }

    .summary-details {
        display: grid;
        gap: .35rem;
        font-size: .95rem;
        color: var(--text-secondary);
    }

    /* Sections */
    .wizard-section {
        outline: none;
    }

    .section-title {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .divider {
        height: 1px;
        background: rgba(16, 185, 129, .15);
        margin: .6rem 0 1rem;
    }

    /* Form Grid */
    .wizard-form .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .9rem;
    }

    .wizard-form .form-group {
        margin-bottom: .85rem;
    }

    /* Inputs */
    .wizard-form input[type="text"],
    .wizard-form input[type="email"],
    .wizard-form input[type="password"],
    .wizard-form input[type="file"] {
        background: var(--bg-glass);
        border: 1.5px solid rgba(16, 185, 129, .25);
        border-radius: var(--radius-md);
        padding: .7rem .9rem;
        color: var(--text-primary);
        transition: var(--transition);
    }

    .wizard-form input:focus {
        outline: none;
        border-color: var(--primary-red);
        box-shadow: 0 0 0 3px var(--primary-red-glow);
    }

    /* Hints & inline status */
    .with-hint {
        position: relative;
    }

    .input-hint {
        color: var(--text-muted);
        font-size: .8rem;
    }

    .input-status {
        font-size: .8rem;
    }

    .input-status.valid {
        color: #16a34a;
    }

    .input-status.invalid {
        color: #34d399;
    }

    /* Password meter */
    .password-meter {
        height: 8px;
        background: var(--bg-tertiary);
        border-radius: 999px;
        overflow: hidden;
        border: 1px solid rgba(16, 185, 129, 0.2);
        margin-top: .35rem;
    }

    .password-meter span {
        display: block;
        height: 100%;
        width: 0%;
        background: var(--primary-red);
        transition: width .25s ease;
    }

    /* Actions */
    .wizard-actions {
        display: flex;
        gap: .6rem;
        justify-content: flex-end;
        margin-top: .75rem;
    }

    /* Buttons */
    .btn-gradient {
        background: var(--gradient-primary);
        color: #fff;
        box-shadow: var(--shadow-neon);
    }

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 28px var(--primary-red-glow);
    }

    /* Alerts refinement for setup page */
    .alert {
        border: 1px solid transparent;
    }

    .alert-success {
        background: rgba(34, 197, 94, .1);
        border-color: rgba(34, 197, 94, .35);
        color: #16a34a;
    }

    .alert-error {
        background: rgba(239, 68, 68, .1);
        border-color: rgba(239, 68, 68, .4);
        color: #047857;
    }

    /* Review grid */
    .review-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .review-list {
        list-style: none;
        padding-left: 0;
        display: grid;
        gap: .35rem;
    }

    .review-list li {
        background: var(--bg-tertiary);
        border: 1px solid rgba(16, 185, 129, .12);
        border-radius: var(--radius-md);
        padding: .5rem .65rem;
    }

    /* Responsive */
    @media (max-width: 992px) {
        .wizard-body {
            grid-template-columns: 1fr;
        }

        .summary-card {
            position: relative;
            top: auto;
        }
    }

    @media (max-width: 700px) {
        .wizard-form .form-row {
            grid-template-columns: 1fr;
        }

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