:root {
    --bg-color: #050507;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary-color: #ff6b00;
    --primary-gradient: linear-gradient(135deg, #ff6b00 0%, #ff9f00 100%);
    --text-color: #ffffff;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.08);
    --price-color: #4cd964;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0 1rem 1rem 1rem;
    overflow-x: hidden;
}

/* Aurora Background */
.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.02) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
    animation: aurora-pulse 12s ease-in-out infinite alternate;
    opacity: 0.8;
}

@keyframes aurora-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Grain/Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    padding-top: 0.5rem;
}

/* Search Card */
.search-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.search-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: #fff;
    text-transform: uppercase;
}

.logo i {
    color: var(--primary-color);
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.4));
}

.highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-left: auto;
    width: fit-content;
    backdrop-filter: blur(10px);
}

.sort-controls label {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
}

.select-wrapper {
    position: relative;
    flex: 1;
}

.select-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    font-size: 0.8rem;
}

select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    appearance: none;
    border-radius: 8px;
    font-family: var(--font-body);
    cursor: pointer;
    font-size: 0.95rem;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

select option {
    background: #1a1a1a;
    color: #fff;
}

.primary-btn {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary-gradient);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.4);
}

.primary-btn:active {
    transform: translateY(0) scale(0.98);
}

.primary-btn i {
    transition: transform 0.5s ease;
}

.primary-btn:hover i {
    transform: rotate(360deg);
}

/* Event Cards */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.event-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px var(--team-color);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Dynamic Top Border */
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--team-color);
    box-shadow: 0 2px 10px var(--team-color);
}

.event-details {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    color: var(--team-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.event-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 400;
    /* Bebas is naturally bold */
    letter-spacing: 0.5px;
}

.event-venue {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 300;
}

.event-venue i {
    color: var(--team-color);
}

.price-container {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
    margin: 1rem -2rem 0 -2rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.2rem;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--price-color);
    line-height: 1;
    text-shadow: 0 0 15px rgba(76, 217, 100, 0.2);
}

.price-value-total {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: #ff4444;
    line-height: 1;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.ticket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--team-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.ticket-btn:hover {
    background: var(--team-color);
    color: #000;
    box-shadow: 0 0 15px var(--team-color);
}

/* Cheapest Badge */
.cheapest-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(3deg);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 2;
    animation: badge-pulse 2s infinite ease-in-out;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: rotate(3deg) scale(1);
    }

    50% {
        transform: rotate(3deg) scale(1.05);
    }
}

.error-msg {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .search-card {
        padding: 1.5rem;
    }

    .event-name {
        font-size: 1.5rem;
    }
}