:root {
  --bg: #0b0f18;
  --bg-soft: #0f1421;
  --bg-card: #131a2c;
  --text: #f2f5fb;
  --muted: #9aa5b4;
  --accent: #57d0ff;
  --accent-soft: rgba(87, 208, 255, 0.16);
  --border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(8, 12, 20, 0.9);
  --gradient-start: #10182c;
}

/* Light Theme */
[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --text: #1a1f2e;
  --muted: #5a6476;
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --border: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255, 255, 255, 0.95);
  --gradient-start: #e8ecf3;
}

[data-theme="light"] body {
  background: radial-gradient(circle at top, var(--gradient-start) 0%, var(--bg) 55%);
}

[data-theme="light"] .site-header {
  background: var(--header-bg);
  border-bottom-color: var(--border);
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 65%);
}

[data-theme="light"] .cta {
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

/* RTL Support for Kurdish */
[dir="rtl"] {
  font-family: "Noto Sans Arabic", "Chivo", sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .logo-text,
[dir="rtl"] .cta,
[dir="rtl"] .ghost,
[dir="rtl"] .btn-outline {
  font-family: "Noto Sans Arabic", "Space Grotesk", sans-serif;
}

[dir="rtl"] .nav-shell {
  flex-direction: row-reverse;
}

[dir="rtl"] .main-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .notice-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .event-card {
  flex-direction: column;
}

[dir="rtl"] .pin-icon {
  right: auto;
  left: 16px;
}

[dir="rtl"] .cta-panel {
  flex-direction: row-reverse;
}

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

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: "Chivo", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #10182c 0%, var(--bg) 55%);
  line-height: 1.6;
  scroll-behavior: smooth;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

/* Clickable cards */
.recent-notice-card,
.event-card,
.news-card {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.recent-notice-card:hover,
.event-card:hover,
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

/* Scroll offset for sticky header */
section[id] {
  scroll-margin-top: 80px;
}

.site-header {
  position: sticky;
  top: 0;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(8, 12, 20, 0.9);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  gap: 22px;
  font-size: 16px;
  color: var(--muted);
}

.main-nav a {
  padding: 6px 4px;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav .is-active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  cursor: pointer;
  transition: border 0.2s ease, color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Language Toggle */
.lang-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Theme Toggle Icons */
#theme-toggle .icon-sun {
  display: block;
}

#theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] #theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] #theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .icon-btn {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .icon-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ═══════════ Notification Bell ═══════════ */
.notify-wrapper {
  position: relative;
}

.notify-btn {
  position: relative;
}

.notify-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
  display: none;
  pointer-events: none;
}
.notify-badge.has-count {
  display: block;
}

.notify-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notify-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notify-dd-header {
  padding: 14px 18px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.notify-dd-list {
  overflow-y: auto;
  flex: 1;
  max-height: 360px;
}

.notify-dd-empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Single notification card */
.notify-card {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notify-card:last-child { border-bottom: none; }

.notify-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notify-card-avatar svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}
.notify-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notify-card-body {
  flex: 1;
  min-width: 0;
}

.notify-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notify-card-info {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.notify-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.notify-approve-btn,
.notify-reject-btn {
  border: none;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: "Space Grotesk", sans-serif;
}
.notify-approve-btn:hover,
.notify-reject-btn:hover {
  opacity: 0.85;
}
.notify-approve-btn:disabled,
.notify-reject-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.notify-approve-btn {
  background: #22c55e;
  color: #fff;
}
.notify-reject-btn {
  background: #ef4444;
  color: #fff;
}

[dir="rtl"] .notify-dropdown {
  right: auto;
  left: 0;
}

@media (max-width: 480px) {
  .notify-dropdown {
    width: 290px;
    right: -60px;
  }
}

@media (max-width: 360px) {
  .notify-dropdown {
    position: fixed;
    left: 8px;
    right: 8px;
    width: auto;
    top: 70px;
  }
}

/* Account Dropdown */
.account-wrapper {
  position: relative;
}

/* ── Nav User Button (Avatar + Me + Caret) ── */
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  cursor: pointer;
  transition: border 0.2s, background 0.2s, color 0.2s;
  font-family: "Space Grotesk", sans-serif;
}
.nav-user-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.nav-avatar svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}
.nav-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 50%;
}
.nav-avatar.has-photo svg { display: none; }
.nav-avatar.has-photo img { display: block; }

.nav-user-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.nav-caret {
  width: 10px;
  height: 10px;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.account-dropdown.is-open ~ .nav-caret,
.nav-user-btn[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

[data-theme="light"] .nav-user-btn {
  background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .nav-user-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 100;
  overflow: hidden;
}

.account-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Guest state */
.dd-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 20px;
  gap: 8px;
  text-align: center;
}

.dd-guest p {
  font-size: 0.82rem;
  color: var(--subtext);
  margin: 0;
}

.dd-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 24px;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  transition: background 0.2s, transform 0.15s;
}

.dd-signin-btn:hover {
  background: var(--accent-hover, var(--accent));
  transform: translateY(-1px);
  color: #fff;
}

/* Profile card header */
.dd-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 59,130,246), 0.06), transparent);
}

