
:root {
    --bg: #030305;
    --card: #0f0f11;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass: blur(12px);
    --red: #ef4444;
    --green: #10b981;
    --gold: #fbbf24;
    --cyan: #2dd4bf; 
    --role-owner: #ef4444;
    --role-dev: #06b6d4;
    --role-admin: #f59e0b;
}

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

/* Global Reset */
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
html { scrollbar-width: thin; scrollbar-color: #333 transparent; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex; flex-direction: column; min-height: 100vh;
}

/* BACKGROUND */
#star-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.6; pointer-events: none; }
.glow-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.15), transparent 60%);
    pointer-events: none;
}

/* NAV */
.main-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 75px;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 1000;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; height: 100%;
    display: flex; justify-content: space-between; align-items: center; padding: 0 25px;
    position: relative; /* For dropdown positioning */
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: 1px; font-size: 1.2rem; color: white; }
.nav-brand img { height: 38px; border-radius: 15px; }

.nav-links { display: flex; gap: 30px; position: relative; height: 100%; align-items: center; }
.nav-item {
    color: var(--text-muted); font-weight: 700; text-transform: uppercase;
    font-size: 0.85rem; transition: color 0.3s; letter-spacing: 0.5px; position: relative; padding: 5px 0;
    cursor: pointer;
    z-index: 2; /* Чтобы быть над полоской */
}
.nav-item:hover, .nav-item.active { color: white; text-shadow: 0 0 10px var(--accent-glow); }

/* MAGIC LINE INDICATOR */
.nav-indicator {
    position: absolute;
    bottom: 0; 
    left: 0;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 -2px 10px var(--accent);
    border-radius: 2px 2px 0 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Кубическая интерполяция */
    pointer-events: none;
    width: 0;
    z-index: 1;
}

