@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-base: #0B0F19;
    --bg-card: rgba(22, 31, 48, 0.85);
    --bg-input: rgba(30, 41, 59, 0.6);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-focus: #2563EB;
    --primary: #2563EB;
    --secondary: #4F46E5;
    --primary-grad: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
    --accent: #10B981;
    --accent-grad: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --warning: #F59E0B;
    --error: #EF4444;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --header-bg: rgba(11, 15, 25, 0.85);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* Light Theme Overrides (System Preference & Manual Data Attribute) */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg-base: #F8FAFC;
        --bg-card: #FFFFFF;
        --bg-input: #F1F5F9;
        --border-card: #E2E8F0;
        --border-focus: #2563EB;
        --primary: #2563EB;
        --secondary: #4F46E5;
        --primary-grad: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
        --accent: #059669;
        --accent-grad: linear-gradient(135deg, #059669 0%, #047857 100%);
        --text-main: #0F172A;
        --text-muted: #64748B;
        --header-bg: rgba(255, 255, 255, 0.92);
        --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    }
}

[data-theme="light"] {
    --bg-base: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-input: #F1F5F9;
    --border-card: #E2E8F0;
    --border-focus: #2563EB;
    --primary: #2563EB;
    --secondary: #4F46E5;
    --primary-grad: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    --accent: #059669;
    --accent-grad: linear-gradient(135deg, #059669 0%, #047857 100%);
    --text-main: #0F172A;
    --text-muted: #64748B;
    --header-bg: rgba(255, 255, 255, 0.92);
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] {
    --bg-base: #0B0F19;
    --bg-card: rgba(22, 31, 48, 0.85);
    --bg-input: rgba(30, 41, 59, 0.6);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-focus: #2563EB;
    --primary: #2563EB;
    --secondary: #4F46E5;
    --primary-grad: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
    --accent: #10B981;
    --accent-grad: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --warning: #F59E0B;
    --error: #EF4444;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --header-bg: rgba(11, 15, 25, 0.85);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* StubHub Top Notice Bar */
.top-notice-bar {
    background: #0F172A;
    color: #E2E8F0;
    text-align: center;
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .top-notice-bar {
    background: #0F172A;
    color: #F8FAFC;
}

/* StubHub Style Horizontal Cards & Widgets */
.social-proof-banner {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.stubhub-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stubhub-item {
    display: grid;
    grid-template-columns: 85px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stubhub-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.18);
}

.stubhub-date-box {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 0.6rem 0.4rem;
    text-align: center;
    line-height: 1.1;
}

.stubhub-date-month {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: lowercase;
}

.stubhub-date-day {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-outfit);
    margin: 0.1rem 0;
}

.stubhub-date-dayname {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
}

.demand-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-stubhub {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-stubhub:hover {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-inter);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Glassmorphism & Card Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid var(--border-card);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-outfit);
    font-weight: 800;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--primary);
    -webkit-text-fill-color: var(--primary);
    margin-left: 0.5rem;
    font-family: var(--font-inter);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-outfit);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-grad);
    color: #070913;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: var(--accent-grad);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero h1 span {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

/* Search Bar Home */
.search-container {
    max-width: 650px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 50px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 1.5rem;
    color: var(--text-main);
    font-size: 1rem;
}

.search-btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Ticket Grid */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.ticket-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ticket-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 15px 35px -5px rgba(0, 242, 254, 0.08);
}

.ticket-header {
    padding: 1.5rem;
    border-bottom: 1px dashed var(--border-card);
}

