/* ==========================================================================
   1Sec — African heritage × cybersecurity fusion design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  /* Hacker / matrix green palette */
  --green-neon: #39ff14;
  --green-bright: #5cff7a;
  --green-soft: #a8ffb8;
  --green-dim: rgba(57, 255, 20, 0.4);
  --green-muted: #1e5c32;
  --green-dark: #0a160c;
  --green-forest: #0d2818;

  /* Aliases used across components */
  --gold: var(--green-muted);
  --gold-bright: var(--green-bright);
  --terracotta: var(--green-forest);
  --kente-green: var(--green-forest);
  --cyan: var(--green-neon);
  --cyan-dim: var(--green-dim);
  --neon-green: var(--green-neon);
  --imigongo-cream: #ffffff;

  /* Backgrounds — frosted panels over blurred art */
  --bg-deep: #0a120c;
  --bg-panel: rgba(8, 18, 10, 0.92);
  --bg-card: rgba(10, 22, 12, 0.94);
  --matrix-line: rgba(57, 255, 20, 0.07);

  /* Typography — sized for comfortable reading (executive-friendly) */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --text-base: 1.125rem;   /* 18px body */
  --text-lg: 1.25rem;      /* 20px lead paragraphs */
  --text-xl: 1.375rem;     /* 22px subheads */
  --text-sm: 1rem;         /* 16px minimum — never smaller for body copy */
  --text-muted: rgba(255, 255, 255, 0.98);
  --text-muted-soft: rgba(255, 255, 255, 0.9);
  --line-height-body: 1.75;
  --line-height-heading: 1.35;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-depth:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(57, 255, 20, 0.08);
  --glow-border: 0 0 0 1px rgba(57, 255, 20, 0.3), 0 0 24px rgba(57, 255, 20, 0.18);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--bg-deep);
  color: var(--imigongo-cream);
  line-height: var(--line-height-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Shared readable paragraph style for content pages */
.content-text {
  font-size: var(--text-lg);
  line-height: var(--line-height-body);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.content-text:last-child {
  margin-bottom: 0;
}

/* Kente + matrix background layers — blurred for readable white text */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}

/* Dark depth layer */
.bg-layers::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 14, 8, 0.72) 0%, rgba(6, 14, 8, 0.82) 50%, rgba(6, 14, 8, 0.88) 100%),
    linear-gradient(135deg, rgba(20, 70, 35, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(57, 255, 20, 0.06), transparent 60%);
  z-index: 4;
}

/* Frosted glass — blurs Imigongo / logo patterns behind content */
.bg-layers::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  background: rgba(8, 16, 10, 0.55);
}

/* Shared blur on all pattern layers (extends past edges to avoid clipping) */
.bg-imigongo,
.bg-logo-marks,
.bg-kente,
.bg-grid {
  inset: -30px;
  transform: scale(1.06);
}

/* Rwandan Imigongo pattern — full-page tiled background */
.bg-imigongo {
  position: absolute;
  z-index: 0;
  background-image: url('../assets/imigongo-bg.png');
  background-repeat: repeat;
  background-size: 400px auto;
  background-position: center top;
  opacity: 0.85;
  filter: blur(10px) brightness(0.88) saturate(1.05) contrast(1.02);
}

/* Subtle green grid accent over Imigongo */
.bg-kente {
  position: absolute;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%2339ff14' stroke-width='0.8'%3E%3Cpath d='M0 0h40v40H0zM40 40h40v40H40z'/%3E%3Cpath d='M40 0h40v40H40zM0 40h40v40H0z'/%3E%3Cpath d='M20 20l20-20M40 40l20 20M20 60l-20-20M60 20l20-20'/%3E%3C/g%3E%3C/svg%3E");
  filter: blur(8px);
}

/* Logo watermarks scattered across the background */
.bg-logo-marks {
  position: absolute;
  z-index: 1;
  opacity: 0.05;
  background-image: url('../assets/logo.png');
  background-repeat: repeat;
  background-size: 160px 160px;
  filter: blur(12px) invert(1) sepia(1) hue-rotate(70deg) saturate(4) brightness(1.1);
  mask-image:
    radial-gradient(ellipse 85% 80% at 50% 50%, black 30%, transparent 80%);
}

