/* ═══════════════════════════════════════════════════════════
   CRICKET AUCTION — Premium IPL-Style Design System
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #050810;
    --bg-secondary: #0c1018;
    --bg-card: rgba(16, 22, 36, 0.85);
    --bg-card-solid: #101624;
    --bg-hover: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(12, 16, 24, 0.72);
    --accent: #e11d2e;
    --accent-2: #ff2d40;
    --accent-hover: #ff3d52;
    --accent-glow: rgba(225, 29, 46, 0.45);
    --accent-soft: rgba(225, 29, 46, 0.12);
    --gold: #f5b731;
    --gold-glow: rgba(245, 183, 49, 0.35);
    --gold-soft: rgba(245, 183, 49, 0.12);
    --text-primary: #f4f7fb;
    --text-secondary: #9aa8be;
    --text-muted: #5c6b82;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);
    --success: #10d97e;
    --warning: #f5a623;
    --danger: #ff4757;
    --info: #3d9eff;
    --purple: #8b5cf6;
    --sidebar-width: 272px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --gradient-hero: linear-gradient(135deg, #e11d2e 0%, #ff6b35 50%, #f5b731 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
    --font-display: 'Bebas Neue', 'Rajdhani', sans-serif;
    --font-body: 'Outfit', 'Inter', system-ui, sans-serif;
    --auction-panel-bg: linear-gradient(165deg, rgba(20, 26, 42, 0.98) 0%, rgba(6, 8, 14, 0.99) 100%);
    --auction-panel-controls-bg: rgba(0, 0, 0, 0.18);
    --auction-panel-divider-bg: rgba(0, 0, 0, 0.28);
    --auction-panel-pattern: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(225, 29, 46, 0.1) 0%, transparent 65%), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --auction-surface: rgba(0, 0, 0, 0.25);
    --auction-btn-bg: rgba(255, 255, 255, 0.03);
    --auction-btn-hover-border: rgba(255, 255, 255, 0.2);
    --auction-pill-bg: rgba(255, 255, 255, 0.03);
    --surface-input: rgba(0, 0, 0, 0.25);
    --surface-input-focus: rgba(0, 0, 0, 0.35);
    --surface-table-head: rgba(0, 0, 0, 0.15);
    --surface-inset: rgba(0, 0, 0, 0.2);
    --surface-muted: rgba(0, 0, 0, 0.15);
    --surface-card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    --surface-overlay: rgba(0, 0, 0, 0.75);
    --surface-overlay-soft: rgba(0, 0, 0, 0.55);
    --avatar-fill: #0c1018;
    --progress-track: rgba(255, 255, 255, 0.06);
    --ring-track: rgba(255, 255, 255, 0.07);
    --btn-stepper-bg: rgba(255, 255, 255, 0.03);
    --panel-subtle: rgba(255, 255, 255, 0.03);
    --shadow-card-hover: 0 20px 50px rgba(0, 0, 0, 0.35);
    --shadow-dialog: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-elevated: 0 32px 100px rgba(0, 0, 0, 0.55);
    --shadow-toast: 0 12px 40px rgba(0, 0, 0, 0.4);
    --live-page-bg: #030508;
    --live-scroll-fade: rgba(3, 5, 8, 0.98);
    --live-metric-shadow: none;
    --live-tile-shadow: none;
    --live-spotlight-beam: radial-gradient(ellipse at center, rgba(245, 183, 49, 0.12) 0%, transparent 70%);
    --live-ticker-hero-bg: linear-gradient(135deg, rgba(245, 183, 49, 0.1), rgba(225, 29, 46, 0.05));
    --live-ticker-hero-border: rgba(245, 183, 49, 0.3);
    --live-gold-text: var(--gold);
    --live-metric-bg: rgba(10, 14, 24, 0.9);
    --live-card-bg: linear-gradient(160deg, rgba(18, 24, 40, 0.95) 0%, rgba(8, 10, 18, 0.98) 100%);
    --live-card-border: rgba(255, 255, 255, 0.09);
    --live-card-shadow: 0 32px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --live-tile-bg: linear-gradient(165deg, rgba(22, 28, 44, 0.95) 0%, rgba(8, 10, 18, 0.98) 100%);
    --live-feed-bg: linear-gradient(135deg, rgba(16, 22, 36, 0.92) 0%, rgba(8, 10, 18, 0.95) 100%);
    --live-tile-budget-bg: rgba(0, 0, 0, 0.28);
    --live-tile-budget-border: rgba(255, 255, 255, 0.05);
    --live-ticker-bg: rgba(0, 0, 0, 0.45);
    --landing-nav-bg: rgba(5, 8, 16, 0.6);
    --landing-nav-scrolled: rgba(5, 8, 16, 0.92);
    --swatch-border: rgba(255, 255, 255, 0.2);
    --swatch-inset: rgba(255, 255, 255, 0.08);
    --preset-border: rgba(255, 255, 255, 0.15);
    --image-border-active: rgba(255, 255, 255, 0.12);
    --image-preview-border: rgba(255, 255, 255, 0.15);
    --status-pill-muted-bg: rgba(255, 255, 255, 0.05);
    --shimmer-highlight: rgba(255, 255, 255, 0.3);
    --sold-overlay-bg: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.95) 100%);
    --sold-overlay-solid: rgba(4, 6, 12, 0.97);
    --sold-popup-bg: var(--bg-card-solid);
    --sold-popup-border: var(--border-strong);
}

[data-theme="light"] {
    --bg-primary: #eef2f8;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-solid: #ffffff;
    --bg-hover: rgba(0, 0, 0, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.88);
    --text-primary: #0d1520;
    --text-secondary: #4a5a72;
    --text-muted: #7a8ba3;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --accent-soft: rgba(225, 29, 46, 0.08);
    --gold-soft: rgba(245, 183, 49, 0.15);
    --auction-panel-bg: linear-gradient(165deg, #ffffff 0%, #f0f4fa 100%);
    --auction-panel-controls-bg: rgba(0, 0, 0, 0.03);
    --auction-panel-divider-bg: rgba(0, 0, 0, 0.04);
    --auction-panel-pattern: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(225, 29, 46, 0.06) 0%, transparent 65%), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --auction-surface: rgba(0, 0, 0, 0.04);
    --auction-btn-bg: #ffffff;
    --auction-btn-hover-border: rgba(0, 0, 0, 0.16);
    --auction-pill-bg: #ffffff;
    --surface-input: rgba(0, 0, 0, 0.03);
    --surface-input-focus: #ffffff;
    --surface-table-head: rgba(0, 0, 0, 0.04);
    --surface-inset: rgba(0, 0, 0, 0.04);
    --surface-muted: rgba(0, 0, 0, 0.03);
    --surface-card-gradient: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
    --surface-overlay: rgba(15, 23, 42, 0.45);
    --surface-overlay-soft: rgba(15, 23, 42, 0.35);
    --avatar-fill: #f0f4fa;
    --progress-track: rgba(0, 0, 0, 0.08);
    --ring-track: rgba(0, 0, 0, 0.08);
    --btn-stepper-bg: rgba(0, 0, 0, 0.04);
    --panel-subtle: rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-dialog: 0 25px 60px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 32px 80px rgba(15, 23, 42, 0.14);
    --shadow-toast: 0 12px 40px rgba(15, 23, 42, 0.12);
    --live-page-bg: linear-gradient(165deg, #d8e2f0 0%, #eef3fa 38%, #f8fafc 100%);
    --live-scroll-fade: rgba(248, 250, 252, 0.98);
    --live-metric-shadow: 0 8px 28px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --live-tile-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
    --live-spotlight-beam: radial-gradient(ellipse at center, rgba(245, 183, 49, 0.28) 0%, transparent 62%);
    --live-ticker-hero-bg: linear-gradient(135deg, rgba(255, 248, 230, 0.95) 0%, rgba(255, 240, 240, 0.7) 100%);
    --live-ticker-hero-border: rgba(245, 183, 49, 0.45);
    --live-gold-text: #b8860b;
    --live-metric-bg: #ffffff;
    --live-card-bg: #ffffff;
    --live-card-border: rgba(15, 23, 42, 0.08);
    --live-card-shadow: 0 20px 50px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.04);
    --live-tile-bg: #ffffff;
    --live-feed-bg: #ffffff;
    --live-tile-budget-bg: linear-gradient(180deg, rgba(245, 183, 49, 0.1) 0%, rgba(245, 183, 49, 0.04) 100%);
    --live-tile-budget-border: rgba(245, 183, 49, 0.22);
    --live-ticker-bg: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
    --landing-nav-bg: rgba(255, 255, 255, 0.75);
    --landing-nav-scrolled: rgba(255, 255, 255, 0.95);
    --swatch-border: rgba(0, 0, 0, 0.12);
    --swatch-inset: rgba(0, 0, 0, 0.04);
    --preset-border: rgba(0, 0, 0, 0.1);
    --image-border-active: rgba(0, 0, 0, 0.1);
    --image-preview-border: rgba(0, 0, 0, 0.12);
    --status-pill-muted-bg: rgba(0, 0, 0, 0.04);
    --shimmer-highlight: rgba(255, 255, 255, 0.65);
    --sold-overlay-bg: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%);
    --sold-overlay-solid: rgba(255, 255, 255, 0.88);
    --sold-popup-bg: #ffffff;
    --sold-popup-border: rgba(15, 23, 42, 0.1);
    --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.1);
    --gradient-card: linear-gradient(145deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(225, 29, 46, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(245, 183, 49, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(61, 158, 255, 0.04) 0%, transparent 50%);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Animated mesh background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(225, 29, 46, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(245, 183, 49, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(61, 158, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent-2); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--gold); }

/* ─── Typography ─── */
.display-title {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

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

/* ─── Layout ─── */
.admin-layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
}

.sidebar-brand::after {
    content: '';
    position: absolute;
    bottom: 0; left: 1.5rem; right: 1.5rem;
    height: 1px;
    background: var(--gradient-hero);
    opacity: 0.4;
}

.sidebar-brand .logo {
    width: 48px; height: 48px;
    background: var(--gradient-hero);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.sidebar-brand h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.sidebar-brand small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-nav { padding: 1.25rem 0 2rem; }

.nav-section {
    padding: 0.75rem 1.5rem 0.35rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.5rem;
    margin: 2px 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s ease;
    border-radius: var(--radius-sm);
    border-left: none;
    position: relative;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    transition: transform 0.25s;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(3px);
}

.nav-link:hover i { color: var(--accent-2); }

.nav-link.active {
    background: var(--accent-soft);
    color: var(--text-primary);
    box-shadow: inset 3px 0 0 var(--accent);
}

.nav-link.active i { color: var(--accent-2); }

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-layout.sidebar-closed .sidebar {
    transform: translateX(-100%);
}

.admin-layout.sidebar-closed .main-content {
    margin-left: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: var(--surface-overlay-soft);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-hover);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: var(--accent-soft);
    border-color: rgba(230, 57, 70, 0.35);
    color: var(--accent-2);
}

.sidebar-toggle-btn i {
    font-size: 1rem;
}

.topbar {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar__left { min-width: 0; flex: 1 1 auto; }
.topbar__right { flex: 0 0 auto; }

.league-switcher {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 220px;
}

.league-switcher__icon {
    color: var(--gold);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.league-switcher__badge {
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
}

.context-picker {
    position: relative;
}

.context-picker__trigger {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
}

.context-picker__trigger::-webkit-details-marker {
    display: none;
}

.context-picker__caret {
    font-size: 0.55rem;
    opacity: 0.75;
}

.context-picker__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 200px;
    padding: 0.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

.context-picker__item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.context-picker__item:hover {
    background: var(--bg-hover);
}

.context-picker__item.is-active {
    background: rgba(225, 29, 46, 0.1);
}

.context-picker__item-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.context-picker__item-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.league-pill-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.league-pill-picker--compact {
    gap: 0.35rem;
}

.league-pill-picker__btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.league-pill-picker__btn:hover {
    border-color: rgba(225, 29, 46, 0.35);
    color: var(--text-primary);
}

.league-pill-picker__btn.is-active {
    background: rgba(225, 29, 46, 0.12);
    border-color: rgba(225, 29, 46, 0.45);
    color: var(--accent-2);
    font-weight: 600;
}

.league-context-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 1.25rem;
}

/* ─── League page header (players / teams / auction) ─── */
.league-page-header {
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.league-page-header--empty {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.league-page-header__empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.league-page-header__hero {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.06) 0%, rgba(245, 183, 49, 0.04) 100%);
}

.league-page-header__logo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 16px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    overflow: hidden;
    border: 2px solid rgba(245, 183, 49, 0.25);
}

.league-page-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.league-page-header__body {
    flex: 1;
    min-width: 0;
}

.league-page-header__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.league-page-header__eyebrow {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 0.2rem;
}

.league-page-header__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    line-height: 1.05;
    margin: 0;
}

.league-page-header__slug {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    word-break: break-all;
}

.league-page-header__slug i {
    color: var(--gold);
    margin-right: 0.2rem;
}

.league-page-header__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.65rem 0 0;
    line-height: 1.45;
}

.league-page-header__actions {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
}

.league-page-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    margin-top: 0.85rem;
}

.league-page-header__meta-item {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.league-page-header__meta-item i {
    color: var(--gold);
    margin-right: 0.25rem;
    width: 0.9rem;
    text-align: center;
}

.league-page-header__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-hover);
}

.league-page-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.league-page-nav-link:hover,
.league-page-nav-link.is-active {
    color: var(--text-primary);
    border-color: rgba(245, 183, 49, 0.45);
    background: rgba(245, 183, 49, 0.1);
}

.league-page-nav-link.is-active {
    color: var(--gold);
}

.league-page-nav-link i:first-child {
    font-size: 0.72rem;
    color: var(--gold);
}

.auction-settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.auction-settings-toggle input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--gold);
}

.auction-settings-section-title {
    margin: 0 0 1rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auction-settings-section-title:not(:first-child) {
    margin-top: 1.5rem;
}

.auction-settings-card,
.league-create-card {
    max-width: 800px;
}

.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.35rem;
    line-height: 1.45;
}

.league-create-divider {
    height: 1px;
    margin: 1.5rem 0;
    background: var(--border);
}

.league-create-submit {
    width: 100%;
    margin-top: 1.25rem;
}

.auction-settings-toggle-wrap {
    display: flex;
    align-items: flex-end;
    padding-bottom: 1.65rem;
}

.settings-reveal__panel {
    display: none;
}

.settings-reveal:has(#playerPaymentEnabled:checked) .settings-reveal__panel {
    display: block;
}

.registration-limit-preview--hint {
    opacity: 0.9;
}

.icon-player-settings {
    margin-top: 0.5rem;
}

/* ─── League list cards (My Leagues) ─── */
.league-mgmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.league-mgmt-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.league-mgmt-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.league-mgmt-card__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.league-mgmt-card__logo {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 14px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    overflow: hidden;
}

