/* ========================================
   MODERN RESERVATION SYSTEM - STYLE.CSS
   ======================================== */

/* === RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: url('bg.png') center center;
    background-size: cover;
    background-attachment: fixed;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}

/* === CONTAINER === */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

/* System Paused Banner */
.system-paused-banner {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #dc2626;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    animation: slideDown 0.3s ease-out;
}

.system-paused-banner svg {
    flex-shrink: 0;
    fill: #991b1b;
}

.system-paused-banner span {
    color: #991b1b;
    font-weight: 600;
    font-size: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .system-paused-banner {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .system-paused-banner svg {
        width: 20px;
        height: 20px;
    }
}

/* System Paused Message */
.system-paused-message {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid #e5e7eb;
    animation: fadeInUp 0.6s ease-out;
    -webkit-animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.system-paused-message svg {
    fill: #dc2626;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
    -webkit-animation: pulse 2s ease-in-out infinite;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@-webkit-keyframes pulse {
    0%, 100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
}

.system-paused-message h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.system-paused-message p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 16px;
    word-wrap: break-word;
}

.system-paused-message a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.system-paused-message a:hover,
.system-paused-message a:active {
    text-decoration: underline;
    color: #5568d3;
}

@media (max-width: 600px) {
    .system-paused-message {
        padding: 40px 20px;
        margin: 20px 16px;
        border-radius: 16px;
    }
    
    .system-paused-message h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .system-paused-message p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .system-paused-message svg {
        width: 48px;
        height: 48px;
    }
}

/* Centered container for auth pages */
.container:has(.auth-form), .container:has(.countdown-container) {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .container:has(.auth-form), .container:has(.countdown-container) {
        padding: 0 16px;
        margin: 40px auto;
    }
    
    body:has(.auth-form) h1 {
        font-size: 2rem;
    }
    
    .auth-form {
        padding: 30px 20px !important;
    }
}

/* Success modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.success-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 400px;
    animation: scaleIn 0.4s ease;
}

.success-modal-content .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    animation: bounceIn 0.6s ease;
}

.success-modal-content .icon svg {
    width: 50px;
    height: 50px;
    fill: white;
}

.success-modal-content h2 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.success-modal-content p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 0;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* === NAVIGATION === */
.nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.98);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav a {
    text-decoration: none;
    color: #4c51bf;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: rgba(102, 126, 234, 0.05);
}

.nav a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nav a:last-child {
    margin-left: auto;
}

/* === HEADINGS === */
h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

h2 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 16px 0;
}

/* === TICKET LIMIT WARNING (removed banner, only show warning when exceeded) === */

.limit-warning {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 3px solid #ef4444;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    color: #991b1b;
    font-weight: 600;
    text-align: center;
    animation: shake 0.5s ease;
    display: none;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

.limit-warning a {
    color: #dc2626;
    text-decoration: underline;
    font-weight: 700;
}

.limit-warning a:hover {
    color: #991b1b;
}

.mobile-limit-warning {
    padding: 12px 14px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    border-radius: 10px;
}

/* === GRID LAYOUT === */
.grid {
    display: grid;
    grid-template-columns: 2fr 2.5fr 1.2fr;
    gap: 20px;
    align-items: start;
    min-height: calc(100vh - 180px);
}

/* === PANELS === */
.panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.panel:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.floorplan-panel {
    grid-column: 1;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.select-panel {
    grid-column: 2;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.select-panel::-webkit-scrollbar {
    width: 8px;
}

.select-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.select-panel::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.select-panel::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.summary {
    margin-bottom: 0;
}

.right-column-sticky {
    grid-column: 3;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sponsors-panel {
    margin-top: 0;
}

.sponsors-panel h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.sponsors-panel .sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 0;
}

.sponsors-panel .partners-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    justify-content: center;
    align-items: center;
}

/* Hide mobile sponsors on desktop */
.mobile-sponsors {
    display: none;
}

/* === FLOOR PLANS === */
.floorplan-sticky {
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.floorplan-sticky img {
    width: 100%;
    height: calc(50% - 8px);
    object-fit: contain;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    image-rendering: auto;
    shape-rendering: geometricPrecision;
}

.floorplan-sticky img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* === FORM INPUTS === */
input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
    backface-visibility: hidden;
    transform: translateZ(0);
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px) translateZ(0);
}

/* === BUTTONS === */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    backface-visibility: hidden;
    transform: translateZ(0);
}

button:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

button:active:not(:disabled) {
    transform: translateY(0) translateZ(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    padding: 14px 24px;
    margin-top: 16px;
    font-size: 1.05rem;
}

button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #5568d3 0%, #65398d 100%);
}

.add-table-btn-new {
    width: 100%;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.add-table-btn-new:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65398d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.add-table-btn-new svg {
    flex-shrink: 0;
}

/* === CONTROLS === */
.controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.controls button {
    padding: 8px 14px;
    font-size: 0.9rem;
    min-width: 40px;
}

.controls input {
    width: 80px;
    text-align: center;
}

/* === TICKET TYPE CARDS === */
.ticket-type-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.ticket-type-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.ticket-type-card:has(.collapsible-content.collapsed) {
    opacity: 0.85;
}

.ticket-type-card:has(.collapsible-content.collapsed):hover {
    opacity: 1;
    transform: translateY(-2px);
}

.ticket-type-standing {
    border-color: #10b981;
}

.ticket-type-sitting {
    border-color: #667eea;
}

.ticket-type-badge {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.ticket-type-badge:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.ticket-type-badge:active {
    transform: translateY(0);
}

.standing-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.sitting-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-icon {
    font-size: 2rem;
    line-height: 1;
}

.badge-text {
    font-size: 1.4rem;
    flex: 1;
}

.toggle-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.toggle-arrow.collapsed {
    transform: rotate(-90deg);
}

.ticket-card-content {
    padding: 24px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.collapsible-content.expanded {
    max-height: 5000px;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 24px;
}

.ticket-description {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #e2e8f0;
}

.ticket-description strong {
    font-size: 1.1rem;
    color: #2d3748;
}

.ticket-description span {
    font-size: 0.95rem;
    color: #718096;
}

.availability-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 2px solid #10b981;
}

.availability-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #059669;
    line-height: 1;
}

.availability-text {
    font-size: 1rem;
    color: #047857;
    font-weight: 600;
}

.selection-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}

.selection-label {
    display: block;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.quantity-controls-large {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.quantity-controls-large button {
    width: 56px;
    height: 56px;
    padding: 0;
    font-size: 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.quantity-controls-large button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.quantity-controls-large input {
    flex: 1;
    max-width: 140px;
    height: 56px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 3px solid #10b981;
    border-radius: 14px;
    background: white;
    color: #059669;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #059669;
    line-height: 1;
}

.price-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
}

.ticket-separator {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.ticket-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #cbd5e0 20%, #cbd5e0 80%, transparent);
    z-index: 1;
}

.separator-text {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

/* === TABLE SELECTIONS === */
#tableSelections {
    margin-bottom: 16px;
}

.table-selection-item {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    border: 3px solid #667eea;
    border-radius: 16px;
    padding: 20px;
    padding-right: 64px;
    margin-bottom: 16px;
    position: relative;
    animation: slideIn 0.3s ease-out;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.table-selection-item:hover {
    border-color: #5568d3;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px) translateZ(0);
}

.table-selection-item .remove-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.2s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.table-selection-item .remove-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.table-selection-item label {
    display: block;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1rem;
}

.table-selection-item select {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1.05rem;
    height: 48px;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    padding: 0 16px;
}

.table-selection-item select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.table-selection-item .availability-info {
    font-size: 0.95rem;
    color: #059669;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 10px;
    display: inline-block;
    border: 2px solid #10b981;
}

.table-selection-item .quantity-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.table-selection-item .quantity-controls button {
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.table-selection-item .quantity-controls button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65398d 100%);
}

.table-selection-item .quantity-controls input {
    flex: 1;
    max-width: 100px;
    height: 48px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    border: 3px solid #667eea;
    border-radius: 12px;
    color: #667eea;
}

/* === SUMMARY === */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    animation: fadeIn 0.3s ease;
}

.summary-row:last-child {
    border-bottom: none;
}

#summary-tables {
    margin-bottom: 8px;
}