.nav-actions { display: flex; align-items: center; gap: 15px; }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* AUTH & PROFILE TRIGGER */
.auth-trigger {
    display: flex; align-items: center; gap: 10px; 
    background: rgba(255,255,255,0.03); padding: 5px 8px 5px 15px; 
    border-radius: 50px; border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer; transition: 0.3s; user-select: none;
}
.auth-trigger:hover, .auth-trigger.active { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.auth-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.auth-name { font-size: 0.85rem; font-weight: 700; color: white; }

/* === NEW PROFILE DROPDOWN (COMPACT) === */
.profile-dropdown {
    position: absolute;
    top: 80px; /* Right below nav */
    right: 25px;
    width: 260px;
    background: #141417;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 15px;
    display: none;
    flex-direction: column;
    z-index: 2000;
    transform-origin: top right;
    animation: scaleIn 0.2s ease;
}
.profile-dropdown.show { display: flex; }

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.dropdown-header {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.dropdown-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.dropdown-user-info { display: flex; flex-direction: column; overflow: hidden; }
.dropdown-name { font-weight: 700; color: white; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-role { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.dropdown-stats {
    display: flex; justify-content: space-between; 
    background: rgba(255,255,255,0.03); border-radius: 8px; padding: 10px;
    margin-bottom: 12px; font-size: 0.8rem;
}
.d-stat { display: flex; flex-direction: column; align-items: center; width: 100%; }
.d-label { color: #666; font-size: 0.65rem; text-transform: uppercase; font-weight: 700; }
.d-val { color: white; font-weight: 600; margin-top: 2px; }
.status-active { color: var(--green); }
.status-banned { color: var(--red); }
.status-none { color: var(--text-muted); }

.dropdown-btn {
    background: rgba(255,255,255,0.05); color: #ccc;
    border: none; padding: 8px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: 0.2s; text-align: left; display: flex; align-items: center; gap: 10px;
}
.dropdown-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.dropdown-btn.logout { color: var(--red); background: rgba(239, 68, 68, 0.1); margin-top: 5px; justify-content: center; }
.dropdown-btn.logout:hover { background: var(--red); color: white; }

/* CONTENT & TRANSITIONS */
.content-container { 
    max-width: 1100px; margin: 110px auto 80px; padding: 0 25px; flex-grow: 1; width: 100%; 
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.content-container.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* HERO */
.hero { text-align: center; margin-bottom: 70px; }
.hero-logo-box { margin: 0 auto 25px; width: 140px; }
.hero-img { width: 100%; border-radius: 25px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.hero-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 15px; color: white; letter-spacing: -1px; }

/* ИСПРАВЛЕННЫЙ ГРАДИЕНТ */
.hero-title .accent { 
    background: linear-gradient(120deg, #ffffff 0%, #bca5ff 30%, var(--accent) 60%, #7c3aed 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    display: inline-block; 
}
.hero-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; }
.hero-btns { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.ip-box {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    padding: 12px 25px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: 0.3s;
}
.ip-box:hover { border-color: var(--accent); background: rgba(139, 92, 246, 0.1); transform: translateY(-2px); }
.ip-val { font-family: monospace; color: var(--gold); font-weight: bold; font-size: 1.1rem; }

/* PANELS */
.panel {
    background: rgba(20, 20, 25, 0.6); border: 1px solid var(--border); border-radius: 20px;
    backdrop-filter: blur(10px); box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}
.panel-header {
    padding: 25px 30px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.02);
}
.panel-header h2 { font-size: 1.3rem; margin: 0; display: flex; align-items: center; gap: 12px; color: white; }
.panel-body { padding: 30px; }

/* CARDS */
.feat-card, .wiki-card, .rule-card, .guide-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border); 
    border-radius: 12px; transition: 0.3s; padding: 30px; display: flex; flex-direction: column;
}
.feat-card:hover, .wiki-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.features, .wiki-grid { display: grid; gap: 25px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feat-card i, .wiki-card i { font-size: 1.8rem; color: var(--accent); margin-bottom: 20px; }
.feat-card h3, .wiki-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: white; font-weight: 700; }
.feat-card p, .wiki-card p { color: #94a3b8; font-size: 0.95rem; }
.wiki-btn { margin-top: auto; color: var(--accent); font-weight: 700; padding-top: 15px; }

/* RULES SPECIFIC */
.rule-card { padding: 0; overflow: hidden; }
.rule-header { background: rgba(0,0,0,0.2); padding: 15px 25px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--border); }
.rule-header h3 { font-size: 1.1rem; color: white; margin: 0; font-weight: 700; }
.rule-content { padding: 25px; font-size: 0.95rem; color: #ccc; }
.rules-list { display: flex; flex-direction: column; gap: 20px; }
.banned-box { border-left: 3px solid var(--red); background: rgba(239, 68, 68, 0.1); padding: 10px 15px; margin-top: 10px; font-size: 0.9rem; }
.allowed-box { border-left: 3px solid var(--green); background: rgba(16, 185, 129, 0.1); padding: 10px 15px; margin-top: 10px; font-size: 0.9rem; }
.box-title { font-weight: 800; display: block; margin-bottom: 4px; font-size: 0.75rem; text-transform: uppercase; }
.box-title.bad { color: var(--red); }
.box-title.ok { color: var(--green); }

/* FORUM */
.post-entry {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 25px;
    border-radius: 12px; margin-bottom: 20px; transition: 0.2s; cursor: pointer;
}
.post-entry:hover { background: rgba(255,255,255,0.04); border-color: var(--accent); transform: translateX(5px); }
.post-entry.closed { opacity: 0.7; border-color: rgba(239, 68, 68, 0.3); }
.post-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.post-title { font-size: 1.2rem; font-weight: 700; color: white; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.post-meta { font-size: 0.8rem; color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 6px;}
.post-body { color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; word-break: break-word; }
.topic-actions { display: flex; gap: 10px; }
.post-btn {
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid transparent; background: rgba(0,0,0,0.5); color: #888;
    transition: 0.2s; position: relative; z-index: 5;
}
.post-btn.delete:hover { background: var(--red); color: white; }
.post-btn.lock:hover { background: var(--gold); color: black; }
.closed-icon { color: var(--red); margin-left: 10px; font-size: 0.9rem; }

/* CHAT */
.topic-modal-body { display: flex; flex-direction: column; height: 70vh; padding: 0 !important; }
.chat-container { flex-grow: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; background: rgba(0,0,0,0.2); }
.chat-input-area { padding: 20px; background: #141417; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
.chat-closed-msg { padding: 20px; background: #141417; border-top: 1px solid var(--border); color: var(--red); text-align: center; font-weight: 700; }
.msg-row { display: flex; align-items: flex-start; gap: 10px; max-width: 85%; }
.msg-row.mine { margin-left: auto; flex-direction: row-reverse; }
.msg-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); flex-shrink: 0; }
.msg-bubble { background: #1f1f23; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); word-break: break-word; position: relative; }
.msg-row.mine .msg-bubble { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.4); border-top-right-radius: 2px; }
.msg-row:not(.mine) .msg-bubble { border-top-left-radius: 2px; }
.msg-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 0.75rem; color: #64748b; }
.msg-author { font-weight: 700; color: #e2e8f0; }

/* === IMPROVED ROLE BADGES === */
.role-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-right: 5px; line-height: 1.2;
}

/* Owner: Red/Dark Red - Strong & Clean */
.badge-owner {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Admin: Orange/Gold - Classic Admin color */
.badge-admin {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Dev: Cyan/Blue - Tech look */
.badge-dev {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.banned-tag {
    background: #1a1a1a; color: #666; padding: 2px 6px; border-radius: 4px; 
    font-size: 0.65rem; font-weight: 800; margin-left: 5px; border: 1px solid #333;
}

/* CHAT ACTIONS (ADMIN) - FIXED VISIBILITY */
.chat-admin-actions {
    display: flex; gap: 6px; margin-left: 8px;
    opacity: 0.6; /* Всегда немного видно */
    transition: 0.2s;
}
.msg-row:hover .chat-admin-actions, .chat-admin-actions:hover { opacity: 1; }

.chat-action-btn {
    font-size: 0.7rem; padding: 3px 7px; border-radius: 4px; border: none; cursor: pointer; color: white;
    display: flex; align-items: center; justify-content: center;
}
.btn-chat-ban { background: rgba(251, 191, 36, 0.2); color: var(--gold); border: 1px solid rgba(251, 191, 36, 0.3); }
.btn-chat-ban:hover { background: var(--gold); color: black; }
.btn-chat-unban { background: rgba(16, 185, 129, 0.2); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }
.btn-chat-unban:hover { background: var(--green); color: white; }

.btn-chat-del { background: rgba(239, 68, 68, 0.2); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-chat-del:hover { background: var(--red); color: white; }

.chat-image { max-width: 100%; border-radius: 8px; margin-top: 5px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; }

/* CRAFTS */
.crafting-container { background: #1a1a1d; padding: 40px; border-radius: 20px; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; }
.craft-title { font-size: 1.5rem; color: white; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.crafting-ui { background: #c6c6c6; border: 4px solid #373737; border-radius: 4px; padding: 20px; display: flex; align-items: center; gap: 20px; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); position: relative; }
.craft-grid { display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 40px); gap: 2px; }
.slot, .result-slot { background: #8b8b8b; border: 2px solid #373737; border-bottom-color: #fff; border-right-color: #fff; display: flex; justify-content: center; align-items: center; position: relative; cursor: help; }
.slot { width: 40px; height: 40px; }
.result-slot { width: 56px; height: 56px; margin-left: 10px; }
.slot img, .result-slot img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.result-slot img { width: 36px; height: 36px; }
.craft-arrow { font-size: 24px; color: #444; font-weight: bold; }
.slot:hover::after, .result-slot:hover::after {
    content: attr(data-name); position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
    background: #111; border: 1px solid var(--accent); padding: 5px 10px; border-radius: 4px;
    color: white; font-size: 0.75rem; white-space: nowrap; z-index: 100; pointer-events: none;
}

/* GALLERY */
.gallery-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.gallery-card { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--border); background: #000; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; opacity: 0.9; }
.gallery-card:hover img { opacity: 1; transform: scale(1.03); }
.gallery-del-btn { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: var(--red); border: 1px solid var(--red); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* UTILS */
.btn { padding: 10px 24px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { background: #7c3aed; transform: translateY(-2px); }
.btn-accent { background: rgba(139, 92, 246, 0.1); color: var(--accent); border: 1px solid var(--accent); }
.btn-accent:hover { background: var(--accent); color: white; }
.btn-discord { background: #5865f2; color: white; }
.btn-discord:hover { background: #4752c4; }
.btn-logout { background: #333; color: white; width: 100%; justify-content: center; }
.btn-logout:hover { background: var(--red); }
.btn-send { background: var(--accent); color: white; border: none; width: 42px; height: 42px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.full-width { width: 100%; justify-content: center; margin-top: 15px; }
.auth-only { display: none !important; }

/* FORMS */
input, textarea { width: 100%; background: #0a0a0c; border: 1px solid var(--border); border-radius: 10px; color: white; padding: 14px; font-family: inherit; margin-top: 8px; }
input:focus, textarea:focus { border-color: var(--accent); background: #111; }
.form-group { margin-bottom: 20px; }
label { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; margin-left: 2px; }

/* MODAL GENERAL (Used for add member, posts, etc) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; z-index: 2000; }
.modal-overlay.active { display: flex; }
.modal-card { background: #141417; border: 1px solid var(--border); width: 90%; max-width: 480px; border-radius: 20px; box-shadow: 0 25px 60px rgba(0,0,0,0.7); display: flex; flex-direction: column; overflow: hidden; }
.modal-wide { max-width: 800px; height: 80vh; }
.modal-head { padding: 20px 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: #18181b; }
.modal-head h3 { font-size: 1.2rem; font-weight: 700; color: white; margin: 0; }
.close-btn { background: none; border: none; color: #666; font-size: 1.5rem; cursor: pointer; }
.close-btn:hover { color: var(--red); }
.modal-body { padding: 25px; overflow-y: auto; }

/* STAFF ROLES */
.role-owner { 
    background: rgba(239, 68, 68, 0.15); 
    color: #ef4444; 
    border: 1px solid rgba(239, 68, 68, 0.4); 
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}
.role-dev {
    background: rgba(45, 212, 191, 0.15);
    color: var(--cyan);
    border: 1px solid var(--cyan);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.1);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}
.role-active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.staff-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
    margin-top: 40px; 
    justify-content: center;
}

.staff-card {
    background: rgba(20, 20, 25, 0.8); 
    border: 1px solid var(--border); 
    border-radius: 20px;
    overflow: hidden; 
    text-align: center; 
    transition: 0.3s; 
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.staff-card:hover { 
    border-color: var(--accent); 
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15); 
    transform: translateY(-5px);
}

/* Контейнер для 3D модели */
.model-wrapper {
    width: 100%;
    height: 350px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent 70%);
    position: relative;
    cursor: move;
}

.staff-info { 
    padding: 25px; 
    background: rgba(10, 10, 12, 0.6);
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-grow: 1;
    z-index: 2;
}

.staff-name { 
    font-size: 1.8rem; 
    font-weight: 900; 
    color: white; 
    margin-bottom: 8px; 
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.staff-role { 
    display: inline-block; 
    padding: 6px 16px; 
    border-radius: 50px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 80px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-member-btn-container {
    text-align: center;
    margin-top: 20px;
}

/* TOAST */
.toast-box { position: fixed; bottom: 30px; right: 30px; padding: 16px 24px; background: #1e1e24; border-radius: 12px; color: white; font-size: 0.95rem; font-weight: 600; transform: translateY(150%); transition: 0.4s; z-index: 3000; border-left: 4px solid var(--green); box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.toast-box.show { transform: translateY(0); }
.toast-box.error { border-left-color: var(--red); }

/* STAFF CONTROLS */
.staff-admin-controls {
    position: absolute; top: 15px; right: 15px; z-index: 10;
    display: flex; gap: 5px;
}
.staff-control-btn {
    width: 28px; height: 28px; border-radius: 6px;
    background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; transition: 0.2s;
}
.staff-control-btn:hover { background: var(--accent); border-color: var(--accent); }
.staff-control-btn.delete:hover { background: var(--red); border-color: var(--red); }
.staff-card .staff-desc {
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    padding: 0 10px;
}

footer { margin-top: auto; text-align: center; padding: 40px; border-top: 1px solid var(--border); color: #555; font-size: 0.9rem; background: rgba(0,0,0,0.3); }

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 75px; left: 0; width: 100%; background: #050505; padding: 25px; border-bottom: 1px solid var(--border); }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero-title { font-size: 2.8rem; }
    .modal-wide { width: 100%; height: 100%; border-radius: 0; }
    .profile-dropdown { right: 10px; left: 10px; width: auto; }
}
