/* public/css/styles.css - Complete styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0D0D0D;
    color: #FFFFFF;
    line-height: 1.5;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #BDF24B;
    border-radius: 4px;
}

:root {
    --dark: #0D0D0D;
    --lime: #BDF24B;
    --green-light: #63F295;
    --violet: #7378D9;
    --violet-dark: #575FF2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(189, 242, 75, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--lime), var(--green-light), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--lime);
}

.btn-login {
    background: transparent;
    border: 2px solid var(--lime);
    color: var(--lime);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--lime);
    color: var(--dark);
}

/* Menu Toggle Button - Show on mobile only */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #BDF24B;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s;
}

.menu-toggle:hover {
    color: #63F295;
    transform: scale(1.05);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        border-bottom: 1px solid rgba(189, 242, 75, 0.2);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-links .nav-link,
    .nav-links .btn-login {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }
    
    #app {
        padding-top: 70px;
    }
    
    .hero {
        min-height: calc(100vh - 70px);
        margin-top: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--lime), var(--green-light));
    color: var(--dark);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(189, 242, 75, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--lime);
    color: var(--lime);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--lime);
    color: var(--dark);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main app container - FIXED: Added padding-top for navbar */
#app {
    padding-top: 90px;
    min-height: 100vh;
}

/* Page container */
.page {
    padding-top: 0;
    min-height: calc(100vh - 90px);
}

/* Hero Section - FIXED for desktop */
.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    position: relative;
    margin-top: -20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(115, 120, 217, 0.15), transparent 50%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, var(--lime));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    color: #aaa;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--lime);
}

.stat-label {
    color: #888;
    font-size: 0.875rem;
}

.hero-image img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(189, 242, 75, 0.2);
}



/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.event-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(189, 242, 75, 0.1);
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: var(--lime);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--lime);
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.event-location, .event-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.event-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lime);
    margin: 1rem 0;
}

/* Auth Forms */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(189, 242, 75, 0.2);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.875rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--lime);
}

/* Event Detail */
.event-detail {
    background: rgba(26, 26, 26, 0.4);
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.event-detail-image {
  background-color: #0D0D0D;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  margin: 0;
  padding: 0;
}

.event-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

/* For larger desktop screens, keep landscape */
@media (min-width: 1025px) {
  .event-detail-image {
    height: 500px;
    max-height: 60vh;
  }
}

.event-detail-content {
    padding: 2rem;
}

.ticket-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.ticket-type-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.ticket-type-info p {
    color: #aaa;
    font-size: 0.875rem;
}

.ticket-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticket-quantity input {
    width: 80px;
    padding: 0.5rem;
    text-align: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
}

/* Create Event */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ticket-type-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-type-item input {
    flex: 1;
    min-width: 100px;
}

.ticket-type-item input:first-child {
    flex: 1.5;
}

.remove-tt-btn {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff4444;
}

.remove-tt-btn:hover {
    background: #ff4444;
    color: white;
}

/* Glass effect for forms */
.glass {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(189, 242, 75, 0.1);
}

/* Form styling */
#createEventForm .form-group {
    margin-bottom: 1.5rem;
}

#createEventForm label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-weight: 500;
}

#createEventForm input, 
#createEventForm textarea,
#createEventForm select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

#createEventForm input:focus, 
#createEventForm textarea:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(189, 242, 75, 0.1);
}

#createEventForm input::placeholder,
#createEventForm textarea::placeholder {
    color: #666;
}

/* Small text styling */
small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #666;
}

