/* Base Styles - Updated 2025-01-26 for mobile spacing fix */
:root {
    --primary: #2d46b9;
    --secondary: #6c4bd1;
    --dark: #1a1a2e;
    --light: #f1f1f1;
    --success: #4caf50;
    --error: #f44336;
    --gray: #888;
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-green: #00ff00;
    --neon-purple: #9d00ff;
    --neon-yellow: #ffff00;
    --icon-bg: #5e17eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    color-scheme: light dark;
    -webkit-color-scheme: light dark;
    /* Ensure HTML fills entire viewport including safe areas */
    min-height: 100vh;
    min-height: 100dvh;
    /* Fallback background color for safe areas if image doesn't load */
    background-color: #2d1b69; /* Darker purple fallback */
}

body {
    font-family: 'Roboto', sans-serif;
    color: white;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for modern browsers */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    /* Background with fallback color for safe areas */
    background-color: #2d1b69; /* Darker purple fallback for safe areas */
    background-image: url('../../../assets/img/request.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/* Preserve FontAwesome icons */
.fas, .far, .fab, .fal, .fad, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome" !important;
}

.app-container {
    width: 100%;
    max-width: 1000px;
    background: rgba(26, 26, 46, 0.7); /* Keep original lighter background */
    border-radius: 20px;
    overflow: visible; /* Changed from hidden to visible for auto-height */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    margin-top: 30px;
    /* Auto-height support */
    min-height: 400px; /* Minimum height to prevent collapse */
    height: auto; /* Allow container to grow with content */
    /* iOS Safari fix: Start with opacity 0 and no backdrop-filter */
    opacity: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Use transform3d for better iOS compatibility */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* App container is always visible - no loading screen */
.app-container {
    opacity: 1 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Event Header */
.event-header {
    background: linear-gradient(145deg,
            var(--primary),
            var(--secondary),
            var(--primary),
            var(--secondary));
    background-size: 400% 400%;
    padding: 15px 5px 5px 5px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gradientAnimation 15s ease infinite;
    border-radius: 20px 20px 0 0; /* Remove bottom radius for tabs */
}

/* Event Header Content Layout */
.event-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.event-info {
    flex: 1;
    text-align: left;
}

/* QR Code Icon and Share Container */
.qr-share-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.qr-code-icon,
.hire-dj-icon,
.message-icon,
.recent-songs-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: white;
}

.qr-code-icon:hover,
.hire-dj-icon:hover,
.message-icon:hover,
.recent-songs-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.qr-code-icon i,
.hire-dj-icon i,
.message-icon i,
.recent-songs-icon i {
    font-size: 20px;
}

.share-text,
.hire-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: lowercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Hot Songs Indicator - Popular Songs Feature - Exact copy from show/index.php */
.hot-indicator {
    background: #ff6b35;
    border: 2px solid #ff6b35;
    border-radius: 6px;
    color: white;
    cursor: default;
    margin-left: 8px;
    margin-right: 4px;
    font-size: 11px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    height: 22px;
    transform: translateY(-1px);
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    vertical-align: middle;
}

.hot-indicator i {
    font-size: 11px;
    line-height: 1;
    color: #ffeb3b;
}

.hot-indicator .request-count {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: white;
}

.hot-song {
    position: relative;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), transparent);
    border-left: 3px solid #ff6b35;
}

/* Recent Songs Modal Scrollbar Styling */
.recent-songs-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent; /* thumb color, track color */
}

.recent-songs-list::-webkit-scrollbar {
    width: 8px;
    /* Force scrollbar to be visible on iOS */
    -webkit-appearance: none;
}

.recent-songs-list::-webkit-scrollbar-track {
    background: transparent; /* Always transparent */
    border-radius: 4px;
}

.recent-songs-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
    /* Make thumb more visible on iOS */
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: rgba(255, 255, 255, 0.5);
}

.recent-songs-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Hide scrollbar track when content doesn't overflow */
.recent-songs-list:not(:hover)::-webkit-scrollbar-track {
    background: transparent;
}

/* iOS specific fixes for recent songs modal */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .recent-songs-list {
        /* Force momentum scrolling on iOS */
        -webkit-overflow-scrolling: touch !important;
        /* Ensure proper overflow behavior */
        overflow-y: scroll !important;
        /* Add bottom padding to ensure last item is visible */
        padding-bottom: 20px !important;
    }
    
    /* Ensure recent song items have proper spacing */
    .recent-song-item:last-child {
        margin-bottom: 10px;
        padding-bottom: 15px;
    }
}

/* Recent Song Item Styling */
.recent-song-item {
    transition: background-color 0.2s ease;
}

.recent-song-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Define the gradient animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   HEADER MENU SECTION
   ======================================== */

/* Header Separator Line */
.header-separator {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 10px 0 0 0;
}

/* Header Menu Cards Container */
.header-menu-cards {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 15px 20px 15px 20px;
    background: transparent; /* Same as header background */
    flex-wrap: nowrap;
    min-height: 100px; /* Prevent collapse when no menu cards are visible - matches card height (70px) + padding (30px) */
}

/* Ensure minimum height is maintained even when empty */
.header-menu-cards:empty {
    min-height: 100px;
}

/* Individual Menu Card */
.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 110px;
    height: 70px;
    text-align: center;
    flex-shrink: 0;
}

/* Menu Card Icon */
.menu-card-icon {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.menu-card-icon i {
    font-size: 20px;
    color: white;
    transition: all 0.2s ease;
}

/* Menu Card Label */
.menu-card-label {
    font-size: 11px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
    max-width: 100%;
}

/* Hover Effects - Only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .menu-card:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .menu-card:hover .menu-card-icon i {
        transform: scale(1.1);
    }
}

/* Active State (when modal is open) */
.menu-card.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Force reset hover states on touch devices */
@media (hover: none) and (pointer: coarse) {
    .menu-card:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
        box-shadow: none;
    }
    
    .menu-card:hover .menu-card-icon i {
        transform: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-menu-cards {
        padding: 12px 10px 10px 8px;
        gap: 8px;
        min-height: 82px; /* Adjusted minimum height for mobile - matches card height (60px) + padding (22px) */
    }
    
    /* Ensure minimum height is maintained even when empty on mobile */
    .header-menu-cards:empty {
        min-height: 82px;
    }
    
    .menu-card {
        padding: 8px 8px;
        min-width: 90px;
        height: 60px;
    }
    
    .menu-card-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }
    
    .menu-card-icon i {
        font-size: 18px;
    }
    
    .menu-card-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    /* Make tabs auto-widen equally to fill full width */
    .header-menu-cards {
        padding: 12px 10px 10px 8px;
        gap: 6px;
        min-height: 82px; /* Maintain minimum height on small screens - matches card height (60px) + padding (22px) */
    }
    
    /* Ensure minimum height is maintained even when empty on small screens */
    .header-menu-cards:empty {
        min-height: 82px;
    }
    
    .menu-card {
        padding: 8px 6px;
        min-width: 0; /* Remove min-width constraint */
        flex: 1; /* Allow tabs to grow equally to fill available space */
        height: 60px;
    }
    
    /* When there's only one menu card, keep it normal width instead of full width */
    .header-menu-cards:has(.menu-card:only-child) .menu-card {
        flex: 0 0 auto; /* Don't grow to fill space */
        min-width: 90px; /* Restore minimum width */
    }
}

/* ========================================
   CONTAINER VIEW SYSTEM (like request-old)
   ======================================== */

/* Dynamic Header Title (replaces menu cards when view is active) */
.header-view-title {
    display: none; /* Hidden by default */
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 15px 20px; /* Match menu cards padding exactly */
    background: transparent;
    position: absolute;
    top: 100px;
    left: 20px;
    right: 20px;
    height: 70px;
    min-height: 70px;
    z-index: 20;
}

.view-title-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.view-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.view-title-icon i {
    font-size: 20px;
    color: white;
}

.view-title-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

/* Requests Tab (back to requests) - Match menu card styling exactly */
.requests-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    background: rgb(217 39 141 / 99%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 110px;
    height: 70px;
    text-align: center;
    flex-shrink: 0;
}