.dd-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  overflow: hidden;
}

.dd-avatar svg {
  width: 22px;
  height: 22px;
  fill: var(--subtext);
}

.dd-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.dd-avatar.has-photo svg {
  display: none;
}

.dd-avatar.has-photo .dd-avatar-img {
  opacity: 1;
}

.dd-profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dd-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.dd-email {
  font-size: 0.76rem;
  color: var(--subtext);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Divider */
.dd-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* Menu groups */
.dd-group {
  padding: 6px 8px;
}

/* Menu items */
.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
  cursor: pointer;
}

.dd-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--subtext);
  transition: color 0.15s;
}

.dd-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.dd-item:hover svg {
  color: var(--accent);
}

/* Logout item */
.dd-item.dd-logout {
  color: var(--text);
}

.dd-item.dd-logout svg {
  color: var(--subtext);
}

.dd-item.dd-logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.dd-item.dd-logout:hover svg {
  color: #ef4444;
}

/* Dropdown header - kept for backwards compat */
.dropdown-header {
  padding: 10px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.dropdown-email {
  padding: 0 16px 10px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 6px;
}

.role-badge.student {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.role-badge.teacher {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.role-badge.owner {
  background: rgba(234, 179, 8, 0.18);
  color: #eab308;
}

.role-badge.supervisor {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.role-badge.admin {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

[dir="rtl"] .role-badge {
  margin-left: 0;
  margin-right: 6px;
}

.role-selector {
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.role-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.role-selector select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
  font-family: "Chivo", sans-serif;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.role-selector select:focus {
  border-color: var(--accent);
}

[dir="rtl"] .account-dropdown {
  right: auto;
  left: 0;
}

.hero {
  position: relative;
  padding: 110px 24px 90px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 700px;
  display: grid;
  gap: 16px;
  z-index: 2;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.2;
}

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cta,
.ghost {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta {
  background: var(--accent);
  color: #06121f;
  box-shadow: 0 10px 30px rgba(87, 208, 255, 0.25);
}

.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta:hover,
.ghost:hover {
  transform: translateY(-2px);
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(87, 208, 255, 0.35), transparent 65%);
  top: -220px;
  right: -160px;
  filter: blur(0px);
  z-index: 1;
}

/* ── Image Carousel ── */
.carousel {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 24px auto 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.carousel-track-container {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

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

.carousel-slide {
  min-width: 100%;
  position: relative;
  flex-shrink: 0;
}

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

.carousel-caption {
  padding: 14px 20px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  text-align: center;
  letter-spacing: 0.3px;
}

/* Arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 20px));
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-btn:hover {
  background: var(--accent);
  color: #06121f;
  transform: translateY(calc(-50% - 20px)) scale(1.08);
}

.carousel-btn--prev {
  left: 12px;
}

.carousel-btn--next {
  right: 12px;
}

/* Dots indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 16px;
  background: var(--bg-card);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: var(--muted);
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* Light theme overrides */
[data-theme="light"] .carousel {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .carousel-btn {
  background: rgba(255, 255, 255, 0.75);
  color: #1a1f2e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .carousel-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* RTL support */
[dir="rtl"] .carousel {
  direction: rtl;
}

[dir="rtl"] .carousel-track {
  direction: ltr;
}

[dir="rtl"] .carousel-caption {
  direction: rtl;
}

[dir="rtl"] .carousel-btn--prev {
  left: auto;
  right: 12px;
}

[dir="rtl"] .carousel-btn--next {
  right: auto;
  left: 12px;
}

/* Responsive */
@media (max-width: 600px) {
  .carousel-slide img {
    height: 220px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
  }

  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }

  .carousel-caption {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
  text-align: center;
}

.section-title h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.section-title p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin-inline: auto;
}

@media (max-width: 1024px) {
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid.three {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.card,
.cta-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card h3,
.notice-card h3,
.news-card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}

.card p,
.notice-card p,
.news-card p {
  color: var(--muted);
}

.notice-card {
  display: grid;
  gap: 10px;
}

.meta {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.news-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  justify-self: start;
}

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.event-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.event-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.event-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(87, 208, 255, 0.12);
  padding: 6px 14px;
  border-radius: 10px;
  font-family: "Space Grotesk", sans-serif;
  align-self: flex-start;
}

.event-day {
  font-size: 20px;
  font-weight: 700;
}

.event-month {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-panel h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}

/* Recent Notices */
.recent-notice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notice-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.notice-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.recent-notice-card:hover .notice-card-img img {
  transform: scale(1.05);
}

.notice-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  flex: 1;
}

.recent-notice-card.urgent {
  border-top: 3px solid #ef4444;
}

.recent-notice-card.pinned {
  border-top: 3px solid #f97316;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: capitalize;
}

.badge.urgent {
  background: #ef4444;
  color: #fff;
}

.badge.general {
  background: var(--accent);
  color: var(--bg);
}

.badge svg {
  width: 12px;
  height: 12px;
}

.notice-date {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-date svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.pin-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: rgba(249, 115, 22, 0.15);
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.pin-icon svg {
  width: 16px;
  height: 16px;
  fill: #f97316;
}

.notice-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.notice-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-action {
  text-align: center;
  margin-top: 32px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.site-footer {
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.footer-center {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.footer-center p {
  font-size: 0.82rem;
  margin: 0 0 4px;
  color: var(--muted);
}

.footer-center a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-center a:hover {
  text-decoration: underline;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.footer-right a {
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
}

.footer-right a:hover {
  color: var(--accent);
}

.footer-right svg {
  width: 20px;
  height: 20px;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ── Footer Location Link ── */
.footer-location-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: rgba(87, 208, 255, 0.08);
  border: 1px solid rgba(87, 208, 255, 0.18);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-location-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: var(--accent);
}
.footer-location-link:hover {
  background: rgba(87, 208, 255, 0.15);
  border-color: rgba(87, 208, 255, 0.35);
  transform: translateY(-1px);
}

.copyright {
  margin-top: 8px;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

/* ── Hamburger Button (hidden on desktop) ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: border 0.2s ease;
  order: -1;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-btn:hover {
  border-color: var(--accent);
}
.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Drawer Overlay ── */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-drawer-overlay.is-active {
  display: block;
  opacity: 1;
}

/* ── Mobile Drawer ── */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg);
  border-right: 1px solid var(--border);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
[dir="rtl"] .mobile-drawer {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
}
.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer-header .logo {
  font-size: 1rem;
}
.mobile-drawer-header .logo-mark {
  width: 36px;
  height: 36px;
}
.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.mobile-drawer-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-item:hover {
  color: var(--text);
  background: var(--bg-card);
}
.mobile-nav-item.is-active {
  color: var(--accent);
  font-weight: 600;
}

.mobile-drawer-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 0.82rem;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.mobile-action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.mobile-action-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.mobile-drawer-account {
  padding: 12px 0;
  flex: 1;
}
.mobile-user-info {
  padding: 8px 24px 4px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── Responsive: Tablet (≤900px) ── */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .nav-shell {
    justify-content: space-between;
  }
}

/* ── Responsive: Small tablet / large phone (≤700px) ── */
@media (max-width: 700px) {
  .nav-actions {
    gap: 6px;
  }
  /* Hide theme, lang, and notify buttons — they're in the drawer */
  #theme-toggle,
  #lang-toggle {
    display: none;
  }

  .hero {
    padding: 90px 20px 70px;
  }

  .cta-panel {
    align-items: flex-start;
  }
}

/* ── Responsive: Phone (≤480px) ── */
@media (max-width: 480px) {
  .nav-shell {
    padding: 14px 16px;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  .logo-mark {
    width: 36px;
    height: 36px;
  }
  .nav-actions .icon-btn {
    width: 36px;
    height: 36px;
  }
  .nav-user-btn {
    padding: 3px 8px 3px 3px;
  }
  .nav-user-btn .me-label,
  .nav-user-btn .caret {
    display: none;
  }

  .hero {
    padding: 80px 16px 60px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
}

/* ── Mobile theme icons in drawer ── */
[data-theme="dark"] .mobile-action-btn .icon-sun { display: none; }
[data-theme="dark"] .mobile-action-btn .icon-moon { display: inline; }
[data-theme="light"] .mobile-action-btn .icon-moon { display: none; }
[data-theme="light"] .mobile-action-btn .icon-sun { display: inline; }
.mobile-action-btn .icon-moon { display: none; }
.mobile-action-btn .icon-sun { display: inline; }

/* ===================== */
/* DASHBOARD             */
/* ===================== */

.dash-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.dash-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-tab svg {
  width: 18px;
  height: 18px;
}

.dash-tab:hover {
  color: var(--text);
}

.dash-tab.active {
  background: var(--accent);
  color: #06121f;
  box-shadow: 0 4px 12px rgba(87, 208, 255, 0.25);
}

.dash-form-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.dash-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.dash-field {
  margin-bottom: 20px;
}

.dash-field label {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.dash-field .required {
  color: #ef4444;
}

.dash-field .optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.dash-field input[type="text"],
.dash-field input[type="url"],
.dash-field input[type="date"],
.dash-field textarea,
.dash-field select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: "Chivo", sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.dash-field input:focus,
.dash-field textarea:focus,
.dash-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(87, 208, 255, 0.1);
}

.dash-field textarea {
  resize: vertical;
  min-height: 80px;
}

.dash-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Upload Area */
.dash-upload-area,
.dash-pdf-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.dash-upload-area:hover,
.dash-pdf-area:hover {
  border-color: var(--accent);
}

.dash-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.dash-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.dash-upload-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}

.dash-image-preview {
  position: relative;
}

.dash-image-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.dash-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: transform 0.15s ease;
}

.dash-remove-btn:hover {
  transform: scale(1.1);
}

.dash-pdf-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.dash-pdf-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-pdf-info .dash-remove-btn {
  position: static;
  flex-shrink: 0;
}

/* Checkbox */
.dash-checks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.dash-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.dash-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--accent);
}

/* Submit */
.dash-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.dash-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #06121f;
  border: none;
  border-radius: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(87, 208, 255, 0.2);
}

.dash-btn-primary svg {
  width: 18px;
  height: 18px;
}

.dash-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(87, 208, 255, 0.3);
}

.dash-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.dash-btn-secondary {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.dash-btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Success Message */
.dash-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 14px;
  margin-top: 20px;
  animation: slideIn 0.3s ease;
}

.dash-success svg {
  width: 32px;
  height: 32px;
  fill: #22c55e;
  flex-shrink: 0;
}

.dash-success strong {
  color: #22c55e;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.dash-success p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.spin {
  animation: spin 0.8s linear infinite;
}

/* Dashboard responsive */
@media (max-width: 600px) {
  .dash-form {
    padding: 20px 16px;
  }
  .dash-tabs {
    flex-direction: column;
  }
  .dash-actions {
    flex-direction: column;
  }
  .dash-btn-primary,
  .dash-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ===================== */
/* POST EXTRAS (links, pdf, address on cards) */
/* ===================== */

/* — Address / Location pill — */
.post-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(87, 208, 255, 0.08);
  border: 1px solid rgba(87, 208, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  align-self: flex-start;
  margin-top: 2px;
}

.post-address svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* — Buttons container — */
.post-extras {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  flex-wrap: wrap;
}

/* — Shared button base — */
.post-link-btn,
.post-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  letter-spacing: 0.3px;
}

.post-link-btn svg,
.post-pdf-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* — Visit Link button — */
.post-link-btn {
  background: rgba(87, 208, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(87, 208, 255, 0.2);
}

.post-link-btn:hover {
  background: rgba(87, 208, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(87, 208, 255, 0.18);
}

/* — PDF button — */
.post-pdf-btn {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.post-pdf-btn:hover {
  background: rgba(249, 115, 22, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.18);
}

/* — Description line-clamping — */
.news-card-body > p,
.event-card-body > p,
.notice-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.news-card-body > h3,
.event-card-body > h3 {
  line-height: 1.3;
}

/* Admin delete X button on cards */
.post-delete-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.recent-notice-card,
.event-card,
.news-card {
  position: relative;
}

.recent-notice-card:hover .post-delete-x,
.event-card:hover .post-delete-x,
.news-card:hover .post-delete-x {
  opacity: 1;
}

.post-delete-x:hover {
  background: #dc2626;
  transform: scale(1.15);
}

/* =====================
   EDIT PAGE — Tabbed sections for admin editing
   ===================== */

/* Tab panels */
.edit-tab-panel {
  display: none;
}

.edit-tab-panel.active {
  display: block;
  animation: editFadeIn 0.25s ease;
}

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

.edit-panel-header {
  margin-bottom: 16px;
}

.edit-panel-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0;
}

/* Post cards grid */
.edit-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Individual edit card */
.edit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.edit-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.edit-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--surface);
}

.edit-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edit-card-no-img {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.edit-card-no-img svg {
  width: 36px;
  height: 36px;
  fill: var(--muted);
  opacity: 0.35;
}

.edit-card-body {
  padding: 16px;
}

.edit-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.edit-card-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.edit-card-date {
  font-size: 0.75rem;
  color: var(--muted);
}

.edit-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--heading);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edit-card-desc {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edit-card-actions {
  display: flex;
  gap: 8px;
}

.edit-card-edit,
.edit-card-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.edit-card-edit {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  flex: 1;
  justify-content: center;
}

.edit-card-edit:hover {
  background: #3b82f6;
  color: #fff;
}

.edit-card-edit svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.edit-card-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.edit-card-delete:hover {
  background: #ef4444;
  color: #fff;
}

.edit-card-delete svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Empty state */
.edit-empty-section {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
}

.edit-empty-section svg {
  fill: var(--muted);
  opacity: 0.3;
  margin-bottom: 12px;
}

.edit-empty-section p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 6px;
}

.edit-empty-section span {
  font-size: 0.85rem;
}

.edit-empty-section a {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .edit-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   EDIT MODAL
   ===================== */
.edit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.edit-modal {
  background: var(--card);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.edit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.edit-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--heading);
}

.edit-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}

.edit-modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

#edit-post-form {
  padding: 20px 24px 24px;
}

.edit-field {
  margin-bottom: 16px;
}

.edit-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.edit-field input[type="text"],
.edit-field input[type="url"],
.edit-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.edit-field input:focus,
.edit-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.edit-field input[type="file"] {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.edit-image-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-current-image,
.edit-new-preview {
  position: relative;
  display: inline-block;
  max-width: 240px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.edit-current-image img,
.edit-new-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.edit-no-image {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.edit-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
}

/* =====================
   POST DETAIL MODAL
   ===================== */
.pd-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pd-overlay.active {
  opacity: 1;
}

.pd-modal {
  background: var(--bg-card);
  border-radius: 24px;
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow:
    0 0 0 1px var(--border),
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 32px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom scrollbar */
.pd-modal::-webkit-scrollbar {
  width: 6px;
}
.pd-modal::-webkit-scrollbar-track {
  background: transparent;
}
.pd-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
.pd-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pd-overlay.active .pd-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.pd-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pd-close svg {
  width: 16px;
  height: 16px;
}

.pd-close:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.05);
}

/* Hero image */
.pd-hero {
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  position: relative;
}

.pd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-card), transparent);
  pointer-events: none;
}

/* Body */
.pd-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Header section */
.pd-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: "Space Grotesk", sans-serif;
}

.pd-chip-type {
  background: var(--accent-soft);
  color: var(--accent);
}

.pd-chip-category {
  background: var(--accent);
  color: var(--bg);
}

.pd-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(87, 208, 255, 0.1);
  border: 1px solid rgba(87, 208, 255, 0.15);
  padding: 4px 12px;
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.pd-event-day {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.pd-event-month {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}

/* Divider */
.pd-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* Info bar */
.pd-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pd-info-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
}

.pd-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pd-info-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

/* Content */
.pd-content {
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--text);
  word-break: break-word;
  padding: 4px 0;
}
.pd-section {
  margin-bottom: 18px;
}
.pd-section:last-child {
  margin-bottom: 0;
}
.pd-section-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 6px;
}
.pd-section-text {
  white-space: pre-wrap;
  line-height: 1.85;
}

/* Action buttons */
.pd-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pd-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  min-width: 140px;
}