.bg-grid {
  position: absolute;
  z-index: 2;
  background-image:
    linear-gradient(var(--matrix-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--matrix-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 75%);
  filter: blur(6px);
  opacity: 0.6;
}

/* Layout */
.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  background: rgba(8, 18, 10, 0.88);
  border-bottom: 1px solid rgba(57, 255, 20, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

/* Real logo image replaces the old emoji shield */
.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  /* invert white-on-black logo to green-on-dark */
  filter: invert(1) brightness(1.1) sepia(1) hue-rotate(70deg) saturate(6);
  transition: filter var(--transition);
}

.logo:hover .logo-img {
  filter: invert(1) brightness(1.4) sepia(1) hue-rotate(70deg) saturate(8);
}

.logo-shield {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--green-muted), var(--green-forest));
  border-radius: 10px;
  box-shadow: var(--glow-border), 0 8px 20px rgba(0, 0, 0, 0.4);
  font-size: 1.25rem;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  /* Solid black — stands out against the green/dark background */
  color: #000000;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--text-base);
  transition: var(--transition);
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--cyan);
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 20, 0.45);
  background: rgba(30, 92, 50, 0.25);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-bright);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  line-height: var(--line-height-heading);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 40px rgba(57, 255, 20, 0.25);
}

.hero h1 span {
  color: var(--cyan);
}

.hero-lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: var(--line-height-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--text-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  min-height: 3rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-muted), var(--green-neon));
  color: #041008;
  box-shadow: 0 4px 24px rgba(57, 255, 20, 0.35), var(--shadow-depth);
}

.btn-primary:hover {
  transform: translateY(-3px) perspective(400px) rotateX(2deg);
  box-shadow: 0 8px 32px rgba(57, 255, 20, 0.45), 0 0 30px rgba(57, 255, 20, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
}

.btn-ghost:hover {
  background: rgba(57, 255, 20, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--glow-border);
}

.hero-visual {
  position: relative;
  perspective: 900px;
}

.hero-card-3d {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(57, 255, 20, 0.25);
  box-shadow: var(--shadow-depth), var(--glow-border);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: var(--transition);
}

.hero-card-3d:hover {
  transform: rotateY(0deg) rotateX(0deg) translateZ(12px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-pill {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  border-left: 3px solid var(--green-neon);
}

.stat-pill strong {
  display: block;
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 1.75rem;
}

.stat-pill span {
  font-size: var(--text-base);
  color: var(--text-muted-soft);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-tag {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: var(--green-bright);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  line-height: var(--line-height-heading);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted-soft);
  line-height: var(--line-height-body);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(57, 255, 20, 0.18);
  box-shadow: var(--shadow-depth);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-forest), var(--green-muted), var(--green-neon), var(--green-bright));
}

.card:hover {
  transform: translateY(-8px) perspective(600px) rotateX(2deg);
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: var(--shadow-depth), 0 0 40px rgba(57, 255, 20, 0.15);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(57, 255, 20, 0.18), rgba(30, 92, 50, 0.2));
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.12);
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: 0.65rem;
  line-height: var(--line-height-heading);
}

.card p {
  color: var(--text-muted-soft);
  font-size: var(--text-base);
  line-height: var(--line-height-body);
}

.card li {
  font-size: var(--text-base);
  line-height: var(--line-height-body);
}

.service-list {
  margin-top: 1rem;
  padding-left: 1.4rem;
  color: var(--text-muted-soft);
  font-size: var(--text-base);
  line-height: var(--line-height-body);
}

.service-list li {
  margin-bottom: 0.5rem;
}

.admin-help-text {
  margin-top: 1rem;
  font-size: var(--text-base);
  line-height: var(--line-height-body);
  color: var(--text-muted-soft);
}

.card.coming-soon {
  filter: blur(2px);
  opacity: 0.65;
  pointer-events: none;
  user-select: none;
}

