/* ═══════════════════════════════════════════════════════════════
   THE ARMORIAL OF THE BEE  —  Main Stylesheet
   Design: modern heraldic, gold & deep navy palette
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --gold:        #C9962A;
  --gold-light:  #E8B84B;
  --gold-pale:   #F5E6C0;
  --navy:        #0E1E3A;
  --navy-mid:    #1A2E55;
  --navy-light:  #2A4075;
  --cream:       #FAF6EE;
  --white:       #FFFFFF;
  --text:        #2C2C2C;
  --text-muted:  #6B6B6B;
  --border:      #DDD5C0;
  --shadow:      0 4px 24px rgba(14,30,58,0.12);
  --shadow-lg:   0 8px 48px rgba(14,30,58,0.20);

  --font-serif:  'Cinzel', 'Times New Roman', serif;
  --font-sans:   'Lato', 'Helvetica Neue', sans-serif;

  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.25s ease;
  --max-width:   1200px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,150,42,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-full { width: 100%; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

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

.logo-img  { height: 48px; width: auto; }
.logo-title { height: 36px; width: auto; }

/* Text-based title (replaces title.png) */
.logo-title-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  line-height: 1.2;
  white-space: nowrap;
}

/* ── NAVIGATION ── */
.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--gold-pale);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold-light);
  background: rgba(201,150,42,0.12);
}

.chevron { font-size: 0.65rem; vertical-align: middle; margin-left: 3px; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--navy-mid);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 100;
  overflow: hidden;
}
.dropdown li a {
  padding: 10px 18px;
  border-radius: 0;
  font-size: 0.82rem;
}
.dropdown li a:hover { background: var(--navy-light); }
.has-dropdown.open .dropdown { display: block; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Hero with real image (pen.jpg) */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* CSS-only hero fallback (no pen.jpg needed) */
.hero-css {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201,150,42,0.12) 0%, transparent 60%),
    linear-gradient(160deg, #070F1E 0%, #0E1E3A 40%, #1A2E55 70%, #0E1E3A 100%);
}
/* Honeycomb pattern subtile */
.hero-css::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpath d='M30 2 L58 17 L58 35 L30 50 L2 35 L2 17 Z' fill='none' stroke='rgba(201,150,42,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 52px;
}
/* Filigrane logo centré à droite */
.hero-css::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 45vw);
  height: min(420px, 45vw);
  background-image: url('../assets/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14,30,58,0.85) 0%,
    rgba(14,30,58,0.55) 60%,
    rgba(14,30,58,0.30) 100%
  );
  z-index: 1;
}
/* For CSS hero, overlay is lighter since no photo underneath */
.hero-css .hero-overlay {
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gold-pale);
  margin-bottom: 32px;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── CARDS SECTION ── */
.cards-section {
  padding: 80px 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-featured {
  background: var(--navy);
  border-color: var(--gold);
  border-width: 2px;
}
.card-featured h2, .card-featured p { color: var(--gold-pale); }
.card-featured h2 { color: var(--gold-light); }
.card-featured .card-link { color: var(--gold); }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.card h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ── FEATURE STRIP ── */
.feature-strip {
  background: var(--gold);
  padding: 48px 24px;
}

.feature-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
  flex: 1;
  min-width: 160px;
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.feature-num::after { content: '+'; font-size: 1.8rem; }

.feature-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-top: 6px;
  font-weight: 700;
}

.feature-divider {
  width: 1px;
  height: 60px;
  background: rgba(14,30,58,0.25);
}

/* ── PREVIEW SECTION ── */
.preview-section {
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { font-size: 2rem; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-style: italic; }

.section-cta {
  text-align: center;
  margin-top: 48px;
}

.crests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.crest-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.crest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.crest-img-wrap {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
}
.crest-placeholder-img {
  font-size: 5rem;
  opacity: 0.5;
}
.crest-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.crest-info { padding: 20px 24px; }
.crest-info h3 { font-size: 1rem; margin-bottom: 8px; }
.crest-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.crest-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-pale);
  color: var(--navy);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── CONTACT SECTION ── */
.contact-section {
  background: var(--navy);
  padding: 80px 24px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text h2 { color: var(--gold-light); font-size: 2rem; margin-bottom: 20px; }
.contact-text p { color: var(--gold-pale); margin-bottom: 16px; font-size: 0.95rem; }
.contact-text .btn { margin-top: 8px; }

.contact-form {
  background: var(--navy-mid);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form h3 {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 6px;
  font-weight: 700;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--navy);
  border: 1px solid var(--navy-light);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; }

.form-success {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(201,150,42,0.15);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-size: 0.9rem;
  text-align: center;
}

/* ── FOOTER ── */
.site-footer {
  background: #070F1E;
  border-top: 2px solid var(--gold);
  padding: 40px 24px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-pale);
  font-family: var(--font-serif);
  font-size: 0.9rem;
}
.footer-logo-img { height: 36px; width: auto; }

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 4px 8px;
  border-radius: var(--radius);
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: right;
  line-height: 1.6;
}
.footer-copy a { color: var(--gold); }

