/* Skynet Wales - Dark Gaming Theme */

/* ============================================
   Bootstrap Dark Theme Overrides
   ============================================ */

:root,
[data-bs-theme="dark"] {
    --bs-body-color: #ffffff;
    --bs-body-bg: rgb(26, 26, 26);
    --bs-secondary-color: #b0b0b0;
    --bs-tertiary-color: #999;
    --bs-link-color: #03a9f4;
    --bs-link-hover-color: #4fc3f7;
    --bs-border-color: #333;
    --bg-deep: #111;
    --bg-primary: #1a1a1a;
    --bg-surface: #1e1e1e;
    color-scheme: dark;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    background: rgb(26, 26, 26);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 12px 24px;
    background: #03a9f4;
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    left: 0;
    color: #fff;
}

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

a {
    color: #03a9f4;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4fc3f7;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 3.375rem; }
h2 { font-size: 2.625rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #b0b0b0;
}

/* ============================================
   Layout
   ============================================ */

.container {
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
    padding: 0 5%;
}

.section {
    padding: 90px 0;
}

.section-dark {
    background: #1a1a1a;
}

.section-darker {
    background: var(--bg-deep);
}

.cms-container {
    max-width: 1232px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #ffffff;
    margin-bottom: 15px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #999;
}

.section-header .accent-line {
    width: 60px;
    height: 3px;
    background: #03a9f4;
    margin: 15px auto 0;
}

/* Grid */

.grid {
    display: grid;
    gap: 30px;
}

.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-center {
    align-items: center;
    justify-content: center;
}

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

.text-center { text-align: center; }
.text-muted { color: #999; }

/* ============================================
   Navigation
   ============================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    /* Just enough dark wash to keep the nav buttons readable on bright hero
       images. Smooth taper inside the nav's own height — no big fade
       extension below. .scrolled takes over with a solid blurred background. */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0) 100%);
    transition: background 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}

.site-nav.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* "Collect in person" notice. Two variants:
   - .shop-collect-band : full-bleed strip below the hero on /shop and category.
   - .shop-collect-notice : in-container rounded notice for cart and checkout.
   Both share the blue accent so the messaging reads as one voice. */
.shop-collect-band {
    background: rgba(3, 169, 244, 0.07);
    border-top: 1px solid rgba(3, 169, 244, 0.22);
    border-bottom: 1px solid rgba(3, 169, 244, 0.22);
    padding: 10px 0;
}

.shop-collect-band .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.shop-collect-band i {
    color: #03a9f4;
    flex-shrink: 0;
    font-size: 1rem;
}