.requests-tab-icon {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.requests-tab-icon i {
    font-size: 20px;
    color: white;
    transition: all 0.2s ease;
}

.requests-tab-label {
    font-size: 11px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
}

/* Hover Effects - Only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .requests-tab:hover {
        background: rgb(217 39 141 / 99%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .requests-tab:hover .requests-tab-icon i {
        transform: scale(1.1);
    }
}

/* Container Views */
.container-view {
    display: none; /* Hidden by default */
    padding: 40px 30px 15px 30px;
}

.view-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Tipper Name Section (shared across forms) */
.tipper-name-section {
    margin-bottom: 25px;
}

.tipper-name-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.tipper-name-input {
    width: 100%;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    color: rgba(255, 255, 255, 1);
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tipper-name-input:focus {
    outline: none;
    background-color: rgba(30, 30, 50, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.tipper-name-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Message Content Section */
.message-content-section {
    margin-bottom: 25px;
}

.message-content-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.message-content-input {
    width: 100%;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    color: rgba(255, 255, 255, 1);
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    resize: vertical;
    min-height: 120px;
}

.message-content-input:focus {
    outline: none;
    background-color: rgba(30, 30, 50, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.message-content-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Character Count */
.character-count {
    text-align: right;
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Responsive for Container Views */
@media (max-width: 768px) {
    .header-view-title {
        padding: 12px 15px 12px 15px; /* Match menu cards padding exactly */
    }
    
    .view-title-text {
        font-size: 16px;
    }
    
    .requests-tab {
        padding: 8px 8px;
        min-width: 90px;
        height: 60px;
    }
    
    .requests-tab-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }
    
    .requests-tab-icon i {
        font-size: 18px;
    }
    
    .requests-tab-label {
        font-size: 10px;
    }
    
    .container-view {
        padding: 30px 20px 15px 20px;
    }
    
    .tipper-name-input,
    .message-content-input {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

@media (max-width: 480px) {
    /* Header and tab styles removed - keeping same as larger screens */
    
    .container-view {
        padding: 25px 15px 15px 15px;
    }
}

@keyframes shimmerEffect {
    0% {
        transform: rotate(45deg) translateX(-15%);
    }
    100% {
        transform: rotate(45deg) translateX(15%);
    }
}

.event-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    text-align: left;
}

.event-date {
    font-size: 16px;
    opacity: 0.8;
    position: relative;
}


.spotify-logo {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    opacity: 0.8;
}

.spotify-logo .fa-spotify {
    color: var(--spotify-green);
    font-size: 14px;
}

/* Main Content */
.main-content {
    padding: 40px 30px 15px 30px; /* Increased top padding from 30px to 40px for 10px more space */
}

/* Form Styles */
.form-group {
    margin-bottom: 30px;
    position: relative;
}

/* Add extra top margin to the first form group for better spacing */
.form-group:first-child,
.form-group.search-input {
    margin-top: 18px;
}

/* Ensure consistent spacing between name field and REQUEST SONG button */
.form-group.name-input {
    margin-bottom: 31px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

/* Input Group Styles */
.input-group {
    display: flex;
    box-shadow: none;
    border-radius: 12px;
    position: relative;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Remove overflow: hidden to allow dropdown to be visible */
    overflow: visible;
}

.input-group-text {
    background: var(--icon-bg);
    color: white;
    border: none;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    border-radius: 10px 0 0 10px; /* Match parent's border-radius for left side */
    position: relative;
    z-index: 1; /* Lower z-index to ensure it doesn't overlap the dropdown */
    margin-right: 0; /* Remove negative margin that might cause issues */
}

.input-group-text i {
    font-size: 1.4rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control {
    width: 100%;
    background: rgba(30, 30, 50, 0.6);
    border: none;
    border-radius: 0 12px 12px 0; /* Keep right side rounded */
    padding: 18px;
    color: rgba(255, 255, 255, 1);
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s;
    font-size: 18px;
    flex: 1;
    padding-right: 35px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1; /* Lower z-index to ensure it doesn't overlap the dropdown */
}

.form-control:focus {
    outline: none;
    background-color: rgba(30, 30, 50, 0.6);
    box-shadow: none;
    border-radius: 0 12px 12px 0; /* Maintain border radius on focus */
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Validation styling - red background on validation failure */
.form-control.validation-error {
    background-color: rgba(244, 67, 54, 0.2) !important;
    border-color: rgba(244, 67, 54, 0.5) !important;
}

.form-control.validation-error:focus {
    background-color: rgba(244, 67, 54, 0.3) !important;
    border-color: rgba(244, 67, 54, 0.7) !important;
}

/* Song-Artist Row Layout */
.song-artist-row {
    display: flex;
    gap: 10px;
}

.song-input,
.artist-input {
    flex: 1;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 18px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    position: relative;
    overflow: visible;
    background-clip: padding-box;
}

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

.submit-btn i {
    font-size: 22px;
}

/* Message Styles */
.message {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 16px;
}

.message.error {
    background-color: transparent;
    border: 1px solid var(--error);
}

.message.success {
    background-color: rgba(76, 175, 80, 0.2);
    border-left: 3px solid var(--success);
}

/* Submission Limit Info Container - inside event header */
.submission-limit-info {
    margin: 0; /* No margins - banners touch with no gap */
    width: 100%;
    overflow: visible; /* Ensure rounded corners are visible */
}

/* Songs remaining banner - no rounded corners on base */
.requests-remaining {
    background: rgba(33, 150, 243, 0.15);
    border: none;
    border-radius: 0;
    margin: 0 0 10px 0;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    min-height: 50px;
}

.requests-remaining i {
    color: #2196f3;
    font-size: 18px;
}

.requests-remaining.limit-reached {
    background: rgba(239, 68, 68, 0.15);
    border: none;
    border-radius: 8px;
    color: #fca5a5;
}

.requests-remaining.limit-reached.duplicate-error {
    border-radius: 8px;
}

.requests-remaining.limit-reached i {
    color: #ff9800;
}

/* Full-width banner style for "Requests close on" message */
.requests-remaining.end-date-info {
    background: rgb(33 52 243 / 23%);
    border: none;
    border-radius: 0;
    margin: 0 0 10px 0;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 1;
}

.requests-remaining.end-date-info i {
    color: white;
}

.requests-remaining.end-date-info strong {
    color: white;
}

/* Hide end-date-info banner when a container view is active */
.event-header.view-active ~ .requests-remaining.end-date-info {
    display: none;
}

.requests-remaining.end-date-info i {
    color: white;
}

.requests-remaining strong {
    font-weight: 600;
}

/* Code Input Styles */
.code-form {
    padding: 40px;
    text-align: center;
}

.code-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.code-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    color: white;
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    text-transform: uppercase;
}

.code-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: none;
}

/* Recent request area styles have been removed */

/* Success Overlay - Simple fade animation */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(45, 10, 108, 0.95) 0%,
        rgba(87, 39, 163, 0.95) 50%,
        rgba(123, 43, 204, 0.95) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    opacity: 0; /* Start with 0 opacity for fade-in */
    
    /* Simple fade transition */
    transition: opacity 0.5s ease;
}

/* Confetti and Animation Elements */
.confetti-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--neon-pink);
    border-radius: 50%;
    opacity: 0;
    animation: confetti-fall 2s ease-in-out infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    25% {
        transform: scale(1.25);
        opacity: 1;
    }
    75% {
        transform: scale(1.75);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-icon-container {
    position: relative;
    width: 120px; /* Increased size from 80px to 120px */
    height: 120px; /* Increased size from 80px to 120px */
    margin: 0 auto 60px; /* Increased bottom margin to move it higher away from text */
}

/* Add styles for the close hint */
.close-hint {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding: 10px;
    animation: pulse 2s infinite;
}

.success-icon {
    position: absolute; /* Match embed's absolute positioning */
    top: 50%;
    left: 50%;
    width: 120px; /* Match container size explicitly */
    height: 120px; /* Match container size explicitly */
    background-color: white; /* Changed to white background like embed */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem; /* Increased font size from 2rem to 3rem */
    color: var(--primary); /* Changed color to match embed */
    animation: vinylSpin 2s linear infinite; /* Vinyl record spinning animation */
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Simplified shadow */
    transform: translate(-50%, -50%); /* Center the icon */
}



.success-icon i {
    font-size: 3rem; /* Increased font size to match container size */
    position: relative;
    z-index: 3;
}

/* Replaced rings with embed-style rings - Using original color for light mode */
.ring {
    position: absolute;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 0 3px white;
    /* Remove base opacity to let animation control it */
}

.ring1 {
    top: 0px; /* Start behind the icon */
    left: 0px; /* Start behind the icon */
    right: 0px; /* Start behind the icon */
    bottom: 0px; /* Start behind the icon */
    animation: ripple 1.5s linear infinite !important; /* 1.5s duration for slower scaling */
    /* Use original color for light mode */
    border: none !important;
    box-shadow: 0 0 0 3px white !important;
    opacity: 1; /* Set initial opacity */
    animation-fill-mode: both !important; /* Ensure animation states are maintained */
}

.ring2 {
    top: 0px; /* Start behind the icon, same as ring1 */
    left: 0px; /* Start behind the icon, same as ring1 */
    right: 0px; /* Start behind the icon, same as ring1 */
    bottom: 0px; /* Start behind the icon, same as ring1 */
    animation: ripple 1.5s linear infinite 0.75s !important; /* 0.75s delay for even timing */
    /* Use original color for light mode */
    border: none !important;
    box-shadow: 0 0 0 3px white !important;
    opacity: 1; /* Set initial opacity */
    animation-fill-mode: both !important; /* Ensure animation states are maintained */
}

.success-song-info {
    color: white;
    text-align: center;
    margin-bottom: 80px; /* Increased from 60px to move it higher */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.success-song-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
}

.success-artist-name {
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.2;
}

.success-subtitle {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    width: 100%;
}

/* Music Note Animations */
.music-notes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.music-note {
    position: absolute;
    color: var(--neon-pink);
    font-size: 24px;
    animation: float-note 1.5s linear forwards;
    opacity: 0;
}

@keyframes float-note {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
    }
}

/* Autocomplete Styling */
.autocomplete-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(0, 0, 100, 0.9)!important; /* More opaque background as fallback */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Extremely high z-index to ensure it appears above all elements */
    max-height: 250px;
    overflow-y: auto;
    display: none;
    /* iOS Safari fix: Use transform3d and conditional backdrop-filter */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Apply backdrop-filter when visible */
.autocomplete-container[style*="display: block"],
.autocomplete-container.visible {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: backdrop-filter 0.2s ease-out, -webkit-backdrop-filter 0.2s ease-out;
}

/* Remove iOS-specific fixes that might be causing issues */
/* Instead, use a more direct approach to ensure dropdowns work */
.autocomplete-container {
    /* Default state - hidden */
    display: none;
}

/* When explicitly set to block via JavaScript */
.autocomplete-container[style*="display: block"],
.autocomplete-container.visible,
.input-group.dropdown-open .autocomplete-container {
    /* Force display with highest priority */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Fix for dropdown cutoff at 768px and above */
@media (min-width: 768px) {
    .autocomplete-container {
        position: absolute;
        max-height: 300px; /* Increased max-height */
        overflow-y: auto;
        /* Ensure the container isn't constrained by parent overflow */
        z-index: 9999; /* Extremely high z-index to ensure it appears above all elements */
    }
    
    /* Ensure the app container doesn't clip the dropdown */
    .app-container {
        overflow: visible;
    }
    
    /* Ensure the form container doesn't clip the dropdown */
    .form-group {
        position: relative;
        overflow: visible;
    }
}

.autocomplete-item {
    padding: 6px 45px 6px 18px; /* Add right padding to prevent overlap */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    font-size: 17px;
    position: relative;
}

/* Remove all background colors and borders from nested elements */
.autocomplete-item * {
    background-color: transparent !important;
    border: none !important;
}

.autocomplete-item:hover {
    background-color: rgba(100, 75, 209, 0.3);
}

/* Enhanced Loading Indicator */
.loading-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    display: none;
    z-index: 10;
    background-color: rgba(94, 23, 235, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    transition: all 0.3s ease;
}

.loading-indicator i {
    font-size: 18px;
}

.loading-indicator.active {
    display: block;
    box-shadow: 0 0 10px rgba(94, 23, 235, 0.5);
}

.loading-indicator.active i {
    animation: vinylSpin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes vinylSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.autocomplete-container::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 0;
}

.autocomplete-container::-webkit-scrollbar-thumb {
    background: var(--icon-bg);
    border-radius: 0 8px 8px 0;
}

.autocomplete-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
    box-shadow: 0 0 5px rgba(108, 75, 209, 0.5);
}

.autocomplete-container::-webkit-scrollbar-button {
    display: none;
}

.autocomplete-container::-webkit-scrollbar-corner {
    background: transparent;
}

.autocomplete-header {
    display: none; /* Hide the headers */
}

.autocomplete-item strong {
    font-weight: 600;
    color: #00ffff;
}

.autocomplete-item .song-artist {
    opacity: 0.7;
    font-size: 0.9em;
    margin-left: 5px;
}

.autocomplete-item .song-album {
    opacity: 0.6;
    font-size: 0.8em;
    font-style: italic;
    margin-left: 5px;
}

.source-badge {
    font-size: 0.7em;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 5px;
    border-radius: 8px;
    margin-left: 5px;
    opacity: 0.7;
}

.source-badge .fa-spotify {
    color: #dc3545;
}

.autocomplete-item.selected {
    background-color: rgba(100, 75, 209, 0.3); /* Match the hover color */
    color: white !important;
}


/* Clear button styling - positioned inside input field */
.clear-input {
    position: absolute;
    right: 3px;
    top: 3px;
    bottom: 3px;
    background: rgba(94, 23, 235, 0.7);
    color: white;
    cursor: pointer;
    display: none;
    z-index: 10;
    padding: 0 15px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    min-width: 45px;
    align-items: center;
    justify-content: center;
    border: none;
}

.clear-input:hover {
    background: rgba(255, 77, 77, 0.8);
    color: white;
    transform: scale(1.02);
}

.clear-input i {
    font-size: 1.4rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.8;
}

/* Hide clear button by default */
.clear-input[style*="display: none"] {
    display: none !important;
}

/* Show clear button when needed */
.clear-input[style*="display: block"],
.clear-input[style*="display: flex"] {
    display: flex !important;
}

/* When clear button is visible, keep input field border radius intact */
.input-group.has-clear-button .form-control {
    padding-right: 60px !important; /* Make room for clear button */
    /* Keep original border radius - don't change it */
}

.input-group.has-clear-button .form-control:focus {
    /* Keep original border radius - don't change it */
}

/* Add padding to the right of input fields to make room for the clear button */
/* Note: .input-group position is already defined in the Input Group Styles section */

/* Position adjustment for loading indicator to not overlap with clear button */
.loading-indicator {
    right: 35px;
}

/* Removed pulsating effect to eliminate purple box shadow */
.input-group.searching {
    border-color: var(--icon-bg);
}

/* Search Status Message */
.search-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    text-align: center;
    min-height: 20px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.search-status.visible {
    opacity: 1;
}

.search-status.error {
    color: var(--error);
}

.search-status.success {
    color: var(--success);
}

/* Song ticker scrollbar styling has been removed */

/* Enhanced dark mode styles for better readability */
@media (prefers-color-scheme: dark) {
    /* Improved input styling for better contrast - MOBILE ONLY */
    @media (max-width: 768px) {
        .input-group {
            border: 1px solid rgba(255, 255, 255, 0.4) !important; /* Thinner border for mobile */
            box-shadow: none !important;
            background: transparent !important; /* Keep transparent like light mode */
            overflow: visible;
            border-radius: 12px !important; /* Ensure border radius is maintained */
        }
    }
    
    /* Desktop dark mode - keep original subtle borders */
    @media (min-width: 769px) {
        .input-group {
            border: 1px solid rgba(255, 255, 255, 0.3) !important; /* Subtle border for desktop */
            box-shadow: none !important;
            background: transparent !important;
            overflow: visible;
            border-radius: 12px !important;
        }
    }
    
    .form-control {
        background-color: rgba(30, 30, 50, 0.6) !important; /* Match light mode transparency */
        color: white !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.8) !important; /* More visible placeholder */
    }
    
    .form-control:focus {
        background-color: rgba(30, 30, 50, 0.8) !important; /* Match light mode transparency */
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        outline-offset: 0 !important;
    }
    
    /* Dark mode validation styling removed - no red background */
    
    /* Ensure labels are visible */
    .form-label {
        color: white !important;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.7) !important;
    }
    
    /* App container improvements */
    .app-container {
        background: rgba(26, 26, 46, 0.7) !important; /* Match light mode transparency */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Remove submit button border override from general dark mode - let base styles handle it */
    
}

/* Lookup styles have been moved to lookup-styles.css to avoid conflicts */

/* ========================================
   TIPPING MODAL STYLES
   ======================================== */

/* Modal Overlay */
.tip-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* More opaque background as fallback */
    animation: fadeIn 0.3s ease-out;
    /* Ensure modal can scroll on mobile */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* iOS Safari fix: Use transform3d and conditional backdrop-filter */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Recent Songs Modal - Fixed Height with iOS Safari fixes */
#recentSongsModal .tip-modal-content {
    min-height: 500px;
    height: 500px;
    max-height: 80vh;
}

#recentSongsModal .tip-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* iOS Safari fix: Ensure proper flex behavior */
    min-height: 0;
}

#recentSongsModal .recent-songs-list {
    flex: 1;
    overflow-y: auto;
    min-height: 350px;
    /* iOS Safari scrolling fixes */
    -webkit-overflow-scrolling: touch;
    /* Ensure the container can scroll properly on iOS */
    position: relative;
    /* Fix for iOS Safari not showing scrollbar */
    scrollbar-width: auto;
    /* Ensure proper height calculation */
    height: 100%;
    max-height: 400px;
}

/* iOS Safari specific scrollbar visibility fixes */
@supports (-webkit-touch-callout: none) {
    #recentSongsModal .recent-songs-list {
        /* Force scrollbar visibility on iOS */
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        /* Ensure proper container sizing */
        min-height: 350px !important;
        max-height: 400px !important;
        /* Add padding to prevent content cutoff */
        padding-bottom: 10px;
    }
    
    /* Ensure modal body doesn't constrain the list */
    #recentSongsModal .tip-modal-body {
        overflow: visible !important;
        min-height: 400px !important;
    }
    
    /* Fix modal content height on iOS */
    #recentSongsModal .tip-modal-content {
        min-height: 550px !important;
        height: auto !important;
        max-height: 85vh !important;
    }
}

