/* ============================================
   TICKET PRICE COMPARISON - Design System
   ============================================ */

/* CSS Variables */
:root {
    /*
     * 60-30-10 COLOR SYSTEM
     * =====================
     * 60% - Warm Cream (backgrounds, base)
     * 30% - Soft Navy (text, headers, trust)
     * 10% - Rust Orange (CTAs, deals, accents)
     */

    /* 60% BASE - Warm Cream (welcoming, safe) */
    --bg-primary: #faf6f1;
    --bg-secondary: #f5efe8;
    --bg-card: #ffffff;
    --bg-input: #ffffff;

    /* Borders */
    --border-subtle: rgba(44, 62, 80, 0.12);
    --border-accent: #e07b39;

    /* 10% ACCENT - Rust Orange (energy, deals) */
    --accent-primary: #e07b39;
    --accent-secondary: #2c3e50;
    --accent-tertiary: #f1c40f;
    --accent-gradient: linear-gradient(135deg, #e07b39 0%, #c96a2d 100%);

    /* 30% SECONDARY - Soft Navy (trust, calm) */
    --text-primary: #2c3e50;
    --text-secondary: #5d6d7e;
    --text-muted: #8e9eab;

    /* Status */
    --success: #27ae60;
    --error: #c0392b;

    /* Typography */
    --font-main: 'Space Grotesk', -apple-system, sans-serif;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Effects - adapted for light theme */
    --glow-accent: 0 4px 15px rgba(224, 123, 57, 0.25);
    --glow-accent-strong: 0 6px 25px rgba(224, 123, 57, 0.4);
    --glow-purple: 0 0 60px rgba(44, 62, 80, 0.1);
    --shadow-card: 0 8px 32px rgba(44, 62, 80, 0.08);
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-secondary);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height - handles mobile keyboard */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow-x: hidden;
}

/* Background depth - subtle warm gradient mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 10% 10%, rgba(224, 123, 57, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 90%, rgba(44, 62, 80, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(241, 196, 15, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

/* ============================================
   FLOATING BACKGROUND ELEMENTS
   ============================================ */

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.float-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    top: -100px;
    left: -100px;
    animation: float1 20s ease-in-out infinite;
}

.float-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    bottom: -50px;
    right: -50px;
    animation: float2 25s ease-in-out infinite;
}

.float-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 60%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 100px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, -60px) scale(1.15); }
    66% { transform: translate(40px, -40px) scale(0.9); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, 80px) scale(1.2); }
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    padding: 48px 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow:
        var(--shadow-card),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.6s ease-out;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    text-align: center;
    margin-bottom: 28px;
}

/* Brand Lockup - Horizontal Icon + Text */
.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    animation: logoFloat 4s ease-in-out infinite;
}

.brand-icon {
    width: 56px;
    height: 38px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(44, 62, 80, 0.15));
}

.brand-icon svg {
    width: 56px;
    height: 38px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Hero Icon - Ticket Logo (legacy, kept for compatibility) */
.hero-icon {
    width: 72px;
    height: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(44, 62, 80, 0.15));
    animation: iconFloat 4s ease-in-out infinite;
}

.hero-icon svg {
    width: 72px;
    height: 48px;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Brand Logo */
.hero-logo {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 72px;
    height: 48px;
    filter: drop-shadow(0 4px 12px rgba(44, 62, 80, 0.15));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Tagline */
.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: var(--glow-accent); }
    50% { box-shadow: var(--glow-accent-strong); }
}

.hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
}

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

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   PLATFORM BADGES
   ============================================ */

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.badge {
    padding: 6px 12px;
    background: rgba(44, 62, 80, 0.04);
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(224, 123, 57, 0.1);
    border-color: rgba(224, 123, 57, 0.3);
    color: var(--accent-primary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.5;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.input-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    opacity: 0.7;
}

.form-group label .optional {
    font-weight: 400;
    color: var(--text-muted);
    text-transform: none;
    font-size: 0.7rem;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(224, 123, 57, 0.15);
    background: #ffffff;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Autocomplete dropdown */
.autocomplete-wrap {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    gap: 12px;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: rgba(224, 123, 57, 0.08);
}

.autocomplete-item .ac-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary, #2a2a2a);
}

.autocomplete-item .ac-img-placeholder {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary, #2a2a2a);
    flex-shrink: 0;
}

.autocomplete-item .ac-name {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.autocomplete-item .ac-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Number input styling */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

button[type="submit"],
#error-section button {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

button[type="submit"]::before,
#error-section button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

button[type="submit"]:hover,
#error-section button:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-accent-strong), 0 10px 30px rgba(224, 123, 57, 0.25);
}

button[type="submit"]:hover .btn-arrow {
    transform: translateX(4px);
}

button[type="submit"]:hover::before,
#error-section button:hover::before {
    left: 100%;
}

button[type="submit"]:active,
#error-section button:active {
    transform: translateY(-1px);
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.trust-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-bar svg {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
    opacity: 0.7;
}

/* ============================================
   TRENDING EVENTS
   ============================================ */

.trending-events {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
    text-align: center;
}

.trending-events h2 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.trending-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.trending-links a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(44, 62, 80, 0.04);
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.trending-links a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(224, 123, 57, 0.06);
}

.browse-all-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
}

.browse-all-link:hover {
    text-decoration: underline;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

#progress-section {
    margin-top: 32px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(224, 123, 57, 0.3);
}

/* Animated glow pulse on progress bar */
.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    filter: blur(8px);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

#status-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   ERROR SECTION
   ============================================ */

#error-section {
    margin-top: 24px;
    text-align: center;
}

#error-text {
    color: var(--error);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* ============================================
   RESULTS SECTION
   ============================================ */

#results-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height - handles mobile keyboard */
    background: var(--bg-primary);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

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

.results-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.results-header button {
    padding: 10px 20px;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--accent-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.results-header button:hover {
    background: rgba(224, 123, 57, 0.1);
    box-shadow: var(--glow-accent);
}

#results-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   CSV BUTTON
   ============================================ */

.csv-btn {
    padding: 10px 20px;
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--success);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.csv-btn:hover {
    background: rgba(39, 174, 96, 0.1);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

#error-csv-link {
    display: inline-block;
    margin-bottom: 16px;
}

#seatmap-frame {
    flex: 1;
    width: 100%;
    border: none;
}

/* ============================================
   SPINNER
   ============================================ */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(44, 62, 80, 0.15);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

#search-progress {
    margin-top: 32px;
    text-align: center;
}

#search-progress p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   EVENTS SECTION
   ============================================ */

#events-section {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    animation: fadeInUp 0.5s ease-out;
}

.events-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.events-header button {
    padding: 10px 20px;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--accent-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.events-header button:hover {
    background: rgba(224, 123, 57, 0.1);
    box-shadow: var(--glow-accent);
}

#events-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

#events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================
   EVENT CARDS - with staggered animation
   ============================================ */

.event-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: cardSlideIn 0.5s ease-out forwards;
}

/* Staggered animation delays */
.event-card:nth-child(1) { animation-delay: 0.05s; }
.event-card:nth-child(2) { animation-delay: 0.1s; }
.event-card:nth-child(3) { animation-delay: 0.15s; }
.event-card:nth-child(4) { animation-delay: 0.2s; }
.event-card:nth-child(5) { animation-delay: 0.25s; }
.event-card:nth-child(6) { animation-delay: 0.3s; }
.event-card:nth-child(7) { animation-delay: 0.35s; }
.event-card:nth-child(8) { animation-delay: 0.4s; }
.event-card:nth-child(9) { animation-delay: 0.45s; }
.event-card:nth-child(10) { animation-delay: 0.5s; }

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        var(--glow-accent),
        0 12px 40px rgba(44, 62, 80, 0.12);
}

