/* ============================================================
   assets/css/main.css — US Craft Brew Database
   ============================================================ */

/* ---- Reset & Variables ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1a2d52;
  --navy-dark:   #111e38;
  --navy-light:  #243666;
  --gold:        #c9a227;
  --gold-light:  #e4bc4a;
  --gold-pale:   #f5ecd7;
  --cream:       #faf6ed;
  --red:         #c0392b;
  --green:       #2d6a2d;
  --white:       #ffffff;
  --gray-50:     #fafaf8;
  --gray-100:    #f4f2ec;
  --gray-200:    #e8e4da;
  --gray-300:    #cdc9be;
  --gray-400:    #9a9790;
  --gray-600:    #6b6860;
  --gray-700:    #444240;
  --gray-900:    #1a1a18;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  10px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 3px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --transition: 0.15s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-900);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--navy); }
a:hover { color: var(--gold); }

/* ---- Utility ---------------------------------------------- */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm   { max-width: 680px;  margin: 0 auto; padding: 0 1.5rem; }
.sr-only        { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-muted     { color: var(--gray-400); }
.text-gold      { color: var(--gold); }
.text-navy      { color: var(--navy); }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }

/* ---- TOP NAV ---------------------------------------------- */
.topnav {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.topnav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px 0;
  flex-shrink: 0;
}
.nav-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.nav-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-light);
  line-height: 1.2;
}
.nav-title small {
  display: block;
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 500;
  color: var(--gold-pale);
  opacity: .75;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a,
.nav-dropdown-btn {
  color: var(--gold-pale);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-dropdown-btn:hover,
.nav-links a.active {
  background: rgba(201,162,39,.15);
  color: var(--gold-light);
}
.btn-nav {
  padding: 6px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.btn-login {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
}
.btn-login:hover { background: var(--gold) !important; color: var(--navy-dark) !important; }
.btn-cta { background: var(--gold) !important; color: var(--navy-dark) !important; }
.btn-cta:hover { background: var(--gold-light) !important; }

/* Account avatar */
.account-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .68rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.account-btn { display: flex; align-items: center; gap: 6px !important; }

/* Dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 4px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 300;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a,
.nav-dropdown-menu button {
  display: block; width: 100%;
  padding: 9px 14px;
  font-size: .85rem; color: var(--gray-700);
  text-decoration: none; text-transform: none;
  letter-spacing: 0; font-weight: 400;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
  text-align: left;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu button:hover { background: var(--gray-100); color: var(--navy); }
.nav-dropdown-menu hr { border: none; border-top: 1px solid var(--gray-200); margin: 3px 0; }
.nav-dropdown-menu .danger { color: var(--red) !important; }
.dropdown-header { padding: 10px 14px 8px; }
.dropdown-header strong { display: block; font-size: .9rem; color: var(--navy); }
.dropdown-header small { font-size: .75rem; color: var(--gray-400); }
.role-badge {
  display: inline-block; margin-top: 4px;
  font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px;
}
.role-admin         { background: #fde8e8; color: #a32d2d; }
.role-member        { background: #e3f2fd; color: #1565c0; }
.role-brewery_owner { background: #e8f5e9; color: #2e7d32; }
.role-advertiser    { background: #fff8e1; color: #f57f17; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold-pale);
  border-radius: 2px; transition: var(--transition);
}

/* ---- AD BANNER ROW ---------------------------------------- */
.ad-banner-wrap {
  background: var(--navy-light);
  border-bottom: 1px solid rgba(201,162,39,.2);
}
.ad-banner-row {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  gap: 1px;
  background: rgba(201,162,39,.1); /* gap color */
}
/* Dynamic column counts */
.ad-banner-count-1 { grid-template-columns: 1fr; }
.ad-banner-count-2 { grid-template-columns: 1fr 1fr; }
.ad-banner-count-3 { grid-template-columns: 1fr 1fr 1fr; }
.ad-banner-count-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.ad-banner-item {
  background: var(--navy-light);
  min-width: 0; /* prevent overflow in grid */
}
.ad-banner-link {
  text-decoration: none;
  display: block;
}
.ad-banner-link:hover .ad-banner-inner {
  background: rgba(255,255,255,.04);
}
.ad-banner-inner {
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .83rem;
  color: var(--gold-pale);
  min-height: 52px;
  transition: background var(--transition);
}
.ad-banner-inner strong { color: var(--gold-light); }
.ad-banner-inner img {
  height: 40px;
  width: auto;
  max-width: 100%;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

/* On mobile, stack banners vertically */
@media (max-width: 700px) {
  .ad-banner-count-2,
  .ad-banner-count-3,
  .ad-banner-count-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ad-banner-count-2,
  .ad-banner-count-3,
  .ad-banner-count-4 { grid-template-columns: 1fr; }
}
.ad-tag {
  background: var(--gold); color: var(--navy-dark);
  font-size: .65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .06em;
  flex-shrink: 0;
}

/* ---- HERO ------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a227' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white); line-height: 1.15;
  margin-bottom: .5rem;
}
.hero h1 span { color: var(--gold-light); }
.hero p { color: var(--gold-pale); font-size: 1.05rem; opacity: .85; margin-bottom: 1.5rem; }

.stats-row { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.stat-n { font-family: var(--font-display); font-size: 2rem; color: var(--gold-light); line-height: 1; }
.stat-l { font-size: .72rem; color: var(--gold-pale); text-transform: uppercase; letter-spacing: .1em; opacity: .8; }

/* ---- SEARCH SECTION --------------------------------------- */
.search-section {
  background: var(--navy);
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--gold);
}
.search-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end;
}
.search-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.search-group label {
  font-size: .68rem; color: var(--gold-pale);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.search-group select,
.search-group input {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body); font-size: .9rem;
  padding: 8px 10px; outline: none;
  transition: border var(--transition);
}
.search-group select:focus,
.search-group input:focus { border-color: var(--gold); }
.search-group select option { background: var(--navy-dark); color: var(--white); }
.search-group input::placeholder { color: rgba(255,255,255,.3); }
.btn-search {
  background: var(--gold); color: var(--navy-dark);
  border: none; border-radius: var(--radius-sm);
  padding: 8px 28px; font-family: var(--font-body);
  font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: background var(--transition); white-space: nowrap; align-self: flex-end;
}
.btn-search:hover { background: var(--gold-light); }
.btn-clear {
  background: transparent; color: var(--gold-pale);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-family: var(--font-body); font-size: .85rem;
  cursor: pointer; transition: all var(--transition); align-self: flex-end;
}
.btn-clear:hover { border-color: var(--gold); color: var(--gold); }

/* ---- MAIN LAYOUT ------------------------------------------ */
.main-layout {
  max-width: 1200px; margin: 1.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1.5rem;
}

/* ---- TABLE CARD ------------------------------------------- */
.table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-card-header {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.table-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--navy);
}
.result-count { font-size: .8rem; color: var(--gray-400); }
.lock-notice {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--red);
  background: #fff3f3; padding: 4px 10px;
  border-radius: var(--radius-sm); border: 1px solid #fcc;
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-size: .85rem; }
thead { background: var(--navy); }
thead th {
  color: var(--gold-pale); font-weight: 600;
  text-align: left; padding: 10px 14px;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: background var(--transition);
}
thead th:hover { background: var(--navy-light); }
.sort-icon { margin-left: 4px; opacity: .55; font-style: normal; font-size: .85em; }
tbody tr { border-bottom: 1px solid var(--gray-200); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gold-pale); }
tbody td { padding: 9px 14px; color: var(--gray-700); vertical-align: middle; }
tbody td.name-cell { font-weight: 600; color: var(--navy); }
tbody td.locked,
.locked { filter: blur(4px); user-select: none; pointer-events: none; }