/* Apply backdrop-filter when modal is shown */
.tip-modal.show {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: backdrop-filter 0.2s ease-out, -webkit-backdrop-filter 0.2s ease-out;
}

.tip-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Add padding for mobile safe areas */
    padding: 20px;
    min-height: 100%;
}

/* Modal Content - Default Dark Theme */
.tip-modal-content {
    background: transparent; /* Transparent background */
    color: #ffffff; /* White text by default */
    margin: 20px auto;
    padding: 0;
    border-radius: 10px; /* Changed from 20px to 10px */
    width: 90%;
    max-width: 500px;
    /* Remove max-height constraint for mobile */
    max-height: none;
    overflow: visible;
    position: relative;
    box-shadow: none; /* Remove drop shadow */
    animation: slideUp 0.3s ease-out;
    font-family: 'Roboto', sans-serif;
    /* Ensure content is fully accessible */
    flex-shrink: 0;
}

/* Modal Header */
.tip-modal-header {
    background: #3e4961; /* Changed from #4361ee to #3e4961 */
    color: white;
    padding: 20px 25px;
    border-radius: 10px 10px 0 0; /* Changed from 20px to 10px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    opacity: 1; /* Keep header fully opaque */
}

.tip-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-modal-header h3 i {
    color: white; /* Changed from #ff6b9d to white */
    font-size: 18px;
}

.tip-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.tip-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Mobile-specific fix for close button positioning */
@media (max-width: 768px) {
    .tip-modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        /* Ensure proper centering */
        text-align: center;
        vertical-align: middle;
    }
    
    .tip-modal-close::before {
        content: '';
        display: inline-block;
        height: 100%;
        vertical-align: middle;
        width: 0;
    }
}

/* Modal Body */
.tip-modal-body {
    padding: 25px;
    background: linear-gradient(135deg, #001531 0%, #000315 100%); /* Add diagonal gradient background */
    opacity: 0.9; /* Apply 90% opacity to body only */
    border-radius: 0 0 10px 10px; /* Match container border radius */
}

/* Tip Amounts Section */
.tip-amounts {
    margin-bottom: 25px;
}

.tip-amounts h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff; /* White text by default for dark theme */
}

.tip-amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.tip-amount-btn {
    padding: 12px 8px;
    border: 2px solid #404040; /* Dark border by default */
    background: #2a2a2a; /* Dark background by default */
    color: #cccccc; /* Light text by default */
    border-radius: 6px; /* Changed from 8px to 6px */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.tip-amount-btn:hover {
    background: #333333; /* Darker background on hover */
    border-color: #4361ee;
    color: #4361ee;
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}

.tip-amount-btn.selected {
    background: #4361ee; /* Solid color, no gradient */
    border-color: #4361ee;
    color: white;
    transform: none; /* Remove selected transform */
    box-shadow: none; /* Remove selected shadow */
}

/* Custom Amount */
.custom-amount-container {
    border-top: 1px solid #404040; /* Dark border by default */
    padding-top: 15px;
}

.custom-amount-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff; /* White text by default */
    font-size: 14px;
}

.custom-amount-container {
    position: relative;
}

.custom-amount-container input {
    width: 100%;
    padding: 12px 15px 12px 35px; /* Add left padding for dollar sign */
    border: 2px solid #404040; /* Dark border by default */
    border-radius: 6px; /* Changed from 8px to 6px */
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: #2a2a2a !important; /* Dark background by default - force with !important for iOS */
    color: #ffffff !important; /* White text by default - force with !important for iOS */
    /* Remove spinner arrows */
    -webkit-appearance: none;
    -moz-appearance: textfield;
    /* iOS specific fixes */
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: text !important;
}

/* Dollar sign removed - will be handled by placeholder text instead */

/* Remove spinner arrows for WebKit browsers */
.custom-amount-container input::-webkit-outer-spin-button,
.custom-amount-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spinner arrows for Firefox */
.custom-amount-container input[type=number] {
    -moz-appearance: textfield;
}

.custom-amount-container input:focus {
    outline: none;
    background: #333333 !important; /* Darker background on focus - force with !important for iOS */
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    color: #ffffff !important; /* Ensure text stays white on focus for iOS */
    -webkit-text-fill-color: #ffffff !important;
}

/* Payment Methods Section */
.payment-methods {
    margin-bottom: 25px;
}

.payment-methods h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff; /* White text by default for dark theme */
}

.payment-method-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method-btn {
    padding: 20px 25px; /* Increased padding for taller buttons */
    border: 2px solid #404040; /* Dark border by default */
    background: #2a2a2a; /* Dark background by default */
    color: #ffffff; /* White text by default for dark theme */
    border-radius: 6px; /* Changed from 8px to 6px */
    font-size: 20px; /* Increased from 16px */
    font-weight: 600; /* Increased from 500 */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the content */
    font-family: 'Roboto', sans-serif;
    position: relative;
}

.payment-method-btn i {
    font-size: 26px; /* Increased from 20px */
    width: 30px; /* Fixed width */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px; /* Space between icon and text */
}

.payment-method-btn span {
    font-weight: 700; /* Increased from 600 */
}

