/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */
:root {
    --primary-color: #FF5050;
    --primary-dark: #E93347;
    --secondary-color: #1e3c72;
    --background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    --surface-light: #ffffff;
    --surface-secondary: #f8f9fb;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e8eaee;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* background: var(--background); */
    background: #F4ECE7;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p, span, label {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: var(--surface-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header-left img.logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-left img.logo:hover {
    transform: scale(1.05);
}

.header h1 {
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin: 0;
}

.branch-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface-secondary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.branch-selector label {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.branch-selector select {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
}

.branch-selector select:hover {
    border-color: var(--primary-color);
}

.branch-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.current-time {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logout-btn {
    background: var(--surface-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.nav-menu {
    background: var(--surface-light);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-menu::-webkit-scrollbar {
    height: 4px;
}

.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    font-family: 'Manrope', sans-serif;
}

.nav-btn:hover:not(.active) {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 80, 80, 0.3);
    clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
    padding: 0.8rem 2rem;
}

.nav-icon {
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-btn.active .nav-icon svg {
    stroke: white;
}

/* ============================================
   ADVERTISEMENT BANNER
   ============================================ */
.ad-banner-container {
    position: relative;
    width: 100%;
    background: var(--surface-light);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.ad-banner-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
    transition: opacity 0.2s ease;
}

.ad-banner-wrapper:hover {
    cursor: grab;
}

.ad-banner-wrapper:active {
    cursor: grabbing;
}

.ad-banner-wrapper.grabbing {
    cursor: grabbing;
    opacity: 0.8;
}

.ad-banner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.ad-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-secondary);
    position: relative;
    overflow: hidden;
}

.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ad-slide-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.ad-slide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 3rem;
}

/* Banner Controls */
.ad-banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
    pointer-events: none;
}

.ad-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
    font-weight: bold;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.ad-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ad-nav-btn:active {
    transform: scale(0.95);
}

/* Banner Indicators */
.ad-indicators {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    background: var(--surface-light);
}

.ad-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.ad-indicator:hover {
    background: var(--text-light);
}

.ad-indicator.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 2rem;
    max-width: 1900px;
    margin: 0 auto;
}

.page-section {
    display: none;
    animation: fadeInUp 0.4s ease;
}

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

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

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

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

.date-display {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */
.primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    background: var(--surface-secondary);
    color: var(--primary-color);
}

.danger-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    box-shadow: var(--shadow-sm);
}

.danger-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 80, 80, 0.4);
}

/* ============================================
   DASHBOARD GRID & CARDS
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f5f7fa, #f0f2f5);
}

.revenue-card .stat-icon { background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(34, 153, 84, 0.15)); }
.sessions-card .stat-icon { background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(41, 128, 185, 0.15)); }
.members-card .stat-icon { background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(142, 68, 173, 0.15)); }
.addons-card .stat-icon { background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(211, 84, 0, 0.15)); }
.service-card .stat-icon { background: linear-gradient(135deg, rgba(26, 188, 156, 0.15), rgba(22, 160, 133, 0.15)); }

.stat-content h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.dashboard-section {
    background: var(--surface-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.dashboard-section h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* ============================================
   BRANCH STATS
   ============================================ */
.branch-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.branch-stat-item {
    background: var(--surface-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.branch-stat-item:hover {
    background: linear-gradient(135deg, var(--surface-secondary), #f5f8ff);
}

.branch-stat-item h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.branch-stat-item p {
    color: var(--text-secondary);
    margin: 0.6rem 0;
    font-size: 0.95rem;
}

/* ============================================
   TRANSACTIONS
   ============================================ */
.transactions-list {
    max-height: 400px;
    overflow-y: auto;
}

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

.transactions-list::-webkit-scrollbar-track {
    background: var(--surface-secondary);
    border-radius: 3px;
}

.transactions-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.transaction-item:hover {
    background: var(--surface-secondary);
}

.transaction-info {
    flex: 1;
}

.transaction-info strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    display: block;
}

.transaction-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.transaction-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success);
    min-width: 120px;
    text-align: right;
}

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

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

