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

:root {
  --bg:        #f5f4f0;
  --bg2:       #ffffff;
  --bg3:       #eeecea;
  --border:    rgba(0,0,0,0.08);
  --border2:   rgba(0,0,0,0.14);
  --text:      #1a1a24;
  --muted:     #7a7887;
  --accent:    #4f35e8;
  --accent2:   #7f6aff;
  --red:       #e53535;
  --amber:     #d97706;
  --teal:      #0d9488;
  --font-head: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-body: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --r:         12px;
  --r2:        20px;
}

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;
  overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* ─── GLOW BLOBS ─── */
.blob {
  position: fixed; border-radius: 50%; filter: blur(130px); pointer-events: none; z-index: 0; opacity: 0.22;
}
.blob-1 { width: 600px; height: 600px; background: #c4b8ff; top: -200px; right: -150px; }
.blob-2 { width: 400px; height: 400px; background: #a5d8ff; bottom: 100px; left: -100px; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(245,244,240,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}

.nav-logo span {
  background: var(--accent);
  color: #0a0a0f;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex; gap: 32px; list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex; align-items: center; gap: 12px;
}

.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  border: none;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}
.btn-primary:hover { background: #3d28cc; transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  position: relative; z-index: 1;
  padding: 100px 48px 80px;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,53,232,0.08);
  border: 1px solid rgba(79,53,232,0.2);
  color: var(--accent);
  font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-desc {
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-cta {
  display: flex; gap: 12px; align-items: center;
}

.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 800;
  color: var(--text);
  display: block;
}
.stat-label {
  font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ─── HERO VISUAL ─── */
.hero-visual {
  position: relative;
}

.score-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 28px;
  position: relative;
  overflow: hidden;
  animation: floatUp 6s ease-in-out infinite;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.score-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.score-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px;
}

.score-title { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.score-badge-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.score-badge-live::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.5s infinite;
}

.score-circle {
  display: flex; flex-direction: column; align-items: center; margin: 20px 0;
}

.score-circle svg { width: 140px; height: 140px; }

.score-circle-track { fill: none; stroke: rgba(0,0,0,0.07); stroke-width: 8; }
.score-circle-fill {
  fill: none; stroke: var(--accent); stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 68;
  transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
}

.score-number {
  font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--text);
}
.score-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.score-breakdown {
  display: flex; flex-direction: column; gap: 10px;
}

.breakdown-item {
  display: flex; align-items: center; gap: 10px;
}

.breakdown-label { font-size: 13px; color: var(--muted); flex: 1; }

.breakdown-bar {
  flex: 2; height: 5px; background: rgba(0,0,0,0.07); border-radius: 10px; overflow: hidden;
}

.breakdown-fill {
  height: 100%; border-radius: 10px;
  animation: fillBar 1.5s ease-out forwards;
  transform-origin: left;
}

@keyframes fillBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.breakdown-pct { font-size: 12px; font-weight: 600; color: var(--text); min-width: 36px; text-align: right; }

/* Floating mini cards */
.mini-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.mini-card-1 { top: -24px; right: -32px; animation: floatAlt 5s ease-in-out infinite 0.5s; }
.mini-card-2 { bottom: -24px; left: -24px; animation: floatAlt 6s ease-in-out infinite 1s; }

@keyframes floatAlt {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
}

.mini-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ─── SECTION HEADER ─── */
.section { position: relative; z-index: 1; padding: 80px 48px; max-width: 1200px; margin: 0 auto; }

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

.section-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-head); font-size: 32px; font-weight: 800; letter-spacing: -0.01em;
}

.section-desc { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ─── FILTER TABS ─── */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}

.tab {
  padding: 7px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border2);
  background: transparent; color: var(--muted);
  transition: all 0.2s; font-family: var(--font-body);
}
.tab:hover { border-color: rgba(0,0,0,0.2); color: var(--text); }
.tab.active {
  background: var(--accent); color: #ffffff;
  border-color: var(--accent); font-weight: 600;
}

/* ─── SEARCH ─── */
.search-bar {
  position: relative; max-width: 400px;
}

.search-bar input {
  width: 100%; padding: 10px 16px 10px 40px;
  background: #ffffff; border: 1px solid var(--border2);
  border-radius: var(--r); color: var(--text);
  font-family: var(--font-body); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--muted); }

.search-bar svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}

