:root {
    --primary: #ff8c00;
    --bg: #0a0c10;
    --surface: #12151c;
    --border: #1f242d;
    --text: #ffffff;
    --text-dim: #cbd5e1;
    --online: #22c55e;
    --offline: #ef4444;
}

html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1 0 auto; padding-bottom: 50px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

a { text-decoration: none !important; color: inherit; box-shadow: none !important; }

/* Header Cleaned Up */
#main-header { 
    padding: 15px 0; background: rgba(10, 12, 16, 0.95); 
    backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; 
    border-bottom: 1px solid var(--border); transition: 0.3s ease-in-out; 
}
#main-header.scroll-down { transform: translateY(-100%); }

.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.logo-area h1 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; margin: 0; line-height: 1; }
.logo-area h1 span { color: var(--primary); }

.discord-pill { background: #5865f2; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 700; color: white; display: flex; align-items: center; gap: 8px; }

/* Search Bar */
.search-wrapper { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
#botSearch { 
    width: 100%; padding: 12px 15px 12px 45px; border-radius: 10px; 
    border: 1px solid var(--border); background: var(--surface); 
    color: white; font-size: 1rem;
}

/* Grid & Cards */
.cat-block { margin-top: 40px; }
.cat-label { 
    font-size: 0.9rem; color: var(--primary); letter-spacing: 2px; 
    text-transform: uppercase; margin-bottom: 15px; padding-left: 12px; 
    border-left: 3px solid var(--primary); font-weight: 700;
}
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.bot-card { 
    background: var(--surface); border: 1px solid var(--border); padding: 18px; 
    border-radius: 12px; cursor: pointer; display: flex; justify-content: space-between; 
    align-items: center; transition: 0.2s; 
}
.bot-card:hover { border-color: var(--primary); transform: translateY(-2px); background: #1a1f29; }
.bot-card h3 { font-size: 1.05rem; margin: 0 0 5px 0; font-weight: 600; }

.status { font-size: 11px; font-weight: 900; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.05); }
.status.online { color: var(--online); }
.status.offline { color: var(--offline); }
.copy-icon { font-size: 1rem; opacity: 0.4; color: var(--text-dim); }

/* Footer */
.site-footer { flex-shrink: 0; padding: 40px 0; background: #07090d; border-top: 1px solid var(--border); color: var(--text-dim); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-link { color: var(--primary) !important; font-weight: 700; }

/* Loader & Error */
#site-loader { position: fixed; inset: 0; background: var(--bg); z-index: 10000; display: flex; align-items: center; justify-content: center; }
#site-loader.fade-out { opacity: 0; transition: 0.5s; }
.spinner-large { width: 50px; height: 50px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }

#backToTop { position: fixed; bottom: 25px; right: 25px; background: var(--primary); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; z-index: 5000; opacity: 0; visibility: hidden; transition: 0.3s; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; }
#backToTop.show { opacity: 1; visibility: visible; }

.toast { visibility: hidden; position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 10px 25px; border-radius: 8px; font-weight: 800; z-index: 6000; transition: 0.3s; }
.toast.show { visibility: visible; bottom: 50px; }

@keyframes spin { 100% { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .discord-pill span { display: none; }
}