.league-mgmt-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.league-mgmt-card__info {
    min-width: 0;
    flex: 1;
}

.league-mgmt-card__name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    word-break: break-word;
}

.league-mgmt-card__slug {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.league-mgmt-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.5rem;
}

.league-mgmt-card__date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.league-mgmt-card__date i {
    color: var(--gold);
    margin-right: 0.2rem;
}

.league-mgmt-card__section-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
}

.league-mgmt-card__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.league-mgmt-action {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s;
}

.league-mgmt-action:hover {
    border-color: rgba(245, 183, 49, 0.4);
    color: var(--text-primary);
    background: rgba(245, 183, 49, 0.08);
}

.league-mgmt-action i:first-child {
    color: var(--gold);
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.league-mgmt-action__ext {
    margin-left: auto;
    font-size: 0.55rem;
    opacity: 0.5;
}

.league-mgmt-card__footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.league-mgmt-card__footer .btn-primary {
    flex: 1;
    justify-content: center;
}

.league-delete-zone {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.05);
}

.league-delete-zone__title {
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.league-delete-zone__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
    line-height: 1.5;
}

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

.topbar h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    min-width: 0;
}

.page-content { padding: 2rem; }

/* ─── Cards ─── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card:has(.app-select.is-open),
.filter-bar-card {
    overflow: visible;
    z-index: 5;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--gradient-card);
    opacity: 0.8;
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i { color: var(--accent-2); }

/* ─── Stats Grid ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient-hero);
    opacity: 0.7;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-card .stat-icon {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    font-size: 1.75rem;
    opacity: 0.12;
}

.stat-card--gold::before { background: linear-gradient(90deg, var(--gold), #ff8c00); }
.stat-card--green::before { background: linear-gradient(90deg, var(--success), #06b6d4); }
.stat-card--blue::before { background: linear-gradient(90deg, var(--info), var(--purple)); }
.stat-card--red::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.stat-card--gold .stat-value { color: var(--gold); }
.stat-card--green .stat-value { color: var(--success); }
.stat-card--blue .stat-value { color: var(--info); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: var(--border);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-strong); }

.btn-success { background: linear-gradient(135deg, #10d97e, #06b6d4); color: #fff; }
.btn-warning { background: linear-gradient(135deg, var(--warning), #ff8c00); color: #000; }
.btn-danger { background: linear-gradient(135deg, var(--danger), var(--accent)); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ff8c00); color: #000; }

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; border-radius: 12px; }
.btn-xl { padding: 1.15rem 2.75rem; font-size: 1.05rem; border-radius: 14px; }

/* ─── Forms ─── */
.form-group { margin-bottom: 1.35rem; }
.form-control.is-invalid { border-color: var(--danger); }
.field-error { display: block; margin-top: 0.35rem; color: var(--danger); font-size: 0.78rem; }

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    background: var(--surface-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px var(--accent-glow);
    background: var(--surface-input-focus);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 11px 7px;
    color-scheme: dark;
}

[data-theme="light"] select.form-control {
    color-scheme: light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");
}

select.form-control option {
    background-color: var(--bg-card-solid);
    color: var(--text-primary);
}

/* Custom app select (replaces native dropdown UI) */
.app-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.app-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.app-select__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1.1rem;
    background: var(--surface-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-select__trigger::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.68rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.app-select.is-open .app-select__trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--surface-input-focus);
}

.app-select.is-open .app-select__trigger::after {
    transform: rotate(180deg);
    color: var(--accent-2);
}

.app-select.is-disabled .app-select__trigger {
    opacity: 0.55;
    cursor: not-allowed;
}

.app-select__menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 400;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.35rem;
    background-color: var(--bg-card-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.app-select__menu.is-menu-open {
    display: block;
}

.app-select__menu[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.app-select__menu--floating {
    position: fixed !important;
    right: auto !important;
    z-index: 10000;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-strong);
    margin: 0;
}

.app-select__menu--searchable.is-menu-open {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.app-select__search-wrap {
    flex-shrink: 0;
    padding: 0.45rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card-solid);
}

.app-select__search {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2rem;
    background: var(--surface-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%235c6b82'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.65rem center;
    background-size: 0.85rem;
}

.app-select__search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.app-select__search::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.app-select__list {
    overflow-y: auto;
    padding: 0.35rem;
    flex: 1;
    min-height: 0;
}

.app-select__empty {
    padding: 0.85rem 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

.app-select__option[hidden] {
    display: none !important;
}

.app-select__menu::-webkit-scrollbar {
    width: 6px;
}

.app-select__menu::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}

.app-select__option {
    display: block;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-card-solid);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.app-select__option:hover:not(:disabled) {
    background: var(--bg-hover);
}

.app-select__option.is-selected {
    background: rgba(225, 29, 46, 0.12);
    color: var(--accent-2);
}

.app-select__option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.form-row-flex .app-select {
    flex: 1 1 180px;
    min-width: 160px;
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar__search {
    flex: 2 1 220px;
    min-width: 180px;
}

.filter-bar__select {
    flex: 1 1 180px;
    min-width: 170px;
}

.grid-2 .app-select,
.form-group .app-select {
    width: 100%;
}

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

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ─── Number Input ─── */
.number-input {
    display: flex;
    align-items: stretch;
    border-radius: var(--radius-lg, 14px);
    border: 1px solid var(--border);
    background: var(--surface-card-gradient);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.number-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px var(--accent-glow);
}

.number-input__field {
    flex: 1;
    min-width: 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-right: 0.75rem !important;
}

.number-input__field:focus {
    box-shadow: none !important;
    background: transparent !important;
}

.number-input__steppers {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 38px;
    border-left: 1px solid var(--border);
}

.number-input__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: var(--btn-stepper-bg);
    color: var(--text-muted);
    font-size: 0.6rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.number-input__btn:hover {
    background: rgba(230, 57, 70, 0.15);
    color: var(--accent);
}

.number-input__btn:active {
    background: rgba(230, 57, 70, 0.25);
}

.number-input__btn + .number-input__btn {
    border-top: 1px solid var(--border);
}

.number-input--compact {
    border-radius: var(--radius-sm);
}

.number-input--compact .number-input__steppers {
    width: 28px;
}

.number-input--compact .number-input__field {
    padding: 0.5rem 0.5rem !important;
    font-size: 0.85rem;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap i {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.input-icon-wrap .form-control { padding-left: 2.75rem; }

/* ─── Tables ─── */
.table-responsive { overflow-x: auto; border-radius: var(--radius-sm); }

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

table th {
    text-align: left;
    padding: 0.9rem 1.1rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    background: var(--surface-table-head);
}

table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    transition: background 0.2s;
}

table tbody td a:not(.btn) {
    color: var(--text-primary);
    font-weight: 500;
}

table tbody td a:not(.btn):hover {
    color: var(--accent-2);
}

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

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 217, 126, 0.15); color: var(--success); border: 1px solid rgba(16, 217, 126, 0.25); }
.badge-warning { background: rgba(245, 166, 35, 0.15); color: var(--warning); border: 1px solid rgba(245, 166, 35, 0.25); }
.badge-danger { background: rgba(255, 71, 87, 0.15); color: var(--danger); border: 1px solid rgba(255, 71, 87, 0.25); }
.badge-primary { background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(225, 29, 46, 0.25); }
.badge-secondary { background: rgba(100, 116, 139, 0.12); color: var(--text-muted); border: 1px solid var(--border); }
.badge-info { background: rgba(61, 158, 255, 0.12); color: var(--info); border: 1px solid rgba(61, 158, 255, 0.25); }
.badge-gold { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(245, 183, 49, 0.3); }

.badge-live {
    background: var(--accent-soft);
    color: var(--accent-2);
    animation: livePulse 2s ease-in-out infinite;
}
.badge-live::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: liveDot 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 6px transparent; }
}
@keyframes liveDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ─── Alerts ─── */
.alert {
    padding: 1rem 1.35rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.3s;
    backdrop-filter: blur(8px);
}

.alert-success { background: rgba(16, 217, 126, 0.1); border: 1px solid rgba(16, 217, 126, 0.3); color: var(--success); }
.alert-danger { background: rgba(255, 71, 87, 0.1); border: 1px solid rgba(255, 71, 87, 0.3); color: var(--danger); }
.alert-warning { background: rgba(245, 166, 35, 0.1); border: 1px solid rgba(245, 166, 35, 0.3); color: var(--warning); }

/* ─── Player Photos ─── */
.player-photo {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.player-photo-lg {
    width: 200px; height: 200px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-card-solid), var(--bg-card-solid)) padding-box,
                var(--gradient-hero) border-box;
    box-shadow: var(--shadow-glow);
}

.player-photo-xl {
    width: clamp(160px, 42vw, 280px);
    height: clamp(160px, 42vw, 280px);
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(var(--bg-card-solid), var(--bg-card-solid)) padding-box,
                var(--gradient-hero) border-box;
    box-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(245, 183, 49, 0.15);
    animation: playerGlow 3s ease-in-out infinite;
    max-width: 100%;
}

.auction-stage__timer {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 2;
}

@keyframes playerGlow {
    0%, 100% { box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(245, 183, 49, 0.1); }
    50% { box-shadow: 0 0 60px var(--accent-glow), 0 0 100px rgba(245, 183, 49, 0.2); }
}

/* ─── Team Cards ─── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.25rem;
}

.team-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--team-accent, var(--gradient-hero));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.team-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md), 0 0 30px var(--accent-glow);
}

.team-card.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.5);
}

.team-logo,
.team-card .team-logo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    max-width: 72px;
    max-height: 72px;
    border-radius: 50%;
    margin: 0 auto 0.875rem;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 2px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.team-logo-placeholder {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    border-radius: 50%;
    margin: 0 auto 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
}

/* Manage Teams page */
.teams-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.teams-page__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.teams-page__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%);
    pointer-events: none;
}

.teams-page__hero-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.teams-page__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-2);
    margin-bottom: 0.35rem;
}

.teams-page__title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.teams-page__league {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.5rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-2);
    background: color-mix(in srgb, var(--accent-2) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-2) 35%, var(--border));
    border-radius: 100px;
}

.teams-page__league i { font-size: 0.75rem; }

.teams-page__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 42ch;
}

.teams-page__summary {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.teams-page__summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.teams-page__summary-item strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.teams-page__summary-item span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 600;
}

.teams-page__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.teams-page__generate {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
    padding: 0.45rem 0.55rem 0.45rem 0.85rem;
    background: var(--surface-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.teams-page__delete-auto {
    margin: 0;
}

.teams-page__generate-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
}

.teams-page__generate-count {
    width: 3.25rem !important;
    min-width: 3.25rem;
    max-width: 3.25rem;
    text-align: center;
    padding: 0.45rem 0.35rem !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm) !important;
    background: var(--bg-card-solid) !important;
    border-color: var(--border-strong) !important;
    -moz-appearance: textfield;
}

.teams-page__generate-count::-webkit-outer-spin-button,
.teams-page__generate-count::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.teams-page__empty {
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}

.teams-page__empty-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-inset);
    border: 1px solid var(--border);
    color: var(--accent-2);
    font-size: 1.75rem;
}

.teams-page__empty h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    letter-spacing: 0.04em;
}

.teams-page__empty p {
    color: var(--text-muted);
    max-width: 36ch;
    margin: 0 auto 1.5rem;
    font-size: 0.92rem;
}

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

.teams-page .team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    cursor: default;
    padding: 0;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}

.teams-page .team-card::before {
    display: none;
}

.teams-page .team-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--team-color, var(--accent)) 45%, var(--border));
    box-shadow: var(--shadow-md), 0 0 0 1px color-mix(in srgb, var(--team-color, var(--accent)) 12%, transparent);
}

.teams-page .team-card__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--team-color, var(--accent)), color-mix(in srgb, var(--team-color, var(--accent)) 40%, transparent));
}

.teams-page .team-card__body {
    padding: 1.35rem 1.35rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    flex: 1;
}

.teams-page .team-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.teams-page .team-card__logo {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--team-color, var(--accent)) 18%, var(--bg-hover));
    border: 2px solid color-mix(in srgb, var(--team-color, var(--accent)) 55%, var(--border));
    box-shadow: 0 0 18px color-mix(in srgb, var(--team-color, var(--accent)) 25%, transparent);
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: #fff;
    font-weight: 400;
}

.teams-page .team-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teams-page .team-card__info {
    min-width: 0;
    flex: 1;
    padding-top: 0.15rem;
}

.teams-page .team-card__name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0 0 0.65rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.teams-page .team-card__owner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.teams-page .team-card__owner-photo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid color-mix(in srgb, var(--team-color, var(--accent)) 50%, var(--border));
}

.teams-page .team-card__owner-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-inset);
    color: var(--text-muted);
    font-size: 0.85rem;
    border-color: var(--border-strong);
}

.teams-page .team-card__owner-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.teams-page .team-card__owner-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

.teams-page .team-card__metrics {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.teams-page .team-card__budget {
    padding: 1rem 1.1rem;
    background: var(--surface-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.teams-page .team-card__budget-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.teams-page .team-card__budget-used {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--text-secondary);
}

.teams-page .team-card__budget-amount {
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: var(--success);
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 0.65rem;
}

.teams-page .team-card__budget-track {
    height: 6px;
    background: var(--bg-hover);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.teams-page .team-card__budget-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--team-color, var(--accent)), color-mix(in srgb, var(--team-color, var(--accent)) 70%, var(--gold)));
    transition: width 0.4s ease;
}

.teams-page .team-card__budget-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.teams-page .team-card__stats {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.teams-page .team-card__mini-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}

.teams-page .team-card__mini-stat {
    padding: 0.6rem 0.65rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 0;
}

.teams-page .team-card__mini-stat-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.teams-page .team-card__mini-stat strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.teams-page .team-card__mini-stat-sub {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.12rem;
}

.teams-page .team-card__icon-block {
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-hover);
}

.teams-page .team-card__icon-block--set {
    border-color: color-mix(in srgb, var(--gold) 45%, var(--border));
    background: color-mix(in srgb, var(--gold) 6%, var(--bg-hover));
}

