/* ============================================
   DUCRATIF — Dark Premium Theme
   Font: Syne (display) + DM Sans (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ─── Variables ──────────────────────────────── */
:root {
  --bg-0:       #080b10;
  --bg-1:       #0d1117;
  --bg-2:       #141a24;
  --bg-3:       #1c2533;
  --bg-4:       #253040;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);
  --accent:     #5865F2;
  --accent-2:   #7289da;
  --accent-glow:rgba(88,101,242,0.3);
  --success:    #3ba55c;
  --warning:    #faa61a;
  --danger:     #ed4245;
  --text-0:     #ffffff;
  --text-1:     #e3e8ef;
  --text-2:     #8b97a8;
  --text-3:     #5a6475;
  --gold:       #f0c030;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

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

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-0);
  line-height: 1.2;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--text-2); }

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

.section { padding: 64px 0; }
.section + .section { padding-top: 0; }

/* ─── Navbar ──────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,11,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

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

.navbar-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-0);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-nav a {
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--bg-3);
  color: var(--text-0);
}

.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.navbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 99px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-1);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.navbar-user:hover { background: var(--bg-4); }

.navbar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 200;
}

.navbar-dropdown.open { display: block; }

.navbar-dropdown a,
.navbar-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-1);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}

.navbar-dropdown a:hover,
.navbar-dropdown button:hover { background: var(--bg-3); }

.navbar-dropdown .separator {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-1);
}

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-3);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-4); }

.btn-discord {
  background: #5865F2;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(88,101,242,0.4);
}
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(88,101,242,0.5);
}

.btn-danger {
  background: rgba(237,66,69,0.15);
  color: var(--danger);
  border: 1px solid rgba(237,66,69,0.3);
}
.btn-danger:hover { background: rgba(237,66,69,0.25); }

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

/* ─── Cards ───────────────────────────────────── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Project Card */
.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-thumb img {
  transform: scale(1.05);
}

.project-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.badge-downloaded { background: rgba(59,165,92,0.25); color: var(--success); border: 1px solid rgba(59,165,92,0.4); }
.badge-new        { background: rgba(88,101,242,0.25); color: var(--accent-2); border: 1px solid rgba(88,101,242,0.4); }
.badge-updated    { background: rgba(250,166,26,0.2); color: var(--warning); border: 1px solid rgba(250,166,26,0.35); }
.badge-version    { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); }

.project-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.project-card-category {
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-desc {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.project-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}

.stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  font-size: 0.8rem;
}

.stars .star-empty { opacity: 0.25; }

/* ─── Grid ────────────────────────────────────── */
.grid {
  display: grid;
  gap: 20px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ─── Section Headers ─────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-0);
}

.section-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ─── Hero ────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(88,101,242,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  flex-direction: column;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88,101,242,0.12);
  border: 1px solid rgba(88,101,242,0.25);
  color: var(--accent-2);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #9b8fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── Carousel ────────────────────────────────── */
.carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16/9;
  position: relative;
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition);
  font-size: 1.2rem;
}

.carousel-btn:hover { background: rgba(88,101,242,0.7); }
.carousel-btn-prev { left: 12px; }
.carousel-btn-next { right: 12px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.carousel-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 3px;
}

.carousel-thumbs {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.carousel-thumbs::-webkit-scrollbar { display: none; }

.carousel-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.carousel-thumb.active { border-color: var(--accent); }

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

/* ─── Tabs ────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px 18px;
  border: none;
  background: none;
  color: var(--text-3);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all var(--transition);
}

.tab-btn:hover { color: var(--text-1); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── Forms ───────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}

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

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

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

.form-hint { font-size: 0.8rem; color: var(--text-3); margin-top: 6px; }

/* ─── Search bar ──────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
}

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

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

/* ─── Rating Stars ────────────────────────────── */
.star-rating {
  display: flex;
  gap: 4px;
}

.star-rating-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-3);
  transition: color var(--transition);
  line-height: 1;
}

.star-rating-btn.active,
.star-rating-btn:hover {
  color: var(--gold);
}