/* ============================================
   TABLES SECTION
   ============================================ */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.table-card {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.table-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.table-card.idle {
    border-color: var(--text-light);
    opacity: 0.8;
}

.table-card.active {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(34, 153, 84, 0.05));
}

.table-card.reserved {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.05), rgba(211, 84, 0, 0.05));
}

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

.table-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.table-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-status.idle {
    background: var(--text-light);
    color: white;
}

.table-status.active {
    background: var(--success);
    color: white;
}

.table-status.reserved {
    background: var(--warning);
    color: white;
}

.table-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.table-info p {
    margin: 0.5rem 0;
}

.table-timer {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success);
    margin: 1.2rem 0;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.table-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.table-btn {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.start-btn {
    background: #FF5050;
    color: white;
}

.start-btn:hover {
    background: #FF5050;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.view-btn {
    background: var(--secondary-color);
    color: white;
}

.view-btn:hover {
    background: #152d4f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   MEMBERS SECTION
   ============================================ */
.members-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input,
.filter-select {
    padding: 0.8rem 1.2rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    background: var(--surface-light);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input {
    flex: 1;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.1);
}

.filter-select {
    cursor: pointer;
    outline: none;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary-color);
    background: var(--surface-secondary);
}

.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.member-card {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

.member-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
}

.member-type-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-type-badge.VIP {
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.2), rgba(255, 107, 107, 0.2));
    color: var(--primary-color);
}

.member-type-badge.Student {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.2));
    color: #3498db;
}

.member-type-badge.Regular {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.2), rgba(127, 140, 141, 0.2));
    color: #7f8c8d;
}

.member-details h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.member-details p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.3rem 0;
}

.member-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.member-stat {
    flex: 1;
    text-align: center;
}

.member-stat strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
}

.member-stat span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.3rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ============================================
   ADD-ONS SECTION
   ============================================ */
.addons-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: 'Manrope', sans-serif;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.addon-card {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.addon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.addon-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    display: block;
}

.addon-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.addon-category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.addon-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
}

.addon-stock {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.4rem 0;
}

/* ============================================
   REPORTS SECTION
   ============================================ */
.report-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

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

.report-card,
.detailed-report {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.report-card h3,
.detailed-report h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.report-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.report-row:last-child {
    border-bottom: none;
}

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

.report-value {
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
}

.transactions-table {
    overflow-x: auto;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.transactions-table th {
    background: var(--surface-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
}

.transactions-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.transactions-table tr:hover {
    background: var(--surface-secondary);
}

/* ============================================
   SETTINGS SECTION STYLING
   ============================================ */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #FF5050;
    transition: all 0.3s ease;
}

.settings-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.settings-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.form-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.8rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF5050;
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    font-size: 0.85rem;
    color: #999;
}

.primary-btn {
    padding: 0.8rem 1.5rem;
    background: #FF5050;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.primary-btn:hover {
    background: #E93347;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 80, 80, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
}

.settings-message {
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    min-height: 20px;
    margin-top: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.settings-message.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
}

.settings-message.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
}

.settings-message.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    opacity: 1;
}

/* ============================================
   RECEIPT MODAL STYLING
   ============================================ */

.receipt-modal {
    max-width: 500px;
    width: 90%;
}

.print-area {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-height: 600px;
    overflow-y: auto;
}

.receipt {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    text-align: left;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #333;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.receipt-header h1 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.receipt-header p {
    font-size: 11px;
    margin: 0.3rem 0;
    color: #666;
}

.receipt-body {
    margin-bottom: 1rem;
}

.receipt-section {
    margin-bottom: 0.8rem;
}

.receipt-section h3 {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px dashed #999;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin: 0.3rem 0;
    color: #555;
}

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

.receipt-footer {
    text-align: center;
    border-top: 2px dashed #333;
    border-bottom: 2px dashed #333;
    padding: 0.8rem 0;
    margin-top: 1rem;
}

.receipt-footer p {
    font-size: 11px;
    margin: 0.3rem 0;
    color: #666;
}