.teams-page .team-card__icon-block--missing {
    border-color: color-mix(in srgb, var(--warning, #eab308) 40%, var(--border));
    background: color-mix(in srgb, var(--warning, #eab308) 6%, var(--bg-hover));
}

.teams-page .team-card__icon-block-head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.teams-page .team-card__icon-block-head i {
    color: var(--gold);
    font-size: 0.7rem;
}

.teams-page .team-card__icon-block-body {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.teams-page .team-card__icon-block-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--warning, #eab308);
    font-weight: 600;
}

.teams-page .team-card__icon-block-empty a {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--info);
    text-decoration: none;
}

.teams-page .team-card__icon-block-empty a:hover {
    text-decoration: underline;
}

.teams-page .team-card__stat {
    padding: 0.65rem 0.55rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 0;
}

.teams-page .team-card__stat--ok {
    border-color: color-mix(in srgb, var(--success) 40%, var(--border));
    background: color-mix(in srgb, var(--success) 8%, var(--bg-hover));
}

.teams-page .team-card__stat--warn {
    border-color: color-mix(in srgb, var(--warning, #eab308) 45%, var(--border));
    background: color-mix(in srgb, var(--warning, #eab308) 8%, var(--bg-hover));
}

.teams-page .team-card__stat-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.teams-page .team-card__stat strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.teams-page .team-card__stat-sub {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teams-page .team-card__icon-photo {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid color-mix(in srgb, var(--gold) 50%, transparent);
}

.teams-page .team-card__icon-photo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.teams-page .team-card__icon-text {
    min-width: 0;
    flex: 1;
}

.teams-page .team-card__icon-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teams-page .team-card__icon-block--set .team-card__icon-name {
    color: var(--gold);
}

.teams-page .team-card__icon-meta {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teams-page .team-card__mini-track {
    height: 3px;
    background: var(--border);
    border-radius: 100px;
    margin-top: 0.35rem;
    overflow: hidden;
}

.teams-page .team-card__mini-track div {
    height: 100%;
    background: var(--team-color, var(--accent));
    border-radius: 100px;
    min-width: 0;
}

.teams-page .team-card__mini-track div[style*="width:0%"],
.teams-page .team-card__mini-track div[style*="width: 0%"] {
    display: none;
}

.teams-page .team-card__budget-fill[style*="width:0%"],
.teams-page .team-card__budget-fill[style*="width: 0%"] {
    display: none;
}

.teams-page .team-card__actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    background: var(--surface-table-head);
}

.teams-page .team-card__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.8rem 0.35rem;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-right: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
    min-height: 62px;
}

.teams-page .team-card__action:last-child { border-right: none; }

.teams-page .team-card__action i {
    font-size: 1rem;
    transition: transform 0.2s;
}

.teams-page .team-card__action:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    text-decoration: none;
}

.teams-page .team-card__action:hover i { transform: scale(1.1); }

.teams-page .team-card__action--danger:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger);
}

/* ─── Team view page ─── */
.team-view {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.team-view__hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.team-view__hero-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--team-color, var(--accent)), color-mix(in srgb, var(--team-color, var(--accent)) 35%, transparent));
}

.team-view__hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    flex-wrap: wrap;
}

.team-view__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.team-view__logo {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--team-color, var(--accent)) 14%, var(--bg-hover));
    border: 2px solid color-mix(in srgb, var(--team-color, var(--accent)) 45%, var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--team-color, var(--accent));
}

.team-view__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-view__eyebrow {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.team-view__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.team-view__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.team-view__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--surface-inset);
    border: 1px solid var(--border);
}

.team-view__meta-pill i {
    color: var(--team-color, var(--accent));
    font-size: 0.62rem;
}

.team-view__hero-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.team-view__people {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    background: var(--surface-table-head);
}

.team-view__people--solo {
    grid-template-columns: 1fr;
}

.team-view__person {
    padding: 1.1rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    position: relative;
}

.team-view__person + .team-view__person {
    border-left: 1px solid var(--border);
}

.team-view__person--owner {
    background: color-mix(in srgb, var(--gold) 4%, var(--surface-table-head));
}

.team-view__person--icon {
    background: color-mix(in srgb, var(--info) 4%, var(--surface-table-head));
}

.team-view__person--empty {
    justify-content: center;
}

.team-view__person-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}

.team-view__person-badge--icon {
    color: var(--info);
    background: rgba(61, 158, 255, 0.1);
    border-color: color-mix(in srgb, var(--info) 30%, transparent);
}

.team-view__person-body {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.team-view__person-photo {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid color-mix(in srgb, var(--team-color, var(--accent)) 55%, var(--border));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.team-view__person-photo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 1.15rem;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: none;
}

.team-view__person-photo--owner {
    border-color: color-mix(in srgb, var(--gold) 55%, var(--border));
    background: var(--gold-soft);
    color: var(--gold);
}

.team-view__person-photo--icon {
    border-color: color-mix(in srgb, var(--gold) 60%, var(--border));
    background: var(--gold-soft);
    color: var(--gold);
}

.team-view__person-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.team-view__person-info strong {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-view__person--icon .team-view__person-info strong {
    color: var(--gold);
}

.team-view__person-contact,
.team-view__person-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.team-view__person-contact i {
    color: var(--gold);
    margin-right: 0.2rem;
    font-size: 0.72rem;
}

.team-view__person-slot {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.team-view__person-link {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--info);
    text-decoration: none;
}

.team-view__person-link:hover {
    text-decoration: underline;
}

.team-view__person-empty {
    text-align: center;
    padding: 0.5rem 0;
}

.team-view__person-empty p {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.team-view__metrics {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 1rem;
}

.team-view__panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.team-view__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.team-view__panel-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted);
}

.team-view__panel-label i {
    margin-right: 0.25rem;
    color: var(--team-color, var(--accent));
}

.team-view__panel-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.team-view__budget-amount {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.15rem);
    color: var(--success);
    line-height: 1;
    letter-spacing: 0.02em;
}

.team-view__budget-sub {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.team-view__budget-track {
    height: 7px;
    background: var(--bg-hover);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 0.15rem;
}

.team-view__budget-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--team-color, var(--accent)), color-mix(in srgb, var(--team-color, var(--accent)) 65%, var(--gold)));
    transition: width 0.4s ease;
}

.team-view__budget-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.team-view__stat-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
}

.team-view__chip {
    text-align: center;
    padding: 0.55rem 0.35rem;
    background: var(--surface-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 0;
}

.team-view__chip strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.team-view__chip span {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-top: 0.12rem;
}

.team-view__squad-progress {
    margin-top: 0.25rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
}

.team-view__squad-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.team-view__squad-progress-head strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.team-view__squad-track {
    height: 6px;
    background: var(--bg-hover);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.team-view__squad-track div {
    height: 100%;
    background: var(--team-color, var(--accent));
    border-radius: 100px;
    min-width: 0;
}

.team-view__squad-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.5rem 0 0;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.team-view__squad-legend i {
    margin-right: 0.15rem;
    opacity: 0.85;
}

.team-view__squad-legend span:nth-child(1) i { color: var(--gold); }
.team-view__squad-legend span:nth-child(2) i { color: var(--gold); }
.team-view__squad-legend span:nth-child(3) i { color: var(--team-color, var(--accent)); }

.team-view__roster {
    margin-bottom: 0;
}

.team-view__roster-head {
    align-items: flex-start;
    gap: 1rem;
}

.team-view__roster-sub {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.team-view__player-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.team-view__player-cell strong {
    display: block;
    font-size: 0.9rem;
}

.team-view__player-tag {
    display: inline-block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.12rem;
}

.team-view__empty {
    text-align: center;
    padding: 2.5rem 1rem !important;
    color: var(--text-muted);
}

.team-view__empty i {
    font-size: 1.75rem;
    opacity: 0.35;
    margin-bottom: 0.5rem;
    display: block;
}

.team-view__empty p {
    margin: 0;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .team-view__people {
        grid-template-columns: 1fr;
    }
    .team-view__person + .team-view__person {
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .team-view__metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .team-view__hero-top {
        flex-direction: column;
        align-items: stretch;
    }
    .team-view__stat-chips {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-view__hero-actions .btn {
        flex: 1;
        justify-content: center;
    }
    .team-view__person {
        padding: 1rem;
    }
}

.team-owner-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
}

.team-owner-photo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--team-color, var(--accent));
    box-shadow: 0 0 12px color-mix(in srgb, var(--team-color, #e11d2e) 30%, transparent);
    flex-shrink: 0;
}

.team-owner-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 1rem;
    border-color: var(--border-strong);
    box-shadow: none;
}

.team-owner-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.team-owner-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.team-owner-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-owner-mobile {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.team-owner-mobile i { font-size: 0.65rem; color: var(--gold); }

.team-card .team-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.team-card .team-budget {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 0.03em;
}

/* ─── Bidding ─── */
.bid-status-wrap { width: 100%; }

.bid-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--auction-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.bid-status--empty {
    text-align: center;
    color: var(--text-muted);
    padding: 1.25rem;
}

.bid-status__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bid-status__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
}

.bid-status__value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.03em;
}

.bid-status__value--gold { color: var(--gold); }
.bid-status__value--accent { color: var(--accent-2); }

.team-card--leading {
    box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(245, 183, 49, 0.15);
}

.owner-bid-panel--idle { opacity: 0.75; }

.owner-bid-live .owner-bid-player {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ─── Auction Pre-Start Screen ─── */
.auction-prestart {
    margin-bottom: 2rem;
}

.auction-prestart__card {
    background: var(--auction-panel-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.auction-prestart__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--auction-panel-pattern);
    pointer-events: none;
}

.auction-prestart__card > * {
    position: relative;
    z-index: 1;
}

.auction-prestart__icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.12);
    border: 2px solid rgba(230, 57, 70, 0.35);
    color: var(--accent);
    font-size: 2rem;
}

.auction-prestart__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

.auction-prestart__subtitle {
    margin: 0 0 1.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auction-prestart__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 640px;
    margin: 0 auto 1.75rem;
}

.auction-prestart__stat {
    padding: 0.85rem 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.auction-prestart__stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    line-height: 1.2;
}

.auction-prestart__stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.auction-prestart__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.auction-prestart__cta {
    min-width: 240px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.auction-prestart__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.auction-prestart__hint {
    margin: 1.25rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.auction-prestart__cta:not(.auction-prestart__cta--ready) {
    opacity: 0.65;
}

.auction-prestart__cta--ready {
    opacity: 1;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.25);
}

/* ─── Auction Readiness Panel ─── */
.auction-readiness {
    margin-bottom: 1.5rem;
    text-align: left;
}

.auction-readiness__summary {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.auction-readiness__summary--ready {
    border-color: rgba(42, 157, 143, 0.4);
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1) 0%, rgba(42, 157, 143, 0.03) 100%);
}

.auction-readiness__summary--blocked {
    border-color: rgba(244, 162, 97, 0.35);
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.08) 0%, rgba(244, 162, 97, 0.02) 100%);
}

.auction-readiness__ring {
    --progress: 0;
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
}

.auction-readiness__ring-track {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        var(--success) calc(var(--progress) * 1%),
        rgba(255, 255, 255, 0.08) calc(var(--progress) * 1%)
    );
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}

.auction-readiness__ring-inner {
    position: absolute;
    inset: 0.45rem;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.auction-readiness__ring-inner strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.auction-readiness__ring-inner span {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.auction-readiness__message {
    min-width: 0;
}

.auction-readiness__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
}

.auction-readiness__badge--ok {
    background: rgba(42, 157, 143, 0.18);
    color: var(--success);
    border: 1px solid rgba(42, 157, 143, 0.35);
}

.auction-readiness__badge--warn {
    background: rgba(244, 162, 97, 0.15);
    color: #f4a261;
    border: 1px solid rgba(244, 162, 97, 0.35);
}

.auction-readiness__message p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auction-readiness__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.auction-readiness__card {
    position: relative;
    padding: 1rem 1rem 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.auction-readiness__card.is-ok {
    border-color: rgba(42, 157, 143, 0.28);
}

.auction-readiness__card.is-fail {
    border-color: rgba(230, 57, 70, 0.35);
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.06) 0%, var(--bg-elevated) 100%);
}

.auction-readiness__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.auction-readiness__card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.is-ok .auction-readiness__card-icon {
    background: rgba(42, 157, 143, 0.15);
    color: var(--success);
}

.is-fail .auction-readiness__card-icon {
    background: rgba(230, 57, 70, 0.12);
    color: var(--accent);
}