.shop-collect-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(3, 169, 244, 0.06);
    border: 1px solid rgba(3, 169, 244, 0.25);
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.shop-collect-notice > i {
    color: #03a9f4;
    flex-shrink: 0;
    font-size: 1rem;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.nav-logo:hover {
    color: #ffffff;
}

.nav-logo img {
    max-height: 70px;
    width: auto;
}

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

.nav-links a {
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #03a9f4;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #03a9f4;
    transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    padding-right: 14px;
}

.nav-dropdown-toggle::before {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7em;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav-dropdown-menu.dropdown-menu {
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    min-width: 200px;
    margin-top: 10px;
}

.nav-dropdown-menu .dropdown-item {
    padding: 8px 20px;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu .dropdown-item::after {
    display: none;
}

.nav-dropdown-menu .dropdown-item:hover,
.nav-dropdown-menu .dropdown-item.active {
    background: #03a9f4;
    color: #ffffff;
}

/* Hamburger */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Offcanvas Mobile Nav
   ============================================ */

.offcanvas {
    background: var(--bg-deep);
    max-width: 300px;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.offcanvas-header .nav-logo img {
    max-height: 50px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
}

.mobile-nav-links a {
    display: block;
    padding: 10px 15px;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: #03a9f4;
    background: rgba(3, 169, 244, 0.1);
}

/* ============================================
   Bootstrap Toast Overrides
   ============================================ */

.toast-wrapper + .toast-wrapper {
    margin-top: 8px;
}

.notification-toast {
    background: #242424;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

.notification-toast .toast-header {
    background: #2a2a2a;
    color: #ffffff;
    border-bottom: 1px solid #333;
}

.notification-toast .toast-body {
    color: #b0b0b0;
}

.notification-toast.toast-success .toast-header { border-left: 4px solid #00bf87; }
.notification-toast.toast-error .toast-header { border-left: 4px solid #e53935; }
.notification-toast.toast-warning .toast-header { border-left: 4px solid #f79007; }
.notification-toast.toast-info .toast-header { border-left: 4px solid #03a9f4; }

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: rgb(26, 26, 26);
    padding: 200px 0;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
}

.slideshow-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slideshow-image.active {
    opacity: 1 !important;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-label {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(3, 169, 244, 0.15);
    border: 1px solid rgba(3, 169, 244, 0.3);
    border-radius: 50px;
    color: #03a9f4;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 35px;
    font-weight: 300;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Hero (smaller, for inner pages) */

.page-hero {
    position: relative;
    padding: 160px 0 90px;
    text-align: center;
    background: rgb(26, 26, 26);
}

.page-hero-image {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-image .container {
    position: relative;
    z-index: 2;
}

.page-hero-image h1,
.page-hero-image p {
    /* Layer two shadows for a tight halo around each glyph plus a softer
       backdrop drop, so headings hold their edges over busy hero photos. */
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(0, 0, 0, 0.65);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    /* Vignette: strongest at the centre where the headline sits, softer at
       the edges so the image character isn't completely flattened. */
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.55) 100%),
        rgba(26, 26, 26, 0.4);
    z-index: 1;
}

.page-hero-video {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-video .container {
    position: relative;
    z-index: 2;
}

.page-hero-video h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.1rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 56px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #03a9f4;
    color: #ffffff;
    border-color: #03a9f4;
}

.btn-primary:hover {
    background: rgb(2, 110, 159);
    border-color: rgb(2, 110, 159);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.btn-accent {
    background: #f79007;
    color: #ffffff;
    border-color: #f79007;
}

.btn-accent:hover {
    background: #e07f00;
    border-color: #e07f00;
    color: #ffffff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: rgb(26, 26, 26);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 1px 3px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 2px 6px 3px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #242424;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.card-body p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #999;
}

.card-meta time {
    color: #03a9f4;
}

.card-read-more {
    display: inline-block;
    margin-top: 10px;
    color: #03a9f4;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: lowercase;
    transition: color 0.2s ease;
}

.card-read-more:hover {
    color: #4fc3f7;
}

/* Feature Cards */

.feature-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(3, 169, 244, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-card p {
    color: #999;
    font-size: 0.9rem;
}

/* ============================================
   Forms
   ============================================ */

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: #242424;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    color: #ffffff;
    transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #03a9f4;
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.25);
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    padding: 12px 30px;
    background: #03a9f4;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

button[type="submit"]:hover {
    background: #0288d1;
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auth Form Container */

.auth-container {
    max-width: 440px;
    margin: 120px auto 60px;
    padding: 40px;
    background: #1a1a1a;
    border-radius: 8px;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-container .form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background-color: #5865F2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
}

.btn-discord:hover {
    background-color: #4752C4;
    color: #fff;
    text-decoration: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #444;
}

.auth-divider span {
    padding: 0 15px;
    color: #888;
    font-size: 14px;
}

.discord-linked {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #2a2a2a;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.95rem;
}

.discord-linked .discord-tag {
    color: #5865F2;
    font-weight: 600;
}

.btn-discord-lg {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
}

.auth-hint {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 0;
}

.btn-toggle-email {
    display: block;
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid #444;
    border-radius: 6px;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-toggle-email:hover {
    border-color: #888;
    color: #ddd;
}

.email-auth-section {
    display: none;
}

.email-auth-section.visible {
    display: block;
}

.identity-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #2a2a2a;
    border-radius: 8px;
}

.identity-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #5865F2;
}

.identity-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.identity-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.identity-discord {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5865F2;
    font-size: 0.85rem;
}

/* Contact Form */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FAQ Accordion (Bootstrap Dark Overrides)
   ============================================ */

.accordion {
    --bs-accordion-bg: #1a1a1a;
    --bs-accordion-border-color: #333;
    --bs-accordion-btn-color: #ffffff;
    --bs-accordion-btn-bg: #1a1a1a;
    --bs-accordion-active-bg: #242424;
    --bs-accordion-active-color: #03a9f4;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-body-padding-x: 25px;
    --bs-accordion-body-padding-y: 20px;
}

.accordion-separated {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-separated .accordion-item {
    border-radius: 8px !important;
    overflow: hidden;
    border: 1px solid #333 !important;
    background: rgba(255,255,255,0.02);
}

.accordion-separated .accordion-item:hover {
    border-color: #444;
}

.accordion-button {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    padding: 18px 25px;
}

.accordion-button:not(.collapsed) {
    border-bottom: 1px solid #333;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:not(.collapsed)::after {
    filter: invert(48%) sepia(85%) saturate(2000%) hue-rotate(175deg) brightness(100%) contrast(97%);
}

.accordion-body {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.accordion-body ul {
    list-style: disc;
    padding-left: 20px;
}

.accordion-body ul li {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

/* ============================================
   Gallery
   ============================================ */

.gallery-grid {
    position: relative;
    width: 100%;
}

.gallery-item {
    position: absolute;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #222;
    transition: opacity 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    color: #ffffff;
    font-size: 0.85rem;
}

.gallery-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    padding: 8px 20px;
    background: #242424;
    border: 1px solid #333;
    border-radius: 50px;
    color: #b0b0b0;
    font-size: 0.85rem;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: #03a9f4;
    border-color: #03a9f4;
    color: #ffffff;
}

/* ============================================
   Lightbox (Bootstrap Modal)
   ============================================ */

#lightboxModal .modal-content {
    background: transparent;
}

#lightboxImage {
    max-height: 80vh;
    width: auto;
    margin: 0 auto;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.lightbox-close {
    z-index: 1;
}

.toast-container {
    z-index: 9999;
}

/* ============================================
   Sponsors
   ============================================ */

.sponsor-tier {
    margin-bottom: 50px;
}

.sponsor-tier h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.sponsor-tier h3.gold { color: #f7c948; }
.sponsor-tier h3.silver { color: #a0aec0; }
.sponsor-tier h3.bronze { color: #c97c3a; }

.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.sponsor-logo {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 25px 35px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sponsor-logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.2s ease;
}

.sponsor-logo:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Sponsor Strip (home page) */

.sponsor-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.sponsor-strip img {
    max-height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.sponsor-strip img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* ============================================
   News
   ============================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.news-single {
    max-width: 800px;
    margin: 0 auto;
}

.news-single-header {
    margin-bottom: 30px;
}

.news-single-header h1 {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.news-single-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 0.9rem;
}

.news-single-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-single-content {
    color: #b0b0b0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.news-single-content p {
    margin-bottom: 1.25rem;
    color: #b0b0b0;
}

.news-single-content h2,
.news-single-content h3 {
    color: #ffffff;
    margin-top: 2rem;
}

/* News Article (WordPress-style) */

.news-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-article-section {
    background: #1a1a1a;
    padding: 60px 0 90px;
}

.news-article {
    max-width: 900px;
    margin: 0 auto;
}

.news-article-byline {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.news-article-byline a {
    color: #999;
    text-decoration: none;
}

.news-article-byline a:hover {
    color: #03a9f4;
}

.news-article-content {
    color: #d0d0d0;
    font-size: 1.05rem;
    line-height: 1.85;
}

.news-article-content p {
    margin-bottom: 1.5rem;
    color: #d0d0d0;
}

.news-article-content h2,
.news-article-content h3 {
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.news-article-content blockquote {
    border-left: 3px solid #03a9f4;
    padding: 10px 20px;
    margin: 1.5rem 0;
    color: #999;
    font-style: italic;
}

.news-article-content a {
    color: #03a9f4;
}

.news-article-content .btn {
    display: inline-block;
    margin: 20px 0;
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 40px;
}

.news-article-taxonomy {
    margin-top: 40px;
    color: #999;
    font-size: 0.9rem;
}

.news-taxonomy-row {
    margin-bottom: 4px;
}

.news-taxonomy-label {
    color: #ffffff;
    font-weight: 600;
}

.news-taxonomy-row a {
    color: #999;
    text-decoration: none;
}

.news-taxonomy-row a:hover {
    color: #03a9f4;
}

.news-post-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
}

.news-post-nav-link {
    text-decoration: none;
    color: #b0b0b0;
    font-size: 0.95rem;
    display: block;
}

.news-post-nav-link:hover {
    color: #03a9f4;
}

.news-post-nav-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.news-post-nav-next {
    text-align: right;
}

@media (max-width: 768px) {
    .news-hero { height: 300px; }
    .news-article-section { padding: 30px 0 60px; }
    .news-post-nav { flex-direction: column; gap: 16px; }
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-about p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #999;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #03a9f4;
}

.footer-contact p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #999;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #03a9f4;
}

/* ============================================
   Notification Toast
   ============================================ */



/* ============================================
   About / Content Pages
   ============================================ */

.content-block {
    width: 100%;
}

.content-block p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.content-block h2 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content-block h3 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-block ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1.25rem;
}

.content-block ul li {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Info Grid (venue, about features) */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.info-item {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
}

.info-item h4 {
    color: #ffffff;
    margin-bottom: 8px;
}

.info-item p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* Map Container */

.map-container {
    border-radius: 8px;
    overflow: hidden;
    margin: 40px 0;
    background: #1a1a1a;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   Privacy / Legal
   ============================================ */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   Error Page
   ============================================ */

.error-page {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-page h1 {
    font-size: 6rem;
    color: #03a9f4;
    margin-bottom: 10px;
}

.error-page p {
    font-size: 1.1rem;
    max-width: 400px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 60px 0; }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-dropdown-menu.dropdown-menu {
        display: none;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    h1 { font-size: 2.25em; }
    h2 { font-size: 1.875em; }
    h3 { font-size: 1.5em; }
    h4 { font-size: 1.125rem; }

    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }

    .page-hero { padding: 120px 0 60px; }
    .page-hero h1 { font-size: 2rem; }

    .section { padding: 30px 0; }

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

    .nav-logo img {
        max-height: 50px;
    }

    .nav-inner {
        padding: 0 15px;
    }

    .btn-sm {
        padding: 10px 20px;
        min-height: 44px;
    }

    .mobile-nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .shop-category-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.875em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.25em; }

    .hero h1 { font-size: 1.75rem; }
    .container { padding: 0 15px; }
    .btn { padding: 10px 24px; }
    .auth-container { margin: 100px 15px 40px; padding: 25px; }

    .nav-logo img {
        max-height: 40px;
    }

}

/* ============================================
   Admin Panel
   ============================================ */

/* Compact page-hero for admin pages - detected by admin-layout in the next section */
body:has(.admin-layout) .page-hero {
    padding: 100px 0 15px;
    text-align: left;
}

body:has(.admin-layout) .page-hero h1 {
    font-size: 1.3rem;
}

body:has(.admin-layout) .page-hero p {
    font-size: 0.85rem;
    color: #999;
    margin: 2px 0 0;
    max-width: none;
}

body:has(.admin-layout) .section {
    padding: 30px 0;
}

.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
        "toggle  toggle"
        "sidebar subnav"
        "sidebar content";
    column-gap: 30px;
    row-gap: 0;
    min-height: 60vh;
}

/* Admin button resets: the site's public .btn is a big chunky pill with
   uppercase and 56px radius for homepage CTAs. Inside the admin those
   defaults fight Bootstrap's .btn-sm and cause icons to wrap above text
   in tight toolbars. Scope tighter sizing under .admin-layout so admin
   buttons read as regular UI controls without touching the public site. */
.admin-layout .btn {
    padding: 8px 16px;
    border-radius: 6px;
    border-width: 1px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: 0.88rem;
    line-height: 1.35;
}

.admin-layout .btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.admin-layout .btn-lg {
    padding: 10px 22px;
    font-size: 0.95rem;
}

/* Keep "<icon> Label" on one line even when a flex toolbar is tight. The
   search input inside .admin-toolbar-right was expanding enough to squeeze
   sibling buttons below their content width, which caused the icon and
   label to stack on separate lines. inline-flex fixes the layout of the
   button content; flex-shrink: 0 protects the button from being shrunk by
   a greedy search input neighbour. */
.admin-layout .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Admin form controls: the site-wide input[type="text"] rule at style.css:796
   sets padding: 12px 16px; which makes every search box and select in admin
   toolbars visibly taller than the buttons beside them. Match that selector's
   specificity under .admin-layout to tighten inputs to button-sized controls
   so toolbar rows align cleanly. */
.admin-layout input[type="text"],
.admin-layout input[type="email"],
.admin-layout input[type="password"],
.admin-layout input[type="tel"],
.admin-layout input[type="number"],
.admin-layout input[type="url"],
.admin-layout input[type="date"],
.admin-layout input[type="datetime-local"],
.admin-layout select,
.admin-layout textarea {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.admin-layout .form-control-sm,
.admin-layout .form-select-sm,
.admin-layout input.form-control-sm,
.admin-layout select.form-select-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.admin-layout textarea,
.admin-layout textarea.form-control {
    padding: 10px 12px;
}

/* Admin form controls in flex toolbars should be the ones that shrink,
   not the buttons and selects next to them. */
.admin-toolbar .form-control,
.admin-toolbar .form-select {
    min-width: 0;
}

.admin-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: sticky;
    top: 90px;
    align-self: start;
}

.admin-subnav-host {
    grid-area: subnav;
    min-height: 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-section {
    display: flex;
    flex-direction: column;
}

.admin-nav-section + .admin-nav-section {
    margin-top: 8px;
}

.admin-nav-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 4px;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #666;
    transition: color 0.2s, background 0.2s;
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.admin-nav-section-label:hover {
    color: #b0b0b0;
}

.admin-nav-section.active .admin-nav-section-label {
    color: #03a9f4;
}

.admin-nav-section-label i {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

.admin-nav-section-text {
    flex: 1;
}

.admin-nav-section-chevron {
    font-size: 0.6rem !important;
    width: auto !important;
    opacity: 0.6;
    transition: transform 0.2s;
}

.admin-nav-section.expanded .admin-nav-section-chevron,
.admin-nav-section.active .admin-nav-section-chevron {
    transform: rotate(180deg);
}

.admin-nav-section-items {
    display: none;
    flex-direction: column;
    gap: 1px;
    padding: 2px 0 6px;
}

.admin-nav-section.expanded .admin-nav-section-items,
.admin-nav-section.active .admin-nav-section-items {
    display: flex;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.admin-nav-link.active {
    background: rgba(3, 169, 244, 0.15);
    color: #03a9f4;
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
}

.admin-nav-section-items .admin-nav-link {
    padding: 6px 12px 6px 32px;
    font-size: 0.88rem;
}

.admin-nav-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-drawer-toggle {
    grid-area: toggle;
    display: none;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 16px;
}

.admin-drawer-toggle:hover {
    border-color: #03a9f4;
    color: #fff;
}

.admin-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1040;
}

.admin-drawer-backdrop.admin-drawer-open {
    display: block;
}

.admin-drawer-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #b0b0b0;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-drawer-close:hover,
.admin-drawer-close:focus-visible {
    color: #fff;
    border-color: #03a9f4;
    background: rgba(3, 169, 244, 0.08);
    outline: none;
}

body.admin-drawer-active {
    overflow: hidden;
    touch-action: none;
}

.admin-version-label {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: #999;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.admin-version-label:hover {
    color: #999;
}

.changelog-entry {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
}

.changelog-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.changelog-version {
    margin-bottom: 15px;
}

.changelog-version h3 {
    margin-bottom: 2px;
    display: inline;
    margin-right: 8px;
}

.changelog-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    font-weight: 600;
    margin-right: 8px;
}

.changelog-tag-latest {
    background: #22c55e;
    color: #000;
}

.changelog-body h6 {
    margin-top: 18px;
    margin-bottom: 8px;
    color: #ccc;
}

.changelog-body ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.changelog-body li {
    margin-bottom: 4px;
    color: #aaa;
}

.admin-content {
    grid-area: content;
    min-width: 0;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-toolbar-right {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.admin-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #b0b0b0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-filter-pill:hover {
    border-color: #03a9f4;
    color: #fff;
}

.admin-filter-pill.active {
    background: #03a9f4;
    border-color: #03a9f4;
    color: #fff;
}

.admin-search-input {
    max-width: 240px;
}

.admin-search-input-wide {
    max-width: 360px;
}

.admin-filter-select {
    max-width: 180px;
}

/* Admin page header: breadcrumb, title, subtitle, right-side actions */
.admin-breadcrumb {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-breadcrumb-link {
    color: #888;
    text-decoration: none;
}

.admin-breadcrumb-link:hover {
    color: #03a9f4;
}

.admin-breadcrumb-sep {
    color: #555;
}

.admin-breadcrumb-current {
    color: #b0b0b0;
}

.admin-page-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-page-header-text {
    min-width: 0;
}

.admin-page-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Admin sub-navigation: underlined tabs at the top of the content area */
.admin-subnav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.admin-subnav-item {
    padding: 10px 16px;
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}

.admin-subnav-item:hover {
    color: #e0e0e0;
}

.admin-subnav-item.active {
    color: #03a9f4;
    border-bottom-color: #03a9f4;
}

.admin-subnav-item i {
    margin-right: 6px;
    opacity: 0.8;
}

/* Admin empty state: single pattern for "nothing here yet" panels */
.admin-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed #2a2a2a;
    border-radius: 10px;
}

.admin-empty-state-icon {
    font-size: 2.2rem;
    color: #555;
    margin-bottom: 12px;
}

.admin-empty-state-title {
    color: #e0e0e0;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.admin-empty-state-body {
    color: #888;
    font-size: 0.9rem;
    max-width: 420px;
    margin: 0 auto 16px;
}

.admin-empty-state-cta {
    margin-top: 4px;
}

/* Clickable admin table rows: the whole row goes to the detail view */
.admin-table tbody tr.admin-table-row-clickable {
    cursor: pointer;
}

.admin-table tbody tr.admin-table-row-clickable:hover {
    background: rgba(3, 169, 244, 0.04);
}

.admin-table-row-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.admin-table-row-link:hover {
    color: #03a9f4;
}

/* LAN event workspace: boxed pill tabs + meta row for external actions */
.lan-workspace-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.lan-workspace-meta {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.lan-workspace-meta-link {
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
}

.lan-workspace-meta-link:hover {
    color: #03a9f4;
}

.lan-workspace-meta-link i {
    margin-right: 4px;
    font-size: 0.75rem;
}

/* Admin form sections: stronger visual grouping than .content-block alone */
.admin-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.admin-section-header {
    padding: 14px 18px;
    border-bottom: 1px solid #2a2a2a;
    background: rgba(255, 255, 255, 0.02);
}

.admin-section-header h5 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-section-header h5 i {
    color: #03a9f4;
    font-size: 0.85rem;
}

.admin-section-header p {
    margin: 0;
    font-size: 0.82rem;
    color: #888;
}

.admin-section-body {
    padding: 18px;
}

/* Split header: title/description on the left, action buttons on the right */
.admin-section-header-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-section-header-split > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-section-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.admin-section-header-actions .form-check-label {
    color: #b0b0b0;
}

/* Key / value list for sidebar detail cards (account info, etc.) */
.admin-detail-list {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 6px;
    margin: 0;
    font-size: 0.85rem;
}

.admin-detail-list dt {
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

.admin-detail-list dd {
    color: #e0e0e0;
    margin: 0;
    word-break: break-word;
}

.lan-workspace-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.lan-workspace-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.lan-workspace-tab.active {
    background: rgba(3, 169, 244, 0.15);
    color: #03a9f4;
}

.lan-workspace-tab i {
    font-size: 0.85rem;
    opacity: 0.85;
}

@media (max-width: 600px) {
    .lan-workspace-tabs {
        flex-direction: column;
    }
    .lan-workspace-tab {
        justify-content: flex-start;
    }
}

/* Check-In launcher: list of events to open the scanner for */
.checkin-launcher-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.checkin-launcher-heading:first-child {
    margin-top: 0;
}

.checkin-launcher-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkin-launcher-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}

.checkin-launcher-card:hover {
    border-color: #3a3a3a;
    background: rgba(255, 255, 255, 0.04);
}

.checkin-launcher-card-today {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.05);
}

.checkin-launcher-card-today:hover {
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(76, 175, 80, 0.07);
}

.checkin-launcher-card-info {
    flex: 1;
    min-width: 0;
}

.checkin-launcher-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 4px 0 6px;
}

.checkin-launcher-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: #999;
}

.checkin-launcher-card-meta i {
    margin-right: 4px;
    opacity: 0.7;
}

.checkin-launcher-card-actions {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .checkin-launcher-card {
        flex-direction: column;
        align-items: stretch;
    }
    .checkin-launcher-card-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.order-note {
    border-left: 2px solid #333;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.order-note-time {
    font-size: 12px;
    color: #999;
}

.order-note p {
    margin: 4px 0 0;
    color: #b0b0b0;
}

.admin-table-wrap {
    overflow: visible;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #333;
    font-size: 0.85rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table th[data-sort-key] {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.admin-table th[data-sort-key]:hover {
    color: #fff;
}

.admin-table th[data-sort-key]::after {
    content: '\f0dc';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.7rem;
    opacity: 0.3;
}

.admin-table th[data-sort-key].sort-asc::after {
    content: '\f0de';
    opacity: 1;
}

.admin-table th[data-sort-key].sort-desc::after {
    content: '\f0dd';
    opacity: 1;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table code {
    font-size: 0.85rem;
    color: #b0b0b0;
}

.admin-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.admin-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-badge-success,
.admin-badge-published,
.admin-badge-completed,
.admin-badge-active {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.admin-badge-warning,
.admin-badge-draft,
.admin-badge-inactive,
.admin-badge-pending {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.admin-badge-info,
.admin-badge-processing {
    background: rgba(3, 169, 244, 0.15);
    color: #03a9f4;
}

.admin-badge-danger,
.admin-badge-cancelled,
.admin-badge-out_of_stock {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.admin-badge-accent,
.admin-badge-refunded {
    background: rgba(156, 39, 176, 0.15);
    color: #ce93d8;
}

.admin-badge-muted,
.admin-badge-archived {
    background: rgba(255, 255, 255, 0.08);
    color: #9ea3a8;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.admin-stat-card:hover {
    border-color: #03a9f4;
    background: rgba(3, 169, 244, 0.05);
    color: inherit;
}

.admin-stat-icon {
    font-size: 1.5rem;
    color: #03a9f4;
}

.admin-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-stat-label {
    display: block;
    font-size: 0.8rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.admin-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-form .form-control,
.admin-form .form-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
    color: #ffffff;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #03a9f4;
    box-shadow: 0 0 0 0.2rem rgba(3, 169, 244, 0.15);
    color: #ffffff;
}

/* Admin Media Library */

.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

/* Media tile: whole-tile button, thumbnail on top, caption below.
   No inline action buttons; a click opens the detail modal. */
.admin-media-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.admin-media-tile:hover,
.admin-media-tile:focus-visible {
    border-color: #03a9f4;
    background: rgba(3, 169, 244, 0.05);
    outline: none;
}

.admin-media-tile img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.admin-media-tile .admin-media-file-icon {
    height: 140px;
}

.admin-media-tile-caption {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-media-tile-name {
    font-size: 0.82rem;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-media-tile-size {
    font-size: 0.72rem;
    color: #888;
}

/* Selection checkbox overlay on each tile. Visible on hover, permanent once
   the item is part of the current selection. */
.admin-media-tile {
    position: relative;
}

.admin-media-tile-check {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.12s, background 0.12s, color 0.12s;
    cursor: pointer;
}

.admin-media-tile:hover .admin-media-tile-check,
.admin-media-tile:focus-within .admin-media-tile-check {
    opacity: 1;
}

.admin-media-tile.is-selected {
    border-color: #03a9f4;
    background: rgba(3, 169, 244, 0.12);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.35);
}

.admin-media-tile.is-selected .admin-media-tile-check {
    opacity: 1;
    background: #03a9f4;
    border-color: #03a9f4;
    color: #fff;
}

/* Selection action bar. Hidden by default; shown while selection is non-empty. */
.admin-media-selectbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid #03a9f4;
    border-radius: 8px;
    background: rgba(3, 169, 244, 0.08);
}

.admin-media-selectbar[hidden] {
    display: none;
}

.admin-media-selectbar-count {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 500;
}

.admin-media-selectbar-count i {
    color: #03a9f4;
    margin-right: 6px;
}

.admin-media-detail-preview img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
}

.admin-media-detail-fileicon {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.admin-media-item {
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s;
}

.admin-media-item:hover {
    border-color: #03a9f4;
}

.admin-media-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.admin-media-file-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
}

.admin-media-info {
    padding: 8px 10px;
}

.admin-media-name {
    display: block;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.admin-media-actions {
    display: flex;
    gap: 2px;
}

.admin-media-actions .btn {
    padding: 2px 6px;
    font-size: 0.7rem;
}

.admin-media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #b0b0b0;
}

/* Admin Navigation Editor */

.admin-nav-items-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 6px;
}

.admin-nav-item-handle {
    color: #999;
    cursor: grab;
}

.admin-nav-item-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-nav-item-content .text-muted {
    color: #999;
    font-size: 0.85rem;
}

.admin-nav-item-actions {
    display: flex;
    gap: 4px;
}

/* GrapesJS Fullscreen Editor */

.page-editor-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgb(26, 26, 26);
    display: flex;
    flex-direction: column;
}

.page-editor-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-deep);
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.page-editor-fields {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.page-editor-fields .form-control,
.page-editor-fields .form-select {
    font-size: 0.85rem;
}

.page-editor-fields .form-control:focus,
.page-editor-fields .form-select:focus {
    box-shadow: none;
}

.page-editor-fields .input-group-text {
    color: #999;
    font-size: 0.85rem;
}

.page-editor-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.page-editor-fullscreen #gjs {
    flex: 1;
    overflow: hidden;
}

.btn-danger {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
    color: #ffffff;
}

/* Modal dark theme overrides */

.modal-content {
    background: #222;
    border-color: #333;
    color: #ffffff;
}

.modal-header {
    border-bottom-color: #333;
}

.modal-footer {
    border-top-color: #333;
}

.admin-form .input-group-text,
.modal-content .input-group-text {
    background: rgba(255, 255, 255, 0.03);
    border-color: #333;
    color: #b0b0b0;
}

.modal-content .form-control,
.modal-content .form-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
    color: #ffffff;
}

.modal-content .form-control:focus,
.modal-content .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #03a9f4;
    box-shadow: 0 0 0 0.2rem rgba(3, 169, 244, 0.15);
    color: #ffffff;
}

.modal-content .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b0b0b0;
}

.modal-content .form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #555;
}

.modal-content .form-check-input:checked {
    background-color: #03a9f4;
    border-color: #03a9f4;
}

/* LAN Check-In */

.checkin-page .admin-layout {
    display: block;
}

.checkin-page .admin-sidebar {
    display: none;
}

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

.checkin-header h2 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.checkin-stats {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 20px;
}

.checkin-stats::-webkit-scrollbar {
    display: none;
}

.checkin-stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #333;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
}

.checkin-stat-badge i {
    font-size: 0.9rem;
    color: #03a9f4;
}

.checkin-stat-badge .stat-count {
    font-weight: 700;
    font-size: 1rem;
}

.checkin-stat-badge .stat-label {
    font-size: 0.8rem;
    color: #888;
}

.checkin-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.checkin-scanner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.checkin-scanner {
    width: 100%;
    max-width: 520px;
    min-height: 360px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-deep);
    border: 2px solid #333;
}

.checkin-scanner-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.checkin-scanner-status {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.checkin-connection-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    animation: checkinSlideUp 0.25s ease-out;
}

.checkin-connection-banner--offline {
    background: #2e1515;
    border: 1px solid #f44336;
    color: #f44336;
}

.checkin-connection-banner--syncing {
    background: #1a2e1a;
    border: 1px solid #4caf50;
    color: #4caf50;
}

.checkin-queue-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.checkin-result {
    padding: 16px;
    border-radius: 10px;
    border: 2px solid transparent;
    margin-bottom: 16px;
    animation: checkinSlideUp 0.25s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkin-result--success {
    background: #1a2e1a;
    border-color: #4caf50;
    color: #4caf50;
}

.checkin-result--warning {
    background: #2e2510;
    border-color: #ff9800;
    color: #ff9800;
}

.checkin-result--error {
    background: #2e1515;
    border-color: #f44336;
    color: #f44336;
}

.checkin-result i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.checkin-result-body {
    flex: 1;
    min-width: 0;
}

.checkin-result-name {
    font-weight: 700;
    font-size: 1rem;
}

.checkin-result-detail {
    font-size: 0.85rem;
    opacity: 0.8;
}

.checkin-result-items {
    margin-top: 12px;
    padding: 12px 14px;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #e0e0e0;
}

.checkin-result-items__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 10px;
}

.checkin-result-items__head i {
    color: #03a9f4;
}

.checkin-result-items__pending {
    margin-left: auto;
    font-size: 11px;
    color: #ffb74d;
    background: rgba(255, 183, 77, 0.15);
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.checkin-result-items__pending--done {
    color: #66bb6a;
    background: rgba(102, 187, 106, 0.15);
}

.checkin-result-items__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkin-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.checkin-result-item:last-child {
    border-bottom: none;
}

.checkin-result-item__qty {
    font-weight: 700;
    color: #03a9f4;
    min-width: 32px;
}

.checkin-result-item__name {
    flex: 1;
    min-width: 0;
    color: #e0e0e0;
}

.checkin-result-item__name small {
    color: #999;
    margin-left: 6px;
    font-size: 12px;
}

.checkin-result-item.is-done .checkin-result-item__name,
.checkin-result-item.is-done .checkin-result-item__qty {
    text-decoration: line-through;
    color: #777;
}

.checkin-result-item.is-done .checkin-result-item__qty {
    color: #777;
}

.checkin-result-item .js-checkin-item-toggle {
    flex-shrink: 0;
}

.checkin-result-item .btn-link.js-checkin-item-toggle {
    color: #66bb6a;
    text-decoration: none;
    padding: 4px 10px;
}

.checkin-result-item .btn-link.js-checkin-item-toggle:hover {
    color: #ffb74d;
    text-decoration: underline;
}

.checkin-result-items__dismiss {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #03a9f4;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
}

.checkin-result-items__dismiss:hover {
    color: #29b6f6;
    text-decoration: underline;
}

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

.checkin-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ccc;
}

.checkin-search-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.checkin-search-input:focus {
    outline: none;
    border-color: #03a9f4;
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.15);
}

.checkin-search-input::placeholder {
    color: #999;
}

.checkin-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.checkin-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.checkin-list-item:last-child {
    border-bottom: none;
}

.checkin-list-item-info {
    flex: 1;
    min-width: 0;
}

.checkin-list-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.checkin-list-item-meta {
    font-size: 0.78rem;
    color: #888;
}

.checkin-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.checkin-badge--ticket {
    background: rgba(3, 169, 244, 0.15);
    color: #03a9f4;
}

.checkin-badge--spectator {
    background: rgba(156, 39, 176, 0.15);
    color: #ce93d8;
}

.checkin-badge--done {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.checkin-empty {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .checkin-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkin-result-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }

    .checkin-scanner {
        max-width: 100%;
    }

    .checkin-list-item .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Media Browser */

.media-browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.media-browser-item {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.15s;
}

.media-browser-item:hover { border-color: #444; }
.media-browser-item.selected { border-color: #03a9f4; }

.media-browser-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.media-browser-item .file-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.media-browser-item-name {
    padding: 4px 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #999;
}

@media (max-width: 992px) {
    .admin-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        grid-template-areas:
            "toggle"
            "subnav"
            "content";
    }

    .admin-drawer-toggle {
        display: inline-flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        max-width: 88vw;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        background: #0e0e0e;
        border-right: 1px solid #2a2a2a;
        padding: 56px 20px 24px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1050;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .admin-sidebar.admin-drawer-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    .admin-drawer-close {
        display: inline-flex;
    }

    /* The footer (Settings, version, Back to Site) pins to the drawer's
       bottom so the chrome stays stable as nav sections expand and collapse;
       the nav itself absorbs the slack and scrolls if it needs to. */
    .admin-sidebar > .admin-nav {
        flex: 1 1 auto;
    }

    .admin-sidebar > .admin-nav-footer {
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid #1c1c1c;
    }

    .admin-nav-section-items .admin-nav-link {
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px;
    }

    .admin-toolbar {
        gap: 8px;
    }

    .admin-toolbar .form-control {
        max-width: 100% !important;
    }

    .admin-toolbar-right {
        margin-left: 0;
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-toolbar-right .form-control,
    .admin-toolbar-right .form-select {
        max-width: 100% !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    .admin-quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .admin-quick-actions .btn {
        width: 100%;
    }

    .admin-table-cards {
        min-width: 0;
    }

    .admin-table-cards thead {
        display: none;
    }

    .admin-table-cards,
    .admin-table-cards tbody,
    .admin-table-cards tr,
    .admin-table-cards td {
        display: block;
    }

    .admin-table-cards tr {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid #333;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
    }

    .admin-table-cards td {
        border-bottom: none;
        padding: 3px 0;
    }

    .admin-table-cards td[data-label]::before {
        content: attr(data-label);
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #999;
        min-width: 80px;
        margin-right: 10px;
    }

    .admin-table-cards td:first-child {
        font-weight: 600;
        color: #fff;
        margin-bottom: 4px;
    }

    .admin-table-cards .admin-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 10px;
    }

    .admin-table-cards .admin-actions .btn-sm {
        flex: 1;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-nav-item {
        flex-wrap: wrap;
    }

    .admin-nav-item-content {
        flex: 1 1 100%;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 8px;
    }

    .admin-nav-item-actions {
        flex: 1 1 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 8px;
    }

    .admin-nav-item-actions .btn-sm {
        flex: 1;
    }

    .admin-nav-children {
        margin-left: 15px !important;
    }

    .layout-editor-mobile-notice {
        display: block !important;
    }

    .layout-editor-mobile-notice ~ .admin-toolbar,
    .layout-editor-mobile-notice ~ .layout-toolbar,
    .layout-editor-mobile-notice ~ .layout-legend,
    .layout-editor-mobile-notice ~ .layout-grid-wrap,
    .layout-editor-mobile-notice ~ .content-block,
    .layout-editor-mobile-notice ~ div:not(.layout-editor-mobile-notice) {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .admin-stat-card {
        padding: 12px;
        gap: 10px;
    }

    .admin-stat-icon {
        font-size: 1.1rem;
    }

    .admin-stat-number {
        font-size: 1.2rem;
    }

    .admin-stat-label {
        font-size: 0.7rem;
    }

    .admin-filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .admin-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .admin-filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ============================================
   Shop
   ============================================ */

.shop-categories-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.shop-category-link {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #b0b0b0;
    border: 1px solid #333;
    text-decoration: none;
    transition: all 0.2s;
}

.shop-category-link:hover {
    border-color: #03a9f4;
    color: #03a9f4;
}

.shop-category-link.active {
    background: #03a9f4;
    border-color: #03a9f4;
    color: #ffffff;
}

/* Product Gallery (Admin) */

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.product-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
    cursor: grab;
}

.product-gallery-item.dragging {
    opacity: 0.4;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #e53935;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-gallery-item:hover .product-gallery-remove {
    opacity: 1;
}

/* Variant Options (Admin) */

.variant-option-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.variant-option-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.variant-option-header .option-name-input {
    max-width: 200px;
}

.variant-values-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.variant-values-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.variant-add-value-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.variant-add-value-row .add-value-input {
    flex: 1;
}

.option-name-label {
    font-size: 15px;
}

.variant-value-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #03a9f4;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
}

.variant-value-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    font-size: 11px;
    line-height: 1;
}

.variant-value-remove:hover {
    color: #fff;
}

.add-value-input {
    max-width: 160px;
}

/* Variant Colour Dots */

.variant-colour-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    vertical-align: middle;
    margin-right: 2px;
}

.variant-defaults-row {
    background: rgba(3, 169, 244, 0.05);
}

.variant-defaults-row td {
    border-bottom: 2px solid #03a9f4;
}

.form-control-color {
    width: 36px;
    height: 32px;
    padding: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Product Editor Tabs */

.product-editor-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.product-editor-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-editor-tab:hover {
    color: #b0b0b0;
}

.product-editor-tab.active {
    color: #fff;
    border-bottom-color: #03a9f4;
}

.product-editor-tab-count {
    background: #333;
    color: #b0b0b0;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
}

.product-editor-tab.active .product-editor-tab-count {
    background: #03a9f4;
    color: #fff;
}

.variant-sku,
.variant-price,
.variant-stock {
    max-width: 100px;
}

.shop-search-bar {
    margin-bottom: 20px;
}

.shop-search-input-wrap {
    position: relative;
    max-width: 360px;
}

.shop-search-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.shop-search-input-wrap .form-control {
    padding-left: 36px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.shop-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.shop-card:hover {
    border-color: #03a9f4;
    transform: translateY(-2px);
}

.shop-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.05);
}

.shop-card-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    color: #555;
}

.shop-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f79007;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.shop-card-badge-sale {
    background: #e53935;
    left: 10px;
    right: auto;
}

.shop-card-soldout {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.shop-card-body {
    padding: 16px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.shop-card-body h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.shop-card-body h3 a {
    color: #ffffff;
    text-decoration: none;
}

.shop-card-body h3 a:hover {
    color: #03a9f4;
}

.shop-card-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-card-price {
    margin-bottom: 12px;
    margin-top: auto;
}

.shop-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #03a9f4;
}

.shop-price-lg {
    font-size: 1.5rem;
}

.shop-price-old {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

/* Product Detail */

.shop-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.shop-product-image img {
    width: 100%;
    border-radius: 10px;
}

.shop-product-category-link {
    display: inline-block;
    font-size: 0.7rem;
    color: #03a9f4;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.shop-product-category-link:hover {
    color: #4fc3f7;
}

.shop-product-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.shop-product-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.shop-product-stock {
    font-size: 13px;
}

.shop-product-sku {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.shop-product-divider {
    border-top: 1px solid #2a2a2a;
    margin: 16px 0;
}

.shop-product-description {
    color: #b0b0b0;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 0;
}

.shop-variant-option-group {
    margin-bottom: 16px;
}

.chart-editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.chart-editor-wrap {
    overflow-x: auto;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background: #161616;
}

.chart-editor {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.chart-editor th,
.chart-editor td {
    padding: 8px;
    border-right: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    vertical-align: middle;
}

.chart-editor thead th {
    background: #1f1f1f;
    color: #d0d0d0;
    text-align: left;
    font-weight: 600;
}

.chart-editor tbody tr:last-child td {
    border-bottom: none;
}

.chart-editor th:last-child,
.chart-editor td:last-child {
    border-right: none;
}

.chart-editor-col {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-editor-col .chart-col-input {
    min-width: 120px;
}

.btn-remove-col,
.btn-remove-row {
    background: transparent;
    border: none;
    color: #888;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
}

.btn-remove-col:hover,
.btn-remove-row:hover {
    background: rgba(244, 67, 54, 0.15);
    color: #ef5350;
}

.chart-editor-row-actions {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.chart-editor-spacer {
    width: 1%;
    background: #1f1f1f;
}

.shop-event-distribution {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin: 0 0 16px;
    background: rgba(3, 169, 244, 0.08);
    border: 1px solid rgba(3, 169, 244, 0.35);
    border-radius: 6px;
    font-size: 14px;
    color: #d0d0d0;
}

.shop-event-distribution > i {
    color: #03a9f4;
    font-size: 18px;
    margin-top: 2px;
}

.shop-event-distribution a {
    color: #03a9f4;
}

.shop-product-size-guide {
    margin: 0 0 12px;
}

.size-guide-table-wrap {
    overflow-x: auto;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #d0d0d0;
}

.size-guide-table th,
.size-guide-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #2a2a2a;
    text-align: left;
}

.size-guide-table thead th {
    background: #1f1f1f;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.size-guide-table tbody tr:last-child th,
.size-guide-table tbody tr:last-child td {
    border-bottom: none;
}

.size-guide-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.size-guide-table__size {
    font-weight: 700;
    color: #03a9f4;
}

.shop-size-guide-trigger {
    color: #03a9f4;
    padding: 4px 0;
    text-decoration: none;
}

.shop-size-guide-trigger:hover {
    color: #29b6f6;
    text-decoration: underline;
}

.shop-variant-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
}

.shop-product-buy-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
    margin-top: 8px;
}

.shop-product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.shop-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.shop-qty-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: #b0b0b0;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.shop-qty-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.shop-qty-input {
    width: 44px;
    height: 36px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.shop-qty-input::-webkit-outer-spin-button,
.shop-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shop-add-to-cart-btn {
    flex: 1;
    height: 36px;
    background: #03a9f4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shop-add-to-cart-btn:hover {
    background: #4fc3f7;
}

.shop-add-to-cart-btn:active {
    transform: scale(0.98);
}

.shop-add-to-cart-btn:disabled,
.shop-add-to-cart-btn.disabled {
    background: #333;
    color: #999;
    cursor: not-allowed;
}

.shop-add-to-cart-btn:disabled:hover {
    background: #333;
}

/* Breadcrumbs */

.shop-breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: #999;
}

.shop-breadcrumb a {
    color: #b0b0b0;
    text-decoration: none;
}

.shop-breadcrumb a:hover {
    color: #03a9f4;
}

.shop-breadcrumb-sep {
    margin: 0 8px;
}

/* Product Image Gallery */

.shop-gallery-main {
    margin-bottom: 12px;
}

.shop-gallery-main-img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.shop-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid #333;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: border-color 0.2s;
}

.shop-gallery-thumb.active,
.shop-gallery-thumb:hover {
    border-color: #03a9f4;
}

.shop-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Variant Selectors */

.shop-variant-selectors .form-select {
    max-width: 200px;
    height: 36px;
    font-size: 14px;
}

.shop-colour-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-colour-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    outline: 2px solid #444;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}

.shop-colour-swatch:hover {
    outline-color: #888;
    transform: scale(1.1);
}

.shop-colour-swatch.active {
    outline-color: #fff;
    outline-width: 2px;
    outline-offset: 2px;
}

/* Related Products */

.shop-related-section h3 {
    margin-bottom: 20px;
}

.shop-grid-related {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Cart */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 24px;
    color: #555;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-name a {
    color: #fff;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: #03a9f4;
}

.cart-item-variant {
    display: block;
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}

.cart-item-unavailable {
    opacity: 0.5;
    border-color: #e53935;
}

.cart-item-oos {
    display: block;
    font-size: 12px;
    color: #e53935;
    font-weight: 600;
    margin-top: 4px;
}

.fulfillment-totals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.fulfillment-total-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fulfillment-total-qty {
    font-size: 28px;
    font-weight: 700;
    color: #03a9f4;
    line-height: 1;
}

.fulfillment-total-label {
    font-size: 14px;
    color: #e0e0e0;
}

.fulfillment-total-orders {
    font-size: 12px;
    color: #999;
}

.cart-item-price {
    color: #b0b0b0;
    font-size: 14px;
    margin-top: 4px;
}

.cart-gamertag-row {
    margin-top: 6px;
}

.cart-gamertag-input {
    max-width: 200px;
    font-size: 13px;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.cart-qty-controls .form-control {
    width: 64px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
    color: #ffffff;
    -moz-appearance: textfield;
    padding-left: 4px;
    padding-right: 4px;
}

.cart-qty-controls .form-control::-webkit-outer-spin-button,
.cart-qty-controls .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-qty-static {
    display: inline-block;
    width: 48px;
    text-align: center;
    color: #b0b0b0;
}

.cart-item-total {
    font-weight: 600;
    font-size: 15px;
    min-width: 80px;
    text-align: right;
}

.cart-summary-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.cart-summary-block h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #b0b0b0;
}

.cart-summary-divider {
    border-top: 1px solid #333;
    margin: 8px 0;
}

.cart-summary-total {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.cart-empty-state {
    text-align: center;
    padding: 40px 0;
}

.cart-empty-state i {
    color: #444;
    margin-bottom: 16px;
}

.cart-empty-state h3 {
    margin-bottom: 6px;
}

.cart-empty-state p {
    color: #999;
    margin-bottom: 16px;
}

.shop-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 48px 1fr auto auto;
        grid-template-areas:
            "image details details remove"
            "image qty     total   remove";
        gap: 8px 12px;
        padding: 12px;
    }

    .cart-item-image {
        grid-area: image;
        width: 48px;
        height: 48px;
        align-self: center;
    }

    .cart-item-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .cart-item-details {
        grid-area: details;
    }

    .cart-item-details .cart-item-price {
        display: none;
    }

    .cart-item-qty {
        grid-area: qty;
    }

    .cart-item-total {
        grid-area: total;
        min-width: auto;
        align-self: center;
    }

    .cart-item-remove {
        grid-area: remove;
        align-self: center;
    }

    .cart-gamertag-input {
        max-width: 100%;
    }

    .cart-summary-block {
        position: static;
    }
}

@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .shop-product-detail {
        grid-template-columns: 1fr;
    }

    .shop-product-actions,
    .shop-product-buy-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-product-buy-bar .shop-qty-control {
        justify-content: center;
    }

    .shop-categories-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .shop-categories-bar::-webkit-scrollbar {
        display: none;
    }

    .fulfillment-totals {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .fulfillment-total-qty {
        font-size: 22px;
    }

    .fulfillment-total-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .fulfillment-totals {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "details remove"
            "qty     total";
        gap: 8px;
    }

    .cart-item-image {
        display: none;
    }
}

/* ============================================
   Gallery Layout
   ============================================ */

.gallery-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

.gallery-sidebar {
    position: relative;
}

.gallery-nav {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gallery-nav-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding: 8px 12px;
    margin-bottom: 4px;
}

.gallery-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.gallery-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.gallery-nav-link.active {
    background: rgba(3, 169, 244, 0.15);
    color: #03a9f4;
}

.gallery-nav-link small {
    color: #999;
    font-size: 0.75rem;
}

.gallery-nav-link.active small {
    color: rgba(3, 169, 244, 0.6);
}

.gallery-event-section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

.gallery-event-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.gallery-event-date {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
    margin-left: 12px;
}

.gallery-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.gallery-sentinel {
    height: 1px;
    width: 100%;
    clear: both;
}

@media (max-width: 768px) {
    .gallery-layout {
        grid-template-columns: 1fr;
    }

    .gallery-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .gallery-nav-title {
        display: none;
    }

    .gallery-nav-link {
        padding: 6px 12px;
        border: 1px solid #333;
        border-radius: 20px;
        font-size: 0.8rem;
    }
}

@keyframes flashIn {
    0% { background: #fff; opacity: 1; }
    30% { background: #fff; opacity: 1; }
    100% { background: rgba(0,0,0,0.95); opacity: 1; }
}

/* ===== LAN Events ===== */

/* Event listing cards */
.lan-event-card {
    display: block;
    background: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, border-color 0.2s;
}

.lan-event-card:hover {
    transform: translateY(-4px);
    border-color: #03a9f4;
    color: #fff;
}

.lan-event-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.lan-event-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    color: #444;
}

.lan-event-card-body {
    padding: 16px;
}

.lan-event-card-body h3 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
}

.lan-event-meta {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-bottom: 4px;
}

.lan-event-meta i {
    width: 18px;
    color: #03a9f4;
}

.lan-ticket-requirement {
    margin-top: 6px;
}

.lan-ticket-link {
    color: #03a9f4;
    text-decoration: underline;
    cursor: pointer;
}

.lan-ticket-link:hover {
    color: #29b6f6;
}

.lan-event-desc {
    font-size: 0.85rem;
    color: #999;
    margin: 10px 0 0;
}

.lan-event-availability {
    margin-top: 10px;
}

.lan-availability-bar {
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.lan-availability-fill {
    height: 100%;
    background: #03a9f4;
    border-radius: 3px;
    transition: width 0.3s;
}

.lan-availability-text {
    font-size: 0.78rem;
    color: #999;
}

/* Stat cards on event page */
.lan-stat-card {
    background: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.lan-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #03a9f4;
}

.lan-stat-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Seat Map ===== */

.seat-map-container {
    overflow-x: auto;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.seat-map {
    display: grid;
    gap: 8px;
    padding: 20px;
    background: var(--bg-deep);
    border-radius: 12px;
    border: 1px solid #1a1f2e;
    min-width: fit-content;
}

.seat-row-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #03a9f4;
    font-size: 0.8rem;
    min-width: 32px;
}

.seat-cell {
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    transition: transform 0.12s, box-shadow 0.12s;
    position: relative;
    user-select: none;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
}

.seat-empty {
    background: transparent;
    border: 1px dashed #1a1f2e;
}

.seat-available {
    background: #1a2332;
    border: 2px solid #2a3a4a;
    color: #8899aa;
    cursor: pointer;
}

.seat-available:hover {
    background: #1e3a5f;
    border-color: #03a9f4;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(3, 169, 244, 0.3);
}

.seat-selected {
    background: #03a9f4;
    border: 2px solid #4fc3f7;
    color: #fff;
    cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(3, 169, 244, 0.5);
}

.seat-booked {
    background: #dc3545;
    border: 2px solid #b02a37;
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
    opacity: 0.7;
}

.seat-mine {
    background: #198754;
    border: 2px solid #13653f;
    color: #fff;
}

.seat-unavailable {
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    color: #555;
    cursor: not-allowed;
}

.seat-reserved-link {
    background: #8b5cf6;
    border: 2px solid #7c3aed;
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
}

.seat-label {
    pointer-events: none;
}

/* Non-colour state cues for colourblind users (WCAG 1.4.1). Each non-available
   state gets a small Font Awesome glyph in the top-right corner. */
.seat-cell.seat-booked::after,
.seat-cell.seat-mine::after,
.seat-cell.seat-selected::after,
.seat-cell.seat-held::after,
.seat-cell.seat-group-member::after,
.seat-cell.seat-reserved-link::after,
.seat-cell.seat-unavailable::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 0.55rem;
    line-height: 1;
    opacity: 0.85;
    pointer-events: none;
}
.seat-cell.seat-booked::after        { content: "\f023"; } /* fa-lock */
.seat-cell.seat-mine::after          { content: "\f4fc"; } /* fa-user-check */
.seat-cell.seat-selected::after      { content: "\f07a"; } /* fa-cart-shopping */
.seat-cell.seat-held::after          { content: "\f017"; } /* fa-clock */
.seat-cell.seat-group-member::after  { content: "\f0c0"; } /* fa-users */
.seat-cell.seat-reserved-link::after { content: "\f06b"; } /* fa-gift */
.seat-cell.seat-unavailable::after   { content: "\f05e"; } /* fa-ban */

/* Furniture on public seat map */
.furniture-item {
    border-radius: 6px;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 0.7rem;
    cursor: default;
    gap: 4px;
    padding: 4px;
    text-align: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    aspect-ratio: auto;
}

.furniture-item i {
    font-size: 0.9rem;
}

/* Legend */
.seat-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.seat-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #b0b0b0;
}

.seat-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.85);
}

.seat-available-icon {
    background: #1a2332;
    border: 2px solid #2a3a4a;
}

.seat-selected-icon {
    background: #03a9f4;
    border: 2px solid #4fc3f7;
}

.seat-booked-icon {
    background: #dc3545;
    border: 2px solid #b02a37;
}

.seat-mine-icon {
    background: #198754;
    border: 2px solid #13653f;
}

.seat-unavailable-icon {
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
}

.seat-reserved-link-icon {
    background: #8b5cf6;
    border: 2px solid #7c3aed;
}

.seat-group-member {
    background: #1a2332;
    border: 2px solid #9c27b0;
    color: #fff;
    cursor: default;
    opacity: 0.9;
}

.seat-group-member-icon {
    background: #1a2332;
    border: 2px solid #9c27b0;
}

.lan-group-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lan-group-bar:hover {
    background: rgba(255,255,255,0.08);
}

.lan-group-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    margin-left: 6px;
    vertical-align: middle;
}

.group-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.group-member-item:last-child {
    border-bottom: none;
}

/* Booking panel */
.seat-booking-panel {
    background: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
}

.seat-booking-panel h4 {
    font-size: 1rem;
    margin: 0 0 12px;
    color: #fff;
}

.seat-selection-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.seat-selection-list li {
    padding: 6px 0;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.9rem;
    color: #ccc;
}

.seat-selection-list li:last-child {
    border-bottom: none;
}

/* ===== Layout Editor ===== */

.layout-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
}

.layout-tool-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.layout-tool-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    margin-right: 2px;
}

.layout-tool-btn {
    background: #222;
    border: 1px solid #444;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.layout-tool-btn:hover {
    background: #2a2a2a;
    border-color: #999;
}

.layout-tool-btn.active {
    background: #03a9f4;
    border-color: #03a9f4;
    color: #000;
    font-weight: 600;
}

.layout-action-btn {
    background: #222;
    border: 1px solid #444;
    color: #ccc;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.layout-action-btn:hover:not(:disabled) {
    background: #2a2a2a;
    border-color: #999;
}

.layout-action-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.layout-dim-input {
    width: 60px;
    text-align: center;
}

.layout-grid-wrap {
    overflow-x: auto;
    padding: 4px;
}

.layout-grid {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: #0a0e14;
    border-radius: 10px;
    border: 1px solid #1a1f2e;
    min-width: fit-content;
}

.layout-row-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #03a9f4;
    font-size: 0.75rem;
    min-width: 32px;
}

.layout-cell {
    background: #12161d;
    border: 1px dashed #1e2430;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    color: #555;
    transition: background 0.1s, border-color 0.1s;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
}

.layout-cell:hover {
    background: #1a2030;
    border-color: #03a9f4;
}

.layout-cell-seat {
    background: #1a2332;
    border: 2px solid #2a3a4a;
    color: #03a9f4;
    border-style: solid;
}

.layout-cell-furniture {
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 0.65rem;
    gap: 2px;
    padding: 2px;
    text-align: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    aspect-ratio: auto;
}

.layout-cell-furniture .furniture-label {
    font-size: 0.55rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tooltip {
    z-index: 9999 !important;
}

.tooltip-inner {
    color: #fff;
    background: #1a1a1a;
    border: 1px solid #03a9f4;
}

.tooltip .tooltip-arrow::before {
    border-top-color: #03a9f4;
}

.layout-cell-drag-preview {
    background: rgba(3, 169, 244, 0.15);
    border: 2px dashed #03a9f4;
    border-style: dashed;
}

.layout-cell-unavailable {
    background: #2a1a1a;
    border: 2px solid #4a2020;
    color: #e53935;
    opacity: 0.6;
    font-size: 0.7rem;
}

.layout-cell-booked {
    background: #dc3545;
    border: 2px solid #b02a37;
    color: rgba(255,255,255,0.85);
    border-style: solid;
    font-size: 0.7rem;
}

.layout-cell-reserved {
    background: #8b5cf6;
    border: 2px solid #6d28d9;
    color: rgba(255,255,255,0.9);
    border-style: solid;
    font-size: 0.7rem;
}

.layout-cell-hidden {
    display: none;
}

.layout-furniture-config {
    background: var(--bg-surface);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    width: 180px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    font-size: 0.8rem;
}

.layout-furniture-config .form-label {
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.layout-furniture-config .form-control-sm {
    font-size: 0.8rem;
    padding: 4px 8px;
}

.layout-furniture-config .btn {
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
}

.layout-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Attendees list */
.lan-attending-count {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 10px;
    vertical-align: middle;
}

.lan-attending-list {
    line-height: 1.9;
    color: #d0d0d0;
    font-size: 0.9rem;
    word-spacing: 2px;
}

.lan-attending-sep {
    color: #555;
    margin: 0 6px;
}

.lan-attending-spectator {
    color: #888;
}

.seat-held {
    background: #ff9800;
    border: 2px solid #e68900;
    color: rgba(0,0,0,0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

.seat-checking {
    opacity: 0.5;
    pointer-events: none;
}

.seat-held-icon {
    background: #ff9800;
    border: 2px solid #e68900;
}

/* Countdown */
.lan-countdown-wrap {
    text-align: center;
}

.lan-countdown-heading {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 10px;
}

.lan-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-deep);
    border: 1px solid #1a1f2e;
    border-radius: 12px;
}

.lan-countdown-item {
    text-align: center;
    min-width: 70px;
}

.lan-countdown-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #03a9f4;
    line-height: 1;
}

.lan-countdown-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-top: 4px;
}

/* Info tabs */
.lan-info-tabs {
    border-bottom-color: #333;
}

.lan-info-tabs .nav-link {
    color: #999;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.lan-info-tabs .nav-link.active {
    color: #03a9f4;
    background: transparent;
    border-bottom: 2px solid #03a9f4;
}

.lan-info-tabs .nav-link:hover {
    color: #fff;
    border-color: transparent;
}

.lan-info-content {
    padding: 20px 0;
    color: #ccc;
    line-height: 1.7;
}

/* Ticket card */
.lan-ticket-card {
    background: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}

.lan-ticket-header {
    background: linear-gradient(135deg, #0d1117, #1a2332);
    padding: 30px;
    text-align: center;
}

.lan-ticket-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.lan-ticket-body {
    padding: 24px;
}

.lan-ticket-field {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 12px;
}

.lan-ticket-field-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 4px;
}

.lan-ticket-field-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #03a9f4;
}

.lan-ticket-qr img {
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.lan-ticket-checked-in {
    background: rgba(25, 135, 84, 0.15);
    border-radius: 8px;
    padding: 12px;
}

/* Ticket page (redesigned) */
.ticket-page-section {
    padding: 140px 0 64px;
}

.ticket-page-container {
    max-width: 560px;
}

.ticket-stub {
    background: var(--bg-surface);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    position: relative;
}

.ticket-stub__hero {
    padding: 32px 28px 24px;
    background: linear-gradient(135deg, #0d1117 0%, #16223a 100%);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ticket-stub__kicker {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #03a9f4;
    background: rgba(3, 169, 244, 0.12);
    border: 1px solid rgba(3, 169, 244, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.ticket-stub--spectator .ticket-stub__kicker {
    color: #b388ff;
    background: rgba(179, 136, 255, 0.12);
    border-color: rgba(179, 136, 255, 0.3);
}

.ticket-stub__event {
    margin: 0 0 8px;
    font-size: 1.6rem;
    line-height: 1.2;
    color: #fff;
    font-weight: 700;
}

.ticket-stub__when {
    margin: 0;
    color: #cfd6e0;
    font-size: 0.95rem;
}

.ticket-stub__when i {
    margin-right: 6px;
    opacity: 0.7;
}

.ticket-stub__sep {
    margin: 0 6px;
    opacity: 0.4;
}

.ticket-stub__banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    font-size: 0.95rem;
}

.ticket-stub__banner i {
    font-size: 1.5rem;
}

.ticket-stub__banner div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ticket-stub__banner strong {
    font-weight: 600;
}

.ticket-stub__banner span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.ticket-stub__banner--success {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.04));
    color: #4ade80;
    border-top: 1px solid rgba(34, 197, 94, 0.25);
    border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.ticket-stub--checked-in .ticket-stub__qr {
    opacity: 0.4;
}

.ticket-stub__body {
    padding: 24px 24px 8px;
}

.ticket-stub__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin: 0;
}

.ticket-stub__field {
    margin: 0;
}

.ticket-stub__field--full {
    grid-column: 1 / -1;
}

.ticket-stub__field dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
}

.ticket-stub__field dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}

.ticket-stub__field--seat dd {
    color: #03a9f4;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.ticket-stub--spectator .ticket-stub__field--seat dd {
    color: #b388ff;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.ticket-stub__ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.95rem !important;
    color: #b0b0b0 !important;
    font-weight: 500 !important;
}

.ticket-stub__muted {
    color: #666;
    font-weight: 500;
    font-style: italic;
}

.ticket-stub__perforation {
    position: relative;
    height: 24px;
    margin: 8px 0;
    background-image: radial-gradient(circle at 8px 12px, var(--bs-body-bg) 5px, transparent 6px);
    background-size: 16px 24px;
    background-repeat: repeat-x;
    background-position: 0 0;
}

.ticket-stub__perforation::before,
.ticket-stub__perforation::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 14px;
    height: 28px;
    background: var(--bs-body-bg);
    border-radius: 0 14px 14px 0;
    transform: translateY(-50%);
}

.ticket-stub__perforation::before {
    left: -1px;
}

.ticket-stub__perforation::after {
    right: -1px;
    border-radius: 14px 0 0 14px;
}

.ticket-stub__checkin {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 8px 24px 24px;
}

.ticket-stub__qr {
    flex: 0 0 auto;
    width: 176px;
    height: 176px;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
    box-sizing: border-box;
}

.ticket-stub__qr canvas {
    display: none !important;
}

.ticket-stub__qr img {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.ticket-stub__checkin-copy {
    flex: 1;
    min-width: 0;
}

.ticket-stub__checkin-copy h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin: 0 0 8px;
    font-weight: 500;
}

.ticket-stub__checkin-copy p {
    margin: 0 0 6px;
    color: #d0d0d0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ticket-stub__checkin-copy p:last-child {
    margin-bottom: 0;
}

.ticket-stub__small {
    font-size: 0.8rem !important;
    color: #888 !important;
}

.ticket-stub__edit {
    padding: 18px 24px 24px;
    border-top: 1px solid #2a2a2a;
}

.ticket-stub__edit label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
}

.ticket-page-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

@media (max-width: 540px) {
    .ticket-stub__hero {
        padding: 24px 20px 20px;
    }
    .ticket-stub__event {
        font-size: 1.3rem;
    }
    .ticket-stub__body,
    .ticket-stub__edit {
        padding-left: 18px;
        padding-right: 18px;
    }
    .ticket-stub__checkin {
        flex-direction: column;
        text-align: center;
        padding: 8px 18px 24px;
    }
    .ticket-stub__qr {
        width: 220px;
        height: 220px;
    }
    .ticket-stub__field--seat dd {
        font-size: 1.2rem;
    }
}

/* Staff check-in confirmation */
.staff-checkin-card {
    background: var(--bg-surface);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.staff-checkin-card__head {
    padding: 22px 24px 18px;
    background: linear-gradient(135deg, #0d1117 0%, #16223a 100%);
    text-align: center;
}

.staff-checkin-card__pill {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #03a9f4;
    background: rgba(3, 169, 244, 0.12);
    border: 1px solid rgba(3, 169, 244, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.staff-checkin-card__pill i {
    margin-right: 6px;
}

.staff-checkin-card__event {
    margin: 0;
    font-size: 1.1rem;
    color: #cfd6e0;
    font-weight: 500;
}

.staff-checkin-card__body {
    padding: 24px;
    text-align: center;
}

.staff-checkin-card__name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    word-break: break-word;
}

.staff-checkin-card__meta {
    margin-bottom: 20px;
}

.staff-checkin-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(3, 169, 244, 0.12);
    border: 1px solid rgba(3, 169, 244, 0.3);
    border-radius: 999px;
    color: #03a9f4;
    font-size: 0.95rem;
    font-weight: 600;
}

.staff-checkin-card__chip--alt {
    background: rgba(179, 136, 255, 0.12);
    border-color: rgba(179, 136, 255, 0.3);
    color: #b388ff;
}

.staff-checkin-card__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a2a;
    margin-bottom: 20px;
    color: #b0b0b0;
}

.staff-checkin-card__status i {
    font-size: 1.2rem;
}

.staff-checkin-card__status small {
    color: #888;
    margin-left: 4px;
}

.staff-checkin-card--done .staff-checkin-card__status {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.staff-checkin-card__action {
    height: 56px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.staff-checkin-card__actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.staff-checkin-items {
    margin: 4px 0 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.staff-checkin-items__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 10px;
}

.staff-checkin-items__head i {
    color: #03a9f4;
}

.staff-checkin-items__pending {
    margin-left: auto;
    font-size: 11px;
    color: #ffb74d;
    background: rgba(255, 183, 77, 0.12);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.staff-checkin-items__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.staff-checkin-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.staff-checkin-item:last-child {
    border-bottom: none;
}

.staff-checkin-item__main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.staff-checkin-item__qty {
    font-weight: 700;
    color: #03a9f4;
    font-size: 14px;
    min-width: 28px;
}

.staff-checkin-item__name {
    color: #e0e0e0;
    font-size: 14px;
}

.staff-checkin-item__name small {
    color: #999;
    font-size: 12px;
    margin-left: 4px;
}

.staff-checkin-item__btn {
    flex-shrink: 0;
}

.staff-checkin-item--done .staff-checkin-item__name,
.staff-checkin-item--done .staff-checkin-item__qty {
    color: #777;
    text-decoration: line-through;
}

.staff-checkin-item__btn--undo {
    color: #66bb6a;
    text-decoration: none;
    padding: 4px 8px;
}

.staff-checkin-item__btn--undo:hover {
    color: #ffb74d;
    text-decoration: underline;
}

.checkin-list-item .js-reopen-items {
    flex-shrink: 0;
    padding: 4px 10px;
    line-height: 1;
}

.checkin-list-item .js-reopen-items i {
    color: #03a9f4;
}

/* Per-customer page hosts the same .checkin-result-fixed drawer as the
   kiosk. Make the drawer full-bleed at the bottom on every viewport size,
   not just narrow mobile, since the page is short and the drawer is the
   primary items surface. */
.checkin-public-drawer-host .checkin-result-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    overflow-y: auto;
}

.ticket-stub__print-brand,
.ticket-stub__print-footer {
    display: none;
}

@media print {
    @page { margin: 14mm; }

    body { background: #fff !important; color: #000 !important; }
    .page-hero, .admin-sidebar, nav, footer, .btn,
    .ticket-page-actions, .ticket-stub__edit,
    .ticket-stub__kicker, .ticket-stub__banner { display: none !important; }
    .ticket-page-section { padding: 0 !important; }
    .section { padding: 0 !important; }

    /* Force colour-accurate printing for the ticket itself */
    .ticket-stub,
    .ticket-stub * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .lan-ticket-card,
    .ticket-stub {
        border: 1.5pt solid #03a9f4 !important;
        box-shadow: none !important;
        background: #fff !important;
        max-width: 100% !important;
        page-break-inside: avoid;
        overflow: hidden;
    }

    .ticket-stub--spectator { border-color: #8a5cf6 !important; }

    /* Branded header — accent bar */
    .ticket-stub__print-brand {
        display: flex !important;
        justify-content: space-between;
        align-items: baseline;
        padding: 10pt 16pt;
        background: #03a9f4 !important;
        color: #fff !important;
    }
    .ticket-stub--spectator .ticket-stub__print-brand {
        background: #8a5cf6 !important;
    }
    .ticket-stub__print-wordmark {
        font-weight: 800;
        font-size: 11pt;
        letter-spacing: 3pt;
        color: #fff !important;
    }
    .ticket-stub__print-doctype {
        font-size: 9pt;
        text-transform: uppercase;
        letter-spacing: 2pt;
        color: #fff !important;
    }

    /* Hero: white bg, accent rule under date */
    .ticket-stub__hero {
        background: #fff !important;
        color: #000 !important;
        padding: 14pt 16pt 10pt !important;
        border-bottom: 2pt solid #03a9f4 !important;
    }
    .ticket-stub--spectator .ticket-stub__hero { border-bottom-color: #8a5cf6 !important; }
    .ticket-stub__event { color: #000 !important; font-size: 18pt !important; margin-bottom: 4pt !important; }
    .ticket-stub__when,
    .ticket-stub__when i,
    .ticket-stub__sep { color: #555 !important; font-size: 10pt !important; }

    /* Body */
    .ticket-stub__body { padding: 14pt 16pt 6pt !important; }
    .ticket-stub__grid { gap: 10pt 16pt !important; }
    .ticket-stub__field dt {
        color: #03a9f4 !important;
        font-size: 7pt !important;
        font-weight: 700 !important;
    }
    .ticket-stub--spectator .ticket-stub__field dt { color: #8a5cf6 !important; }
    .ticket-stub__field dd { color: #000 !important; font-size: 11pt !important; }
    .ticket-stub__field--seat dd {
        color: #03a9f4 !important;
        font-size: 32pt !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        letter-spacing: 2pt;
    }
    .ticket-stub--spectator .ticket-stub__field--seat dd {
        color: #8a5cf6 !important;
        font-size: 14pt !important;
        letter-spacing: 0;
    }
    .ticket-stub__ref { color: #000 !important; }

    /* Dashed divider in place of perforation */
    .ticket-stub__perforation {
        background: none !important;
        border-top: 1pt dashed #03a9f4 !important;
        height: 0 !important;
        margin: 4pt 16pt !important;
    }
    .ticket-stub--spectator .ticket-stub__perforation { border-top-color: #8a5cf6 !important; }
    .ticket-stub__perforation::before,
    .ticket-stub__perforation::after { display: none !important; }

    /* Check-in block */
    .ticket-stub__checkin { padding: 8pt 16pt 12pt !important; gap: 14pt !important; }
    .ticket-stub__qr {
        width: 138pt !important;
        height: 138pt !important;
        padding: 4pt !important;
        border: 0.5pt solid #000 !important;
        background: #fff !important;
        border-radius: 0 !important;
    }
    .ticket-stub__qr img {
        width: 100% !important;
        height: 100% !important;
    }
    .ticket-stub--checked-in .ticket-stub__qr { opacity: 1 !important; }
    .ticket-stub__checkin-copy h2 {
        color: #03a9f4 !important;
        font-size: 8pt !important;
    }
    .ticket-stub--spectator .ticket-stub__checkin-copy h2 { color: #8a5cf6 !important; }
    .ticket-stub__checkin-copy p { color: #000 !important; font-size: 9.5pt !important; }
    .ticket-stub__small { color: #555 !important; }

    /* Print footer */
    .ticket-stub__print-footer {
        display: block !important;
        border-top: 0.5pt solid #ddd;
        padding: 10pt 16pt;
        font-size: 8.5pt;
        color: #333 !important;
        line-height: 1.4;
        background: #f5fafe !important;
    }
    .ticket-stub--spectator .ticket-stub__print-footer { background: #f7f3ff !important; }
    .ticket-stub__print-footer p { margin: 0 0 3pt; color: #333 !important; }
    .ticket-stub__print-url {
        font-weight: 700;
        color: #03a9f4 !important;
        letter-spacing: 1pt;
    }
    .ticket-stub--spectator .ticket-stub__print-url { color: #8a5cf6 !important; }
}

.seat-tag-row .form-label {
    font-size: 0.8rem;
    color: #03a9f4;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    /* Seat cells need to meet WCAG 2.5.5 minimum tap target (44x44) on touch
       devices. The seat-map-container scrolls horizontally for larger grids. */
    .seat-cell:not(.furniture-item) {
        width: 44px;
        height: 44px;
        font-size: 0.7rem;
    }

    .layout-cell:not(.layout-cell-furniture) {
        width: 30px;
        height: 30px;
        font-size: 0.6rem;
    }

    .layout-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .seat-map-legend {
        gap: 10px;
    }

    .lan-countdown {
        gap: 12px;
        padding: 16px 12px;
    }

    .lan-countdown-item {
        min-width: 55px;
    }

    .lan-countdown-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .lan-countdown {
        gap: 8px;
        padding: 12px 8px;
    }

    .lan-countdown-item {
        min-width: 0;
        flex: 1;
    }

    .lan-countdown-value {
        font-size: 1.3rem;
    }

    .lan-countdown-label {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }
}

/* ============================================
   User Dashboard
   ============================================ */

body:has(.dashboard-layout) .page-hero,
body:has(.contact-form) .page-hero {
    padding: 110px 0 30px;
}

body:has(.dashboard-layout) .page-hero h1,
body:has(.contact-form) .page-hero h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

body:has(.dashboard-layout) .page-hero p,
body:has(.contact-form) .page-hero p {
    font-size: 0.9rem;
}

body:has(.dashboard-layout) .section,
body:has(.contact-form) .section {
    padding: 40px 0;
}

body:has(.dashboard-layout) .container {
    max-width: none;
    padding: 0 5%;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 2.5fr 7.5fr;
    gap: 40px;
    align-items: start;
}

.dashboard-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 100px;
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.dashboard-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
}

.dashboard-nav-link.active {
    background: rgba(3, 169, 244, 0.12);
    color: #03a9f4;
}

.dashboard-nav-link i {
    width: 18px;
    text-align: center;
}

.dashboard-nav-signout {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.dashboard-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 14px 4px;
}

.dashboard-nav-heading {
    padding: 4px 14px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #666;
}

.dashboard-nav-event .dashboard-nav-event-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-mini-profile {
    display: block;
    background: linear-gradient(180deg, #161616 0%, #111111 100%);
    border: 1px solid rgba(3, 169, 244, 0.22);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    color: #e0e0e0;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dashboard-mini-profile:hover {
    border-color: rgba(3, 169, 244, 0.45);
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    text-decoration: none;
    color: #e0e0e0;
}

.dashboard-mini-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-mini-profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-mini-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dashboard-mini-profile-identity {
    flex: 1;
    min-width: 0;
}

.dashboard-mini-profile-name {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #ffffff;
    font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1.05rem);
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
}

.dashboard-mini-profile-nickname {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.dashboard-mini-profile-clan {
    color: #03a9f4;
    font-weight: 500;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.dashboard-mini-profile-subtitle {
    color: #03a9f4;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 2px;
}

.dashboard-mini-profile-badge {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    background: radial-gradient(circle at 50% 40%, rgba(3, 169, 244, 0.18) 0%, rgba(0, 0, 0, 0.6) 75%);
    border: 1px solid rgba(3, 169, 244, 0.3);
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.6),
        0 0 6px rgba(3, 169, 244, 0.15);
}

.dashboard-mini-profile-badge .badge-icon {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}

.dashboard-mini-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-mini-profile-stat {
    text-align: center;
    padding: 2px 4px;
    min-width: 0;
}

.dashboard-mini-profile-stat + .dashboard-mini-profile-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-mini-profile-stat-value {
    color: #ffffff;
    font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1.1rem);
    font-weight: 600;
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dashboard-mini-profile-stat-label {
    color: #888;
    font-size: clamp(0.55rem, 0.45rem + 0.35vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.dashboard-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.dashboard-event-card {
    display: block;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: #d0d0d0;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.dashboard-event-card:hover {
    border-color: #03a9f4;
    background: rgba(3, 169, 244, 0.04);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.dashboard-event-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.dashboard-event-card-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 14px;
}

.dashboard-event-card-date i {
    margin-right: 6px;
    color: #03a9f4;
}

.dashboard-event-card-cta {
    font-size: 0.85rem;
    color: #03a9f4;
    font-weight: 600;
}

.dashboard-event-card-cta i {
    margin-left: 4px;
    font-size: 0.75rem;
}

.dashboard-pending-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-pending-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 193, 7, 0.06);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 6px;
    color: #d0d0d0;
    font-size: 0.9rem;
}

.dashboard-pending-list li i {
    color: #ffc107;
}

.dashboard-pending-link {
    margin-left: auto;
    color: #03a9f4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.dashboard-pending-link:hover {
    text-decoration: underline;
}

.dashboard-inline-link {
    color: #03a9f4;
    text-decoration: none;
    font-size: 0.9rem;
}

.dashboard-inline-link:hover {
    text-decoration: underline;
}

.dashboard-empty-state {
    padding: 8px 0 20px;
}

.dashboard-empty-state p {
    color: #999;
    font-size: 0.95rem;
    margin: 0 0 6px;
}

.ticket-holder-banner {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.12), rgba(3, 169, 244, 0.04));
    border: 1px solid rgba(3, 169, 244, 0.3);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.ticket-holder-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ticket-holder-banner-inner > span {
    color: #d0d0d0;
    font-size: 0.95rem;
}

.ticket-holder-banner-inner i.fa-circle-check {
    color: #4caf50;
    margin-right: 6px;
}

.dashboard-event-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.18);
    color: #4caf50;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: dashboardPulse 1.6s ease-in-out infinite;
}

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

.dashboard-event-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.dashboard-event-tabs .nav-item {
    flex-shrink: 0;
}

.dashboard-event-tabs::-webkit-scrollbar { height: 4px; }
.dashboard-event-tabs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }

.dashboard-event-tabs .nav-link {
    background: transparent;
    border: none;
    color: #999;
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 6px 6px 0 0;
}

.dashboard-event-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.dashboard-event-tabs .nav-link.active {
    color: #03a9f4;
    background: rgba(3, 169, 244, 0.08);
    border-bottom: 2px solid #03a9f4;
}

.dashboard-event-tabs .nav-link i {
    margin-right: 6px;
}

.dashboard-event-tab-live {
    color: #4caf50 !important;
}

.dashboard-event-tab-live.active {
    color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.1) !important;
    border-bottom-color: #4caf50 !important;
}

.dashboard-event-tab-content {
    padding-top: 8px;
}

.dashboard-event-banner {
    height: 220px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    margin-bottom: 24px;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.55);
}

.dashboard-event-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.dashboard-event-countdown > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    border: 1px solid rgba(3, 169, 244, 0.2);
    border-radius: 8px;
    background: rgba(3, 169, 244, 0.04);
}

.dashboard-event-countdown > div > span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #03a9f4;
    line-height: 1;
}

@media (max-width: 600px) {
    .dashboard-event-countdown {
        gap: 6px;
    }
    .dashboard-event-countdown > div {
        padding: 10px 4px;
    }
    .dashboard-event-countdown > div > span {
        font-size: 1.3rem;
    }
    .dashboard-event-ticket {
        gap: 10px;
    }
    .dashboard-event-ticket-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .dashboard-event-tournament {
        gap: 10px;
    }
    .dashboard-event-tournament-actions {
        width: 100%;
    }
    .dashboard-event-discord-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .ticket-holder-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dashboard-event-countdown > div > small {
    color: #999;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 4px;
}

.dashboard-event-countdown-live {
    grid-column: 1 / -1;
    text-align: center;
    color: #4caf50;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.06);
}

/* Admin schedule timeline editor (matches the attendee dashboard look) */
.admin-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-schedule-empty {
    padding: 20px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
}

.admin-schedule-day {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    padding-bottom: 6px;
    margin: 18px 0 6px;
    border-bottom: 1px solid rgba(3, 169, 244, 0.25);
}

.admin-schedule-day:first-child {
    margin-top: 8px;
}

.admin-schedule-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 16px;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: #d0d0d0;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-schedule-item:hover {
    border-color: #03a9f4;
    background: rgba(3, 169, 244, 0.05);
}

.admin-schedule-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #03a9f4;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.admin-schedule-start {
    font-size: 1rem;
}

.admin-schedule-dash,
.admin-schedule-end {
    color: #888;
    font-size: 0.78rem;
    font-weight: 500;
}

.admin-schedule-body {
    min-width: 0;
}

.admin-schedule-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.admin-schedule-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #999;
    font-size: 0.78rem;
}

.admin-schedule-meta i {
    margin-right: 4px;
    color: #03a9f4;
}

.admin-schedule-chev {
    color: #555;
}

@media (max-width: 600px) {
    .admin-schedule-item {
        grid-template-columns: 1fr auto;
    }
    .admin-schedule-time {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 8px;
    }
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 4px;
    align-items: start;
}

/* When only one overview card renders (e.g. schedule alone, tournaments
   alone, or any single visible card), let it span the full width instead
   of leaving an empty column next to it. */
.dashboard-overview-grid:has(> .dashboard-overview-card:only-child) {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .dashboard-overview-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-overview-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-overview-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-overview-card-head h4 {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #999;
    font-weight: 700;
}

.dashboard-overview-card-link {
    font-size: 0.8rem;
    color: #03a9f4;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-overview-card-link:hover {
    text-decoration: underline;
}

.dashboard-overview-card-body {
    padding: 18px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay[style*="flex"], .modal-overlay.active {
    display: flex !important;
}

.modal-container {
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    color: #d0d0d0;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
    flex: 1;
}

.modal-close {
    background: transparent;
    border: 0;
    color: #a0a0a0;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 16px 18px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.dashboard-stat-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.dashboard-stat-icon {
    font-size: 1.5rem;
    color: #03a9f4;
    margin-bottom: 4px;
}

.dashboard-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.dashboard-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #999;
    font-weight: 600;
}

.badge-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: inline-block;
}

.dashboard-badges-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.dashboard-badge-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-badge-pill .badge-icon {
    width: 36px;
    height: 36px;
}

.dashboard-badge-pill-label {
    font-size: 0.85rem;
    color: #d0d0d0;
}

/* ============================================
   Profile Page (dashboard/profile)
   ============================================ */

body:has(.dashboard-layout) .profile-page-section {
    padding-top: 110px;
}

.profile-banner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(3, 169, 244, 0.25);
    background: linear-gradient(135deg, #161616 0%, #0d0d0d 100%);
    margin-bottom: 28px;
    isolation: isolate;
}

.profile-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 30%, rgba(3, 169, 244, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 88% 80%, rgba(88, 101, 242, 0.14) 0%, transparent 50%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 20px);
    pointer-events: none;
    z-index: 0;
}

.profile-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    flex-wrap: wrap;
}

.profile-banner-avatar {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    border: 2px solid rgba(3, 169, 244, 0.4);
    box-shadow:
        0 0 0 4px rgba(3, 169, 244, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.45);
}

.profile-banner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-banner-identity {
    flex: 1;
    min-width: 220px;
}

.profile-banner-eyebrow {
    color: #03a9f4;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.profile-banner-name {
    color: #ffffff;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 6px;
    word-break: break-word;
}

.profile-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: #888;
}

.profile-banner-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-banner-meta-item i {
    color: #03a9f4;
}

.profile-banner-totals {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.profile-banner-total {
    text-align: center;
    min-width: 64px;
    padding: 4px 8px;
}

.profile-banner-total-value {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.profile-banner-total-label {
    color: #888;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section-header h2 {
    margin: 0 !important;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.profile-section-header h2 i {
    color: #03a9f4;
    font-size: 1rem;
}

.profile-section-count {
    margin-left: auto;
    color: #888;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.profile-section-header-secondary {
    margin-top: 36px;
}

.profile-featured-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

.profile-featured-stat {
    position: relative;
    padding: 22px 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(3, 169, 244, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(3, 169, 244, 0.18);
    text-align: center;
    overflow: hidden;
}

.profile-featured-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #03a9f4, transparent);
    opacity: 0.6;
}

.profile-featured-stat-icon {
    color: #03a9f4;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.profile-featured-stat-value {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 4px;
}

.profile-featured-stat-label {
    color: #aaa;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.profile-stat-lock {
    color: #666;
    font-size: 0.7rem;
}

.profile-badge-group {
    margin-bottom: 22px;
}

.profile-badge-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    border-left: 3px solid #03a9f4;
}

.profile-badge-group-header i {
    color: #03a9f4;
    font-size: 0.95rem;
}

.profile-badge-group-title {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
}

.profile-badge-group-count {
    margin-left: auto;
    background: rgba(3, 169, 244, 0.15);
    color: #03a9f4;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    min-width: 28px;
    text-align: center;
}

.profile-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 18px 14px;
    padding: 8px 4px;
}

.profile-badge-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 4px;
    cursor: default;
}

.profile-badge-tile:hover {
    z-index: 5;
}

.profile-badge-tile-frame {
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.profile-badge-tile:hover .profile-badge-tile-frame {
    transform: translateY(-3px) scale(1.06);
    filter: drop-shadow(0 6px 14px rgba(3, 169, 244, 0.35));
}

.profile-badge-tile-frame .badge-icon {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}

.profile-badge-tile-name {
    color: #d0d0d0;
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
    hyphens: auto;
}

.profile-badge-tile-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 220px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #0d0d0d;
    border: 1px solid rgba(3, 169, 244, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10;
    text-align: left;
}

.profile-badge-tile:hover .profile-badge-tile-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.profile-badge-tile-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(3, 169, 244, 0.35);
}

.profile-badge-tile-tooltip-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-badge-tile-tooltip-desc {
    color: #b0b0b0;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.profile-badge-tile-tooltip-date {
    color: #03a9f4;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.profile-stat-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-stat-tile-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(3, 169, 244, 0.1);
    color: #03a9f4;
    font-size: 0.95rem;
}

.profile-stat-tile-body {
    min-width: 0;
}

.profile-stat-tile-value {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.profile-stat-tile-label {
    color: #888;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-empty-state {
    text-align: center;
    padding: 48px 24px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.profile-empty-state i {
    font-size: 2.4rem;
    color: rgba(3, 169, 244, 0.45);
    margin-bottom: 14px;
}

.profile-empty-state p {
    color: #d0d0d0;
    font-size: 1rem;
    margin: 0 0 8px;
}

.profile-empty-state .profile-empty-hint {
    color: #888;
    font-size: 0.85rem;
    max-width: 420px;
    margin: 0 auto 16px;
}

.profile-empty-state-compact {
    padding: 18px 20px;
}

.profile-empty-state-compact p {
    margin: 0;
    color: #888;
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .profile-banner-inner {
        padding: 22px 20px;
        gap: 16px;
    }

    .profile-banner-avatar {
        width: 84px;
        height: 84px;
    }

    .profile-banner-totals {
        width: 100%;
        justify-content: flex-start;
    }

    .profile-featured-stat-value {
        font-size: 1.8rem;
    }

    .profile-badge-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 14px 10px;
    }

    .profile-badge-tile-frame {
        height: 92px;
    }

    .profile-badge-tile-tooltip {
        width: 180px;
    }
}

.attendance-achievements-list,
.attendance-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.attendance-achievements-list .admin-badge {
    font-size: 0.72rem;
}

.dashboard-event-discord-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(88, 101, 242, 0.05));
    border: 1px solid rgba(88, 101, 242, 0.35);
    text-decoration: none;
    color: inherit;
    margin-bottom: 28px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dashboard-event-discord-card:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.28), rgba(88, 101, 242, 0.08));
    border-color: #5865F2;
    text-decoration: none;
    color: inherit;
    transform: translateY(-1px);
}

.dashboard-event-discord-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5865F2;
    flex-shrink: 0;
}

.dashboard-event-discord-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-event-discord-copy strong {
    color: #ffffff;
    font-size: 1rem;
}

.dashboard-event-discord-copy span {
    color: #b0b0b0;
    font-size: 0.88rem;
}

.dashboard-event-discord-cta {
    font-size: 0.85rem;
    color: #c9cdf5;
    white-space: nowrap;
    font-weight: 600;
}

.dashboard-event-schedule-preview {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-event-schedule-preview li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #d0d0d0;
    font-size: 0.9rem;
}

.schedule-preview-time {
    font-size: 0.75rem;
    color: #03a9f4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.schedule-preview-title {
    color: #ffffff;
    font-weight: 600;
}

.schedule-preview-loc {
    color: #888;
    font-size: 0.82rem;
}

/* Calendar view on the Schedule tab */
.dashboard-event-calendar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dashboard-event-calendar-day-head {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(3, 169, 244, 0.25);
}

.dashboard-event-calendar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-event-calendar-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
}

.dashboard-event-calendar-item-link {
    cursor: pointer;
    grid-template-columns: 110px 1fr auto;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dashboard-event-calendar-item-link:hover {
    border-color: #03a9f4;
    background: rgba(3, 169, 244, 0.06);
    text-decoration: none;
    color: inherit;
}

.dashboard-event-calendar-chev {
    color: #555;
    align-self: center;
}

.dashboard-event-calendar-rel {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-event-calendar-item.is-now {
    border-color: rgba(76, 175, 80, 0.55);
    background: rgba(76, 175, 80, 0.08);
}

.dashboard-event-calendar-item.is-past {
    opacity: 0.55;
}

/* Compact variant used on the Overview card */
.dashboard-event-calendar-compact .dashboard-event-calendar-item {
    padding: 8px 12px;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    margin-bottom: 6px;
}

.dashboard-event-calendar-compact .dashboard-event-calendar-item-link {
    grid-template-columns: 80px 1fr auto;
}

.dashboard-event-calendar-compact .dashboard-event-calendar-start {
    font-size: 0.95rem;
}

.dashboard-event-calendar-compact .dashboard-event-calendar-title {
    font-size: 0.92rem;
}

.dashboard-event-calendar-compact .dashboard-event-calendar-day-head {
    font-size: 0.8rem;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

.dashboard-event-calendar-compact .dashboard-event-calendar-location {
    font-size: 0.78rem;
    margin-top: 2px;
}

.dashboard-event-calendar-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: #03a9f4;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    padding-top: 2px;
}

.dashboard-event-calendar-start {
    font-size: 1.1rem;
}

.dashboard-event-calendar-dash,
.dashboard-event-calendar-end {
    color: #888;
    font-size: 0.8rem;
    font-weight: 500;
}

.dashboard-event-calendar-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-event-calendar-now {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: dashboardPulse 1.6s ease-in-out infinite;
}

.dashboard-event-calendar-location {
    margin-top: 4px;
    font-size: 0.82rem;
    color: #999;
}

.dashboard-event-calendar-location i {
    margin-right: 4px;
    color: #03a9f4;
}

.dashboard-event-calendar-desc {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .dashboard-event-calendar-item {
        grid-template-columns: 1fr;
    }
    .dashboard-event-calendar-time {
        flex-direction: row;
        gap: 8px;
    }
}

.dashboard-event-venue-card {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-event-venue-card h3 i {
    color: #03a9f4;
    margin-right: 6px;
}

.dashboard-event-venue-name {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
}

.dashboard-nav-discord {
    color: #c9cdf5 !important;
}

.dashboard-nav-discord:hover {
    background: rgba(88, 101, 242, 0.12) !important;
    color: #ffffff !important;
}

.dashboard-event-tickets {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}

.dashboard-event-ticket {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    flex-wrap: wrap;
}

.dashboard-event-ticket-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.dashboard-event-ticket-seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: rgba(3, 169, 244, 0.1);
    border: 1px solid rgba(3, 169, 244, 0.3);
    border-radius: 8px;
    min-width: 72px;
}

.dashboard-event-ticket-seat-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: #03a9f4;
    line-height: 1;
}

.dashboard-event-ticket-seat-caption {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.dashboard-event-ticket-meta {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.dashboard-event-ticket-meta > div {
    margin-bottom: 4px;
}

.dashboard-event-ticket-meta > div:last-child {
    margin-bottom: 0;
}

.dashboard-event-ticket-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-event-prose {
    font-size: 0.95rem;
    color: #d0d0d0;
    line-height: 1.6;
    white-space: pre-wrap;
}

.dashboard-event-tournaments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-event-tournament {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    flex-wrap: wrap;
}

.dashboard-event-tournament-main {
    flex: 1;
    min-width: 0;
}

.dashboard-event-tournament-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.dashboard-event-tournament-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #999;
}

.dashboard-event-tournament-meta i {
    margin-right: 4px;
    color: #03a9f4;
}

.dashboard-event-tournament-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-event-group-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-event-group-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #d0d0d0;
    font-size: 0.9rem;
}

.dashboard-event-group-list li .text-muted {
    font-size: 0.85rem;
}

.dashboard-event-attending-count {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 10px;
    vertical-align: middle;
}

.dashboard-event-attending-list {
    line-height: 1.9;
    color: #d0d0d0;
    font-size: 0.9rem;
    word-spacing: 2px;
}

.dashboard-event-attending-sep {
    color: #555;
    margin: 0 6px;
}

.dashboard-event-attending-spectator {
    color: #888;
}

.dashboard-event-attending-key {
    margin-top: 14px;
    font-size: 0.8rem;
}

.dashboard-content {
    flex: 1;
    min-width: 0;
}

.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
}

.dashboard-panel h2 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.dashboard-panel h3 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.dashboard-form {
    max-width: 100%;
}

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

.dashboard-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 30px 0;
}

.dashboard-muted {
    color: #999;
    font-size: 0.9rem;
}

.dashboard-discord-action {
    margin-top: 12px;
}

.dashboard-table-wrap {
    overflow-x: auto;
    margin-bottom: 30px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #b0b0b0;
}

.dashboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-completed {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.status-confirmed {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.status-pending {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.status-processing {
    background: rgba(3, 169, 244, 0.15);
    color: #03a9f4;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.status-refunded {
    background: rgba(156, 39, 176, 0.15);
    color: #ce93d8;
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        width: 100%;
    }

    .dashboard-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
        gap: 6px;
    }

    .dashboard-mini-profile {
        flex-basis: 100%;
        margin-bottom: 4px;
    }

    .dashboard-nav-link {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .dashboard-nav-signout {
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }

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

    .dashboard-table thead {
        display: none;
    }

    .dashboard-table,
    .dashboard-table tbody,
    .dashboard-table tr,
    .dashboard-table td {
        display: block;
    }

    .dashboard-table tr {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid #333;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
    }

    .dashboard-table td {
        border-bottom: none;
        padding: 3px 0;
        font-size: 0.9rem;
    }

    .dashboard-table td[data-label]::before {
        content: attr(data-label);
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #999;
        min-width: 80px;
        margin-right: 10px;
    }

    .dashboard-table td:first-child {
        font-weight: 600;
        color: #fff;
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .dashboard-table td:last-child {
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 10px;
    }

    .dashboard-table td:last-child .d-flex {
        gap: 8px;
    }

    .dashboard-table td:last-child .btn-sm {
        flex: 1;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   Nav Cart Badge
   ============================================ */

.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
}

.nav-cart::after {
    display: none !important;
}

.nav-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    background: #03a9f4;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
}

.nav-cart-badge:empty {
    display: none;
}

.mobile-nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-nav-cart .nav-cart-badge {
    position: static;
    display: inline-block;
}

/* ============================================
   Checkout Progress Bar
   ============================================ */

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 20px 0;
}

.checkout-progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkout-progress-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    color: #999;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkout-progress-label {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.checkout-progress-step.active .checkout-progress-number {
    background: #03a9f4;
    color: #fff;
}

.checkout-progress-step.active .checkout-progress-label {
    color: #fff;
}

.checkout-progress-step.completed .checkout-progress-number {
    background: #4caf50;
    color: #fff;
}

.checkout-progress-step.completed .checkout-progress-number::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

.checkout-progress-step.completed .checkout-progress-number {
    font-size: 0;
}

.checkout-progress-step.completed .checkout-progress-label {
    color: #b0b0b0;
}

.checkout-progress-line {
    flex: 0 0 40px;
    height: 2px;
    background: #333;
}

/* ============================================
   Checkout Steps
   ============================================ */

.checkout-step-panel {
    animation: checkoutFadeIn 0.3s ease;
}

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

.checkout-progress-step.completed {
    cursor: pointer;
}

.checkout-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 12px;
    color: #b0b0b0;
}

.checkout-loading-overlay i {
    font-size: 2rem;
    color: #03a9f4;
}

.checkout-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-divider::before,
.checkout-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #2a2a2a;
}

