/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
    --bg: #060810;
    --bg2: #0c0f18;
    --bg3: #131725;
    --glass: rgba(14, 17, 28, 0.82);
    --glass-border: rgba(255,255,255,0.06);
    --neon: #39ff14;
    --neon-dim: rgba(57,255,20,0.15);
    --neon-glow: 0 0 20px rgba(57,255,20,0.35);
    --gold: #ffd700;
    --gold-bg: linear-gradient(135deg, #3a2c00, #ffd700 50%, #3a2c00);
    --silver: #c0c8d8;
    --silver-bg: linear-gradient(135deg, #2a2d35, #c0c8d8 50%, #2a2d35);
    --bronze: #cd7f32;
    --bronze-bg: linear-gradient(135deg, #2a1a09, #cd7f32 50%, #2a1a09);
    --neon-bg: linear-gradient(135deg, #051a02, #0d3b08 50%, #051a02);
    --text: #f0f2f8;
    --text2: #8a8fa3;
    --font: 'Inter', sans-serif;
    --heading: 'Orbitron', sans-serif;
    --radius: 12px;
    --radius-sm: 6px;
    --ease: cubic-bezier(.4,0,.2,1);
    --danger: #ff3366;
    --warning: #ffa500;
    --success: #39ff14;
    --info: #4dabff;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(57,255,20,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

.accent { color: var(--neon); }
.hidden { display: none !important; }

/* ================================================================
   AMBIENT BACKGROUND
   ================================================================ */
.ambient-bg {
    position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.15; mix-blend-mode: screen;
    animation: float 18s infinite alternate ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: var(--neon); top: -200px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: #0050ff; bottom: -150px; left: -100px; animation-delay: 4s; }
.orb-3 { width: 300px; height: 300px; background: #ff0066; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 8s; opacity: 0.06; }
@keyframes float {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(40px,30px) scale(1.15); }
}

/* ================================================================
   GLASS BOX
   ================================================================ */
.glass-box {
    background: var(--glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* ================================================================
   PAGE SYSTEM
   ================================================================ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; animation: fadePageIn .4s var(--ease); }
@keyframes fadePageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   TOPBAR / NAVBAR
   ================================================================ */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 28px;
    background: rgba(8,10,18,0.92);
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
}
.topbar-left { display: flex; align-items: center; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--neon-dim); border: 1px solid rgba(57,255,20,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--neon);
    box-shadow: var(--neon-glow);
}
.logo-main {
    font-family: var(--heading); font-weight: 900; font-size: 20px;
    letter-spacing: 2px; display: block;
}
.logo-sub { font-size: 10px; color: var(--text2); font-weight: 500; letter-spacing: 0.5px; display: block; }

.nav-links { display: flex; gap: 6px; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 12px; letter-spacing: 0.5px;
    text-transform: uppercase; border: none;
    background: transparent; color: var(--text2);
    transition: all .25s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--neon); background: var(--neon-dim); }

.btn-nav {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 12px; letter-spacing: 0.5px;
    text-transform: uppercase; border: none;
    transition: all .25s var(--ease);
}
.btn-neon {
    background: var(--neon); color: #000;
    box-shadow: 0 0 15px rgba(57,255,20,0.3);
}
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(57,255,20,0.5); }
.btn-ghost {
    background: var(--bg3); color: var(--text);
    border: 1px solid var(--glass-border);
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-danger-outline {
    background: transparent; color: var(--danger);
    border: 1px solid rgba(255,51,102,0.3);
}
.btn-danger-outline:hover { background: rgba(255,51,102,0.1); }

.user-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 20px;
    background: var(--neon-dim); border: 1px solid rgba(57,255,20,0.15);
    font-size: 12px; font-weight: 600; color: var(--neon);
}
.user-badge i { font-size: 14px; }

@media(max-width:768px) {
    .topbar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
    .nav-links { order: 3; width: 100%; justify-content: center; }
    .nav-link span { display: none; }
    .user-badge span { display: none; }
}

/* ================================================================
   LANDING PAGE
   ================================================================ */
.landing-hero {
    min-height: 90vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 80px 24px 60px;
    position: relative;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 30px;
    background: var(--neon-dim); border: 1px solid rgba(57,255,20,0.2);
    font-size: 12px; font-weight: 700; color: var(--neon);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 28px;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(57,255,20,0.3); }
    50% { box-shadow: 0 0 0 10px rgba(57,255,20,0); }
}

.hero-title {
    font-family: var(--heading); font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15; letter-spacing: 2px;
    margin-bottom: 20px;
    max-width: 700px;
}
.hero-title .accent {
    background: linear-gradient(135deg, var(--neon), #00ff88);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text2); max-width: 550px;
    line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-actions .btn-nav { padding: 14px 32px; font-size: 14px; border-radius: 10px; }

.hero-stats {
    display: flex; gap: 40px; margin-top: 60px;
    padding: 28px 40px; border-radius: var(--radius);
    background: var(--glass); border: 1px solid var(--glass-border);
}
.hero-stat { text-align: center; }
.hero-stat-val {
    font-family: var(--heading); font-weight: 900; font-size: 28px;
    color: var(--neon); display: block;
}
.hero-stat-label { font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

@media(max-width:600px) {
    .landing-hero { padding: 40px 16px 30px; min-height: 80vh; }
    .hero-title { font-size: 1.8rem; letter-spacing: 1px; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 24px; }
    .hero-stats { flex-direction: column; gap: 14px; padding: 16px; margin-top: 36px; width: 100%; }
    .section { padding: 40px 16px; }
}
.section-title {
    font-family: var(--heading); font-weight: 900; font-size: 1.6rem;
    text-align: center; letter-spacing: 2px; margin-bottom: 12px;
}
.section-sub {
    text-align: center; color: var(--text2); max-width: 500px;
    margin: 0 auto 48px; font-size: 14px; line-height: 1.6;
}

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    padding: 32px 28px; border-radius: var(--radius);
    background: var(--glass); border: 1px solid var(--glass-border);
    transition: all .35s var(--ease);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    opacity: 0; transition: opacity .35s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(57,255,20,0.15); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--neon-dim); color: var(--neon);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 18px;
}
.feature-card h3 { font-family: var(--heading); font-size: 14px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.feature-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* How It Works Section */
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px; max-width: 900px; margin: 0 auto;
}
.step-card {
    padding: 32px 24px; border-radius: var(--radius);
    background: var(--glass); border: 1px solid var(--glass-border);
    text-align: center; display: flex; flex-direction: column;
    align-items: center; gap: 12px; transition: transform .3s;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(57,255,20,0.2); }
.step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--neon-dim); color: var(--neon);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--heading); font-weight: 900; font-size: 18px;
    border: 1px solid rgba(57,255,20,0.3);
}
.step-card h3 { font-family: var(--heading); font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.step-card p { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* Empty Sidebar */
.empty-sidebar {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 16px; text-align: center; color: var(--text2); gap: 10px;
}
.empty-sidebar i { font-size: 32px; color: rgba(57,255,20,0.3); margin-bottom: 4px; }
.empty-sidebar p { font-size: 14px; font-weight: 600; color: var(--text); }
.empty-sidebar span { font-size: 12px; color: var(--text2); line-height: 1.4; }
.empty-sidebar strong { color: var(--neon); }


/* ================================================================
   AUTH PAGE
   ================================================================ */
.auth-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
}
.auth-card {
    width: 100%; max-width: 420px;
    padding: 32px 24px; border-radius: 16px;
    background: var(--glass); border: 1px solid var(--glass-border);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
@media(max-width:480px) {
    .auth-card { padding: 24px 18px; }
}
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h2 {
    font-family: var(--heading); font-weight: 900; font-size: 22px;
    letter-spacing: 2px; margin-bottom: 8px;
}
.auth-header p { font-size: 13px; color: var(--text2); }
.auth-tabs {
    display: flex; gap: 4px; margin-bottom: 24px;
    background: rgba(0,0,0,0.3); border-radius: 10px; padding: 4px;
}
.auth-tab {
    flex: 1; padding: 10px; border-radius: 8px;
    background: transparent; border: none; color: var(--text2);
    font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
    transition: all .25s; cursor: pointer;
}
.auth-tab.active { background: var(--neon-dim); color: var(--neon); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .fg { display: flex; flex-direction: column; gap: 5px; }
.auth-form label {
    font-size: 11px; font-weight: 700; color: var(--text2);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.auth-form input {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm); padding: 12px 14px;
    color: var(--text); font-size: 14px; outline: none; transition: all .2s;
}
.auth-form input:focus { border-color: var(--neon); box-shadow: 0 0 12px rgba(57,255,20,0.1); }
.auth-form .btn-neon { width: 100%; padding: 14px; font-size: 14px; border-radius: 10px; margin-top: 4px; cursor: pointer; }
.auth-switch {
    text-align: center; font-size: 13px; color: var(--text2); margin-top: 10px;
}
.auth-switch a { color: var(--neon); font-weight: 600; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }
.auth-error {
    padding: 10px 14px; border-radius: var(--radius-sm);
    background: rgba(255,51,102,0.1); border: 1px solid rgba(255,51,102,0.2);
    color: var(--danger); font-size: 12px; display: none;
}
.auth-error.show { display: block; }

/* ================================================================
   DASHBOARD
   ================================================================ */
.dashboard { padding: 24px 16px; max-width: 1100px; margin: 0 auto; }
.dash-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.dash-header h1 {
    font-family: var(--heading); font-size: 20px; font-weight: 900;
    letter-spacing: 1.5px;
}
.dash-welcome {
    font-size: 13px; color: var(--text2); margin-top: 2px;
}

/* Squad Grid */
.squad-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
@media(max-width:600px) {
    .dashboard { padding: 16px 12px; }
    .squad-grid { grid-template-columns: 1fr; gap: 14px; }
    .squad-card { padding: 16px; }
}
.squad-card {
    padding: 24px; border-radius: var(--radius);
    background: var(--glass); border: 1px solid var(--glass-border);
    transition: all .3s var(--ease); cursor: pointer;
}
.squad-card:hover { transform: translateY(-4px); border-color: rgba(57,255,20,0.15); }
.squad-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.squad-card-title {
    font-family: var(--heading); font-size: 14px; font-weight: 700;
    letter-spacing: 1px;
}
.status-badge {
    padding: 4px 10px; border-radius: 12px;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-pending { background: rgba(255,165,0,0.12); color: var(--warning); }
.status-approved { background: rgba(57,255,20,0.12); color: var(--neon); }
.status-rejected { background: rgba(255,51,102,0.12); color: var(--danger); }

.squad-card-meta {
    display: flex; gap: 16px; font-size: 12px; color: var(--text2);
    margin-bottom: 14px;
}
.squad-card-meta i { color: var(--neon); margin-right: 4px; }
.squad-card-mini-pitch {
    height: 100px; border-radius: 8px; overflow: hidden;
    background: linear-gradient(180deg, #0f2610 0%, #162e14 50%, #0f2610 100%);
    border: 1px solid rgba(57,255,20,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: rgba(57,255,20,0.4);
    font-family: var(--heading); letter-spacing: 2px;
}
.squad-card-actions {
    display: flex; gap: 8px; margin-top: 14px;
}
.squad-card-actions .btn-nav { padding: 8px 14px; font-size: 11px; }

/* New Squad Card */
.squad-card-new {
    border: 2px dashed rgba(57,255,20,0.2);
    background: transparent; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    min-height: 250px; gap: 14px; cursor: pointer;
    transition: all .3s;
}
.squad-card-new:hover { border-color: var(--neon); background: rgba(57,255,20,0.03); }
.squad-card-new i { font-size: 36px; color: rgba(57,255,20,0.3); }
.squad-card-new span { font-family: var(--heading); font-size: 12px; color: var(--text2); letter-spacing: 1px; }

/* ================================================================
   PAYMENT MODAL
   ================================================================ */
.payment-flow {
    text-align: center;
}
.payment-amount {
    font-family: var(--heading); font-weight: 900; font-size: 42px;
    color: var(--neon); margin: 16px 0 4px;
    text-shadow: 0 0 30px rgba(57,255,20,0.3);
}
.payment-amount span { font-size: 16px; color: var(--text2); }
.payment-min-note {
    font-size: 11px; color: var(--warning); font-weight: 600;
    display: flex; align-items: center; gap: 6px; justify-content: center;
    margin-bottom: 20px;
}
.payment-iban-box {
    padding: 20px; border-radius: var(--radius);
    background: rgba(0,0,0,0.3); border: 1px solid rgba(57,255,20,0.15);
    margin-bottom: 20px; text-align: left;
}
.payment-iban-box .iban-display {
    font-family: 'Courier New', monospace; font-size: 16px; font-weight: 700;
    color: var(--neon); letter-spacing: 1px; margin: 8px 0;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.payment-iban-box .iban-label {
    font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.payment-iban-box .iban-name {
    font-size: 13px; color: var(--text); margin-top: 6px;
}
.payment-support-msg {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-radius: var(--radius-sm);
    background: rgba(57,255,20,0.06); border: 1px solid rgba(57,255,20,0.15);
    font-size: 13px; color: var(--neon); font-weight: 600;
    margin-bottom: 20px; text-align: left;
}
.payment-support-msg i { font-size: 22px; min-width: 22px; }

.payment-steps {
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 24px; text-align: left;
}
.payment-step {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
}
.payment-step-num {
    width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
    background: var(--neon-dim); color: var(--neon);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--heading); font-weight: 900; font-size: 12px;
}
.payment-step-text { font-size: 13px; color: var(--text2); line-height: 1.5; }
.payment-step-text strong { color: var(--text); }

/* Receipt Upload */
.receipt-upload {
    border: 2px dashed rgba(255,255,255,0.1); border-radius: var(--radius);
    padding: 32px 20px; display: flex; flex-direction: column;
    align-items: center; gap: 10px; cursor: pointer;
    transition: all .25s; position: relative; overflow: hidden;
    margin-bottom: 20px;
}
.receipt-upload:hover { border-color: var(--neon); background: rgba(57,255,20,0.03); }
.receipt-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.receipt-upload i { font-size: 32px; color: rgba(57,255,20,0.3); }
.receipt-upload span { font-size: 13px; color: var(--text2); }
.receipt-upload img {
    max-width: 100%; max-height: 200px; border-radius: 8px;
    display: none;
}
.receipt-upload img.show { display: block; }

/* Squad Name Input */
.squad-name-input {
    width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08);
    color: var(--text); font-size: 14px; font-weight: 600;
    outline: none; transition: border-color .2s;
    margin-bottom: 16px; text-align: center;
    font-family: var(--heading); letter-spacing: 1px;
}
.squad-name-input:focus { border-color: var(--neon); }

/* ================================================================
   SUPER ADMIN
   ================================================================ */
.admin-panel { padding: 32px 28px; max-width: 1200px; margin: 0 auto; }
.admin-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.admin-header h1 {
    font-family: var(--heading); font-size: 22px; font-weight: 900;
    letter-spacing: 2px; display: flex; align-items: center; gap: 12px;
}
.admin-header h1 i { color: var(--danger); }

/* Admin Stats */
.admin-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.admin-stat-card {
    padding: 24px; border-radius: var(--radius);
    background: var(--glass); border: 1px solid var(--glass-border);
    display: flex; align-items: center; gap: 16px;
}
.admin-stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.admin-stat-icon.green { background: var(--neon-dim); color: var(--neon); }
.admin-stat-icon.gold { background: rgba(255,215,0,0.12); color: var(--gold); }
.admin-stat-icon.blue { background: rgba(77,171,255,0.12); color: var(--info); }
.admin-stat-icon.red { background: rgba(255,51,102,0.12); color: var(--danger); }
.admin-stat-val {
    font-family: var(--heading); font-weight: 900; font-size: 24px;
    display: block;
}
.admin-stat-label { font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; }

/* Admin Tabs */
.admin-tabs {
    display: flex; gap: 4px; margin-bottom: 24px;
    background: rgba(0,0,0,0.3); border-radius: 10px; padding: 4px;
    width: fit-content;
}
.admin-tab {
    padding: 10px 20px; border-radius: 8px;
    background: transparent; border: none; color: var(--text2);
    font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
    transition: all .25s; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
}
.admin-tab.active { background: var(--neon-dim); color: var(--neon); }
.admin-tab .count-badge {
    padding: 2px 7px; border-radius: 10px;
    background: rgba(255,165,0,0.2); color: var(--warning);
    font-size: 10px; font-weight: 900;
}

/* Request Cards */
.request-list { display: flex; flex-direction: column; gap: 14px; }
.request-card {
    padding: 20px 24px; border-radius: var(--radius);
    background: var(--glass); border: 1px solid var(--glass-border);
    display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
@media(max-width:768px) {
    .request-card { grid-template-columns: 1fr; }
}
.request-info { display: flex; flex-direction: column; gap: 6px; }
.request-user { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.request-meta { font-size: 12px; color: var(--text2); display: flex; gap: 14px; flex-wrap: wrap; }
.request-meta i { color: var(--neon); }
.request-receipt {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: var(--radius-sm);
    background: rgba(77,171,255,0.08); border: 1px solid rgba(77,171,255,0.2);
    color: var(--info); font-size: 11px; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.request-receipt:hover { background: rgba(77,171,255,0.15); }
.request-actions { display: flex; gap: 8px; }
.request-actions .btn-nav { padding: 10px 20px; }

/* ================================================================
   EDITOR PAGE (Pitch & Mobile Layout)
   ================================================================ */
.editor-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; background: rgba(8,10,18,0.95);
    border-bottom: 1px solid var(--glass-border);
    gap: 10px; position: sticky; top: 0; z-index: 45;
    backdrop-filter: blur(14px);
}
.formation-picker { display: flex; align-items: center; gap: 8px; }
.formation-picker label {
    font-size: 14px; color: var(--neon);
}
.formation-picker select {
    background: var(--bg3); color: var(--text); border: 1px solid rgba(57,255,20,0.3);
    border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; font-weight: 700;
    outline: none; transition: border-color .2s;
}
.formation-picker select:focus { border-color: var(--neon); box-shadow: 0 0 10px rgba(57,255,20,0.2); }

.editor-top-actions { display: flex; align-items: center; gap: 8px; }
.editor-top-actions .btn-nav { padding: 8px 14px; font-size: 11px; }

/* Mobile Editor Segmented Switcher */
.mobile-editor-tabs {
    display: none;
    position: sticky; top: 57px; z-index: 40;
    background: rgba(12,15,24,0.96);
    border-bottom: 1px solid var(--glass-border);
    padding: 6px 12px; gap: 6px;
    backdrop-filter: blur(12px);
}
.m-tab {
    flex: 1; padding: 10px 8px; border-radius: 8px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    color: var(--text2); font-weight: 800; font-size: 11px;
    letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: all .2s; cursor: pointer;
}
.m-tab.active {
    background: var(--neon-dim); color: var(--neon);
    border-color: rgba(57,255,20,0.3);
}
.badge-count {
    background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 10px;
    font-size: 10px; color: var(--neon);
}

.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    min-height: calc(100vh - 130px);
}

@media(max-width:850px) {
    .editor-topbar { padding: 8px 12px; }
    .editor-top-actions .btn-text { display: none; }
    .editor-top-actions .btn-nav { padding: 9px 12px; font-size: 13px; }
    .mobile-editor-tabs { display: flex; }
    .main-layout { display: block; }
    .main-layout .sidebar { display: none; width: 100%; height: auto; position: static; }
    .main-layout .pitch-area { display: flex; width: 100%; padding: 12px 8px; }
    .main-layout.show-players-view .sidebar { display: flex; }
    .main-layout.show-players-view .pitch-area { display: none; }
}

/* ================================================================
   SIDEBAR (Player Pool)
   ================================================================ */
.sidebar {
    background: rgba(10,12,20,0.95);
    border-right: 1px solid var(--glass-border);
    padding: 18px 14px;
    display: flex; flex-direction: column; gap: 14px;
    height: calc(100vh - 120px); position: sticky; top: 120px;
    overflow: hidden;
}
.sidebar-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sidebar-head h2 {
    font-family: var(--heading); font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; display: flex; align-items: center; gap: 8px;
}
.btn-add {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--neon-dim); border: 1px solid rgba(57,255,20,0.25);
    color: var(--neon); font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s; cursor: pointer;
}
.btn-add:hover { background: var(--neon); color: #000; box-shadow: var(--neon-glow); }

.player-list {
    flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
    padding-right: 2px;
}

/* PLAYER LIST ITEMS */
.pl-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    cursor: pointer; transition: all .2s var(--ease);
    position: relative;
    touch-action: manipulation;
}
.pl-item:hover, .pl-item:active {
    background: rgba(57,255,20,0.06);
    border-color: rgba(57,255,20,0.2);
}
.pl-item.active {
    background: rgba(57,255,20,0.08);
    border-color: rgba(57,255,20,0.3);
}
.pl-item.active::after {
    content: '⚡'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 12px;
}

.pl-ovr {
    min-width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--heading); font-weight: 900; font-size: 14px;
}
.pl-ovr.t-neon { background: var(--neon-dim); color: var(--neon); }
.pl-ovr.t-gold { background: rgba(255,215,0,0.12); color: var(--gold); }
.pl-ovr.t-silver { background: rgba(192,200,216,0.1); color: var(--silver); }
.pl-ovr.t-bronze { background: rgba(205,127,50,0.12); color: var(--bronze); }

.pl-avatar {
    width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
}
.pl-avatar img { width: 100%; height: 100%; object-fit: cover; }

.pl-info { flex: 1; min-width: 0; }
.pl-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-meta { font-size: 11px; color: var(--text2); display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.pl-pos-tag {
    background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 3px;
    font-weight: 700; font-size: 10px; letter-spacing: 0.5px;
}

.pl-actions {
    display: flex; gap: 6px;
}
.pl-act {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: var(--text2); font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s; cursor: pointer;
}
.pl-act:hover, .pl-act:active { background: var(--neon-dim); color: var(--neon); border-color: rgba(57,255,20,0.3); }
.pl-act.danger:hover, .pl-act.danger:active { background: rgba(255,0,60,0.15); color: #ff3366; border-color: rgba(255,0,60,0.3); }

/* ================================================================
   PITCH AREA & RESPONSIVE PITCH
   ================================================================ */
.pitch-area {
    padding: 20px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.pitch-wrapper {
    width: 100%; max-width: 680px;
    display: flex; flex-direction: column; gap: 16px;
}

.pitch {
    position: relative; width: 100%;
    aspect-ratio: 5/7;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(30,80,20,0.55) 0%, transparent 65%),
        radial-gradient(ellipse at 50% 70%, rgba(20,60,15,0.45) 0%, transparent 55%),
        linear-gradient(180deg, #0d230e 0%, #152b13 25%, #0d230e 50%, #152b13 75%, #0d230e 100%);
    border-radius: 14px;
    border: 2px solid rgba(57,255,20,0.25);
    box-shadow: 0 0 60px rgba(57,255,20,0.06), inset 0 0 80px rgba(0,0,0,0.5);
    overflow: hidden;
    touch-action: manipulation;
}

.pitch-svg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1;
}

.lineup-layer {
    position: absolute; inset: 0; z-index: 5;
}

/* ================================================================
   PITCH SLOTS (RESPONSIVE)
   ================================================================ */
.slot {
    position: absolute; transform: translate(-50%,-50%);
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; z-index: 10; transition: transform .2s var(--ease);
    touch-action: manipulation;
}

.slot.empty .slot-circle {
    width: clamp(40px, 8vw, 54px);
    height: clamp(40px, 8vw, 54px);
    border-radius: 50%;
    border: 2px dashed rgba(57,255,20,0.35);
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.slot.empty:hover .slot-circle, .slot.empty:active .slot-circle {
    border-color: var(--neon);
    background: rgba(57,255,20,0.12);
    box-shadow: 0 0 20px rgba(57,255,20,0.3);
    transform: scale(1.08);
}
.slot-pos-label {
    font-family: var(--heading); font-size: clamp(8px, 2vw, 10px); font-weight: 800;
    color: rgba(57,255,20,0.6); margin-top: 3px;
    background: rgba(0,0,0,0.7); padding: 1px 6px; border-radius: 6px;
    letter-spacing: 0.5px;
}
.slot.empty:hover .slot-pos-label { color: var(--neon); }

.slot.drag-over .slot-circle {
    border-color: var(--neon) !important;
    background: rgba(57,255,20,0.2) !important;
    box-shadow: 0 0 30px rgba(57,255,20,0.5) !important;
    transform: scale(1.15);
}

/* ================================================================
   RESPONSIVE FIFA PLAYER CARD (PITCH & MOBILE)
   ================================================================ */
.card {
    width: clamp(52px, 12.5vw, 92px);
    position: relative;
    border-radius: 6px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    transition: transform .2s var(--ease), box-shadow .2s;
    animation: cardPop .3s var(--ease);
    cursor: pointer;
    touch-action: manipulation;
}
.card:hover, .card:active { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 25px rgba(0,0,0,0.9); }

@keyframes cardPop {
    0% { opacity: 0; transform: scale(0.7) translateY(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.card.t-neon { background: var(--neon-bg); border: 1.5px solid rgba(57,255,20,0.5); }
.card.t-gold { background: var(--gold-bg); border: 1.5px solid rgba(255,215,0,0.5); }
.card.t-silver { background: var(--silver-bg); border: 1.5px solid rgba(192,200,216,0.4); }
.card.t-bronze { background: var(--bronze-bg); border: 1.5px solid rgba(205,127,50,0.4); }

.card.t-neon .card-inner { background: rgba(5,20,2,0.7); }
.card.t-gold .card-inner { background: rgba(40,30,0,0.6); }
.card.t-silver .card-inner { background: rgba(30,32,40,0.6); }
.card.t-bronze .card-inner { background: rgba(30,15,5,0.6); }

.card-inner {
    position: relative; padding: clamp(2px, 1vw, 5px);
    display: flex; flex-direction: column; align-items: center;
}

.card-badge {
    position: absolute; top: clamp(2px, 0.8vw, 4px); left: clamp(2px, 0.8vw, 5px); z-index: 3;
    display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.card-rating { font-family: var(--heading); font-weight: 900; font-size: clamp(12px, 2.8vw, 20px); }
.card-pos {
    font-family: var(--heading); font-weight: 700; font-size: clamp(6px, 1.4vw, 8px);
    letter-spacing: 0.5px; margin-top: 1px;
    padding: 1px 3px; border-radius: 2px;
    background: rgba(0,0,0,0.5);
}

.card.t-neon .card-rating { color: var(--neon); text-shadow: 0 0 8px rgba(57,255,20,0.6); }
.card.t-gold .card-rating { color: var(--gold); text-shadow: 0 0 8px rgba(255,215,0,0.4); }
.card.t-silver .card-rating { color: #fff; }
.card.t-bronze .card-rating { color: var(--bronze); text-shadow: 0 0 8px rgba(205,127,50,0.4); }

.card-avatar {
    width: clamp(34px, 7.5vw, 58px);
    height: clamp(34px, 7.5vw, 58px);
    margin: 1px auto 0; position: relative; z-index: 2;
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden;
}
.card-avatar img {
    height: 100%; width: auto; max-width: 140%;
    object-fit: cover; object-position: top center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.card-name {
    width: 100%; text-align: center; padding: 2px 2px 1px;
    font-weight: 800; font-size: clamp(6.5px, 1.5vw, 9px); letter-spacing: 0.3px;
    text-transform: uppercase; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    border-radius: 2px; margin-top: 1px;
}
.card.t-neon .card-name { background: rgba(57,255,20,0.12); color: var(--neon); }
.card.t-gold .card-name { background: rgba(0,0,0,0.6); color: var(--gold); }
.card.t-silver .card-name { background: rgba(0,0,0,0.6); color: var(--silver); }
.card.t-bronze .card-name { background: rgba(0,0,0,0.6); color: var(--bronze); }

.card-stats {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5px;
    width: 100%; margin-top: 2px; padding: 2px 0 1px;
    background: rgba(0,0,0,0.3); border-radius: 0 0 4px 4px;
}
.cs {
    display: flex; flex-direction: column; align-items: center;
    font-size: clamp(5px, 1.1vw, 7px); font-weight: 700; line-height: 1.2; color: rgba(255,255,255,0.7);
}
.cs-val { font-family: var(--heading); font-weight: 900; font-size: clamp(7px, 1.5vw, 9.5px); }
.card.t-neon .cs-val { color: var(--neon); }
.card.t-gold .cs-val { color: var(--gold); }
.card.t-silver .cs-val { color: #fff; }
.card.t-bronze .cs-val { color: var(--bronze); }

/* Video indicator on card */
.card-video-indicator {
    position: absolute; top: 3px; right: 3px; z-index: 20;
    width: clamp(14px, 2.5vw, 18px); height: clamp(14px, 2.5vw, 18px); border-radius: 50%;
    background: rgba(255,0,85,0.9); color: #fff;
    font-size: 7px; display: flex; align-items: center; justify-content: center;
    animation: videoPulse 2s infinite;
}
@keyframes videoPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,0,85,0.4); }
    50% { box-shadow: 0 0 0 5px rgba(255,0,85,0); }
}

.card-remove {
    position: absolute; top: -3px; right: -3px; z-index: 20;
    width: 18px; height: 18px; border-radius: 50%;
    background: #ff0055; color: #fff; border: 1.5px solid rgba(0,0,0,0.6);
    font-size: 9px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(255,0,85,0.4);
    cursor: pointer;
}

/* ================================================================
   MATCH DETAILS PANEL (RESPONSIVE)
   ================================================================ */
.match-panel {
    background: var(--glass); backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 16px 18px; width: 100%;
}
.match-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.match-panel-head h3 {
    font-family: var(--heading); font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; display: flex; align-items: center; gap: 8px;
}
.btn-edit-match {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text2); font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s; cursor: pointer;
}
.btn-edit-match:hover, .btn-edit-match:active { background: var(--neon-dim); color: var(--neon); border-color: rgba(57,255,20,0.3); }

.match-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
}
.match-item { display: flex; gap: 10px; align-items: flex-start; }
.match-item-wide { grid-column: 1 / -1; }

.match-icon {
    width: 34px; height: 34px; min-width: 34px; border-radius: 8px;
    background: var(--neon-dim); color: var(--neon);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.match-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.match-label {
    font-size: 10px; font-weight: 700; color: var(--text2);
    text-transform: uppercase; letter-spacing: 0.8px;
}
.match-val { font-family: var(--heading); font-size: 13px; font-weight: 700; word-break: break-all; }
.match-link {
    color: var(--neon); display: inline-flex; align-items: center; gap: 4px;
    transition: all .2s; font-family: var(--font); font-weight: 600; font-size: 12px;
}
.match-sub { font-size: 11px; color: var(--text2); margin-top: 2px; }
.mono { font-family: 'Courier New', monospace; letter-spacing: 0.5px; font-size: 12px; }
.iban-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-copy {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px; border-radius: var(--radius-sm);
    background: var(--neon-dim); border: 1px solid rgba(57,255,20,0.2);
    color: var(--neon); font-size: 10px; font-weight: 700;
    transition: all .2s; cursor: pointer;
}
.btn-copy:hover, .btn-copy:active { background: var(--neon); color: #000; }

/* ================================================================
   MODALS (MOBILE BOTTOM SHEET & DESKTOP CENTER)
   ================================================================ */
.modal-bg {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(3,4,8,0.88); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
    padding: 16px;
}
.modal-bg.open { opacity: 1; pointer-events: auto; }

.modal {
    width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto;
    padding: 22px; border-radius: var(--radius);
    background: var(--glass); border: 1px solid var(--glass-border);
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 30px rgba(57,255,20,0.05);
    transform: scale(0.94); transition: transform .3s var(--ease);
}
.modal-bg.open .modal { transform: scale(1); }
.modal-narrow { max-width: 420px; }

@media(max-width:600px) {
    .modal-bg {
        align-items: flex-end; padding: 0;
    }
    .modal {
        max-width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0;
        padding: 20px 16px env(safe-area-inset-bottom, 20px);
        transform: translateY(100%);
    }
    .modal-bg.open .modal { transform: translateY(0); }
}

.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.modal-head h3 {
    font-family: var(--heading); font-size: 14px; font-weight: 700;
    letter-spacing: 1px; display: flex; align-items: center; gap: 8px;
}
.modal-close {
    background: none; border: none; color: var(--text2);
    font-size: 24px; line-height: 1; cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--text); }

.modal-foot {
    display: flex; justify-content: flex-end; gap: 10px;
    padding-top: 16px; margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.btn-cancel {
    padding: 10px 18px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    color: var(--text); font-weight: 600; font-size: 13px;
    cursor: pointer;
}
.btn-save {
    padding: 10px 22px; border-radius: var(--radius-sm);
    background: var(--neon); border: none; color: #000;
    font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(57,255,20,0.3); cursor: pointer;
}

/* Forms */
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media(max-width:600px) { .form-cols { grid-template-columns: 1fr; } }
.form-col { display: flex; flex-direction: column; gap: 12px; }
.fg { display: flex; flex-direction: column; gap: 4px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fg label {
    font-size: 11px; font-weight: 700; color: var(--text2);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.fg input[type="text"], .fg input[type="url"], .fg input[type="password"], .fg select {
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm); padding: 12px 14px;
    color: var(--text); font-size: 14px; outline: none; transition: border-color .2s;
}
.fg input:focus, .fg select:focus { border-color: var(--neon); box-shadow: 0 0 8px rgba(57,255,20,0.15); }

/* Upload box */
.upload-box {
    position: relative; height: 80px;
    border: 2px dashed rgba(255,255,255,0.12); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; cursor: pointer;
}
.upload-box:hover, .upload-box:active { border-color: var(--neon); }
.upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-hint { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text2); font-size: 11px; }
.photo-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-prev.show { display: block; }

/* Stat sliders */
.stat-title { font-family: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--text2); }
.stat-row { display: flex; align-items: center; gap: 8px; }
.stat-name { width: 32px; font-weight: 700; font-size: 11px; color: var(--text2); }
.stat-range {
    flex: 1; -webkit-appearance: none; height: 6px; border-radius: 3px;
    background: rgba(255,255,255,0.08); outline: none;
}
.stat-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--neon); cursor: pointer;
    box-shadow: 0 0 8px rgba(57,255,20,0.5);
}
.stat-num { font-family: var(--heading); font-weight: 900; font-size: 13px; color: var(--neon); width: 26px; text-align: right; }
.ovr-box {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--neon-dim); border: 1px solid rgba(57,255,20,0.2);
    border-radius: var(--radius-sm); padding: 10px 14px;
    font-family: var(--heading); font-weight: 700; font-size: 11px;
}
.ovr-val { font-size: 26px; font-weight: 900; color: var(--neon); text-shadow: 0 0 12px rgba(57,255,20,0.5); }

/* ================================================================
   SHARE MODAL
   ================================================================ */
.share-body { display: flex; flex-direction: column; gap: 10px; }
.share-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: var(--radius);
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    text-align: left; color: var(--text); transition: all .2s;
    cursor: pointer; touch-action: manipulation;
}
.share-btn:hover, .share-btn:active { background: rgba(255,255,255,0.06); border-color: rgba(57,255,20,0.2); }
.share-btn strong { font-size: 13px; display: block; }
.share-btn p { font-size: 11px; color: var(--text2); margin: 0; }
.sb-icon {
    width: 38px; height: 38px; border-radius: 8px; min-width: 38px;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.sb-green { background: var(--neon-dim); color: var(--neon); }
.sb-blue { background: rgba(0,100,255,0.12); color: #4dabff; }
.sb-wa { background: rgba(37,211,102,0.12); color: #25d366; }

/* ================================================================
   CARD INSPECTION MODAL (VIEWER)
   ================================================================ */
.inspect-bg {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(3,4,8,0.92); backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .3s;
    padding: 16px;
}
.inspect-bg.open { opacity: 1; pointer-events: auto; }

.inspect-panel {
    width: 100%; max-width: 760px;
    display: grid; grid-template-columns: 240px 1fr; gap: 20px;
    align-items: start; max-height: 90vh; overflow-y: auto;
    transform: scale(0.92); transition: transform .3s var(--ease);
}
.inspect-bg.open .inspect-panel { transform: scale(1); }

@media(max-width:700px) {
    .inspect-panel { grid-template-columns: 1fr; max-width: 360px; gap: 14px; }
}

.inspect-card-wrap { display: flex; flex-direction: column; align-items: center; }
.inspect-card { width: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 50px rgba(0,0,0,0.8); }
.inspect-card .card-inner { padding: 10px; }
.inspect-card .card-rating { font-size: 36px; }
.inspect-card .card-avatar { width: 110px; height: 110px; }
.inspect-card .card-name { font-size: 14px; padding: 6px; }
.inspect-card .card-stats { padding: 6px 3px; }
.inspect-card .cs { font-size: 9px; }
.inspect-card .cs-val { font-size: 14px; }

.inspect-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: var(--text); font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
}

.inspect-info { display: flex; flex-direction: column; gap: 14px; }
.inspect-player-name { font-family: var(--heading); font-weight: 900; font-size: 20px; letter-spacing: 1px; }
.inspect-player-nick { font-size: 13px; color: var(--neon); font-weight: 600; margin-top: -10px; }

.inspect-video {
    border-radius: var(--radius); overflow: hidden;
    background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border);
    aspect-ratio: 16/9;
}
.inspect-video iframe, .inspect-video video { width: 100%; height: 100%; border: none; }
.inspect-video-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; color: var(--text2); font-size: 12px;
}

.inspect-stats { display: flex; flex-direction: column; gap: 8px; }
.inspect-stat-row { display: flex; align-items: center; gap: 10px; }
.inspect-stat-label { width: 34px; font-weight: 700; font-size: 10px; color: var(--text2); font-family: var(--heading); }
.inspect-stat-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.inspect-stat-fill { height: 100%; border-radius: 3px; background: var(--neon); box-shadow: 0 0 8px rgba(57,255,20,0.3); }
.inspect-stat-fill.high { background: var(--neon); }
.inspect-stat-fill.mid { background: var(--gold); box-shadow: 0 0 8px rgba(255,215,0,0.3); }
.inspect-stat-fill.low { background: var(--danger); box-shadow: 0 0 8px rgba(255,51,102,0.3); }
.inspect-stat-val { width: 26px; text-align: right; font-family: var(--heading); font-weight: 900; font-size: 13px; color: var(--neon); }

/* ================================================================
   EMPTY STATE & TOASTS
   ================================================================ */
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; text-align: center; color: var(--text2);
}
.empty-state i { font-size: 40px; opacity: 0.2; margin-bottom: 12px; }
.empty-state h3 { font-family: var(--heading); font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--text); }

.toast-stack {
    position: fixed; bottom: 20px; right: 16px; left: 16px; z-index: 999;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
    align-items: center;
}
.toast-item {
    background: rgba(14,17,28,0.95); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--neon);
    padding: 12px 18px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    display: flex; align-items: center; gap: 8px;
    animation: toastIn .3s forwards; pointer-events: auto;
    max-width: 400px; width: fit-content;
}
.toast-item.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(30px); opacity: 0; } }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    padding: 32px 20px 20px; text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}
.site-footer p { font-size: 12px; color: var(--text2); }
.site-footer .accent { font-weight: 700; }

