/* ============================================================
   VillageLoan — Main Stylesheet v6
   Mobile-first, Professional Banking Design
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --primary:       #1a56db;
  --primary-dark:  #1043b5;
  --primary-light: #eff6ff;
  --secondary:     #f59e0b;
  --success:       #16a34a;
  --danger:        #dc2626;
  --warning:       #d97706;
  --info:          #0891b2;
  --text:          #111827;
  --text-2:        #374151;
  --muted:         #6b7280;
  --border:        #e5e7eb;
  --bg:            #f9fafb;
  --bg-2:          #f3f4f6;
  --white:         #ffffff;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow:        0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── CONTAINER ── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 560px;  margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 800px;  margin: 0 auto; padding: 0 1rem; }
@media(min-width:640px)  { .container, .container-sm, .container-md { padding: 0 1.5rem; } }
@media(min-width:1024px) { .container { padding: 0 2rem; } }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center;
  height: 60px; gap: 0.5rem;
  max-width: 1200px; margin: 0 auto; padding: 0 1rem;
}
@media(min-width:640px) { .nav-inner { padding: 0 1.5rem; } }
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 1.15rem; color: var(--primary);
  text-decoration: none; flex-shrink: 0;
}
.nav-brand .brand-icon { font-size: 1.4rem; }
.nav-links {
  display: none; align-items: center;
  gap: 0.25rem; margin-left: auto; flex-wrap: wrap;
}
@media(min-width:768px) { .nav-links { display: flex; } }
.nav-links.open {
  display: flex; flex-direction: column;
  position: absolute; top: 60px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1rem; gap: 0.5rem; box-shadow: var(--shadow);
}
.nav-link {
  padding: 0.45rem 0.85rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-2); transition: all 0.15s;
  text-decoration: none; white-space: nowrap;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.nav-login    { background: var(--primary); color: var(--white) !important; font-weight: 600; }
.nav-login:hover { background: var(--primary-dark) !important; }
.nav-logout   { color: var(--danger) !important; }
.nav-dashboard { background: var(--primary); color: var(--white) !important; }
.nav-builders  { border: 1.5px solid var(--secondary); color: var(--secondary) !important; }
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  margin-left: auto; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; padding: 0.25rem;
  color: var(--text); width: 40px; height: 40px; border-radius: var(--radius-sm);
}
@media(min-width:768px) { .nav-toggle { display: none; } }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #1a3a8f 0%, var(--primary) 50%, #1043b5 100%);
  color: white; padding: 4rem 1rem 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 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='%23ffffff' fill-opacity='0.03'%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; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 900; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 span { color: var(--secondary); }
.hero p  { font-size: clamp(0.95rem, 2.5vw, 1.1rem); opacity: 0.9; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.875rem; cursor: pointer;
  border: none; transition: all 0.2s;
  text-decoration: none !important; white-space: nowrap;
  justify-content: center; font-family: inherit;
}
.btn-primary   { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: #d97706; }
.btn-success   { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; }
.btn-danger    { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-warning   { background: var(--warning); color: white; }
.btn-warning:hover { background: #b45309; }
.btn-outline   { background: white; border: 1.5px solid var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white     { background: white; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: #f0f4ff; }
.btn-ghost     { background: rgba(255,255,255,0.15); color: white; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-sm        { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg        { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block     { width: 100%; }
.btn:disabled  { opacity: 0.6; cursor: not-allowed; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  padding: 1.25rem;
}
@media(min-width:640px) { .card { padding: 1.5rem; } }
.card-title {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 1.25rem; color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem; padding: 1.5rem 1rem;
  max-width: 1200px; margin: 0 auto;
}
@media(min-width:640px) { .stats-grid { grid-template-columns: repeat(2,1fr); padding: 2rem 1.5rem; gap: 1.25rem; } }
@media(min-width:768px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }
.stat-card {
  background: white; border-radius: var(--radius);
  padding: 1.25rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.stat-num   { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; font-weight: 500; }

/* ── FORMS ── */
.form-group  { margin-bottom: 1.1rem; }
label {
  display: block; font-weight: 600; font-size: 0.82rem;
  margin-bottom: 0.4rem; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.form-control {
  width: 100%; padding: 0.65rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit;
  background: white; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid   { border-color: var(--success); }
.form-hint    { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.form-row     { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media(min-width:560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-section { background: var(--bg); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1.25rem; }
.form-section-title {
  font-weight: 700; font-size: 0.8rem; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem;
}

/* ── STEPS ── */
.steps        { display: flex; gap: 0; margin-bottom: 2rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.step         { flex: 1; text-align: center; padding: 0.65rem 0.5rem; border-bottom: 3px solid var(--border); font-size: 0.75rem; font-weight: 600; color: var(--muted); min-width: 70px; }
.step.active  { border-color: var(--primary); color: var(--primary); }
.step.done    { border-color: var(--success); color: var(--success); }
.step-num     { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--border); color: var(--muted); font-size: 0.8rem; margin-bottom: 0.3rem; }
.step.active .step-num { background: var(--primary); color: white; }
.step.done .step-num   { background: var(--success); color: white; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table       { width: 100%; border-collapse: collapse; min-width: 500px; }
th {
  background: var(--bg-2); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); padding: 0.75rem 1rem;
  text-align: left; border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.875rem; vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }
.table-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.65rem; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-approved, .badge-verified, .badge-active { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-closed   { background: #f1f5f9; color: #475569; }
.badge-overdue  { background: #fee2e2; color: #991b1b; }
.badge-paid     { background: #dcfce7; color: #166534; }
.badge-info     { background: #dbeafe; color: #1e40af; }

/* ── ALERTS ── */
.alert { padding: 0.85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.875rem; border-left: 4px solid; }
.alert-success { background: #f0fdf4; color: #166534; border-color: var(--success); }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: var(--danger); }
.alert-warning { background: #fffbeb; color: #92400e; border-color: var(--warning); }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: var(--primary); }

/* ── TOAST ── */
.toast {
  position: fixed; top: 70px; right: 1rem; z-index: 9999;
  background: white; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 0.85rem 1.1rem;
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 260px; max-width: 380px;
  animation: slideIn 0.3s ease; border-left: 4px solid var(--primary);
  font-size: 0.875rem;
}
.toast button { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--muted); }
.toast-success { border-color: var(--success); }
.toast-error   { border-color: var(--danger); }
.toast-warning { border-color: var(--warning); }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ── DASHBOARD LAYOUT ── */
.dash-wrap { max-width: 1200px; margin: 0 auto; padding: 1rem; }
@media(min-width:640px) { .dash-wrap { padding: 1.5rem; } }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
@media(min-width:900px) { .dash-grid { grid-template-columns: 240px 1fr; } }

/* ── SIDEBAR ── */
.sidebar { background: #1e293b; border-radius: var(--radius); overflow: hidden; }
.sidebar-header { background: #0f172a; color: white; padding: 1.1rem 1.25rem; }
.sidebar-user { font-weight: 700; font-size: 0.9rem; color: white; }
.sidebar-role { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 0.15rem; text-transform: uppercase; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.25rem; color: rgba(255,255,255,0.65);
  font-size: 0.85rem; font-weight: 500;
  border-left: 3px solid transparent; transition: all 0.15s;
  text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,0.08); color: white;
  border-left-color: var(--secondary); text-decoration: none;
}
.sidebar-nav a.danger { color: rgba(239,68,68,0.8); }
.sidebar-section {
  padding: 0.6rem 1.25rem 0.25rem;
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.3);
}
.badge-count {
  background: #ef4444; color: white; border-radius: 10px;
  padding: 0.1rem 0.45rem; font-size: 0.65rem; font-weight: 700; margin-left: auto;
}
.badge-count.orange { background: #f59e0b; }
.main-content { min-width: 0; }

/* ── STAT CARDS (Admin) ── */
.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.85rem; margin-bottom: 1.25rem; }
@media(min-width:640px) { .stat-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:900px) { .stat-grid { grid-template-columns: repeat(3,1fr); } }
.stat-box {
  background: white; border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.85rem;
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.stat-val   { font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--text); }
.stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; font-weight: 500; }

/* ── DOCUMENT UPLOAD ── */
.doc-upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media(min-width:560px) { .doc-upload-grid { grid-template-columns: repeat(3, 1fr); } }
.doc-upload-item {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 1rem; text-align: center; transition: border-color 0.2s;
  background: var(--bg);
}
.doc-upload-item:hover { border-color: var(--primary); }
.doc-icon { font-size: 1.75rem; margin-bottom: 0.4rem; }
.doc-name { font-weight: 600; font-size: 0.8rem; margin-bottom: 0.2rem; color: var(--text); }
.doc-hint { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.6rem; }
.doc-upload-item input[type="file"] { width: 100%; font-size: 0.75rem; }

/* ── LOAN PRODUCT CARDS ── */
.loan-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media(min-width:560px) { .loan-cards { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .loan-cards { grid-template-columns: repeat(3,1fr); } }
.loan-card {
  background: white; border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow);
  border: 2px solid var(--border); text-align: center;
  transition: all 0.2s;
}
.loan-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.loan-card .loan-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.loan-card .loan-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.4rem; }
.loan-card .loan-rate { font-size: 1.75rem; font-weight: 900; color: var(--primary); }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media(min-width:560px) { .steps-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .steps-grid { grid-template-columns: repeat(4,1fr); } }
.step-box {
  background: white; border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.step-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: white;
  font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem;
}

/* ── FOOTER ── */
.site-footer { background: #0f172a; color: rgba(255,255,255,0.7); padding: 3rem 1rem 1.5rem; }
@media(min-width:640px) { .site-footer { padding: 3rem 1.5rem 1.5rem; } }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid  {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
@media(min-width:560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand-name {
  font-size: 1.3rem; font-weight: 900; color: white;
  margin-bottom: 0.5rem;
}
.footer-brand-name span { color: var(--secondary); }
.footer-desc { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col-title { font-weight: 700; color: white; font-size: 0.82rem; margin-bottom: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 0.5rem; }
.footer-links-list a { color: rgba(255,255,255,0.65); font-size: 0.875rem; transition: color 0.15s; text-decoration: none; }
.footer-links-list a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem;
}
.footer-v2-link { color: rgba(255,255,255,0.08); font-size: 9px; letter-spacing: 2px; text-decoration: none; }

/* ── CAMERA ── */
.camera-container { max-width: 360px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; }
#selfieVideo { width: 100%; display: block; }

/* ── IFSC RESULT ── */
.ifsc-result { font-size: 0.8rem; margin-top: 0.4rem; color: var(--success); font-weight: 600; }

/* ── MOBILE MENU OVERLAY ── */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 150;
}
.nav-overlay.open { display: block; }

/* ── PAGE TITLE ── */
.page-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--text); }

/* ── ADMIN TOPBAR ── */
.topbar {
  background: #1e293b; color: white; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; position: sticky; top: 0; z-index: 200;
  gap: 0.75rem;
}
@media(min-width:640px) { .topbar { padding: 0 1.5rem; } }
.topbar-brand { font-weight: 800; font-size: 1rem; white-space: nowrap; }
.role-badge {
  background: var(--secondary); color: #1a3a8f;
  font-size: 0.62rem; font-weight: 800;
  padding: 0.15rem 0.45rem; border-radius: 4px; text-transform: uppercase;
}
.topbar-search { flex: 1; max-width: 400px; position: relative; }
.topbar-search input {
  width: 100%; padding: 0.45rem 1rem 0.45rem 2.25rem;
  border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1); color: white;
  font-size: 0.82rem; font-family: inherit; outline: none;
}
.topbar-search input::placeholder { color: rgba(255,255,255,0.45); }
.topbar-search input:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); }
.topbar-search .si { position: absolute; left: 0.65rem; top: 50%; transform: translateY(-50%); font-size: 0.85rem; opacity: 0.5; }
.topbar-search .sh { position: absolute; right: 0.65rem; top: 50%; transform: translateY(-50%); font-size: 0.68rem; color: rgba(255,255,255,0.3); white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 1rem; font-size: 0.82rem; flex-shrink: 0; }
.topbar-right a { color: rgba(255,255,255,0.75); text-decoration: none; }
.topbar-right a:hover { color: white; }

/* ── ADMIN LAYOUT ── */
.layout { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 58px); }
@media(min-width:768px) { .layout { grid-template-columns: 220px 1fr; } }
.sidebar { background: #1e293b; padding-top: 0.5rem; }
@media(max-width:767px) { .sidebar { display: none; } }
.sidebar.open { display: block; position: fixed; left: 0; top: 58px; bottom: 0; z-index: 150; width: 240px; overflow-y: auto; }
.main { padding: 1rem; }
@media(min-width:640px) { .main { padding: 1.5rem; } }

/* ── ADMIN CARDS ── */
.card { background: white; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 1.25rem; }
.card:last-child { margin-bottom: 0; }

/* ── FORM GRID (Admin) ── */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media(min-width:560px) { .form-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .form-grid { grid-template-columns: repeat(3,1fr); } }

/* ── ADMIN BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none !important; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { opacity: 0.9; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; }
.btn-danger  { background: var(--danger); color: white; }
.btn-danger:hover  { background: #b91c1c; }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #b45309; }
.btn-outline { background: white; border: 1.5px solid var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.78rem; border-radius: 6px; }
.btn-block { width: 100%; justify-content: center; }

/* ── RESPONSIVE HELPERS ── */
.hide-mobile  { display: none; }
.hide-desktop { display: block; }
@media(min-width:768px) {
  .hide-mobile  { display: block; }
  .hide-desktop { display: none; }
}
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