/* ─── Reviews ─────────────────────────────────── */
.review-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-reply {
  background: var(--bg-3);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.review-reply-author {
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 4px;
  font-size: 0.8rem;
}

/* ─── Modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: scale(1); }

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

.modal-desc { color: var(--text-2); font-size: 0.9rem; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ─── Alerts ──────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success { background: rgba(59,165,92,0.15); border: 1px solid rgba(59,165,92,0.3); color: var(--success); }
.alert-error   { background: rgba(237,66,69,0.15);  border: 1px solid rgba(237,66,69,0.3);  color: var(--danger);  }
.alert-warning { background: rgba(250,166,26,0.15); border: 1px solid rgba(250,166,26,0.3); color: var(--warning); }
.alert-info    { background: rgba(88,101,242,0.15); border: 1px solid rgba(88,101,242,0.3); color: var(--accent-2);}

/* ─── Tags ────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  padding: 4px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--text-2);
  transition: all var(--transition);
}

.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag a { color: inherit; }

/* ─── Stats ───────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-0);
}

.stat-label { font-size: 0.85rem; color: var(--text-3); margin-top: 4px; }

/* ─── Table ───────────────────────────────────── */
.table-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; }

thead {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ─── Pagination ──────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.875rem;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  text-decoration: none;
}

.page-btn:hover { background: var(--bg-3); color: var(--text-0); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Download button state ───────────────────── */
.download-info {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 10px;
}

/* ─── Changelog ───────────────────────────────── */
.changelog-item {
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}

.changelog-version {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Markdown content ────────────────────────── */
.md-content { color: var(--text-1); line-height: 1.7; }
.md-content h1, .md-content h2, .md-content h3 { margin: 1.5em 0 0.75em; }
.md-content p { margin-bottom: 1em; }
.md-content ul, .md-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.md-content li { margin-bottom: 0.25em; }
.md-content code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--accent-2);
  font-family: 'Fira Code', monospace;
}
.md-content pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 1em;
}
.md-content pre code { background: none; padding: 0; }
.md-content table { width: 100%; margin-bottom: 1em; }
.md-content th, .md-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
}
.md-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin: 1em 0;
  color: var(--text-2);
  font-style: italic;
}

/* ─── Page: Not member, Banned ───────────────── */
.status-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 48px 24px;
}

.status-card {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 48px 40px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.status-icon { font-size: 3rem; margin-bottom: 20px; }

/* ─── Footer ──────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 80px;
  color: var(--text-3);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Loading spinner ─────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* ─── Utility ─────────────────────────────────── */
.text-accent   { color: var(--accent-2); }
.text-muted    { color: var(--text-3); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-warning  { color: var(--warning); }
.text-center   { text-align: center; }
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2         { gap: 8px; }
.gap-4         { gap: 16px; }
.gap-6         { gap: 24px; }
.mt-2          { margin-top: 8px; }
.mt-4          { margin-top: 16px; }
.mt-6          { margin-top: 24px; }
.mb-4          { margin-bottom: 16px; }
.mb-6          { margin-bottom: 24px; }
.p-4           { padding: 16px; }
.p-6           { padding: 24px; }
.w-full        { width: 100%; }
.rounded       { border-radius: var(--radius); }
.rounded-lg    { border-radius: var(--radius-lg); }
.border        { border: 1px solid var(--border); }
.hidden        { display: none !important; }

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .navbar-nav { display: none; }
  .menu-toggle { display: flex; }
  .navbar-nav.mobile-open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-1); border-bottom: 1px solid var(--border); padding: 12px; z-index: 99; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
  .modal { padding: 24px 20px; }
}

/* ─── Admin Layout ────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 24px 12px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.admin-sidebar-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding: 0 12px;
  margin-bottom: 8px;
  margin-top: 16px;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: var(--bg-3);
  color: var(--text-0);
}

.admin-main {
  flex: 1;
  padding: 32px;
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { padding: 16px; }
}

/* Profile date (fix overflow) */
.profile-date{
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-0);
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
