/**
 * BigSportGym Reception - Main Stylesheet
 * A modern, kiosk-optimized design
 */

/* ============================================
   CSS Variables & Theme - Red, Black & White
   ============================================ */
:root {
    /* Primary Colors - Bold Red */
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    
    /* Accent Colors - Red, Black, White only */
    --accent-success: #ffffff;
    --accent-warning: #dc2626;
    --accent-danger: #dc2626;
    --accent-info: #ffffff;
    
    /* Background - Pure Black Theme */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    
    /* Text Colors - White & Gray */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    
    /* Gradients - Red, Black & White only */
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    --gradient-success: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    --gradient-warning: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --gradient-info: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    --gradient-danger: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Shadows - Red glow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(220, 38, 38, 0.4);
    
    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 16px;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.3);
    height: 100%;
    min-height: 100vh;
    /* Touchscreen optimizations */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    min-height: 100%;
    min-height: 100vh;
    height: 100%;
    line-height: 1.5;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    /* Touchscreen optimizations */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    
    /* Modern Gym Background - Pure CSS */
    background: 
        /* Red diagonal lines */
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 80px,
            rgba(220, 38, 38, 0.08) 80px,
            rgba(220, 38, 38, 0.08) 82px
        ),
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 200px,
            rgba(220, 38, 38, 0.05) 200px,
            rgba(220, 38, 38, 0.05) 203px
        ),
        /* Radial glow in center */
        radial-gradient(ellipse at 50% 60%, rgba(30, 30, 30, 1) 0%, rgba(10, 10, 10, 1) 70%),
        /* Base color */
        #080808;
    background-attachment: fixed;
}

/* Gym background container */
.gym-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Red particles/sparks effect */
.particles {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #dc2626;
    border-radius: 50%;
    opacity: 0;
    animation: particleRise 3s infinite ease-out;
    box-shadow: 0 0 6px #dc2626, 0 0 12px rgba(220, 38, 38, 0.5);
}

@keyframes particleRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) scale(0.3);
    }
}

/* Bottom glow - disabled */
.bottom-glow {
    display: none;
}

/* Corner accents - disabled */
.corner-accent {
    display: none;
}

body.kiosk-mode {
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

/* ============================================
   App Container
   ============================================ */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Page Layout - Header, Dashboard, Footer
   ============================================ */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Header - Transparent */
.site-header {
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 50px;
    background: transparent;
    z-index: 2;
}

.site-header img {
    width: 400px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: lighten;
    filter: brightness(1.2);
}

/* Dashboard / Main Content */
.site-dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    padding-top: 10px;
}

/* Footer - Transparent */
.site-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: transparent;
    margin-top: auto;
    z-index: 2;
}

/* Site URL in footer */
.site-url {
    color: #dc2626;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

/* Back Button in Footer - Always in footer */
.site-footer .back-button {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 170px;
    height: 170px;
}

.site-footer .back-button:hover {
    transform: scale(1.05);
}

.site-footer .back-button::before {
    inset: -5px;
}

.site-footer .back-button i {
    font-size: 3.8rem;
}

.site-footer .back-button span {
    font-size: 1.3rem;
}

/* ============================================
   Language Switcher
   ============================================ */
.language-switcher {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    padding: 5px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 72px;
    text-decoration: none;
    transition: var(--transition-normal);
    border-radius: 36px;
    color: #888;
    font-weight: 600;
    font-size: 1.6rem;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.lang-btn.active {
    background: #dc2626;
    color: #ffffff;
}

.flag-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* ============================================
   Main Dashboard
   ============================================ */
.main-dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    width: 100%;
}

.dashboard-header {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.logo {
    height: 130px;
    width: auto;
}

.brand-name {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.welcome-text {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    font-weight: 300;
}

/* ============================================
   Menu Grid
   ============================================ */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 750px;
    margin: 0 auto;
    padding: 15px 30px;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 40px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-radius: 60px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
    position: relative;
    min-height: 110px;
    width: 100%;
    
    /* Metallic silver border effect */
    border: none;
    box-shadow: 
        0 0 0 4px #808080,
        0 0 0 5px #c0c0c0,
        0 0 0 6px #ffffff,
        0 0 0 7px #c0c0c0,
        0 0 0 8px #808080,
        inset 0 2px 4px rgba(255,255,255,0.1),
        0 8px 20px rgba(0,0,0,0.6);
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 66px;
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        #e0e0e0 10%,
        #a0a0a0 30%,
        #606060 50%,
        #a0a0a0 70%,
        #e0e0e0 90%,
        #ffffff 100%
    );
    z-index: -1;
}

.menu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 60px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    z-index: -1;
}


