/* ============================================================
   HICKORY HILL HOA — SHARED STYLESHEET
   Theme: High-End Lake House
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --navy:        #1B3A4B;
  --navy-light:  #2A5570;
  --green:       #2D6A4F;
  --green-light: #3A8563;
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --cream:       #FAF7F2;
  --cream-dark:  #F0EBE1;
  --wood:        #8B7355;
  --charcoal:    #1A1A1A;
  --gray:        #6B7280;
  --gray-light:  #E5E7EB;
  --white:       #FFFFFF;
  --red:         #C0392B;
  --red-light:   #FDEDEC;

  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(27,58,75,0.12);
  --shadow-md:   0 4px 16px rgba(27,58,75,0.14);
  --shadow-lg:   0 8px 32px rgba(27,58,75,0.18);
  --transition:  all 0.22s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-gray { color: var(--gray); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.font-semibold { font-weight: 600; }
.w-full { width: 100%; }

/* ── NAVBAR ── */
.navbar {
  background: var(--navy);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.navbar-brand .brand-mark {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.nav-links a.admin-link {
  background: rgba(201,168,76,0.2);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.3);
}
.nav-links a.admin-link:hover {
  background: rgba(201,168,76,0.3);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}
.nav-avatar {
  width: 34px;
  height: 34px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}
.nav-avatar:hover { border-color: var(--gold); }
.hamburger { display: none; background: none; border: none; padding: 8px; }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: var(--transition);
}

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--green) 100%);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin: 0; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,58,75,0.07);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { margin: 0; font-size: 1.1rem; }
.card-body { padding: 24px; }
.card-footer {
  padding: 16px 24px;
  background: var(--cream);
  border-top: 1px solid var(--gray-light);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-light); color: var(--white); border-color: var(--navy-light); }
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-light); color: var(--white); border-color: var(--green-light); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: var(--white); border-color: white; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-danger {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.btn-danger:hover { background: #a93226; border-color: #a93226; color: white; }
.btn-ghost {
  background: transparent;
  color: var(--gray);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-light); color: var(--charcoal); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,75,0.1);
}
.form-control::placeholder { color: var(--gray); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; appearance: auto; }
.form-hint { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-group { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--navy); }

/* ── BADGES / PILLS ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-gold { background: #FEF3C7; color: #92400E; }
.badge-navy { background: #DBEAFE; color: #1E40AF; }
.badge-gray { background: var(--gray-light); color: var(--gray); }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
thead th:first-child { border-radius: var(--radius) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius) 0 0; }
tbody tr { border-bottom: 1px solid var(--gray-light); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--cream); }
tbody td { padding: 12px 16px; color: var(--charcoal); vertical-align: middle; }

/* ── ALERTS ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-success { background: #D1FAE5; border-color: var(--green); color: #065F46; }
.alert-warning { background: #FEF3C7; border-color: var(--gold); color: #92400E; }
.alert-danger { background: var(--red-light); border-color: var(--red); color: var(--red); }
.alert-info { background: #DBEAFE; border-color: var(--navy); color: #1E40AF; }
.alert-title { font-weight: 700; margin-bottom: 4px; }

/* ── STAT CARDS ── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,58,75,0.07);
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; color: var(--gray); font-weight: 500; }
.stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--gray-light);
  margin: 24px 0;
}
.divider-gold {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 32px 0;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { margin: 0; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: var(--transition);
}
.modal-close:hover { color: var(--red); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── SPINNER ── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-light);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: var(--cream);
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--gray-light);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { color: var(--gray); font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 8px; }

/* ── SIDEBAR LAYOUT ── */
.layout-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,58,75,0.07);
  position: sticky;
  top: 88px;
  overflow: hidden;
}
.sidebar-header {
  background: var(--navy);
  padding: 16px 20px;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--charcoal);
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.sidebar-nav a:hover { background: var(--cream); color: var(--navy); }
.sidebar-nav a.active {
  background: rgba(27,58,75,0.06);
  color: var(--navy);
  border-left-color: var(--gold);
  font-weight: 600;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 36px 24px;
  text-align: center;
  font-size: 0.85rem;
  margin-top: auto;
}
footer .footer-logo {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
footer a { color: var(--gold-light); }
footer a:hover { color: var(--white); }

/* ── HERO (landing only) ── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(
      to bottom,
      rgba(27,58,75,0.88) 0%,
      rgba(27,58,75,0.70) 40%,
      rgba(45,106,79,0.55) 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Crect fill='%231B3A4B' width='1200' height='800'/%3E%3Ccircle fill='%232A5570' cx='200' cy='200' r='300' opacity='0.4'/%3E%3Ccircle fill='%232D6A4F' cx='900' cy='500' r='400' opacity='0.3'/%3E%3Cellipse fill='%231B4332' cx='600' cy='650' rx='600' ry='200' opacity='0.5'/%3E%3C/svg%3E") center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--cream), transparent);
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.25);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.wave-divider {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  overflow: hidden;
  line-height: 0;
}

/* ── LOGIN CARD ── */
.login-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .logo-mark {
  width: 60px;
  height: 60px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}
.login-logo h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: 4px; }
.login-logo p { font-size: 0.85rem; color: var(--gray); margin: 0; }

/* ── ANNOUNCEMENT CARD ── */
.announcement {
  background: linear-gradient(135deg, rgba(27,58,75,0.05), rgba(45,106,79,0.05));
  border: 1px solid rgba(201,168,76,0.3);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.announcement-date { font-size: 0.78rem; color: var(--gray); margin-bottom: 4px; }
.announcement h4 { color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.announcement p { font-size: 0.9rem; color: var(--charcoal); margin: 0; }

/* ── REQUEST ITEM ── */
.request-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.request-item:hover { border-color: var(--navy); }
.request-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.request-title { font-weight: 600; color: var(--navy); }
.request-body { font-size: 0.9rem; color: var(--gray); }

/* ── DIRECTORY CARD ── */
.member-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}
.member-card:hover { box-shadow: var(--shadow-md); border-color: rgba(27,58,75,0.15); }
.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.member-info h4 { margin-bottom: 4px; font-size: 1rem; }
.member-info .lot-badge {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 6px;
}
.member-contact-line {
  font-size: 0.83rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* ── FORM DOWNLOAD ITEM ── */
.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: var(--transition);
  background: var(--white);
}
.download-item:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.download-info { display: flex; align-items: center; gap: 14px; }
.download-icon {
  width: 40px;
  height: 40px;
  background: var(--cream-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.download-name { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.download-desc { font-size: 0.8rem; color: var(--gray); margin-top: 2px; }

/* ── DUES STATUS ── */
.dues-lot-row { padding: 14px 16px; border-bottom: 1px solid var(--gray-light); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dues-lot-row:last-child { border-bottom: none; }
.dues-lot-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.dues-lot-info p { font-size: 0.8rem; color: var(--gray); margin: 0; }

/* ── TOAST ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  max-width: 340px;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast.warning { border-left: 4px solid var(--gold); }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    padding: 12px;
    z-index: 99;
    box-shadow: var(--shadow-md);
  }
  .hamburger { display: block; }
  .card-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .login-card { padding: 32px 24px; }
}