.auction-readiness__chip {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.is-ok .auction-readiness__chip {
    background: rgba(42, 157, 143, 0.15);
    color: var(--success);
}

.is-fail .auction-readiness__chip {
    background: rgba(230, 57, 70, 0.12);
    color: var(--accent);
}

.auction-readiness__card-title {
    margin: 0 0 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auction-readiness__card-detail {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.auction-readiness__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent-2);
    text-decoration: none;
}

.auction-readiness__action:hover {
    text-decoration: underline;
}

.auction-readiness__action i {
    font-size: 0.68rem;
    transition: transform 0.15s ease;
}

.auction-readiness__action:hover i {
    transform: translateX(2px);
}

@media (max-width: 720px) {
    .auction-readiness__summary {
        flex-direction: column;
        text-align: center;
    }

    .auction-readiness__grid {
        grid-template-columns: 1fr;
    }

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

    .auction-prestart__card {
        padding: 2rem 1.25rem;
    }
}

/* ─── Auction Console Layout ─── */
.auction-console {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Unified attached panel — stage + controls in one card */
.auction-panel {
    background: var(--auction-panel-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.auction-panel::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--gradient-hero);
}

.auction-panel__stage {
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.auction-panel__stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--auction-panel-pattern);
    pointer-events: none;
}

.auction-panel__stage > * {
    position: relative;
    z-index: 1;
}

.auction-panel__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    background: var(--auction-panel-divider-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.auction-panel__divider span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--auction-pill-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    margin: -0.85rem 0;
    position: relative;
    z-index: 2;
}

.auction-panel__divider span i {
    color: var(--accent-2);
    font-size: 0.72rem;
}

.auction-panel__controls {
    padding: 1.35rem 1.5rem 1.5rem;
    background: var(--auction-panel-controls-bg);
}

.auction-stage__player {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auction-stage__name {
    margin-top: 1.25rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    word-break: break-word;
}

.auction-stage__meta {
    color: var(--text-secondary);
    margin-top: 0.35rem;
    font-size: 0.92rem;
}

.auction-stage__base {
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    margin-top: 1rem;
}

.auction-stage__empty {
    color: var(--text-muted);
    padding: 1rem 0;
}

.auction-stage__empty i {
    font-size: clamp(3rem, 12vw, 4rem);
    opacity: 0.3;
}

.auction-stage__empty p {
    margin-top: 1rem;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.auction-stage__empty span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.auction-stage__empty--complete i {
    opacity: 1;
    color: var(--gold);
}

.auction-stage__empty--complete p {
    color: var(--gold);
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

.auction-stage__actions {
    display: flex;
    justify-content: center;
}

.auction-hammer-btn {
    width: min(100%, 420px);
    justify-content: center;
}

.auction-hammer-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.auction-section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auction-section-title i { color: var(--accent-2); }

.auction-teams-section { margin-bottom: 2rem; }

.auction-teams-hint {
    margin: -0.5rem 0 1rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: var(--radius-md);
}

.team-card__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.team-card__bid {
    margin-top: 0.75rem;
    width: 100%;
}

.team-card__meta .text-danger { color: var(--danger); }
.team-card__meta .text-gold { color: var(--gold); }

.team-card__meta-note {
    font-size: 0.65rem;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.auction-manual-card { margin-bottom: 1.5rem; }

.auction-manual-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.auction-manual-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.auction-manual-card__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.auction-manual-summary-chip {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.auction-manual-summary-chip--remaining {
    border-color: rgba(42, 157, 143, 0.35);
    color: var(--success);
    background: rgba(42, 157, 143, 0.1);
}

.auction-manual-summary-chip--sold {
    border-color: rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.auction-manual-summary-chip--unsold {
    border-color: rgba(148, 163, 184, 0.35);
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.08);
}

.auction-manual-card__count {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.auction-manual-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

.auction-manual-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.auction-manual-search i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auction-manual-search__input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.88rem;
    outline: none;
    min-width: 0;
}

.auction-manual-search__input::placeholder { color: var(--text-muted); }

.auction-manual-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.auction-manual-filter {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.auction-manual-filter:hover {
    border-color: var(--accent-2);
    color: var(--text-primary);
}

.auction-manual-filter.is-active {
    background: rgba(230, 57, 70, 0.12);
    border-color: rgba(230, 57, 70, 0.45);
    color: var(--accent);
}

.auction-manual-list-head,
.auction-manual-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr 8rem minmax(8rem, 1.2fr);
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.auction-manual-list-head {
    padding: 0.55rem 1.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.auction-manual-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.35rem 0;
}

.auction-manual-row {
    width: 100%;
    padding: 0.65rem 1.25rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font: inherit;
    transition: background 0.12s;
}

[data-theme="light"] .auction-manual-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.auction-manual-row:hover {
    background: rgba(61, 158, 255, 0.08);
}

.auction-manual-row:active {
    background: rgba(230, 57, 70, 0.1);
}

.auction-manual-row--static {
    cursor: default;
    opacity: 0.82;
}

.auction-manual-row--static:hover,
.auction-manual-row--static:active {
    background: transparent;
}

.auction-manual-row--live {
    background: rgba(230, 57, 70, 0.08);
    opacity: 1;
}

.auction-manual-row--sold .auction-manual-row__name,
.auction-manual-row--unsold .auction-manual-row__name {
    color: var(--text-secondary);
}

.auction-manual-row__status {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.auction-manual-row__status .badge {
    align-self: flex-start;
    font-size: 0.62rem;
}

.auction-manual-row__status-detail {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auction-manual-row__reg {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.auction-manual-row__name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auction-manual-row__cat .badge {
    font-size: 0.68rem;
    white-space: nowrap;
}

.auction-manual-row__city {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auction-manual-empty {
    margin: 0;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 720px) {
    .auction-manual-list-head { display: none; }

    .auction-manual-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 0.25rem 0.75rem;
        padding: 0.75rem 1rem;
    }

    .auction-manual-row__reg { grid-column: 1; font-size: 0.72rem; }
    .auction-manual-row__name { grid-column: 1; grid-row: 2; }
    .auction-manual-row__status { grid-column: 1; grid-row: 3; }
    .auction-manual-row__cat { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
    .auction-manual-row__city { display: none; }
}

.auction-footnote {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: -0.5rem 0 1.5rem;
    line-height: 1.5;
}

.page-banner__badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ─── Auction Controls ─── */
.auction-controls__hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
    line-height: 1.45;
}

.auction-controls__primary {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.auction-controls__session {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.auction-controls__session .auction-ctrl-btn {
    justify-content: center;
    min-height: 48px;
}

.auction-ctrl-btn--hero {
    min-height: 48px;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    justify-content: center;
    padding: 0.75rem 1.25rem;
}

.auction-controls__timer {
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--border);
}

.auction-controls__secondary {
    padding-top: 0.15rem;
}

.auction-controls__secondary-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auction-controls__secondary-label i {
    font-size: 0.55rem;
    opacity: 0.7;
}

.auction-controls__secondary-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.auction-ctrl-btn--compact {
    padding: 0.45rem 0.75rem;
    font-size: 0.76rem;
}

.auction-ctrl-btn--live {
    border-color: rgba(245, 183, 49, 0.35);
    background: rgba(245, 183, 49, 0.1);
    color: var(--gold);
    text-decoration: none;
}

.auction-controls__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.auction-timer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auction-timer-btn {
    min-width: 64px;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--auction-btn-bg);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auction-timer-btn:hover {
    border-color: rgba(230, 57, 70, 0.4);
    color: var(--text-primary);
    background: var(--accent-soft);
}

.auction-timer-btn.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

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

    .auction-ctrl-btn--hero {
        min-height: 52px;
        font-size: 1rem;
    }
}

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

    .auction-controls__secondary-btns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .auction-controls__secondary-btns .auction-ctrl-btn--live {
        grid-column: 1 / -1;
    }
}

.auction-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--auction-btn-bg);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.auction-ctrl-btn:hover {
    transform: translateY(-1px);
    border-color: var(--auction-btn-hover-border);
}

.auction-ctrl-btn:disabled,
.auction-ctrl-btn.is-disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    filter: grayscale(0.35);
}

[data-theme="light"] .auction-ctrl-btn--success {
    background: rgba(16, 217, 126, 0.12);
    color: #0a9e5c;
}

[data-theme="light"] .auction-ctrl-btn--warning {
    background: rgba(245, 183, 49, 0.14);
    color: #a67c00;
}

[data-theme="light"] .auction-ctrl-btn--danger {
    background: rgba(225, 29, 46, 0.1);
    color: #c41e2e;
}

[data-theme="light"] .auction-ctrl-btn--muted {
    background: #ffffff;
    color: var(--text-secondary);
}

[data-theme="light"] .auction-ctrl-btn--live {
    background: rgba(245, 183, 49, 0.12);
    color: #a67c00;
}

[data-theme="light"] .auction-ctrl-btn:disabled {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-muted);
    border-color: var(--border);
}

.auction-ctrl-btn--success {
    border-color: rgba(16, 217, 126, 0.35);
    background: rgba(16, 217, 126, 0.1);
    color: #10d97e;
}

.auction-ctrl-btn--warning {
    border-color: rgba(245, 183, 49, 0.35);
    background: rgba(245, 183, 49, 0.1);
    color: var(--gold);
}

.auction-ctrl-btn--primary {
    border-color: rgba(230, 57, 70, 0.45);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(244, 162, 97, 0.12));
    color: var(--accent-2);
}

.auction-ctrl-btn--danger {
    border-color: rgba(230, 57, 70, 0.5);
    background: rgba(230, 57, 70, 0.15);
    color: #ff6b6b;
}

.auction-ctrl-btn--muted {
    color: var(--text-secondary);
}

.auction-ctrl-btn--solid.auction-ctrl-btn--primary {
    background: linear-gradient(135deg, var(--accent), #ff6b35);
    border-color: transparent;
    color: #fff;
}

.auction-ctrl-btn--solid.auction-ctrl-btn--danger {
    background: linear-gradient(135deg, #c1121f, var(--accent));
    border-color: transparent;
    color: #fff;
}

/* ─── Auction Stage ─── */
.auction-stage {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1.5rem 1rem 0.5rem;
    text-align: center;
    min-height: clamp(280px, 38vh, 400px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.auction-timer {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--accent-2);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px var(--accent-glow);
}

.auction-timer.warning { color: var(--warning); animation: timerPulse 1s infinite; text-shadow: 0 0 30px rgba(245, 166, 35, 0.5); }
.auction-timer.danger { color: var(--danger); animation: timerPulse 0.5s infinite; text-shadow: 0 0 40px rgba(255, 71, 87, 0.6); }

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* ─── Player Initial Avatar ─── */
.player-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    background: var(--gradient-hero);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    text-align: center;
    line-height: 1;
    box-sizing: border-box;
}

.player-photo.player-initial { font-size: 1rem; }
.player-photo-xl.player-initial { font-size: clamp(2.5rem, 12vw, 4rem); }
.player-photo-lg.player-initial { font-size: 3rem; }

.live-player-img.player-initial,
.live-player-img--result.player-initial,
.live-player-img--sm.player-initial {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.5rem, 12vw, 5rem);
    letter-spacing: 0.02em;
}

/* ─── Live Result Panel (SOLD / UNSOLD) ─── */
.live-spotlight--result {
    width: 100%;
}

.live-result-panel {
    width: 100%;
}

.live-result-panel--sold {
    box-shadow: var(--shadow-elevated), 0 0 60px rgba(245, 183, 49, 0.12);
}

.live-result-panel__header {
    text-align: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(245, 183, 49, 0.07);
}

.live-result-panel--unsold .live-result-panel__header {
    background: var(--btn-stepper-bg);
}

.live-result-panel__body {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2rem);
    padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem);
}

.live-result-panel__body--centered {
    flex-direction: column;
    text-align: center;
}

.live-result-panel__body--centered .live-result-panel__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 0.35rem;
}

.live-result-panel__body--centered .live-category-badge {
    margin: 0.15rem 0 0;
}

.live-result-panel__avatar {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.live-player-img--result {
    width: clamp(140px, 38vw, 200px);
    height: clamp(140px, 38vw, 200px);
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--avatar-fill), var(--avatar-fill)) padding-box, var(--gradient-hero) border-box;
}

.live-player-img--result.player-initial {
    font-size: clamp(3.5rem, 14vw, 5.5rem);
}

.live-result-panel__info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.live-result-panel__sale {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.live-result-panel__team,
.live-result-panel__sale .live-team-pill {
    display: block;
    width: 100%;
    text-align: center;
    font-size: clamp(1.25rem, 5vw, 2rem) !important;
    padding: 0.65rem 1.25rem !important;
    margin-top: 0.5rem;
}

.live-status-pill {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5vw, 2rem);
    letter-spacing: 0.18em;
    padding: 0.45rem 1.5rem;
    border-radius: 100px;
    display: inline-block;
}

.live-status-pill--sold {
    color: var(--gold);
    background: rgba(245, 183, 49, 0.12);
    border: 1px solid rgba(245, 183, 49, 0.35);
    text-shadow: 0 0 20px var(--gold-glow);
}

.live-status-pill--unsold {
    color: var(--text-secondary);
    background: var(--status-pill-muted-bg);
    border: 1px solid var(--border);
}

.live-result-name {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 3rem);
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.05;
    word-break: break-word;
}

.live-result-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.live-result-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin: 0.25rem 0 0;
}

.live-result-amount {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 10vw, 4rem);
    color: var(--live-gold-text);
    letter-spacing: 0.04em;
    margin-top: 0.75rem;
    text-shadow: 0 0 30px var(--gold-glow);
    line-height: 1;
}

.live-team-pill {
    display: inline-block;
    padding: 0.5rem 1.75rem;
    border-radius: 100px;
    color: #fff !important;
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    box-shadow: 0 6px 28px color-mix(in srgb, var(--pill-color, #e63946) 45%, transparent);
    margin-top: 0.15rem;
}

.live-player-frame--sm .live-player-img--sm {
    width: 160px;
    height: 160px;
    border-radius: 20px;
}

.live-player-img--sm.player-initial {
    font-size: 5rem;
}

body.live-animating {
    overflow: hidden;
}

body.live-animating #livePlayerArea {
    opacity: 0;
    pointer-events: none;
}

.sold-reveal {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    animation: soldPremiumIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.sold-reveal__ambient {
    position: absolute;
    inset: -5% -6%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sold-reveal__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 55% at 50% 28%, color-mix(in srgb, var(--deal-accent, var(--gold)) 22%, transparent) 0%, transparent 68%),
        radial-gradient(ellipse 50% 40% at 50% 95%, rgba(245, 183, 49, 0.08) 0%, transparent 60%);
    animation: soldBurst 1.2s ease-out;
}

.sold-reveal--unsold .sold-reveal__glow {
    background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(148, 163, 184, 0.14) 0%, transparent 70%);
}