.ticket-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.badge-verified {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-sold {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.step-card {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border-color: rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.step-card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-outfit);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.step-badge {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.seller-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.buyer-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.step-arrow-mobile {
    display: none;
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.5;
}

/* Animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.1)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.5)); }
}

.step-float-1 { animation: float1 4s ease-in-out infinite; }
.step-float-2 { animation: float2 3.5s ease-in-out infinite; }
.step-pulse { animation: pulse-glow 3s ease-in-out infinite; }

.ticket-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ticket-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-card);
    padding-top: 1rem;
}

.ticket-price {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Auth Cards */
.auth-wrapper {
    max-width: 450px;
    margin: 4rem auto;
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2.2rem;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-inter);
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Dashboards */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.dashboard-sidebar {
    padding: 2rem;
    height: fit-content;
}

.sidebar-profile {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-card);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-outfit);
    font-weight: 700;
    color: #070913;
    margin: 0 auto 1rem;
}

.profile-role {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: 0.25rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-menu-item a:hover, .sidebar-menu-item.active a {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu-item.active a {
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

/* Stats panel */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
}

.stat-val {
    font-size: 2rem;
    font-family: var(--font-outfit);
    font-weight: 800;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Table layout */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-card);
}

th {
    font-family: var(--font-outfit);
    color: var(--text-muted);
    font-weight: 600;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Alerts and feedback messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Ticket Details Screen */
.detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.detail-main {
    padding: 2.5rem;
}

.detail-aside {
    padding: 2.5rem;
    height: fit-content;
}

.detail-event-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guarantee-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.guarantee-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Footer styling */
footer {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

/* Footer grid responsive */
.footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

/* Partner logos — dark theme: show at natural contrast */
.partner-logo {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1 !important;
    transform: scale(1.07);
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.35)) !important;
}

/* Light mode: darken the partner logos so currentColor text renders dark */
[data-theme="light"] .partner-logo {
    filter: grayscale(1) brightness(0.25) !important;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .partner-logo {
        filter: grayscale(1) brightness(0.25) !important;
    }
}

/* ============================================================
   RESPONSIVE SYSTEM — Multi-breakpoint
   Breakpoints: 1024px | 768px | 480px
   ============================================================ */

@media (max-width: 900px) {
    .hero-2col-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* --- 1024px: Tablet landscape --- */
@media (max-width: 1024px) {
    main {
        padding: 2rem 1.5rem;
    }

    .nav-container {
        padding: 0.9rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

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

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Table: enable horizontal scroll on medium screens */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }

    table {
        min-width: 700px;
    }

    th, td {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* --- 768px: Tablet portrait --- */
@media (max-width: 768px) {
    /* Footer: stack to single column on mobile */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Nav: hide full links, show hamburger */
    .nav-container {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-links li span {
        display: none; /* Hide "Hola, Name" on mobile */
    }

    /* Hero */
    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Search */
    .search-box {
        flex-direction: column;
        border-radius: 16px;
        gap: 0.5rem;
    }

    .search-input {
        padding: 0.75rem 1rem;
    }

    .search-btn {
        border-radius: 10px;
        width: 100%;
    }

    /* Ticket grid: 1 column on mobile */
    .ticket-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

}

/* --- 1024px: Tablet Landscape / Small Desktop --- */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-sidebar {
        padding: 1.25rem;
    }

    .sidebar-profile {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .profile-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        margin: 0;
        flex-shrink: 0;
    }
}

/* --- 768px: Tablet / Mobile Landscape --- */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-arrow-mobile {
        display: block;
    }

    /* Sidebar menu: horizontal scroll row */
    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .sidebar-menu-item a {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        border-radius: 20px;
        border: 1px solid var(--border-card);
    }

    .sidebar-menu-item.active a {
        border-left: none;
        border-color: var(--primary);
        background: rgba(0, 242, 254, 0.08);
    }

    /* Stats: 2 columns on tablet, 1 on mobile */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-val {
        font-size: 1.6rem;
    }

    /* Detail page: stack */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-main,
    .detail-aside {
        padding: 1.5rem;
    }

    .detail-event-title {
        font-size: 1.8rem;
    }

    /* Auth card */
    .auth-wrapper {
        margin: 2rem auto;
        padding: 1.75rem 1.25rem;
    }

    .auth-header h2 {
        font-size: 1.8rem;
    }

    /* Table */
    table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.7rem 0.85rem;
    }

    /* Admin dashboard: simplify 2-col grids in payment proofs */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 1fr auto"] {
        grid-template-columns: 1fr !important;
    }

    /* Ticket detail buy aside: make it sticky bottom bar on mobile */
    .buy-ticket-form button {
        font-size: 1rem;
    }
}

/* --- 480px: Mobile portrait --- */
@media (max-width: 480px) {
    main {
        padding: 1.5rem 1rem;
    }

    .nav-container {
        padding: 0.7rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo span {
        display: none; /* Hide "GARANTIZADO" tag on tiny screens */
    }

    /* Hide nav link text — show only icons */
    .nav-links {
        gap: 0.4rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

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

    .hero p {
        font-size: 0.9rem;
    }

    /* Full-width stats: 1 column */
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-val {
        font-size: 1.4rem;
    }

    /* Form controls: larger touch targets */
    .form-control,
    .form-control select,
    .form-control textarea {
        padding: 0.9rem;
        font-size: 1rem;
    }

    /* Buttons full-width in forms */
    .auth-wrapper .btn,
    .buy-ticket-form .btn {
        width: 100%;
    }

    /* Section title: stack on mobile */
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 1.4rem;
    }

    .glass {
        border-radius: 12px;
    }

    /* Admin payment proof cards: hide 2-col grid */
    .table-container {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }

    th, td {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }

    /* dashboard sidebar: compact horizontal */
    .dashboard-sidebar {
        padding: 1rem;
    }

    .sidebar-menu-item a {
        font-size: 0.78rem;
        padding: 0.4rem 0.7rem;
    }

    .profile-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ============================================================
   PRINT: clean output without nav/sidebar
   ============================================================ */
@media print {
    header, footer, .dashboard-sidebar, .btn { display: none !important; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .glass { border: 1px solid #ccc; box-shadow: none; }
}

/* Custom responsive stack layout for ticket cards */
@media (max-width: 600px) {
    .btn-stack-mobile {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    .btn-stack-mobile form {
        width: 100% !important;
    }
}

/* ============================================================
   VIAGOGO & STUBHUB STYLE HIGH-END UI & MICRO-ANIMATIONS
   ============================================================ */

/* Keyframe Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Header Navbar Styling */
.viagogo-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.viagogo-menu-toggle {
    display: none !important;
}

.viagogo-drawer {
    display: block !important;
}

/* Mobile Header & Responsive Drawer */
@media (max-width: 768px) {
    .viagogo-menu-toggle {
        display: flex !important;
    }

    .viagogo-drawer {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--bg-card) !important;
        border-bottom: 1px solid var(--border-card) !important;
        padding: 1.25rem !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
    }

    .viagogo-drawer.active {
        display: block !important;
        animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .viagogo-drawer .nav-links {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: stretch !important;
    }

    .viagogo-drawer .nav-link {
        padding: 0.85rem 1.15rem !important;
        background: rgba(255,255,255,0.03) !important;
        border-radius: 12px !important;
        border: 1px solid var(--border-card) !important;
        display: block !important;
        font-weight: 600 !important;
    }

    .hero-2col-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .hero-featured-card img {
        height: 190px !important;
    }
}

/* Filter bar collapsible behavior */
.viagogo-filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .viagogo-filter-bar {
        display: none !important;
    }
    .viagogo-filter-bar.active-filter {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        background: var(--bg-card);
        padding: 1.25rem;
        border-radius: 18px;
        border: 1px solid var(--border-card);
        animation: slideDown 0.25s ease;
    }
    .viagogo-filter-bar select, .viagogo-filter-bar input {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* High-End Viagogo Event Cards */
.viagogo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 1.15rem 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    animation: slideUpFade 0.4s ease backwards;
    overflow: hidden;
}

.viagogo-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 12px 30px -5px rgba(37,99,235,0.22);
}

/* Viagogo Date Box (Left High-Contrast Badge) */
.viagogo-date-badge {
    width: 76px;
    min-width: 76px;
    height: 78px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(16,185,129,0.35);
    text-align: center;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.viagogo-date-top {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.4rem 0.2rem;
    letter-spacing: 0.03em;
}

.viagogo-date-bottom {
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.2rem;
    text-transform: lowercase;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges Micro-Animations & Glows */
.viagogo-badge-price {
    background: rgba(16,185,129,0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16,185,129,0.3) !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: 20px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    transition: transform 0.2s ease;
}

.viagogo-badge-status {
    background: rgba(245,158,11,0.15) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245,158,11,0.3) !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: 20px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    animation: pulseGlow 3s infinite ease-in-out;
}

/* Interactive Buttons Micro-Animations */
.btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease !important;
}

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

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