/* Ticket Card */
.ticket-card {
    background: linear-gradient(135deg, #1a1a1a, #0D0D0D);
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 4px solid #BDF24B;
}

.ticket-code {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #BDF24B;
}

/* Footer */
.footer {
    background: #000000;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(189, 242, 75, 0.1);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--lime), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.footer-description {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #888;
  font-size: 1.2rem;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background: #BDF24B;
  color: #0D0D0D;
  transform: translateY(-3px);
  text-decoration: none;
}

/* Specific social colors on hover */
.social-links a[href*="instagram"]:hover { background: #E4405F; color: white; }
.social-links a[href*="facebook"]:hover { background: #1877F2; color: white; }
.social-links a[href*="x-twitter"]:hover { background: #000000; color: white; }
.social-links a[href*="youtube"]:hover { background: #FF0000; color: white; }
.social-links a[href*="tiktok"]:hover { background: #000000; color: white; }

.footer h4 {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--lime);
  text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.75rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem;
}

.spinner {
    border: 3px solid rgba(189, 242, 75, 0.2);
    border-top: 3px solid var(--lime);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dashboard Stats */
.stats-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 24px;
    z-index: 2000;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--lime);
}

/* Responsive Design */
/* Mobile (up to 768px) */
@media (max-width: 768px) {
    #app {
        padding-top: 70px;
    }
    
    .hero {
        min-height: calc(100vh - 70px);
        margin-top: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-links .nav-link:not(.btn-login) {
        display: none;
    }

    .menu-toggle {
    display: block;
    }

    .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid rgba(189, 242, 75, 0.2);
    z-index: 1000;
  }
  
    .nav-links.active {
    display: flex !important;
  }
  
   .nav-links .nav-link,
   .nav-links .btn-login {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    }
        #shareModal button {
        -webkit-tap-highlight-color: transparent;
    }
    
    #shareModal input {
        font-size: 16px !important;
    }
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #BDF24B;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

/* Tablet (769px) */
@media (min-width: 769px) {
    #app {
        padding-top: 80px;
    }
    
    .hero {
        min-height: calc(100vh - 80px);
        margin-top: -10px;
    }
    
.hero-content {
        display: grid;
        /* CHANGE: The text gets a minimum of 450px, the image takes the remaining space (1fr) */
        grid-template-columns: minmax(450px, 1fr) 1fr;
        gap: 0;
        align-items: stretch;
        margin-right: -0rem; 
        margin-top: -4rem;
        margin-bottom: -4rem;
        /* Prevents content from overflowing during the transition */
        overflow: hidden; 
    }

    .hero-text {
        padding-right: 5%; /* Use percentage-based padding for smoother scaling */
        padding-left: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 2; /* Ensures text stays above the image fade */
    }

    .hero-image {
        position: relative;
        width: 100%;
        border-radius: 93% 7% 0% 100% / 0% 7% 93% 100%;
        min-width: 300px;
        
        /* THE DUAL FADE: 
           0% (Top-Left) is hidden
           50% (Center) is fully visible
           100% (Bottom-Right) is hidden */
        -webkit-mask-image: linear-gradient(135deg, 
            transparent 0%, 
            black 50%, 
            transparent 100%
        );
        mask-image: linear-gradient(135deg, 
            transparent 0%, 
            black 50%, 
            transparent 100%
        );

        /* Soften the borders: removing edges where the fade happens */
        border: 1px solid rgba(189, 242, 75, 0.3);
        border-top: none;
        border-left: none;
        border-bottom: none; /* Removed so the bottom-right fade is seamless */
        
        overflow: hidden;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 80% center;
        transform: scale(1.1); /* Slightly more zoom to keep the center punchy */
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .container {
    padding: 0 1.5rem;
  }
  
  .event-detail-content {
    padding: 1.5rem;
  }
  
  .event-detail-image {
    height: 350px;
  }

.event-detail-image {
    max-height: 550px;
    background-size: contain;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    #app {
        padding-top: 100px;
    }
    
    .hero {
        min-height: calc(100vh - 100px);
        margin-top: -30px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }

     .event-detail-image {
    max-height: 550px;
    min-height: 350px;
  }
  .event-detail-image img {
    max-height: 550px;
  }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    #app {
        padding-top: 105px;
    }
    
    .hero {
        min-height: calc(100vh - 105px);
        margin-top: -40px;
    }
}

/* Ticket Type Items Styling */
.ticket-type-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-items: flex-end;
}

.ticket-type-item label {
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 4px;
  display: block;
}

.ticket-type-item input {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-size: 0.9rem;
}

.ticket-type-item input:focus {
  outline: none;
  border-color: #BDF24B;
}

.ticket-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
}