.checkout-divider span {
    padding: 0 16px;
}

.checkout-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

.checkout-summary-sticky {
    position: sticky;
    top: 100px;
}

.checkout-mobile-summary {
    display: none;
    margin-bottom: 20px;
}

.checkout-mobile-summary details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.checkout-mobile-summary summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.checkout-mobile-summary summary::-webkit-details-marker {
    display: none;
}

.checkout-mobile-summary summary::before {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    margin-right: 10px;
    transition: transform 0.2s ease;
    color: #b0b0b0;
}

.checkout-mobile-summary details[open] summary::before {
    transform: rotate(180deg);
}

.checkout-mobile-summary-body {
    padding: 0 16px 16px;
}

.checkout-billing-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 16px;
}

.checkout-billing-summary h5 {
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #b0b0b0;
}

.checkout-billing-summary p {
    margin: 0;
    line-height: 1.8;
}

/* ============================================
   Postcode Lookup
   ============================================ */

.postcode-lookup-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.postcode-lookup-row .form-control {
    flex: 1;
}

.postcode-lookup-row .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.postcode-status {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.postcode-valid {
    color: #4caf50;
}

.postcode-invalid {
    color: #f44336;
}

/* ============================================
   Field Validation Errors
   ============================================ */

.field-error {
    display: none;
    color: #f44336;
    font-size: 13px;
    margin-top: 4px;
}

/* Order Confirmation */

.order-confirmation-header {
    text-align: center;
    padding: 40px 0 30px;
}

.order-confirmation-header i {
    color: #4caf50;
    margin-bottom: 16px;
}

.order-confirmation-header h2 {
    margin-bottom: 8px;
}

.order-confirmation-number {
    font-size: 1.1rem;
    color: #b0b0b0;
}

.order-confirmation-details {
    margin-bottom: 30px;
}

.order-confirmation-actions {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Order Invoice */

.order-invoice {
    max-width: 800px;
    margin: 0 auto;
}

.order-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.order-invoice-meta {
    text-align: right;
}

.order-invoice-meta p {
    margin: 0;
    color: #b0b0b0;
}

.order-invoice-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-invoice-billing {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
}

.order-invoice-billing h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #b0b0b0;
    margin-bottom: 8px;
}

.order-invoice-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

@media print {
    body { background: #fff; color: #000; }
    .page-hero, .site-nav, .site-footer, .order-invoice-actions { display: none; }
    .section-dark { background: #fff; }
    .order-invoice { max-width: 100%; }
    .admin-table { border-color: #ccc; }
    .admin-table th, .admin-table td { color: #000; border-color: #ccc; }
    .order-invoice-billing { border-color: #ccc; background: #f9f9f9; }
    .order-invoice-billing h4 { color: #999; }
    .order-invoice-status { border: 1px solid #ccc; }
}

/* ============================================
   Checkout Responsive
   ============================================ */

@media (max-width: 768px) {
    .checkout-progress-label {
        display: none;
    }

    .checkout-progress-step {
        padding: 8px;
    }

    .checkout-progress-line {
        flex: 0 0 20px;
    }

    .checkout-step-actions {
        flex-direction: column;
    }

    .checkout-step-actions .btn {
        width: 100%;
    }

    .checkout-summary-sticky {
        position: static;
        display: none;
    }

    .checkout-mobile-summary {
        display: block;
    }

    #holdTimerBlock {
        margin-top: 16px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid #333;
        border-radius: 8px;
    }

    .postcode-lookup-row {
        flex-wrap: wrap;
    }

    .postcode-lookup-row .form-control {
        flex: 1 1 100%;
    }

    /* Tighter table cells on checkout */
    .checkout-step-panel .admin-table th,
    .checkout-step-panel .admin-table td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }

    .checkout-step-panel .admin-table-wrap {
        overflow-x: auto;
    }

    /* Move hold timer above the step content */
    .checkout-step-panel .content-block > h3 {
        font-size: 1.25em;
    }
}

/* ============================================
   Tournaments
   ============================================ */

.page-hero-compact {
    padding: 110px 0 24px !important;
    text-align: left;
}

.page-hero-compact h1 {
    margin-bottom: 4px;
    font-size: 2.2rem;
}

.page-hero-compact p {
    color: #b0b0b0;
    margin-bottom: 0;
}

.section-tight {
    padding: 24px 0 60px !important;
}

.tournament-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.tournament-hero-status {
    flex-shrink: 0;
}

.tournament-tabs {
    border-bottom: 1px solid #333;
    margin-top: 0;
}

.tournament-tabs .nav-link {
    color: #b0b0b0;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
}

.tournament-tabs .nav-link:hover {
    color: #ffffff;
    border-bottom-color: #555;
}

.tournament-tabs .nav-link.active {
    color: #03a9f4;
    background: transparent;
    border-bottom-color: #03a9f4;
}

.tournament-tab-content {
    margin-top: 24px;
}

.tournament-info-card {
    background: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
}

.tournament-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.tournament-info-row:last-child {
    border-bottom: none;
}

.tournament-info-label {
    color: #999;
    font-size: 0.85rem;
}

.tournament-participant-list {
    max-height: 360px;
    overflow-y: auto;
}

.tournament-participant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.9rem;
}

.tournament-participant-row:last-child {
    border-bottom: none;
}

.tournament-participant-actions {
    display: flex;
    gap: 4px;
}

.tournament-participant-actions .btn {
    padding: 2px 6px;
    font-size: 0.75rem;
}

/* Match counters */
.tournament-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.tournament-counter {
    background: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.tournament-counter-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}

.tournament-counter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-top: 2px;
}

.tournament-counter-active {
    border-color: #03a9f4;
}

.tournament-counter-active .tournament-counter-value {
    color: #03a9f4;
}

.tournament-counter-done .tournament-counter-value {
    color: #4caf50;
}

/* Active matches panel */
.tournament-active-panel {
    background: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
}

.tournament-active-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tournament-active-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-left: 3px solid #03a9f4;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tournament-active-match:hover {
    background: #333;
}

.tournament-active-round {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    min-width: 90px;
}

.tournament-active-players {
    flex: 1;
    color: #ffffff;
    font-weight: 500;
}

.tournament-active-players .text-muted {
    margin: 0 8px;
    font-weight: 400;
}

/* Bracket layout */

.tournament-bracket-scroll {
    overflow-x: auto;
    margin-top: 16px;
    padding-bottom: 16px;
}

.tournament-bracket-section-label {
    margin-top: 24px;
    margin-bottom: 0;
    padding-bottom: 6px;
    color: #b0b0b0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #333;
}

.tournament-bracket-section-label:first-child {
    margin-top: 0;
}

.tournament-bracket {
    display: flex;
    align-items: stretch;
    gap: 48px;
    min-width: max-content;
    padding: 8px 4px;
}

.tournament-bracket-round {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.tournament-bracket-round-label {
    text-align: center;
    color: #999;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.tournament-bracket-matches {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-around;
    gap: 12px;
}

.tournament-match {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tournament-match-clickable {
    cursor: pointer;
}

.tournament-match-clickable:hover {
    border-color: #03a9f4;
    transform: translateY(-1px);
}

/* Per-status visual states */
.tournament-match-pending {
    opacity: 0.65;
    border-style: dashed;
}

.tournament-match-ready {
    border-color: #4a4a4a;
}

.tournament-match-in-progress {
    border-color: #03a9f4;
    box-shadow: 0 0 0 1px #03a9f4, 0 0 12px rgba(3, 169, 244, 0.3);
    animation: tournamentPulse 2s ease-in-out infinite;
}

@keyframes tournamentPulse {
    0%, 100% { box-shadow: 0 0 0 1px #03a9f4, 0 0 12px rgba(3, 169, 244, 0.3); }
    50%      { box-shadow: 0 0 0 1px #03a9f4, 0 0 18px rgba(3, 169, 244, 0.55); }
}

.tournament-match-completed {
    border-color: #4caf50;
}

/* The grand final match gets a gold accent regardless of status */
.tournament-match-final {
    border-color: #ffd700 !important;
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2010 100%);
}

/* Once the final has a winner, crank the treatment up */
.tournament-match-champion {
    box-shadow: 0 0 0 1px #ffd700, 0 0 24px rgba(255, 215, 0, 0.4) !important;
    animation: tournamentChampionGlow 2.2s ease-in-out infinite;
}

@keyframes tournamentChampionGlow {
    0%, 100% { box-shadow: 0 0 0 1px #ffd700, 0 0 24px rgba(255, 215, 0, 0.4); }
    50%      { box-shadow: 0 0 0 1px #ffd700, 0 0 36px rgba(255, 215, 0, 0.7); }
}

.tournament-match-champion .tournament-match-winner {
    background: rgba(255, 215, 0, 0.12);
}

.tournament-match-champion .tournament-match-winner .tournament-match-name {
    color: #ffd700;
    font-weight: 700;
}

.tournament-match-champion-crown {
    color: #ffd700;
    font-size: 0.7rem;
    margin-right: 4px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.6));
}

/* ===== Standings table (round robin + swiss) ===== */

.tournament-standings-table td,
.tournament-standings-table th {
    vertical-align: middle;
}

.tournament-standings-table .tournament-standings-medal {
    margin-left: 6px;
}

.tournament-standings-gold {
    background: rgba(255, 215, 0, 0.08) !important;
}
.tournament-standings-gold .tournament-standings-medal { color: #ffd700; }

.tournament-standings-silver {
    background: rgba(192, 192, 192, 0.06) !important;
}
.tournament-standings-silver .tournament-standings-medal { color: #c0c0c0; }

.tournament-standings-bronze {
    background: rgba(205, 127, 50, 0.06) !important;
}
.tournament-standings-bronze .tournament-standings-medal { color: #cd7f32; }

/* Round robin schedule */
.tournament-rr-schedule h6 {
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    margin-top: 16px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #333;
}

.tournament-rr-matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.tournament-rr-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 0.9rem;
}

.tournament-rr-match.is-done {
    border-color: #4caf50;
}

.tournament-rr-match.is-live {
    border-color: #03a9f4;
    box-shadow: 0 0 0 1px #03a9f4;
}

.tournament-rr-player {
    flex: 1;
    color: #d0d0d0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-rr-player:last-of-type {
    text-align: right;
}

.tournament-rr-player.is-winner {
    color: #ffffff;
    font-weight: 700;
}

.tournament-rr-score {
    flex-shrink: 0;
    color: #b0b0b0;
    font-size: 0.85rem;
    min-width: 50px;
    text-align: center;
}

/* Admin runner: RR match grid */
.tournament-match-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tournament-match-grid-round-label {
    color: #999;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #333;
}

.tournament-match-grid-matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.tournament-match-bye {
    opacity: 0.5;
    border-style: dotted;
    background: #181818;
}

.tournament-match-walkover {
    border-color: #ff9800 !important;
    border-style: dashed;
}

.tournament-match-walkover-label {
    padding: 4px 10px;
    background: rgba(255, 152, 0, 0.1);
    border-top: 1px dashed rgba(255, 152, 0, 0.5);
    color: #ff9800;
    font-size: 0.7rem;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.04em;
}

.tournament-match-walkover-label i {
    margin-right: 4px;
}

.tournament-participant-dq {
    opacity: 0.55;
}

.tournament-participant-dq strong {
    text-decoration: line-through;
    color: #999;
}

.tournament-match-live-stripe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 8px;
    background: #03a9f4;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tournament-match-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    animation: tournamentLiveDot 1.4s ease-in-out infinite;
}

@keyframes tournamentLiveDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.tournament-live-pill {
    display: inline-block;
    padding: 2px 8px;
    background: #03a9f4;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 10px;
    animation: tournamentPulse 2s ease-in-out infinite;
}

.tournament-active-match-live {
    border-left-color: #03a9f4;
    background: rgba(3, 169, 244, 0.08);
}

.tournament-counter-live {
    border-color: #03a9f4;
}

.tournament-counter-live .tournament-counter-value {
    color: #03a9f4;
}

.tournament-counter-ready {
    border-color: #4a4a4a;
}

/* Edit Bracket mode */
.tournament-bracket-edit-mode .tournament-match {
    cursor: default;
}

.tournament-bracket-edit-mode .tournament-match:hover {
    transform: none;
    border-color: #333;
}

.tournament-bracket-edit-mode .tournament-match-row[data-match-id] {
    cursor: pointer;
    transition: background 0.12s ease;
}

.tournament-bracket-edit-mode .tournament-match-row[data-match-id]:hover {
    background: rgba(3, 169, 244, 0.12);
}

.tournament-match-row-selected {
    background: rgba(255, 193, 7, 0.18) !important;
    box-shadow: inset 0 0 0 2px #ffc107;
}

.tournament-modal-details {
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 8px 12px;
}

.tournament-modal-details summary {
    cursor: pointer;
    color: #b0b0b0;
    font-size: 0.85rem;
    user-select: none;
}

.tournament-modal-details summary:hover {
    color: #ffffff;
}

/* Match modal status badges with distinct colors per state */
.tournament-match-status-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 10px;
    color: #ffffff;
}

.tournament-match-status-pending { background: #555; }
.tournament-match-status-ready { background: #4a5568; }
.tournament-match-status-in_progress { background: #03a9f4; }
.tournament-match-status-completed { background: #4caf50; }
.tournament-match-status-bye { background: #6c757d; }

/* Live polling indicator */
.tournament-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    font-weight: 600;
    vertical-align: middle;
}

.tournament-live-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.tournament-live-indicator.is-live {
    color: #4caf50;
}

.tournament-live-indicator.is-live .tournament-live-indicator-dot {
    animation: tournamentLiveDot 1.6s ease-in-out infinite;
}

.tournament-live-indicator.is-reconnecting {
    color: #ff9800;
}

.tournament-live-indicator.is-stopped {
    color: #999;
}

.tournament-tab-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    gap: 12px;
}

.tournament-tab-bar .tournament-tabs {
    border-bottom: none;
    margin-bottom: 0;
}

.tournament-tab-bar .tournament-live-indicator {
    padding-bottom: 10px;
}

/* Team management */
.tournament-team-members-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tournament-team-members-list li {
    padding: 6px 0;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.9rem;
    color: #d0d0d0;
}

.tournament-team-members-list li:last-child {
    border-bottom: none;
}

.tournament-invite-code {
    background: #2a2a2a;
    color: #03a9f4;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* Admin team panel */
.tournament-team-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 480px;
    overflow-y: auto;
}

.tournament-team-admin-row {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 10px 12px;
}

.tournament-team-admin-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.tournament-team-admin-members {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    font-size: 0.85rem;
}

.tournament-team-admin-members li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    color: #a0a0a0;
}

.tournament-team-admin-members li.is-checked-in {
    color: #4caf50;
}

.tournament-team-admin-members li i.fa-circle {
    color: #555;
}

.tournament-team-admin-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.tournament-team-admin-actions .btn {
    padding: 2px 8px;
    font-size: 0.75rem;
}

/* Free agents queue */
.tournament-free-agents-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.tournament-free-agent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.tournament-capacity-warn { color: #ffc107; }
.tournament-capacity-full { color: #f44336; }

/* ===== Champion banner (shown when a tournament is completed) ===== */

.tournament-champion-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2010 50%, #1a1a1a 100%);
    border: 1px solid #ffd700;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.15), inset 0 0 60px rgba(255, 215, 0, 0.05);
}

.tournament-champion-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
}

.tournament-champion-trophy {
    font-size: 3.5rem;
    color: #ffd700;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
    animation: tournamentTrophyGlow 2s ease-in-out infinite;
}

@keyframes tournamentTrophyGlow {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5)); transform: scale(1); }
    50%      { filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.85)); transform: scale(1.05); }
}

.tournament-champion-text {
    flex: 1;
}

.tournament-champion-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffd700;
    font-weight: 700;
    margin-bottom: 4px;
}

.tournament-champion-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.tournament-champion-runner-up {
    margin-top: 8px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.tournament-champion-runner-up i {
    color: #c0c0c0;
}

/* CSS-only confetti: 24 colored squares falling from the top */
.tournament-champion-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.tournament-champion-confetti span {
    position: absolute;
    top: -40px;
    width: 8px;
    height: 14px;
    opacity: 0;
    animation: tournamentConfettiFall linear infinite;
    animation-fill-mode: backwards;
}

@keyframes tournamentConfettiFall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.9; }
    100% { transform: translateY(260px) rotate(540deg); opacity: 0; }
}

/* Spread 24 confetti pieces across the banner with varied colors / delays / speeds */
.tournament-champion-confetti span:nth-child(1)  { left: 4%;  background: #ffd700; animation-duration: 4.2s; animation-delay: 0s;   }
.tournament-champion-confetti span:nth-child(2)  { left: 9%;  background: #03a9f4; animation-duration: 3.6s; animation-delay: 0.4s; }
.tournament-champion-confetti span:nth-child(3)  { left: 14%; background: #f44336; animation-duration: 4.5s; animation-delay: 0.9s; }
.tournament-champion-confetti span:nth-child(4)  { left: 19%; background: #4caf50; animation-duration: 3.8s; animation-delay: 1.4s; }
.tournament-champion-confetti span:nth-child(5)  { left: 24%; background: #ffd700; animation-duration: 4.0s; animation-delay: 0.2s; }
.tournament-champion-confetti span:nth-child(6)  { left: 29%; background: #9c27b0; animation-duration: 3.4s; animation-delay: 0.7s; }
.tournament-champion-confetti span:nth-child(7)  { left: 34%; background: #03a9f4; animation-duration: 4.6s; animation-delay: 1.1s; }
.tournament-champion-confetti span:nth-child(8)  { left: 39%; background: #ffd700; animation-duration: 3.9s; animation-delay: 1.6s; }
.tournament-champion-confetti span:nth-child(9)  { left: 44%; background: #f44336; animation-duration: 4.3s; animation-delay: 0.3s; }
.tournament-champion-confetti span:nth-child(10) { left: 49%; background: #4caf50; animation-duration: 3.7s; animation-delay: 0.8s; }
.tournament-champion-confetti span:nth-child(11) { left: 54%; background: #03a9f4; animation-duration: 4.1s; animation-delay: 1.3s; }
.tournament-champion-confetti span:nth-child(12) { left: 59%; background: #ffd700; animation-duration: 3.5s; animation-delay: 1.8s; }
.tournament-champion-confetti span:nth-child(13) { left: 64%; background: #9c27b0; animation-duration: 4.4s; animation-delay: 0.5s; }
.tournament-champion-confetti span:nth-child(14) { left: 69%; background: #f44336; animation-duration: 3.8s; animation-delay: 1.0s; }
.tournament-champion-confetti span:nth-child(15) { left: 74%; background: #ffd700; animation-duration: 4.2s; animation-delay: 1.5s; }
.tournament-champion-confetti span:nth-child(16) { left: 79%; background: #4caf50; animation-duration: 3.6s; animation-delay: 2.0s; }
.tournament-champion-confetti span:nth-child(17) { left: 84%; background: #03a9f4; animation-duration: 4.5s; animation-delay: 0.6s; }
.tournament-champion-confetti span:nth-child(18) { left: 89%; background: #ffd700; animation-duration: 3.9s; animation-delay: 1.2s; }
.tournament-champion-confetti span:nth-child(19) { left: 94%; background: #f44336; animation-duration: 4.0s; animation-delay: 1.7s; }
.tournament-champion-confetti span:nth-child(20) { left: 7%;  background: #9c27b0; animation-duration: 3.7s; animation-delay: 2.2s; }
.tournament-champion-confetti span:nth-child(21) { left: 22%; background: #ffd700; animation-duration: 4.3s; animation-delay: 0.9s; }
.tournament-champion-confetti span:nth-child(22) { left: 47%; background: #4caf50; animation-duration: 3.5s; animation-delay: 1.4s; }
.tournament-champion-confetti span:nth-child(23) { left: 72%; background: #03a9f4; animation-duration: 4.1s; animation-delay: 1.9s; }
.tournament-champion-confetti span:nth-child(24) { left: 87%; background: #ffd700; animation-duration: 3.8s; animation-delay: 0.4s; }

@media (max-width: 600px) {
    .tournament-champion-content { gap: 16px; }
    .tournament-champion-trophy { font-size: 2.5rem; }
    .tournament-champion-name { font-size: 1.4rem; }
}

/* Bye match: no opponent */
.tournament-match-bye-row {
    padding: 10px 12px;
}

.tournament-match-bye-label {
    padding: 6px 12px;
    background: #181818;
    border-top: 1px dashed #333;
    color: #707070;
    font-size: 0.7rem;
    text-align: center;
    font-style: italic;
}

.tournament-match-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
    font-size: 0.85rem;
    color: #d0d0d0;
}

.tournament-match-row + .tournament-match-row {
    border-top: 1px solid #2a2a2a;
}

.tournament-match-seed {
    color: #999;
    font-size: 0.75rem;
    min-width: 24px;
}

.tournament-match-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-match-score {
    color: #ffffff;
    font-weight: 600;
    min-width: 20px;
    text-align: right;
}

.tournament-match-winner {
    background: rgba(3, 169, 244, 0.08);
}

.tournament-match-winner .tournament-match-name {
    color: #ffffff;
    font-weight: 600;
}

/* Tournament listing block on LAN event page */
.lan-event-tournaments {
    margin-top: 24px;
}

.lan-event-tournament-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 6px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #d0d0d0;
    transition: border-color 0.15s ease;
}

.lan-event-tournament-card:hover {
    border-color: #03a9f4;
    color: #ffffff;
}

.lan-event-tournament-card-meta {
    color: #999;
    font-size: 0.85rem;
}
