/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:        #0a0a14;
  --bg2:       #0f0f1e;
  --card:      rgba(15,15,35,0.95);
  --border:    rgba(139,92,246,0.2);
  --accent:    #8b5cf6;
  --accent2:   #3b82f6;
  --text:      #e2e8f0;
  --muted:     #64748b;
  --discord:   #5865f2;
}
html, body { height: 100%; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }

/* ─── Login Page ─── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(139,92,246,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.08) 0%, transparent 60%),
              var(--bg);
}
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.particles canvas { display: block; }

.login-card {
  position: relative; z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(139,92,246,0.1), 0 20px 60px rgba(0,0,0,0.5);
  text-align: center;
}

.login-logo { position: relative; margin-bottom: 8px; }
.logo-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.login-logo img { height: 60px; margin-bottom: 12px; }
.login-logo h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px; font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.login-logo h1 span { opacity: 0.6; }
.login-subtitle { color: var(--muted); font-size: 13px; margin-bottom: 28px; }

.login-features {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px;
}
.feature {
  font-size: 12px; padding: 5px 12px; border-radius: 20px;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2);
  color: #a78bfa;
}
.feature i { margin-right: 5px; }

.btn-discord {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 14px 24px;
  background: var(--discord);
  color: #fff; font-weight: 700; font-size: 15px;
  border-radius: 12px; text-decoration: none;
  transition: all 0.2s; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(88,101,242,0.4);
}
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88,101,242,0.5);
}

.login-gdpr { font-size: 11px; color: var(--muted); margin-top: 20px; line-height: 1.6; }
.login-gdpr a { color: var(--accent); text-decoration: none; }

/* ─── Dashboard ─── */
.dashboard-page { min-height: 100vh; background: var(--bg); }

.dash-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(15,15,35,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 100;
}
.dash-nav-logo {
  font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 900;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.dash-nav-logo span { opacity: 0.6; }
.dash-nav-user { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.dash-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); }

.dash-content { max-width: 900px; margin: 0 auto; padding: 40px 24px; }

.dash-welcome {
  display: flex; align-items: center; gap: 20px; margin-bottom: 40px;
  background: rgba(139,92,246,0.05); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
}
.dash-welcome-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--accent); }
.dash-welcome h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.text-muted { color: var(--muted); font-size: 13px; }

.section-title {
  font-size: 14px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 12px; margin-bottom: 36px; }
.service-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(15,15,35,0.8); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  text-decoration: none; color: var(--text);
  transition: all 0.2s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(139,92,246,0.05); }
.service-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.service-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.service-desc { font-size: 12px; color: var(--muted); }
.service-arrow { margin-left: auto; color: var(--muted); font-size: 12px; }

.actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px; }
.action-card {
  display: flex; align-items: center; gap: 10px;
  background: rgba(15,15,35,0.8); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.action-card:hover { border-color: var(--accent); color: var(--accent); background: rgba(139,92,246,0.05); }
.action-card i { color: var(--accent); }

/* ─── Rank badges ─── */
.rank-badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.rank-majitel    { background: rgba(255,68,68,0.15);  color: #ff4444; }
.rank-admin      { background: rgba(255,119,0,0.15);  color: #ff7700; }
.rank-technik    { background: rgba(255,221,0,0.15);  color: #ffdd00; }
.rank-moderator  { background: rgba(255,105,180,0.15);color: #ff69b4; }
.rank-podpora    { background: rgba(0,230,118,0.15);  color: #00e676; }
.rank-member     { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.rank-guest      { background: rgba(100,116,139,0.15);color: #64748b; }

/* ─── Logout btn ─── */
.btn-logout {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,68,68,0.1); border: 1px solid rgba(255,68,68,0.2);
  color: #ff4444; text-decoration: none; transition: all 0.2s;
}
.btn-logout:hover { background: rgba(255,68,68,0.2); }

@media (max-width: 600px) {
  .login-card { padding: 32px 24px; margin: 16px; }
  .dash-content { padding: 24px 16px; }
  .dash-welcome { flex-direction: column; text-align: center; }
}