@media (max-width: 768px) {
  .ticket-type-item {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ticket-header {
    display: none;
  }

}

/* Event Detail Page - Mobile Optimizations */
@media (max-width: 768px) {
  /* Container padding reduction */
  .container {
    padding: 0 1rem;
  }
  
  /* Event Detail Page specific */
  .event-detail {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }
  
  /* Event Image - Portrait mode and full width */
  .event-detail-image {
    min-height: 280px;
    max-height: 380px;
    border-radius: 0;
  }

    .event-detail-image img {
    max-height: 400px;
  }
  
  /* Event Detail Content - Remove excessive padding */
  .event-detail-content {
    padding: 1.25rem;
  }
  
  /* Headings margin adjustment */
  .event-detail-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  /* Info boxes padding reduction */
  .event-detail-content [style*="background: rgba"] {
    padding: 0.75rem !important;
    margin: 0.75rem 0 !important;
  }
  
  /* Ticket type items - better spacing */
  .ticket-type {
    padding: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .ticket-type-info {
    width: 100%;
  }
  
  .ticket-quantity {
    width: 100%;
    justify-content: space-between;
  }
  
  .ticket-quantity input {
    width: 100px;
  }
  
  /* Checkout button full width */
  #checkoutBtn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  /* Back button adjustment */
  #backToEventsBtn {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Organizer info box */
  .event-detail-content [style*="background: rgba(189, 242, 75"] {
    padding: 0.75rem !important;
  }
  
  /* Contact section */
  .event-detail-content [style*="background: rgba(115, 120, 217"] {
    padding: 0.75rem !important;
  }
  
  /* Lists padding */
  .event-detail-content ul {
    margin-left: 1rem !important;
  }
  
  /* Description text */
  .event-detail-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Location and date text */
  .event-location, .event-date, .event-time {
    font-size: 0.875rem;
    margin: 0.5rem 0;
  }
  
  /* Total amount section */
  .event-detail-content [style*="margin-top: 2rem; padding-top: 1rem; border-top"] {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
  }
  
  .event-detail-content [style*="font-size: 1.5rem"] {
    font-size: 1.25rem !important;
  }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .event-detail {
    margin: 0 -0.25rem;
  }
  
  .event-detail-content {
    padding: 1rem;
  }

 .event-detail-image {
    min-height: 250px;
    max-height: 350px;
  }

    .event-detail-image img {
    max-height: 350px;
  }
  
  .event-detail-content h1 {
    font-size: 1.3rem;
  }
  
  .ticket-quantity input {
    width: 80px;
  }
  
  .ticket-quantity span {
    font-size: 0.875rem;
  }
}

/* Share button styles */
.share-event-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #BDF24B;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
    z-index: 10;
}

.share-event-btn:hover {
    background: #BDF24B;
    color: #0D0D0D;
    transform: scale(1.05);
}

/* Share modal animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#shareModal {
    animation: fadeIn 0.2s ease-out;
}

/* Share Modal Styles */
#shareModal button {
    transition: all 0.2s ease;
}

#shareModal button:hover {
    transform: scale(1.02);
}

#shareModal button:active {
    transform: scale(0.98);
}

/* Mobile share modal optimizations */
@media (max-width: 768px) {
    #shareModal button {
        -webkit-tap-highlight-color: transparent;
    }
    
    #shareModal button:active {
        transform: scale(0.98);
        transition: transform 0.05s;
    }
    
    #shareModal input {
        font-size: 16px !important; /* Prevents zoom on focus in iOS */
    }

    #shareModal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(8px);
        z-index: 20000;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
    }
    
    #shareModal > div {
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Custom scrollbar for mobile */
    #shareModal > div::-webkit-scrollbar {
        width: 4px;
    }
    
    #shareModal > div::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 4px;
    }
    
    #shareModal > div::-webkit-scrollbar-thumb {
        background: #BDF24B;
        border-radius: 4px;
    }
    
    /* Prevent body scroll when modal is open */
    body.modal-open {
        overflow: hidden;
    }
}