.payment-method-btn:hover {
    background: #333333; /* Darker background on hover */
    border-color: #4895ef;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}

.payment-method-btn.selected {
    transform: none; /* Remove selected transform */
    box-shadow: none; /* Remove selected shadow */
}

/* Venmo specific styling */
.venmo-btn {
    background: #e0e0e0 !important; /* More grey when not selected */
    border-color: #cccccc !important;
    color: #666666 !important; /* Grey text */
    -webkit-text-fill-color: #666666 !important;
    opacity: 0.6;
}

.venmo-btn:hover {
    background: #d0d0d0 !important;
    border-color: #3d95ce !important;
    color: #3d95ce !important;
    -webkit-text-fill-color: #3d95ce !important;
    opacity: 0.8;
}

.venmo-btn.selected {
    background: #3d95ce !important; /* Full company color when selected */
    border-color: #3d95ce !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1;
}

.venmo-btn i {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* PayPal specific styling */
.paypal-btn {
    background: #e0e0e0 !important; /* More grey when not selected */
    border-color: #cccccc !important;
    color: #666666 !important; /* Grey text */
    -webkit-text-fill-color: #666666 !important;
    opacity: 0.6;
}

.paypal-btn:hover {
    background: #d0d0d0 !important;
    border-color: #0070ba !important;
    color: #0070ba !important;
    -webkit-text-fill-color: #0070ba !important;
    opacity: 0.8;
}

.paypal-btn.selected {
    background: #0070ba !important; /* Full company color when selected */
    border-color: #0070ba !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1;
}

.paypal-btn i {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Cash App specific styling */
.cashapp-btn {
    background: #e0e0e0 !important; /* More grey when not selected */
    border-color: #cccccc !important;
    color: #666666 !important; /* Grey text */
    -webkit-text-fill-color: #666666 !important;
    opacity: 0.6;
}

.cashapp-btn:hover {
    background: #d0d0d0 !important;
    border-color: #00d632 !important;
    color: #00d632 !important;
    -webkit-text-fill-color: #00d632 !important;
    opacity: 0.8;
}

.cashapp-btn.selected {
    background: #00d632 !important; /* Full company color when selected */
    border-color: #00d632 !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1;
}

.cashapp-btn i {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Optional Fields */
.tip-optional-fields {
    margin-bottom: 25px;
}

.tip-optional-fields .form-group {
    margin-bottom: 15px;
}

.tip-optional-fields .form-group:last-child {
    margin-bottom: 0;
}

.tip-optional-fields label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #b0b0b0; /* Dark mode by default */
    font-size: 14px;
}

.tip-optional-fields input,
.tip-optional-fields textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #555; /* Dark border by default */
    border-radius: 6px; /* Changed from 8px to 6px */
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: #333; /* Dark background by default */
    color: #e0e0e0; /* Light text by default */
    resize: vertical;
}

.tip-optional-fields input::placeholder,
.tip-optional-fields textarea::placeholder {
    color: #888888;
}

.tip-optional-fields input:focus,
.tip-optional-fields textarea:focus {
    outline: none;
    border-color: #4361ee;
    background: #3a3a3a; /* Slightly lighter on focus */
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.tip-optional-fields textarea {
    min-height: 60px;
    max-height: 120px;
}

/* Submit Button */
.tip-submit-btn {
    width: 100%;
    padding: 20px 25px; /* Match payment button padding for same height */
    background: #6b52ff; /* Changed from #ff6b7d to #6b52ff */
    color: white;
    border: none;
    border-radius: 6px; /* Changed from 8px to 6px */
    font-size: 20px; /* Match payment button font size */
    font-weight: 700; /* Match payment button font weight */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Roboto', sans-serif;
    box-shadow: none; /* Remove drop shadow */
    /* No animation */
}

.tip-submit-btn:hover:not(:disabled) {
    background: #5a47e6; /* Darker purple on hover */
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}

.tip-submit-btn:disabled {
    background: #e1e5ee;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tip-submit-btn i {
    font-size: 20px; /* Increased to match button size */
}

/* Tip Button (Main Page) */
.tip-section {
    margin-top: 15px;
    text-align: center;
}

.tip-btn {
    background: #9d34e7 !important;
    background-color: #9d34e7 !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 12px 24px;
    border-radius: 6px; /* Changed from 8px to 6px */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    box-shadow: none !important; /* Remove drop shadow */
}

.tip-btn:hover {
    background: var(--primary) !important; /* Use theme primary blue for hover - force to override any .btn styles */
    background-color: var(--primary) !important; /* Explicit background-color */
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important; /* Keep same white border on hover */
    transform: none; /* Remove hover transform */
    box-shadow: none !important; /* Remove hover shadow */
}

.tip-btn:focus {
    background: #9d34e7 !important;
    background-color: #9d34e7 !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important; /* Keep same white border on focus */
    outline: none !important;
}

.tip-btn:active {
    background: var(--primary) !important;
    background-color: var(--primary) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important; /* Keep same white border on active */
}

.tip-btn i {
    font-size: 16px;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heartbeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.1);
    }
}

/* Loading State */
.tip-submit-btn.loading {
    position: relative;
    color: transparent;
}

.tip-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success/Error Messages */
.tip-message {
    padding: 12px 15px;
    border-radius: 6px; /* Changed from 8px to 6px */
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.tip-message.success {
    background: rgba(11, 181, 88, 0.1);
    border: 1px solid #0bb558;
    color: #0bb558;
}

.tip-message.error {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid #e63946;
    color: #e63946;
}

/* Tip Redirect Overlay */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

/* Dark mode support for redirect overlay */
@media (prefers-color-scheme: dark) {
    .tip-redirect-content {
        background: #1a1a1a !important;
        color: #ffffff !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
    }
    
    .tip-redirect-content p {
        color: #ffffff !important;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .app-container {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .app-container {
        max-width: 100%;
    }

    .event-title {
        font-size: 24px;
    }

    .main-content {
        padding: 25px 20px 15px 20px;
    }
    
    /* Standardized mobile spacing for form inputs */
    .main-content .form-group.search-input {
        margin-top: 18px;
        margin-bottom: 22px; /* Match desktop spacing */
    }
    
    /* Match search input spacing for name input on mobile */
    .main-content .form-group.name-input {
        margin-top: 0; /* Remove extra top margin, rely on previous field's bottom margin */
        margin-bottom: 30px; /* Match desktop spacing */
    }
    
    /* Adjust QR icon, hire DJ icon, message icon, and recent songs icon for mobile */
    .qr-code-icon,
    .hire-dj-icon,
    .message-icon,
    .recent-songs-icon {
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
    }
    
    .qr-code-icon i,
    .hire-dj-icon i,
    .message-icon i,
    .recent-songs-icon i {
        font-size: 20px !important;
    }
    
    .share-text,
    .hire-text {
        font-size: 10px;
    }

    .success-message {
        font-size: 32px;
    }

    /* Song and artist inputs stack on mobile */
    .song-artist-row {
        flex-direction: column;
        gap: 0px;
    }

    /* Remove redundant name input spacing - handled above in .main-content rules */
    
/* Make label spacing consistent between search and name inputs */
.form-group.name-input .form-label,
.form-group.search-input .form-label {
    margin-bottom: 6px; /* Consistent spacing for both labels */
}
    
    .lookup-btn {
        min-width: 45px;
        padding: 0 12px;
        font-size: 13px;
    }
    
    .lookup-results {
        position: absolute;
        top: 100%;
        left: 10px;
        right: 10px;
        z-index: 9999;
        max-height: 250px;
        margin-top: 2px;
    }
    
    .result-item {
        padding: 15px 35px 15px 15px; /* More space for text on mobile */
        min-height: 50px;
        gap: 12px;
        align-items: flex-start; /* Ensure top alignment on mobile */
    }
    
    .result-item i {
        width: 18px;
        flex-shrink: 0; /* Prevent icon from shrinking */
    }
    
    .result-text {
        font-size: 16px; /* Prevent iOS zoom */
        flex: 1; /* Allow text to take available space */
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
        max-width: calc(100% - 30px); /* Ensure text doesn't overlap with match indicator on mobile */
        overflow: hidden;
    }
    
    .result-meta {
        font-size: 0.8em;
        line-height: 1.2;
    }
    
    /* Match indicator positioning for mobile */
    .match-indicator {
        position: absolute;
        right: 5px; /* Closer to edge on mobile */
        top: 15px; /* Fixed position from top instead of center */
        transform: none; /* Remove center transform */
        font-size: 0.65em;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .tip-modal {
        /* Ensure full viewport coverage on mobile */
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for modern browsers */
        /* Add safe area padding for notched devices */
        padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 10px) env(safe-area-inset-bottom, 20px) env(safe-area-inset-left, 10px);
    }
    
    .tip-modal.show {
        align-items: center;
        padding: 10px;
        /* Ensure proper padding on all sides */
        padding: max(20px, env(safe-area-inset-top, 20px)) 10px max(20px, env(safe-area-inset-bottom, 20px)) 10px;
    }
    
    /* Recent Songs Modal specific mobile fixes */
    #recentSongsModal .tip-modal-content {
        max-height: 85vh !important;
        height: auto !important;
        min-height: 500px !important;
    }
    
    #recentSongsModal .tip-modal-body {
        max-height: calc(85vh - 80px) !important;
        overflow: visible !important;
    }
    
    #recentSongsModal .recent-songs-list {
        max-height: calc(85vh - 120px) !important;
        min-height: 300px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        /* Ensure content reaches bottom */
        padding-bottom: 20px !important;
    }
    
    .tip-modal-content {
        margin: 0 auto;
        width: 95%;
        max-width: 450px;
        max-height: 90vh;
        /* Allow natural height expansion */
        height: auto;
        /* Ensure content is scrollable if needed */
        overflow: visible;
        border-radius: 20px;
    }
    
    .tip-modal-header {
        padding: 15px 20px;
        /* Ensure header is always visible */
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .tip-modal-header h3 {
        font-size: 18px;
    }
    
    .tip-modal-body {
        padding: 20px;
        /* Add bottom padding to ensure Send Tip button is fully visible */
        padding-bottom: max(30px, env(safe-area-inset-bottom, 30px));
    }
    
    .tip-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .tip-amount-btn {
        padding: 10px 6px;
        font-size: 14px;
    }
    
    .payment-method-btn {
        padding: 15px 20px; /* Keep taller on mobile too */
        font-size: 18px; /* Increased from 15px */
        justify-content: center; /* Center content on mobile too */
    }
    
    .payment-method-btn i {
        font-size: 24px; /* Increased from 18px */
    }
    
    .tip-submit-btn {
        padding: 15px 20px; /* Keep taller on mobile too */
        font-size: 18px; /* Match payment button mobile font size */
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    /* Song-artist row remains in a row on iPad */
    .song-artist-row {
        flex-direction: row;
    }

    /* Larger elements for iPad touch targets */
    .input-group {
        height: 60px;
    }
}

@media (max-width: 480px) {
    /* Header and tab styles removed - keeping same as larger screens */
    
    .event-title {
        font-size: 20px;
    }

    .event-date {
        font-size: 14px;
    }

    .code-title {
        font-size: 24px;
    }

    .code-input {
        font-size: 20px;
        letter-spacing: 5px;
    }

    .success-message {
        font-size: 26px;
    }
    
    .tip-modal {
        /* Full screen on small devices */
        padding: 0;
        height: 100vh;
        height: 100dvh;
    }
    
    .tip-modal.show {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }
    
    .tip-modal-content {
        margin: 0 auto;
        border-radius: 16px;
        width: 95%;
        max-width: 400px;
        height: auto;
        max-height: 85vh;
        /* Keep it as a centered modal even on small devices */
        display: flex;
        flex-direction: column;
    }
    
    .tip-modal-header {
        border-radius: 16px 16px 0 0;
        padding: 15px 20px;
        flex-shrink: 0;
    }
    
    .tip-modal-body {
        padding: 15px;
        /* Make body scrollable and fill remaining space */
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Add bottom padding for home indicator */
        padding-bottom: max(25px, env(safe-area-inset-bottom, 25px));
    }
    
    .tip-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tip-amounts h4,
    .payment-methods h4 {
        font-size: 15px;
    }
    
    /* Ensure submit button is always accessible */
    .tip-submit-btn {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}

/* Mobile-specific styles are now handled by the standard responsive design */

/* iOS Safari specific fixes for custom amount field */
@supports (-webkit-touch-callout: none) {
    /* Target iOS Safari specifically */
    .custom-amount-container input,
    #customAmount,
    input[name="custom_tip_amount"] {
        background: #2a2a2a !important;
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        -webkit-border-radius: 6px !important;
        border-radius: 6px !important;
        border: 2px solid #404040 !important;
    }
    
    .custom-amount-container input:focus,
    #customAmount:focus,
    input[name="custom_tip_amount"]:focus {
        background: #333333 !important;
        background-color: #333333 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        border-color: #4361ee !important;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15) !important;
    }
}

/* Additional iOS fixes using webkit media query */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    _::-webkit-full-page-media, _:future, :root .custom-amount-container input {
        background: #2a2a2a !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
    
    _::-webkit-full-page-media, _:future, :root .custom-amount-container input:focus {
        background: #333333 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* ========================================
   HIRE DJ MODAL STYLES
   ======================================== */

/* Modal Overlay */
.hire-dj-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Apply backdrop-filter when modal is shown */
.hire-dj-modal.show {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: backdrop-filter 0.2s ease-out, -webkit-backdrop-filter 0.2s ease-out;
}

.hire-dj-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100%;
}

/* Modal Content */
.hire-dj-modal-content {
    background: transparent;
    color: #ffffff;
    margin: 20px auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: none;
    overflow: visible;
    position: relative;
    box-shadow: none;
    animation: slideUp 0.3s ease-out;
    font-family: 'Roboto', sans-serif;
    flex-shrink: 0;
}

/* Modal Header */
.hire-dj-modal-header {
    background: #3e4961;
    color: white;
    padding: 20px 25px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    opacity: 1;
}

.hire-dj-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hire-dj-modal-header h3 i {
    color: white;
    font-size: 18px;
}

.hire-dj-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.hire-dj-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body */
.hire-dj-modal-body {
    padding: 25px;
    background: linear-gradient(135deg, #001531 0%, #000315 100%);
    opacity: 0.9;
    border-radius: 0 0 10px 10px;
}

/* Form Fields */
.hire-dj-form .form-group {
    margin-bottom: 20px;
}

.hire-dj-form .form-group:last-child {
    margin-bottom: 0;
}

.hire-dj-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.hire-dj-form input,
.hire-dj-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #404040;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: #2a2a2a;
    color: #ffffff;
    resize: vertical;
}

.hire-dj-form input::placeholder,
.hire-dj-form textarea::placeholder {
    color: #888888;
}

.hire-dj-form input:focus,
.hire-dj-form textarea:focus {
    outline: none;
    border-color: #4361ee;
    background: #333333;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.hire-dj-form textarea {
    min-height: 80px;
    max-height: 150px;
}

/* Submit Button */
.hire-dj-submit-btn {
    width: 100%;
    padding: 20px 25px;
    background: #6b52ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Roboto', sans-serif;
    box-shadow: none;
    margin-top: 25px;
}

.hire-dj-submit-btn:hover:not(:disabled) {
    background: #5a47e6;
    transform: none;
    box-shadow: none;
}

.hire-dj-submit-btn:disabled {
    background: #e1e5ee;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hire-dj-submit-btn i {
    font-size: 20px;
}

/* Loading State */
.hire-dj-submit-btn.loading {
    position: relative;
    color: transparent;
}

.hire-dj-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success/Error Messages */
.hire-dj-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.hire-dj-message.success {
    background: rgba(11, 181, 88, 0.1);
    border: 1px solid #0bb558;
    color: #0bb558;
}

.hire-dj-message.error {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid #e63946;
    color: #e63946;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hire-dj-modal {
        height: 100vh;
        height: 100dvh;
        padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 10px) env(safe-area-inset-bottom, 20px) env(safe-area-inset-left, 10px);
    }
    
    .hire-dj-modal.show {
        align-items: center;
        padding: 10px;
        padding: max(20px, env(safe-area-inset-top, 20px)) 10px max(20px, env(safe-area-inset-bottom, 20px)) 10px;
    }
    
    .hire-dj-modal-content {
        margin: 0 auto;
        width: 95%;
        max-width: 450px;
        max-height: 90vh;
        height: auto;
        overflow: visible;
        border-radius: 20px;
    }
    
    .hire-dj-modal-header {
        padding: 15px 20px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .hire-dj-modal-header h3 {
        font-size: 18px;
    }
    
    .hire-dj-modal-body {
        padding: 20px;
        padding-bottom: max(30px, env(safe-area-inset-bottom, 30px));
    }
    
    .hire-dj-submit-btn {
        padding: 15px 20px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hire-dj-modal {
        padding: 0;
        height: 100vh;
        height: 100dvh;
    }
    
    .hire-dj-modal.show {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }
    
    .hire-dj-modal-content {
        margin: 0 auto;
        border-radius: 16px;
        width: 95%;
        max-width: 400px;
        height: auto;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
    }
    
    .hire-dj-modal-header {
        border-radius: 16px 16px 0 0;
        padding: 15px 20px;
        flex-shrink: 0;
    }
    
    .hire-dj-modal-body {
        padding: 15px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(25px, env(safe-area-inset-bottom, 25px));
    }
    
    .hire-dj-submit-btn {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}

/* Mobile-specific close button fix */
@media (max-width: 768px) {
    .hire-dj-modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        text-align: center;
        vertical-align: middle;
    }
    
    .hire-dj-modal-close::before {
        content: '';
        display: inline-block;
        height: 100%;
        vertical-align: middle;
        width: 0;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hire-dj-form input,
    .hire-dj-form textarea {
        background: #2a2a2a !important;
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        -webkit-border-radius: 6px !important;
        border-radius: 6px !important;
        border: 2px solid #404040 !important;
    }
    
    .hire-dj-form input:focus,
    .hire-dj-form textarea:focus {
        background: #333333 !important;
        background-color: #333333 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        border-color: #4361ee !important;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15) !important;
    }
}
/* Preserve FontAwesome icons */
.fas, .far, .fab, .fal, .fad, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* Preserve FontAwesome icons */
.fas, .far, .fab, .fal, .fad, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* App container is always visible - no loading screen */
body .app-container {
    opacity: 1;
    visibility: visible;
}

/* Base Styles for Apple Music Request Beta - Lookup Version */
:root {
    --primary: #2d46b9;
    --secondary: #6c4bd1;
    --dark: #1a1a2e;
    --light: #f1f1f1;
    --success: #4caf50;
    --error: #f44336;
    --gray: #888;
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-green: #00ff00;
    --neon-purple: #9d00ff;
    --neon-yellow: #ffff00;
    --icon-bg: #5e17eb;
    --apple-music-red: #FA2D48;
    --apple-music-gradient: linear-gradient(135deg, #FA2D48, #FF6B35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Roboto', sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    background: url('../../../assets/img/request.jpg') no-repeat center center fixed;
    background-size: cover;
}


/* app-container styling is handled by request-styles.css to avoid duplicate backdrop-filter declarations */

/* Event Header */
.event-header {
    background: linear-gradient(145deg,
            var(--primary),
            var(--secondary),
            var(--primary),
            var(--secondary));
    background-size: 400% 400%;
    padding: 15px 5px 5px 5px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gradientAnimation 15s ease infinite;
    border-radius: 20px 20px 0 0;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.event-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
}

.event-date {
    font-size: 16px;
    opacity: 0.8;
    position: relative;
}

.event-code {
    background-color: rgba(0, 0, 0, 0.15);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    margin-top: 10px;
    position: relative;
}

/* Apple Music Logo */
.apple-music-logo {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    opacity: 0.8;
}

.apple-music-logo .fa-apple {
    color: var(--apple-music-red);
    font-size: 14px;
}

/* Main Content */
.main-content {
    padding: 10px 30px 15px 30px;
}

/* Form Styles - Remove conflicting rules, let request-styles.css handle base spacing */
/* .form-group base margin is handled in request-styles.css */

/* Ensure consistent spacing between name field and REQUEST SONG button */
.form-group.request-name-input {
    margin-bottom: 46px; /* Desktop: 31px base + 15px additional = 46px total */
}

.form-label {
    display: none;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

/* Input Group Styles */
.input-group {
    display: flex;
    box-shadow: none;
    border-radius: 12px;
    position: relative;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: visible;
    background: transparent;
}

.input-group-text {
    background: var(--icon-bg);
    color: white;
    border: none;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    border-radius: 12px 0 0 12px;
    position: relative;
    z-index: 1;
    margin-right: 0;
}

.input-group-text i {
    font-size: 1.4rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control {
    width: 100%;
    background: rgba(30, 30, 50, 0.6);
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 18px;
    color: rgba(255, 255, 255, 1);
    font-family: 'Roboto', sans-serif;
    transition: none;
    font-size: 18px;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    padding-right: 18px; /* Default padding when no clear button */
}

/* When clear button is visible, add padding but preserve border radius */
.input-group:has(.clear-input[style*="display: block"]) .form-control,
.input-group:has(.clear-input[style*="display: flex"]) .form-control,
.input-group.has-clear-button .form-control {
    padding-right: 60px !important; /* Make room for internal clear button */
}

.input-group:has(.clear-input[style*="display: block"]) .form-control:focus,
.input-group:has(.clear-input[style*="display: flex"]) .form-control:focus,
.input-group.has-clear-button .form-control:focus {
    border-radius: 0 12px 12px 0 !important; /* Preserve border radius */
}

.form-control:focus {
    outline: none;
    background-color: rgba(30, 30, 50, 0.8);
    box-shadow: none;
    border-radius: 0 12px 12px 0;
}


.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Song-Artist Row Layout */
.song-artist-row {
    display: flex;
    gap: 10px;
}

.song-input,
.artist-input {
    flex: 1;
}

/* Submit Button */
@property --a {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes a {
    to {
        --a: 1turn;
    }
}

.submit-btn {
    position: relative;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 2px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: conic-gradient(in hsl longer hue from var(--a),
        hsl(180 100% 50%) 0%,
        hsl(300 100% 50%) 50%,
        hsl(180 100% 50%) 100%);
    animation: a 6s infinite linear;
    /* iOS specific fixes */
    -webkit-appearance: none;
    -webkit-border-radius: 12px;
    box-shadow: none;
    outline: none;
    -webkit-box-shadow: none;
    overflow: hidden;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.submit-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: 10px;
    background: conic-gradient(in hsl longer hue from var(--a),
        hsl(180 100% 50%) 0%,
        hsl(300 100% 50%) 50%,
        hsl(180 100% 50%) 100%);
    animation: a 6s infinite linear;
    filter: blur(6px);
}

.btn-content {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border-radius: 10px;
    padding: 18px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    backdrop-filter: blur(40px);
    /* iOS specific fixes */
    -webkit-border-radius: 10px;
    box-shadow: none;
    -webkit-box-shadow: none;
}

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

.submit-btn:hover .btn-content {
    background: linear-gradient(145deg, #3d5ac7, #7a5dd9);
}

.submit-btn i {
    font-size: 22px;
}


/* FIND EVENT Button Error State - OVERRIDE CONIC GRADIENT - UNIQUE SELECTOR */
.message.error + form .submit-btn.find-event-btn,
.code-form .message.error ~ form .submit-btn.find-event-btn,
.code-form .message.error ~ form .find-event-btn {
    background: #6c4bd1 !important;
    background-image: none !important;
    animation: none !important;
    border: 2px solid #6c4bd1 !important;
    cursor: pointer !important;
    padding: 18px !important;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(108, 75, 209, 0.3) !important;
    opacity: 1 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    /* Override all conic gradient properties */
    --a: 0deg !important;
}

.message.error + form .submit-btn.find-event-btn::after,
.code-form .message.error ~ form .submit-btn.find-event-btn::after,
.code-form .message.error ~ form .find-event-btn::after {
    display: none !important;
    background: none !important;
    animation: none !important;
}

.message.error + form .submit-btn.find-event-btn .btn-content,
.code-form .message.error ~ form .submit-btn.find-event-btn .btn-content,
.code-form .message.error ~ form .find-event-btn .btn-content {
    background: #6c4bd1 !important;
    background-image: none !important;
}

.message.error + form .submit-btn.find-event-btn:hover,
.code-form .message.error ~ form .submit-btn.find-event-btn:hover,
.code-form .message.error ~ form .find-event-btn:hover {
    background: #5e17eb !important;
    background-image: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(94, 23, 235, 0.4) !important;
    opacity: 1 !important;
    animation: none !important;
    --a: 0deg !important;
}

.message.error + form .submit-btn.find-event-btn:hover .btn-content,
.code-form .message.error ~ form .submit-btn.find-event-btn:hover .btn-content,
.code-form .message.error ~ form .find-event-btn:hover .btn-content {
    background: #5e17eb !important;
    background-image: none !important;
}

/* FIND EVENT Button No Code State - Same styling as error state */
.code-form .submit-btn.find-event-btn:not(.has-code),
.code-form .find-event-btn:not(.has-code),
.submit-btn.find-event-btn:not(.has-code) {
    background: #6c4bd1 !important;
    background-image: none !important;
    animation: none !important;
    border: 2px solid #6c4bd1 !important;
    cursor: pointer !important;
    padding: 18px !important;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(108, 75, 209, 0.3) !important;
    opacity: 1 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    --a: 0deg !important;
}

.code-form .submit-btn.find-event-btn:not(.has-code)::after,
.code-form .find-event-btn:not(.has-code)::after,
.submit-btn.find-event-btn:not(.has-code)::after {
    display: none !important;
    background: none !important;
    animation: none !important;
}

.code-form .submit-btn.find-event-btn:not(.has-code) .btn-content,
.code-form .find-event-btn:not(.has-code) .btn-content,
.submit-btn.find-event-btn:not(.has-code) .btn-content {
    background: #6c4bd1 !important;
    background-image: none !important;
}

.code-form .submit-btn.find-event-btn:not(.has-code):hover,
.code-form .find-event-btn:not(.has-code):hover,
.submit-btn.find-event-btn:not(.has-code):hover {
    background: #5e17eb !important;
    background-image: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(94, 23, 235, 0.4) !important;
    opacity: 1 !important;
    animation: none !important;
    --a: 0deg !important;
}

.code-form .submit-btn.find-event-btn:not(.has-code):hover .btn-content,
.code-form .find-event-btn:not(.has-code):hover .btn-content,
.submit-btn.find-event-btn:not(.has-code):hover .btn-content {
    background: #5e17eb !important;
    background-image: none !important;
}

/* ========================================
   TIPPING BUTTON STYLES
   ======================================== */

/* Tip Section */
.tip-section {
    margin-top: 20px;
    text-align: center;
}

/* Tip Button */
.tip-btn {
    width: 100%;
    background: linear-gradient(145deg, #ff6b35, #fa2d48);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(250, 45, 72, 0.4);
}

@keyframes tipPulse {
    0% {
        box-shadow: 0 0 8px rgba(250, 45, 72, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px rgba(250, 45, 72, 0.6), 0 0 25px rgba(255, 107, 53, 0.4);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 8px rgba(250, 45, 72, 0.4);
        transform: scale(1);
    }
}

.tip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(250, 45, 72, 0.5);
    animation: none;
}

.tip-btn:active {
    transform: translateY(0);
}

.tip-btn i {
    font-size: 18px;
    color: #ffb3ba;
}

/* ========================================
   LOOKUP BUTTON STYLES
   ======================================== */

/* Clear Button Styling - positioned inside input field */
.clear-input {
    position: absolute;
    right: 3px;
    top: 3px;
    bottom: 3px;
    background: rgba(94, 23, 235, 0.7);
    color: white;
    cursor: pointer;
    display: none;
    z-index: 10;
    padding: 0 15px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.clear-input:hover {
    background: rgba(255, 77, 77, 0.8);
    color: white;
    transform: scale(1.02);
}

.clear-input i {
    font-size: 1.4rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.8;
}

/* Hide clear button by default */
.clear-input[style*="display: none"] {
    display: none !important;
}

/* Show clear button when needed */
.clear-input[style*="display: block"] {
    display: flex !important;
}

/* Lookup Results Container - Enhanced for Autocomplete */
.lookup-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 80, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 99999;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 2px;
    width: 100%;
    min-height: 60px;
    display: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideDown 0.2s ease-out;
    /* Fix mobile scrolling */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Force visibility when shown */
.lookup-results[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lookup-results.show {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.lookup-results.hide {
    opacity: 0 !important;
}

/* Result Items */
.result-item {
    padding: 12px 45px 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    word-wrap: break-word;
    contain: layout style paint;
    position: relative;
}

.result-item:hover {
    background-color: rgba(100, 75, 209, 0.5);
    transform: translateX(2px);
}

.result-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.result-item:last-child:hover {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.result-item:active {
    background-color: rgba(100, 75, 209, 0.7);
}

.result-item i {
    color: #a0d0ff;
    width: 16px;
    flex-shrink: 0;
}

.result-item .result-text {
    flex: 1;
    line-height: 1.4;
    max-width: calc(100% - 35px); /* Ensure text doesn't overlap with match indicator */
    overflow: hidden;
}

.result-item .result-title {
    font-weight: 500;
    font-size: 1.1em;
    margin-bottom: 2px;
}

.result-item .result-meta {
    font-size: 0.85em;
    color: #c0e0ff;
    opacity: 0.9;
}

/* Inline meta information (year/album on same line) */
.result-item .result-meta-inline {
    font-size: 0.85em;
    color: #c0e0ff;
    opacity: 0.8;
    font-weight: 300;
}

/* Artist name styling in song results */
.result-item .artist-name {
    font-weight: 300;
    opacity: 0.9;
    color: var(--neon-blue);
    text-shadow: 0 0 4px rgba(0, 255, 255, 0.2);
}

/* Match Quality Indicators */
.match-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75em;
    padding: 0;
    border-radius: 4px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Font Awesome 6 Free', sans-serif;
}

.match-indicator.exact {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}


.match-indicator.contains {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.match-indicator.fuzzy {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Explicit Content Indicator */
.explicit-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background-color: rgba(102, 102, 102, 0.3);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.4);
    font-family: 'Roboto', sans-serif;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
    text-align: center;
    transform: translateY(-1px);
}

/* Popular Indicator */
.popular-indicator {
    display: inline-block;
    font-size: 0.7em;
    padding: 2px 6px;
    margin-left: 8px;
    background-color: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* Artist Result Row - Stable Background to Highlight Top 10 Feature */
.result-item.artist-result {
    background: linear-gradient(135deg, rgb(75 142 209 / 60%), rgb(23 42 235 / 35%)) !important;
    position: relative;
    transition: none !important;
}

.result-item.artist-result:hover {
    background: linear-gradient(135deg, rgb(95 162 229 / 75%), rgb(43 62 255 / 50%)) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Top Songs Text Styling */
.top-songs-text {
    background: #e69d22eb !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.75em !important;
    padding: 3px 6px !important;
    border-radius: 5px !important;
    text-shadow: none !important;
    display: inline-block !important;
    margin-left: 8px !important;
}

/* No Results Message */
.no-results {
    padding: 20px;
    text-align: center;
    color: #a0d0ff;
    font-style: italic;
    opacity: 0.7;
}

/* Keep Typing Message */
.keep-typing-message {
    padding: 20px;
    text-align: center;
    color: #a0d0ff;
    opacity: 0.8;
}

.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.typing-indicator i {
    color: var(--icon-bg);
    font-size: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Ensure submit button animation is isolated */
.submit-btn,
.submit-btn::before,
.submit-btn::after {
    animation-name: a !important;
    animation-duration: 6s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Live Loading Indicator */
.live-loading-indicator {
    padding: 8px 18px;
    background: rgba(94, 23, 235, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0d0ff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.mini-spinner {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Loading State */
.lookup-loading {
    padding: 20px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lookup-loading .spinner-circle {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure parent containers allow overflow */
.app-container,
.main-content,
.request-form,
.song-artist-row,
.form-group,
.input-group {
    overflow: visible !important;
}

/* Additional overflow fixes for dropdown visibility */
.embed-request-form,
.artist-input,
.song-input,
.input-with-lookup {
    overflow: visible !important;
    position: relative !important;
}

/* Scrollbar Styling */
.lookup-results::-webkit-scrollbar {
    width: 8px;
}

.lookup-results::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 8px 8px 0;
}

.lookup-results::-webkit-scrollbar-thumb {
    background: #5e17eb;
    border-radius: 0 8px 8px 0;
}

.lookup-results::-webkit-scrollbar-thumb:hover {
    background: #4a12c4;
}

.lookup-results::-webkit-scrollbar-corner {
    background: transparent;
}

/* Enhanced dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .lookup-results {
        background: rgba(30, 30, 70, 0.98) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    }
    
    .result-item {
        border-bottom-color: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }
    
    .result-item:hover {
        background-color: rgba(100, 75, 209, 0.7) !important;
    }
    
    .result-item:last-child:hover {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    
    .form-control {
        background-color: rgba(30, 30, 50, 0.6) !important;
        color: white !important;
    }
    
    .form-control:focus {
        background-color: rgba(30, 30, 50, 0.8) !important;
        box-shadow: none !important;
    }
    
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .form-label {
        color: white !important;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.7) !important;
    }
    
    .app-container {
        background: rgba(26, 26, 46, 0.7) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}


/* Responsive Styles */
@media (max-width: 768px) {
    .app-container {
        max-width: 100%;
    }

    .event-title {
        font-size: 24px;
    }

    .main-content {
        padding: 20px 20px;
    }
    
    /* Standardized mobile spacing - match request-styles.css */
    .main-content .form-group.search-input {
        margin-top: 18px;
        margin-bottom: 22px; /* Match desktop and request-styles.css */
    }

    /* Match search input spacing for name input on mobile */
    .main-content .form-group.request-name-input {
        margin-top: 0; /* Remove extra top margin, rely on previous field's bottom margin */
        margin-bottom: 46px; /* Desktop: 31px base + 15px additional = 46px total */
    }

    .song-artist-row {
        flex-direction: column;
        gap: 0px;
    }

    /* Remove redundant name input spacing - handled above in .main-content rules */
    
    /* Make label spacing consistent between search and name inputs */
    .form-group.name-input .form-label,
    .form-group.search-input .form-label {
        margin-bottom: 6px; /* Consistent spacing for both labels */
    }
    
    .lookup-results {
        max-height: 250px;
    }
    
    .result-item {
        padding: 15px 35px 15px 15px; /* More space for text on mobile */
        min-height: 50px;
        gap: 12px;
        align-items: flex-start; /* Ensure top alignment on mobile */
    }
    
    .result-item i {
        width: 18px;
        flex-shrink: 0; /* Prevent icon from shrinking */
    }
    
    .result-text {
        font-size: 16px;
        flex: 1; /* Allow text to take available space */
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
        max-width: calc(100% - 30px); /* Ensure text doesn't overlap with match indicator on mobile */
        overflow: hidden;
    }
    
    .result-meta {
        font-size: 0.8em;
        line-height: 1.2;
    }
    
    /* Match indicator positioning for mobile */
    .match-indicator {
        position: absolute;
        right: 5px; /* Closer to edge on mobile */
        top: 15px; /* Fixed position from top instead of center */
        transform: none; /* Remove center transform */
        font-size: 0.65em;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .song-artist-row {
        flex-direction: row;
    }

    .input-group {
        height: 60px;
    }
}

/* ========================================
   TIP FORM FIELD OVERRIDES - MUST BE HERE DUE TO CSS LOADING ORDER
   ======================================== */

/* Fix tip form labels to match other form labels */
.tip-modal-body label,
.tipper-name-section label,
.tip-amounts h4,
.payment-methods h4,
.custom-amount-container label {
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Fix tip form sections spacing to match other fields */
.tipper-name-section {
    margin-bottom: 25px !important;
}

.tip-amounts {
    margin-bottom: 25px !important;
}

/* Remove the line/border from custom amount container */
.custom-amount-container {
    border-top: none !important;
}

/* Hide any dollar sign that appears */
.custom-amount-container::before,
.custom-amount-container *::before {
    display: none !important;
    content: none !important;
}


.tip-amount-dropdown {
    margin-bottom: 15px !important;
}

/* Override browser defaults for tip form fields */
#tipperName,
#tipAmountSelect {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #404040 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: 'Roboto', sans-serif !important;
    background: #2a2a2a !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    display: block !important;
    line-height: normal !important;
    text-align: start !important;
    cursor: text !important;
}

#tipAmountSelect {
    cursor: pointer !important;
}

#tipperName:focus,
#tipAmountSelect:focus {
    outline: none !important;
    border-color: #4361ee !important;
    background: #333333 !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15) !important;
}

#tipperName::placeholder {
    color: #888888 !important;
}

#tipAmountSelect option {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

/* ========================================
   MESSAGE ICON AND MODAL STYLES - ULTRA HIGH SPECIFICITY
   ======================================== */

/* Override QR Share Container layout from request-styles.css */
.event-header .event-header-content .qr-share-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

/* Icon with Label Container */
.event-header .event-header-content .qr-share-container .icon-with-label,
.event-header .qr-share-container .icon-with-label,
.qr-share-container .icon-with-label,
.icon-with-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Icon Text Styling */
.event-header .event-header-content .qr-share-container .icon-text,
.event-header .qr-share-container .icon-text,
.qr-share-container .icon-text,
.icon-text {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: lowercase !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    margin-top: 2px !important;
    text-align: center !important;
}

/* Message Icon Styling - Copy exact QR icon styles from request-styles.css */
.event-header .event-header-content .qr-share-container .icon-with-label button.message-icon,
.event-header .event-header-content .qr-share-container button.message-icon,
.event-header .qr-share-container button.message-icon,
.qr-share-container button.message-icon,
button.message-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    color: white !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

.event-header .event-header-content .qr-share-container button.message-icon:hover,
.event-header .qr-share-container button.message-icon:hover,
.qr-share-container button.message-icon:hover,
button.message-icon:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.event-header .event-header-content .qr-share-container button.message-icon i,
.event-header .qr-share-container button.message-icon i,
.qr-share-container button.message-icon i,
button.message-icon i {
    font-size: 20px !important;
    color: white !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
}

/* Message Modal Content Styling - Ultra high specificity */
#messageModal .tip-modal-content .tip-modal-body .message-content-section,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .message-content-section,
.message-content-section {
    margin-bottom: 25px !important;
}

#messageModal .tip-modal-content .tip-modal-body .message-content-section label,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .message-content-section label,
.message-content-section label {
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    display: block !important;
}

#messageModal .tip-modal-content .tip-modal-body .message-content-input,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .message-content-input,
.message-content-input,
textarea.message-content-input,
#messageContent {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #404040 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: 'Roboto', sans-serif !important;
    background: #2a2a2a !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    display: block !important;
    line-height: 1.4 !important;
    resize: none !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    overflow-y: auto !important;
}

/* Custom scrollbar for message textarea */
#messageModal .tip-modal-content .tip-modal-body .message-content-input::-webkit-scrollbar,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .message-content-input::-webkit-scrollbar,
.message-content-input::-webkit-scrollbar,
textarea.message-content-input::-webkit-scrollbar,
#messageContent::-webkit-scrollbar {
    width: 8px !important;
}

#messageModal .tip-modal-content .tip-modal-body .message-content-input::-webkit-scrollbar-track,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .message-content-input::-webkit-scrollbar-track,
.message-content-input::-webkit-scrollbar-track,
textarea.message-content-input::-webkit-scrollbar-track,
#messageContent::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

#messageModal .tip-modal-content .tip-modal-body .message-content-input::-webkit-scrollbar-thumb,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .message-content-input::-webkit-scrollbar-thumb,
.message-content-input::-webkit-scrollbar-thumb,
textarea.message-content-input::-webkit-scrollbar-thumb,
#messageContent::-webkit-scrollbar-thumb {
    background: #4361ee !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#messageModal .tip-modal-content .tip-modal-body .message-content-input::-webkit-scrollbar-thumb:hover,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .message-content-input::-webkit-scrollbar-thumb:hover,
.message-content-input::-webkit-scrollbar-thumb:hover,
textarea.message-content-input::-webkit-scrollbar-thumb:hover,
#messageContent::-webkit-scrollbar-thumb:hover {
    background: #5e17eb !important;
    box-shadow: 0 0 5px rgba(94, 23, 235, 0.5) !important;
}

#messageModal .tip-modal-content .tip-modal-body .message-content-input:focus,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .message-content-input:focus,
.message-content-input:focus,
textarea.message-content-input:focus,
#messageContent:focus {
    outline: none !important;
    border-color: #4361ee !important;
    background: #333333 !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15) !important;
}

#messageModal .tip-modal-content .tip-modal-body .message-content-input::placeholder,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .message-content-input::placeholder,
.message-content-input::placeholder,
textarea.message-content-input::placeholder,
#messageContent::placeholder {
    color: #888888 !important;
}

/* Tipper Name Section for Message Modal */
#messageModal .tip-modal-content .tip-modal-body .tipper-name-section,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .tipper-name-section {
    margin-bottom: 25px !important;
}

#messageModal .tip-modal-content .tip-modal-body .tipper-name-section label,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .tipper-name-section label {
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    display: block !important;
}

#messageModal .tip-modal-content .tip-modal-body .tipper-name-input,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .tipper-name-input,
#messageModal input.tipper-name-input,
#senderName {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #404040 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: 'Roboto', sans-serif !important;
    background: #2a2a2a !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    display: block !important;
    line-height: normal !important;
    text-align: start !important;
    cursor: text !important;
}

#messageModal .tip-modal-content .tip-modal-body .tipper-name-input:focus,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .tipper-name-input:focus,
#messageModal input.tipper-name-input:focus,
#senderName:focus {
    outline: none !important;
    border-color: #4361ee !important;
    background: #333333 !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15) !important;
}

#messageModal .tip-modal-content .tip-modal-body .tipper-name-input::placeholder,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .tipper-name-input::placeholder,
#messageModal input.tipper-name-input::placeholder,
#senderName::placeholder {
    color: #888888 !important;
}

/* Character Count Styling */
#messageModal .tip-modal-content .tip-modal-body .character-count,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .character-count,
.character-count {
    text-align: right !important;
    font-size: 12px !important;
    color: #888888 !important;
    margin-top: 5px !important;
}

#messageModal .tip-modal-content .tip-modal-body .character-count #charCount,
.tip-modal#messageModal .tip-modal-content .tip-modal-body .character-count #charCount,
.character-count #charCount {
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Send Message button styling - match hire DJ button exactly */
#messageModal .tip-submit-btn,
.tip-modal#messageModal .tip-submit-btn,
#submitMessage {
    background: #6b52ff !important;
    color: white !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transform: none !important;
}

#messageModal .tip-submit-btn:hover,
.tip-modal#messageModal .tip-submit-btn:hover,
#submitMessage:hover {
    background: #5a47e6 !important;
    color: white !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transform: none !important;
}

#messageModal .tip-submit-btn:active,
.tip-modal#messageModal .tip-submit-btn:active,
#submitMessage:active {
    background: #4a3dd6 !important;
    color: white !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transform: none !important;
}

#messageModal .tip-submit-btn:focus,
.tip-modal#messageModal .tip-submit-btn:focus,
#submitMessage:focus {
    background: #6b52ff !important;
    color: white !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transform: none !important;
}

/* Apply same styling to QR Modal Copy Link button */
#qrModal .tip-submit-btn,
.tip-modal#qrModal .tip-submit-btn,
#qrModal button[onclick*="copyEventLink"] {
    background: linear-gradient(135deg, #0b35b5, #1061b9) !important;
    color: white !important;
    transition: box-shadow 0.2s ease !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(11, 53, 181, 0.2) !important;
    -webkit-box-shadow: 0 2px 4px rgba(11, 53, 181, 0.2) !important;
    transform: none !important;
}

#qrModal .tip-submit-btn:hover,
.tip-modal#qrModal .tip-submit-btn:hover,
#qrModal button[onclick*="copyEventLink"]:hover {
    background: linear-gradient(135deg, #1445c5, #2071c9) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(20, 69, 197, 0.3), 0 0 20px rgba(20, 69, 197, 0.15) !important;
    -webkit-box-shadow: 0 4px 12px rgba(20, 69, 197, 0.3), 0 0 20px rgba(20, 69, 197, 0.15) !important;
    transform: none !important;
}

#qrModal .tip-submit-btn:active,
.tip-modal#qrModal .tip-submit-btn:active,
#qrModal button[onclick*="copyEventLink"]:active {
    background: linear-gradient(135deg, #0a2fa5, #0f57a9) !important;
    color: white !important;
    box-shadow: 0 1px 2px rgba(10, 47, 165, 0.3) !important;
    -webkit-box-shadow: 0 1px 2px rgba(10, 47, 165, 0.3) !important;
    transform: none !important;
}

#qrModal .tip-submit-btn:focus,
.tip-modal#qrModal .tip-submit-btn:focus,
#qrModal button[onclick*="copyEventLink"]:focus {
    background: linear-gradient(135deg, #0b35b5, #1061b9) !important;
    color: white !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(11, 53, 181, 0.2), 0 0 0 3px rgba(11, 53, 181, 0.1) !important;
    -webkit-box-shadow: 0 2px 4px rgba(11, 53, 181, 0.2), 0 0 0 3px rgba(11, 53, 181, 0.1) !important;
    transform: none !important;
}

/* Message Modal Header Styling - Updated to match standardized styling */
#messageModal .tip-modal-header,
.tip-modal#messageModal .tip-modal-header {
    background: #3e4961 !important; /* Match standardized header color */
}

#messageModal .tip-modal-header h3,
.tip-modal#messageModal .tip-modal-header h3 {
    color: white !important;
}

#messageModal .tip-modal-header h3 i,
.tip-modal#messageModal .tip-modal-header h3 i {
    color: white !important; /* Match standardized white icons */
}

/* Override QR icon mobile styles to maintain full size */
@media (max-width: 768px) {
    .qr-code-icon {
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
    }
    
    .qr-code-icon i {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .event-title {
        font-size: 20px;
    }

    .event-date {
        font-size: 14px;
    }
    
    .view-title-icon {
        font-size: 20px;
    }
}

/* ========================================
   iOS SAFARI MODAL BACKGROUND FIXES
   ======================================== */

/* iOS Safari Modal Background Override - Ultra High Specificity */
@supports (-webkit-touch-callout: none) {
    /* Tip Modal iOS Fixes */
    .tip-modal,
    .tip-modal.show,
    #tipModal,
    #tipModal.show,
    #tipModal.tip-modal,
    #tipModal.tip-modal.show {
        background-color: rgba(0, 0, 0, 0.6) !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }
    
    .tip-modal-content,
    #tipModal .tip-modal-content,
    .tip-modal .tip-modal-content {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    .tip-modal-header,
    #tipModal .tip-modal-header,
    .tip-modal .tip-modal-header {
        background: #3e4961 !important; /* Match standardized header color */
        background-color: #3e4961 !important;
        color: white !important;
        border: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    .tip-modal-body,
    #tipModal .tip-modal-body,
    .tip-modal .tip-modal-body {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        color: #ffffff !important;
        border: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    /* Message Modal iOS Fixes */
    #messageModal,
    #messageModal.show,
    #messageModal.tip-modal,
    #messageModal.tip-modal.show {
        background-color: rgba(0, 0, 0, 0.6) !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }
    
    #messageModal .tip-modal-content,
    #messageModal.tip-modal .tip-modal-content {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    #messageModal .tip-modal-header,
    #messageModal.tip-modal .tip-modal-header {
        background: #3e4961 !important; /* Match standardized header color */
        background-color: #3e4961 !important;
        color: white !important;
        border: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    #messageModal .tip-modal-body,
    #messageModal.tip-modal .tip-modal-body {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        color: #ffffff !important;
        border: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    /* QR Modal iOS Fixes */
    #qrModal,
    #qrModal.show,
    #qrModal.tip-modal,
    #qrModal.tip-modal.show {
        background-color: rgba(0, 0, 0, 0.6) !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }
    
    #qrModal .tip-modal-content,
    #qrModal.tip-modal .tip-modal-content {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    #qrModal .tip-modal-header,
    #qrModal.tip-modal .tip-modal-header {
        background: #3e4961 !important; /* Match standardized header color */
        background-color: #3e4961 !important;
        color: white !important;
        border: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    #qrModal .tip-modal-body,
    #qrModal.tip-modal .tip-modal-body {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        color: #ffffff !important;
        border: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    /* Form Field iOS Fixes */
    #tipperName,
    #tipAmountSelect,
    #senderName,
    #messageContent,
    .message-content-input,
    .tipper-name-input {
        background: #2a2a2a !important;
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        border: 2px solid #404040 !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        -webkit-border-radius: 8px !important;
        border-radius: 8px !important;
    }
    
    #tipperName:focus,
    #tipAmountSelect:focus,
    #senderName:focus,
    #messageContent:focus,
    .message-content-input:focus,
    .tipper-name-input:focus {
        background: #333333 !important;
        background-color: #333333 !important;
        border-color: #4361ee !important;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15) !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    /* Button iOS Fixes */
    .tip-submit-btn,
    .submit-btn,
    .btn-content {
        -webkit-appearance: none !important;
        appearance: none !important;
        border: none !important;
        outline: none !important;
        -webkit-border-radius: 8px !important;
        border-radius: 8px !important;
    }
}

/* Additional iOS-specific fixes using user agent detection */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    _::-webkit-full-page-media, _:future, :root .tip-modal {
        background-color: rgba(0, 0, 0, 0.6) !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }
    
    _::-webkit-full-page-media, _:future, :root .tip-modal-content {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        color: #ffffff !important;
    }
    
    _::-webkit-full-page-media, _:future, :root .tip-modal-header {
        background: #3e4961 !important; /* Match standardized header color */
        background-color: #3e4961 !important;
        color: white !important;
    }
    
    _::-webkit-full-page-media, _:future, :root .tip-modal-body {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        color: #ffffff !important;
    }
}

/* ========================================
   SUBMISSION LIMIT INFO STYLES
   ======================================== */

/* Submission Limit Info Container */
.submission-limit-info {
    margin: 0; /* No margins - let banner handle spacing */
}

/* Songs remaining banner - match shape only (full width, no radius, 1px gap) */
.requests-remaining {
    background: rgba(33, 150, 243, 0.15);
    border: none;
    border-radius: 0; /* No radius - match "Requests close on" */
    margin: 0 0 10px 0; /* 10px gap after banner */
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.requests-remaining i {
    font-size: 16px;
    color: #2196f3;
    flex-shrink: 0;
}

.requests-remaining strong {
    color: #93c5fd;
    font-weight: 600;
}

/* Limit Reached State */
.requests-remaining.limit-reached {
    background: rgba(239, 68, 68, 0.15);
    border: none;
    border-radius: 0;
    color: #fca5a5;
}

/* End Date Info State - SOLID COLOR, NO GRADIENT */
.requests-remaining.end-date-info {
    background: rgba(159, 33, 243, 0.15);
    border: none;
    border-radius: 0;
    margin: 0 0 1px 0; /* 1px gap before songs remaining */
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 1; /* Keep full opacity */
}

.requests-remaining.end-date-info i {
    color: white;
}

.requests-remaining.end-date-info strong {
    color: white;
}

.requests-remaining.limit-reached i {
    color: #fca5a5;
}

.requests-remaining.limit-reached strong {
    color: #fecaca;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .submission-limit-info {
        margin: 0 0 25px 0; /* Slightly less margin on mobile */
    }
    
    .requests-remaining {
        padding: 10px 16px; /* Adjusted mobile padding */
        font-size: 14px; /* Slightly larger on mobile */
        gap: 6px;
    }
    
    .requests-remaining i {
        font-size: 15px; /* Slightly larger icon on mobile */
    }
}
/* Tipping Modal Styles - Matching Request Page Design with Dark Mode Support */

/* Preserve FontAwesome icons */
.fas, .far, .fab, .fal, .fad, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* Ensure lookup button styles are not affected by tipping modal styles */
.lookup-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    min-width: 50px !important;
}

.input-with-lookup {
    display: flex !important;
    align-items: stretch !important;
}

/* Fix alignment of icons in dropdown results */
.lookup-loading {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.lookup-loading .spinner-circle {
    flex-shrink: 0 !important;
}

.result-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.result-item i {
    width: 16px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.result-text {
    flex: 1 !important;
    line-height: 1.4 !important;
}

/* Modal Overlay */
.tip-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.tip-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.tip-modal-content {
    background: transparent; /* Match standardized transparent background */
    margin: 20px;
    padding: 0;
    border-radius: 10px; /* Match standardized 10px border radius */
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: none; /* Remove drop shadow to match standardized styling */
    animation: slideUp 0.3s ease-out;
    font-family: 'Roboto', sans-serif;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tip-modal-content {
        background: transparent; /* Keep transparent */
        color: #ffffff;
        box-shadow: none; /* Remove drop shadow */
    }
}

/* Modal Header */
.tip-modal-header {
    background: #3e4961; /* Match standardized header color */
    color: white;
    padding: 20px 25px;
    border-radius: 10px 10px 0 0; /* Match standardized 10px border radius */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    opacity: 1; /* Keep header fully opaque */
}

.tip-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-modal-header h3 i {
    color: white; /* Match standardized white icons */
    font-size: 18px;
}

.tip-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tip-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body */
.tip-modal-body {
    padding: 25px;
    background: linear-gradient(135deg, #001531 0%, #000315 100%); /* Add standardized diagonal gradient */
    opacity: 0.9; /* Apply 90% opacity to body only */
    border-radius: 0 0 10px 10px; /* Match container border radius */
}

/* Tip Amounts Section */
.tip-amounts {
    margin-bottom: 25px;
}

.tip-amounts h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

@media (prefers-color-scheme: dark) {
    .tip-amounts h4 {
        color: #ffffff;
    }
}

.tip-amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.tip-amount-btn {
    padding: 12px 8px;
    border: 2px solid #e1e5ee;
    background: white;
    color: #6c757d;
    border-radius: 6px; /* Match standardized 6px border radius */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

@media (prefers-color-scheme: dark) {
    .tip-amount-btn {
        background: #2a2a2a;
        border-color: #404040;
        color: #cccccc;
    }
    
    .tip-amount-btn:hover {
        background: #333333;
        border-color: #4361ee;
        color: #4361ee;
    }
}

.tip-amount-btn:hover {
    border-color: #4361ee;
    color: #4361ee;
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}

.tip-amount-btn.selected {
    background: linear-gradient(135deg, #4361ee, #4895ef);
    border-color: #4361ee;
    color: white;
    transform: none; /* Remove selected transform */
    box-shadow: none; /* Remove selected shadow */
}

/* Custom Amount */
.custom-amount-container {
    border-top: 1px solid #e1e5ee;
    padding-top: 15px;
}

.custom-amount-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #212529;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    .custom-amount-container label {
        color: #ffffff;
    }
}

.custom-amount-container input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #404040 !important; /* Force dark border for consistency */
    border-radius: 6px; /* Match standardized 6px border radius */
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: #2a2a2a !important; /* Force dark background always */
    color: #ffffff !important; /* Force white text always */
    -webkit-text-fill-color: #ffffff !important; /* iOS specific text color fix */
}

.custom-amount-container input:focus {
    background: #333333 !important; /* Force darker background on focus */
    border-color: #4361ee !important;
    color: #ffffff !important; /* Ensure text stays white on focus */
    -webkit-text-fill-color: #ffffff !important;
}

/* Remove all light theme overrides that could cause white background */
@media (prefers-color-scheme: light) {
    .custom-amount-container input {
        background: #2a2a2a !important; /* Force dark background even in light mode */
        border-color: #404040 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
    
    .custom-amount-container input:focus {
        background: #333333 !important;
        border-color: #4361ee !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

.custom-amount-container input:focus {
    outline: none;
    border-color: #4361ee !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    background: #333333 !important; /* Force dark background on focus */
    color: #ffffff !important; /* Force white text on focus */
    -webkit-text-fill-color: #ffffff !important;
}

/* Payment Methods Section */
.payment-methods {
    margin-bottom: 25px;
}

.payment-methods h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

@media (prefers-color-scheme: dark) {
    .payment-methods h4 {
        color: #ffffff;
    }
}

.payment-method-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method-btn {
    padding: 15px 20px;
    border: 2px solid #e1e5ee;
    background: white;
    color: #6c757d;
    border-radius: 6px; /* Match standardized 6px border radius */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Roboto', sans-serif;
}

@media (prefers-color-scheme: dark) {
    .payment-method-btn {
        background: #2a2a2a;
        border-color: #404040;
        color: #cccccc;
    }
    
    .payment-method-btn:hover {
        background: #333333;
        border-color: #4895ef;
        color: #ffffff;
    }
    
    .payment-method-btn.selected {
        background: linear-gradient(135deg, #4361ee, #4895ef);
        border-color: #4361ee;
        color: white !important;
    }
}

.payment-method-btn:hover {
    border-color: #4361ee;
    color: #4361ee;
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}

.payment-method-btn.selected {
    background: linear-gradient(135deg, #4361ee, #4895ef);
    border-color: #4361ee;
    color: white;
    transform: none; /* Remove selected transform */
    box-shadow: none; /* Remove selected shadow */
}

.payment-method-btn i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Venmo specific styling */
.venmo-btn:hover {
    border-color: #3d95ce;
    color: #3d95ce;
}

.venmo-btn.selected {
    background: linear-gradient(135deg, #3d95ce, #2980b9);
    border-color: #3d95ce;
}

/* PayPal specific styling */
.paypal-btn:hover {
    border-color: #0070ba;
    color: #0070ba;
}

.paypal-btn.selected {
    background: linear-gradient(135deg, #0070ba, #003087);
    border-color: #0070ba;
}

/* Optional Fields */
.tip-optional-fields {
    margin-bottom: 25px;
}

.tip-optional-fields .form-group {
    margin-bottom: 15px;
}

.tip-optional-fields .form-group:last-child {
    margin-bottom: 0;
}

.tip-optional-fields label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #212529;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    .tip-optional-fields label {
        color: #ffffff;
    }
}

.tip-optional-fields input,
.tip-optional-fields textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 6px; /* Match standardized 6px border radius */
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: white;
    resize: vertical;
}

@media (prefers-color-scheme: dark) {
    .tip-optional-fields input,
    .tip-optional-fields textarea {
        background: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }
    
    .tip-optional-fields input:focus,
    .tip-optional-fields textarea:focus {
        background: #333333;
        border-color: #4361ee;
    }
    
    .tip-optional-fields input::placeholder,
    .tip-optional-fields textarea::placeholder {
        color: #888888;
    }
}

.tip-optional-fields input:focus,
.tip-optional-fields textarea:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.tip-optional-fields textarea {
    min-height: 60px;
    max-height: 120px;
}

/* Submit Button */
.tip-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: #6b52ff; /* Match standardized button color */
    color: white;
    border: none;
    border-radius: 6px; /* Match standardized 6px border radius */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    box-shadow: none; /* Remove drop shadow */
}

.tip-submit-btn:hover:not(:disabled) {
    background: #5a47e6; /* Darker purple on hover */
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}

.tip-submit-btn:disabled {
    background: #e1e5ee;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tip-submit-btn i {
    font-size: 16px;
}

/* Tip Button (Main Page) */
.tip-section {
    margin-top: 25px;
    text-align: center;
}

.tip-btn {
    background: #e73474cc !important;
    background-color: #e73474cc !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 12px 24px;
    border-radius: 6px; /* Match standardized 6px border radius */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    box-shadow: none !important; /* Remove drop shadow */
}

.tip-btn:hover {
    background: #f04d7a !important; /* Lighter version of the regular background color #e7346b */
    background-color: #f04d7a !important;
    transform: none; /* Remove hover transform */
    box-shadow: none !important; /* Remove hover shadow */
}

.tip-btn i {
    font-size: 16px;
    animation: heartbeat 2s infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes heartbeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tip-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .tip-modal-header {
        padding: 15px 20px;
    }
    
    .tip-modal-header h3 {
        font-size: 18px;
    }
    
    .tip-modal-body {
        padding: 20px;
    }
    
    .tip-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .tip-amount-btn {
        padding: 10px 6px;
        font-size: 14px;
    }
    
    .payment-method-btn {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .tip-submit-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .tip-modal-content {
        margin: 5px;
        border-radius: 8px;
    }
    
    .tip-modal-header {
        border-radius: 8px 8px 0 0;
        padding: 12px 15px;
    }
    
    .tip-modal-body {
        padding: 15px;
    }
    
    .tip-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tip-amounts h4,
    .payment-methods h4 {
        font-size: 15px;
    }
}

/* Loading State */
.tip-submit-btn.loading {
    position: relative;
    color: transparent;
}

.tip-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: vinylSpin 2s linear infinite;
}

@keyframes vinylSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Success/Error Messages */
.tip-message {
    padding: 12px 15px;
    border-radius: 6px; /* Match standardized 6px border radius */
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.tip-message.success {
    background: rgba(11, 181, 88, 0.1);
    border: 1px solid #0bb558;
    color: #0bb558;
}

.tip-message.error {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid #e63946;
    color: #e63946;
}

/* Focus states for accessibility */
.tip-amount-btn:focus,
.payment-method-btn:focus,
.tip-submit-btn:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tip-modal-content {
        border: 2px solid #000;
    }
    
    .tip-amount-btn,
    .payment-method-btn {
        border-width: 2px;
    }
    
    .tip-amount-btn.selected,
    .payment-method-btn.selected {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .tip-modal,
    .tip-modal-content,
    .tip-amount-btn,
    .payment-method-btn,
    .tip-submit-btn,
    .tip-btn {
        animation: none;
        transition: none;
    }
    
    .tip-btn i {
        animation: none;
    }
}


/* Specific styles for message modal inputs */
.message-content-section {
    margin-bottom: 20px;
}

.message-content-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #212529;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    .message-content-section label {
        color: #ffffff;
    }
}

.message-content-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px !important; /* Prevent iOS zoom */
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: white;
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
    -webkit-text-size-adjust: 100% !important;
    -webkit-appearance: none !important;
}

@media (prefers-color-scheme: dark) {
    .message-content-input {
        background: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }
    
    .message-content-input:focus {
        background: #333333;
        border-color: #4361ee;
    }
    
    .message-content-input::placeholder {
        color: #888888;
    }
}

.message-content-input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.character-count {
    text-align: right;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

@media (prefers-color-scheme: dark) {
    .character-count {
        color: #888888;
    }
}

/* Tipper name section styles */
.tipper-name-section {
    margin-bottom: 20px;
}

.tipper-name-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #212529;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    .tipper-name-section label {
        color: #ffffff;
    }
}

.tipper-name-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px !important; /* Prevent iOS zoom */
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: white;
    -webkit-text-size-adjust: 100% !important;
    -webkit-appearance: none !important;
    transform: translateZ(0); /* Force hardware acceleration to prevent zoom */
}

@media (prefers-color-scheme: dark) {
    .tipper-name-input {
        background: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }
    
    .tipper-name-input:focus {
        background: #333333;
        border-color: #4361ee;
    }
    
    .tipper-name-input::placeholder {
        color: #888888;
    }
}

.tipper-name-input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Tip amount dropdown styles */
.tip-amount-dropdown {
    margin-bottom: 15px;
}

.tip-amount-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px !important; /* Prevent iOS zoom */
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: white;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polylyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

@media (prefers-color-scheme: dark) {
    .tip-amount-select {
        background: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polylyline%3e%3c/svg%3e");
    }
    
    .tip-amount-select:focus {
        background-color: #333333;
        border-color: #4361ee;
    }
}

.tip-amount-select:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Additional iOS zoom prevention for message modal - Higher specificity */
#messageModal .tipper-name-input,
#messageModal .message-content-input,
.tip-modal .tipper-name-input,
.tip-modal .message-content-input {
    font-size: 16px !important; /* Prevent iOS zoom with higher specificity */
    -webkit-text-size-adjust: 100% !important;
    -webkit-appearance: none !important;
    transform: translateZ(0) !important; /* Force hardware acceleration */
}

/* Ensure message modal inputs override any form-control styles */
.tip-modal-body .tipper-name-input,
.tip-modal-body .message-content-input,
.tip-modal-body input[type="text"],
.tip-modal-body textarea {
    font-size: 16px !important; /* Prevent iOS zoom */
    -webkit-text-size-adjust: 100% !important;
    -webkit-appearance: none !important;
    transform: translateZ(0) !important;
}

/* Override any conflicting styles from request-styles.css */
.tip-modal .form-control,
.tip-modal input.form-control {
    font-size: 16px !important; /* Prevent iOS zoom */
}

/* iOS Safari specific fixes for custom amount field */
@supports (-webkit-touch-callout: none) {
    /* Target iOS Safari specifically */
    .custom-amount-container input,
    #customAmount,
    input[name="custom_tip_amount"] {
        background: #2a2a2a !important;
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        -webkit-border-radius: 6px !important;
        border-radius: 6px !important;
        border: 2px solid #404040 !important;
    }
    
    .custom-amount-container input:focus,
    #customAmount:focus,
    input[name="custom_tip_amount"]:focus {
        background: #333333 !important;
        background-color: #333333 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        border-color: #4361ee !important;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15) !important;
    }
    
    /* Light theme overrides for iOS - REMOVED to prevent white background issue */
}

/* Additional iOS fixes using webkit media query */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    _::-webkit-full-page-media, _:future, :root .custom-amount-container input {
        background: #2a2a2a !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
    
    _::-webkit-full-page-media, _:future, :root .custom-amount-container input:focus {
        background: #333333 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}
/* Notification slide animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
        /* Container View System Styles */
        .main-content {
            position: relative;
            min-height: 400px;
            overflow: hidden !important;
            border-radius: 12px;
            clip-path: inset(0 0 0 0 round 12px);
            transition: height 0.4s ease;
            background-size: cover !important;
            background-position: center center !important;
            background-repeat: no-repeat !important;
            background-attachment: local !important;
        }
        
        .main-content.view-active {
            background-size: cover !important;
            background-position: center center !important;
            background-attachment: local !important;
        }

        .container-view {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            background: transparent;
            border: none;
            border-radius: 12px;
            padding: 0;
            z-index: 10;
            transform: translateX(100%);
            opacity: 0;
            box-shadow: none;
            height: auto;
            min-height: auto;
            max-height: none;
        }

        .container-view.show {
            transform: translateX(0);
            opacity: 1;
        }

        .container-view.message-view,
        .container-view.tip-view,
        .container-view.hire-view,
        .container-view.recent-view {
            height: auto;
            min-height: auto;
        }

        .container-view.recent-view {
            max-height: 480px;
        }

        .view-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px 12px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px 12px 0 0;
        }

        .view-header h3 {
            margin: 0;
            color: white;
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .close-view-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .close-view-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .close-view-btn:active {
            transform: scale(0.95);
        }

        .view-content {
            padding: 20px 20px 5px 20px;
            min-height: calc(100% - 60px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            flex: 1;
            width: 100%;
            box-sizing: border-box;
        }

        /* Form width fixes for container views */
        .container-view form {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .container-view .form-group {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        /* AGGRESSIVE CSS OVERRIDES - Force full width for container view forms */
        .container-view .form-control,
        .container-view input.form-control,
        .container-view textarea.form-control,
        .container-view select.form-control,
        .container-view input[type="text"],
        .container-view input[type="email"],
        .container-view input[type="tel"],
        .container-view input[type="number"],
        .container-view textarea,
        .container-view select,
        #messageView input,
        #messageView textarea,
        #tipView input,
        #tipView select,
        #hireView input,
        #hireView textarea,
        #senderName,
        #messageContent,
        #tipperName,
        #tipAmountSelect,
        #customAmount,
        #contactName,
        #contactEmail,
        #contactPhone,
        #hireDJMessage {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 100% !important;
            box-sizing: border-box !important;
            border-radius: 12px !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            background: rgba(30, 30, 50, 0.6) !important;
            background-color: rgba(30, 30, 50, 0.6) !important;
            color: rgba(255, 255, 255, 1) !important;
            padding: 18px !important;
            padding-left: 18px !important;
            padding-right: 18px !important;
            padding-top: 18px !important;
            padding-bottom: 18px !important;
            font-size: 16px !important;
            font-family: 'Roboto', sans-serif !important;
            transition: all 0.3s !important;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
            flex: none !important;
            display: block !important;
            margin: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            margin-top: 0 !important;
            margin-bottom: 0 !important;
            appearance: none !important;
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            position: relative !important;
            left: 0 !important;
            right: 0 !important;
            top: 0 !important;
        }

        /* Force container view form groups to be full width */
        .container-view .form-group,
        #messageView .form-group,
        #tipView .form-group,
        #hireView .form-group {
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        /* Focus states */
        .container-view .form-control:focus,
        .container-view input.form-control:focus,
        .container-view textarea.form-control:focus,
        .container-view select.form-control:focus,
        .container-view input[type="text"]:focus,
        .container-view input[type="email"]:focus,
        .container-view input[type="tel"]:focus,
        .container-view input[type="number"]:focus,
        .container-view textarea:focus,
        .container-view select:focus,
        #senderName:focus,
        #messageContent:focus,
        #tipperName:focus,
        #tipAmountSelect:focus,
        #customAmount:focus,
        #contactName:focus,
        #contactEmail:focus,
        #contactPhone:focus,
        #hireDJMessage:focus {
            outline: none !important;
            background-color: rgba(30, 30, 50, 0.8) !important;
            border-color: rgba(255, 255, 255, 0.3) !important;
            width: 100% !important;
        }

        /* Placeholder styles */
        .container-view .form-control::placeholder,
        .container-view input.form-control::placeholder,
        .container-view textarea.form-control::placeholder,
        .container-view input[type="text"]::placeholder,
        .container-view input[type="email"]::placeholder,
        .container-view input[type="tel"]::placeholder,
        .container-view input[type="number"]::placeholder,
        .container-view textarea::placeholder,
        #senderName::placeholder,
        #messageContent::placeholder,
        #tipperName::placeholder,
        #customAmount::placeholder,
        #contactName::placeholder,
        #contactEmail::placeholder,
        #contactPhone::placeholder,
        #hireDJMessage::placeholder {
            color: rgba(255, 255, 255, 0.6) !important;
        }

        /* Override any external CSS that might be affecting width */
        .container-view * {
            box-sizing: border-box !important;
        }

        /* Ensure view content doesn't constrain form width */
        .container-view .view-content {
            width: 100% !important;
            max-width: 100% !important;
            padding-left: 20px !important;
            padding-right: 20px !important;
        }

        .container-view .payment-methods {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .container-view .payment-method-buttons {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .container-view .payment-method-btn {
            flex: 1;
            min-width: 120px;
            max-width: 100%;
            box-sizing: border-box;
        }

        .container-view .tip-submit-btn {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        /* Character count styling for container views */
        .container-view .character-count {
            text-align: right;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 5px;
        }

        /* Ensure main content has proper minimum height when returning to request form */
        .main-content:not(.view-active) {
            min-height: 500px;
            height: auto;
        }

        /* Fix for request form visibility when returning from container views */
        .request-form {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        /* Additional CSS fixes for input groups and overflow */
        .app-container, .main-content, .request-form, .song-artist-row, .form-group, .input-group {
            overflow: visible !important;
        }

        .input-group {
            display: flex;
            box-shadow: none;
            border-radius: 12px;
            position: relative;
            height: 60px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            overflow: visible;
            background: transparent;
        }

        @media (prefers-color-scheme: dark) {
            @media (max-width: 768px) {
                .input-group {
                    border: 1px solid rgba(255, 255, 255, 0.4) !important;
                    box-shadow: none !important;
                    background: transparent !important;
                    overflow: visible;
                    border-radius: 12px !important;
                }
            }
        }

        @media (max-width: 768px) {
            .input-group {
                border: 1px solid rgba(255, 255, 255, 0.2);
            }
        }

        /* Match main request form styling for recent songs container */
        .container-view.recent-view {
            background: transparent;
        }

        .container-view.recent-view .view-content {
            background: transparent;
        }

        .container-view.recent-view .recent-songs-list {
            background: rgba(30, 30, 50, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 0;
            overflow: hidden;
        }

        .container-view.recent-view .recent-song-item {
            background: transparent;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .container-view.recent-view .recent-song-item:last-child {
            border-bottom: none;
        }

        .container-view.recent-view .recent-song-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .container-view {
            display: flex;
            flex-direction: column;
        }

        .view-header {
            flex-shrink: 0;
        }

        .main-content.view-active .request-form {
            opacity: 0;
            pointer-events: none;
            transform: translateX(-20px);
        }
        
        .request-form.slide-in {
            animation: slideInFromRight 0.3s ease-out forwards;
        }
        
        @keyframes slideInFromLeft {
            from {
                opacity: 0;
                transform: translateX(100%);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        .event-header.view-active .header-menu-cards {
            opacity: 0;
            pointer-events: none;
            transform: translateX(-20px);
        }

        .header-view-title {
            position: absolute;
            top: 100px;
            left: 0px;
            right: 2px;
            height: 70px;
            min-height: 70px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            opacity: 0;
            transform: translateX(100%);
            pointer-events: none;
            z-index: 20;
        }

        .header-view-title.active {
            opacity: 1;
            transform: translateX(0);
            pointer-events: all;
        }

        .view-title-content {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            width: 100%;
            height: 100%;
            padding: 0px 0px;
            color: white;
            font-weight: 600;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            opacity: 0.9;
        }

        .view-title-icon {
            font-size: 18px;
            opacity: 1;
            background: rgba(0, 0, 0, 0.3);
            padding: 10px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            margin-bottom: 0px;
            flex-shrink: 0;
        }

        .view-title-text {
            font-size: 14px;
            font-weight: 600;
            line-height: 38px;
            display: flex;
            align-items: center;
            text-align: left;
        }

        /* Requests tab styles are defined in request-styles.css */
        /* No inline overrides needed - let CSS file handle all styling */

        @media (max-width: 768px) {
            .header-view-title {
                left: 10px;
                right: 10px;
                min-height: 55px;
                height: 55px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                flex-wrap: nowrap;
                gap: 12px;
            }

            .view-title-content {
                flex: 1;
                min-width: 0;
                padding: 0px 0px;
            }
            
            /* Requests tab responsive styles are in request-styles.css */
        }

        @media (max-width: 480px) {
            .view-title-text {
                font-size: 14px;
                line-height: 1.1;
            }

            .view-title-icon {
                font-size: 20px;
            }
            
            /* Requests tab responsive styles are in request-styles.css */
        }