/* ─── EXAM GRID ─── */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.exam-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: fadeSlideIn 0.5s ease-out backwards;
}

.exam-card:hover {
  border-color: var(--border2);
  background: #fafafa;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(79,53,232,0.08);
}

.exam-card:hover .card-arrow { transform: translate(3px, -3px); opacity: 1; }

.exam-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(79,53,232,0.03));
  pointer-events: none;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-top {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px;
}

.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.card-arrow {
  color: var(--muted); opacity: 0; transition: all 0.2s;
  font-size: 18px;
}

.card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.03em;
}

.badge-level-easy   { background: rgba(13,148,136,0.1);  color: var(--teal); }
.badge-level-medium { background: rgba(217,119,6,0.1);   color: var(--amber); }
.badge-level-hard   { background: rgba(229,53,53,0.1);   color: var(--red); }
.badge-cat { background: rgba(79,53,232,0.08); color: var(--accent); }

.card-title {
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  margin-bottom: 8px; line-height: 1.2;
}

.card-desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; margin-bottom: 20px; }

.card-meta {
  display: flex; gap: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--muted);
}

.meta-item svg { width: 14px; height: 14px; }

.card-footer {
  display: flex; justify-content: space-between; align-items: center; margin-top: 16px;
}

.progress-pill {
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}

.progress-label { font-size: 11px; color: var(--muted); }

.progress-track {
  height: 3px; background: rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden;
}

.progress-fill {
  height: 100%; border-radius: 10px; background: var(--accent2);
}

.start-btn {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border2);
  background: transparent; color: var(--text);
  transition: all 0.2s;
  white-space: nowrap;
}
.start-btn:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* ─── FEATURES ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 28px 24px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--border2); }

.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}

.feature-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 60px 48px;
  text-align: center; position: relative; overflow: hidden;
  margin: 0 48px 80px;
  box-shadow: 0 2px 40px rgba(79,53,232,0.06);
}

.cta-banner::before {
  content: '';
  position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(79,53,232,0.1), transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-head); font-size: 40px; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 16px; position: relative;
}

.cta-banner p { color: var(--muted); font-size: 16px; margin-bottom: 32px; position: relative; }
.cta-banner .btn-primary { font-size: 15px; padding: 12px 32px; }

/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 13px;
}

.footer-logo {
  font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--text);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r2); width: 100%; max-width: 520px;
  padding: 36px; position: relative;
  transform: translateY(20px); transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer; padding: 4px 8px;
  transition: color 0.2s; line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal h3 { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.modal-info {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 28px;
}

.info-box {
  background: var(--bg3); border-radius: var(--r);
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.info-box-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.info-box-val { font-size: 18px; font-weight: 700; font-family: var(--font-head); }

.modal-footer { display: flex; gap: 10px; }
.modal-footer .btn { flex: 1; justify-content: center; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 60px 24px 40px; }
  .hero-visual { display: none; }
  .section { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-banner { margin: 0 24px 60px; padding: 40px 24px; }
  footer { flex-direction: column; gap: 16px; padding: 24px; }
}

/* ─── EVENTS PAGE STYLES ─── */
.event-filters {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(79,53,232,0.06);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.events-container {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
}

.events-list {
  min-height: 400px;
}

.event-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background-color 0.2s;
  animation: fadeSlideIn 0.3s ease-out backwards;
}

.event-item:hover {
  background: rgba(79,53,232,0.02);
}

.event-item:last-child {
  border-bottom: none;
}

.event-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.event-content {
  flex: 1;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.event-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.event-type {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-type-exam { background: rgba(79,53,232,0.08); color: var(--accent); }
.event-type-user { background: rgba(13,148,136,0.1); color: var(--teal); }
.event-type-system { background: rgba(217,119,6,0.1); color: var(--amber); }
.event-type-achievement { background: rgba(229,53,53,0.1); color: var(--red); }

.event-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.event-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg3);
  border-color: rgba(0,0,0,0.2);
}

.pagination-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 13px;
  color: var(--muted);
  margin: 0 12px;
}

/* ─── RESPONSIVE FOR EVENTS ─── */
@media (max-width: 768px) {
  .event-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .event-item {
    padding: 16px;
  }
  
  .event-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .event-time {
    margin-left: 0;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .pagination-btn {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* ─── DASHBOARD STYLES ─── */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.stat-change.positive {
  color: var(--teal);
}

.stat-change.negative {
  color: var(--red);
}

.announcement-actions {
  display: flex;
  gap: 12px;
}

.announcements-container {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
}

.announcements-list {
  min-height: 400px;
}

.announcement-item {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
  animation: fadeSlideIn 0.3s ease-out backwards;
}

.announcement-item:hover {
  background: rgba(79,53,232,0.02);
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.announcement-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.announcement-type {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.announcement-type-important { background: rgba(229,53,53,0.1); color: var(--red); }
.announcement-type-maintenance { background: rgba(217,119,6,0.1); color: var(--amber); }
.announcement-type-update { background: rgba(79,53,232,0.08); color: var(--accent); }
.announcement-type-event { background: rgba(13,148,136,0.1); color: var(--teal); }

.announcement-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

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

.announcement-actions-btn {
  display: flex;
  gap: 8px;
}

.announcement-btn {
  padding: 6px 12px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.announcement-btn:hover {
  background: var(--bg3);
  color: var(--text);
}

.announcement-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.status-dot.inactive {
  background: var(--muted);
}

/* ─── ACTIVITY GRID ─── */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.activity-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 24px;
  transition: border-color 0.2s;
}

.activity-card:hover {
  border-color: var(--border2);
}

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

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.activity-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.activity-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-top: 16px;
}

.chart-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 8px;
}

.top-users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-head);
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.user-score {
  font-size: 12px;
  color: var(--muted);
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg3);
  border-radius: 8px;
}

.notification-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.notification-text {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}

.notification-time {
  font-size: 11px;
  color: var(--muted);
}

/* ─── MODAL FORM ─── */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  background: var(--bg3);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg2);
}

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