.sold-reveal__frame {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 0 1.1rem;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(168deg, #12182a 0%, #0a0d14 55%, #080a10 100%);
    border: 1px solid rgba(245, 183, 49, 0.2);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sold-reveal--unsold .sold-reveal__frame {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(168deg, #151a24 0%, #0c0f14 100%);
}

.sold-reveal__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, rgba(245, 183, 49, 0.14) 0%, rgba(245, 183, 49, 0.04) 100%);
    border-bottom: 1px solid rgba(245, 183, 49, 0.18);
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.sold-reveal__header i {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.sold-reveal--unsold .sold-reveal__header {
    color: #94a3b8;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.1) 0%, transparent 100%);
    border-bottom-color: var(--border);
}

.sold-reveal--unsold .sold-reveal__header i {
    filter: none;
}

.sold-reveal__hero {
    padding: 1rem 1.25rem 0.65rem;
}

.sold-reveal__hero-frame {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(145deg, rgba(245, 183, 49, 0.55), rgba(225, 29, 46, 0.35));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.sold-reveal--unsold .sold-reveal__hero-frame {
    background: linear-gradient(145deg, rgba(148, 163, 184, 0.45), rgba(100, 116, 139, 0.3));
}

.sold-reveal__img,
.sold-reveal__hero-frame .live-player-img--result {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
    max-width: none !important;
    border-radius: 18px !important;
    object-fit: cover;
    border: none !important;
    background: #0d1118 !important;
}

.sold-reveal__img.player-initial {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 0;
    font-family: var(--font-display) !important;
    font-size: clamp(4.5rem, 22vw, 6.5rem) !important;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    background: linear-gradient(160deg, #1a2233 0%, #0d1118 100%) !important;
    color: #fff;
}

.sold-reveal__body {
    padding: 0 1.15rem;
    text-align: center;
}

.sold-reveal__name {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5.5vw, 2rem);
    letter-spacing: 0.05em;
    line-height: 1.1;
    color: var(--text-primary);
    word-break: break-word;
}

.sold-reveal__ticket {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid color-mix(in srgb, var(--deal-accent, var(--accent)) 22%, rgba(255, 255, 255, 0.08));
}

.sold-reveal__ticket-row {
    padding: 0.7rem 0.85rem;
    text-align: left;
}

.sold-reveal__ticket-row + .sold-reveal__ticket-row {
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.sold-reveal__ticket-row--price {
    background: color-mix(in srgb, var(--deal-accent, var(--accent)) 7%, transparent);
    text-align: center;
}

.sold-reveal__ticket-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.sold-reveal__ticket-team {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 4.5vw, 1.45rem);
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1.15;
}

.sold-reveal__ticket-team i {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.75rem;
    flex-shrink: 0;
    color: #fff;
    background: var(--deal-accent, var(--accent));
}

.sold-reveal__ticket-price {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--live-gold-text, var(--gold));
}

.sold-reveal__ticket--unsold {
    text-align: center;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
}

.sold-reveal__unsold-msg {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.sold-reveal__unsold-meta {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sold-overlay__content {
    position: relative;
    z-index: 10001;
    width: min(92vw, 380px);
    max-width: 380px;
    background: transparent;
    overflow: hidden;
    isolation: isolate;
}

/* ─── Sold / Unsold Reveal Overlay ─── */
.sold-overlay {
    position: fixed;
    inset: 0;
    background: var(--sold-overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease-out;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    overflow: hidden;
    overscroll-behavior: contain;
}

.sold-overlay--reveal,
.sold-overlay--solid {
    background: rgba(2, 4, 8, 0.94);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.sold-overlay--reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 35%, color-mix(in srgb, var(--sold-team-glow, var(--gold)) 20%, transparent) 0%, transparent 65%),
        radial-gradient(ellipse 60% 45% at 50% 100%, rgba(245, 183, 49, 0.06) 0%, transparent 55%);
    animation: soldBurst 1.4s ease-out;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .sold-overlay {
        padding: max(0.5rem, env(safe-area-inset-top)) max(0.45rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-left));
        align-items: center;
        justify-content: center;
    }

    .sold-overlay__content {
        width: min(90vw, 320px);
        max-width: 320px;
        overflow: hidden;
    }

    .sold-reveal__frame {
        border-radius: 18px;
        padding-bottom: 0.75rem;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
    }

    .sold-reveal__hero {
        padding: 0.65rem 0.85rem 0.4rem;
    }

    .sold-reveal__hero-frame {
        max-width: min(62vw, 220px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }

    .sold-reveal__body {
        padding: 0 0.85rem;
    }

    .sold-reveal__name {
        font-size: clamp(1rem, 4.5vw, 1.35rem);
        margin-bottom: 0.55rem;
        letter-spacing: 0.03em;
    }

    .sold-reveal__header {
        font-size: clamp(1rem, 4.8vw, 1.2rem);
        padding: 0.65rem 0.85rem;
        letter-spacing: 0.18em;
    }

    .sold-reveal__header i {
        font-size: clamp(0.85rem, 3.8vw, 1rem);
    }

    .sold-reveal__ticket-row {
        padding: 0.5rem 0.65rem;
    }

    .sold-reveal__ticket-team {
        font-size: clamp(0.95rem, 4vw, 1.15rem);
    }

    .sold-reveal__ticket-price {
        font-size: clamp(1.4rem, 6.5vw, 1.85rem);
    }

    .sold-reveal__img.player-initial {
        font-size: clamp(2.85rem, 15vw, 4rem) !important;
    }

    .sold-reveal__ambient {
        inset: -3% -4%;
    }

    .sold-overlay {
        touch-action: none;
    }
}

@media (max-width: 640px) and (max-height: 720px) {
    .sold-reveal__hero-frame {
        max-width: min(56vw, 190px);
    }

    .sold-reveal__frame {
        padding-bottom: 0.6rem;
    }

    .sold-reveal__hero {
        padding-top: 0.5rem;
        padding-bottom: 0.3rem;
    }

    .sold-reveal__name {
        margin-bottom: 0.45rem;
    }

    .sold-reveal__ticket-row {
        padding: 0.45rem 0.6rem;
    }

    .sold-reveal__ticket-price {
        font-size: clamp(1.25rem, 6vw, 1.6rem);
    }
}

@keyframes soldBurst {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(3); opacity: 0; }
}

.sold-content {
    text-align: center;
    animation: soldPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.sold-content h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-shadow: 0 0 40px var(--gold-glow), 0 0 80px var(--gold-glow);
    margin-bottom: 0.5rem;
}

.sold-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.sold-content .sold-amount {
    font-family: var(--font-display);
    font-size: 3.5rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 1rem;
}

@keyframes soldPop {
    from { transform: scale(0.3) rotate(-5deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

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

/* ─── Back Button ─── */
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-hover);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: var(--accent-soft);
    border-color: rgba(225, 29, 46, 0.3);
    color: var(--accent-2);
    transform: translateX(-2px);
}

.back-btn--text {
    width: auto;
    padding: 0 1rem;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.back-link:hover {
    color: var(--accent-2);
    transform: translateX(-3px);
}

.back-link i { font-size: 0.8rem; }

.page-banner .back-btn--text {
    margin-right: 0.5rem;
}

/* ─── Toast Notifications ─── */
.toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 380px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-toast);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    pointer-events: auto;
    animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

.toast i { font-size: 1.1rem; flex-shrink: 0; }
.toast--success { border-left: 3px solid var(--success); }
.toast--success i { color: var(--success); }
.toast--error { border-left: 3px solid var(--danger); }
.toast--error i { color: var(--danger); }
.toast--warning { border-left: 3px solid var(--warning); }
.toast--warning i { color: var(--warning); }

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateX(120%); opacity: 0; }
}

@keyframes fadeRemove {
    to { opacity: 0; transform: scale(0.95); max-height: 0; margin: 0; padding: 0; overflow: hidden; }
}

.is-removing {
    animation: fadeRemove 0.35s ease forwards;
    pointer-events: none;
}

/* ─── Custom Confirm Dialog ─── */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: var(--surface-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}

.confirm-dialog {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-dialog);
    animation: confirmPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes confirmPop {
    from { transform: scale(0.9) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.confirm-dialog-header {
    padding: 1.75rem 1.75rem 0;
    text-align: center;
}

.confirm-dialog-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
}

.confirm-dialog-icon--danger {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 71, 87, 0.25);
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.15);
}

.confirm-dialog-icon--warning {
    background: rgba(245, 166, 35, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 166, 35, 0.25);
}

.confirm-dialog-icon--info {
    background: rgba(61, 158, 255, 0.15);
    color: var(--info);
    border: 1px solid rgba(61, 158, 255, 0.25);
}

.confirm-dialog-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.confirm-dialog-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 1.75rem 1.75rem;
    text-align: center;
}

.confirm-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}

.confirm-dialog-btn {
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.confirm-dialog-btn--cancel {
    color: var(--text-muted);
    border-right: 1px solid var(--border);
}

.confirm-dialog-btn--cancel:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.confirm-dialog-btn--confirm {
    color: var(--text-primary);
}

.confirm-dialog-btn--confirm.confirm-dialog-btn--danger {
    color: var(--danger);
    background: rgba(255, 71, 87, 0.08);
}

.confirm-dialog-btn--confirm.confirm-dialog-btn--danger:hover {
    background: var(--danger);
    color: #fff;
}

.confirm-dialog-btn--confirm.confirm-dialog-btn--warning {
    color: var(--warning);
    background: rgba(245, 166, 35, 0.08);
}

.confirm-dialog-btn--confirm.confirm-dialog-btn--warning:hover {
    background: var(--warning);
    color: #000;
}

.confirm-dialog-btn--confirm.confirm-dialog-btn--info:hover {
    background: var(--accent-soft);
    color: var(--accent-2);
}

/* ─── Modal ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--surface-overlay);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    width: 90%;
    max-width: 520px;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-md), 0 0 60px var(--accent-glow);
}

.modal h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.bid-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.bid-preset-btn {
    padding: 1.15rem;
    background: var(--bg-hover);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bid-preset-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-2);
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ─── Live Screen v2 — Broadcast Arena ─── */
body.live-page {
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--live-page-bg);
    background-attachment: fixed;
}

.scanline {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.025) 2px, rgba(0, 0, 0, 0.025) 4px);
    pointer-events: none;
    z-index: 10;
}

.live-bg-glow {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 20%, rgba(225, 29, 46, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 90%, rgba(245, 183, 49, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 10% 70%, rgba(61, 158, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.live-screen--v2 {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(0.85rem, 3vw, 1.5rem);
    padding-bottom: 2.5rem;
    min-height: 100vh;
}

/* Top bar */
.live-topbar {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.live-topbar__back {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--panel-subtle);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s;
}

.live-topbar__back:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--bg-hover);
}

.live-topbar__brand {
    text-align: center;
    line-height: 1.1;
}

.live-topbar__live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-2);
    margin-bottom: 0.15rem;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: livePulseDot 1.2s ease-in-out infinite;
}

@keyframes livePulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.live-topbar__live--upcoming {
    color: var(--info);
}

.live-league-banner {
    position: relative;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    background: var(--live-metric-bg, var(--bg-card));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.live-league-banner--live {
    border-color: rgba(10, 158, 92, 0.4);
    box-shadow: 0 0 0 1px rgba(10, 158, 92, 0.12), 0 4px 24px rgba(0, 0, 0, 0.2);
}

.live-league-banner__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
}

.live-league-banner--live .live-league-banner__accent {
    background: linear-gradient(90deg, #0a9e5c, #34d399);
}

.live-league-banner__main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.live-league-banner__logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(225, 29, 46, 0.25);
}

.live-league-banner__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-league-banner__body {
    flex: 1;
    min-width: 0;
}

.live-league-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.live-league-banner__eyebrow i {
    color: var(--gold);
}

.live-league-banner__name {
    margin: 0 0 0.55rem;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    letter-spacing: 0.04em;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-league-banner__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
}

.live-league-banner__date,
.live-league-banner__stat {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.live-league-banner__date i,
.live-league-banner__stat i {
    margin-right: 0.3rem;
    color: var(--accent-2);
    width: 0.85rem;
}

.live-league-banner__link {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.live-league-banner__link:hover {
    color: var(--accent-2);
    border-color: rgba(225, 29, 46, 0.35);
}

/* Live screen — pre-start (public) */
.live-prestart {
    margin-bottom: 1.5rem;
}

.live-prestart__hero {
    text-align: center;
    padding: 2rem 1.25rem 1.5rem;
    background: var(--live-metric-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--live-metric-shadow);
}

.live-prestart__icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--info);
    background: rgba(61, 158, 255, 0.1);
    border: 2px solid rgba(61, 158, 255, 0.35);
    box-shadow: 0 0 24px rgba(61, 158, 255, 0.15);
}

.live-prestart__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    letter-spacing: 0.06em;
    margin: 0 0 0.35rem;
    color: var(--text-primary);
}

.live-prestart__schedule {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.live-prestart__schedule i {
    margin-right: 0.35rem;
    color: var(--info);
}

.live-prestart__message {
    margin: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.live-prestart__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.live-prestart__stat {
    padding: 0.85rem 0.5rem;
    text-align: center;
    background: var(--live-metric-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.live-prestart__stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1rem, 4vw, 1.35rem);
    letter-spacing: 0.03em;
    color: var(--text-primary);
}

.live-prestart__stat-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.live-prestart__teams {
    margin-top: 0.5rem;
}

.live-prestart__teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
}

.live-prestart__team {
    padding: 0.85rem 0.75rem;
    background: var(--live-metric-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    border-top: 3px solid var(--team-accent, var(--accent));
    text-align: center;
}

.live-prestart__team-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.live-prestart__team-budget {
    font-size: 0.72rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .live-prestart__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-league-banner__main {
        flex-wrap: wrap;
    }

    .live-league-banner__link {
        margin-left: auto;
    }
}

.live-topbar__brand h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 2.75rem);
    letter-spacing: 0.14em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.live-topbar__round {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.live-topbar__status {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.75rem !important;
    white-space: nowrap;
}

.live-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.live-topbar__theme {
    padding: 0.45rem 0.65rem;
    flex-shrink: 0;
}

/* Metrics strip */
.live-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.live-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: clamp(1rem, 3vw, 1.35rem) 0.75rem;
    min-height: 130px;
    background: var(--live-metric-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    box-shadow: var(--live-metric-shadow);
}

.live-metric__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    font-weight: 600;
}

.live-metric__ring {
    --timer-pct: 100%;
    width: clamp(72px, 18vw, 96px);
    height: clamp(72px, 18vw, 96px);
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(var(--accent) var(--timer-pct), var(--ring-track) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.live-metric__ring.warning {
    background: conic-gradient(var(--warning) var(--timer-pct), var(--ring-track) 0);
}

.live-metric__ring.danger {
    background: conic-gradient(var(--danger) var(--timer-pct), var(--ring-track) 0);
    animation: timerPulse 0.8s ease-in-out infinite;
}

.live-metric__ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--avatar-fill);
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-metric__sold-badge {
    width: clamp(72px, 18vw, 96px);
    height: clamp(72px, 18vw, 96px);
    border-radius: 50%;
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 28px var(--gold-glow);
}

.live-metric__sold-badge span {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    color: var(--live-gold-text);
}

.live-timer {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    letter-spacing: 0.04em;
    line-height: 1;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Arena */
.live-arena {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: clamp(280px, 42vh, 380px);
    margin-bottom: 1.5rem;
    transition: opacity 0.3s;
}

.live-arena > * {
    width: 100%;
}

body.live-animating .live-arena { opacity: 0; }

/* Spotlight card */
.live-spotlight {
    position: relative;
    width: 100%;
}

.live-spotlight__beam {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: var(--live-spotlight-beam);
    pointer-events: none;
    z-index: 0;
}

.live-spotlight__card {
    position: relative;
    z-index: 1;
    background: var(--live-card-bg);
    border: 1px solid var(--live-card-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--live-card-shadow);
}

.live-spotlight__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
}

.live-spotlight__player {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 4vw, 1.75rem);
    padding: clamp(1.25rem, 4vw, 2rem);
}

.live-spotlight__avatar-wrap {
    flex-shrink: 0;
    position: relative;
}

.live-spotlight__avatar-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    background: var(--gradient-hero);
    opacity: 0.35;
    filter: blur(14px);
    z-index: -1;
}

.live-player-img {
    width: clamp(100px, 28vw, 160px);
    height: clamp(100px, 28vw, 160px);
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--avatar-fill), var(--avatar-fill)) padding-box, var(--gradient-hero) border-box;
}

.live-player-img:not(.player-initial) {
    display: block;
}

.live-spotlight__info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.live-player-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 2.75rem);
    letter-spacing: 0.03em;
    line-height: 1.05;
    word-break: break-word;
    margin: 0;
}

.live-spotlight__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.live-category-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: var(--accent-soft);
    border: 1px solid rgba(225, 29, 46, 0.35);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-player-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Bid ticker */
.live-ticker {
    background: var(--live-ticker-bg);
    border-top: 1px solid var(--border);
    padding: clamp(1rem, 3vw, 1.35rem);
}

.live-ticker__hero {
    text-align: center;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--live-ticker-hero-border);
    background: var(--live-ticker-hero-bg);
}

.live-ticker__hero--open {
    border-color: var(--border-strong);
    background: var(--btn-stepper-bg);
}

.live-ticker__label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.live-ticker__amount {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 3.25rem);
    color: var(--live-gold-text);
    letter-spacing: 0.04em;
    text-shadow: 0 0 30px var(--gold-glow);
    line-height: 1;
}

.live-ticker__hero--open .live-ticker__amount {
    color: var(--text-primary);
    text-shadow: none;
}

