/* ============================================
   SPORT-ZONE Common Styles - "ELECTRIC ARENA"
   Shared styles across all pages
   ============================================ */

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

/* ===== CSS VARIABLES ===== */
:root {
    --bg-deep: #030712;
    --bg-dark: #0a0f1a;
    --bg-card: #111827;
    --bg-elevated: #1a2235;

    --neon-blue: #00d4ff;
    --neon-pink: #ff00aa;
    --neon-purple: #9333ea;
    --electric-green: #00ff88;
    --error-red: #ff4757;

    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-dim: #6b7280;

    --border-dark: #1f2937;
    --border-glow: rgba(0, 212, 255, 0.3);

    --glow-blue: 0 0 30px rgba(0, 212, 255, 0.4);
    --glow-pink: 0 0 30px rgba(255, 0, 170, 0.4);
    --glow-green: 0 0 30px rgba(0, 255, 136, 0.4);

    --radius: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-deep);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== ANIMATED GRID BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 600px;
    background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(0, 212, 255, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--text-white);
    text-shadow: var(--glow-blue);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
}

.navbar .container.nav-container {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 52px;
}

.nav-container .logo {
    flex-shrink: 0;
    z-index: 2;
}

.nav-links--main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.nav-links--right {
    flex-shrink: 0;
    z-index: 2;
}

.nav-cluster {
    display: contents;
}

.nav-play,
.nav-hamburger {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    background: rgba(0, 212, 255, 0.06);
    color: var(--neon-blue);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-hamburger {
    flex-direction: column;
    gap: 5px;
}

.nav-play-icon {
    display: block;
    width: 22px;
    height: 22px;
}

.nav-play:hover,
.nav-hamburger:hover,
.nav-play[aria-expanded="true"],
.nav-hamburger[aria-expanded="true"] {
    background: rgba(0, 212, 255, 0.14);
    border-color: rgba(0, 212, 255, 0.4);
}

.nav-hamburger-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar[data-nav-panel="account"] .nav-hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar[data-nav-panel="account"] .nav-hamburger-bar:nth-child(2) {
    opacity: 0;
}

.navbar[data-nav-panel="account"] .nav-hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .nav-hamburger-bar {
        transition: none;
    }
}

.nav-play:focus-visible,
.nav-hamburger:focus-visible,
.nav-bell:focus-visible,
.nav-links a:focus-visible,
.nav-lang-toggle:focus-visible,
.nav-lang-option:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}

.nav-links {
    display: flex;
    gap: 22px;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 132px;
    object-fit: contain;
}

.logo-img--footer {
    height: 56px;
    max-width: 140px;
}

.nav-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}

.nav-lang-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.nav-lang-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    background: rgba(0, 212, 255, 0.06);
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-lang-btn:hover {
    color: var(--text-white);
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.12);
}

.nav-lang-btn--active {
    color: var(--neon-blue);
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.35);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section {
    position: fixed;
    top: 78px; /* Below navbar */
    left: 0;
    right: 0;
    z-index: 999;
    padding: 14px 0;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.breadcrumb-section .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.breadcrumb-item {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s;
}

.breadcrumb-item:hover {
    color: var(--neon-blue);
    text-shadow: var(--glow-blue);
}

.breadcrumb-item.active {
    color: var(--text-white);
    font-weight: 700;
}

.breadcrumb-separator {
    color: var(--text-dim);
    margin: 0 4px;
}

.breadcrumb-section .btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-glyph svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nav-links a:hover .nav-glyph,
.nav-links a.active .nav-glyph,
.nav-drawer-links li a:hover .nav-glyph {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.55));
}

.nav-glyph--squads:hover,
.nav-links a:hover .nav-glyph--squads,
.nav-links a.active .nav-glyph--squads {
    filter: drop-shadow(0 0 8px rgba(255, 0, 170, 0.45));
}

.nav-glyph--matches:hover,
.nav-links a:hover .nav-glyph--matches,
.nav-links a.active .nav-glyph--matches {
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.45));
}