/* ─── RESPONSIVE FOR DASHBOARD ─── */
@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .activity-grid {
    grid-template-columns: 1fr;
  }
  
  .announcement-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .announcement-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .announcement-actions-btn {
    width: 100%;
  }
  
  .announcement-btn {
    flex: 1;
    text-align: center;
  }
}

/* ─── AUTH PAGES STYLES ─── */
.auth-section {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  width: 100%;
  background: var(--bg2);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 1px solid var(--border2);
}

.auth-card {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.auth-logo h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.auth-header h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--muted);
  font-size: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 16px;
  color: var(--muted);
  z-index: 1;
  width: 20px;
  text-align: center;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  background: var(--bg3);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--accent);
  background: var(--bg2);
  box-shadow: 0 0 0 3px rgba(79,53,232,0.1);
}

.input-group input::placeholder {
  color: var(--muted);
}

.toggle-password {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--text);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password,
.terms-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-password:hover,
.terms-link:hover {
  color: var(--accent2);
}

.auth-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-social {
  padding: 12px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-social:hover {
  background: var(--bg2);
  border-color: rgba(0,0,0,0.2);
}

.btn-google:hover {
  border-color: #ea4335;
  color: #ea4335;
}

.btn-facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: var(--accent2);
}

/* ─── AUTH VISUAL ─── */
.auth-visual {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.visual-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
}

.visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.visual-content h3 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.visual-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.9;
}

.visual-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(10px);
}

.feature-text {
  font-size: 14px;
  font-weight: 600;
}

.visual-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
}

.stat-label {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Register page specific styles */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.benefit-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.benefit-content p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 0;
}

.testimonials {
  background: rgba(255,255,255,0.1);
  padding: 24px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.testimonial-author {
  font-size: 13px;
  opacity: 0.8;
}

/* Password strength indicator */
.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-fill.weak {
  width: 33%;
  background: var(--red);
}

.strength-fill.medium {
  width: 66%;
  background: var(--amber);
}

.strength-fill.strong {
  width: 100%;
  background: var(--teal);
}

.strength-text {
  font-size: 12px;
  color: var(--muted);
}

/* ─── RESPONSIVE FOR AUTH ─── */
@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .auth-visual {
    display: none;
  }
  
  .auth-card {
    padding: 40px 32px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .social-login {
    grid-template-columns: 1fr;
  }
  
  .visual-stats {
    justify-content: space-around;
  }
}

@media (max-width: 480px) {
  .auth-section {
    padding: 20px 16px;
  }
  
  .auth-card {
    padding: 32px 24px;
  }
  
  .auth-header h1 {
    font-size: 28px;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

