/* ============================================
   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;
}