.menu-card:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 0 4px #909090,
        0 0 0 5px #d0d0d0,
        0 0 0 6px #ffffff,
        0 0 0 7px #d0d0d0,
        0 0 0 8px #909090,
        inset 0 2px 4px rgba(255,255,255,0.15),
        0 12px 30px rgba(0,0,0,0.7);
}

.menu-card:active {
    transform: scale(0.98);
}

/* Button text styles */
.menu-card-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.menu-card-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Red text buttons */
.menu-card-primary .menu-card-title,
.menu-card-warning .menu-card-title { 
    color: #dc2626;
    font-style: italic;
}

/* White text buttons */
.menu-card-success .menu-card-title,
.menu-card-info .menu-card-title,
.menu-card-secondary .menu-card-title { 
    color: #ffffff;
}

.menu-card-content {
    flex: 1;
}

.menu-card-content h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.menu-card-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.menu-card-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.menu-card:hover .menu-card-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

/* ============================================
   Page Container
   ============================================ */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.page-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.page-subtitle {
    color: var(--text-secondary);
}

/* ============================================
   Back Button
   ============================================ */
.back-button {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 195px;
    height: 195px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    z-index: 100;
    gap: 10px;
}

.back-button::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        #e0e0e0 10%,
        #a0a0a0 30%,
        #505050 50%,
        #a0a0a0 70%,
        #e0e0e0 90%,
        #ffffff 100%
    );
    z-index: -2;
}

.back-button::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
    z-index: -1;
}

.back-button:hover {
    transform: translateX(-50%) scale(1.05);
}

.back-button i {
    font-size: 4.3rem;
}

.back-button span {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   Type Selection Grid
   ============================================ */
.type-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 40px;
    box-sizing: border-box;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 50px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-radius: 60px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
    position: relative;
    min-height: 180px;
    width: 100%;
    z-index: 1;
    box-sizing: border-box;
    
    /* Metallic silver border effect */
    border: none;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.1),
        0 8px 20px rgba(0,0,0,0.6);
}

.type-card::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 66px;
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        #e0e0e0 10%,
        #a0a0a0 30%,
        #606060 50%,
        #a0a0a0 70%,
        #e0e0e0 90%,
        #ffffff 100%
    );
    z-index: -2;
}

.type-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 60px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    z-index: -1;
}

.type-card:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 0 4px #909090,
        0 0 0 5px #d0d0d0,
        0 0 0 6px #ffffff,
        0 0 0 7px #d0d0d0,
        0 0 0 8px #909090,
        inset 0 2px 4px rgba(255,255,255,0.15),
        0 12px 30px rgba(0,0,0,0.7);
}

.type-card:active {
    transform: scale(0.98);
}

/* Type card text styles */
.type-card h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    font-style: italic;
    color: #dc2626;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0;
}

.type-card p {
    font-size: 1.5rem;
    color: #ffffff;
    text-align: center;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0;
}

/* White text variant */
.type-card-back h2 {
    color: #ffffff;
    font-style: normal;
}

/* ============================================
   Passes Grid
   ============================================ */
.passes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.passes-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.pass-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
    box-sizing: border-box;
}

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

.pass-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pass-card-header {
    margin-bottom: var(--spacing-sm);
}

.pass-duration {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pass-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0;
}

.pass-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: var(--spacing-xs);
}

.price-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--accent-success);
}