.pd-action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.pd-action-link {
  background: var(--accent);
  color: var(--bg);
}

.pd-action-link:hover {
  box-shadow: 0 6px 20px rgba(87, 208, 255, 0.3);
  transform: translateY(-2px);
}

.pd-action-pdf {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.pd-action-pdf:hover {
  background: rgba(249, 115, 22, 0.22);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.2);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
  .pd-overlay {
    padding: 12px;
  }
  .pd-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 18px;
  }
  .pd-hero {
    height: 200px;
    border-radius: 18px 18px 0 0;
  }
  .pd-body {
    padding: 20px;
  }
  .pd-title {
    font-size: 1.25rem;
  }
  .pd-info-bar {
    gap: 12px;
  }
  .pd-action-btn {
    flex: unset;
    min-width: unset;
    padding: 10px 18px;
    font-size: 0.82rem;
  }
}

/* =====================
   PROFILE MODAL
   ===================== */
.prof-modal {
  max-width: 440px;
  overflow: hidden;
}

.prof-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.prof-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.prof-banner {
  height: 120px;
  background: linear-gradient(135deg, rgba(87, 208, 255, 0.25) 0%, rgba(99, 102, 241, 0.2) 50%, rgba(168, 85, 247, 0.15) 100%);
  position: relative;
}