/* === MUTED TEXT === */
.muted {
    color: #718096;
    font-size: 0.9rem;
}

/* === MESSAGES === */
.error {
    background: #fee;
    color: #c53030;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid #c53030;
    animation: shake 0.5s ease;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid #28a745;
    animation: slideIn 0.5s ease;
}

/* === MOBILE SUMMARY BAR === */
.mobile-summary {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-top: 2px solid #667eea;
    padding: 14px 16px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease-out;
}

.mobile-summary .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mobile-summary button {
    padding: 12px 24px;
    font-size: 1rem;
    white-space: nowrap;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1400px) {
    .grid {
        grid-template-columns: 1.5fr 2fr 1fr;
    }
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .summary,
    .floorplan-panel {
        position: static;
        max-height: none;
    }
    
    .select-panel {
        max-height: none;
    }
    
    /* TABLET: Side-by-side floor plans */
    .floorplan-sticky {
        height: auto;
        flex-direction: row;
        gap: 12px;
    }
    
    .floorplan-sticky img {
        height: 350px;
        width: calc(50% - 6px);
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .mobile-summary {
        display: block;
    }
    
    .summary {
        display: block;
    }

    .right-column-sticky {
        display: none;
    }

    .mobile-sponsors {
        display: block;
    }
    
    body {
        padding-bottom: 100px;
    }
    
    /* MOBILE: Show ticket selection FIRST, then floor plans BELOW */
    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .select-panel {
        order: 1;
        max-height: none;
        width: 100%;
        max-width: 500px;
    }
    
    .floorplan-panel {
        order: 2;
        max-height: none;
        position: static;
        width: 100%;
        max-width: 500px;
    }
    
    .floorplan-sticky {
        height: auto;
        flex-direction: column;
        gap: 12px;
    }
    
    .floorplan-sticky img {
        height: auto;
        width: 100%;
        max-height: 400px;
    }
    
    /* Improved mobile navbar */
    .nav {
        gap: 6px;
        padding: 12px 14px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .nav a {
        padding: 8px 14px;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .nav a:last-child {
        margin-left: 0;
    }
    
    .contact-button {
        order: 10;
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 12px;
    }
    
    .panel {
        padding: 14px;
        border-radius: 16px;
        margin: 0 auto;
    }
    
    h1 {
        font-size: 1.6rem;
        margin-bottom: 16px;
        text-align: center;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    /* Better mobile nav for small screens */
    .nav {
        gap: 6px;
        padding: 10px;
    }
    
    .nav a {
        padding: 11px 12px;
        font-size: 0.9rem;
        flex: 1 1 auto;
        text-align: center;
        min-width: fit-content;
        border-radius: 10px;
    }
    
    .ticket-type-badge {
        padding: 18px 20px;
        gap: 12px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .badge-icon {
        font-size: 1.8rem;
        flex-shrink: 0;
        line-height: 1;
    }
    
    .badge-text {
        font-size: 1.3rem;
        flex: 1;
        text-align: left;
        line-height: 1.2;
    }
    
    .toggle-arrow {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .ticket-card-content {
        padding: 20px 16px;
    }
    
    .ticket-type-card {
        margin-bottom: 16px;
        border-radius: 16px;
    }
    
    .availability-box {
        padding: 16px;
        margin: 16px 0;
    }
    
    .availability-number {
        font-size: 2.5rem;
    }
    
    .availability-label {
        font-size: 0.95rem;
    }
    
    .quantity-controls-large {
        gap: 12px;
        margin: 20px 0;
    }
    
    .quantity-controls-large button {
        width: 54px;
        height: 54px;
        font-size: 1.8rem;
    }
    
    .quantity-controls-large input {
        max-width: 90px;
        height: 54px;
        font-size: 1.6rem;
        font-weight: 700;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
    
    .price-label {
        font-size: 0.95rem;
    }
    
    .ticket-description {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .ticket-description strong {
        font-size: 1.05rem;
    }
    
    .ticket-description span {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .quantity-label {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .price-box {
        padding: 16px;
        margin-top: 16px;
    }
    
    .separator-text {
        font-size: 1rem;
        padding: 6px 20px;
    }
    
    .ticket-separator {
        margin: 20px 0;
    }
    
    .table-selection-item {
        padding: 16px;
        padding-right: 56px;
    }
    
    .table-selection-item .remove-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    
    .table-selection-item .quantity-controls button {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    
    .table-selection-item .quantity-controls input {
        height: 44px;
        font-size: 1.2rem;
        max-width: 80px;
    }
    
    .selection-box {
        padding: 16px;
    }
    
    .selection-label {
        font-size: 1rem;
    }
    
    .add-table-btn-new {
        padding: 14px 18px;
        font-size: 1rem;
    }
    
    .controls {
        gap: 6px;
    }
    
    .controls button {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-width: 36px;
    }
    
    .controls input {
        width: 60px;
    }
    
    .table-selection-item {
        padding: 16px;
    }
    
    /* Make floor plans even bigger on small phones */
    .floorplan-sticky {
        gap: 10px;
    }
    
    .floorplan-sticky img {
        max-height: 300px;
        border-radius: 8px;
    }
}

/* === ADMIN PANEL STYLES === */
.admin-panel {
    max-width: 1400px;
    margin: 0 auto;
}

/* Admin Settings Section */
.admin-settings-section {
    background: white;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.settings-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
}

.settings-card-title {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 700;
}

.settings-status {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #dee2e6;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.status-indicator.open {
    background: #d1fae5;
    color: #065f46;
}

.status-indicator.closed {
    background: #fee2e2;
    color: #991b1b;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.open .status-dot {
    background: #10b981;
}

.status-indicator.closed .status-dot {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.current-time {
    font-size: 0.9rem;
    color: #4a5568;
}

.settings-form {
    margin-bottom: 16px;
}

.settings-form .form-group {
    margin-bottom: 12px;
}

.settings-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
    font-size: 0.9rem;
}

.settings-form input[type="datetime-local"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: white;
}

.settings-form input[type="datetime-local"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.settings-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.settings-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.settings-submit-btn:active {
    transform: translateY(0);
}

.settings-toggle-btn {
    width: 100%;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-toggle-btn.pause {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.settings-toggle-btn.pause:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.settings-toggle-btn.activate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.settings-toggle-btn.activate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.settings-toggle-btn:active {
    transform: translateY(0);
}

.status-indicator.paused {
    background: #fee2e2;
    color: #991b1b;
}

.status-indicator.paused .status-dot {
    background: #dc2626;
}

.status-indicator.active {
    background: #d1fae5;
    color: #065f46;
}

.status-indicator.active .status-dot {
    background: #10b981;
}

.settings-info {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.settings-info p {
    margin: 0;
    color: #4a5568;
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Section */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto 32px auto;
    max-width: 75%;
}

.stat-box {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-box h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.stat-box .number {
    font-size: 3rem;
    font-weight: 800;
    margin: 12px 0;
    line-height: 1;
}

.stat-box .detail {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* User Cards */
.user-card {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 75%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 16px;
}

.user-header:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.user-header h2 {
    margin: 0;
    color: #667eea;
    font-size: 1.4rem;
    font-weight: 700;
}

.user-header .email {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 6px;
    font-weight: 500;
}

.user-info-right {
    text-align: right;
    flex-shrink: 0;
}

.toggle-icon {
    font-size: 1.8rem;
    color: #667eea;
    transition: transform 0.3s ease;
    display: inline-block;
}

.toggle-icon.expanded {
    transform: rotate(180deg);
}

/* Reservations Container */
.reservations-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.reservations-container.expanded {
    max-height: 10000px;
}

.reservations-content {
    padding: 0 24px 24px 24px;
    background: #f8fafc;
}

/* Reservation Card */
.reservation-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reservation-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 12px;
}

/* Collapsible reservation details */
.reservation-card { position: relative; }
.reservation-card .reservation-header { cursor: pointer; }
.reservation-details { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.reservation-card.expanded .reservation-details { max-height: 2000px; }
.reservation-card.collapsed { border-color: #cbd5e0; }
.reservation-card.collapsed:hover { border-color: #94a3b8; }
.reservation-summary { font-weight: 500; }

.reservation-header strong {
    color: #1e293b;
    font-size: 1.15rem;
}

/* Ticket Info Grid */
.ticket-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.ticket-info div {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.ticket-info div:hover {
    transform: translateY(-2px);
    border-color: #cbd5e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.ticket-info div strong {
    display: block;
    color: #1e293b;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

/* Adjust Tickets Section */
.adjust-section {
    margin: 20px 0;
    padding: 18px;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.adjust-section > strong {
    color: #1e293b;
    display: block;
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.adjust-item {
    background: white;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.adjust-item:last-child {
    margin-bottom: 0;
}

.adjust-item form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.adjust-item .adjust-label {
    flex: 1;
    min-width: 180px;
}

.adjust-item .adjust-label strong {
    color: #1e293b;
    font-size: 1rem;
    display: block;
    margin-bottom: 2px;
}

.adjust-item .adjust-label small {
    color: #64748b;
    font-size: 0.9rem;
}

.adjust-item input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.adjust-item button {
    padding: 8px 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.adjust-item button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Status Form */
.status-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.status-form select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #cbd5e0;
    font-size: 0.95rem;
    font-weight: 600;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 1 auto;
    min-width: 200px;
}

.status-form select:hover {
    border-color: #94a3b8;
}

.status-form button {
    padding: 10px 18px;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.status-form button[name="update_status"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.status-form button[name="update_status"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-form button[name="delete_reservation"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.status-form button[name="delete_reservation"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-reserved {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #f59e0b;
}

.badge-picked {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #10b981;
}

.badge-expired {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* Filter Controls */
.filter-controls {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin: 20px auto;
    max-width: 75%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4a5568;
}

.filter-group input,
.filter-group select {
    padding: 10px 14px;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.reset-btn {
    padding: 10px 24px;
    background: #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.reset-btn:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

/* Delete User Button */
.delete-user-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.delete-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Countdown Container */
.countdown-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
    max-width: 600px;
    animation: slideUp 0.5s ease-out;
}

.countdown-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-icon svg {
    width: 48px;
    height: 48px;
    fill: white;
}

.countdown-container h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 12px;
}

.countdown-message {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 32px;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.countdown-segment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-opens {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 24px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.existing-user-note {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.existing-user-note p {
    font-size: 0.95rem;
    color: #718096;
}

.existing-user-note a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.existing-user-note a:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .countdown-container {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .countdown-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .countdown-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .countdown-container h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .countdown-message {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 24px;
    }
    
    .countdown-segment {
        padding: 16px 8px;
        border-radius: 12px;
    }
    
    .countdown-value {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .countdown-opens {
        font-size: 0.9rem;
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .existing-user-note {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .existing-user-note p {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .countdown-container {
        padding: 24px 16px;
    }
    
    .countdown-timer {
        gap: 8px;
    }
    
    .countdown-segment {
        padding: 14px 6px;
    }
    
    .countdown-value {
        font-size: 1.6rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

/* Event Info Box */
.event-info-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px auto 0 auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: slideUp 0.5s ease-out;
    max-width: 440px;
}

.event-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.event-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.event-header h2 {
    margin: 0;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-details {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.event-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 12px;
    border: 2px solid #e0e7ff;
}

.detail-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.event-detail-item div {
    flex: 1;
}

.event-detail-item strong {
    display: block;
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.event-detail-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.4;
}

.event-description {
    margin: 0;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 2px solid #fbbf24;
    font-size: 0.95rem;
    color: #78350f;
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
}

/* Auth Layout - Side by Side Form and Info */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.auth-form-container {
    display: flex;
    flex-direction: column;
}

.auth-layout .auth-form {
    margin: 0;
}

.auth-layout .event-info-box {
    margin: 0;
}

/* Sponsors Section Inline (inside auth-layout) */
.sponsors-section-inline {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.sponsors-section-inline h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 25px;
    margin-top: 0;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.sponsors-section-inline h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.sponsors-section-inline .sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.sponsors-section-inline .partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e5e7eb;
}

/* Sponsors Section */
.sponsors-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto 30px auto;
    max-width: 1200px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.sponsors-section h3 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 35px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.sponsors-section h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 45px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-logo {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.sponsor-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.sponsor-logo:hover img {
    transform: scale(1.05);
}

/* Partners List inside Sponsors Section */
.sponsors-section .partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.partner-name {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.4;
}

.partner-name:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Mobile Responsive Admin Panel */
@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-box {
        padding: 20px;
    }
    
    .stat-box .number {
        font-size: 2.2rem;
    }
    
    .filter-controls {
        padding: 16px;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-btn,
    .reset-btn {
        width: 100%;
        text-align: center;
    }

    /* Auth Layout - Stack on Mobile */
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sponsors-section-inline {
        padding: 25px 20px;
    }

    .sponsors-section-inline h3 {
        font-size: 1.3rem;
    }

    .sponsors-section-inline .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .sponsors-section {
        padding: 30px 20px;
        margin: 30px 10px 20px 10px;
    }

    .sponsors-section h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
    }

    .sponsor-logo {
        height: 90px;
        padding: 0;
    }

    .sponsors-section .partners-list {
        gap: 10px 15px;
        margin-top: 25px;
        padding-top: 25px;
    }

    .partner-name {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .event-info-box {
        padding: 20px;
        margin: 20px auto 0 auto;
    }
    
    .event-header {
        gap: 12px;
    }
    
    .event-icon {
        font-size: 2rem;
    }
    
    .event-header h2 {
        font-size: 1.3rem;
    }
    
    .event-detail-item {
        padding: 12px;
        gap: 12px;
    }
    
    .detail-icon {
        font-size: 1.3rem;
    }
    
    .event-detail-item strong {
        font-size: 0.95rem;
    }
    
    .event-detail-item p {
        font-size: 0.9rem;
    }
    
    .event-description {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    .user-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .user-header h2 {
        font-size: 1.2rem;
    }
    
    .user-info-right {
        text-align: left;
        margin-top: 12px;
        width: 100%;
    }
    
    .delete-user-btn {
        width: 100%;
        padding: 10px 16px;
    }
    
    .reservations-content {
        padding: 0 16px 16px 16px;
    }
    
    .reservation-card {
        padding: 18px;
    }
    
    .ticket-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .reservation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .adjust-section {
        padding: 14px;
    }
    
    .adjust-item {
        padding: 12px;
    }
    
    .adjust-item form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .adjust-item .adjust-label {
        min-width: 100%;
    }
    
    .adjust-item input[type="number"],
    .adjust-item button {
        width: 100%;
    }
    
    .status-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .status-form select,
    .status-form button {
        width: 100%;
        min-width: 100%;
    }
}

/* Legacy styles for other pages */
.reservation-list {
    margin-top: 24px;
}

.reservation-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    word-wrap: break-word;
}

.reservation-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.no-reservations {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.no-reservations svg {
    margin-bottom: 20px;
}

.no-reservations h2 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.no-reservations p {
    color: #718096;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .reservation-list {
        margin-top: 16px;
    }
    
    .reservation-item {
        padding: 16px 14px;
        font-size: 0.95rem;
        border-left-width: 3px;
        margin-bottom: 12px;
    }
    
    .reservation-item strong {
        display: block;
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .reservation-item > div {
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
        margin: 8px 0 !important;
        border-radius: 6px !important;
    }
    
    .reservation-item br {
        content: '';
        display: block;
        margin-bottom: 8px;
    }
    
    .no-reservations {
        padding: 40px 20px;
        border-radius: 12px;
    }
    
    .no-reservations svg {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .no-reservations h2 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .no-reservations p {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .no-reservations .btn-primary {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }
}

/* === AUTH FORMS === */
.auth-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: slideUp 0.5s ease-out;
    max-width: 440px;
    margin: 0 auto;
}

.auth-form input {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-size: 1rem;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
}

.auth-form input:focus {
    background: white;
    border-color: #667eea;
}

.auth-form input::placeholder {
    color: #a0aec0;
}

.password-field {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.password-field input {
    margin-bottom: 0 !important;
    padding-right: 50px !important;
    display: block !important;
    width: 100% !important;
    background: #f8f9fa !important;
    border: 2px solid #e2e8f0 !important;
    color: #2d3748 !important;
}

.toggle-password {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #718096 !important;
    transition: color 0.2s ease !important;
    box-shadow: none !important;
    width: auto !important;
    margin: 0 !important;
    min-width: auto !important;
}

.toggle-password:hover {
    color: #667eea !important;
    background: transparent !important;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
}

.toggle-password svg {
    fill: currentColor;
    pointer-events: none;
}

.auth-form button {
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    box-sizing: border-box;
    padding: 14px 24px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.auth-form button:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Auth page specific container */
body:has(.auth-form) .container {
    max-width: 100%;
    padding: 0 20px;
    margin: 60px auto;
    box-sizing: border-box;
}

body:has(.auth-form) h1 {
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 2.5rem;
}

body:has(.auth-form) .nav {
    margin: 0 auto 40px auto;
    max-width: 440px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

body:has(.auth-form) .nav a {
    font-size: 1rem;
}

body:has(.auth-form) .auth-form {
    margin: 0 auto;
    padding: 40px;
    max-width: 440px;
}

body:has(.auth-form) .error {
    margin: 0 auto 20px auto;
    max-width: 440px;
}

.table-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.table-item {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
}

.table-item.disabled {
    opacity: 0.5;
    filter: grayscale(1);
}

.table-item:not(.disabled):hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* === LOADING STATES === */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === SMOOTH TRANSITIONS === */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Prevent transitions on page load */
.preload * {
    transition: none !important;
}

/* === PERFORMANCE OPTIMIZATIONS === */
.floorplan-sticky img,
.panel,
.table-selection-item,
button {
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

img, svg {
    image-rendering: auto;
    shape-rendering: geometricPrecision;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === TOUCH OPTIMIZATIONS === */
@media (hover: none) and (pointer: coarse) {
    button,
    select,
    input {
        min-height: 44px;
        min-width: 44px;
    }
    
    .controls button {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
}

/* === CONTACT PAGE === */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-top: 30px;
    animation: slideUp 0.5s ease;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.contact-icon {
    width: 80px;
    height: 80px;
    color: #667eea;
    margin: 0 auto 20px;
    display: block;
}

.contact-header h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.item-icon {
    width: 32px;
    height: 32px;
    color: #667eea;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-content strong {
    color: #4a5568;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-content span,
.item-content a {
    color: #2d3748;
    font-size: 1.1rem;
}

.item-content a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-content a:hover {
    color: #667eea;
}

.contact-note {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.note-icon {
    width: 28px;
    height: 28px;
    color: #d97706;
    flex-shrink: 0;
}

.contact-note p {
    margin: 0;
    color: #78350f;
    line-height: 1.6;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(102, 126, 234, 0.05);
    color: #4c51bf;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.contact-button:hover svg {
    fill: white;
}

.contact-button svg {
    width: 18px;
    height: 18px;
    fill: #4c51bf;
    transition: fill 0.3s ease;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .contact-card {
        padding: 25px 20px;
    }
    
    .contact-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-header h2 {
        font-size: 1.4rem;
    }
    
    .contact-item {
        padding: 15px;
        gap: 15px;
    }
    
    .item-icon {
        width: 28px;
        height: 28px;
    }
    
    .item-content span,
    .item-content a {
        font-size: 1rem;
    }
    
    .contact-note {
        padding: 15px;
        gap: 12px;
    }
    
    .note-icon {
        width: 24px;
        height: 24px;
    }
}

/* === USER MANAGEMENT PAGE === */
.users-grid {
    display: grid;
    gap: 20px;
}

.user-management-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-management-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.user-info-main h3 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 700;
}

.user-email {
    margin: 0 0 8px 0;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

.user-meta {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.user-stats-quick {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    min-width: 80px;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.user-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.user-actions button {
    flex: 1;
    min-width: 180px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-reset {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-reset:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .user-card-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .user-stats-quick {
        width: 100%;
        justify-content: space-around;
    }
    
    .stat-item {
        min-width: 70px;
        padding: 10px 12px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .user-actions {
        flex-direction: column;
    }
    
    .user-actions button {
        min-width: 100%;
    }
}

/* === CONFIRMATION MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 0;
    animation: slideIn 0.3s ease-out;
    border: 2px solid #e5e7eb;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 24px 30px;
    border-radius: 14px 14px 0 0;
    font-size: 1.4em;
    font-weight: 600;
    border-bottom: 3px solid #764ba2;
}

.modal-body {
    padding: 30px;
    color: #333;
    line-height: 1.6;
}

.modal-body p {
    margin: 0 0 12px 0;
    font-size: 1.05em;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-buttons {
    padding: 20px 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 2px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 0 0 14px 14px;
}

.modal-buttons button {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-cancel {
    background: #e5e7eb;
    color: #4b5563;
}

.btn-cancel:hover {
    background: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65398d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.2em;
        padding: 20px 24px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-buttons {
        padding: 16px 24px;
        flex-direction: column-reverse;
    }
    
    .modal-buttons button {
        width: 100%;
        padding: 14px;
    }
}

/* === TICKET COUNTER === */
.ticket-counter {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.ticket-counter h3 {
    margin: 0 0 16px 0;
    font-size: 1.2em;
    color: #333;
    text-align: center;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.counter-item {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.counter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.counter-item.counter-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #764ba2;
}

.counter-item.counter-total .counter-label,
.counter-item.counter-total .counter-value {
    color: white;
}

.counter-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-value {
    font-size: 2em;
    font-weight: 700;
    color: #667eea;
}

@media (max-width: 768px) {
    .counter-grid {
        grid-template-columns: 1fr;
    }
    
    .counter-item {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* === ADMIN CREATE RESERVATION === */
.admin-create-reservation-section {
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    max-width: 600px;
}

.admin-create-reservation-section h2 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #333;
}

.create-reservation-compact {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
}

.compact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.compact-row label {
    min-width: 80px;
    font-weight: 600;
    color: #333;
}

.compact-row select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.quantity-compact {
    display: flex;
    gap: 4px;
}

.quantity-compact button {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
}

.quantity-compact button:hover {
    background: #f0f0f0;
}

.quantity-compact input {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
}

.btn-compact-create {
    width: 100%;
    padding: 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.btn-compact-create:hover {
    background: #5568d3;
}

@media (max-width: 768px) {
    .compact-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .compact-row label {
        min-width: auto;
    }
}