/* ══════════════════════════════════
   INDEX ARMORIUM PAGE
   ══════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-bottom: 2px solid var(--gold);
  padding: 64px 24px 48px;
  text-align: center;
}
.page-hero h1 { color: var(--gold-light); font-size: 2.5rem; margin-bottom: 12px; }
.page-hero p { color: var(--gold-pale); font-size: 1rem; font-style: italic; }

.armorium-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}
.search-wrap input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
}
.search-wrap input:focus { outline: none; border-color: var(--gold); }
.search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.filter-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.armorium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.armorium-entry {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.armorium-entry:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.entry-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gold);
}

.entry-body { padding: 16px 20px; }
.entry-body h3 { font-size: 0.95rem; margin-bottom: 6px; }
.entry-body .entry-family { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.entry-body .entry-blazon {
  font-size: 0.8rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 10px;
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}
.entry-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loading-indicator {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
  font-style: italic;
}

/* ══════════════════════════════════
   HERALDICA PAGE
   ══════════════════════════════════ */
.heraldica-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.heraldica-text h2 { font-size: 1.8rem; margin-bottom: 20px; }
.heraldica-text p { color: var(--text-muted); margin-bottom: 16px; }
.heraldica-img-placeholder {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--gold);
  box-shadow: var(--shadow);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.article-body { padding: 24px; }
.article-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-pale);
  color: var(--navy);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.article-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.article-body p { font-size: 0.87rem; color: var(--text-muted); }

/* ══════════════════════════════════
   MEMBERSHIP PAGE
   ══════════════════════════════════ */
.membership-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.featured {
  background: var(--navy);
  border-color: var(--gold);
  border-width: 2px;
  color: var(--gold-pale);
}
.plan-card.featured h3 { color: var(--gold-light); }

.plan-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin: 16px 0;
}
.plan-price sup { font-size: 1.2rem; vertical-align: super; }
.plan-period { font-size: 0.85rem; color: var(--text-muted); }
.plan-features {
  list-style: none;
  text-align: left;
  margin: 24px 0 32px;
}
.plan-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.plan-features li::before { content: '✓  '; color: var(--gold); font-weight: bold; }

/* ══════════════════════════════════
   ADMIN / CONSOLE PAGE
   ══════════════════════════════════ */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 72px);
}

.admin-sidebar {
  background: var(--navy);
  border-right: 1px solid rgba(201,150,42,0.3);
  padding: 32px 0;
}

.admin-sidebar-title {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 24px 12px;
  border-bottom: 1px solid rgba(201,150,42,0.2);
  margin-bottom: 12px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: var(--gold-pale);
  font-size: 0.88rem;
  transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(201,150,42,0.12);
  color: var(--gold-light);
}
.admin-nav .nav-icon { font-size: 1rem; }

.admin-main {
  padding: 40px;
  background: var(--cream);
  overflow-y: auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.admin-header h1 { font-size: 1.6rem; }

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

.stat-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-box .stat-val {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  font-weight: 700;
}
.stat-box .stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.data-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: var(--shadow);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.table-toolbar h2 { font-size: 1rem; }

.data-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  background: var(--navy);
  color: var(--gold-pale);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream); }

/* Keep the rightmost column (usually "Actions"/View buttons) visible
   without scrolling — tables are wider than the viewport on smaller
   screens, and the last column used to be hidden off the right edge. */
.data-table th:last-child,
.data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
}
.data-table th:last-child { background: var(--navy); }
.data-table td:last-child {
  background: var(--white);
  box-shadow: -6px 0 8px -6px rgba(0,0,0,0.18);
}
.data-table tr:hover td:last-child { background: var(--cream); }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-active  { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-expired { background: #fee2e2; color: #991b1b; }

.action-btn {
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  margin-right: 4px;
  transition: all var(--transition);
}
.action-edit { background: var(--gold-pale); color: var(--navy); }
.action-edit:hover { background: var(--gold); }
.action-delete { background: #fee2e2; color: #991b1b; }
.action-delete:hover { background: #fca5a5; }

/* ── Image upload widget (admin) ── */
.img-upload-wrap {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: border-color var(--transition);
  cursor: pointer;
  background: var(--cream);
  position: relative;
}
.img-upload-wrap:hover,
.img-upload-wrap.drag-over { border-color: var(--gold); background: var(--gold-pale); }

.img-upload-wrap input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.img-preview {
  width: 100%; max-height: 160px; object-fit: contain;
  border-radius: var(--radius); margin-bottom: 8px; display: none;
}
.img-preview.visible { display: block; }
.img-upload-hint { font-size: 0.8rem; color: var(--text-muted); }
.img-upload-hint strong { color: var(--gold); }
.img-clear-btn {
  margin-top: 8px; padding: 4px 12px;
  background: #fee2e2; color: #991b1b;
  border: none; border-radius: var(--radius);
  font-size: 0.75rem; cursor: pointer;
  display: none;
}
.img-clear-btn.visible { display: inline-block; }

/* Thumbnail in data table */
.entry-thumb {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--navy);
  border: 1px solid var(--border);
}
.entry-thumb-placeholder {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); border-radius: 4px;
  font-size: 1.4rem; border: 1px solid var(--border);
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 900px) {
  .contact-inner,
  .heraldica-intro,
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .feature-divider { display: none; }
  .feature-item { padding: 16px 32px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy-mid);
    border-bottom: 2px solid var(--gold);
    padding: 16px 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 24px; }
  .dropdown { position: static; border-radius: 0; min-width: auto; }
  .hero { height: 520px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
  .admin-main { padding: 24px 16px; }
}