.prof-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.prof-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  overflow: hidden;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

.prof-initials {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.prof-body {
  padding: 16px 32px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.prof-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.prof-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  background: var(--bg);
  border-radius: 14px;
  padding: 4px 0;
  border: 1px solid var(--border);
}

.prof-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.prof-detail-row:last-child {
  border-bottom: none;
}

.prof-detail-row svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* Recovery-code row inside Profile modal */
.prof-recovery-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 79,70,229), .06) 0%, rgba(var(--accent-rgb, 79,70,229), .02) 100%);
  border-top: 1px solid var(--border);
}

.prof-recovery-row svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.prof-recovery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prof-recovery-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtext);
}

.prof-recovery-code {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  background: var(--card);
  border: 1.5px dashed var(--accent);
  border-radius: 8px;
  padding: 6px 16px;
  display: inline-block;
  user-select: all;
}

.prof-recovery-hint {
  font-size: 0.72rem;
  color: var(--subtext);
  opacity: 0.75;
  line-height: 1.4;
}

/* =====================
   ROLE MANAGEMENT MODAL
   ===================== */
.role-modal-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 94%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.role-modal-header {
  padding: 28px 28px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.role-modal-header svg {
  fill: var(--accent);
  margin-bottom: 8px;
}

.role-modal-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.role-modal-header p {
  font-size: 0.82rem;
  color: var(--subtext);
  margin: 0;
}

.role-modal-body {
  overflow-y: auto;
  padding: 8px 0;
  flex: 1;
}

.role-loading {
  text-align: center;
  padding: 32px 16px;
  color: var(--subtext);
  font-size: 0.9rem;
}

.role-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.role-user-card:last-child {
  border-bottom: none;
}

.role-user-card:hover {
  background: rgba(255,255,255,0.03);
}

.role-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.role-user-avatar-default {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.role-user-avatar-default svg {
  width: 22px;
  height: 22px;
  fill: var(--subtext);
}

.role-user-info {
  flex: 1;
  min-width: 0;
}

.role-user-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-user-email {
  font-size: 0.78rem;
  color: var(--subtext);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-user-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s;
}

.role-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  transform: scale(1.08);
}

.role-delete-btn:active {
  transform: scale(0.95);
}

.role-select {
  padding: 6px 28px 6px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa5b4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.role-select:focus {
  border-color: var(--accent);
}

.role-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.role-badge-fixed {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-badge-fixed.owner {
  background: rgba(234, 179, 8, 0.18);
  color: #eab308;
}

@media (max-width: 480px) {
  .role-modal-inner {
    border-radius: 16px;
  }
  .role-user-card {
    padding: 10px 16px;
  }
}

/* =====================
   REGISTER / CREATE ACCOUNT MODAL
   ===================== */
.reg-modal {
  max-width: 520px;
}

.reg-header {
  padding: 28px 32px 0;
  text-align: center;
}

.reg-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.reg-header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

#reg-form {
  padding: 24px 32px 32px;
}

.reg-photo-section {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.reg-photo-box {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.reg-photo-box svg {
  width: 28px;
  height: 28px;
  fill: var(--muted);
  transition: fill 0.2s;
}

.reg-photo-box span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reg-photo-box:hover {
  border-color: var(--accent);
}

.reg-photo-box:hover svg {
  fill: var(--accent);
}

.reg-photo-box.has-photo svg,
.reg-photo-box.has-photo span {
  display: none;
}

.reg-photo-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reg-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.reg-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
}

.reg-field .req {
  color: #ef4444;
}

.reg-field .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

.reg-field input,
.reg-field select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: "Chivo", sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.reg-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa5b4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.reg-field input:focus,
.reg-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(87, 208, 255, 0.12);
}

.reg-field input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.reg-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.reg-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-top: 16px;
}

.reg-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-top: 16px;
}