.total-amount {
    font-weight: bold;
    font-size: 13px;
    margin: 0.5rem 0;
    color: #333;
}

.receipt-footer .receipt-item {
    font-weight: 600;
    margin: 0.5rem 0;
}

/* Receipt bottom message */
.receipt-bottom-message {
    text-align: center;
    margin-top: 1rem;
    font-size: 11px;
    color: #666;
}

/* ============================================
   RESPONSIVE SETTINGS
   ============================================ */

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

    .settings-card {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .receipt-modal {
        max-width: 100%;
    }

    .receipt {
        font-size: 12px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    /* Hide everything except the receipt */
    body {
        margin: 0;
        padding: 0;
        background: white;
    }

    .header,
    .nav-menu,
    .ad-banner-container,
    .section-header,
    .modal-header,
    .modal-footer,
    .no-print {
        display: none !important;
    }

    .modal {
        position: static;
        width: 100%;
        height: auto;
        background: white;
        box-shadow: none;
        border: none;
    }

    .modal-content {
        position: static;
        width: 100%;
        padding: 0;
        box-shadow: none;
        transform: none;
    }

    .modal-body {
        padding: 0;
    }

    .print-area {
        border: none;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        background: white;
        padding: 0;
    }

    .receipt {
        width: 400px;
        margin: 0 auto;
    }

    .receipt-header {
        page-break-after: avoid;
    }

    .receipt-body {
        page-break-inside: avoid;
    }

    .receipt-footer {
        page-break-before: avoid;
    }

    /* Ensure colors print correctly */
    .receipt-header,
    .receipt-section h3,
    .receipt-footer {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ============================================
   ANIMATION FOR SETTINGS
   ============================================ */

@keyframes slideInSettings {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-card {
    animation: slideInSettings 0.4s ease forwards;
}

.settings-card:nth-child(1) { animation-delay: 0.1s; }
.settings-card:nth-child(2) { animation-delay: 0.2s; }
.settings-card:nth-child(3) { animation-delay: 0.3s; }
.settings-card:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   SETTINGS EDIT MODAL
   ============================================ */

#settingsEditModal .modal-content {
    max-width: 400px;
}

#settingLabel {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

#settingValue {
    padding: 0.8rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

#settingValue:focus {
    outline: none;
    border-color: #FF5050;
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.1);
}

#settingHint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;

}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--danger);
    background: var(--surface-secondary);
    border-radius: var(--radius-sm);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: var(--surface-secondary);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.session-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-btn {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--surface-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    color: var(--text-primary);
}

.type-btn:hover {
    background: var(--surface-secondary);
    border-color: var(--primary-color);
}

.type-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.type-icon {
    font-size: 2.2rem;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    color: var(--text-primary);
    background: var(--surface-light);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.1);
}

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

.scan-btn {
    margin-top: 0.6rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    width: 100%;
    transition: all 0.3s ease;
}

.scan-btn:hover {
    background: #152d4f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.member-info {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(34, 153, 84, 0.1));
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    border-left: 4px solid var(--success);
}

.member-info h4 {
    color: var(--success);
    margin-bottom: 0.5rem;
}

