/* =================================================================
   GoldenPass Ticketing — Public Sales Platform
   Premium dark theme CSS
   ================================================================= */

/* ===== CSS Custom Properties ===== */
:root {
    /* Brand */
    --gp-gold: #F59E0B;
    --gp-gold-hover: #D97706;
    --gp-gold-light: #FCD34D;
    --gp-gold-soft: rgba(245, 158, 11, 0.12);
    --gp-gold-glow: rgba(245, 158, 11, 0.35);

    /* Backgrounds */
    --bg-body: #0c0a18;
    --bg-surface: #13111f;
    --bg-card: rgba(19, 17, 31, 0.72);
    --bg-card-solid: #16142a;
    --bg-elevated: #1a1830;
    --bg-input: rgba(26, 24, 48, 0.8);
    --bg-hover: rgba(245, 158, 11, 0.06);

    /* Footer */
    --footer-bg: #510C76;
    --footer-bg-dark: #3a0856;

    /* Text */
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1B5;
    --text-muted: #6B6B80;
    --text-inverse: #0c0a18;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --border-gold: rgba(245, 158, 11, 0.4);

    /* Status */
    --color-success: #22C55E;
    --color-success-soft: rgba(34, 197, 94, 0.12);
    --color-error: #EF4444;
    --color-error-soft: rgba(239, 68, 68, 0.12);
    --color-warning: #F59E0B;
    --color-warning-soft: rgba(245, 158, 11, 0.12);
    --color-info: #3B82F6;
    --color-info-soft: rgba(59, 130, 246, 0.12);

    /* Glassmorphism */
    --glass-bg: rgba(19, 17, 31, 0.65);
    --glass-blur: 20px;
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
    --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.3);
    --shadow-gold-lg: 0 8px 32px rgba(245, 158, 11, 0.4);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --header-height: 72px;
    --container-max: 1280px;
    --container-wide: 1440px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}


/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gp-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--gp-gold-light);
}

::selection {
    background: rgba(245, 158, 11, 0.3);
    color: var(--text-primary);
}


/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #2a2845; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d3a5c; }


/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 0.95rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-secondary); }
small { font-size: 0.8125rem; }
strong { font-weight: 600; }


/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-content {
    flex: 1;
    padding-top: var(--header-height);
}

.section {
    padding: 4rem 0;
}
.section-sm {
    padding: 2rem 0;
}


/* ===== Grid & Flex Utilities ===== */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }


/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}
.site-header.scrolled {
    background: rgba(12, 10, 24, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 40px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header-nav a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}
.header-nav a:hover,
.header-nav a.active {
    color: var(--text-primary);
}
.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gp-gold);
    border-radius: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gp-gold-soft);
    color: var(--gp-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}
.hamburger svg {
    width: 24px;
    height: 24px;
}
.hamburger:hover {
    background: var(--bg-hover);
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(12, 10, 24, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    flex-direction: column;
    padding: 2rem 1.5rem;
    animation: fadeIn 0.2s ease;
}
.mobile-nav.open {
    display: flex;
}
.mobile-nav a {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: color var(--transition-fast);
}
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--gp-gold);
}


/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 1rem;
}
.footer-brand img {
    height: 36px;
    object-fit: contain;
    opacity: 0.9;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-links a:hover {
    color: rgba(255, 255, 255, 0.95);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.footer-social a:hover {
    background: var(--gp-gold);
    color: var(--text-inverse);
    transform: translateY(-2px);
}
.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
    text-align: center;
}
.footer-bottom p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
    margin: 0;
}


/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}
.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Primary (Gold) */
.btn-primary {
    background: linear-gradient(135deg, var(--gp-gold) 0%, var(--gp-gold-hover) 100%);
    color: var(--text-inverse);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold-lg);
}
.btn-primary:active {
    transform: translateY(0);
}

/* Secondary */
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}
.btn-secondary:hover {
    background: #221f3a;
    border-color: var(--border-strong);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--gp-gold);
    border: 1.5px solid var(--gp-gold);
}
.btn-outline:hover {
    background: var(--gp-gold-soft);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Danger */
.btn-danger {
    background: linear-gradient(135deg, var(--color-error) 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
}

/* Sizes */
.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}
.btn-sm svg { width: 15px; height: 15px; }

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
}