.reg-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #06121f;
  border: none;
  border-radius: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(87, 208, 255, 0.2);
}

.reg-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(87, 208, 255, 0.3);
}

.reg-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 500px) {
  .prof-modal {
    max-width: 100%;
  }
  .prof-body {
    padding: 16px 20px 24px;
  }
  .reg-modal {
    max-width: 100%;
  }
  #reg-form {
    padding: 20px;
  }
  .reg-row {
    grid-template-columns: 1fr;
  }
  .reg-header {
    padding: 24px 20px 0;
  }
}

/* ── Extra small phone fixes (≤380px) ── */
@media (max-width: 380px) {
  .section {
    padding: 50px 14px;
  }
  .hero {
    padding: 70px 12px 50px;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  .cta, .ghost {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
  .card, .cta-panel {
    padding: 18px;
  }
  .edit-modal-overlay {
    padding: 10px;
  }
  .edit-modal {
    border-radius: 14px;
  }
  #edit-post-form {
    padding: 16px;
  }
}

/* ── Password Show/Hide Toggle ── */
.password-wrapper {
  position: relative;
}
.password-wrapper input {
  padding-right: 46px;
}
.password-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.password-eye:hover {
  color: var(--accent);
  background: rgba(87, 208, 255, 0.08);
}
.password-eye svg {
  width: 20px;
  height: 20px;
}
.password-eye .eye-closed {
  display: none;
}
.password-eye.is-visible .eye-open {
  display: none;
}
.password-eye.is-visible .eye-closed {
  display: block;
}