.nav-glyph--me:hover,
.nav-links a:hover .nav-glyph--me,
.nav-links a.active .nav-glyph--me {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.45));
}

.nav-glyph--players:hover,
.nav-links a:hover .nav-glyph--players,
.nav-links a.active .nav-glyph--players {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.55));
}

.nav-glyph--lang:hover,
.nav-links a:hover .nav-glyph--lang,
.nav-links button:hover .nav-glyph--lang,
.nav-lang-tab--open .nav-glyph--lang {
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.5));
}

.nav-glyph--login:hover,
.nav-links a:hover .nav-glyph--login {
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.45));
}

.nav-glyph--logout:hover,
.nav-links a:hover .nav-glyph--logout {
    filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.45));
}

.nav-glyph--join:hover,
.nav-links a:hover .nav-glyph--join {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.45));
}

.nav-glyph--bell:hover,
.nav-bell:hover .nav-glyph--bell,
.nav-links a:hover .nav-glyph--bell {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.45));
}

.nav-lang-tab {
    position: relative;
    list-style: none;
}

.nav-lang-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
    color: inherit;
    position: relative;
}

.nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 88px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(3, 7, 18, 0.98);
    border: 1px solid var(--border-dark);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 1001;
    flex-direction: column;
    gap: 4px;
    display: none;
}

.nav-lang-tab--open .nav-lang-dropdown {
    display: flex;
}

.nav-lang-option {
    width: 100%;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    background: rgba(0, 212, 255, 0.06);
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-lang-option:hover {
    color: var(--text-white);
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.12);
}

.nav-lang-option--active {
    color: var(--neon-blue);
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.1);
}

.nav-item--bell .nav-tab-link {
    position: relative;
}

.nav-item--bell .nav-bell-badge {
    top: 0;
    right: -2px;
}

.nav-bell--active .nav-glyph--bell {
    animation: navBellRing 2.2s ease-in-out infinite;
    transform-origin: top center;
}

.nav-links a::after,
.nav-lang-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    transition: width 0.3s;
}

.nav-links a,
.nav-lang-toggle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.nav-lang-toggle:hover,
.nav-lang-tab--open .nav-lang-toggle {
    color: var(--text-white);
}

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

.nav-actions {
    display: none;
}

.nav-drawer {
    display: none !important;
}

/* Invitations bell (badge + ring animation when there are notifications) */
.nav-bell[hidden] {
    display: none !important;
}

.nav-item--bell .nav-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 0;
    border: none;
    background: none;
    text-decoration: none;
}

.nav-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border-dark);
    background: rgba(0, 212, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nav-bell:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.35);
}

.nav-bell-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.nav-bell--active .nav-bell-icon {
    animation: navBellRing 2.2s ease-in-out infinite;
    transform-origin: top center;
}

.nav-bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4d6d, #ff8060);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 77, 109, 0.6);
}

@keyframes navBellRing {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-12deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-6deg); }
    50% { transform: rotate(4deg); }
    60% { transform: rotate(0deg); }
}

.navbar .btn {
    padding: 6px 20px;
    white-space: nowrap;
}

.user-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neon-blue);
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.user-name:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--neon-blue);
    color: var(--text-white);
    transform: translateY(-1px);
}

/* ===== BUTTONS ===== */
.btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-ghost {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border-dark);
}

.btn-ghost:hover:not(:disabled) {
    color: var(--text-white);
    border-color: var(--neon-blue);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: var(--bg-deep);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    box-shadow: var(--glow-blue);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--glow-blue), 0 10px 40px rgba(0, 212, 255, 0.3);
}

/* Navbar Join Now — invitations Accept style */
.navbar .nav-actions .btn-primary,
.navbar .nav-drawer-actions .btn-primary {
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    background: rgba(0, 200, 120, 0.15);
    color: rgba(0, 200, 120, 1);
    border: 1px solid rgba(0, 200, 120, 0.3);
    clip-path: none;
    box-shadow: none;
    transform: none;
    transition: background 0.15s;
}

