/* ============================================================
   assets/css/style.css — Estrella Del Rey David Numero 11
   Royal Blue Modern Design
   ============================================================ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --star-color: #0035b9;
  --royal-950: #060e1c;
  --royal-900: #0a1628;
  --royal-800: #0d1f3c;
  --royal-700: #102850;
  --royal-600: #1a3a6b;
  --royal-500: #1e4080;
  --royal-400: #2952a3;
  --royal-300: #4a72c4;
  --royal-200: #7aa0d4;
  --royal-100: #b8cfe8;
  --royal-50: #e8f0f8;

  --gold: #c9a84c;
  --gold-light: #e8d5a0;
  --gold-dark: #8a6f30;
  --gold-bg: rgba(201, 168, 76, 0.12);

  --accent: #4fc3f7;
  --success: #4caf7d;
  --danger: #e57373;
  --warning: #f9a825;

  --text-primary: #f0f4f8;
  --text-secondary: #b8cfe8;
  --text-muted: #7aa0d4;

  --border: rgba(74, 114, 196, 0.3);
  --border-gold: rgba(201, 168, 76, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Segoe UI", sans-serif;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--royal-900);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Google Fonts loaded in HTML */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  line-height: 1.3;
}

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

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--royal-900);
}
::-webkit-scrollbar-thumb {
  background: var(--royal-500);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--royal-400);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
  }
  50% {
    text-shadow:
      0 0 40px rgba(201, 168, 76, 0.8),
      0 0 80px rgba(201, 168, 76, 0.3);
  }
}

.animate-fadeUp {
  animation: fadeUp 0.6s ease both;
}
.animate-fadeIn {
  animation: fadeIn 0.4s ease both;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

/* ── NAVIGATION ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    135deg,
    var(--royal-800) 0%,
    var(--royal-700) 100%
  );
  border-bottom: 2px solid var(--border-gold);
  backdrop-filter: blur(12px);
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  animation: slideDown 0.4s ease;
}
.navbar-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.navbar-brand .symbol .fa-star-of-david {
  font-size: 32px;
  color: var(--star-color);
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.5));
  animation: glow 3s ease-in-out infinite;
}
.navbar-brand .brand-text {
  line-height: 1.2;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-sub {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.active {
  color: var(--gold);
  border-color: var(--border-gold);
  background: var(--gold-bg);
}
.nav-link.gold {
  color: var(--gold);
  border-color: var(--border-gold);
}
.nav-link.gold:hover {
  background: var(--gold-bg);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 24px;
}
/* Desktop */
.navbar-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
/* ------------------------------------------------------------------------------------------------ */
/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 28px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  background: #111;
  position: absolute;
  top: 70px;
  right: 0;
  width: 100%;
  z-index: 999;
}

.mobile-menu.open {
  display: flex;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu .nav-link {
    width: 100%;
    text-align: left;
  }
}
/* ------------------------------------------------------------------------------------------------ */

/* ── HERO SECTION ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  /* background: linear-gradient(
    160deg,
    var(--royal-800) 0%,
    var(--royal-700) 55%,
    var(--royal-600) 100%
  ); */
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(74, 114, 196, 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 40% at 50% 100%,
      rgba(201, 168, 76, 0.08) 0%,
      transparent 60%
    ); */
}
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* opacity: 0.03; */
  opacity: 0.05;
  background-image: repeating-linear-gradient(
    45deg,
    var(--gold) 0px,
    var(--gold) 1px,
    transparent 1px,
    transparent 40px
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 5rem;
}
.hero-symbol img {
  font-size: 80px;
  color: var(--gold);
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
  animation: glow 3s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2rem;
}
.hero-desc {
  max-width: 660px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 22px;
  animation: pulse 2s ease-in-out infinite;
  z-index: 4;
}

/* ── SECTION WRAPPER ── */
.section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 4;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto 2.5rem;
}

/* ── CARDS ── */
.card {
  background: linear-gradient(
    145deg,
    rgba(26, 58, 107, 0.5),
    rgba(13, 31, 60, 0.7)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}
.card-gold {
  border-left: 3px solid var(--gold);
}

.stat-card {
  background: rgba(26, 58, 107, 0.35);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 10px;
}
.stat-card .data-head {
  display: block;
  text-align: left;
  margin: 10px 0;
}
.stat-card.data {
  display: flex;
  flex-direction: column;
}

.reports-grid {
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem; */
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-direction: row;
  justify-content: space-around;
}
.stat-card .report {
  background: rgba(26, 58, 107, 0.35);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
  margin-bottom: 2rem;
}
.stat-card .report .data-head {
  display: block;
  text-align: left;
  margin: 10px 0;
}
.stat-card .report.data {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-serif);
}
@media (max-width: 900px) {
  .stat-value {
    font-size: 1.2rem;
  }
}
/* ── PILLARS (3-col grid) ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.pillar-icon {
  font-size: 44px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.pillar h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}
.pillar p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── HISTORY TIMELINE ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.3rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.timeline-year {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── NEWS CARDS ── */
.news-date {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.news-title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.news-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.btn-primary {
  background: linear-gradient(135deg, var(--royal-400), var(--royal-300));
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--royal-300), var(--accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--royal-900);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
}
.btn-gold .fa-star-of-david {
  color: var(--star-color);
}
.btn-gold .fa-star-of-david:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}
.btn-danger {
  background: #9b2335;
  color: #fff;
}
.btn-danger:hover {
  background: #c62828;
}
.btn-success {
  background: #1a7a4a;
  color: #fff;
}
.btn-success:hover {
  background: #2e7d52;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── FORMS ── */
.form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 600;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--royal-300);
  box-shadow: 0 0 0 3px rgba(74, 114, 196, 0.2);
}
.form-control::placeholder {
  color: var(--text-muted);
}
select.form-control option {
  background: var(--royal-800);
  color: var(--text-primary);
}
textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-full {
  grid-column: 1 / -1;
}
.form-error {
  background: rgba(155, 35, 53, 0.2);
  border: 1px solid rgba(155, 35, 53, 0.5);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 1rem;
}
.form-success {
  background: rgba(26, 122, 74, 0.2);
  border: 1px solid rgba(26, 122, 74, 0.5);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--success);
  margin-bottom: 1rem;
}