.event-card:active {
    transform: translateY(-2px) scale(1.005);
}

.event-info {
    flex: 1;
}

.event-artist {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.event-venue {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.event-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-date {
    text-align: right;
    min-width: 140px;
}

.date-main {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: -0.01em;
}

.date-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Event Meta Container (price + date) */
.event-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.event-price {
    display: inline-block;
    padding: 6px 14px;
    background: var(--success);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    letter-spacing: -0.01em;
}

/* ============================================
   SCRAPE CONTAINER - Skeleton Loading Screen
   ============================================ */

#scrape-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #f0f2f5;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

/* Shimmer animation */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.shimmer {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 800px 100%;
    animation: shimmer 1.8s ease-in-out infinite;
}

/* Skeleton Header */
.skeleton-header {
    background: #ffffff;
    padding: 14px 24px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.skeleton-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.skeleton-header-left button {
    padding: 8px 18px;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--accent-primary);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.skeleton-header-left button:hover {
    background: rgba(224, 123, 57, 0.1);
}

.skeleton-event-info h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.skeleton-event-info #status-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Progress wrap in header */
.skeleton-progress-wrap {
    flex: 1;
    max-width: 400px;
    min-width: 150px;
}

.skeleton-progress-wrap .progress-bar {
    margin-bottom: 8px;
}

/* Platform status pills */
.platform-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.platform-pill {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.platform-pill.pending {
    background: rgba(44, 62, 80, 0.06);
    color: var(--text-muted);
}

.platform-pill.done {
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
}

/* Skeleton Body - Two Column Layout */
.skeleton-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Map placeholder */
.skeleton-map {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-map-inner {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-venue-shape {
    width: 80%;
    height: 80%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.skeleton-stage {
    width: 40%;
    height: 24px;
    border-radius: 4px 4px 12px 12px;
}

.skeleton-arc {
    border-radius: 50%;
    border: none;
}

.skeleton-arc-1 {
    width: 50%;
    height: 28px;
    border-radius: 28px;
}

.skeleton-arc-2 {
    width: 70%;
    height: 32px;
    border-radius: 32px;
}

.skeleton-arc-3 {
    width: 90%;
    height: 36px;
    border-radius: 36px;
}

/* Sidebar placeholder */
.skeleton-sidebar {
    width: 380px;
    background: #ffffff;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.skeleton-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.skeleton-text {
    border-radius: 4px;
}

.skeleton-listings {
    flex: 1;
    padding: 16px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-listing {
    height: 68px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Skeleton: stack vertically on tablet/mobile */
    .skeleton-body {
        flex-direction: column;
    }

    .skeleton-map {
        min-height: 220px;
        max-height: 40vh;
        padding: 16px;
    }

    .skeleton-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        flex: 1;
    }

    .skeleton-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 16px;
    }

    .skeleton-header-left {
        gap: 12px;
    }

    .skeleton-event-info h2 {
        max-width: none;
        font-size: 0.9rem;
    }

    .skeleton-progress-wrap {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .container {
        margin: 16px;
        padding: 28px 20px;
    }

    /* Don't vertically center the form on mobile — start near top */
    .page-home #form-container {
        margin: 16px;
    }

    .brand-lockup {
        gap: 10px;
    }

    .brand-icon {
        width: 48px;
        height: 32px;
    }

    .brand-icon svg {
        width: 48px;
        height: 32px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-tagline {
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .platform-badges {
        gap: 6px;
    }

    .badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .trust-bar {
        gap: 16px;
    }

    .trust-bar span {
        font-size: 0.7rem;
    }

    #events-section {
        padding: 16px;
    }

    .events-header {
        margin-bottom: 16px;
    }

    .event-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .event-info {
        flex: 1;
        min-width: 0;
    }

    .event-artist {
        font-size: 1rem;
    }

    .event-venue,
    .event-location {
        font-size: 0.82rem;
    }

    .event-meta {
        align-items: flex-end;
        min-width: 90px;
    }

    .event-price {
        padding: 5px 10px;
        font-size: 0.82rem;
    }

    .event-date {
        text-align: right;
        min-width: auto;
    }

    .date-main {
        font-size: 0.88rem;
    }

    .date-time {
        font-size: 0.78rem;
    }

    /* Results header - wrap buttons on mobile */
    .results-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
    }

    /* Skeleton header mobile safe area */
    .skeleton-header {
        padding: 12px 16px;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
    }

    .results-header button,
    .results-header .csv-btn {
        min-height: 44px;
        flex: 1;
        min-width: 100px;
    }

    #results-summary {
        width: 100%;
        text-align: center;
        order: -1;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    }

    /* Touch-friendly button sizing */
    button[type="submit"],
    #error-section button {
        min-height: 48px;
    }

    /* Prevent iOS zoom on input focus (needs 16px minimum) */
    .form-group input {
        min-height: 48px;
        font-size: 16px;
    }

    /* Events header */
    .events-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .events-header button {
        min-height: 44px;
    }

    #events-count {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   SITE NAVIGATION (Option C: Navbar + Footer)
   ============================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 2px 20px rgba(44, 62, 80, 0.04);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-brand-icon {
    width: 36px;
    height: 24px;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-brand-tagline {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
    background: rgba(224, 123, 57, 0.08);
}

.nav-links a.active {
    color: var(--accent-primary);
    background: rgba(224, 123, 57, 0.1);
    font-weight: 600;
}

/* ============================================
   BODY ADJUSTMENTS FOR NAVBAR + FOOTER
   ============================================ */

body {
    flex-direction: column;
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
}

.page-home #form-container {
    margin: auto;
}

/* ============================================
   SITE FOOTER
   ============================================ */

.site-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(44, 62, 80, 0.06);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
    background: rgba(224, 123, 57, 0.08);
}

.footer-dot {
    color: var(--text-muted);
    font-size: 0.5rem;
    opacity: 0.5;
}

.footer-copy {
    font-family: var(--font-main);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================
   INFO PAGES (About, How it Works, Contact)
   ============================================ */

.info-page {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    animation: fadeInUp 0.6s ease-out;
}

.info-hero {
    text-align: center;
    margin-bottom: 48px;
}

.info-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.info-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card), 0 12px 40px rgba(44, 62, 80, 0.08);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 123, 57, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.info-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.info-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   STEP CARDS (How it Works)
   ============================================ */

.steps-grid {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-card {
    flex: 1;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 12px 40px rgba(44, 62, 80, 0.08);
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: var(--glow-accent);
}

.step-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    flex-shrink: 0;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-connector svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    opacity: 0.4;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-grid .info-card:first-child {
    grid-column: 1 / -1;
}

.contact-link {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(224, 123, 57, 0.1);
    box-shadow: var(--glow-accent);
}

/* ============================================
   LEGAL PAGES (Terms, Privacy)
   ============================================ */

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: var(--shadow-card);
}

.legal-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 18px 0 10px;
}

.legal-section p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.legal-section li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

.legal-section a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section strong {
    color: var(--text-primary);
}

@media (max-width: 520px) {
    .legal-content {
        padding: 20px 16px;
    }

    .legal-section h2 {
        font-size: 1.05rem;
    }
}

/* ============================================
   RESPONSIVE - NAV, FOOTER, INFO PAGES
   ============================================ */

@media (max-width: 520px) {
    .site-nav {
        padding: 10px 12px;
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
        gap: 4px;
    }

    body {
        padding-top: calc(52px + env(safe-area-inset-top, 0px));
    }

    .nav-brand {
        gap: 6px;
    }

    .nav-brand-icon {
        width: 28px;
        height: 18px;
    }

    .nav-brand-name {
        font-size: 0.9rem;
    }

    .nav-brand-tagline {
        display: none;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        padding: 8px 8px;
        font-size: 0.72rem;
        white-space: nowrap;
        min-height: 36px;
        display: flex;
        align-items: center;
    }

    .nav-links .nav-auth-btn {
        padding: 8px 10px;
        font-size: 0.72rem;
        min-height: 36px;
        display: flex;
        align-items: center;
    }

    /* Hide duplicate brand lockup in form card — navbar already shows it */
    .brand-lockup {
        display: none;
    }

    /* Reduce background effects for mobile performance */
    .floating-elements {
        display: none;
    }

    .site-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 20px 16px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .info-hero h1 {
        font-size: 1.6rem;
    }

    .info-page {
        padding: 24px 16px 40px;
    }

    .steps-grid {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
        width: auto;
        height: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   AUTH & PROFILE STYLES
   ============================================ */

/* Nav Auth */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 8px;
    position: relative;
}

.nav-auth-btn {
    background: var(--accent-gradient);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: box-shadow 0.2s;
}

.nav-auth-btn:hover {
    box-shadow: var(--glow-accent);
}

.nav-user-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.nav-user-btn:hover {
    border-color: var(--accent-primary);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
}

.nav-dropdown a,
.nav-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s;
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
    background: var(--bg-secondary);
}

.nav-dropdown button {
    color: var(--error);
    border-top: 1px solid var(--border-subtle);
}

/* Auth Page */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 60px 20px;
}

.auth-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.auth-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-subtle);
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.auth-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(224, 123, 57, 0.1);
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s;
    margin-top: 8px;
}

