/* apps/web/src/public/css/main.css */

:root {
  --bg: #0c0d10;
  --bg-card: #13141a;
  --bg-card-hover: #1a1c24;
  --bg-input: #1e2030;
  --border: rgba(255,255,255,0.07);
  --border-focus: rgba(108,99,255,0.6);
  --text: #e8eaf0;
  --text-muted: #8891aa;
  --text-faint: #4a5168;
  --accent: #6C63FF;
  --accent-hover: #5a52ee;
  --accent-glow: rgba(108,99,255,0.25);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.3);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }

code {
  font-family: 'Courier New', monospace;
  background: rgba(108,99,255,0.12);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,13,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo .accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.nav-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }

.btn-secondary {
  background: rgba(108,99,255,0.15);
  color: var(--accent);
  border: 1px solid rgba(108,99,255,0.3);
}
.btn-secondary:hover { background: rgba(108,99,255,0.25); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: var(--danger); color: white; }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; font-weight: 600; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #6C63FF 0%, #a78bfa 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  margin-top: 20px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ===== SEARCH ===== */
.search-form { width: 100%; max-width: 560px; margin: 0 auto; }

.search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 4px 4px 16px;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon { color: var(--text-faint); flex-shrink: 0; }

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 8px 0;
}

.search-input::placeholder { color: var(--text-faint); }

/* ===== SERVERS SECTION ===== */
.servers-section { padding: 48px 0 80px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-center { text-align: center; }

/* ===== SERVER GRID ===== */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.server-card:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(108,99,255,0.1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.card-icon-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.card-meta { display: flex; gap: 8px; align-items: flex-start; justify-content: flex-end; flex: 1; }

.card-clicks {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.card-body { flex: 1; }

.card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.card-subdomain {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-join {
  color: var(--text-faint);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: color 0.2s;
}

.server-card:hover .card-join { color: var(--accent); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.page-btn {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.page-btn:hover { color: var(--text); border-color: rgba(108,99,255,0.4); }

.page-info { color: var(--text-faint); font-size: 0.875rem; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.how-section .section-title { margin-bottom: 48px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: white;
  margin-bottom: 16px;
}

.step h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.875rem; }

/* ===== SERVER PAGE ===== */
.server-page { min-height: calc(100vh - 60px); }

.server-banner {
  height: 240px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a1c2e 0%, #0f1020 100%);
}

.server-banner--default {
  background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(96,165,250,0.05) 100%);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,13,16,0.7) 0%, transparent 60%);
}

.server-profile { padding: 0 0 80px; }

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: -60px;
  position: relative;
  max-width: 720px;
  box-shadow: var(--shadow);
}

.profile-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid var(--bg);
  flex-shrink: 0;
}

.profile-icon-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.profile-url {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

.profile-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

/* ===== REDIRECT BAR ===== */
.redirect-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

.redirect-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(108,99,255,0.1);
}

@keyframes progress-fill {
  from { width: 0; }
  to { width: 100%; }
}

.redirect-bar span { color: var(--text-muted); font-size: 0.875rem; position: relative; }
.redirect-cancel {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.redirect-cancel:hover { color: var(--text); border-color: var(--text-muted); }

/* ===== DASHBOARD ===== */
.dashboard {
  display: flex;
  min-height: calc(100vh - 60px);
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 28px 0;
  background: rgba(19,20,26,0.5);
}

.sidebar-header { padding: 0 20px 20px; border-bottom: 1px solid var(--border); }
.sidebar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sidebar-username { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }

.sidebar-nav { padding: 16px 0; }

.sidebar-link {
  display: block;
  padding: 9px 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  border-left: 2px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-left-color: var(--accent);
}

.sidebar-link--danger { color: var(--danger); }
.sidebar-link--danger:hover { background: rgba(239,68,68,0.08); border-left-color: var(--danger); }

.dash-content {
  flex: 1;
  padding: 40px 48px;
  max-width: 900px;
  overflow-y: auto;
}

.dash-header {
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-header-left { display: flex; align-items: center; gap: 16px; }

.dash-guild-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.dash-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.dash-sub a { color: var(--accent); }

/* ===== GUILD GRID ===== */
.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.guild-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}

.guild-card--registered { border-color: rgba(108,99,255,0.3); }

.guild-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.guild-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.guild-icon-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.guild-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }

.guild-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(34,197,94,0.15);
  color: var(--success);
  border: 1px solid rgba(34,197,94,0.3);
}