/* ── TABLES ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead tr {
  background: rgba(26, 58, 107, 0.6);
}
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(26, 58, 107, 0.4);
  color: var(--text-primary);
  vertical-align: middle;
}
.data-table tr:hover td {
  background: rgba(74, 114, 196, 0.08);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.badge-success {
  background: rgba(76, 175, 125, 0.2);
  color: var(--success);
}
.badge-danger {
  background: rgba(229, 115, 115, 0.2);
  color: var(--danger);
}
.badge-gold {
  background: var(--gold-bg);
  color: var(--gold);
}
.badge-info {
  background: rgba(79, 195, 247, 0.2);
  color: var(--accent);
}
.badge-income {
  background: rgba(76, 175, 125, 0.15);
  color: var(--success);
}
.badge-expense {
  background: rgba(229, 115, 115, 0.15);
  color: var(--danger);
}

/* ── TABS ── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
  padding: 5px;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.tab-btn {
  padding: 7px 18px;
  background: none;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  transition:
    background 0.15s ease,
    color 0.15s ease;
  line-height: 1.4;
}
.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.tab-btn.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.3);
}
.tab-content {
  display: none;
  animation: fadeUp 0.3s ease;
}
.tab-content.active {
  display: block;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: linear-gradient(145deg, var(--royal-700), var(--royal-800));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2rem;
  min-width: 360px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeUp 0.3s ease;
}
.modal-title {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed;
  top: 85px;
  right: 1.5rem;
  z-index: 3000;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  max-width: 360px;
  animation: slideDown 0.3s ease;
  box-shadow: var(--shadow-md);
}
.toast-success {
  background: #1a7a4a;
  color: #fff;
}
.toast-error {
  background: #9b2335;
  color: #fff;
}
.toast-info {
  background: var(--royal-400);
  color: #fff;
}

/* ── DASHBOARD LAYOUTS ── */
.page-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title {
  font-size: 1.75rem;
  color: var(--gold);
}
.page-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.stats-grid {
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem; */
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-direction: column;
  justify-content: space-around;
}

.saving {
  display: flex;
  gap: 1rem;
  flex-direction: row;
  justify-content: flex-start;
  background: rgba(26, 58, 107, 0.35);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.saving .stat-card {
  background: rgba(26, 58, 107, 0.35);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
}

.reports-stats-grid {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-direction: row;
  justify-content: space-around;
  background: rgba(26, 58, 107, 0.35);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 10px;
}
.reports-stats-grid .stat-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-direction: column;
  justify-content: space-around;
  background: rgba(26, 58, 107, 0.35);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── DUES CALENDAR (member view) ── */
.dues-calendar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.dues-month {
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.dues-month.paid {
  background: rgba(76, 175, 125, 0.2);
  border-color: rgba(76, 175, 125, 0.4);
  color: var(--success);
}
.dues-month.owed {
  background: rgba(229, 115, 115, 0.15);
  border-color: rgba(229, 115, 115, 0.3);
  color: var(--danger);
}
.dues-month.future {
  background: rgba(26, 58, 107, 0.2);
  color: var(--text-muted);
}
.dues-month-name {
  display: block;
  margin-bottom: 3px;
}
.dues-month-amt {
  font-size: 11px;
}

/* ── FINANCIAL CHART BARS ── */
.bar-chart-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin: 1rem 0;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bar-income,
.bar-expense {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-income {
  background: linear-gradient(180deg, var(--success), rgba(76, 175, 125, 0.4));
}
.bar-expense {
  background: linear-gradient(180deg, var(--danger), rgba(229, 115, 115, 0.4));
}
.bar-label {
  font-size: 10px;
  color: var(--text-muted);
}

/* ── MEMBER PROFILE AVATAR ── */
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-400), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--royal-900);
  flex-shrink: 0;
}

/* ── ADMIN SIDEBAR ── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}
.admin-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--royal-800), var(--royal-900));
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}
.sidebar-section {
  margin-bottom: 1.5rem;
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 1.25rem;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font-sans);
  text-align: left;
}
.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-link.active {
  color: var(--gold);
  background: var(--gold-bg);
  border-right: 2px solid var(--gold);
}
.sidebar-link span {
  color: var(--gold);
  font-size: 16px;
}
.sidebar-icon {
  font-size: 16px;
}
.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
}

/* ── FOOTER ── */
footer {
  background: linear-gradient(180deg, var(--royal-800), var(--royal-950));
  border-top: 1px solid var(--border-gold);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  text-align: center;
  z-index: 4;
}
.footer-symbol .fa-star-of-david {
  font-size: 36px;
  color: var(--star-color);
  display: block;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  animation: glow 3s ease-in-out infinite;
}
.footer-name {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 1.5rem;
}

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(74, 114, 196, 0.15),
      transparent 70%
    ),
    var(--royal-900);
}
.login-box {
  background: linear-gradient(145deg, var(--royal-700), var(--royal-800));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.5s ease;
}
.login-symbol .fa-star-of-david {
  font-size: 50px;
  color: var(--star-color);
  display: block;
  text-align: center;
  margin-bottom: 1rem;
  animation: glow 3s ease-in-out infinite;
}
.login-title {
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.25rem;
}
.login-sub {
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
  margin-bottom: 2rem;
}