/* Sponsored in-table row */
tbody tr.sponsored-row { background: #fffbee; }
tbody tr.sponsored-row td:first-child::before {
  content: 'Sponsored';
  display: inline-block;
  font-size: .6rem; font-weight: 700; letter-spacing: .05em;
  background: var(--gold); color: var(--navy-dark);
  padding: 1px 6px; border-radius: 3px; margin-right: 6px;
  text-transform: uppercase; vertical-align: middle;
}

.badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-open     { background: #e8f5e9; color: #2e7d32; }
.badge-closed   { background: #ffebee; color: #c62828; }
.badge-taproom  { background: #e3f2fd; color: #1565c0; }
.badge-brewpub  { background: #f3e5f5; color: #6a1b9a; }
.badge-micro    { background: #e8f5e9; color: #2e7d32; }
.badge-verified { background: #e8f5e9; color: #1b5e20; }

/* Pagination */
.pagination {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gray-50); flex-wrap: wrap; gap: .5rem;
}
.page-info { font-size: .8rem; color: var(--gray-400); }
.page-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.page-btns a,
.page-btns button {
  background: none; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 4px 10px;
  font-size: .8rem; cursor: pointer; color: var(--gray-700);
  text-decoration: none; transition: all var(--transition);
  font-family: var(--font-body);
}
.page-btns a:hover,
.page-btns button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-btns a.active,
.page-btns button.active { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }

/* ---- SIDEBAR ---------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-card-head {
  background: var(--navy);
  padding: .55rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-card-head h3 {
  font-size: .72rem; font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase; letter-spacing: .08em;
}
.ad-tag-sm {
  font-size: .6rem; background: var(--gold);
  color: var(--navy-dark); padding: 1px 6px;
  border-radius: 3px; font-weight: 700; text-transform: uppercase;
}
.sidebar-card-body { padding: 1rem; }

/* Ad placeholder */
.ad-placeholder {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  min-height: 250px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .6rem; text-align: center; padding: 1rem;
}
.ad-placeholder p { font-size: .8rem; color: var(--gray-400); font-weight: 600; }
.ad-placeholder small { font-size: .72rem; color: var(--gray-400); line-height: 1.4; }

/* Featured brewery */
.featured-header {
  height: 90px; background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem;
  color: var(--gold-light); text-align: center; padding: 1rem;
}
.featured-header img { max-height: 80px; width: auto; border-radius: 4px; }
.featured-body { padding: .75rem 1rem 1rem; }
.featured-name { font-family: var(--font-display); font-size: .95rem; color: var(--navy); margin-bottom: 2px; }
.featured-meta { font-size: .75rem; color: var(--gray-400); margin-bottom: .4rem; }
.featured-desc { font-size: .8rem; color: var(--gray-600); line-height: 1.5; margin-bottom: .6rem; }

/* Join card */
.join-card { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); }
.join-card .sidebar-card-head { background: rgba(0,0,0,.2); }
.join-card .sidebar-card-body { padding: 1.25rem; }
.join-card h4 {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--gold-light); margin-bottom: .4rem;
}
.join-card p { font-size: .82rem; color: var(--gold-pale); opacity: .85; margin-bottom: .75rem; }

/* State list */
.state-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 4px; border-bottom: 1px solid var(--gray-200);
  cursor: pointer; transition: background var(--transition);
  text-decoration: none;
}
.state-list-item:hover { background: var(--gold-pale); }
.state-list-item:last-child { border-bottom: none; }
.state-list-item span { font-size: .82rem; color: var(--navy); font-weight: 500; }
.state-list-item small { font-size: .73rem; color: var(--gray-400); }

/* ---- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--font-body); font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 20px; font-size: .9rem;
  text-decoration: none; border: none;
  transition: all var(--transition); text-align: center;
}
.btn-primary   { background: var(--navy); color: var(--gold-light); }
.btn-primary:hover { background: var(--navy-light); color: var(--gold-light); }
.btn-gold      { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline   { background: transparent; border: 1px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--gold-light); }
.btn-outline-gold { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-dark); }
.btn-sm  { padding: 5px 12px; font-size: .8rem; }
.btn-lg  { padding: 12px 32px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #a83225; }

/* ---- FORMS ------------------------------------------------ */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.form-card-head {
  background: var(--navy);
  padding: 1.25rem 1.5rem;
}
.form-card-head h2 {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--gold-light);
}
.form-card-body { padding: 1.5rem; }
.form-group { margin-bottom: .9rem; }
.form-group label {
  display: block; font-size: .76rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); padding: 9px 11px;
  font-family: var(--font-body); font-size: .9rem;
  color: var(--gray-900); background: var(--white); outline: none;
  transition: border var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,45,82,.08); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-hint { font-size: .75rem; color: var(--gray-400); margin-top: 3px; }
.form-footer { text-align: center; font-size: .82rem; color: var(--gray-400); margin-top: .75rem; }
.form-footer a { color: var(--navy); font-weight: 600; }

/* Alerts */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .88rem; }
.alert-error   { background: #ffebee; border: 1px solid #fcc; color: #c62828; }
.alert-success { background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32; }
.alert-info    { background: #e3f2fd; border: 1px solid #bbdefb; color: #1565c0; }
.alert ul { margin: .3rem 0 0 1rem; }
.alert ul li { margin-bottom: 2px; }

/* ---- ADMIN PAGES ------------------------------------------ */
.admin-layout {
  max-width: 1200px; margin: 1.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
}
.admin-sidebar {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: fit-content;
  position: sticky; top: 80px;
}
.admin-sidebar-head {
  background: rgba(0,0,0,.2);
  padding: .75rem 1rem;
  font-size: .72rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: .08em;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-size: .84rem; color: var(--gold-pale);
  text-decoration: none; transition: background var(--transition);
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover { background: rgba(255,255,255,.06); color: var(--gold-light); }
.admin-sidebar a.active {
  background: rgba(201,162,39,.12);
  color: var(--gold-light);
  border-left-color: var(--gold);
}
.admin-main h1 {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--navy); margin-bottom: 1.5rem;
  padding-bottom: .75rem; border-bottom: 2px solid var(--gold);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.stat-card .label { font-size: .72rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.stat-card .value { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); line-height: 1; }
.stat-card .change { font-size: .75rem; color: var(--green); margin-top: 4px; }

/* ---- FOOTER ----------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  padding: 3rem 1.5rem 1rem;
  margin-top: 3rem;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer-brand .footer-logo {
  width: 70px; height: 70px;
  border-radius: 50%; border: 2px solid var(--gold);
  margin-bottom: .75rem; object-fit: cover;
}
.footer-brand p { font-size: .83rem; color: var(--gold-pale); opacity: .7; line-height: 1.5; }
.footer-brand .footer-est { font-size: .72rem; color: var(--gold); opacity: .6; margin-top: .5rem; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: .85rem; color: var(--gold-light);
  margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .06em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a {
  font-size: .82rem; color: var(--gold-pale);
  text-decoration: none; opacity: .65; transition: opacity var(--transition);
}
.footer-col ul li a:hover { opacity: 1; color: var(--gold-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201,162,39,.15);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { font-size: .75rem; color: var(--gold-pale); opacity: .5; }

/* ---- PAGE SECTIONS ---------------------------------------- */
.page-hero {
  background: var(--navy);
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold-light); margin-bottom: .4rem;
}
.page-hero p { font-size: .95rem; color: var(--gold-pale); opacity: .8; }

.page-content {
  max-width: 1200px; margin: 2rem auto;
  padding: 0 1.5rem;
}

/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
}

@media (max-width: 700px) {
  .nav-title { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-dark); padding: 1rem;
    border-bottom: 2px solid var(--gold);
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-dropdown-btn { text-align: left; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,.05); }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-row { gap: 1.5rem; }
  .pagination { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .search-group { min-width: 100%; }
  .table-card-header { flex-direction: column; align-items: flex-start; }
}