/* 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: #808080;
    --bs-link-color: #03a9f4;
    --bs-link-hover-color: #4fc3f7;
    --bs-border-color: #333;
    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;
}

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.375em; }
h2 { font-size: 2.625em; }
h3 { font-size: 2.25em; }
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: rgb(20, 20, 20);
}

.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: #808080;
}

.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: #808080; }

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

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    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);
}

.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.5s 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: rgb(20, 20, 20);
    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 3s 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 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.6);
    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: #808080;
    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.5s 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(189, 189, 189, 0.4);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

.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: #808080;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

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

.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: #808080;
    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;
}

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

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: #808080;
}

.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: #808080;
    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: #808080;
    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: rgb(20, 20, 20);
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    padding: 20px 0;
}

.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: #808080;
    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: #808080;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

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

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

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

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

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

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

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

.notification-container {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 320px;
    max-width: 420px;
}

.notification-card {
    background: #242424;
    border-radius: 8px;
    border-left: 4px solid #03a9f4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.notification-card.success { border-left-color: #00bf87; }
.notification-card.error { border-left-color: #e53935; }
.notification-card.warning { border-left-color: #f79007; }

.notification-header {
    padding: 12px 16px 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.notification-body {
    padding: 4px 16px 12px;
    font-size: 0.85rem;
    color: #b0b0b0;
}


/* ============================================
   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: #808080;
    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;
    }

    .notification-container {
        min-width: 0;
        max-width: calc(100vw - 30px);
        right: 15px;
        left: 15px;
    }
}

/* ============================================
   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: #808080;
    margin-top: 2px;
}

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

.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    min-height: 60vh;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.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-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.admin-version-label {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: #666;
    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 {
    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;
}

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

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

.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-published,
.admin-badge-completed,
.admin-badge-active {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

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

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

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

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

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

.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(140px, 180px));
    gap: 12px;
}

.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: #666;
    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: #808080;
    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: #111;
    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: #808080;
    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: 400px;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    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;
}

@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: #666;
}

.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: #666;
    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: #666;
    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;
    }

    .admin-sidebar {
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        gap: 0;
    }

    .admin-sidebar::-webkit-scrollbar {
        display: none;
    }

    .admin-nav {
        flex-direction: row;
        gap: 4px;
        align-items: center;
    }

    .admin-nav-link {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .admin-nav-link i {
        display: none;
    }

    .admin-nav-footer {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-left: auto;
        padding-left: 15px;
        border-left: 1px solid #333;
        flex-shrink: 0;
    }
}

@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: #808080;
        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: #808080;
    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: #808080;
    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: #808080;
    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: #808080;
    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: #808080;
    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: #666;
    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;
}

.shop-variant-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #808080;
    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: #fff;
    color: #0a0a0a;
    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: #e0e0e0;
}

.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: #666;
    cursor: not-allowed;
}

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

.shop-product-description {
    color: #b0b0b0;
    line-height: 1.7;
}

/* Breadcrumbs */

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

.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: #808080;
    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: #808080;
}

.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: 48px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
    color: #ffffff;
    -moz-appearance: textfield;
}

.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: #808080;
    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: #666;
    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: #666;
    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: #808080;
    font-weight: 400;
    margin-left: 12px;
}

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

.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: #1e1e1e;
    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: #151515;
    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-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: #1e1e1e;
    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: #0d1117;
    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;
}

/* 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-block;
}

.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-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: #1e1e1e;
    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: #151515;
    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: #666;
}

.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: #666;
}

.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-hidden {
    display: none;
}

.layout-furniture-config {
    background: #1e1e1e;
    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-attendees-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lan-attendee-card {
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 14px;
}

.lan-attendee-seat {
    background: #03a9f4;
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.lan-attendee-name {
    font-size: 0.9rem;
    color: #ccc;
}

.lan-spectator-badge {
    background: #9c27b0;
}

.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 {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #0d1117;
    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: #1e1e1e;
    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: #151515;
    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;
}

@media print {
    .page-hero, .admin-sidebar, nav, footer, .btn { display: none !important; }
    .lan-ticket-card { border: 2px solid #000; }
    .section { padding: 0 !important; }
}

.seat-tag-row .form-label {
    font-size: 0.8rem;
    color: #03a9f4;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .seat-cell:not(.furniture-item) {
        width: 32px;
        height: 32px;
        font-size: 0.55rem;
    }

    .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;
}

.dashboard-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.dashboard-sidebar {
    width: 200px;
    flex-shrink: 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-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: #808080;
    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: #808080;
    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, 193, 7, 0.15);
    color: #ffc107;
}

.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 {
        flex-direction: column;
    }

    .dashboard-content {
        width: 100%;
    }

    .dashboard-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
        gap: 6px;
    }

    .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: #808080;
        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: #808080;
    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: #808080;
    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: #666;
    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-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;
}

/* ============================================
   Checkout Terms
   ============================================ */

.checkout-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.5;
}

.checkout-terms-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #03a9f4;
    cursor: pointer;
}

.checkout-terms-label a {
    color: #03a9f4;
}

.checkout-terms-label a:hover {
    color: #4fc3f7;
}

/* 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: #666; }
    .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;
    }

    #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: #1f1f1f;
    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: #808080;
    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: #1f1f1f;
    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: #808080;
    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: #1f1f1f;
    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: #808080;
    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: #808080;
    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: #1f1f1f;
    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: #1f1f1f;
    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: #808080;
    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: #666;
}

.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: #808080;
    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: #1f1f1f;
    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: #808080;
    font-size: 0.85rem;
}