/* ── PRINT / REPORT STYLES ── */
@media print {
  .navbar,
  .admin-sidebar,
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .admin-main {
    padding: 0;
  }
  .card {
    border: 1px solid #ccc;
    background: #fff;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .admin-sidebar {
    display: none;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-main {
    padding: 1rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .navbar-links .nav-link {
    display: none;
  }
  .navbar-links .nav-link.mobile-show {
    display: inline-flex;
  }
  .hamburger {
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dues-calendar {
    grid-template-columns: repeat(3, 1fr);
  }
  .tabs {
    gap: 4px;
    padding: 4px;
  }
  .tab-btn {
    padding: 6px 14px;
    font-size: 12px;
    flex: 1 1 auto;
    text-align: center;
  }
}
.tab-panel {
  display: none;
  animation: fadeUp 0.3s ease;
}
.tab-panel.active {
  display: block;
}
/* inline-edit inputs */
.edit-input {
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--royal-400);
  border-radius: 5px;
  padding: 4px 8px;
  color: var(--text-primary);
  font-size: 12px;
}
/* month grid */
.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.month-cell {
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.month-cell.paid {
  background: rgba(76, 175, 125, 0.18);
  border-color: rgba(76, 175, 125, 0.4);
  color: var(--success);
}
.month-cell.unpaid {
  background: rgba(229, 115, 115, 0.13);
  border-color: rgba(229, 115, 115, 0.3);
  color: var(--danger);
}
.month-cell.future {
  background: rgba(26, 58, 107, 0.2);
  color: var(--text-muted);
}
/* bar chart */
.bar-wrap {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100px;
}

@media (max-width: 900px) {
  .bar-wrap {
    overflow: scroll;
  }
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.bar-in {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  background: linear-gradient(180deg, var(--success), rgba(76, 175, 125, 0.3));
}
.bar-ex {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  background: linear-gradient(180deg, var(--danger), rgba(229, 115, 115, 0.3));
}
.bar-lbl {
  font-size: 9px;
  color: var(--text-muted);
}
/* ══════════════════════════════════════════════════════════
   ADMIN LAYOUT — sidebar + main
   ══════════════════════════════════════════════════════════ */
.admin-wrap {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* Desktop sidebar — sticky column */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    var(--royal-800, #1a3a6b),
    var(--royal-900, #0d2040)
  );
  border-right: 1px solid rgba(74, 114, 196, 0.25);
  padding: 1.5rem 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  /* slide transition used on mobile */
  transition: transform 0.25s ease;
}

/* Toggle button — hidden on desktop */
.sidebar-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary, #e8f0f8);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s;
  line-height: 1;
  flex-shrink: 0;
}
.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* Backdrop — hidden until sidebar opens */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 199;
  cursor: pointer;
}
.sidebar-backdrop.open {
  display: block;
}

/* ── Mobile overrides ─────────────────────────────────── */
@media (max-width: 900px) {
  /* Show toggle button in navbar */
  .sidebar-toggle-btn {
    display: inline-flex;
  }

  /* Sidebar becomes a fixed off-canvas drawer */
  .sidebar {
    position: fixed !important;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    width: 240px;
    z-index: 200;
    transform: translateX(-100%);
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.5);
  }
  .sidebar.open {
    transform: translateX(0);
  }

  /* Main takes full width */
  .main {
    max-width: 100vw;
    padding: 1rem;
  }
}
.sidebar-lbl {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted, #6b84b0);
  padding: 0 1.2rem;
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 1.2rem;
  font-size: 13px;
  color: var(--text-secondary, #8aa8d8);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
  text-decoration: none;
  border-right: 2px solid transparent;
}
.sidebar-link:hover {
  color: #e8f0f8;
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-link.active {
  color: var(--gold, #c9a84c);
  background: rgba(201, 168, 76, 0.08);
  border-right-color: var(--gold, #c9a84c);
}
.main {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
  /* max-width: calc(100vw - 220px); */
  max-width: 100vw;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.month-cell {
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(74, 114, 196, 0.25);
  cursor: pointer;
  transition: 0.15s;
  user-select: none;
}
.month-cell:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
}
.month-cell.paid {
  background: rgba(76, 175, 125, 0.18);
  border-color: rgba(76, 175, 125, 0.4);
  color: #4caf7d;
}
.month-cell.unpaid {
  background: rgba(229, 115, 115, 0.13);
  border-color: rgba(229, 115, 115, 0.3);
  color: #e57373;
}
.month-cell.future {
  background: rgba(26, 58, 107, 0.2);
  color: #6b84b0;
  cursor: default;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.bar-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.bar-in {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  background: linear-gradient(180deg, #4caf7d, rgba(76, 175, 125, 0.3));
}
.bar-ex {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  background: linear-gradient(180deg, #e57373, rgba(229, 115, 115, 0.3));
}
.bar-lbl {
  font-size: 9px;
  color: var(--text-muted, #6b84b0);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.form-full {
  grid-column: 1/-1;
}
.badge-income {
  background: rgba(76, 175, 125, 0.2);
  color: #4caf7d;
}
.badge-expense {
  background: rgba(229, 115, 115, 0.15);
  color: #e57373;
}
.btn-danger {
  background: rgba(229, 115, 115, 0.15);
  color: #e57373;
  border: 1px solid rgba(229, 115, 115, 0.3);
}
.btn-danger:hover {
  background: rgba(229, 115, 115, 0.3);
}
.btn-success {
  background: rgba(76, 175, 125, 0.15);
  color: #4caf7d;
  border: 1px solid rgba(76, 175, 125, 0.3);
}
.btn-success:hover {
  background: rgba(76, 175, 125, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   REPORT / PDF STYLES  (reports.php print-ready output)
   ═══════════════════════════════════════════════════════════ */

/* ── Print bar at top of PDF view ── */
.rpt-print-bar {
  padding: 12px 24px;
  background: #1a3a6b;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
}
.rpt-print-btn {
  padding: 6px 18px;
  background: #c9a84c;
  color: #0d1f3c;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.rpt-print-btn:hover {
  background: #b8943e;
}

/* ── Page wrapper ── */
.rpt-page {
  padding: 28px 36px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  color: #0d1f3c;
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Header / title block ── */
.rpt-header {
  text-align: center;
  border-bottom: 3px solid #c9a84c;
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.rpt-symbol {
  font-size: 38px;
  color: #c9a84c;
  display: block;
  margin-bottom: 6px;
}
.rpt-header h1 {
  font-size: 22px;
  color: #1a3a6b;
  margin: 0;
}
.rpt-header h2 {
  font-size: 15px;
  color: #2952a3;
  margin: 4px 0 0;
  font-weight: normal;
}
.rpt-meta {
  font-size: 11px;
  color: #666;
  margin-top: 8px;
}

/* ── Summary boxes row ── */
.rpt-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.rpt-summary-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.rpt-summary-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.rpt-box {
  border: 1px solid #b8cfe8;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  background: #f8fbff;
}
.rpt-box-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2952a3;
  margin-bottom: 6px;
  font-family: Arial, sans-serif;
}
.rpt-box-val {
  font-size: 20px;
  font-weight: bold;
  color: #1a3a6b;
}

/* ── Section headings ── */
.rpt-section-title {
  color: #1a3a6b;
  border-bottom: 2px solid #c9a84c;
  padding-bottom: 6px;
  margin: 28px 0 14px;
  font-size: 14px;
}
.rpt-section-subtitle {
  color: #2952a3;
  font-size: 12px;
  margin: -10px 0 12px;
  font-weight: normal;
}

/* ── Tables ── */
.rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 20px;
}
.rpt-table th {
  background: #1a3a6b;
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
}
.rpt-table th.center,
.rpt-table td.center {
  text-align: center;
}
.rpt-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #e8f0f8;
  color: #0d1f3c;
}
.rpt-table tr:nth-child(even) td {
  background: #f5f8fc;
}
.rpt-table .total-row td {
  font-weight: bold;
  background: #deeaf8 !important;
  border-top: 2px solid #1a3a6b;
}
.rpt-table .subtotal-row td {
  font-weight: bold;
  background: #eef4fb !important;
  border-top: 1px dashed #2952a3;
  font-size: 11px;
}
.rpt-table .section-header-row td {
  background: #2952a3 !important;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  padding: 6px 10px;
}

/* ── Value colour helpers ── */
.rpt-income {
  color: #1a7a4a;
  font-weight: bold;
}
.rpt-expense {
  color: #9b2335;
  font-weight: bold;
}
.rpt-balance {
  color: #1a3a6b;
  font-weight: bold;
}
.rpt-dues-owed {
  color: #c05000;
  font-weight: bold;
}
.rpt-savings {
  color: #2952a3;
  font-weight: bold;
}
.rpt-paid {
  color: #1a7a4a;
  font-weight: bold;
}
.rpt-unpaid {
  color: #9b2335;
  font-weight: bold;
}
.rpt-muted {
  color: #999;
}
.rpt-admin-badge {
  display: inline-block;
  background: #c9a84c22;
  color: #8a6f30;
  border: 1px solid #c9a84c55;
  border-radius: 3px;
  font-size: 9px;
  padding: 1px 5px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: Arial, sans-serif;
}

/* ── Dues calendar grid (in dues report) ── */
.rpt-dues-month-cell {
  display: inline-block;
  width: 28px;
  text-align: center;
  font-size: 10px;
}

/* ── Footer ── */
.rpt-footer {
  text-align: center;
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid #b8cfe8;
  font-size: 11px;
  color: #999;
  font-family: Arial, sans-serif;
}

/* ── Print overrides ── */
@media print {
  .rpt-print-bar {
    display: none;
  }
  .rpt-page {
    padding: 0;
  }
  .rpt-table th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rpt-table .total-row td,
  .rpt-table .section-header-row td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  @page {
    margin: 1.2cm;
    size: A4 landscape;
  }
}

/* ── Responsive (screen preview) ── */
@media (max-width: 800px) {
  .rpt-summary-grid,
  .rpt-summary-grid.cols-4,
  .rpt-summary-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .rpt-page {
    padding: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES  (replaces common inline styles)
   ═══════════════════════════════════════════════════════════ */

/* Colour helpers */
.text-gold {
  color: var(--gold);
}
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}
.text-warning {
  color: var(--warning, #f59e0b);
}
.text-muted {
  color: var(--text-muted);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-savings {
  color: #7aa0d4;
}
.text-white {
  color: #fff;
}
.text-bold {
  font-weight: bold;
}

/* Dynamic colour utilities (used with PHP conditionals) */
.text-balance-pos {
  color: var(--success);
  font-weight: bold;
}
.text-balance-neg {
  color: var(--danger);
  font-weight: bold;
}

/* Font sizes */
.text-xs {
  font-size: 10px;
}
.text-sm {
  font-size: 12px;
}
.text-13 {
  font-size: 13px;
}
.text-11 {
  font-size: 11px;
}
.text-9 {
  font-size: 9px;
}

/* Spacing helpers */
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mx-0 {
  margin: 0;
}
.pre-wrap {
  white-space: pre-wrap;
}

/* Flex layout helpers */
.d-flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.align-center {
  align-items: center;
}
.align-start {
  align-items: flex-start;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
.gap-3 {
  gap: 1.5rem;
}
.gap-sm {
  gap: 6px;
}
.gap-md {
  gap: 10px;
}
.shrink-0 {
  flex-shrink: 0;
}

/* Text alignment */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}

/* Checkbox accent */
.accent-gold {
  accent-color: var(--gold);
}

/* Display */
.hidden {
  display: none;
}

/* ── Card header row (title + action button) ── */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.card-header h3 {
  color: var(--gold);
  margin: 0;
}

/* ── Card sub-header (title + secondary info) ── */
.card-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.card-subheader h3 {
  color: var(--gold);
  margin: 0;
}

/* ── Section empty-state message ── */
.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  font-size: 13px;
}

/* ── Profile info row (label + value) ── */
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 114, 196, 0.15);
}
.profile-row .profile-label {
  color: var(--text-muted);
  font-size: 13px;
}
.profile-row .profile-value {
  color: #fff;
  font-size: 13px;
}

/* ── Dues calendar legend ── */
.dues-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  font-size: 12px;
  flex-wrap: wrap;
}

/* ── Year selector form (inline) ── */
.year-select-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.year-select-form select {
  width: 100px;
  padding: 6px 10px;
}

/* ── Dues rate note ── */
.dues-rate-note {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 1.25rem;
}

/* ── Filter form row ── */
.filter-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filter-summary {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.filter-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.filter-stat-value {
  font-weight: bold;
  font-size: 18px;
}

/* ── Admin sidebar session block ── */
.sidebar-session {
  padding: 0 1.2rem 1rem;
  border-bottom: 1px solid rgba(74, 114, 196, 0.2);
  margin-bottom: 0.5rem;
}
.sidebar-session-label {
  font-size: 11px;
  color: var(--text-muted);
}
.sidebar-session-name {
  font-size: 13px;
  color: var(--gold);
  margin-top: 2px;
}

/* ── Admin sidebar quick-report button wrapper ── */
.sidebar-quick-report {
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(74, 114, 196, 0.2);
}

/* ── Stat value colour variants ── */
.stat-value.positive {
  color: var(--success);
}
.stat-value.negative {
  color: var(--danger);
}
.stat-value.neutral {
  color: #7aa0d4;
}
.stat-value.warning {
  color: var(--warning, #f59e0b);
}
.stat-value.sm {
  font-size: 1.3rem;
}

/* ── Inline edit input (transaction row) ── */
.edit-input {
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--royal-400, #4a72c4);
  border-radius: 5px;
  padding: 4px 8px;
  color: var(--text-primary, #e8f0f8);
  font-size: 12px;
}
.edit-input.w-sm {
  width: 90px;
}
.edit-input.w-md {
  width: 140px;
}

/* ── Form row (responsive grid of inputs) ── */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.form-full {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 0.75rem;
}

/* ── Dues rate input row ── */
.dues-rate-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* ── Per-member dues card header ── */
.dues-member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.dues-member-stats {
  display: flex;
  gap: 1rem;
  font-size: 12px;
}

/* ── Admin badge (in dues grids) ── */
.badge-admin {
  display: inline-block;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 3px;
  font-size: 10px;
  padding: 1px 6px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Admin user display (navbar) ── */
.admin-user {
  color: var(--gold);
  font-size: 13px;
  margin-right: 8px;
}
.admin-user.mobile-user {
  display: block;
  padding: 0.5rem 1rem;
}

/* ── Radio label (donor type toggle) ── */
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}

/* ── Select with set widths ── */
.select-sm {
  width: 90px;
}
.select-md {
  width: 130px;
}
.select-lg {
  width: 140px;
}

/* ── Page wrapper (member portal) ── */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* ── Section with dark tint (public homepage) ── */
.section-dark {
  background: rgba(10, 22, 40, 0.5);
}
.home-container {
  background: url(/assets/img/hero-bg.jpg) center / cover no-repeat;
  background-attachment: fixed !important;
  background-position: center center !important;
}
#about {
}
#history {
}
#news {
}
#contact {
}
/* ── Contact card inner ── */
.contact-card {
  text-align: center;
  padding: 2.5rem;
}
.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.9;
}
.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── History stats alignment ── */
.stats-align-top {
  align-content: start;
}

/* ── Table action buttons ── */
.btn-danger {
  background: rgba(229, 115, 115, 0.15);
  color: #e57373;
  border: 1px solid rgba(229, 115, 115, 0.3);
}
.btn-danger:hover {
  background: rgba(229, 115, 115, 0.3);
}
.btn-success-outline {
  background: rgba(76, 175, 125, 0.15);
  color: #4caf7d;
  border: 1px solid rgba(76, 175, 125, 0.3);
}
.btn-success-outline:hover {
  background: rgba(76, 175, 125, 0.3);
}

/* ── Month grid (admin dues section header) ── */
.dues-section-header {
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

/* ── Notification bars (form-success, form-error) ── */
.form-success {
  margin-top: 1.5rem;
}
.form-error {
  margin-top: 1.5rem;
}

/* ── Additional classes added during inline-style removal ── */

/* Bar chart inner wrapper (admin monthly chart) */
.bar-inner-wrap {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 95px;
}

/* Dues month checkbox label */
.dues-month-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(26, 58, 107, 0.3);
}

/* Dues months 6-column grid */
.dues-months-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
}

/* Dues month selector block (hidden by default, shown when category=Dues) */
.dues-month-selector {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(201, 168, 76, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

/* Chart legend */
.chart-legend {
  font-size: 12px;
  display: flex;
  gap: 12px;
}

/* News item inner layout */
.news-item-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

/* Reports card grid */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

/* Section inner narrow (contact page) */
.section-inner-sm {
  max-width: 700px;
}

/* Badge size variant */
.badge-lg {
  font-size: 13px;
  padding: 6px 14px;
}

/* Margin-left helpers */
.ml-1 {
  margin-left: 4px;
}
.ml-2 {
  margin-left: 8px;
}

/* text-secondary for body text */
.text-secondary {
  color: var(--text-secondary);
}

/* ── Reports export cards grid ── */
.reports-export-grid {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Each export card — horizontal row matching dashboard card style */
.rpt-export-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
}

.rpt-export-icon {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.rpt-export-body {
  flex: 1;
  min-width: 0;
}

.rpt-export-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 3px;
}

.rpt-export-desc {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}

.rpt-export-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .rpt-export-card {
    flex-wrap: wrap;
  }
  .rpt-export-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
/* Library-specific styles */
.lib-section-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.lib-section-title--open {
  color: var(--gold);
}
.lib-section-title--locked {
  color: var(--text-muted);
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.lib-card {
  background: rgba(13, 31, 60, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.lib-card--open:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.lib-card--locked {
  opacity: 0.6;
}

.lib-cover {
  position: relative;
  height: 180px;
  background: rgba(7, 17, 31, 0.6);
  overflow: hidden;
  flex-shrink: 0;
}
.lib-cover--locked {
  filter: grayscale(1);
}
.lib-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lib-cover-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.35;
}
.lib-cover-placeholder--locked {
  color: var(--text-muted);
}

.lib-degree-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lib-degree-badge--open {
  background: var(--gold);
  color: var(--royal-900);
}
.lib-degree-badge--locked {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.lib-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.lib-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
.lib-title--locked {
  color: var(--text-muted);
}

.lib-author {
  font-size: 11px;
  color: var(--gold);
  opacity: 0.8;
}
.lib-author--locked {
  color: var(--text-muted);
}

.lib-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lib-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.lib-meta i {
  margin-right: 3px;
}

.lib-actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
}

.lib-locked-msg {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  .lib-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .lib-cover {
    height: 140px;
  }
}
/* Blocked-by-admin state */
.lib-section-title--blocked {
  color: var(--warning, #f59e0b);
}
.lib-card--blocked {
  border-color: rgba(245, 158, 11, 0.25);
}
.lib-card--blocked:hover {
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}
.lib-cover--blocked {
  filter: grayscale(0.6);
}
.lib-cover-placeholder--blocked {
  color: var(--warning, #f59e0b);
  opacity: 0.5;
}
.lib-degree-badge--blocked {
  background: rgba(245, 158, 11, 0.18);
  color: var(--warning, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.lib-title--blocked {
  color: var(--text-secondary, #9bbcd6);
}
.lib-author--blocked {
  color: var(--text-muted, #56789c);
}
.lib-blocked-fee-msg {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lib-blocked-fee-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--warning, #f59e0b);
}
.lib-fee-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 99px;
  padding: 1px 10px;
  font-size: 12px;
}
.lib-blocked-reason {
  font-size: 11px;
  color: var(--text-muted, #56789c);
  line-height: 1.5;
  margin: 0;
}
.lib-blocked-contact {
  font-size: 12px;
  color: var(--text-secondary, #9bbcd6);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   ████  MODERN MASONIC REDESIGN  ████
   Applies across the public site, the member portal and the
   admin panel. Purely visual — no markup or behavior changes.
   Built on the lodge's real assets (hero-bg.jpg + logo seal).
   Context hooks: .home-container (public) · .page-content
   (member) · .admin-wrap/.main (admin).
   ============================================================ */

:root {
  --glow-gold: rgba(201, 168, 76, 0.45);
  --hairline: rgba(201, 168, 76, 0.22);
}

/* ── 1. GLOBAL MASONIC BACKDROP ─────────────────────────── */
body.main-layout {
  background:
    radial-gradient(
      ellipse 120% 90% at 50% -10%,
      rgba(41, 82, 163, 0.2),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      var(--royal-950) 0%,
      var(--royal-900) 50%,
      var(--royal-950) 100%
    );
}
body.main-layout::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 14, 28, 0.9), rgba(6, 14, 28, 0.94)),
    url(/assets/img/hero-bg.jpg) center / cover no-repeat;
  filter: saturate(0.5) hue-rotate(-6deg) brightness(0.85);
  opacity: 0.5;
}
body.main-layout::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 80% at 50% 45%,
    transparent 55%,
    rgba(3, 8, 18, 0.55) 100%
  );
}

/* ── 2. NAVBAR ─────────────────────────────────────────── */
.navbar {
  background: linear-gradient(
    135deg,
    rgba(13, 31, 60, 0.92),
    rgba(16, 40, 80, 0.86)
  ) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 6px 24px rgba(3, 8, 18, 0.4);
}

/* ── 3. CARDS ──────────────────────────────────────────── */
.card {
  background: linear-gradient(
    145deg,
    rgba(26, 58, 107, 0.45),
    rgba(10, 22, 40, 0.72)
  ) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(3, 8, 18, 0.4);
  position: relative;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
}
.card:hover {
  border-color: var(--border-gold);
  box-shadow:
    0 16px 50px rgba(3, 8, 18, 0.5),
    0 0 0 1px var(--hairline),
    0 0 30px rgba(201, 168, 76, 0.12);
}

/* ── 4. MODALS ─────────────────────────────────────────── */
.modal {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    0 30px 80px rgba(3, 8, 18, 0.7),
    0 0 0 1px var(--hairline);
}
.modal-overlay {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: rgba(3, 8, 18, 0.78);
}
.login-symbol {
  display: block;
  text-align: center;
  font-size: 38px;
  color: var(--gold);
  text-shadow: 0 0 22px var(--glow-gold);
  margin-bottom: 0.5rem;
}

/* ── 5. DIVIDERS & SECTION TITLES ──────────────────────── */
.divider {
  position: relative;
  height: 2px;
  overflow: visible;
}
.divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 12px var(--glow-gold);
}
.section-title {
  text-shadow: 0 2px 24px rgba(6, 14, 28, 0.6);
}

/* ── 6. FOOTER MOSAIC NOD ──────────────────────────────── */
footer {
  position: relative;
  overflow: hidden;
  z-index: 4;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(
      45deg,
      var(--gold) 25%,
      transparent 25%,
      transparent 75%,
      var(--gold) 75%
    ),
    linear-gradient(
      45deg,
      var(--gold) 25%,
      transparent 25%,
      transparent 75%,
      var(--gold) 75%
    );
  background-size: 36px 36px;
  background-position:
    0 0,
    18px 18px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
  mask-image: linear-gradient(180deg, transparent, #000 60%);
}
footer > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   7. PUBLIC HOMEPAGE
   ============================================================ */
.home-container {
  /* background: transparent !important;
  position: relative;
  z-index: 0; */
  background: url(/assets/img/hero-bg.jpg) center / cover no-repeat;
  background-attachment: fixed !important;
  background-position: center center !important;
}
.home-container::before {
  content: "";
  position: fixed;
  height: 100vh;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 38%,
      rgba(41, 82, 163, 0.45),
      transparent 68%
    ),
    linear-gradient(
      180deg,
      rgba(6, 14, 28, 0.55) 0%,
      rgb(10 22 40 / 38%) 52%,
      #0a1628b5 100%
    ) !important;
  filter: saturate(0.5) hue-rotate(-6deg) brightness(0.85);
}
.section-dark {
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.42),
    rgba(6, 14, 28, 0.58)
  ) !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  position: relative;
}
.hero.section-dark {
  background: linear-gradient(
    180deg,
    var(--royal-950),
    var(--royal-900)
  ) !important;
  isolation: isolate;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero::before {
  /* content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url(/assets/img/hero-bg.jpg) center 28% / cover no-repeat;
  filter: saturate(0.55) hue-rotate(-6deg) brightness(0.78) contrast(1.05); */
}
.hero .hero-bg-overlay {
  /* z-index: 2;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 38%,
      rgba(41, 82, 163, 0.45),
      transparent 68%
    ),
    linear-gradient(
      180deg,
      rgba(6, 14, 28, 0.55) 0%,
      rgba(10, 22, 40, 0.72) 52%,
      var(--royal-900) 100%
    ) !important; */
}
.hero .hero-pattern {
  z-index: 3;
  opacity: 0.06;
}
.hero .hero-content {
  position: relative;
  z-index: 4;
}
.hero h1 {
  text-shadow: 0 2px 30px rgba(6, 14, 28, 0.8);
}
.hero-desc {
  color: var(--royal-100);
}
.hero-symbol {
  position: relative;
  display: inline-block;
}
.hero-symbol::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    var(--glow-gold) 0%,
    rgba(201, 168, 76, 0.1) 38%,
    transparent 70%
  );
  z-index: -1;
  animation: heroGlow 5s ease-in-out infinite;
}
.hero-symbol img {
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroGlow {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}
@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-symbol::before,
  .hero-symbol img {
    animation: none;
  }
}
.pillar {
  text-align: center;
}
.pillar-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 36px;
  line-height: 1;
  color: var(--gold);
  background: radial-gradient(
    circle at 50% 35%,
    rgba(201, 168, 76, 0.16),
    rgba(10, 22, 40, 0.5)
  );
  border: 1px solid var(--border-gold);
  box-shadow:
    inset 0 0 22px rgba(201, 168, 76, 0.12),
    0 6px 18px rgba(3, 8, 18, 0.4);
  transition: var(--transition);
}
.pillar:hover .pillar-icon {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 26px rgba(201, 168, 76, 0.2),
    0 0 24px rgba(201, 168, 76, 0.25);
}
.home-container .stats-grid .stat-card {
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
  position: relative;
  overflow: hidden;
  background: rgba(10, 22, 40, 0.5) !important;
}
.home-container .stats-grid .stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.home-container .stat-value {
  letter-spacing: 1px;
}

/* ============================================================
   8. SHARED DASHBOARD CHROME (member + admin)
   ============================================================ */
.page-title {
  position: relative;
  text-shadow: 0 2px 20px rgba(6, 14, 28, 0.5);
}
.page-header {
  position: relative;
}
.card-header h3,
.card-subheader h3 {
  text-shadow: 0 1px 12px rgba(6, 14, 28, 0.4);
}
.data-table thead tr {
  background: linear-gradient(
    180deg,
    rgba(26, 58, 107, 0.7),
    rgba(16, 40, 80, 0.55)
  ) !important;
}
.data-table thead th {
  border-bottom: 1px solid var(--border-gold);
}
.data-table tbody tr:nth-child(even) td {
  background: rgba(10, 22, 40, 0.25);
}
.data-table tbody tr {
  transition: background 0.15s ease;
}
.data-table tr:hover td {
  background: rgba(201, 168, 76, 0.07) !important;
}
.tabs {
  background: rgba(6, 14, 28, 0.55) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tab-btn.active {
  box-shadow:
    inset 0 0 0 1px rgba(201, 168, 76, 0.35),
    0 0 18px rgba(201, 168, 76, 0.12) !important;
}
.badge {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ============================================================
   9. MEMBER PORTAL
   ============================================================ */
.page-content {
  position: relative;
  z-index: 0;
}
.avatar {
  box-shadow:
    0 0 0 3px rgba(201, 168, 76, 0.25),
    0 6px 20px rgba(3, 8, 18, 0.45);
  border: 1px solid var(--gold-light);
}
.reports-stats-grid {
  background: linear-gradient(
    145deg,
    rgba(26, 58, 107, 0.4),
    rgba(10, 22, 40, 0.7)
  ) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(3, 8, 18, 0.4);
}
.reports-stats-grid .stat-card {
  position: relative;
  overflow: hidden;
  flex: 1 1 150px;
  background: rgba(10, 22, 40, 0.45) !important;
  border-radius: var(--radius-md);
}
.reports-stats-grid .stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.dues-calendar .dues-month {
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.dues-calendar .dues-month.paid {
  box-shadow: inset 0 0 14px rgba(76, 175, 125, 0.12);
}
.dues-calendar .dues-month.owed {
  box-shadow: inset 0 0 14px rgba(229, 115, 115, 0.12);
}
.dues-calendar .dues-month:hover {
  transform: translateY(-2px);
}

/* ============================================================
   10. ADMIN PANEL
   ============================================================ */
.sidebar {
  background: linear-gradient(
    180deg,
    rgba(13, 31, 60, 0.95),
    rgba(6, 14, 28, 0.97)
  ) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--hairline) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}
.sidebar-link {
  border-radius: 0 999px 999px 0;
  margin-right: 10px;
}
.sidebar-link.active {
  background: linear-gradient(
    90deg,
    rgba(201, 168, 76, 0.18),
    rgba(201, 168, 76, 0.04)
  ) !important;
  box-shadow:
    inset 2px 0 0 var(--gold),
    0 0 18px rgba(201, 168, 76, 0.1);
}
.sidebar-link:hover {
  transform: translateX(2px);
}
.sidebar-session-name {
  text-shadow: 0 0 14px var(--glow-gold);
}
.main .stats-grid > .stat-card {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 0.9rem !important;
  padding: 1.5rem !important;
  background: linear-gradient(
    145deg,
    rgba(26, 58, 107, 0.4),
    rgba(10, 22, 40, 0.7)
  ) !important;
  border-radius: var(--radius-lg) !important;
  position: relative;
  overflow: hidden;
}
.main .stats-grid > .stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.main .stats-grid > .stat-card > .stat-card {
  flex: 1 1 150px;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0.9rem 1rem !important;
  background: rgba(6, 14, 28, 0.45) !important;
  border: 1px solid rgba(74, 114, 196, 0.2) !important;
  border-radius: var(--radius-md) !important;
}
.main .stats-grid > .stat-card > .stat-card.data-head {
  flex-basis: 100%;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.12),
    rgba(10, 22, 40, 0.5)
  ) !important;
  border-color: var(--border-gold) !important;
}
.main .stats-grid > .stat-card > .stat-card.data-head .stat-value {
  font-size: 2.4rem;
}
.bar-in {
  box-shadow: 0 0 10px rgba(76, 175, 125, 0.3);
  border-radius: 4px 4px 0 0;
}
.bar-ex {
  box-shadow: 0 0 10px rgba(229, 115, 115, 0.3);
  border-radius: 4px 4px 0 0;
}
.month-cell {
  border-radius: var(--radius-md);
}
.sidebar-quick-report .btn-gold {
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}

/* ── Redesign fixes: header title width + admin tile values ── */
.page-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.main .stats-grid > .stat-card > .stat-card .stat-value {
  font-size: 1.5rem;
  line-height: 1.2;
  white-space: nowrap;
}
.main .stats-grid > .stat-card > .stat-card.data-head .stat-value {
  font-size: 2.4rem;
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES — added during code cleanup
   ═══════════════════════════════════════════════════════════ */

/* Active blocks card */
#active-blocks-card .card-header i.fa-ban {
  color: var(--danger, #ef4444);
  margin-right: 0.4rem;
}

/* Bloqueos activos / library state messages */
.state-msg {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Edit-input (inline transaction editing) */
.edit-input {
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--royal-400, #4a72c4);
  border-radius: 5px;
  padding: 4px 8px;
  color: #e8f0f8;
}
.edit-input[type="number"] {
  width: 90px;
}
.edit-input[type="text"] {
  width: 140px;
}
.edit-input[type="date"] {
  width: auto;
}

/* Degree-raising breakdown panel */
.dr-panel {
  border: 1px solid #2952a3;
  border-radius: 10px;
  padding: 1.4rem;
  background: #0d1f3c;
  margin-bottom: 0.5rem;
}
.dr-panel-title {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 1rem;
}
.dr-fee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.8rem 1rem;
  align-items: end;
}
.dr-fee-grid label.form-label {
  font-size: 11px;
}
.dr-total-label {
  font-size: 11px;
  color: #7aa0d4;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.dr-total-value {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}
.dr-note {
  color: #7aa0d4;
  font-size: 11px;
  margin-top: 0.8rem;
}

/* Radio / payer type row */
.payer-type-row {
  display: flex;
  gap: 1.5rem;
}
.payer-type-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}
.payer-type-label input[type="radio"] {
  accent-color: var(--gold);
}

/* Bloqueos modal inner card */
.blocks-form-card {
  background: rgba(7, 17, 31, 0.7);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}
.blocks-form-card .card-header {
  margin-bottom: 0.75rem;
}
.blocks-form-card .card-header h3 {
  font-size: 0.9rem;
}
.blocks-form-card .form-row {
  grid-template-columns: 1fr 1fr;
}

/* Block action button (amber outline) */
.btn-block-action {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.28);
}
.btn-block-action:hover {
  background: rgba(245, 158, 11, 0.22);
}

/* Modal size variants */
.modal-sm {
  max-width: 440px;
}
.modal-md {
  max-width: 520px;
}
.modal-lg {
  max-width: 680px;
}
.modal-xl {
  max-width: 800px;
}

/* Navbar brand link */
.navbar-brand {
  text-decoration: none;
}

/* Nav admin highlight link */
.nav-link-gold {
  color: var(--gold);
}

/* Member welcome greeting */
.nav-welcome {
  color: var(--gold);
  font-size: 13px;
  margin-right: 8px;
}
.nav-welcome--mobile {
  color: var(--gold);
  font-size: 13px;
  padding: 0.5rem 1rem;
  display: block;
}

/* Footer utility paragraphs */
.footer-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 0.35rem;
}
.footer-note {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 0.2rem;
  opacity: 0.7;
}

/* Admin footer (no top margin) */
footer.admin-footer {
  margin-top: 0;
}

/* News textarea */
.news-textarea {
  min-height: 120px;
}

/* Shield icon in tables */
.icon-admin-shield {
  font-size: 10px;
  opacity: 0.6;
}

/* Blocks book title span inside modal */
.blocks-book-title {
  color: var(--gold);
}

/* Form actions right-align variant */
.form-actions-end {
  justify-content: flex-end;
}

/* ml-auto utility */
.ml-auto {
  margin-left: auto;
}

/* Library empty-state icon */
.lib-empty-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* Modal submit button top margin */
.btn-mt {
  margin-top: 1rem;
}

/* text-normal (font-weight reset) */
.text-normal {
  font-weight: 400;
}

/* dr-fee-label (smaller form labels inside dr-panel) */
.dr-fee-label {
  font-size: 11px;
}

/* blocks-form-card inner row (2-col grid) */
.blocks-form-card__row {
  grid-template-columns: 1fr 1fr;
}

/* navbar-brand link: no underline */
.navbar-brand {
  text-decoration: none;
}

/* Payer-type row already defined above */

/* Ban icon in active-blocks card header */
.icon-ban-active {
  color: var(--danger, #ef4444);
  margin-right: 0.4rem;
}

/* Ban icon in modal titles */
.icon-ban-modal {
  color: var(--gold);
  margin-right: 8px;
}

.nav-link--active {
  color: var(--gold);
}

/* Modal cancel button slight top margin */
.btn-mt-sm {
  margin-top: 0.75rem;
}

/* Clickable stat card */
.stat-card--clickable {
  cursor: pointer;
}

/* ============================================================
   ADMIN MOBILE HEADER
   One hamburger only (the sidebar toggle); top-bar selections
   (Sitio Público / Cerrar Sesión) stay ALWAYS VISIBLE — no
   collapsing dropdown menu.
   ============================================================ */
@media (max-width: 768px) {
  /* tighten the bar so everything fits on one row */
  .navbar--admin {
    padding: 0 0.75rem;
  }
  .navbar--admin .navbar-inner {
    gap: 8px;
  }

  /* keep the top selections visible (overrides the global hide) */
  .navbar--admin .navbar-links {
    display: flex !important;
    gap: 4px;
    flex-wrap: nowrap;
  }
  .navbar--admin .navbar-links .nav-link {
    display: inline-flex !important;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* free up width: drop the long brand text (keep the star) and
     the duplicate admin name (it's shown in the sidebar header) */
  .navbar--admin .navbar-brand .brand-text {
    /* display: none; */
  }
  .navbar--admin .admin-user {
    display: none;
  }

  /* the lone hamburger = the sidebar toggle */
  .navbar--admin .sidebar-toggle-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 640px) {
  /* override the global 640px rule that hides nav-links */
  .navbar--admin .navbar-links .nav-link {
    display: inline-flex !important;
    padding: 6px 8px;
    font-size: 11px;
  }
}