.coming-soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  filter: none;
  background: rgba(10, 22, 12, 0.9);
  border: 1px solid var(--green-neon);
  color: var(--green-bright);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.35);
  pointer-events: none;
}

.card-wrap-soon {
  position: relative;
}

/* News preview / list */
.news-list {
  display: grid;
  gap: 1.5rem;
}

.news-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(57, 255, 20, 0.15);
  box-shadow: var(--shadow-depth);
  transition: var(--transition);
}

.news-item:hover {
  border-color: rgba(57, 255, 20, 0.4);
  transform: translateX(6px);
}

.news-date {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
  min-width: 6rem;
}

.news-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
  line-height: var(--line-height-heading);
}

.news-item h3 a {
  color: inherit;
  text-decoration: none;
}

.news-item h3 a:hover {
  color: var(--cyan);
}

.news-excerpt {
  color: var(--text-muted-soft);
  font-size: var(--text-base);
  line-height: var(--line-height-body);
}

.news-region {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: var(--text-sm);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  background: rgba(30, 92, 50, 0.35);
  color: var(--green-bright);
}

.loading-state,
.empty-state,
.error-state {
  text-align: center;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px dashed rgba(57, 255, 20, 0.3);
  color: var(--text-muted-soft);
  font-size: var(--text-lg);
  line-height: var(--line-height-body);
}

.error-state {
  border-color: rgba(200, 80, 80, 0.5);
  color: #ffb8b8;
}

/* Forms */
.form-panel {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(57, 255, 20, 0.2);
  box-shadow: var(--shadow-depth), var(--glow-border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: var(--text-base);
  color: var(--green-bright);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(57, 255, 20, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: var(--imigongo-cream);
  font-family: inherit;
  font-size: var(--text-base);
  line-height: 1.5;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-neon);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.2);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--text-base);
  line-height: var(--line-height-body);
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message.success {
  background: rgba(26, 92, 74, 0.35);
  border: 1px solid var(--kente-green);
  color: #a8f0d0;
}

.form-message.error {
  background: rgba(80, 20, 20, 0.35);
  border: 1px solid #8b3030;
  color: #ffc4c4;
}

/* About / address */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.address-card {
  background: linear-gradient(160deg, var(--bg-card), rgba(30, 92, 50, 0.25));
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(57, 255, 20, 0.22);
  box-shadow: var(--shadow-depth);
}

.address-card h3 {
  font-family: var(--font-display);
  color: var(--cyan);
  margin-bottom: 1rem;
  font-size: var(--text-xl);
}

.address-card address,
.address-card p {
  font-size: var(--text-base);
  line-height: var(--line-height-body);
  color: var(--text-muted-soft);
}

.about-split h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: var(--line-height-heading);
}

.map-placeholder {
  margin-top: 1.5rem;
  height: 200px;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--matrix-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--matrix-line) 1px, transparent 1px),
    rgba(57, 255, 20, 0.06);
  background-size: 24px 24px, 24px 24px, auto;
  display: grid;
  place-items: center;
  color: var(--green-bright);
  font-size: var(--text-base);
  border: 1px solid rgba(57, 255, 20, 0.2);
}

/* Admin */
.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.admin-section-title {
  font-family: var(--font-display);
  margin-bottom: 1.25rem;
  font-size: var(--text-xl);
  color: var(--green-neon);
}

.admin-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--green-neon);
  margin-bottom: 1rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-tab {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.04em;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(57, 255, 20, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(232, 245, 233, 0.8);
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab:hover,
.admin-tab.active {
  color: var(--green-neon);
  border-color: var(--green-neon);
  background: rgba(57, 255, 20, 0.12);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.12);
}

.admin-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--green-neon);
  color: #041008;
  font-size: var(--text-sm);
  font-weight: 700;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-tab-intro {
  color: var(--text-muted-soft);
  margin-bottom: 1.25rem;
  font-size: var(--text-lg);
  line-height: var(--line-height-body);
}

.admin-form-full {
  max-width: 100%;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: var(--text-sm);
  min-height: 2.5rem;
}