.navbar .nav-actions .btn-primary:hover:not(:disabled),
.navbar .nav-drawer-actions .btn-primary:hover:not(:disabled) {
    background: rgba(0, 200, 120, 0.25);
    transform: none;
    box-shadow: none;
}

/* Navbar Log In — match Join Now size, invitations ghost style */
.navbar .nav-actions .btn-ghost,
.navbar .nav-drawer-actions .btn-ghost {
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: none;
    transform: none;
    transition: background 0.15s, border-color 0.15s;
}

.navbar .nav-actions .btn-ghost:hover:not(:disabled),
.navbar .nav-drawer-actions .btn-ghost:hover:not(:disabled) {
    background: rgba(0, 212, 255, 0.08);
    color: var(--neon-blue);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: none;
    transform: none;
}

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

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

.btn-full {
    width: 100%;
}

.btn.loading {
    pointer-events: none;
}

.btn-loading {
    opacity: 0.8;
    cursor: wait;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* ===== SPINNER ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== GLOW TEXT ===== */
.glow {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-container,
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.2s ease;
    position: relative;
}

.modal-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--error-red);
    color: var(--error-red);
    transform: scale(1.1);
}

/* ===== MESSAGE MODAL (single OK — walk-on claim feedback, etc.) ===== */
.message-modal .modal-body.message-modal-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 0;
}

.message-modal-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.message-modal--success .message-modal-icon {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
    color: var(--electric-green);
}

.message-modal--info .message-modal-icon {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
}

.message-modal--warning .message-modal-icon {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.message-modal--error .message-modal-icon {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.35);
    color: var(--error-red);
}

.message-modal .modal-message {
    margin: 0;
    flex: 1;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-gray);
    text-transform: none;
    letter-spacing: 0;
}

.message-modal-actions {
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.modal-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.modal-body {
    margin: 16px 0 20px;
}

.modal-message {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-dark);
}

/* ===== SHARED MODAL BUTTONS ===== */
.shub-modal-btn {
    padding: 6px 14px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}
.shub-modal-btn--cancel {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-gray);
}
.shub-modal-btn--cancel:hover {
    border-color: var(--text-gray);
    color: var(--text-primary);
}
.shub-modal-btn--create {
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: var(--neon-purple);
}
.shub-modal-btn--create:hover:not(:disabled) {
    background: rgba(147, 51, 234, 0.28);
    border-color: rgba(147, 51, 234, 0.6);
}
.shub-modal-btn--create:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ConfirmationModal button variants via shub-modal-btn */
.shub-modal-btn--danger {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.35);
    color: var(--error-red);
    padding: 6px 14px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}
.shub-modal-btn--danger:hover:not(:disabled) {
    background: rgba(255, 71, 87, 0.22);
    border-color: rgba(255, 71, 87, 0.65);
}
.shub-modal-btn--danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

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

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

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.section-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border-dark);
    background: var(--bg-deep);
    margin-top: auto;
}

.footer-simple {
    padding: 32px 0;
}

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

.footer-brand p {
    color: var(--text-gray);
    margin-top: 16px;
    max-width: 280px;
}

.footer-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

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

.footer-simple .footer-bottom {
    border-top: none;
    padding-top: 0;
    justify-content: center;
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
}

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

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: var(--glow-blue);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.label-icon {
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.form-input.error,
.squad-select.error,
.team-name-input.error {
    border-color: var(--error-red) !important;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

.form-error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--error-red);
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-gray);
}

/* Server Error */
.server-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--error-red);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.error-icon {
    font-size: 1.2rem;
}