/* Checkout Page - Form Layout Improvements */
@media (max-width: 768px) {
  /* Checkout container */
  .container.page[style*="max-width: 900px"] {
    padding: 0 1rem !important;
  }
  
  /* Form rows - stack vertically on mobile */
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-row .form-group {
    width: 100%;
  }
  
  /* Form inputs - full width */
  #paymentForm .form-group input,
  #paymentForm .form-group textarea,
  #paymentForm .form-group select {
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Payment buttons - vertical stack */
  .payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .payment-buttons button {
    width: 100%;
    margin: 0 !important;
  }
  
  /* BSP Pay form container */
  #bspPayForm .glass {
    padding: 1.25rem;
  }
  
  /* Cancel button alignment */
  #bspPayForm .form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  #bspPayForm .form-actions button {
    width: 100%;
  }
}

/* Desktop - keep side by side */
@media (min-width: 769px) {
  .payment-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .payment-buttons button {
    flex: 1;
  }
}

/* Dashboard - Tickets Display */
.dashboard-tickets-section {
  margin-bottom: 3rem;
}

.dashboard-tickets-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(189, 242, 75, 0.3);
}

/* Tickets grouped by event - horizontal scroll on desktop */
.tickets-by-event {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 1.5rem;
}

.event-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-header h3 {
  color: #BDF24B;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.event-header p {
  color: #888;
  font-size: 0.875rem;
}

/* Tickets grid - horizontal layout on desktop */
.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* Individual ticket card */
.ticket-item {
  background: linear-gradient(135deg, #1a1a1a, #0D0D0D);
  border-radius: 16px;
  padding: 1rem;
  border-left: 3px solid #BDF24B;
  transition: transform 0.2s;
}

.ticket-item:hover {
  transform: translateY(-2px);
}

.ticket-code {
  font-family: monospace;
  font-size: 1rem;
  font-weight: bold;
  color: #BDF24B;
  margin-bottom: 0.5rem;
}

.ticket-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #aaa;
  margin: 0.25rem 0;
}

.ticket-status {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
}

.status-active {
  background: rgba(189, 242, 75, 0.2);
  color: #BDF24B;
}

.status-scanned {
  background: rgba(99, 242, 149, 0.2);
  color: #63F295;
}

.download-ticket-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.5rem;
  font-size: 0.75rem;
}

/* Mobile view - single column */
@media (max-width: 768px) {
  .tickets-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .tickets-by-event {
    padding: 1rem;
  }
  
  .event-header h3 {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block !important;
  }
}

/* Profile Page */
.profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #BDF24B, #63F295);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 3rem;
  font-weight: bold;
  color: #0D0D0D;
}

.profile-info {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(189, 242, 75, 0.1);
}

.profile-field {
  margin-bottom: 1.5rem;
}

.profile-field label {
  display: block;
  color: #888;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.profile-field .field-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  word-break: break-all;
}

.profile-field .field-value.editable {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 0.75rem;
  width: 100%;
  color: white;
  font-size: 1rem;
}

.profile-field .field-value.editable:focus {
  outline: none;
  border-color: #BDF24B;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.profile-actions button {
  flex: 1;
}

.danger-zone {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 24px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.danger-zone h3 {
  color: #ff4444;
  margin-bottom: 0.5rem;
}

.danger-zone p {
  color: #888;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Dashboard welcome header */
.dashboard-welcome {
  background: linear-gradient(135deg, rgba(189, 242, 75, 0.1), rgba(115, 120, 217, 0.05));
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.welcome-text h2 {
  margin-bottom: 0.25rem;
}

.welcome-text p {
  color: #888;
  font-size: 0.875rem;
}

.welcome-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #BDF24B, #63F295);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #0D0D0D;
}

@media (max-width: 768px) {
  .profile-actions {
    flex-direction: column;
  }
  
  .dashboard-welcome {
    flex-direction: column;
    text-align: center;
  }
}

/* Payment Methods Section */
.payment-methods {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Google Play Button */
.download-google-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0D0D0D;
  border: 1px solid #BDF24B;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
}

.download-google-play:hover {
  background: #BDF24B;
  color: #0D0D0D;
  transform: translateY(-2px);
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .payment-methods div {
    justify-content: center;
  }
}