.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Icon-only button */
.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-md);
}
.btn-icon.btn-sm { padding: 0.375rem; }


/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gp-gold);
    box-shadow: 0 0 0 3px var(--gp-gold-soft);
}

.form-input.is-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px var(--color-error-soft);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23A1A1B5' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--color-error);
    margin-top: 0.375rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gp-gold);
    cursor: pointer;
}

/* Autofill dark override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-card-solid) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
    border-color: var(--border-default);
}


/* ===== Cards ===== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

.card-solid {
    background: var(--bg-card-solid);
    backdrop-filter: none;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-heading);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* Clickable card */
.card-link {
    cursor: pointer;
}
.card-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

/* Event card */
.event-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.event-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.event-card:hover .event-card-image {
    transform: scale(1.05);
}
.event-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(12, 10, 24, 0.9) 100%);
}
.event-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}
.event-card-date {
    font-size: 0.8125rem;
    color: var(--gp-gold);
    font-weight: 600;
    margin-bottom: 0.375rem;
}
.event-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.event-card-venue {
    font-size: 0.875rem;
    color: var(--text-secondary);
}


/* ===== Badge / Tag ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.4;
}
.badge-gold {
    background: var(--gp-gold-soft);
    color: var(--gp-gold);
}
.badge-success {
    background: var(--color-success-soft);
    color: var(--color-success);
}
.badge-error {
    background: var(--color-error-soft);
    color: var(--color-error);
}
.badge-info {
    background: var(--color-info-soft);
    color: var(--color-info);
}
.badge-warning {
    background: var(--color-warning-soft);
    color: var(--color-warning);
}
.badge-neutral {
    background: rgba(161, 161, 181, 0.12);
    color: var(--text-secondary);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
}
.tag:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}
.tag.selected {
    background: var(--gp-gold-soft);
    border-color: var(--border-gold);
    color: var(--gp-gold);
}


/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.25s ease;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1.5rem 1.5rem 0;
}

.modal-body {
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
}


/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    padding-top: calc(var(--header-height) + 0.75rem);
    width: 100%;
    max-width: 500px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-size: 0.9375rem;
    font-weight: 600;
    min-width: 280px;
    max-width: 460px;
    pointer-events: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
    animation: toastDropIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    letter-spacing: -0.01em;
    line-height: 1.4;
}
.toast.removing {
    animation: toastSlideOut 0.35s ease forwards;
}
.toast svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.toast-success {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86EFAC;
}
.toast-error {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
}
.toast-info {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93C5FD;
}
.toast-warning {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--gp-gold-light);
}


/* ===== Loading States ===== */

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--border-default);
    border-top-color: var(--gp-gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 10, 24, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-elevated) 25%,
        rgba(42, 40, 69, 0.5) 50%,
        var(--bg-elevated) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}
.skeleton-text {
    height: 1em;
    margin-bottom: 0.5rem;
    width: 100%;
}
.skeleton-text:last-child { width: 60%; }
.skeleton-title { height: 1.5em; width: 40%; margin-bottom: 1rem; }
.skeleton-image { aspect-ratio: 16 / 9; width: 100%; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: var(--radius-full); }
.skeleton-btn { height: 44px; width: 120px; }

/* Progress bar */
.progress-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gp-gold) 0%, var(--gp-gold-light) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}


/* ===== Stepper (Checkout Flow) ===== */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.5rem 0;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 0;
}

.stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    border: 2px solid var(--border-default);
    background: var(--bg-surface);
    color: var(--text-muted);
    flex-shrink: 0;
}

.stepper-step.active .stepper-circle {
    background: var(--gp-gold);
    border-color: var(--gp-gold);
    color: var(--text-inverse);
    box-shadow: var(--shadow-gold);
}