.member-info p {
    color: var(--text-secondary);
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* ============================================
   SESSION TIMER & BILLING
   ============================================ */
.session-timer {
    text-align: center;
    background: linear-gradient(135deg, var(--success), #229954);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.timer-display {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.timer-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.session-details {
    background: var(--surface-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.session-details p {
    margin: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.session-details strong {
    color: var(--text-primary);
}

.addons-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.addon-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.addon-select-btn {
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: var(--surface-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
}

.addon-select-btn:hover {
    border-color: var(--primary-color);
    background: var(--surface-secondary);
}

.addon-select-btn.selected {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(34, 153, 84, 0.15));
    border-color: var(--success);
}

.addon-select-btn strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.addon-select-btn span {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.selected-addons {
    background: var(--surface-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.selected-addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.6rem;
}

.selected-addon-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.selected-addon-item strong {
    color: var(--success);
    font-size: 0.9rem;
}

.remove-addon-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-addon-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.billing-preview {
    background: var(--surface-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.billing-preview h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.billing-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 0.8rem;
    padding-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
}

/* ============================================
   PAYMENT SECTION
   ============================================ */
.bill-summary {
    background: var(--surface-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.payment-methods h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.payment-btn {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--surface-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Manrope', sans-serif;
    color: var(--text-primary);
}

.payment-btn:hover {
    border-color: var(--primary-color);
    background: var(--surface-secondary);
}

.payment-btn.active {
    background: var(--success);
    color: white;
    border-color: var(--success);
    box-shadow: var(--shadow-md);
}

.amount-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
}

.amount-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.1);
}

.change-display {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(34, 153, 84, 0.1));
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 1rem;
    border-left: 4px solid var(--success);
}

.change-display strong {
    display: block;
    font-size: 1.3rem;
    color: var(--success);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
}

/* ============================================
   RECEIPT
   ============================================ */
.receipt {
    background: white;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
}

.receipt-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 1rem;
}

.receipt-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.receipt-body {
    margin-bottom: 1.5rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted var(--text-primary);
}

.receipt-footer {
    text-align: center;
    border-top: 2px solid var(--text-primary);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .main-content {
        padding: 1.5rem;
    }

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

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

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

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

    .ad-banner-wrapper {
        height: 320px;
    }

    .ad-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu {
        overflow-x: auto;
        padding: 0.8rem 0.5rem;
        gap: 0.3rem;
    }

    .nav-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .nav-btn.active {
        padding: 0.7rem 1.2rem;
        clip-path: none;
        border-radius: var(--radius-md);
    }

    .ad-banner-wrapper {
        height: 230px;
    }

    .ad-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        padding: 0;
    }

    .ad-banner-controls {
        padding: 0 0.5rem;
    }

    .main-content {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

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

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

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

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

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

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

    .members-controls {
        flex-direction: column;
    }

    .search-input,
    .filter-select {
        width: 100%;
    }

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

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

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .primary-btn,
    .secondary-btn,
    .danger-btn {
        width: 100%;
    }

    .quick-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .session-type-selector {
        flex-direction: column;
    }

    .type-btn {
        width: 100%;
    }

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

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

    .payment-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .header {
        padding: 0.8rem;
    }

    .header-left {
        flex-direction: column;
        width: 100%;
    }

    .header-left img.logo {
        height: 40px;
        margin: 0;
    }

    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .current-time {
        font-size: 0.9rem;
    }

    .logout-btn {
        width: 100%;
        padding: 0.6rem 1rem;
    }

    .nav-menu {
        padding: 0.6rem 0.4rem;
        gap: 0.2rem;
    }

    .nav-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }

    .nav-icon {
        width: 18px;
        height: 18px;
    }

    .ad-banner-wrapper {
        height: 200px;
    }

    .ad-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .ad-indicators {
        padding: 0.8rem;
    }

    .ad-indicator {
        width: 10px;
        height: 10px;
    }

    .ad-indicator.active {
        width: 24px;
    }

    .main-content {
        padding: 0.8rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .dashboard-grid {
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .dashboard-section {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

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

    .table-card {
        padding: 1.2rem;
    }

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

    .addon-icon {
        font-size: 2rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
    }

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

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .nav-menu,
    .ad-banner-container,
    .modal-header,
    .modal-footer {
        display: none;
    }

    .receipt {
        border: none;
        box-shadow: none;
    }

    body {
        background: white;
    }
}





.new-game-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
}
/* Add-on inventory options */
#addonInventoryFields {
    margin-top: -0.25rem;
}

.addon-inline-option {
    margin-bottom: 1rem;
}

.addon-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    font-weight: 700;
    cursor: pointer;
}

.addon-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex: 0 0 auto;
}

/* ============================================================
   SHIFT REPORT — PREMIUM REDESIGN
   ============================================================ */

/* TOP CONTROL BAR */
.sr-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border: 1px solid #f0ebe3;
}

.sr-date-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sr-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sr-date-input {
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e8e0d8;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #2c3e50;
    background: #faf8f5;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 150px;
}
.sr-date-input:focus { border-color: #ff4d4d; }

/* SHIFT PILL BUTTONS */
.sr-pill-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.sr-pill {
    height: 40px;
    padding: 0 20px;
    border: 2px solid #e8e0d8;
    border-radius: 50px;
    background: #faf8f5;
    color: #666;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.sr-pill:hover {
    border-color: #ff4d4d;
    color: #ff4d4d;
    background: #fff5f5;
}
.sr-pill.active {
    background: #ff4d4d;
    border-color: #ff4d4d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255,77,77,0.28);
}

/* ACTION BUTTONS */
.sr-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.sr-load-btn {
    height: 40px;
    padding: 0 22px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
    white-space: nowrap;
}
.sr-load-btn:hover { background: #1a252f; transform: translateY(-1px); }
.sr-load-btn:active { transform: translateY(0); }

.sr-print-btn {
    height: 40px;
    padding: 0 22px;
    background: linear-gradient(135deg, #ff4d4d, #e53935);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.18s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(255,77,77,0.3);
    white-space: nowrap;
}
.sr-print-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sr-print-btn:active { transform: translateY(0); }

/* EMPTY STATE */
.sr-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #aaa;
    font-size: 1rem;
    gap: 12px;
}
.sr-empty-icon { font-size: 3rem; opacity: 0.5; }

/* 2-COLUMN LAYOUT */
.sr-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .sr-layout { grid-template-columns: 1fr; }
    .sr-actions { margin-left: 0; width: 100%; }
    .sr-topbar { flex-direction: column; align-items: stretch; }
}

/* LEFT COLUMN — SUMMARY CARDS */
.sr-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sr-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border: 1px solid #f0ebe3;
}

.sr-card-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f0ea;
}

/* STAT ROWS inside cards */
.sr-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f9f5f0;
    font-size: 0.9rem;
}
.sr-stat-row:last-child { border-bottom: none; }
.sr-stat-label { color: #666; font-weight: 500; }
.sr-stat-value { font-weight: 700; color: #2c3e50; }
.sr-stat-value.highlight {
    color: #ff4d4d;
    font-size: 1.05rem;
}

/* Summary header row with icon */
.sr-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.sr-summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.sr-icon-green  { background: #e8f8f0; }
.sr-icon-blue   { background: #e8f0fb; }
.sr-icon-orange { background: #fff3e0; }
.sr-icon-red    { background: #fdecea; }

/* Session badge */
.sr-sessions-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4ff;
    color: #2c3e50;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

/* Payment method pills */
.sr-pay-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f9f5f0;
    font-size: 0.88rem;
}
.sr-pay-row:last-child { border-bottom: none; }
.sr-pay-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.sr-pay-label { flex: 1; color: #555; font-weight: 600; }
.sr-pay-amount { font-weight: 700; color: #2c3e50; }

/* RIGHT COLUMN — RECEIPT PREVIEW */
.sr-right {
    position: sticky;
    top: 80px;
}

.sr-preview-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    border: 1px solid #f0ebe3;
    overflow: hidden;
}

.sr-preview-header {
    background: #2c3e50;
    color: white;
    padding: 14px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sr-preview-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    background: #f9f5ef;
}

.sr-receipt-box {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12.5px;
    line-height: 1.6;
    white-space: pre;
    background: #ffffff;
    color: #111;
    padding: 20px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    width: 100%;
    max-width: 320px;
    word-break: break-all;
}

/* Transaction table inside shift report */
.sr-txn-table-wrap {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border: 1px solid #f0ebe3;
    padding: 20px 22px;
    margin-top: 20px;
    grid-column: 1 / -1;
    overflow-x: auto;
}
.sr-txn-table-wrap h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 14px;
}
.sr-txn-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.sr-txn-table-wrap th {
    background: #f5efe6;
    color: #555;
    font-weight: 700;
    padding: 9px 10px;
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.sr-txn-table-wrap td {
    padding: 9px 10px;
    border-bottom: 1px solid #f5f0ea;
    color: #333;
    vertical-align: middle;
}
.sr-txn-table-wrap tr:last-child td { border-bottom: none; }
.sr-txn-table-wrap tr:hover td { background: #fdf8f3; }

/* FNB item chips */
.sr-fnb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5efe6;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    margin: 2px;
}

/* ============================================================
   SR-SHELL — Outer 2-column layout: stats LEFT, receipt RIGHT
   Receipt preview is always visible; stats load on demand
   ============================================================ */

.sr-shell {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1100px) {
    .sr-shell {
        grid-template-columns: 1fr;
    }
    .sr-shell-right {
        order: -1; /* preview appears above stats on small screens */
    }
}

.sr-shell-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.sr-shell-right {
    min-width: 0;
}

/* Stats area — flex column of cards */
.sr-stats-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Inline empty state (inside left column) */
.sr-empty-inline {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0ebe3;
    padding: 40px 20px;
    flex-direction: row;
    gap: 14px;
    justify-content: flex-start;
}
.sr-empty-inline .sr-empty-icon {
    font-size: 2rem;
    opacity: 0.4;
    margin-bottom: 0;
}
.sr-empty-inline p {
    font-size: 0.9rem;
    color: #999;
}

/* Sticky receipt preview card */
.sr-preview-sticky {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

/* Preview header — dark bar with label + print btn */
.sr-preview-header {
    background: linear-gradient(135deg, #1e293b, #2c3e50);
    color: white;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 14px 14px 0 0;
    flex-shrink: 0;
}
.sr-preview-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d4d;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(255,77,77,0.7);
    animation: srDotPulse 2s infinite;
}
@keyframes srDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Print button inside receipt header */
.sr-preview-print-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255,77,77,0.35);
}
.sr-preview-print-btn:hover  { filter: brightness(1.1); transform: translateY(-1px); }
.sr-preview-print-btn:active { transform: translateY(0); }

/* Scrollable receipt body */
.sr-preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f4ece3;
    display: flex;
    justify-content: center;
}

/* The receipt paper box */
.sr-receipt-box {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre;
    background: #ffffff;
    color: #111;
    padding: 18px 14px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13),
                0 1px 0 #e5d8c8 inset;
    width: 100%;
    max-width: 300px;
    word-break: break-all;
    /* Tear-off top edge effect */
    border-top: 3px dashed #e0d0c0;
    position: relative;
}
/* Paper top curl */
.sr-receipt-box::before {
    content: '';
    display: block;
    height: 4px;
    background: repeating-linear-gradient(90deg, #f5ece0 0px, #f5ece0 6px, #e8d8c8 6px, #e8d8c8 12px);
    margin: -18px -14px 14px -14px;
    border-radius: 0;
}

/* Preview footer — session count + total */
.sr-preview-footer {
    background: #f9f5f0;
    border-top: 1px solid #ede5d8;
    padding: 10px 16px;
    border-radius: 0 0 14px 14px;
    flex-shrink: 0;
    text-align: center;
}

/* Remove old sr-layout class usage — shells replace it */
.sr-layout {
    /* keep for backward compat but shell takes over */
    display: block;
}

/* ============================================================
   VOID SYSTEM — Premium UI Styles
   Tasks 2, 3, 5, 7
   ============================================================ */

/* ── Section Headers (Daily Txns + Void History) ─────────── */
.void-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0ebe3;
}
.void-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.void-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef4ff;
    color: #2980b9;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.void-section-header h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 2px;
    letter-spacing: 0.3px;
}
.void-section-header p {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}
.void-refresh-btn {
    padding: 8px 18px;
    background: #f5efe6;
    border: 1.5px solid #e0d6c8;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}
.void-refresh-btn:hover { background: #e8e0d4; color: #2c3e50; }

/* ── Table ─────────────────────────────────────────────────── */
.void-table-wrap {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border: 1px solid #f0ebe3;
    overflow: hidden;
    overflow-x: auto;
    margin-bottom: 8px;
}
.void-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.void-table th {
    background: #f8f4ef;
    color: #888;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 14px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #ede5d8;
}
.void-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f5f0ea;
    color: #333;
    vertical-align: middle;
}
.void-table tr:last-child td { border-bottom: none; }
.void-table tbody tr:hover td { background: #fdf9f5; }
.void-row-voided td { opacity: 0.55; text-decoration-color: #e74c3c; }
.void-row-voided td:not(:last-child) { text-decoration: line-through; }

/* ── Status Badges ─────────────────────────────────────────── */
.void-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.void-badge-done   { background: #e8f8f0; color: #27ae60; }
.void-badge-active { background: #fff3e0; color: #f39c12; }
.void-badge-voided { background: #fdecea; color: #e74c3c; }

/* ── Void Action Button (in table) ─────────────────────────── */
.void-btn {
    padding: 5px 12px;
    background: transparent;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.void-btn:hover {
    background: #e74c3c;
    color: white;
    box-shadow: 0 3px 10px rgba(231,76,60,0.25);
    transform: translateY(-1px);
}
.void-btn:active { transform: translateY(0); }

/* ── Void Modal Box ─────────────────────────────────────────── */
.void-modal-box {
    background: #ffffff;
    border-radius: 18px;
    width: 460px;
    max-width: 94vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    overflow: hidden;
    animation: voidModalIn 0.22s ease;
}
@keyframes voidModalIn {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal header */
.void-modal-header {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.void-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.void-modal-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}
.void-modal-header h3 {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: white;
}
.void-modal-header p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
}
.void-modal-close {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
    line-height: 1;
}
.void-modal-close:hover { background: rgba(255,255,255,0.22); }

/* Modal body */
.void-modal-body {
    padding: 22px 22px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Transaction summary card inside modal */
.void-summary-card {
    background: #f8f4ef;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #ede5d8;
}
.void-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid #ede5d8;
}
.void-summary-row:last-child { border-bottom: none; }
.void-summary-row span { color: #888; }
.void-summary-row strong { color: #2c3e50; font-weight: 700; }
.void-amount { color: #e74c3c !important; font-size: 1rem; }

/* Form fields */
.void-field-group { display: flex; flex-direction: column; gap: 6px; }
.void-field-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.3px;
}
.void-required { color: #e74c3c; margin-left: 2px; }
.void-field-input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e8e0d8;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #2c3e50;
    background: #faf8f5;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.void-field-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}
.void-field-textarea { resize: vertical; min-height: 72px; line-height: 1.5; }

/* Error message */
.void-error-msg {
    min-height: 20px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #e74c3c;
    padding: 0 2px;
}

/* Modal footer */
.void-modal-footer {
    padding: 16px 22px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.void-cancel-btn {
    padding: 11px 22px;
    border: 2px solid #e0d6c8;
    background: #f5f0ea;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}
.void-cancel-btn:hover { background: #ece5dc; }
.void-confirm-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(231,76,60,0.3);
    letter-spacing: 0.2px;
}
.void-confirm-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.void-confirm-btn:active { transform: translateY(0); }

/* ============================================================
   RECEIPT MODAL — Premium preview styling
   Tasks 1, 3, 5
   ============================================================ */

/* Make receipt modal wider and better proportioned */
.receipt-modal-content {
    max-width: 400px !important;
    width: 96vw;
    border-radius: 14px !important;
    overflow: hidden;
}

/* Thermal receipt paper */
.thermal-receipt {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 12.5px !important;
    line-height: 1.65 !important;
    white-space: pre !important;
    background: #ffffff !important;
    color: #111 !important;
    padding: 18px 16px 22px !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12) !important;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    /* Dashed top = tear line */
    border-top: 3px dashed #d0c8bc !important;
    position: relative;
}

/* Paper texture strip at top */
.thermal-receipt::before {
    content: '';
    display: block;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #f5ece0 0px, #f5ece0 7px,
        #e8d8c8 7px, #e8d8c8 14px
    );
    margin: -18px -16px 14px -16px;
}
