html { scroll-behavior: smooth; }
:root {
    --bg: #0a0a10;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --border: #252530;
    --border-light: #2a2a38;
    --text: #e4e4e9;
    --muted: #c1c1d1;
    --accent: #7c3aed;
    --accent-hover: #9333ea;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --twitch: #9146ff;
    --twitch-hover: #772ce8;
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --orange: #f97316;
    --radius: 12px;
    --radius-sm: 4px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --transition: 0.2s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo .logo-img {
    height: 60px;
}

.logo-img {
    height: 96px;
    width: auto;
    display: block;
}

.logo-big {
    height: auto;
    max-width: 280px;
    width: 100%;
    display: block;
}

.hero-content .logo-big {
    margin: 0 auto 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-logo .logo-img {
    height: 120px;
    flex-shrink: 0;
}

.footer-logo p {
    margin: 0;
    font-size: 0.85rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: white;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover { color: var(--text); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

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

/* AUTH */
.btn-twitch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--twitch);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background var(--transition), transform var(--transition);
}

.btn-twitch:hover {
    background: var(--twitch-hover);
    transform: translateY(-1px);
}

.user-menu { position: relative; }

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.user-btn:hover { border-color: var(--accent); }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 180px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.user-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 12px;
}

.user-menu:hover .user-dropdown { display: block; }

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--muted);
    transition: background var(--transition), color var(--transition);
}

.user-dropdown a:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.logout-link { color: var(--red) !important; }

/* MOBILE TOGGLE */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* FLASH */
.flash-msg {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    animation: flashIn 0.3s ease, flashOut 0.3s ease 3s forwards;
}
.flash-success { background: var(--green); color: white; }
.flash-error { background: var(--red); color: white; }

@keyframes flashIn { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes flashOut { from { opacity: 1; } to { opacity: 0; pointer-events: none; } }

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect fill="url(%23g)" width="100" height="100"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 16px;
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-subtitle strong { color: var(--text); }

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: translateY(-6px); }
    50% { opacity: 1; transform: translateY(6px); }
}

/* SECTIONS */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* EVENTOS */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.evento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.evento-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.evento-image {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.evento-body { padding: 24px; }

.evento-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.evento-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.evento-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.prize {
    color: var(--yellow);
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

/* PARCEIROS */
.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 36px;
    transition: transform var(--transition), filter var(--transition);
}

.logo-link:hover {
    transform: translateY(-4px);
}

.logo-img {
    max-height: 48px;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px var(--accent-glow));
    transition: filter var(--transition);
}

.logo-link:hover .logo-img {
    filter: drop-shadow(0 0 26px var(--accent));
}

@media (max-width: 768px) {
    .logo-link { padding: 16px 24px; }
    .logo-img { max-height: 40px; max-width: 140px; }
}

.ranking-section { padding: 100px 0; }

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.badge-gray { background: rgba(107,107,128,0.2); color: var(--muted); }
.badge-green { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-yellow { background: rgba(234,179,8,0.15); color: var(--yellow); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--red); }
/* PERFIL */
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 16px;
    display: block;
}

/* CONQUISTAS */
.conquistas-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.conquista {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 100px;
    transition: border-color var(--transition);
}

.conquista:hover { border-color: var(--accent); }

.conquista i {
    font-size: 1.5rem;
    color: var(--accent);
}

.conquista-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-card);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-question h4 { font-size: 1rem; }

.faq-toggle {
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform var(--transition);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-item.active .faq-answer { display: block; }

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-light);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text);
}

/* FOOTER */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 12px 0;
    max-width: 300px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
}

/* FORMS (Admin) */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-green { background: var(--green); color: white; }
.btn-red { background: var(--red); color: white; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

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

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    height: 56px;
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--muted);
}

.data-table tr:hover td { background: var(--bg-card-hover); }

/* CAMPEONATO DETALHE */
.campe-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.campe-header .section-tag { margin-bottom: 12px; }

.campe-header h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.campe-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.campe-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.campe-meta-item i { color: var(--accent); }

.campe-body { padding: 60px 0; }

.campe-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.campe-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.campe-section h3 i { color: var(--accent); font-size: 0.9rem; }

.campe-rules {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-line;
}

.btn-inscrever {
    width: 100%;
    padding: 16px;
    justify-content: center;
    font-size: 1rem;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 24px;
        gap: 16px;
    }
    .eventos-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .campe-meta { gap: 16px; }
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 1.8rem; }
}

/* Crachá card */
.cracha-wrapper {
    width: 320px;
    margin: 0 auto;
}

.cracha-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.cracha-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.cracha-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 16px;
    background: var(--bg-secondary);
}

.cracha-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.cracha-nick {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.cracha-divider {
    width: 60%;
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.cracha-info {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.cracha-info strong {
    color: var(--text);
}

.cracha-btn {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background var(--transition);
}

.cracha-btn:hover {
    background: var(--accent-hover);
}

.cracha-phrase {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.5;
    margin: 8px 0;
}

.cracha-phrase i {
    color: var(--accent);
    margin-right: 6px;
}

.cracha-phrase--quoted {
    font-size: 1.2rem;
}

.cracha-quote {
    color: var(--accent);
    font-size: 1.4rem;
    vertical-align: middle;
    margin: 0 2px;
    text-shadow: 0 0 12px var(--accent-glow);
}

/* FUNCIONÁRIOS */
.func-legend {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.func-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
}

.func-legend-item i {
    font-size: 1rem;
}

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

.func-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.func-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.func-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 10px;
    background: var(--bg-secondary);
}

.func-avatar-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.func-nick {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.func-medal--gold { color: #ffd700; }
.func-medal--silver { color: #c0c0c0; }
.func-medal--bronze { color: #cd7f32; }

.func-medals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
    cursor: pointer;
}

.func-medal {
    display: flex;
    align-items: center;
    gap: 4px;
}

.func-medal i {
    font-size: 0.9rem;
}

.func-medal-count {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
}

.func-trophy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    padding: 4px 0;
}

.func-trophy-row i {
    font-size: 0.9rem;
}

.func-trophy-row span {
    flex: 1;
    text-align: left;
}

.func-trophy-link {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    transition: color var(--transition), border-color var(--transition);
}

.func-trophy-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.func-trophy-empty {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    padding: 8px 0;
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--red);
}

.modal-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding-right: 28px;
}

.modal-body {
    text-align: left;
}

.func-username {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.func-divider {
    width: 60%;
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.func-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.func-stat {
    text-align: center;
    min-width: 52px;
}

.func-stat i {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.func-stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
}

.func-stat-label {
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.func-camps i, .func-camps .func-stat-value { color: var(--accent); }
.func-win i, .func-win .func-stat-value { color: var(--green); }
.func-loss i, .func-loss .func-stat-value { color: var(--red); }
 