.auth-submit:hover {
    box-shadow: var(--glow-accent);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-error {
    background: rgba(192, 57, 43, 0.08);
    color: var(--error);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 12px;
}

.auth-success {
    background: rgba(39, 174, 96, 0.08);
    color: var(--success);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 12px;
}

/* Profile Page */
.profile-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-loading {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.profile-unauth {
    text-align: center;
    padding: 60px 0;
}

.profile-unauth h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-unauth p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 1.3rem;
    margin: 0 0 2px;
    color: var(--text-primary);
}

.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-subtle);
    margin-bottom: 24px;
}

.profile-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.profile-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.profile-tab-content {
    min-height: 200px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.btn-primary:hover { box-shadow: var(--glow-accent); }

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.btn-secondary:hover { border-color: var(--accent-primary); }

.btn-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.15s;
}

.btn-delete:hover { color: var(--error); }

/* Alert Form & Cards */
.alert-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.alert-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.alert-form .form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.alert-form .form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.9rem;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.alert-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.alert-price {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* History */
.history-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.history-query {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
}

.history-query:hover {
    color: var(--accent-primary);
}

/* Utilities */
.text-muted { color: var(--text-muted); font-size: 0.85rem; }
.empty-state { color: var(--text-muted); text-align: center; padding: 32px 0; }
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile responsive for auth/profile */
@media (max-width: 600px) {
    .auth-container { padding: 24px; }
    .profile-header { flex-wrap: wrap; }
    .alert-form .form-row { grid-template-columns: 1fr; }
    .history-item { flex-direction: column; gap: 4px; }
}


/* ============================================
   EMAIL CAPTURE POPUP
   ============================================ */

.email-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 62, 80, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.email-popup-overlay.hidden {
    display: none !important;
}

.email-popup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    animation: popupSlideUp 0.35s ease;
}

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