.stepper-step.completed .stepper-circle {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.stepper-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
    white-space: nowrap;
}
.stepper-step.active .stepper-label { color: var(--text-primary); }
.stepper-step.completed .stepper-label { color: var(--color-success); }

.stepper-line {
    width: 60px;
    height: 2px;
    background: var(--border-default);
    margin: 0 0.5rem;
    flex-shrink: 0;
    transition: background var(--transition-base);
}
.stepper-line.completed {
    background: var(--color-success);
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ===== Data Table ===== */
.data-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.data-table thead th {
    background: var(--bg-elevated);
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-default);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}
.data-table tbody tr:hover {
    background: var(--bg-hover);
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}


/* ===== Alert / Notification Boxes ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid transparent;
}
.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.alert-success {
    background: var(--color-success-soft);
    border-color: rgba(34, 197, 94, 0.2);
    color: #86EFAC;
}
.alert-error {
    background: var(--color-error-soft);
    border-color: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}
.alert-warning {
    background: var(--color-warning-soft);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--gp-gold-light);
}
.alert-info {
    background: var(--color-info-soft);
    border-color: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
}


/* ===== Ticket Card ===== */
.ticket-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color var(--transition-fast);
}
.ticket-card:hover {
    border-color: var(--border-gold);
}
.ticket-card-color {
    width: 4px;
    height: 48px;
    border-radius: 2px;
    flex-shrink: 0;
}
.ticket-card-info {
    flex: 1;
    min-width: 0;
}
.ticket-card-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticket-card-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.ticket-card-price {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gp-gold);
    flex-shrink: 0;
}
.ticket-card-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.ticket-card-qty button {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    background: var(--bg-elevated);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}
.ticket-card-qty button:hover {
    border-color: var(--gp-gold);
    color: var(--gp-gold);
}
.ticket-card-qty span {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}


/* ===== Seat Grid ===== */
.seat-grid {
    display: inline-grid;
    gap: 4px;
    padding: 1.5rem;
}

.seat {
    width: 28px;
    height: 28px;
    border-radius: 6px 6px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.seat-available {
    background: var(--bg-elevated);
    border-color: var(--border-default);
    color: var(--text-muted);
}
.seat-available:hover {
    background: var(--gp-gold-soft);
    border-color: var(--gp-gold);
    color: var(--gp-gold);
    transform: scale(1.15);
}

.seat-selected {
    background: var(--gp-gold);
    border-color: var(--gp-gold);
    color: var(--text-inverse);
    box-shadow: 0 0 8px var(--gp-gold-glow);
}

.seat-sold {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.2);
    color: rgba(239, 68, 68, 0.5);
    cursor: not-allowed;
}

.seat-holdeo {
    background: var(--bg-surface);
    border-color: var(--border-subtle);
    cursor: not-allowed;
    opacity: 0.3;
}

.seat-legend {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.seat-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.seat-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}


/* ===== Event Map Overlay ===== */
.map-container {
    position: relative;
    display: inline-block;
}
.map-container img {
    display: block;
    max-width: 100%;
}

.map-polygon {
    position: absolute;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    opacity: 0.45;
}
.map-polygon:hover {
    opacity: 0.75;
}
.map-polygon.selected {
    opacity: 0.7;
    filter: brightness(1.2);
}
.map-polygon.sold-out {
    opacity: 0.2;
    cursor: not-allowed;
    filter: grayscale(1);
}

.map-tooltip {
    position: absolute;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    animation: fadeIn 0.15s ease;
}
.map-tooltip-title {
    font-weight: 600;
    color: var(--text-primary);
}
.map-tooltip-price {
    color: var(--gp-gold);
    font-weight: 700;
    margin-top: 0.25rem;
}
.map-tooltip-stock {
    color: var(--text-muted);
    font-size: 0.8125rem;
}


/* ===== Payment Platform Cards ===== */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.payment-card {
    background: var(--bg-card-solid);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}
.payment-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-elevated);
}
.payment-card.selected {
    border-color: var(--gp-gold);
    background: var(--gp-gold-soft);
    box-shadow: 0 0 0 1px var(--gp-gold);
}
.payment-card-logo {
    height: 40px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
    filter: brightness(0.95);
}
.payment-card-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}
.payment-card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}