.btn-danger {
  color: #ff8a8a;
  border-color: rgba(255, 100, 100, 0.45);
}

.btn-danger:hover {
  background: rgba(139, 38, 53, 0.25);
  color: #ffc4c4;
  box-shadow: 0 0 16px rgba(255, 80, 80, 0.2);
}

.admin-panel {
  display: none;
}

.admin-panel.visible {
  display: block;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-user {
  font-size: var(--text-base);
  color: var(--cyan);
}

.news-admin-list {
  margin-top: 2rem;
  border-top: 1px solid rgba(57, 255, 20, 0.15);
  padding-top: 1.5rem;
}

.admin-manage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid rgba(57, 255, 20, 0.12);
  transition: var(--transition);
}

.admin-list-item:hover {
  border-color: rgba(57, 255, 20, 0.3);
}

.admin-list-item-main {
  flex: 1;
  min-width: 200px;
}

.admin-list-item-main strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--text-lg);
}

.admin-list-meta {
  font-size: var(--text-base);
  color: var(--text-muted-soft);
}

.admin-list-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-list-empty {
  list-style: none;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted-soft);
  font-size: var(--text-lg);
  line-height: var(--line-height-body);
  border: 1px dashed rgba(57, 255, 20, 0.2);
  border-radius: var(--radius);
}

/* Contact inquiries inbox */
.contacts-inbox {
  display: grid;
  gap: 1rem;
}

.contact-inquiry-card {
  background: var(--bg-panel);
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-depth);
}

.contact-inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-inquiry-header h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--green-bright);
  margin-bottom: 0.35rem;
}

.contact-email {
  color: var(--green-neon);
  font-size: var(--text-base);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-inquiry-header time {
  font-size: var(--text-base);
  color: var(--text-muted-soft);
  white-space: nowrap;
}

.contact-subject {
  font-size: var(--text-base);
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  line-height: var(--line-height-body);
}

.contact-message {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--line-height-body);
  white-space: pre-wrap;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(57, 255, 20, 0.18);
  background: rgba(8, 18, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  color: var(--green-neon);
  margin-bottom: 0.85rem;
}

.footer-grid a {
  color: var(--text-muted-soft);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--text-base);
  line-height: 1.6;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-grid p {
  font-size: var(--text-base);
  line-height: var(--line-height-body);
  color: var(--text-muted-soft);
}

.footer-tagline {
  max-width: 320px;
}

.footer-address {
  margin: 0;
}

.card-link-btn {
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  font-size: var(--text-base);
  color: var(--text-muted-soft);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Secret admin link — invisible dot in the footer copyright line */
.footer-admin-link {
  color: rgba(242, 235, 224, 0.15);
  text-decoration: none;
  font-size: 0.85rem;
  cursor: default;
  user-select: none;
  transition: color 0.2s;
}

.footer-admin-link:hover {
  color: var(--green-neon);
  cursor: pointer;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  margin-bottom: 0.75rem;
  line-height: var(--line-height-heading);
}

.page-hero p {
  font-size: var(--text-lg);
  color: var(--text-muted-soft);
  max-width: 620px;
  margin: 0 auto;
  line-height: var(--line-height-body);
}

/* Article modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  border: 1px solid rgba(57, 255, 20, 0.3);
  box-shadow: var(--shadow-depth), 0 0 60px rgba(57, 255, 20, 0.18);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--cyan);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content h2 {
  font-family: var(--font-display);
  margin-bottom: 0.65rem;
  padding-right: 2rem;
  font-size: var(--text-xl);
  line-height: var(--line-height-heading);
}

.modal-meta {
  font-size: var(--text-base);
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.modal-body {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: var(--line-height-body);
  white-space: pre-wrap;
}

/* Hero card & inline content blocks */
.hero-card-3d p {
  font-size: var(--text-base);
  line-height: var(--line-height-body);
  color: var(--text-muted-soft);
}

.hero-card-3d .hero-card-label {
  font-family: var(--font-display);
  color: var(--green-neon);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card-3d {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 22, 12, 0.96);
    padding: 1rem;
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
  }

  .nav-main.open {
    display: flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}
