:root {
    --bg-dark: #0f1115;
    --bg-card: #16181d;
    --bg-sidebar: #131519;
    --accent: #9b59b6;
    --accent-glow: rgba(155, 89, 182, 0.3);
    --text-light: #f0f0f0;
    --text-muted: #999;
    --border: rgba(255, 255, 255, 0.07);
    --border-light: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 5%;
    background: rgba(15, 17, 21, 0.92);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.nav-btn {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.5rem 1.3rem;
    border-radius: 6px;
    font-weight: 700 !important;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #b06fd0 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px var(--accent-glow);
}

#user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.avatar-popup {
    position: absolute;
    top: 46px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    white-space: nowrap;
    z-index: 200;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.15s ease;
}

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

/* ===== MOD HEADER ===== */
.mod-header {
    padding: 120px 5% 50px;
    background: linear-gradient(180deg, #1a1e28 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border);
}

.mod-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.mod-icon {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    border: 3px solid var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
    object-fit: cover;
    flex-shrink: 0;
}

.mod-header-info h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
}

.mod-byline {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.mod-byline strong {
    color: #fff;
}

.mod-tagline {
    color: #bbb;
    font-size: 1.05rem;
    max-width: 650px;
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.mod-actions {
    display: flex;
    gap: 1rem;
}

.primary-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.85rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px var(--accent-glow);
}

.primary-btn:hover {
    background: #b06fd0;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(155, 89, 182, 0.45);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 0.95rem;
    color: #ccc;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.tag {
    display: inline-block;
    background: rgba(155, 89, 182, 0.15);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(155, 89, 182, 0.25);
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.tab:hover {
    color: #ddd;
}

.tab.active {
    color: #fff;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* ===== TAB PANELS ===== */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
}

.tab-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.6rem;
    color: #eee;
}

.tab-panel p {
    color: #bbb;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.75;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: #fff;
}

.feature-card p {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
    line-height: 1.6;
}

/* ===== DOWNLOAD SECTION ===== */
.download-intro {
    color: #bbb;
    margin-bottom: 2rem;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.dl-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.download-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.3rem;
    color: #fff;
}

.dl-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.download-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: #b06fd0;
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
    padding: 3rem 5% 2rem;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    color: #fff;
    border-color: var(--accent);
    background: rgba(155, 89, 182, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--border);
    margin: 0 auto 1.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.link-sep {
    color: rgba(255, 255, 255, 0.15);
}

.footer-copy {
    color: #555;
    font-size: 0.8rem;
}

/* ===== JOIN HERO ===== */
.join-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
}

.join-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 50% 40%, rgba(155, 89, 182, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 500px at 20% 60%, rgba(88, 101, 242, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 400px 500px at 80% 30%, rgba(155, 89, 182, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.join-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.join-hero-particles .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(120vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

.join-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
}

/* Player face */
.player-face-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.player-face-ring {
    position: absolute;
    inset: -8px;
    border-radius: 16px;
    border: 2px solid var(--accent);
    animation: ringPulse 2.5s ease-out infinite;
    opacity: 0.45;
}

.player-face-ring:nth-child(1) {
    animation-delay: 0s;
}

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.12); opacity: 0; }
}

.player-face {
    width: 128px;
    height: 128px;
    border-radius: 14px;
    border: 3px solid var(--accent);
    box-shadow: 0 0 50px var(--accent-glow), 0 0 100px rgba(155, 89, 182, 0.15);
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.player-face-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4ade80;
    margin-top: -16px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Player info */
.player-name {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #fff;
}

.player-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* Join button */
.join-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.25s ease;
    box-shadow: 0 8px 32px var(--accent-glow);
    overflow: hidden;
    margin-bottom: 36px;
}

.join-btn:hover {
    background: #b06fd0;
    transform: translateY(-3px);
    box-shadow: 0 14px 44px rgba(155, 89, 182, 0.45);
}

.join-btn:active {
    transform: translateY(-1px) scale(0.97);
}

.join-btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.join-btn-icon {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
}

.join-btn span:not(.join-btn-glow) {
    position: relative;
    z-index: 1;
}

/* Join meta info */
.join-meta {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.join-meta-item {
    text-align: center;
}

.join-meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.join-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
}

/* IP copy button */
.ip-copy-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    position: relative;
}

.ip-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: var(--accent);
}

.copy-toast {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.copy-toast.show {
    opacity: 1;
}

/* Warning text */
.join-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 0.8rem;
    color: #eab308;
    font-weight: 500;
    margin-top: 24px;
}

.join-fallback {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.join-fallback a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.join-fallback a:hover {
    color: #b06fd0;
}

/* Finished popup */
.finished-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.finished-popup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 40px;
    text-align: center;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.finished-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.finished-popup h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.finished-popup p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.finished-popup button {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 10px 36px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: background 0.2s;
}

.finished-popup button:hover {
    background: #b06fd0;
}

/* Allow popup */
.allow-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

.allow-popup {
    background: #1a1a24;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 36px 32px 28px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 70px rgba(0,0,0,0.5);
}

.allow-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.35);
}

.allow-popup h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.allow-popup p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-bottom: 24px;
}

.allow-actions {
    display: flex;
    gap: 12px;
}

.allow-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}

.allow-cancel {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
}

.allow-cancel:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.allow-ok {
    background: #5865f2;
    border: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
}

.allow-ok:hover {
    background: #4752c4;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45);
}

/* Setup popup */
.setup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.setup-popup {
    background: #13131d;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 36px 32px 24px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.setup-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.setup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
}

.setup-step span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
}

.setup-step.done span {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.setup-step.done {
    color: #22c55e;
}

.setup-line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 4px;
    margin-top: -14px;
}

.setup-info {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 22px;
    line-height: 1.5;
}

.setup-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.setup-btn {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}

.setup-cancel {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
}

.setup-cancel:hover {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.setup-install {
    background: linear-gradient(135deg, #5865f2, #7289da);
    border: none;
    color: #fff;
    box-shadow: 0 6px 22px rgba(88, 101, 242, 0.35);
}

.setup-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.5);
}

.setup-install:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.setup-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
}

/* Modal / Popup */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    color: var(--accent);
    background: rgba(155, 89, 182, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.modal-icon svg {
    width: 28px;
    height: 28px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-player {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 18px 8px 8px;
    margin-bottom: 24px;
}

.modal-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.modal-player span {
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
}

.modal-btn-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.modal-btn-cancel:hover {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.modal-btn-accept {
    background: var(--accent);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.modal-btn-accept:hover {
    background: #b06fd0;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(155, 89, 182, 0.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .mod-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .mod-actions {
        justify-content: center;
    }

    .mod-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .download-cards {
        grid-template-columns: 1fr;
    }

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

    .mod-header-info h1 {
        font-size: 2rem;
    }

    .mod-icon {
        width: 100px;
        height: 100px;
    }
}