@keyframes popupSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.email-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}

.email-popup-close:hover {
    color: var(--text-primary);
}

.email-popup-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    line-height: 1;
}

.email-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.email-popup-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 24px;
    line-height: 1.5;
}

.email-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-popup-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    background: var(--bg-input, #fff);
    color: var(--text-primary);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.email-popup-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(224, 123, 57, 0.1);
}

.email-popup-btn {
    width: 100%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.email-popup-btn:hover {
    box-shadow: var(--glow-accent);
}

.email-popup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.email-popup-msg {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
}

.email-popup-msg.hidden {
    display: none !important;
}

.email-popup-msg--success {
    background: rgba(39, 174, 96, 0.08);
    color: var(--success);
}

.email-popup-msg--error {
    background: rgba(192, 57, 43, 0.08);
    color: var(--error);
}

@media (max-width: 480px) {
    .email-popup-card {
        padding: 28px 20px;
    }
}


/* ============================================
   SEO LANDING PAGES
   ============================================ */

.seo-page-wide {
    max-width: 1080px;
}

/* Artist Grid (Hub Page) */
.seo-artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.seo-artist-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seo-artist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.1);
    border-color: rgba(224, 123, 57, 0.3);
}

.seo-artist-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.seo-artist-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.seo-artist-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Search CTA Banner */
.seo-search-cta {
    text-align: center;
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(224, 123, 57, 0.06);
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(224, 123, 57, 0.15);
}