.live-ticker__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.live-ticker__stat {
    text-align: center;
    padding: 0.55rem 0.35rem;
    background: var(--btn-stepper-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.live-ticker__stat span {
    display: block;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.live-ticker__stat strong {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    color: var(--text-primary);
    font-weight: 400;
}

.live-ticker__stat--accent strong { color: var(--accent-2); }

.live-ticker__leader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.live-ticker__leader-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.live-ticker__leader-label i { color: var(--gold); margin-right: 0.2rem; }

.live-ticker__team,
.live-ticker__leader .live-team-pill {
    width: 100%;
    justify-content: center;
    font-size: clamp(0.9rem, 3.5vw, 1.2rem) !important;
    padding: 0.7rem 1rem !important;
    box-shadow: var(--shadow-sm);
}

.live-ticker__waiting {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.65rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

/* Player frame (result cards) */
.live-player-frame {
    position: relative;
    display: inline-block;
}

.live-player-frame::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 28px;
    background: var(--gradient-hero);
    opacity: 0.4;
    filter: blur(18px);
    z-index: -1;
}

/* Waiting state */
.live-waiting-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.live-waiting-state__icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0.35;
}

.live-waiting-state p {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 5vw, 1.85rem);
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin: 0;
}

.live-waiting-state__sub {
    display: block;
    font-size: 0.82rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.live-result-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Teams track */
.live-section-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-section-title i {
    color: var(--accent-2);
    font-size: 0.72rem;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.live-teams-section { margin-bottom: 1.35rem; }

.live-teams-scroll {
    position: relative;
}

.live-teams-scroll::before,
.live-teams-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 2;
    pointer-events: none;
}

.live-teams-scroll::before {
    left: 0;
    background: linear-gradient(90deg, var(--live-scroll-fade) 0%, transparent 100%);
}

.live-teams-scroll::after {
    right: 0;
    background: linear-gradient(270deg, var(--live-scroll-fade) 0%, transparent 100%);
}

.live-teams-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.15rem 0.5rem;
    scrollbar-width: none;
}

.live-teams-track::-webkit-scrollbar { display: none; }

.live-team-tile {
    flex: 0 0 min(158px, 44vw);
    scroll-snap-align: start;
    background: var(--live-tile-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.95rem 0.8rem 0.85rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--live-tile-shadow);
}

.live-team-tile__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 55% at 50% 0%, color-mix(in srgb, var(--team-accent, var(--accent)) 28%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.live-team-tile__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--team-accent, var(--accent));
    box-shadow: 0 0 12px color-mix(in srgb, var(--team-accent, var(--accent)) 50%, transparent);
}

.live-team-tile__lead {
    position: absolute;
    top: 0.55rem;
    right: 0.45rem;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(245, 183, 49, 0.12);
    border: 1px solid rgba(245, 183, 49, 0.35);
    border-radius: 100px;
    padding: 0.15rem 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    z-index: 1;
}

.live-team-tile__lead i {
    font-size: 0.48rem;
    animation: crownPulse 2s ease-in-out infinite;
}

@keyframes crownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

.live-team-tile--leading {
    border-color: rgba(245, 183, 49, 0.45);
    box-shadow: var(--shadow-sm), 0 0 24px rgba(245, 183, 49, 0.15);
    transform: translateY(-2px);
}

.live-team-tile__shield {
    width: 36px;
    height: 36px;
    margin: 0.35rem auto 0.55rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--team-accent, var(--accent)) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--team-accent, var(--accent)) 45%, transparent);
    color: var(--team-accent, var(--accent));
    font-size: 0.85rem;
    box-shadow: 0 0 16px color-mix(in srgb, var(--team-accent, var(--accent)) 25%, transparent);
}

.live-team-tile__name {
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.2;
    margin-bottom: 0.55rem;
    padding: 0 0.15rem;
    word-break: break-word;
    position: relative;
    z-index: 1;
}

.live-team-tile__budget-wrap {
    position: relative;
    z-index: 1;
    padding: 0.45rem 0.35rem;
    margin-bottom: 0.35rem;
    border-radius: var(--radius-sm);
    background: var(--live-tile-budget-bg);
    border: 1px solid var(--live-tile-budget-border);
}

.live-team-tile__budget-label {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.live-team-tile__budget {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    color: var(--live-gold-text);
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 0 0 20px var(--gold-glow);
}

.live-team-tile__meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    position: relative;
    z-index: 1;
}

.live-team-tile__meta i {
    font-size: 0.62rem;
    color: var(--text-secondary);
}

/* Recent feed */
.live-feed { margin-bottom: 1.25rem; }

.live-feed__list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.live-feed__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: var(--live-feed-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.live-feed__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--feed-accent, var(--accent));
    box-shadow: 0 0 12px color-mix(in srgb, var(--feed-accent, var(--accent)) 40%, transparent);
}

.live-feed__item--unsold::before {
    background: var(--text-muted);
    box-shadow: none;
}

.live-feed__item--sold {
    border-color: color-mix(in srgb, var(--feed-accent, var(--accent)) 22%, var(--border));
}

.live-feed__badge {
    flex-shrink: 0;
    min-width: 52px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
}

.live-feed__badge--sold {
    background: rgba(245, 183, 49, 0.14);
    color: var(--gold);
    border: 1px solid rgba(245, 183, 49, 0.3);
    text-shadow: 0 0 12px var(--gold-glow);
}

.live-feed__badge--unsold {
    background: var(--panel-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.live-feed__item--undo {
    border-color: color-mix(in srgb, #7eb8ff 22%, var(--border));
}

.live-feed__badge--undo {
    background: rgba(126, 184, 255, 0.12);
    color: #9ec8ff;
    border: 1px solid rgba(126, 184, 255, 0.28);
}

.live-result-panel--undo .live-result-panel__header {
    background: linear-gradient(180deg, rgba(126, 184, 255, 0.08) 0%, transparent 100%);
}

.live-status-pill--undo {
    background: rgba(126, 184, 255, 0.14);
    color: #9ec8ff;
    border: 1px solid rgba(126, 184, 255, 0.35);
}

.live-feed__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.live-feed__player {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-feed__sale {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.live-feed__price {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--live-gold-text);
    letter-spacing: 0.03em;
    line-height: 1;
}

.live-feed__team {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.65rem;
    border-radius: 100px;
    color: #fff;
    background: var(--feed-team, var(--accent));
    box-shadow: 0 4px 14px color-mix(in srgb, var(--feed-team, var(--accent)) 35%, transparent);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-feed__detail {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.live-feed__detail i {
    font-size: 0.65rem;
    opacity: 0.7;
}

/* Live v2 — mobile */
@media (max-width: 640px) {
    .live-metrics {
        gap: 0.55rem;
        margin-bottom: 1rem;
    }

    .live-metric {
        min-height: 108px;
        padding: 0.85rem 0.5rem;
    }

    .live-topbar__brand h1 {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }

    .live-spotlight__player {
        flex-direction: column;
        text-align: center;
    }

    .live-spotlight__info {
        text-align: center;
    }

    .live-spotlight__tags {
        justify-content: center;
    }

    .live-ticker__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .live-topbar__status {
        font-size: 0.62rem !important;
        padding: 0.3rem 0.5rem !important;
    }

    .live-result-panel__sale {
        text-align: center;
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }

    .live-result-name {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
    }

    .live-result-amount {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .live-result-panel__team,
    .live-result-panel__sale .live-team-pill {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem) !important;
    }

    .live-arena {
        min-height: auto;
    }

    .live-team-tile {
        flex: 0 0 min(148px, 46vw);
        padding: 0.85rem 0.7rem 0.75rem;
    }

    .live-team-tile__lead {
        font-size: 0.48rem;
        padding: 0.12rem 0.32rem;
    }

    .live-feed__item {
        padding: 0.6rem 0.75rem;
        gap: 0.6rem;
    }

    .live-feed__badge {
        min-width: 46px;
        font-size: 0.62rem;
        padding: 0.3rem 0.4rem;
    }

    .live-feed__player {
        font-size: 0.86rem;
    }

    .live-feed__price {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .live-ticker__stats {
        grid-template-columns: 1fr 1fr;
    }

    .live-ticker__stats .live-ticker__stat:last-child {
        grid-column: 1 / -1;
    }
}

/* ─── Auth Page ─── */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
}

.auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(225, 29, 46, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 183, 49, 0.15) 0%, transparent 50%);
}

.auth-hero-content { position: relative; z-index: 1; }

.auth-hero h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.auth-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.7;
}

.auth-hero-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-feature i {
    width: 36px; height: 36px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-2);
    flex-shrink: 0;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.auth-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* ─── Landing Page ─── */
.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--landing-nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.landing-nav.scrolled { background: var(--landing-nav-scrolled); }

.landing-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.landing-nav-brand .logo {
    width: 42px; height: 42px;
    background: var(--gradient-hero);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.landing-nav-brand span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.06em;
}

.landing-nav-links { display: flex; align-items: center; gap: 0.5rem; }

.landing-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-hover);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.25s;
}

.landing-nav-toggle:hover {
    border-color: var(--border-strong);
    color: var(--gold);
}

.landing-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}

.landing-orb-1 {
    width: 500px; height: 500px;
    background: rgba(225, 29, 46, 0.2);
    top: -150px; right: -100px;
}

.landing-orb-2 {
    width: 400px; height: 400px;
    background: rgba(245, 183, 49, 0.12);
    bottom: -100px; left: -100px;
    animation-delay: -4s;
}

.landing-orb-3 {
    width: 300px; height: 300px;
    background: rgba(61, 158, 255, 0.08);
    top: 40%; left: 30%;
    animation-delay: -2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.landing-hero-content { position: relative; z-index: 2; max-width: 900px; }

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--accent-soft);
    border: 1px solid rgba(225, 29, 46, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.landing-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

.landing-hero .hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.landing-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.landing-features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.landing-features h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 0.75rem;
}

.landing-features .section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-size: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.feature-icon--red { background: var(--accent-soft); color: var(--accent-2); }
.feature-icon--gold { background: var(--gold-soft); color: var(--gold); }
.feature-icon--green { background: rgba(16, 217, 126, 0.12); color: var(--success); }
.feature-icon--blue { background: rgba(61, 158, 255, 0.12); color: var(--info); }

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.landing-stats {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 1;
}

.landing-stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.landing-stat-num {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 0.03em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.landing-cta {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-cta h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.landing-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.landing-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* ─── Page Header Banner ─── */
.page-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--gradient-hero);
}

/* ─── Quick Action Pills ─── */
.action-pills { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s;
    text-decoration: none;
}

.action-pill:hover {
    background: var(--accent-soft);
    border-color: rgba(225, 29, 46, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.action-pill i { color: var(--accent-2); font-size: 0.85rem; }

/* ─── Theme Toggle ─── */
.theme-toggle {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.25s;
}

.theme-toggle:hover {
    border-color: var(--border-strong);
    color: var(--gold);
    background: var(--gold-soft);
}

/* ─── Progress Bar ─── */
.progress-bar {
    height: 6px;
    background: var(--progress-track);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar .fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--shimmer-highlight), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ─── Grid Utilities ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── User Chip ─── */
.user-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.user-avatar {
    width: 32px; height: 32px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon,
.empty-state > i {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state > i {
    font-style: normal;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

.empty-state .btn {
    margin-top: 1.5rem;
}

.empty-state .btn i {
    font-size: 0.875rem;
}

/* ─── Color Picker ─── */
.color-picker {
    margin-top: 0.35rem;
}

.color-picker__input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.color-picker__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg, 14px);
    border: 1px solid var(--border);
    background: var(--surface-card-gradient);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.color-picker__card:hover {
    border-color: color-mix(in srgb, var(--picked-color, #e63946) 45%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--picked-color, #e63946) 12%, transparent);
}

.color-picker__swatch {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    padding: 0;
    border: none;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.color-picker__swatch-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 2px solid var(--swatch-border);
    box-shadow:
        0 8px 24px color-mix(in srgb, var(--picked-color, #e63946) 35%, transparent),
        inset 0 0 0 1px var(--swatch-inset);
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-picker__swatch:hover .color-picker__swatch-inner {
    transform: scale(1.04);
}

.color-picker__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.color-picker__hex {
    width: 100%;
    max-width: 140px;
    padding: 0.5rem 0.75rem;
    background: var(--surface-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.color-picker__hex:focus {
    outline: none;
    border-color: var(--picked-color, var(--accent));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--picked-color, #e63946) 15%, transparent);
}

.color-picker__hint {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.color-picker__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.color-picker__preset {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 2px solid var(--preset-border);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.color-picker__preset:hover {
    transform: scale(1.15);
    border-color: var(--border-strong);
}

.color-picker__preset.is-active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--picked-color, #e63946) 50%, transparent);
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .color-picker__card {
        flex-direction: column;
        text-align: center;
    }

    .color-picker__meta {
        align-items: center;
    }

    .color-picker__presets {
        justify-content: center;
    }
}

/* ─── Image Upload ─── */
.image-upload {
    margin-top: 0.35rem;
}

.image-upload__input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.image-upload__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg, 14px);
    border: 1px solid var(--border);
    background: var(--surface-card-gradient);
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.image-upload__card:hover,
.image-upload.is-dragover .image-upload__card {
    border-color: rgba(230, 57, 70, 0.45);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.08);
    background: rgba(230, 57, 70, 0.04);
}

.image-upload.has-image .image-upload__card {
    border-color: var(--image-border-active);
    cursor: default;
}

.image-upload__preview {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    border: 2px dashed var(--border);
    background: var(--bg-hover);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload--circle .image-upload__preview {
    border-radius: 50%;
}

.image-upload--square .image-upload__preview {
    border-radius: 10px;
}

.image-upload.has-image .image-upload__preview {
    border-style: solid;
    border-color: var(--image-preview-border);
}

.image-upload__placeholder {
    color: var(--text-muted);
    font-size: 1.5rem;
    opacity: 0.35;
    transition: opacity 0.2s;
}

.image-upload__card:hover .image-upload__placeholder {
    opacity: 0.55;
}

.image-upload__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.image-upload.has-image .image-upload__img {
    display: block;
}

.image-upload.has-image .image-upload__placeholder {
    display: none;
}

.image-upload__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.image-upload__choose {
    align-self: flex-start;
    pointer-events: none;
}

.image-upload__filename {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-upload__hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.image-upload__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.image-upload__change,
.image-upload__remove {
    padding: 0;
    border: none;
    background: none;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.image-upload__change {
    color: var(--text-secondary);
}

.image-upload__remove {
    color: var(--accent);
}

.image-upload__change:hover,
.image-upload__remove:hover {
    opacity: 1;
    text-decoration: underline;
}

.image-upload.has-image .image-upload__choose {
    display: none;
}

.image-upload:not(.has-image) .image-upload__actions {
    display: none;
}

@media (max-width: 480px) {
    .image-upload__card {
        flex-direction: column;
        text-align: center;
    }

    .image-upload__meta {
        align-items: center;
    }

    .image-upload__choose {
        align-self: center;
    }
}

/* ─── Registration Page ─── */
.register-page {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.register-container { max-width: 760px; margin: 0 auto; }

.register-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.register-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.register-back:hover {
    color: var(--text-secondary);
}

.register-header__tagline {
    color: var(--text-secondary);
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.register-header h1 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    letter-spacing: 0.05em;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.register-league-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 1.25rem;
    align-items: center;
    margin-bottom: 1.75rem;
    padding: 1.15rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.register-league-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
}

.register-league-card__main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    grid-column: 1;
}

.register-league-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    flex-shrink: 0;
}

.register-league-card__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.12);
    color: var(--gold);
    font-size: 1.35rem;
}

.register-league-card__info {
    min-width: 0;
}

.register-league-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.register-league-card__name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    letter-spacing: 0.05em;
    line-height: 1.1;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    word-break: break-word;
}

.register-league-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.register-league-card__date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.register-league-card__date i {
    margin-right: 0.25rem;
    color: var(--info);
}

.register-league-card__stats {
    display: flex;
    gap: 0.65rem;
    grid-column: 2;
    grid-row: 1;
}

.register-league-card__stat {
    text-align: center;
    min-width: 4.5rem;
    padding: 0.55rem 0.65rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.register-league-card__stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.register-league-card__stat-label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.register-league-card__link {
    grid-column: 1 / -1;
    justify-self: end;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-2);
    text-decoration: none;
}

.register-league-card__link:hover {
    text-decoration: underline;
}

.register-slots-bar {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.register-slots-bar--full {
    border-color: rgba(230, 57, 70, 0.4);
    background: rgba(230, 57, 70, 0.06);
}

.register-slots-bar__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
}

.register-slots-bar__head i {
    margin-right: 0.35rem;
    color: var(--accent-2);
}

.register-slots-bar__track {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.register-slots-bar__fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.register-slots-bar--full .register-slots-bar__fill {
    background: var(--accent);
}

/* ─── Manage Players — registration summary ─── */
.players-registration-bar {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.players-registration-bar--met {
    border-color: rgba(42, 157, 143, 0.35);
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.08) 0%, var(--bg-card) 100%);
}

.players-registration-bar--full {
    border-color: rgba(230, 57, 70, 0.4);
    background: rgba(230, 57, 70, 0.06);
}

.players-registration-bar__main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 1rem;
    margin-bottom: 0.75rem;
}

.players-registration-bar__stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.players-registration-bar__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.players-registration-bar__value {
    font-family: var(--font-display);
    font-size: 1.65rem;
    line-height: 1;
    letter-spacing: 0.03em;
    color: var(--text-primary);
}

.players-registration-bar__stat--registered .players-registration-bar__value {
    color: var(--accent-2);
}

.players-registration-bar__stat--minimum .players-registration-bar__value {
    color: var(--text-secondary);
}

.players-registration-bar__divider {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1;
    padding-bottom: 0.15rem;
}

.players-registration-bar__meta {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    min-width: 0;
}

.players-registration-bar__meta a {
    color: var(--accent-2);
}

.players-registration-bar__meta i {
    width: 1rem;
    text-align: center;
    margin-right: 0.2rem;
}

.players-registration-bar__cap--open {
    color: var(--text-secondary);
}

.players-registration-bar__need {
    color: #f4a261;
}

.players-registration-bar__ok {
    color: var(--success);
}

.players-registration-bar__full {
    color: var(--accent);
}

.players-registration-bar__track {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 999px;
    overflow: hidden;
}

.players-registration-bar__fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.players-registration-bar--met .players-registration-bar__fill {
    background: linear-gradient(90deg, var(--success), #3ecf8e);
}

.players-registration-bar--full .players-registration-bar__fill {
    background: var(--accent);
}

/* ─── Player team owner ─── */
.player-owner-badge {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gold);
}

.player-owner-badge i {
    margin-right: 0.15rem;
}

.player-owner-interest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.player-owner-interest__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.player-owner-interest__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.12rem 0.4rem 0.12rem 0.2rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--team-accent, var(--gold)) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--team-accent, var(--gold)) 40%, transparent);
}

.player-owner-interest__chip img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.player-owner-interest--profile {
    margin: 0 0 1rem;
}

.register-owner-interest__hint {
    margin: 0.2rem 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.register-owner-interest__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.65rem;
}

.register-owner-interest__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-card) 80%, transparent);
    cursor: pointer;
    text-align: center;
}

.register-owner-interest__card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.register-owner-interest__card:has(input:checked) {
    border-color: var(--team-accent, var(--gold));
    box-shadow: 0 0 0 1px var(--team-accent, var(--gold));
    background: color-mix(in srgb, var(--team-accent, var(--gold)) 12%, transparent);
}

.register-owner-interest__logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.register-owner-interest__logo--letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--team-accent, var(--accent));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.register-owner-interest__name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.player-icon-badge {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--info);
}

