@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@700&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Deep Maroon/Red Theme */
    --bg-base: #0c0404;
    --bg-surface: #170808;
    --bg-surface-hover: #240c0c;
    --border-color: rgba(255, 60, 60, 0.15);
    --border-light: rgba(255, 255, 255, 0.05);
    
    --text-main: #ffffff;
    --text-muted: #a38c8c;
    
    --primary: #ef4444;
    --primary-hover: #dc2626;
    --primary-glow: rgba(239, 68, 68, 0.4);
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    
    --radius-pill: 999px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --font-brand: 'Syncopate', sans-serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle at 50% 0%, #300c11 0%, transparent 60%);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,0,40,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,0,40,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, rgba(239, 68, 68, 0.06) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Animations */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(7deg); }
    100% { transform: translateY(0px) rotate(5deg); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.slide-down { animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-in { animation: fadeIn 1s ease-out forwards; }
.fade-in-up { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.float-anim { animation: float 6s ease-in-out infinite; }
.bounce-slow { animation: bounceSlow 4s ease-in-out infinite; }


/* Navbar */
.navbar {
    position: sticky;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto 0 auto;
    max-width: 1100px;
    width: calc(100% - 40px);
    background: rgba(20, 5, 5, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 60, 60, 0.15);
    border-radius: var(--radius-pill);
    padding: 12px 16px 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo-img {
    width: 32px; height: 32px; border-radius: 8px;
    background: url('logo.png') center/cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.nav-brand {
    font-family: var(--font-brand); font-size: 18px; letter-spacing: 2px; font-weight: 700; color: #fff;
}

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link {
    color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 700;
    letter-spacing: 0.5px; transition: color 0.2s; position: relative; padding: 6px 0;
}
.nav-link span { font-size: 10px; margin-left: 2px; opacity: 0.7; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--primary); box-shadow: 0 0 10px var(--primary);
}

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-btn-premium {
    background: #f1f5f9; color: #0f172a; border: none; padding: 8px 16px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: transform 0.2s;
}
.nav-btn-premium:hover { transform: scale(1.05); }

.nav-btn-login {
    background: linear-gradient(90deg, #3b82f6, #2563eb); border: none; color: #fff;
    padding: 8px 24px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; letter-spacing: 1px; cursor: pointer;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); transition: all 0.3s;
}
.nav-btn-login:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(59, 130, 246, 0.6); }

@media (max-width: 900px) { .nav-links, .nav-btn-premium { display: none; } }

/* Hero Section */
.hero-section {
    max-width: 1100px;
    margin: 60px auto 40px auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60vh;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-logo-big {
    width: 80px; height: 80px;
    background: url('logo.png') no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 0 25px rgba(239, 68, 68, 0.5));
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-brand);
    font-size: 64px;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    line-height: 1;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-btn-primary {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
}
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(239, 68, 68, 0.5); }

.hero-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-btn-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

/* Floating Card Graphics (Olympus Style) */
.hero-gfx {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    perspective: 1000px;
}

.gfx-card {
    background: rgba(10, 2, 2, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    padding: 24px;
    width: 320px;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(239, 68, 68, 0.1) inset;
    transform: rotateY(-15deg) rotateX(10deg);
}

.gfx-header {
    font-family: var(--font-brand);
    color: #ef4444;
    font-size: 20px;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    line-height: 1.2;
}
.gfx-header small { font-family: var(--font-sans); font-size: 10px; letter-spacing: 2px; color: #fff; }

.gfx-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gfx-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
}

.gfx-icon { font-size: 24px; display: block; margin-bottom: 8px; filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }
.gfx-text strong { font-size: 13px; color: #fff; display: block; margin-bottom: 2px; }
.gfx-text { font-size: 11px; color: var(--text-muted); }

.gfx-shield {
    position: absolute;
    bottom: -30px; right: -30px;
    width: 120px; height: 120px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23ef4444" stroke-width="2" xmlns="http://www.w3.org/2000/svg"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>') no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.6));
    z-index: 10;
}

@media (max-width: 900px) {
    .hero-section { flex-direction: column; text-align: center; margin-top: 20px; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .hero-buttons { justify-content: center; }
    .hero-gfx { display: none; }
}



/* Main Container Layout */
.container { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px 24px; display: flex; flex-direction: column; gap: 32px; }

/* Dashboard UI */
.header { display: flex; justify-content: space-between; align-items: flex-end; }
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.page-sub { font-size: 15px; color: var(--text-muted); margin-top: 4px; }
.status-badge {
    display: flex; align-items: center; gap: 8px; padding: 6px 16px; background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light); border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.status-badge.idle { display: none !important; }
.status-badge.running { color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.05); }
.status-badge.running .status-dot { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; animation: pulse 1.5s infinite; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }

.guild-input-section {
    background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.input-group label { display: block; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 16px; color: var(--text-muted); }
.input-wrapper input {
    width: 100%; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border-light); border-radius: var(--radius-md);
    padding: 16px 16px 16px 48px; font-family: var(--font-mono); font-size: 16px; color: var(--text-main); transition: all 0.2s ease;
}
.input-wrapper input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .panel-grid { grid-template-columns: 1fr; } }
.panel-section { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.section-header h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.btn-grid { display: flex; flex-direction: column; gap: 12px; }
.action-btn {
    display: flex; align-items: center; gap: 16px; padding: 16px; background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light); border-radius: var(--radius-md); cursor: pointer; text-align: left; transition: all 0.2s ease;
}
.action-btn:hover:not(:disabled) { background: var(--bg-surface-hover); border-color: var(--border-color); transform: translateX(4px); }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-icon { font-size: 20px; background: rgba(255,255,255,0.05); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.btn-label { display: block; color: var(--text-main); font-size: 15px; font-weight: 700; }
.btn-desc { display: block; color: var(--text-muted); font-size: 12px; }

.nuke-section { margin-top: 8px; }
.nuke-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 24px; background: linear-gradient(45deg, #450a0a, #7f1d1d);
    border: 1px solid #dc2626; border-radius: var(--radius-lg); cursor: pointer; position: relative; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 10px 40px rgba(220, 38, 38, 0.2);
}
.nuke-glow-effect { position: absolute; top: 0; left: -100%; width: 20px; height: 100%; background: #ff0000; box-shadow: 0 0 30px 10px rgba(255, 0, 0, 0.8); transform: skewX(-20deg); opacity: 0.8; }
.nuke-btn:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 15px 50px rgba(220, 38, 38, 0.6); border-color: #ff0000; }
.nuke-btn:hover:not(:disabled) .nuke-glow-effect { animation: shine 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes shine { 0% { left: -20%; } 100% { left: 120%; } }
.nuke-icon { font-size: 48px; filter: drop-shadow(0 0 15px #ef4444); }
.nuke-label { display: block; color: #fff; font-size: 28px; font-weight: 900; letter-spacing: 4px; text-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
.nuke-desc { display: block; color: #fca5a5; font-size: 13px; font-weight: 500; margin-top: 4px; }

.log-section { background: #050202; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.log-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--border-light); }
.log-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); }
.log-progress { font-size: 13px; font-family: var(--font-mono); color: #fff; font-weight: bold; }
.log-console { padding: 20px; height: 300px; overflow-y: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; }
.log-empty { color: rgba(255, 255, 255, 0.2); font-style: italic; text-align: center; margin-top: auto; margin-bottom: auto; }
.log-entry { color: var(--text-muted); word-break: break-all; animation: slideIn 0.2s ease; }
.log-entry.success { color: #10b981; } .log-entry.error { color: #f43f5e; } .log-entry.info { color: #38bdf8; } .log-entry.warning { color: #f59e0b; }

/* Team Section Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; max-width: 400px; } }

.team-card {
    background: #060305;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card.glow-purple {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.15), inset 0 0 20px rgba(168, 85, 247, 0.05);
}
.team-card.glow-purple:hover { box-shadow: 0 0 50px rgba(168, 85, 247, 0.2), inset 0 0 30px rgba(168, 85, 247, 0.08); }
.team-card.glow-purple .card-avatar { box-shadow: 0 0 20px #a855f7; border-color: #a855f7; }

.team-card.glow-yellow {
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 0 40px rgba(234, 179, 8, 0.15), inset 0 0 20px rgba(234, 179, 8, 0.05);
}
.team-card.glow-yellow:hover { box-shadow: 0 0 50px rgba(234, 179, 8, 0.2), inset 0 0 30px rgba(234, 179, 8, 0.08); }
.team-card.glow-yellow .card-avatar { box-shadow: 0 0 20px #eab308; border-color: #eab308; }

.team-card.glow-orange {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.15), inset 0 0 20px rgba(249, 115, 22, 0.05);
}
.team-card.glow-orange:hover { box-shadow: 0 0 50px rgba(249, 115, 22, 0.2), inset 0 0 30px rgba(249, 115, 22, 0.08); }
.team-card.glow-orange .card-avatar { box-shadow: 0 0 20px #f97316; border-color: #f97316; }

.card-banner {
    width: 100%;
    height: 120px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-size: cover !important;
    background-position: center !important;
}

.card-avatar-wrapper {
    position: relative;
    margin-top: 70px;
    z-index: 2;
}

.card-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #060305;
    object-fit: cover;
}

.avatar-decoration {
    position: absolute;
    top: -9px;
    left: -9px;
    width: 108px;
    height: 108px;
    z-index: 3;
    pointer-events: none;
}

.status-dot-avatar {
    position: absolute;
    bottom: 6px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #747f8d;
    border: 3px solid #060305;
}

.status-dot-avatar.online { background: #3ba55c; }
.status-dot-avatar.idle { background: #faa61a; }
.status-dot-avatar.dnd { background: #ed4245; }

.card-name {
    font-family: var(--font-brand);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.card-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.badge-purple { background: rgba(168, 85, 247, 0.1); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-yellow { background: rgba(234, 179, 8, 0.1); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-orange { background: rgba(249, 115, 22, 0.1); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 0 24px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.2s;
}

.social-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 9999; }
.toast { background: #170808; border: 1px solid var(--border-color); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 16px 20px; color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.toast.error { border-left-color: var(--danger); }

/* Login button in navbar */
.nav-btn-login {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}
.nav-btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
}

/* ==========================================
   USER PROFILE IN NAVBAR
   ========================================== */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 6px 4px 12px;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 60, 60, 0.3);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: #111;
    object-fit: cover;
}

.user-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.nav-btn-logout {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn-logout:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* ==========================================
   UNAUTHORIZED / AUTHENTICATION GATE CARD
   ========================================== */
.unauthorized-card {
    max-width: 600px;
    margin: 80px auto 40px auto;
    background: rgba(20, 5, 5, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 60, 60, 0.15);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.unauthorized-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.lock-icon-container {
    position: relative;
    width: 96px;
    height: 96px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.lock-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

.lock-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.6));
    z-index: 2;
}

.auth-title {
    font-family: var(--font-brand);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    z-index: 1;
}

.auth-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 440px;
    z-index: 1;
}

.auth-action-area {
    display: flex;
    gap: 16px;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-btn-primary {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.auth-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Mobile Responsive Styling (Phone Mode) */
@media (max-width: 600px) {
    /* Navbar Adjustment */
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        padding: 8px 12px 8px 16px;
    }
    .nav-brand {
        font-size: 14px;
        letter-spacing: 1px;
    }
    .user-profile {
        padding: 4px 6px;
        gap: 6px;
    }
    .user-name {
        display: none;
    }
    .nav-btn-logout {
        padding: 4px 10px;
        font-size: 9px;
    }

    /* Hero Section Adjustment */
    .hero-section {
        margin: 30px auto 20px auto;
        padding: 0 16px;
    }
    .hero-logo-big {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-btn-primary, .hero-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Main Container & Dashboard Layout */
    .container {
        padding: 24px 16px 40px 16px;
        gap: 20px;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .page-title {
        font-size: 26px;
    }
    .page-sub {
        font-size: 13px;
    }

    /* Guild Input Section */
    .guild-input-section {
        padding: 16px;
    }
    .input-wrapper input {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }
    .input-icon {
        left: 12px;
    }

    /* Panel sections & Buttons */
    .panel-section {
        padding: 16px;
    }
    .section-header h2 {
        margin-bottom: 16px;
        font-size: 12px;
    }
    .action-btn {
        padding: 12px;
        gap: 12px;
    }
    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .btn-label {
        font-size: 14px;
    }
    .btn-desc {
        font-size: 11px;
    }

    /* Nuke Button */
    .nuke-btn {
        padding: 16px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    .nuke-icon {
        font-size: 36px;
    }
    .nuke-label {
        font-size: 20px;
        letter-spacing: 2px;
    }
    .nuke-desc {
        font-size: 11px;
    }

    /* Console Logging Section */
    .log-header {
        padding: 12px 16px;
    }
    .log-console {
        padding: 12px;
        height: 250px;
        font-size: 12px;
    }

    /* Unauthorized Access Gate Card */
    .unauthorized-card {
        padding: 24px 16px;
        margin: 40px auto 20px auto;
        gap: 16px;
    }
    .lock-icon-container {
        width: 72px;
        height: 72px;
    }
    .lock-icon {
        width: 40px;
        height: 40px;
    }
    .auth-title {
        font-size: 20px;
        letter-spacing: 1px;
    }
    .auth-desc {
        font-size: 13px;
    }
    .auth-action-area {
        width: 100%;
        gap: 12px;
    }
    .auth-btn-primary, .auth-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 12px;
    }
    input#clientSecretInput {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Dynamic Toast styling on mobile */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .toast {
        margin: 0;
        width: 100%;
        font-size: 13px;
        padding: 12px 16px;
    }
}


/* ==========================================
   CUSTOM SCROLLBAR
========================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 60, 60, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 60, 60, 0.6);
}
