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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --secondary-color: #6B7280;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --bg-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a0a;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Dashboard Layout */
#dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #0a0a0a;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: relative; /* Changed from fixed */
    z-index: 1001;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(31, 190, 201, 0.3);
}

/* Sidebar Overlay (mobile only) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* Don't block clicks when not active */
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto; /* Allow clicks when active */
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    max-width: 85vw;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    z-index: 1000;
    padding: 2rem 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-right: 0; /* Reset padding for mobile */
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10; /* Ensure it's above logo */
}

/* On mobile, adjust header layout to prevent overlap */
@media (max-width: 768px) {
    .sidebar-header {
        justify-content: space-between;
        padding-right: 0;
        padding-left: 0;
        align-items: center;
        gap: 0.75rem;
    }
    
    .sidebar-logo {
        flex: 1;
        max-width: none;
        margin: 0 auto;
        /* Center logo but respect close button space */
        padding-right: 0;
    }
    
    .sidebar-close-btn {
        position: relative; /* Change from absolute to relative on mobile */
        transform: none;
        top: auto;
        right: auto;
        flex-shrink: 0;
        margin-left: auto;
    }
}

.sidebar-close-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(31, 190, 201, 0.3);
}

.sidebar-logo {
    height: 2.5rem;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(31, 190, 201, 0.3));
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #1FBEC9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
}

.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(31, 190, 201, 0.3);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.sidebar-btn:hover .sidebar-btn-icon {
    color: #1FBEC9;
}

.sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-footer .user-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.5;
}

.sidebar-btn-logout {
    margin-top: 0.5rem;
}

/* Main Dashboard Content */
.dashboard-main {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    background: #0a0a0a;
    position: relative;
}

.dashboard-content {
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 1;
}

.dashboard-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 3rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-title > *:not(.mobile-menu-btn) {
    background: linear-gradient(135deg, #fff 0%, #1FBEC9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Financial Graphs */
.dashboard-graphs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.graph-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.graph-card h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}

.graph-card canvas {
    max-height: 200px;
}

/* Dashboard Sections */
.dashboard-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.dashboard-sections .dashboard-card {
    width: 50%;
    min-width: 0;
}

.dashboard-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dashboard-card h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}

/* Dashboard dark theme */
#dashboard-section {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 1rem 2rem 2rem;
    position: relative;
    width: 100%;
    margin: 0;
    color: #fff;
}

/* Checkout Success Page - matches dashboard styling */
#checkout-success-section {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    width: 100%;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#checkout-success-section.section {
    padding: 2rem;
}

#checkout-success-section * {
    color: #fff;
}

#checkout-success-content {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#dashboard-section.section {
    padding: 0rem 0 2rem;
}

#dashboard-section * {
    color: #fff;
}

#dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: linear-gradient(180deg, 
        rgba(31, 190, 201, 0.15) 0%, 
        rgba(15, 168, 179, 0.12) 25%,
        rgba(79, 208, 217, 0.08) 50%,
        rgba(31, 190, 201, 0.04) 75%,
        rgba(10, 10, 10, 0) 100%
    );
    z-index: 0;
    pointer-events: none;
}

#dashboard-section .dashboard-header {
    position: relative;
    z-index: 1;
}

#dashboard-section #stripe-status {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Container for venues and events cards - side by side */
.dashboard-cards-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.dashboard-cards-container > .card {
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
}

/* Dark background for event view pages */
.event-view-section {
    background-color: #0a0a0a;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5 rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-logo {
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.4), 0 2px 4px -1px rgba(6, 182, 212, 0.3);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.5), 0 4px 6px -2px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4), 0 2px 4px -1px rgba(99, 102, 241, 0.3);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.5), 0 4px 6px -2px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.4), 0 2px 4px -1px rgba(16, 185, 129, 0.3);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.5), 0 4px 6px -2px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.4), 0 2px 4px -1px rgba(245, 158, 11, 0.3);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.5), 0 4px 6px -2px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.4), 0 2px 4px -1px rgba(239, 68, 68, 0.3);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.5), 0 4px 6px -2px rgba(239, 68, 68, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.4), 0 2px 4px -1px rgba(251, 191, 36, 0.3);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.5), 0 4px 6px -2px rgba(251, 191, 36, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sections */
.section {
    padding: 2rem 0;
}

/* Event view section - no padding */
.event-view-section.section {
    padding: 0;
}

/* Auth Section */
#auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    position: relative;
    padding: 2rem;
    flex-direction: column;
}

#auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg,
        rgba(31, 190, 201, 0.15) 0%,
        rgba(15, 168, 179, 0.12) 25%,
        rgba(79, 208, 217, 0.08) 50%,
        rgba(31, 190, 201, 0.04) 75%,
        rgba(10, 10, 10, 0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(31, 190, 201, 0.2);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.4),
        0 10px 10px -5px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(31, 190, 201, 0.1),
        0 0 40px rgba(31, 190, 201, 0.15);
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-logo img {
    height: 4rem;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(31, 190, 201, 0.3));
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #1FBEC9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.auth-form {
    max-width: 500px;
    margin: 0 auto;
}

.auth-form h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.5rem;
    border-radius: 0.75rem;
    letter-spacing: 0.025em;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #1FBEC9;
    box-shadow: 
        0 0 0 3px rgba(31, 190, 201, 0.15),
        0 0 20px rgba(31, 190, 201, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-color);
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#ticket-image-preview {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#ticket-image-preview-img {
    display: block;
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    margin: 0 auto;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.auth-switch a {
    color: #1FBEC9;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.auth-switch a:hover {
    color: #4FD0D9;
    text-decoration: none;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem 2rem 2rem;
    position: relative;
}

.dashboard-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.payment-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
    margin-left: auto;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1FBEC9 0%, #0FA8B3 50%, #4FD0D9 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(31, 190, 201, 0.3), 0 10px 10px -5px rgba(31, 190, 201, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.card h2 {
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Lists */
.list {
    display: block;
}

/* 2x2 Grid for venues and events */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.grid-item {
    width: 100%;
    min-width: 0;
}

.grid-item-content {
    width: 100%;
}

.grid-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.grid-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #1FBEC9 0%, #0FA8B3 100%);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.grid-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(31, 190, 201, 0.5);
    box-shadow: 0 10px 15px -3px rgba(31, 190, 201, 0.2);
}

.grid-item:hover::before {
    transform: scaleY(1);
}

.grid-item-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-item-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.grid-item-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.4;
}

.grid-item-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
    flex-wrap: wrap;
}

.grid-item-actions .btn {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    flex: 0 0 auto; /* Don't grow, don't shrink, auto width */
    min-width: auto;
}

.list-item {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1FBEC9 0%, #0FA8B3 100%);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.list-item:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 15px -3px rgba(31, 190, 201, 0.2), 0 4px 6px -2px rgba(31, 190, 201, 0.1);
    border-color: rgba(31, 190, 201, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.list-item:hover::before {
    transform: scaleY(1);
}

.list-item-info {
    flex: 1;
}

.list-item-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.list-item-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.badge-error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

/* Dashboard specific text colors */
#dashboard-section p,
#dashboard-section strong,
#dashboard-section em,
#dashboard-section small,
#dashboard-section span,
#dashboard-section div:not(.btn):not(.badge) {
    color: rgba(255, 255, 255, 0.9);
}

#dashboard-section #stripe-status-content p,
#dashboard-section #stripe-status-content strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Modal */
.modal-overlay {
    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: 1000;
    padding: 1rem;
}

.modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    margin: 0;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    color: #fff;
}

/* Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid var(--primary-color);
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--error-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-graphs {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Sidebar Overlay - Hidden by default, only show when sidebar is open */
    .sidebar-overlay {
        display: none; /* Hidden by default */
        pointer-events: none; /* Don't block content when not active */
    }
    
    .sidebar-overlay.active {
        display: block; /* Show when active */
        pointer-events: auto; /* Allow clicks when active */
    }
    
    /* Sidebar - Hidden by default on mobile */
    .dashboard-sidebar {
        width: 280px;
        max-width: 85vw;
        padding: 1.5rem 1rem;
        transform: translateX(-100%);
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
    }
    
    .dashboard-sidebar.open {
        transform: translateX(0);
    }
    
    /* Ensure sidebar overlay is full viewport */
    .sidebar-overlay {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
    }
    
    .sidebar-close-btn {
        display: flex;
    }
    
    /* Main Content - Full width on mobile */
    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }
    
    .dashboard-content {
        padding: 1.5rem 1rem;
        padding-top: 1.5rem; /* Normal top padding */
    }
    
    .dashboard-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0;
    }
    
    .mobile-menu-btn {
        display: flex; /* Show on mobile */
    }
    
    /* Graphs - Stack vertically */
    .dashboard-graphs {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .graph-card {
        padding: 1.25rem;
    }
    
    .graph-card h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .graph-card canvas {
        max-height: 180px;
    }
    
    /* Dashboard Sections - Full width */
    .dashboard-sections {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-sections .dashboard-card {
        width: 100%;
        padding: 1.5rem;
    }
    
    .dashboard-card h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Dashboard Header */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .dashboard-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .dashboard-actions .btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    /* List Items - Stack vertically */
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .list-item-info {
        width: 100%;
    }

    .list-item-title {
        font-size: 1.125rem;
    }

    .list-item-subtitle {
        font-size: 0.875rem;
    }

    .list-item-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .list-item-actions .btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px; /* Touch-friendly */
    }

    /* Dashboard grid responsive */
    .dashboard-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-2x2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-item-actions {
        flex-direction: row;
        gap: 0.5rem;
    }

    .grid-item-actions .btn {
        width: 17%;
        min-height: 44px; /* Touch-friendly */
    }
    
    /* Event card button groups - stack on mobile */
    .grid-item-actions > div {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .grid-item-actions > div .btn {
        width: 100% !important;
        min-height: 44px !important;
    }
    
    /* Grid items - full width on mobile */
    .grid-2x2 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .grid-item {
        padding: 1rem;
    }
    
    .grid-item-title {
        font-size: 1rem;
    }
    
    .grid-item-subtitle {
        font-size: 0.8125rem;
    }
    
    /* Buttons - Touch-friendly */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
    
    /* Modals - Compact and scrollable on mobile */
    .modal-overlay {
        padding: 1rem 0.75rem;
        align-items: center;
    }
    
    .modal {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 0.75rem;
        display: flex;
        flex-direction: column;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    }
    
    .modal-header {
        padding: 1.25rem 1rem;
        border-radius: 0.75rem 0.75rem 0 0;
        flex-shrink: 0;
        min-height: 52px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .modal-header h3 {
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 1.4;
        padding-right: 0.5rem;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .modal-body {
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1.25rem 1rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        max-height: calc(85vh - 52px); /* Account for header */
    }
    
    /* Buttons in modals - full width on mobile */
    .modal-body .btn {
        width: 100%;
        margin-bottom: 0 rem;
    }
    
    .modal-body .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Form groups in modals */
    .modal-body .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Lists in modals */
    .modal-body .list {
        margin: 0;
    }
    
    .modal-body .list-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Ensure modals don't get cut off */
    .modal-body * {
        max-width: 100%;
    }
    
    /* Forms - Mobile optimized */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    .form-group label {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }
    
    /* Auth Section - Better centering on mobile */
    #auth-section {
        min-height: 100vh;
        padding: 1rem;
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }
    
    /* Auth Container - Mobile optimized */
    .auth-container {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        border-radius: 1rem;
        max-width: 100%;
        width: 100%;
        position: relative;
        top: 0;
        transform: none;
    }
    
    .auth-logo {
        margin-bottom: 2rem;
    }
    
    .auth-logo img {
        height: 3rem;
    }
    
    .auth-form {
        width: 100%;
    }
    
    /* Stripe Status Card */
    #stripe-status {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 1rem 0.75rem;
        padding-top: 1rem; /* Normal top padding */
    }
    
    .dashboard-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    /* Modals - Extra small screens */
    .modal-overlay {
        padding: 0.75rem 0.5rem;
    }
    
    .modal {
        max-height: 90vh;
        border-radius: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem 0.75rem;
        min-height: 48px;
        border-radius: 0.5rem 0.5rem 0 0;
    }
    
    .modal-header h3 {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 1.375rem;
    }
    
    .modal-body {
        padding: 1rem 0.75rem;
        max-height: calc(90vh - 48px);
    }
    
    /* Form elements in modals - smaller screens */
    .modal-body .form-group {
        margin-bottom: 1rem;
    }
    
    .modal-body .form-group input,
    .modal-body .form-group select,
    .modal-body .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .modal-body .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .modal-body .btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }
    
    /* Ticket actions container - stack buttons on mobile */
    .ticket-actions-container {
        flex-direction: column !important;
    }
    
    .ticket-action-btn {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
    
    .dashboard-card {
        padding: 1.25rem;
    }
    
    .dashboard-card h2 {
        font-size: 1.125rem;
    }
    
    .graph-card {
        padding: 1rem;
    }
    
    .graph-card canvas {
        max-height: 160px;
    }
    
    .grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        padding: 0.625rem;
    }
    
    .mobile-menu-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Auth Section - Extra small screens */
    #auth-section {
        min-height: 100vh;
        padding: 0.75rem;
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }
    
    .auth-container {
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .auth-logo {
        margin-bottom: 1.5rem;
    }
    
    .auth-logo img {
        height: 2.5rem;
    }
    
    .auth-form .btn-primary {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Event View Page Styles */
.event-view-container {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.event-view-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70vh;
    background: linear-gradient(180deg, 
        rgba(31, 190, 201, 0.2) 0%, 
        rgba(15, 168, 179, 0.15) 20%,
        rgba(79, 208, 217, 0.1) 40%,
        rgba(31, 190, 201, 0.06) 60%,
        rgba(31, 190, 201, 0.03) 80%,
        rgba(10, 10, 10, 0) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.event-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.event-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.event-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.event-details {
    display: grid;
    gap: 1rem;
    margin: 0 2rem 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.event-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.event-detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1FBEC9 0%, #0FA8B3 100%);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.event-detail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
    border-left-color: #1FBEC9;
}

.event-detail-item:hover::before {
    transform: scaleY(1);
}

.event-detail-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: 'Inter', -apple-system, sans-serif;
}

.event-detail-value {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.tickets-section {
    margin-top: 0;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.tickets-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.ticket-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
}

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

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 190, 201, 0.1) 0%, rgba(15, 168, 179, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.ticket-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1FBEC9 0%, #0FA8B3 50%, #4FD0D9 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
    z-index: 1;
}

.ticket-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(31, 190, 201, 0.4);
}

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

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

.ticket-card.selected {
    border-color: rgba(31, 190, 201, 0.8);
    border-width: 3px;
    background: rgba(31, 190, 201, 0.15);
    backdrop-filter: blur(30px);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(31, 190, 201, 0.5);
}

.ticket-card.selected::before {
    opacity: 1;
}

.ticket-card.selected::after {
    transform: scaleX(1);
    height: 5px;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.ticket-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    flex: 1;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ticket-price {
    font-size: 2.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: -0.03em;
}

.free-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
    letter-spacing: -0.02em;
}

.ticket-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.ticket-select-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.ticket-card:hover .ticket-select-indicator {
    color: rgba(255, 255, 255, 0.9);
    border-top-color: rgba(255, 255, 255, 0.2);
}

.ticket-card.selected .ticket-select-indicator {
    color: #fff;
    font-weight: 700;
    border-top-color: rgba(31, 190, 201, 0.5);
}

.select-icon {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: #1FBEC9;
}

.ticket-card:hover .select-icon,
.ticket-card.selected .select-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.selected-ticket-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2rem 2.5rem;
    background: rgba(31, 190, 201, 0.15);
    backdrop-filter: blur(30px);
    border-radius: 1.5rem;
    border: 2px solid rgba(31, 190, 201, 0.5);
    margin: 3rem 2rem 2rem;
    position: sticky;
    bottom: 1.5rem;
    z-index: 100;
    box-shadow: 0 25px 50px -12px rgba(31, 190, 201, 0.4);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.selected-ticket-info {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
}

.selected-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.selected-ticket-name {
    font-weight: 800;
    color: #fff;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.selected-ticket-price {
    font-size: 2.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.btn-buy-now-primary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #1FBEC9 0%, #0FA8B3 50%, #4FD0D9 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 25px -5px rgba(31, 190, 201, 0.4), 0 10px 10px -5px rgba(31, 190, 201, 0.2);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

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

.btn-buy-now-primary:hover::before {
    left: 100%;
}

.btn-buy-now-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(31, 190, 201, 0.5);
}

.btn-buy-now-primary:active {
    transform: translateY(-1px) scale(1);
}

.btn-buy-now-primary svg {
    transition: transform 0.3s;
}

.btn-buy-now-primary:hover svg {
    transform: translateX(6px);
}

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

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

/* Responsive Event View */
@media (max-width: 768px) {
    .event-view-container {
        padding: 0;
    }

    .event-header {
        padding: 4rem 1.5rem 3rem;
    }

    .event-title {
        font-size: 2.5rem;
    }

    .event-description {
        font-size: 1.2rem;
    }

    .event-details {
        margin: 0 1.5rem 4rem;
        padding: 2rem;
    }

    .event-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .tickets-section {
        padding: 0 1.5rem 4rem;
    }

    .tickets-section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .tickets-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ticket-card {
        padding: 2.5rem;
    }

    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ticket-name {
        font-size: 1.75rem;
    }

    .ticket-price {
        font-size: 2rem;
    }

    .selected-ticket-actions {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        margin: 3rem 1.5rem 2rem;
        position: relative;
        bottom: auto;
    }

    .selected-ticket-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .selected-ticket-name {
        font-size: 1.25rem;
    }

    .selected-ticket-price {
        font-size: 2rem;
    }

    .btn-buy-now-primary {
        width: 100%;
        justify-content: center;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
}