/* ===== Login Layout ===== */
.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.login-bg {
    position: absolute;
    inset: 0;
    background: url('/images/bg-login.jpg') center/cover no-repeat;
    filter: brightness(0.25) blur(3px);
    z-index: 0;
}
.login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 10, 24, 0.7) 0%, rgba(81, 12, 118, 0.3) 100%);
}

.login-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 1rem;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.login-logo {
    display: block;
    margin: 0 auto 2rem;
    height: 48px;
    object-fit: contain;
}


/* ===== Responsive Breakpoints ===== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stepper-line { width: 40px; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container, .container-wide { padding: 0 1rem; }

    .header-nav { display: none; }
    .hamburger { display: flex; }

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }

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

    .stepper { gap: 0; flex-wrap: wrap; justify-content: center; }
    .stepper-line { width: 24px; }
    .stepper-label { font-size: 0.75rem; }

    .payment-options { grid-template-columns: 1fr 1fr; }

    .modal-card {
        border-radius: var(--radius-lg);
        margin: 0.5rem;
    }

    .seat { width: 24px; height: 24px; font-size: 0.5rem; }
    .seat-grid { gap: 3px; padding: 1rem; }
}

@media (max-width: 480px) {
    .payment-options { grid-template-columns: 1fr; }
    .ticket-card { flex-wrap: wrap; }
    .ticket-card-price { order: -1; width: 100%; margin-bottom: 0.25rem; }
    .stepper-circle { width: 32px; height: 32px; font-size: 0.8125rem; }
    .stepper-line { width: 16px; }
}


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

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

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

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastDropIn {
    0% { opacity: 0; transform: translateY(-40px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastSlideOut {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-30px) scale(0.95); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Animation utility classes */
.animate-fadeIn { animation: fadeIn 0.4s ease; }
.animate-slideUp { animation: slideUp 0.4s ease; }
.animate-slideDown { animation: slideDown 0.4s ease; }
.animate-scaleIn { animation: scaleIn 0.3s ease; }
.animate-pulse { animation: pulse 2s ease infinite; }
.animate-bounce { animation: bounce 1s ease infinite; }


/* ===== Utility Classes ===== */

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-gold { color: var(--gp-gold) !important; }
.text-success { color: var(--color-success) !important; }
.text-error { color: var(--color-error) !important; }
.text-sm { font-size: 0.8125rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.font-heading { font-family: var(--font-heading); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Margin */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mt-8 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.5rem; }
.p-6 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Display & Visibility */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Border */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--border-default); }
.border-b { border-bottom: 1px solid var(--border-subtle); }

/* Divider */
.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 1.5rem 0;
    border: none;
}

/* Cursor */
.pointer { cursor: pointer; }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }


/* ===== Focus & Accessibility ===== */
:focus-visible {
    outline: 2px solid var(--gp-gold);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid var(--gp-gold);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--gp-gold-soft);
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}


/* ===== Print Styles ===== */
@media print {
    .site-header,
    .site-footer,
    .toast-container,
    .hamburger,
    .mobile-nav,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: #111 !important;
        font-size: 12pt;
    }

    .page-content {
        padding-top: 0 !important;
    }

    .card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        page-break-inside: avoid;
    }

    .ticket-print {
        page-break-after: always;
        border: 2px solid #111;
        padding: 2rem;
    }
    .ticket-print-header {
        display: flex;
        justify-content: space-between;
        border-bottom: 2px solid #111;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .ticket-print-qr {
        width: 120px;
        height: 120px;
    }
    .ticket-print-details dt {
        font-weight: 700;
        color: #333;
    }
    .ticket-print-details dd {
        margin-bottom: 0.5rem;
        color: #111;
    }

    a { color: #111 !important; text-decoration: underline; }
    h1, h2, h3, h4, h5, h6 { color: #111 !important; }
    p { color: #333 !important; }
}


/* ===== Blazor Reconnect UI Override ===== */
#components-reconnect-modal {
    z-index: 9999;
}