.guild-badge--unlisted {
  background: rgba(255,255,255,0.04);
  color: var(--text-faint);
  border-color: var(--border);
}

.guild-subdomain {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
}

.guild-card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.guild-hint { font-size: 0.8rem; color: var(--text-faint); }

/* ===== ANALYTICS ===== */
.analytics-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  flex: 1;
  min-width: 120px;
}

.stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-label { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== FORMS ===== */
.settings-form { display: flex; flex-direction: column; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.optional { font-weight: 400; color: var(--text-faint); }

.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-hint { font-size: 0.78rem; color: var(--text-faint); }
.form-hint--success { color: var(--success); }
.form-hint--error { color: var(--danger); }

.char-count { text-align: right; }

.subdomain-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.subdomain-input-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.subdomain-input {
  border: none !important;
  box-shadow: none !important;
  background: transparent;
  flex: 1;
}

.subdomain-suffix {
  padding: 0 14px;
  color: var(--text-faint);
  font-size: 0.875rem;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.radio-group { display: flex; flex-direction: column; gap: 10px; }

.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.radio-option:hover { border-color: rgba(108,99,255,0.3); }
.radio-option input[type="radio"] { accent-color: var(--accent); }

.form-actions { display: flex; gap: 12px; padding-top: 8px; }

/* ===== INFO BOXES ===== */
.info-box {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.info-box ul { margin: 8px 0 0 16px; }

.info-box--warn {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  color: #fbbf24;
}

.info-box--error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

.info-box--success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--success);
}

/* ===== DANGER ZONE ===== */
.danger-zone {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  background: rgba(239,68,68,0.04);
}

.danger-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 8px;
}

.danger-zone p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 16px; }

/* ===== ERROR PAGE ===== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 40px 24px;
  text-align: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.error-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-sub { color: var(--text-muted); margin-bottom: 32px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer p { color: var(--text-faint); font-size: 0.85rem; }
.footer-sub { margin-top: 4px; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-user { flex-direction: row; padding: 8px 16px; }

  .hero { padding: 60px 20px 60px; }
  .hero-title { font-size: 2.2rem; }

  .server-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .server-card { padding: 14px; }
  .card-icon, .card-icon-placeholder { width: 42px; height: 42px; }

  .dashboard { flex-direction: column; }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }

  .sidebar-header { padding: 0 16px 16px; }
  .sidebar-nav { display: flex; flex-wrap: wrap; padding: 8px 16px; gap: 4px; }
  .sidebar-link { border-left: none; border-radius: var(--radius-sm); padding: 8px 14px; }
  .sidebar-link.active, .sidebar-link:hover { border-left: none; }

  .dash-content { padding: 24px 16px; max-width: 100%; }
  .dash-title { font-size: 1.4rem; }

  .profile-card { margin-top: -40px; padding: 20px; }
  .profile-top { flex-direction: column; align-items: flex-start; }
  .profile-name { font-size: 1.4rem; }

  .analytics-bar { gap: 10px; }
  .stat-card { padding: 14px 16px; }
  .stat-val { font-size: 1.3rem; }

  .profile-actions { flex-direction: column; align-items: stretch; }
  .profile-actions .btn { justify-content: center; }

  .server-banner { height: 160px; }

  .steps-grid { grid-template-columns: 1fr; }
  .guild-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .server-grid { grid-template-columns: 1fr; }
  .search-wrap { flex-wrap: wrap; padding: 8px 12px; }
  .search-wrap .btn { width: 100%; justify-content: center; }
}