/* ===== CARD STYLES ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-4px);
}

/* ===== COMMON ANIMATIONS ===== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

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

/* ===== RESPONSIVE - COMMON ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 961px) and (max-width: 1200px) {
    .nav-links {
        gap: 16px;
    }

    .nav-links a,
    .nav-lang-toggle {
        font-size: 0.82rem;
        letter-spacing: 1px;
    }

    .nav-lang-btn {
        font-size: 0.68rem;
        padding: 3px 7px;
    }

    .user-name {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .navbar .btn {
        padding: 6px 12px;
    }
}

@media (max-width: 960px) {
    .navbar {
        position: fixed;
    }

    .navbar .container.nav-container {
        position: relative;
        flex-wrap: wrap;
        gap: 8px;
        min-height: 48px;
    }

    .nav-container .logo {
        margin-right: auto;
    }

    .nav-play {
        display: inline-flex;
        position: absolute;
        left: 50%;
        top: 2px;
        transform: translateX(-50%);
        z-index: 3;
    }

    .nav-hamburger {
        display: inline-flex;
        order: 3;
    }

    .nav-bell {
        order: 2;
    }

    .nav-cluster {
        display: none;
        order: 4;
        flex: 1 0 100%;
        flex-direction: column;
        gap: 2px;
        width: 100%;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid var(--border-dark);
    }

    .navbar[data-nav-panel] .nav-cluster {
        display: flex;
    }

    .navbar[data-nav-panel="play"] .nav-links--right,
    .navbar[data-nav-panel="account"] .nav-links--main {
        display: none;
    }

    .nav-links--main,
    .nav-links--right {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        gap: 4px 18px;
        width: 100%;
    }

    .nav-tab-link {
        justify-content: center;
        width: auto;
        min-height: 44px;
        padding: 8px 2px;
    }

    .nav-lang-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links a,
    .nav-lang-toggle {
        letter-spacing: 1px;
        padding-bottom: 8px;
    }

    .nav-links a::after,
    .nav-lang-toggle::after {
        display: none;
    }

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

    .nav-lang-dropdown {
        position: static;
        right: auto;
        margin: 4px 0 0;
        box-shadow: none;
        flex-direction: row;
        min-width: 0;
        width: fit-content;
        background: transparent;
        border: none;
        padding: 0;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

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

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

    .breadcrumb-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.75rem;
    }

    .breadcrumb-section .btn-sm {
        align-self: flex-end;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .navbar {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .navbar .container.nav-container {
        min-width: 0;
        max-width: 100%;
    }

    .nav-container .logo {
        min-width: 0;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .navbar .logo-img {
        height: 36px;
        max-width: 88px;
    }

    .logo-img {
        height: 44px;
        max-width: 112px;
    }

    .logo-img--footer {
        height: 48px;
        max-width: 120px;
    }

    .nav-glyph {
        width: 32px;
        height: 32px;
    }

    .breadcrumb-section {
        top: 70px;
        padding: 10px 0;
    }
}

/* ============================================================
   Visibility / Radio Toggle (used on registration & profile)
   ============================================================ */

.visibility-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-dark);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-option:hover {
    border-color: var(--neon-purple);
    background: rgba(147, 51, 234, 0.05);
}

.radio-option input[type="radio"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--electric-green);
    flex-shrink: 0;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--electric-green);
    background: rgba(0, 255, 136, 0.05);
}

.radio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.radio-description {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Private / walk-on player name privacy */
.player-name--blurred,
.pl-blurred-text {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.player-avatar--blurred,
.pl-avatar--blurred {
    filter: blur(4px);
}

.player-card--blurred,
.sd-player-row--blurred,
.md-player-row--name-blurred {
    cursor: default;
}

.user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.pl-avatar,
.sd-player-avatar,
.sd-admin-chip-avatar,
.sd-admin-modal-avatar,
.md-player-avatar,
.player-rating-avatar,
.player-chip-avatar,
.player-avatar-medium,
.player-avatar-small,
.player-avatar-large,
.nav-me-initials,
.perf-photo {
    overflow: hidden;
}

.nav-me-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-dark);
    vertical-align: middle;
    flex-shrink: 0;
    letter-spacing: 0;
    font-size: 0.75rem;
    line-height: 1;
}