.player-icon-badge i {
    margin-right: 0.15rem;
}

.player-icon-action-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: var(--radius-sm);
    background: rgba(61, 158, 255, 0.12);
    color: var(--info);
    font-size: 0.75rem;
    cursor: help;
    flex-shrink: 0;
}

.player-icon-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.player-icon-hint a {
    color: var(--info);
}

.player-owner-card {
    margin-top: 1.25rem;
}

.player-owner-card__intro,
.player-owner-card__hint {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.player-owner-card__current {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.player-owner-card__team strong a {
    color: var(--text-primary);
}

.player-owner-card__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

@media (max-width: 720px) {
    .players-registration-bar__main {
        flex-direction: column;
        align-items: flex-start;
    }

    .players-registration-bar__divider {
        display: none;
    }
}

.register-slots-bar__meta {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.register-closed-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.register-closed-card__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.12);
    color: var(--accent);
    font-size: 1.5rem;
}

.register-closed-card h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

.register-closed-card p {
    margin: 0;
    color: var(--text-muted);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.register-success {
    text-align: center;
    padding: 2.75rem 1.5rem 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.register-success__mark {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 217, 126, 0.14);
    color: var(--success);
    font-size: 1.7rem;
}

.register-success__status {
    display: inline-block;
    margin: 0 0 0.65rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(16, 217, 126, 0.12);
    color: var(--success);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.register-success h2 {
    margin: 0 0 0.45rem;
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.04em;
}

.register-success__message {
    margin: 0 auto 1.35rem;
    max-width: 420px;
    color: var(--text-muted);
    line-height: 1.55;
}

.register-success__steps {
    list-style: none;
    margin: 0 auto 1.5rem;
    padding: 0;
    max-width: 320px;
    text-align: left;
}

.register-success__steps li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.register-success__steps li span {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 700;
}

.register-success__steps li.is-done {
    color: var(--text-secondary);
}

.register-success__steps li.is-done span {
    background: rgba(16, 217, 126, 0.16);
    border-color: transparent;
    color: var(--success);
}

.register-success__steps li.is-current {
    color: var(--text-primary);
    font-weight: 600;
}

.register-success__steps li.is-current span {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}

.registration-limit-settings {
    margin-bottom: 0.5rem;
}

.registration-limit-preview {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 520px;
}

.registration-limit-preview i {
    color: var(--info);
    margin-top: 0.15rem;
}

.registration-close-preview {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding: 0.7rem 0.85rem;
    background: rgba(61, 158, 255, 0.08);
    border: 1px solid rgba(61, 158, 255, 0.22);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.registration-close-preview i {
    color: var(--info);
    margin-top: 0.1rem;
}

.registration-close-preview--passed {
    background: rgba(230, 57, 70, 0.08);
    border-color: rgba(230, 57, 70, 0.25);
}

.registration-close-preview--passed i {
    color: var(--accent);
}

.icon-cost-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.25rem;
    padding: 0.75rem 0.9rem;
    background: rgba(61, 158, 255, 0.08);
    border: 1px solid rgba(61, 158, 255, 0.22);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
    max-width: 520px;
}

.icon-cost-hint--free {
    background: rgba(245, 183, 49, 0.08);
    border-color: rgba(245, 183, 49, 0.28);
}

.icon-cost-hint i {
    color: var(--info);
    margin-top: 0.1rem;
}

.icon-cost-hint--free i {
    color: var(--gold);
}

#iconPlayerCostWrap.is-disabled {
    opacity: 0.55;
}

.register-league-card__date--close {
    color: var(--info);
}

.register-league-card__date--passed {
    color: var(--accent);
}

.register-slots-bar--deadline .register-slots-bar__head i {
    color: var(--info);
}

.public-league__schedule--deadline .public-league__schedule-icon {
    background: rgba(61, 158, 255, 0.12);
    color: var(--info);
}

.public-league__schedule--closed {
    opacity: 0.9;
}

.public-league__schedule-note {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--accent);
}

.register-pay {
    margin: 0.25rem 0 1.25rem;
    padding: 1.15rem;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--border));
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%),
        color-mix(in srgb, var(--bg-card) 88%, #0b0e14);
}

.register-pay__top {
    text-align: center;
    margin-bottom: 1rem;
}

.register-pay__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.register-pay__amount {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.6rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--text-primary);
}

.register-pay__lead {
    margin: 0.45rem auto 0;
    max-width: 28rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.register-pay__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.register-pay__frame {
    width: min(220px, 70vw);
    padding: 0.7rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.register-pay__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
}

.register-pay__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-hover);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.register-pay__download:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.register-pay__steps {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem 0.75rem 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.55;
}

.register-pay__proof {
    padding-top: 0.15rem;
}

.register-payment {
    margin: 0.5rem 0 1.25rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--border));
    background: color-mix(in srgb, var(--gold) 6%, transparent);
}

.register-payment__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.register-payment__head i {
    color: var(--gold);
    margin-top: 0.15rem;
}

.register-payment__head strong {
    display: block;
}

.register-payment__head span {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.register-payment__qr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.register-payment__qr img,
.player-payment-qr-preview img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 0.4rem;
}

.player-payment-qr-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.player-payment-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.player-payment-proof img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.player-payment-detail__shot {
    display: block;
    margin-top: 0.75rem;
    max-width: 280px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.register-form-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .auth-form-side { border-left: none; min-height: 100vh; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .page-content { padding: 1.5rem; }
    .card { padding: 1.35rem; }
    .teams-page .teams-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-md); }
    .admin-layout.sidebar-closed .sidebar { transform: translateX(-100%); }
    .main-content { margin-left: 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }

    .topbar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.65rem 1rem;
    }

    .topbar h3 {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: min(180px, 38vw);
    }

    .user-chip > div:not(.user-avatar) { display: none; }
    .user-chip { padding: 0.3rem; border-radius: 50%; }

    .page-content { padding: 1.15rem; }
    .card { padding: 1.2rem; margin-bottom: 1.15rem; }
    .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }
    .card-header .btn { justify-content: center; }

    .page-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1.15rem 1.15rem 1.15rem 1.4rem;
        gap: 0.85rem;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.35rem;
        padding: 0 0.35rem;
    }

    table { font-size: 0.84rem; }
    table th, table td { padding: 0.55rem 0.45rem; white-space: nowrap; }
    table td a { word-break: break-word; white-space: normal; }
    .col-hide-mobile { display: none !important; }

    .auction-stage {
        padding: 1rem 0.5rem 0.35rem;
        min-height: clamp(220px, 32vh, 320px);
    }

    .auction-stage__timer {
        position: static !important;
        margin: 0 auto 0.85rem;
        display: block;
        text-align: center;
        font-size: clamp(2rem, 12vw, 3rem) !important;
    }

    .auction-timer { font-size: clamp(2rem, 12vw, 3rem); }

    .auction-console { gap: 1rem; }

    .auction-panel__stage {
        padding: 1.15rem 1rem 1rem;
    }

    .auction-panel__controls {
        padding: 1.15rem 1rem 1.25rem;
    }

    .auction-panel__divider {
        padding: 0 1rem;
    }

    .auction-ctrl-btn {
        justify-content: center;
        min-height: 44px;
    }

    .auction-timer-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    .auction-timer-btn {
        min-width: 0;
        width: 100%;
        padding: 0.6rem 0.35rem;
    }

    .auction-hammer-btn {
        width: 100%;
    }

    .page-banner__badges {
        width: 100%;
        justify-content: flex-start;
    }

    .teams-page__hero { flex-direction: column; align-items: stretch; }
    .teams-page__summary { flex-wrap: wrap; }
    .teams-page__generate { margin-left: 0; width: 100%; justify-content: flex-end; }
    .teams-page__toolbar { flex-direction: column; align-items: stretch; }
    .teams-page__delete-auto .btn { width: 100%; justify-content: center; }
    .teams-page .teams-grid { grid-template-columns: 1fr; }
    .teams-page .team-card__actions { grid-template-columns: repeat(2, 1fr); }
    .teams-page .team-card__action:nth-child(2n) { border-right: none; }
    .teams-page .team-card__action:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .team-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 0.85rem; }

    .form-row-flex { flex-direction: column !important; align-items: stretch !important; }
    .form-row-flex .form-control,
    .form-row-flex select,
    .form-row-flex .app-select,
    .form-row-flex .btn { width: 100% !important; max-width: 100% !important; }

    .card .form-control[style*="max-width"] { max-width: 100% !important; width: 100%; }

    .bid-status { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; padding: 0.85rem; }
    .bid-status__value { font-size: 1.15rem; }

    .owner-bid-live .owner-bid-player {
        flex-direction: column;
        text-align: center;
    }

    .landing-nav {
        padding: 0.85rem 1rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .landing-nav-brand span { font-size: 1.1rem; }
    .landing-nav-toggle { display: flex; }

    .landing-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        padding: 0.75rem 0 0.25rem;
        order: 3;
    }

    .landing-nav.open .landing-nav-links { display: flex; }

    .landing-nav-links .btn {
        width: 100%;
        justify-content: center;
    }

    .landing-hero {
        padding: 6.5rem 1.25rem 3rem;
        min-height: auto;
    }

    .landing-hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
    .landing-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .landing-actions .btn-xl { width: 100%; }
    .landing-features { padding: 3.5rem 1.25rem; }
    .landing-features h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    .landing-features .section-sub { margin-bottom: 2rem; font-size: 0.92rem; }
    .landing-stats { padding: 2.5rem 1.25rem; }
    .landing-cta { padding: 3rem 1.25rem; }
    .landing-footer { padding: 1.5rem 1.25rem; font-size: 0.8rem; }

    .register-form-card { padding: 1.35rem 1.15rem; }
    .register-header h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
    .register-page { padding: 1.25rem 1rem; }
    .register-league-card { grid-template-columns: 1fr; }
    .register-league-card__stats { grid-column: 1; grid-row: auto; justify-content: flex-start; }
    .register-league-card__link { justify-self: start; }

    .auth-card { padding: 1.75rem 1.35rem; margin: 1rem; }
    .auth-form-side { padding: 1.5rem 1rem; }

    .modal,
    .confirm-dialog { width: min(94vw, 420px); margin: 1rem; max-width: calc(100vw - 2rem); }

    .player-photo-lg {
        width: clamp(120px, 40vw, 200px);
        height: clamp(120px, 40vw, 200px);
    }

    .stat-card .stat-value { font-size: clamp(1.35rem, 5vw, 2rem); }
    .stats-grid { gap: 0.75rem; }

    .action-pills { gap: 0.45rem; }
    .action-pill { padding: 0.5rem 0.85rem; font-size: 0.78rem; }

    .empty-state { padding: 2.5rem 1.25rem; }

    .back-btn--text { font-size: 0.82rem; padding: 0.45rem 0.7rem; }

    .team-owner-row { margin-left: 0 !important; margin-right: 0 !important; }
}