.seo-search-cta p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.seo-cta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--accent-gradient, linear-gradient(135deg, #e07b39 0%, #c96a2d 100%));
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm, 8px);
    font-weight: 600;
    font-size: 0.95rem;
    transition: box-shadow 0.2s;
}

.seo-cta-btn:hover {
    box-shadow: 0 4px 20px rgba(224, 123, 57, 0.35);
}

/* City Filters */
.seo-city-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.seo-city-filters > span:first-child {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.seo-city-filters .badge {
    text-decoration: none;
    cursor: pointer;
}

/* Event Cards */
.seo-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.seo-event-card.info-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seo-event-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.seo-event-date-block {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    padding: 8px;
    background: var(--accent-gradient, linear-gradient(135deg, #e07b39 0%, #c96a2d 100%));
    border-radius: var(--radius-sm, 8px);
    color: #fff;
}

.seo-event-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.seo-event-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.seo-event-info h2 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.seo-event-location,
.seo-event-date-full {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.seo-event-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.seo-price-range {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.seo-price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.seo-price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary, #e07b39);
}

.seo-price-to {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.seo-platforms {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.seo-compare-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent-gradient, linear-gradient(135deg, #e07b39 0%, #c96a2d 100%));
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm, 8px);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: box-shadow 0.2s;
    align-self: flex-start;
}

.seo-compare-btn:hover {
    box-shadow: 0 4px 20px rgba(224, 123, 57, 0.35);
}

/* Breadcrumb */
.seo-breadcrumb {
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.seo-breadcrumb a {
    color: var(--accent-primary, #e07b39);
    text-decoration: none;
}

.seo-breadcrumb a:hover {
    text-decoration: underline;
}

/* Intro text */
.seo-intro-text {
    margin-bottom: 24px;
    line-height: 1.7;
    color: var(--text-secondary, #6b6b6b);
    font-size: 0.95rem;
    max-width: 800px;
}

.seo-intro-text p {
    margin: 0;
}

/* Content sections (tips, FAQ) */
.seo-content-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
    max-width: 800px;
}

.seo-content-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary, #2c3e50);
}

/* Tips list */
.seo-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-tips-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    line-height: 1.6;
    color: var(--text-secondary, #6b6b6b);
    font-size: 0.9rem;
}

.seo-tips-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-primary, #e07b39);
    font-weight: 600;
}

/* FAQ section */
.seo-faq-section {
    margin-bottom: 40px;
}

.seo-faq-item {
    border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
    padding: 0;
}

.seo-faq-item summary {
    padding: 14px 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary, #2c3e50);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.seo-faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted, #999);
    flex-shrink: 0;
}

.seo-faq-item[open] summary::after {
    content: "\2212";
}

.seo-faq-item summary::-webkit-details-marker {
    display: none;
}

.seo-faq-item p {
    padding: 0 0 16px 0;
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary, #6b6b6b);
    font-size: 0.9rem;
}

/* Empty state */
.seo-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.seo-empty-state p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .seo-artist-grid {
        grid-template-columns: 1fr;
    }

    .seo-event-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .seo-event-header {
        gap: 12px;
    }
}
