/* Los Granados Golf Community — Main Stylesheet */

:root {
  --navy: #0d1b2a;
  --navy-light: #1a2e42;
  --navy-lighter: #243c52;
  --gold: #c8a96e;
  --gold-light: #dfc08a;
  --gold-dark: #a8893e;
  --white: #f8f5f0;
  --white-pure: #ffffff;
  --green: #4a7c59;
  --green-light: #5a9a6e;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e0d8;
  --card-bg: #ffffff;
  --shadow: 0 2px 8px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 8px 32px rgba(13, 27, 42, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

a {
  color: var(--gold-dark);
  text-decoration: none;
}
a:hover { color: var(--navy); text-decoration: underline; }

/* ─── Header / Navigation ────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo .logo-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.site-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.site-nav a {
  color: rgba(248, 245, 240, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(200, 169, 110, 0.15);
}

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

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(248, 245, 240, 0.3);
  color: rgba(248, 245, 240, 0.7);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.15s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.user-menu {
  position: relative;
}

.user-btn {
  background: rgba(200, 169, 110, 0.15);
  border: 1px solid rgba(200, 169, 110, 0.4);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s;
}

.user-btn:hover {
  background: rgba(200, 169, 110, 0.25);
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--white-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: none;
}

.user-dropdown a:hover {
  background: var(--white);
  color: var(--navy);
}

.user-dropdown hr {
  margin: 0.25rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── Main Layout ─────────────────────────────────────────────────────── */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.5rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-header h2, .card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

/* ─── Content Grid ────────────────────────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.content-card.pinned {
  border-top: 3px solid var(--gold);
}

.content-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.content-type-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.content-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.content-card h3 a {
  color: inherit;
  text-decoration: none;
}

.content-card h3 a:hover {
  color: var(--gold-dark);
}

.content-card-excerpt {
  color: var(--text-muted);
  font-size: 0.875rem;
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.content-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Badges ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-draft { background: #f3f4f6; color: #6b7280; }
.badge-review { background: #fef3c7; color: #92400e; }
.badge-published { background: #d1fae5; color: #065f46; }
.badge-archived { background: #f3f4f6; color: #9ca3af; }
.badge-pinned { background: #fef3c7; color: #b45309; }
.badge-open { background: #dbeafe; color: #1e40af; }
.badge-waiting { background: #fef3c7; color: #92400e; }
.badge-resolved { background: #d1fae5; color: #065f46; }
.badge-gold { background: var(--gold); color: var(--navy); }
.badge-navy { background: var(--navy); color: var(--white); }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); color: var(--white); text-decoration: none; }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy); text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--white); border-color: var(--navy); color: var(--navy); text-decoration: none; }

.btn-danger {
  background: #dc2626;
  color: white;
}
.btn-danger:hover { background: #b91c1c; color: white; text-decoration: none; }

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

/* ─── Forms ───────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white-pure);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}

.form-control::placeholder {
  color: #adb5bd;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* ─── Alerts ──────────────────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.alert-warning {
  background: #fffbeb;
  border-color: #fed7aa;
  color: #92400e;
}

/* ─── Tables ──────────────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 0.875rem;
}

th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--white); }

/* ─── Auth Pages ──────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--white-pure);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.auth-header {
  background: var(--navy);
  padding: 2rem;
  text-align: center;
}

.auth-header h1 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.auth-header p {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.auth-body {
  padding: 2rem;
}

.auth-footer {
  text-align: center;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Hero / Sections ─────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.4rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.5rem 0 1.5rem;
}

/* ─── Home Hero ───────────────────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 60%, var(--green) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.home-hero p {
  color: rgba(248, 245, 240, 0.8);
  font-size: 1rem;
  margin: 0;
}

/* ─── Quick Links ─────────────────────────────────────────────────────── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.quick-link-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
  box-shadow: var(--shadow);
}

.quick-link-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--navy);
}

.quick-link-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.quick-link-label {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ─── Facility Cards ──────────────────────────────────────────────────── */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.facility-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}

.facility-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.facility-card-header {
  background: var(--navy);
  padding: 1.5rem;
  color: var(--white);
}

.facility-card-header h3 {
  color: var(--white);
  margin: 0 0 0.25rem;
}

.facility-card-status {
  font-size: 0.75rem;
  color: var(--gold);
}

.facility-card-body {
  padding: 1.25rem;
}

.facility-hours {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  white-space: pre-line;
}

.facility-closed-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #991b1b;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Messages ────────────────────────────────────────────────────────── */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.thread-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}

.thread-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.thread-item.unread {
  border-left: 3px solid var(--gold);
}

.thread-subject {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.thread-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sla-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.sla-ok { background: #d1fae5; color: #065f46; }
.sla-warn { background: #fef3c7; color: #92400e; }
.sla-expired { background: #fef2f2; color: #991b1b; }

.message-bubble {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  margin-bottom: 1.25rem;
}

.message-bubble.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.message-bubble.received {
  align-self: flex-start;
  align-items: flex-start;
}

.message-content {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message-bubble.sent .message-content {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.message-bubble.received .message-content {
  background: var(--white-pure);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.message-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  padding: 0 0.25rem;
}

.messages-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem;
  background: #f9f7f4;
  border-radius: var(--radius);
  min-height: 300px;
}

/* ─── Admin Layout ────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  width: 240px;
  background: var(--navy);
  flex-shrink: 0;
  padding: 1.5rem 0;
}

.admin-sidebar-title {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.admin-sidebar-title:first-child {
  margin-top: 0;
}

.admin-sidebar nav a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: rgba(248, 245, 240, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: var(--white);
  background: rgba(200, 169, 110, 0.1);
  padding-left: 1.5rem;
}

.admin-sidebar nav a.active {
  color: var(--gold);
  border-left: 3px solid var(--gold);
}

.admin-main {
  flex: 1;
  background: var(--white);
  padding: 2rem;
  overflow: hidden;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-page-title {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0;
}

/* ─── Stats Cards ─────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ─── Rich text content ───────────────────────────────────────────────── */
.rich-content {
  line-height: 1.7;
  color: var(--text);
}

.rich-content h2, .rich-content h3 {
  margin-top: 1.5em;
  color: var(--navy);
}

.rich-content ul, .rich-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.rich-content li {
  margin-bottom: 0.4em;
}

.rich-content mark {
  background: #fef3c7;
  padding: 0.1em 0.2em;
  border-radius: 2px;
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(248, 245, 240, 0.6);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--gold);
}

/* ─── Pagination ──────────────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--white-pure);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* ─── Totp / QR ───────────────────────────────────────────────────────── */
.qr-container {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.secret-code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  letter-spacing: 0.1em;
  word-break: break-all;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 1rem;
    gap: 1rem;
  }

  .site-nav {
    display: none;
  }

  .main-wrapper {
    padding: 1.25rem 1rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    padding: 0.75rem 0;
  }

  .admin-sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 0.25rem;
    padding: 0 1rem;
  }

  .admin-sidebar nav a {
    white-space: nowrap;
    border-radius: var(--radius);
    padding: 0.4rem 0.75rem;
  }

  .admin-sidebar nav a.active {
    border-left: none;
    border-bottom: 2px solid var(--gold);
    padding-left: 0.75rem;
  }

  .admin-main {
    padding: 1.25rem 1rem;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-hero {
    padding: 2rem 1.5rem;
  }

  .home-hero h1 {
    font-size: 1.5rem;
  }
}

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

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .auth-card { margin: 0; border-radius: 0; min-height: 100vh; }
  .auth-page { padding: 0; align-items: flex-start; }
}

/* ─── Utilities ───────────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-dark); }
.text-navy { color: var(--navy); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none !important; }