@media (max-width: 480px) {
    .page-content { padding: 0.9rem; }
    .card { padding: 1rem; }
    .topbar h3 { max-width: 120px; font-size: 0.85rem; }
    .btn-sm { font-size: 0.76rem; padding: 0.38rem 0.6rem; }
    .teams-page .team-card__stats { grid-template-columns: 1fr; }
    .teams-page .team-card__actions { grid-template-columns: 1fr 1fr; }
    .auction-timer-options { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { gap: 0.85rem; }
    .feature-card { padding: 1.25rem; }
    .bid-status { grid-template-columns: 1fr 1fr; }
    .owner-bid-panel .btn-lg { font-size: 0.95rem; padding: 0.85rem; }
}

@media print {
    .sidebar, .topbar, .landing-nav { display: none; }
    .main-content { margin-left: 0; }
}

/* ─── Light Theme — Page Tweaks ─── */
[data-theme="light"] .scanline {
    display: none;
}

[data-theme="light"] .auction-timer {
    text-shadow: none;
}

[data-theme="light"] .teams-page .team-card__budget-amount {
    text-shadow: none;
}

/* ─── Live Page — Light Theme Broadcast ─── */
[data-theme="light"] body.live-page .live-bg-glow {
    opacity: 1;
    background:
        radial-gradient(ellipse 80% 60% at 50% 8%, rgba(225, 29, 46, 0.14) 0%, transparent 58%),
        radial-gradient(ellipse 60% 50% at 92% 92%, rgba(245, 183, 49, 0.16) 0%, transparent 52%),
        radial-gradient(ellipse 50% 40% at 6% 78%, rgba(61, 158, 255, 0.1) 0%, transparent 50%);
}

[data-theme="light"] .live-topbar__back {
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .live-metric--timer {
    border-color: rgba(225, 29, 46, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

[data-theme="light"] .live-metric--sold {
    border-color: rgba(245, 183, 49, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
}

[data-theme="light"] .live-metric__ring-inner {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .live-metric__sold-badge {
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(245, 183, 49, 0.14),
        0 6px 20px rgba(245, 183, 49, 0.18);
}

[data-theme="light"] .live-metric__sold-badge span {
    color: var(--live-gold-text);
}

[data-theme="light"] .live-spotlight__avatar-wrap::after {
    opacity: 0.22;
}

[data-theme="light"] .live-player-img,
[data-theme="light"] .live-player-img--result {
    background: linear-gradient(#ffffff, #ffffff) padding-box, var(--gradient-hero) border-box;
}

[data-theme="light"] .live-ticker__amount {
    text-shadow: none;
}

[data-theme="light"] .live-ticker__hero--open {
    border-color: rgba(225, 29, 46, 0.18);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

[data-theme="light"] .live-ticker__hero--open .live-ticker__amount {
    color: var(--accent);
}

[data-theme="light"] .live-ticker__stat {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .live-ticker__waiting {
    background: #ffffff;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-sm);
}

[data-theme="light"] .live-team-tile--leading {
    border-color: rgba(245, 183, 49, 0.5);
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.08),
        0 0 0 2px rgba(245, 183, 49, 0.35),
        0 0 24px rgba(245, 183, 49, 0.12);
}

[data-theme="light"] .live-team-tile__budget {
    text-shadow: none;
    color: var(--live-gold-text);
}

[data-theme="light"] .live-feed__item {
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .live-feed__badge--sold {
    text-shadow: none;
}

[data-theme="light"] .live-feed__price {
    color: var(--live-gold-text);
}

[data-theme="light"] .live-waiting-state {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--live-metric-shadow);
}

[data-theme="light"] .live-waiting-state__icon {
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.06), rgba(245, 183, 49, 0.08));
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.08);
    opacity: 1;
    color: var(--accent);
}

[data-theme="light"] .live-status-pill--sold {
    text-shadow: none;
    background: rgba(245, 183, 49, 0.14);
}

[data-theme="light"] .live-result-amount {
    text-shadow: none;
}

[data-theme="light"] .live-result-panel--sold {
    box-shadow: var(--live-card-shadow), 0 0 36px rgba(245, 183, 49, 0.14);
}

[data-theme="light"] .live-result-panel--unsold .live-result-panel__header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

[data-theme="light"] .live-section-title i {
    filter: none;
}

[data-theme="light"] .live-topbar__theme {
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .live-category-badge {
    background: rgba(225, 29, 46, 0.08);
    border-color: rgba(225, 29, 46, 0.2);
}

/* ─── Sold / Unsold Reveal — Light Theme ─── */
[data-theme="light"] .sold-overlay--reveal,
[data-theme="light"] .sold-overlay--solid {
    background: rgba(240, 244, 252, 0.92);
}

[data-theme="light"] .sold-overlay--reveal::before {
    opacity: 0.5;
}

[data-theme="light"] .sold-reveal__frame {
    background: linear-gradient(168deg, #ffffff 0%, #f4f7fc 100%);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .sold-reveal__header {
    background: linear-gradient(180deg, rgba(245, 183, 49, 0.12) 0%, rgba(245, 183, 49, 0.03) 100%);
}

[data-theme="light"] .sold-reveal__ticket-team {
    color: #0d1520;
}

[data-theme="light"] .sold-reveal__name {
    color: #0d1520;
    text-shadow: none;
}

[data-theme="light"] .sold-reveal__ticket-price {
    text-shadow: none;
    color: #b8860b;
}

[data-theme="light"] .sold-reveal__img.player-initial {
    background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    color: #334155;
}

[data-theme="light"] .sold-reveal__hero-frame {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

/* ─── Public League Directory & Detail (redesign) ─── */
.live-pulse-dot {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

/* Directory */
.public-directory-hero {
    position: relative;
    padding: 6.5rem 1.5rem 2.5rem;
    text-align: center;
    overflow: hidden;
}

.public-directory-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.public-directory-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.public-directory-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.25rem);
    letter-spacing: 0.04em;
    margin: 0.85rem 0 0.75rem;
}

.public-directory-hero p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 520px;
}

.public-directory-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.public-directory-hero__count i { color: var(--gold); }

.public-directory-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

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

.public-league-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.35rem 1.35rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.public-league-card:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 29, 46, 0.35);
    box-shadow: var(--shadow-lg);
}

.public-league-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    opacity: 0.85;
}

.public-league-card--live {
    border-color: rgba(10, 158, 92, 0.4);
    box-shadow: 0 0 0 1px rgba(10, 158, 92, 0.12);
}

.public-league-card--live .public-league-card__accent {
    background: linear-gradient(90deg, #0a9e5c, #34d399);
}

.public-league-card--ended .public-league-card__accent {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

.public-league-card--upcoming .public-league-card__accent {
    background: var(--gradient-hero);
}

.public-league-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.public-league-card__logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.public-league-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-league-card__title {
    font-size: 1.28rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.public-league-card__desc {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.public-league-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.public-league-card__chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.public-league-card__chips i {
    color: var(--accent-2);
    font-size: 0.7rem;
}

.public-league-card__reg {
    padding: 0.65rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.public-league-card__reg-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
}

.public-league-card__reg-track {
    height: 6px;
    background: var(--bg-hover);
    border-radius: 999px;
    overflow: hidden;
}

.public-league-card__reg-fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 999px;
}

.public-league-card__date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.6rem 0.75rem;
    background: rgba(225, 29, 46, 0.06);
    border: 1px solid rgba(225, 29, 46, 0.15);
    border-radius: var(--radius-md);
}

.public-league-card__date i { color: var(--accent-2); }

.public-league-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-2);
}

.public-league-card__footer i {
    transition: transform 0.25s ease;
}

.public-league-card:hover .public-league-card__footer i {
    transform: translateX(4px);
}

.public-directory-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.public-directory-empty__icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 29, 46, 0.1);
    color: var(--accent-2);
    font-size: 1.6rem;
}

.public-directory-empty h2 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

.public-directory-empty p {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
}

/* League detail page */
.public-league {
    position: relative;
    min-height: calc(100vh - 4rem);
    padding: 5.5rem 1.5rem 3rem;
    overflow: hidden;
}

.public-league__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.public-league__wrap {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.public-league__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.public-league__back:hover { color: var(--text-primary); }

.public-league__layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.public-league__identity {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.public-league__identity--live {
    border-color: rgba(10, 158, 92, 0.35);
    box-shadow: 0 0 0 1px rgba(10, 158, 92, 0.1), var(--shadow-md);
}

.public-league__identity-top {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.public-league__logo {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(225, 29, 46, 0.25);
}

.public-league__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-league__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.public-league__live-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #34d399;
}

.public-league__identity h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.04em;
    margin: 0 0 0.65rem;
    line-height: 1.05;
}

.public-league__desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

.public-league__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.public-league__stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.public-league__stat > i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 29, 46, 0.1);
    color: var(--accent-2);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.public-league__stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--accent-2);
}

.public-league__stat span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.public-league__reg-bar {
    padding: 1rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.public-league__reg-bar--full {
    border-color: rgba(230, 57, 70, 0.35);
    background: rgba(230, 57, 70, 0.05);
}

.public-league__reg-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 0.55rem;
}

.public-league__reg-track {
    height: 8px;
    background: var(--bg-hover);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.public-league__reg-fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 999px;
}

.public-league__reg-bar--full .public-league__reg-fill {
    background: var(--accent);
}

.public-league__reg-meta {
    margin: 0;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.public-league__panel {
    position: sticky;
    top: 5.5rem;
    padding: 1.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.public-league__schedule {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--border);
}

.public-league__schedule-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 183, 49, 0.12);
    color: var(--gold);
    flex-shrink: 0;
}

.public-league__panel-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.public-league__schedule strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.45;
}

.public-league__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.public-league__action {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.public-league__action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.public-league__action--primary {
    border-color: rgba(225, 29, 46, 0.35);
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.12), rgba(225, 29, 46, 0.04));
}

.public-league__action--primary:hover {
    border-color: rgba(225, 29, 46, 0.55);
}

.public-league__action--gold {
    border-color: rgba(245, 183, 49, 0.35);
    background: linear-gradient(135deg, rgba(245, 183, 49, 0.14), rgba(245, 183, 49, 0.04));
}

.public-league__action-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--accent-2);
    flex-shrink: 0;
}

.public-league__action--gold .public-league__action-icon {
    color: var(--gold);
}

.public-league__action-text {
    flex: 1;
    min-width: 0;
}

.public-league__action-text strong {
    display: block;
    font-size: 0.92rem;
}

.public-league__action-text small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.public-league__action-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.public-league__notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.public-league__notice--closed {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.25);
    color: var(--text-secondary);
}

.public-league__notice--closed i {
    color: var(--accent);
    font-size: 1.1rem;
}

.public-league__notice strong {
    display: block;
    color: var(--text-primary);
}

.public-league__tips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.public-league__tips li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.public-league__tips i {
    color: #0a9e5c;
    font-size: 0.65rem;
}

@media (max-width: 900px) {
    .public-league__layout {
        grid-template-columns: 1fr;
    }

    .public-league__panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .public-league {
        padding-top: 5rem;
    }

    .public-league__identity-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .public-league__badges {
        justify-content: center;
    }

    .public-directory-grid {
        grid-template-columns: 1fr;
    }
}

/* Legacy aliases (older views) */
.league-directory-hero,
.league-detail-hero {
    position: relative;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.league-directory-hero__content,
.league-detail-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.league-directory-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.league-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.league-directory-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
}

.league-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.league-detail-stat {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.league-detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* ─── Flatpickr (league auction date) ─── */
.flatpickr-calendar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays,
.flatpickr-days,
.dayContainer {
    background: transparent;
    color: var(--text-primary);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: var(--text-secondary);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: var(--accent-2);
}

.flatpickr-weekday {
    color: var(--text-muted);
}

.flatpickr-day {
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: var(--bg-hover);
    border-color: var(--bg-hover);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.flatpickr-day.today {
    border-color: var(--accent-2);
}

.flatpickr-time {
    border-top: 1px solid var(--border);
}

.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover {
    background: var(--accent-soft);
}

input.flatpickr-input.form-control {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    width: 100%;
    cursor: pointer;
}

/* Icon Players setup page */
.icon-setup {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.icon-setup__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.icon-setup__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.icon-setup__title i { color: var(--gold); margin-right: 0.35rem; }

.icon-setup__desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 52ch;
}

.icon-setup__stat {
    text-align: center;
    padding: 0.65rem 1rem;
    background: var(--surface-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 5rem;
}

.icon-setup__stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-primary);
}

.icon-setup__stat span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.icon-setup__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.icon-team-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.icon-team-row__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--team-color, var(--accent)), color-mix(in srgb, var(--team-color, var(--accent)) 35%, transparent));
}

.icon-team-row__main {
    display: grid;
    grid-template-columns: minmax(200px, 1.1fr) minmax(160px, 0.8fr) minmax(280px, 1.4fr);
    gap: 1.25rem;
    padding: 1.25rem 1.35rem;
    align-items: center;
}

.icon-team-row__info {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.icon-team-row__logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--team-color, var(--accent)) 18%, var(--bg-hover));
    border: 2px solid color-mix(in srgb, var(--team-color, var(--accent)) 50%, var(--border));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.icon-team-row__name {
    margin: 0 0 0.2rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.icon-team-row__owner {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.icon-team-row__owner i { margin-right: 0.25rem; color: var(--gold); }

.icon-team-row__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.icon-team-row__meta-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.icon-team-row__status {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.icon-team-row__status-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.icon-team-row__current {
    align-self: flex-start;
}

.icon-team-row__status-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.icon-team-row__actions {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
    min-width: 0;
}

.icon-team-row__form {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.icon-team-row__form--remove {
    flex: 0 0 auto;
}

.icon-team-row__select-wrap {
    flex: 1;
    min-width: 180px;
}

.icon-team-row__field-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.icon-team-row__save,
.icon-team-row__remove {
    white-space: nowrap;
    min-height: 42px;
}

.icon-setup__empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.icon-setup__empty i {
    font-size: 2rem;
    color: var(--accent-2);
    margin-bottom: 0.75rem;
    display: block;
}

.icon-setup__foot {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 1024px) {
    .icon-team-row__main {
        grid-template-columns: 1fr 1fr;
    }
    .icon-team-row__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .icon-setup__head { flex-direction: column; align-items: stretch; }
    .icon-team-row__main { grid-template-columns: 1fr; }
    .icon-team-row__form { flex-direction: column; align-items: stretch; width: 100%; }
    .icon-team-row__form--remove { width: 100%; }
    .icon-team-row__save,
    .icon-team-row__remove { width: 100%; justify-content: center; }
}