.price-currency {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pass-days {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pass-card-footer {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    text-align: right;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.pass-card:hover .pass-card-footer {
    color: var(--primary);
}

/* ============================================
   Register Form Layout
   ============================================ */
.register-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-lg);
}

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

.register-form-section,
.register-info-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.section-header i {
    color: var(--primary);
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

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

.form-control-lg {
    padding: var(--spacing-md);
    font-size: 1.125rem;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: var(--spacing-sm);
}

.gender-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.gender-btn {
    flex: 1;
    display: block;
    cursor: pointer;
}

.gender-btn input {
    display: none;
}

.gender-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.gender-btn input:checked + span {
    border-color: var(--primary);
    background: rgba(220, 38, 38, 0.2);
}

/* ============================================
   Camera & Photo
   ============================================ */
.camera-container {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.camera-container video,
.camera-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-camera {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-camera:hover {
    transform: translateX(-50%) scale(1.05);
}

/* ============================================
   Selected Pass Card
   ============================================ */
.selected-pass-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.selected-pass-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.pass-details .detail-row,
.detail-rows .detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row span {
    color: var(--text-secondary);
}

.detail-row strong {
    color: var(--text-primary);
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.total-price .price {
    color: var(--accent-success);
    font-size: var(--font-size-xl);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-pay {
    background: var(--gradient-success);
    color: white;
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1.25rem;
}

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

.btn-search {
    background: var(--gradient-primary);
    color: white;
}

.btn-search:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card);
}

/* ============================================
   Virtual Keyboard
   ============================================ */
.virtual-keyboard {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.keyboard-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--spacing-sm);
}

.btn-close-keyboard {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.keyboard-layout {
    max-width: 800px;
    margin: 0 auto;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.key {
    min-width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.key:hover {
    background: var(--bg-card-hover);
}

.key:active {
    transform: scale(0.95);
    background: var(--primary);
}

.key-space {
    flex: 1;
    max-width: 300px;
}

.key-delete {
    background: var(--accent-danger);
}

/* ============================================
   Barcode Entry
   ============================================ */
.barcode-entry-section {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-xl);
}

.barcode-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

.barcode-instruction {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.barcode-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.barcode-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 2px;
    padding: var(--spacing-md);
}

/* ============================================
   Numpad
   ============================================ */
.numpad-container {
    display: flex;
    justify-content: center;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: var(--spacing-sm);
}

.numpad-btn,
.pin-btn {
    height: 70px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.numpad-btn:hover,
.pin-btn:hover {
    background: var(--bg-card-hover);
}

.numpad-btn:active,
.pin-btn:active {
    transform: scale(0.95);
    background: var(--primary);
}

/* ============================================
   Check Result Layout
   ============================================ */
.check-result-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--spacing-lg);
}

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

.customer-info-panel {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.customer-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.customer-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.customer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-photo.small {
    width: 60px;
    height: 60px;
    font-size: 2rem;
}

.customer-details h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

.customer-phone,
.customer-barcode {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.payments-list {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.payments-list h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.payment-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.payment-card:hover,
.payment-card.selected {
    border-color: var(--primary);
}

.payment-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.payment-card h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.payment-price {
    color: var(--text-secondary);
}

.payment-details-panel {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.payment-details-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.status-banner {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
}

.days-remaining {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}

.days-remaining.ok {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.days-remaining.warning {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
}

.days-remaining.expired {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

.days-number {
    font-size: 3rem;
    font-weight: 800;
}

.days-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* ============================================
   Visits List
   ============================================ */
.visits-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.visits-section h4 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.visits-list {
    max-height: 300px;
    overflow-y: auto;
}

.visit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.visit-number {
    width: 30px;
    height: 30px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.visit-date {
    flex: 1;
}

.visit-time {
    color: var(--text-muted);
}

/* ============================================
   Confirmation Page
   ============================================ */
.confirmation-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.confirmation-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.confirmation-icon {
    font-size: 5rem;
    color: var(--accent-success);
    margin-bottom: var(--spacing-lg);
    animation: scaleIn 0.5s ease;
}

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

.confirmation-card h1 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
}

.confirmation-details {
    text-align: left;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-item .label {
    color: var(--text-secondary);
}

.detail-item.total {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.detail-item.total .value {
    color: var(--accent-success);
    font-size: var(--font-size-lg);
}

.qr-section {
    margin: var(--spacing-lg) 0;
}

.qr-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.qr-code {
    display: inline-block;
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.qr-code img {
    display: block;
}

.barcode-info {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.btn-finish {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* ============================================
   Services Grid
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Staff Page
   ============================================ */
.staff-login-section {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-xl);
}

.staff-icon {
    font-size: 5rem;
    color: var(--accent-warning);
    margin-bottom: var(--spacing-lg);
}

.staff-instruction {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.staff-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.staff-input {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 10px;
    padding: var(--spacing-md);
}

.btn-staff-login {
    background: var(--gradient-warning);
    color: var(--bg-primary);
    font-weight: 600;
}

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.staff-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Footer
   ============================================ */
.dashboard-footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-top: auto;
}

.version-info {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Bootstrap Overrides
   ============================================ */
.bg-success { background: var(--accent-success) !important; }
.bg-warning { background: var(--accent-warning) !important; color: var(--bg-primary) !important; }
.bg-danger { background: var(--accent-danger) !important; }
.bg-info { background: var(--accent-info) !important; }
.bg-secondary { background: var(--text-muted) !important; }

.alert {
    border: none;
    border-radius: var(--radius-md);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

/* ============================================
   Responsive
   ============================================ */

/* Mobile devices */
@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
    }
    
    body {
        background-size: cover;
        background-attachment: scroll;
        background-position: top center;
    }
    
    .menu-grid {
        max-width: 100%;
        padding: var(--spacing-md);
    }
    
    .type-grid {
        max-width: 100%;
    }
    
    .register-layout,
    .check-result-layout {
        grid-template-columns: 1fr;
    }
    
    .language-switcher {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    .lang-btn {
        width: 40px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        background-size: cover;
        background-position: center center;
    }
}

/* Large screens */
@media (min-width: 1025px) {
    body {
        background-size: cover;
        background-position: center center;
    }
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 4px;
}

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

/* ============================================
   No Selection Messages
   ============================================ */
.no-passes-message,
.no-subscription,
.no-visits {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.no-passes-message i,
.no-subscription i {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-md);
}

/* ============================================
   Check Subscription Page
   ============================================ */
.check-container {
    max-width: 600px;
    width: 100%;
    padding: var(--spacing-lg);
    text-align: center;
}

.page-title {
    font-size: 3.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.barcode-form {
    margin-bottom: var(--spacing-xl);
}

.input-group {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
}

.barcode-input {
    flex: 1;
    padding: 32px 44px;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 3px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    outline: none;
    box-shadow: 
        0 0 0 4px #808080,
        0 0 0 5px #c0c0c0,
        0 0 0 6px #808080;
}

.barcode-input:focus {
    box-shadow: 
        0 0 0 4px #dc2626,
        0 0 0 5px #ef4444,
        0 0 0 6px #dc2626;
}

.barcode-input::placeholder {
    color: #666;
}

.search-btn {
    width: 110px;
    height: 110px;
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2.3rem;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 
        0 0 0 3px #808080,
        0 0 0 4px #c0c0c0,
        0 0 0 5px #808080;
}

.search-btn:hover {
    transform: scale(1.05);
}

.error-message {
    background: rgba(220, 38, 38, 0.2);
    border: 2px solid #dc2626;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    color: #ef4444;
    margin-bottom: var(--spacing-lg);
}

.result-container {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: 
        0 0 0 4px #808080,
        0 0 0 5px #c0c0c0,
        0 0 0 6px #808080;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.status-icon.success { color: #22c55e; }
.status-icon.warning { color: #f59e0b; }
.status-icon.error { color: #ef4444; }

.result-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.result-container.active h2 { color: #22c55e; }
.result-container.expired h2, 
.result-container.no_active h2 { color: #f59e0b; }
.result-container.not_found h2 { color: #ef4444; }

.days-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.customer-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.customer-info h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
}

.customer-info p {
    color: #999;
    margin: 5px 0;
}

.customer-info i {
    margin-right: 10px;
    color: #dc2626;
}

.payments-list, .events-list {
    margin-top: var(--spacing-lg);
    text-align: left;
}

.payments-list h4, .events-list h4 {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.payment-item, .event-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pass-name {
    font-weight: 600;
    color: #ffffff;
}

.expire-date, .event-date {
    color: #999;
    font-size: 0.9rem;
}

/* ============================================
   TOUCHSCREEN OPTIMIZATIONS
   ============================================ */

/* Allow text selection only in input fields */
input, textarea, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    touch-action: manipulation;
}

/* Minimum touch target size (48px recommended) */
a, button, .menu-card, .type-card, .pass-card, .lang-btn, .back-button,
.trainer-type-card, .pass-card-extend, .service-card, .action-btn {
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.3);
}

/* Touch feedback - Active states */
.menu-card:active,
.type-card:active,
.pass-card:active,
.back-button:active,
.lang-btn:active,
.trainer-type-card:active,
.pass-card-extend:active,
.service-card:active,
.action-btn:active,
.submit-btn:active,
.search-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

/* Larger form inputs for touch */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
select {
    font-size: 18px !important;
    min-height: 56px;
    padding: 16px 20px !important;
}

/* Larger checkboxes and radio buttons */
input[type="checkbox"],
input[type="radio"] {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

/* Prevent zoom on input focus (iOS) */
@media screen and (max-width: 1024px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .menu-card:hover,
    .type-card:hover,
    .pass-card:hover,
    .back-button:hover,
    .lang-btn:hover,
    .trainer-type-card:hover,
    .pass-card-extend:hover,
    .service-card:hover,
    .action-btn:hover,
    .submit-btn:hover,
    .search-btn:hover {
        transform: none;
        box-shadow: inherit;
    }
}

/* Smooth scrolling for touch */
.site-dashboard,
.menu-grid,
.type-grid,
.passes-grid,
.trainer-types-grid {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

/* Prevent accidental text selection on buttons */
.menu-card,
.type-card,
.back-button,
.lang-btn,
.submit-btn,
.search-btn,
.action-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Full-screen kiosk mode optimization */
@media screen and (min-width: 1080px) and (min-height: 1920px) {
    html {
        font-size: 20px;
    }
    
    .menu-card,
    .type-card {
        min-height: 130px;
    }
    
    .back-button {
        width: 220px;
        height: 220px;
    }
    
    .site-footer .back-button {
        width: 200px;
        height: 200px;
    }
}

/* Landscape kiosk mode */
@media screen and (min-width: 1920px) and (max-height: 1080px) {
    html {
        font-size: 18px;
    }
}

/* Prevent pull-to-refresh on touch */
body {
    overscroll-behavior-y: contain;
}

/* Hide scrollbars but keep functionality */
.page-wrapper::-webkit-scrollbar,
.site-dashboard::-webkit-scrollbar {
    display: none;
}

.page-wrapper,
.site-dashboard {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

