:root {
    --bg: #0d1117; --nav: #161b22; --card: #21262d;
    --primary: #5865f2; --primary-glow: #7289da;
    --accent: #238636; --text: #c9d1d9; --text-dim: #8b949e;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text); }

/* Notifications Toast */
#notification-container {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    background: var(--card); border-left: 4px solid var(--primary);
    color: white; padding: 15px 25px; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.5s ease forwards; min-width: 250px;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.error { border-left-color: #f85149; }
.toast.success { border-left-color: var(--accent); }

/* Bouton Connexion Premium */
.login-btn-premium {
    background: linear-gradient(45deg, var(--primary), var(--primary-glow));
    color: white; border: none; padding: 10px 24px; border-radius: 50px;
    font-weight: 700; cursor: pointer; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}
.login-btn-premium:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Navbar & Layout */
.navbar { background: var(--nav); padding: 0.8rem 2rem; border-bottom: 1px solid #30363d; position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; }
.logo span { color: var(--primary); }
.main-nav button { background: none; border: none; color: var(--text-dim); margin: 0 10px; cursor: pointer; font-weight: 600; }
.main-nav button:hover { color: white; }

.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.hero { text-align: center; padding: 40px 0; }
.hero h1 { font-size: 2.8rem; margin-bottom: 10px; }
#searchInput { width: 100%; max-width: 600px; padding: 14px 25px; background: var(--nav); border: 1px solid #30363d; border-radius: 50px; color: white; outline: none; margin-top: 20px; }

/* Cards */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 25px; }
.bot-card { background: var(--card); border: 1px solid #30363d; border-radius: 16px; padding: 24px; transition: 0.3s; }
.bot-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.vote-count { background: var(--accent); color: white; padding: 4px 12px; border-radius: 8px; font-weight: bold; font-size: 0.8rem; }

.reviews-section { margin-top: 20px; padding-top: 15px; border-top: 1px solid #30363d; max-height: 150px; overflow-y: auto; }
.review-item { background: rgba(255,255,255,0.03); padding: 10px; border-radius: 8px; margin-bottom: 10px; font-size: 0.85rem; }
.review-user { font-weight: bold; color: var(--primary); }

.form-card, .content-card { background: var(--card); padding: 40px; border-radius: 16px; border: 1px solid #30363d; max-width: 500px; margin: 0 auto; text-align: center; }
input, textarea { width: 100%; padding: 12px; margin-bottom: 15px; background: var(--bg); border: 1px solid #30363d; border-radius: 8px; color: white; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; width: 100%; }
.btn-secondary { background: transparent; color: var(--text-dim); border: 1px solid #30363d; padding: 10px; border-radius: 8px; cursor: pointer; margin-top: 10px; width: 100%; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; backdrop-filter: blur(4px); }
.modal-content { background: var(--card); padding: 30px; width: 90%; max-width: 400px; margin: 100px auto; border-radius: 16px; border: 1px solid #30363d; }