/* ============================================================
   Peregrin Software — Main Stylesheet
   Clean, professional theme. No external framework dependencies.
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-light:  #eff6ff;
  --primary-glow:   rgba(37,99,235,.15);
  --secondary:      #0f172a;
  --text:           #1e293b;
  --text-muted:     #64748b;
  --bg:             #f8fafc;
  --surface:        #ffffff;
  --border:         #e2e8f0;
  --border-dark:    #cbd5e1;
  --success:        #10b981;
  --success-bg:     #d1fae5;
  --warning:        #f59e0b;
  --warning-bg:     #fef9c3;
  --danger:         #ef4444;
  --danger-bg:      #fee2e2;
  --info:           #3b82f6;
  --info-bg:        #eff6ff;
  --radius:         8px;
  --radius-lg:      12px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow:         0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.1);
  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --transition:     .18s ease;
  --header-h:       68px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,h5 { line-height: 1.25; color: var(--secondary); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-muted); }
ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font); font-size: .95rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-sm  { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg  { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; box-shadow: 0 4px 12px var(--primary-glow); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-ghost    { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); border-color: var(--border-dark); color: var(--text); text-decoration: none; }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; text-decoration: none; }
.btn-success  { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; text-decoration: none; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark {
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  padding: .3rem .5rem; border-radius: 6px;
}
.logo-text { font-weight: 700; font-size: 1.05rem; color: var(--secondary); }
.main-nav  { display: flex; align-items: center; gap: .25rem; }
.nav-link  { padding: .4rem .8rem; border-radius: var(--radius); color: var(--text-muted); font-weight: 500; font-size: .9rem; transition: color var(--transition), background var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); text-decoration: none; }
.nav-cta  { margin-left: .75rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1d4ed8 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  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='none' fill-rule='evenodd'%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/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 680px; }
.hero-label {
  display: inline-block;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 99px; margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,.15);
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p   { color: rgba(255,255,255,.75); font-size: 1.2rem; max-width: 540px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-cta .btn-outline:hover { background: rgba(255,255,255,.1); }

/* ── Feature Cards ───────────────────────────────────────────── */
.features { background: var(--surface); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: .6rem; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; background: var(--primary-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.card p   { font-size: .9rem; }

/* ── About strip ─────────────────────────────────────────────── */
.about { background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { margin-bottom: 1rem; }
.about-stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--primary); display: block; }
.stat-lbl { font-size: .85rem; color: var(--text-muted); }
.about-visual {
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #bfdbfe;
}
.about-visual-inner { text-align: center; color: var(--primary); }
.about-visual-inner .big-icon { font-size: 4rem; line-height: 1; }
.about-visual-inner p { font-size: .9rem; font-weight: 600; margin-top: .5rem; color: var(--primary-dark); }

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 4rem 0; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 500px; margin: 0 auto 2rem; }
.cta-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,.1); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.7); padding: 3.5rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand .logo-mark { background: var(--primary); }
.footer-name { font-weight: 700; color: #fff; font-size: 1rem; margin-left: .5rem; }
.footer-tagline { margin-top: .5rem; font-size: .875rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.65); font-size: .9rem; margin-bottom: .35rem; transition: color var(--transition); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; font-size: .85rem; color: rgba(255,255,255,.4); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 600; font-size: .875rem; color: var(--text); margin-bottom: .35rem; }
label .req { color: var(--danger); margin-left: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=search], input[type=number], select, textarea {
  width: 100%; padding: .6rem .85rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius); font-family: var(--font); font-size: .95rem;
  color: var(--text); background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
textarea { resize: vertical; min-height: 130px; }
select   { cursor: pointer; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.field-error { font-size: .8rem; color: var(--danger); margin-top: .3rem; }

/* Radio/checkbox type selector */
.type-selector { display: flex; gap: .75rem; flex-wrap: wrap; }
.type-option input[type=radio] { display: none; }
.type-option label {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border: 2px solid var(--border);
  border-radius: 99px; cursor: pointer; font-weight: 500; font-size: .875rem;
  transition: all var(--transition); color: var(--text-muted);
}
.type-option input[type=radio]:checked + label {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light);
}

/* File upload zone */
.file-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.file-zone:hover, .file-zone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.file-zone input[type=file] { display: none; }
.file-zone-icon { font-size: 2rem; line-height: 1; margin-bottom: .5rem; }
.file-zone p  { font-size: .875rem; color: var(--text-muted); }
.file-list    { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.file-chip    { background: var(--border); border-radius: 99px; padding: .2rem .75rem; font-size: .8rem; display: flex; align-items: center; gap: .4rem; }
.file-chip .rm { cursor: pointer; color: var(--danger); font-weight: 700; }

/* Alert boxes */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: 1.25rem; }
.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: var(--danger-bg);  color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: var(--info-bg);    color: #1e40af; border: 1px solid #93c5fd; }
.alert-warning { background: var(--warning-bg); color: #713f12; border: 1px solid #fde047; }

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero { background: var(--secondary); color: #fff; padding: 3rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.page-hero p  { color: rgba(255,255,255,.7); margin-top: .4rem; }
.breadcrumb   { display: flex; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: .5rem; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; text-decoration: none; }

/* ── Support Page ─────────────────────────────────────────────── */
.support-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; }
.support-sidebar .info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem;
}
.support-sidebar .info-card h4 { margin-bottom: .5rem; font-size: 1rem; }
.support-sidebar .info-card p  { font-size: .875rem; }
.support-sidebar .info-card a  { font-size: .875rem; }

/* ── Admin Layout ─────────────────────────────────────────────── */
.admin-body { background: #f1f5f9; min-height: 100vh; font-family: var(--font); font-size: .9rem; color: var(--text); }

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px; min-height: 100vh;
  background: var(--secondary);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200; overflow-y: auto;
}
.sidebar-logo {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo .logo-mark { background: var(--primary); font-size: .75rem; }
.sidebar-logo span { color: #fff; font-weight: 700; font-size: .95rem; }
.sidebar-section { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-section-label { padding: .25rem 1.25rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); font-weight: 600; }
.sidebar-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem 1.25rem; color: rgba(255,255,255,.65);
  font-size: .875rem; font-weight: 500; transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.sidebar-link.active { border-left: 3px solid var(--primary); }
.sidebar-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sidebar-footer { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-user { color: rgba(255,255,255,.55); font-size: .8rem; }
.sidebar-user strong { display: block; color: rgba(255,255,255,.85); }
.sidebar-user a { color: rgba(255,255,255,.4); font-size: .75rem; }

.admin-main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: .9rem 1.75rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.admin-topbar h1 { font-size: 1.15rem; font-weight: 700; color: var(--secondary); }
.admin-content { padding: 1.75rem; flex: 1; }

/* Admin cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 1.4rem;
}
.stat-card .sc-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.stat-card .sc-value { font-size: 2rem; font-weight: 700; color: var(--secondary); line-height: 1; }
.stat-card .sc-sub   { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.stat-card.accent-blue   .sc-value { color: var(--primary); }
.stat-card.accent-green  .sc-value { color: var(--success); }
.stat-card.accent-orange .sc-value { color: var(--warning); }
.stat-card.accent-red    .sc-value { color: var(--danger); }

/* Tables */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table-header { padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.table-header h3 { font-size: 1rem; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: .75rem 1.25rem; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; background: var(--bg); border-bottom: 1px solid var(--border); }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
tbody td { padding: .8rem 1.25rem; font-size: .875rem; vertical-align: middle; }

/* Badges */
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge-open       { background: var(--info-bg);    color: #1e40af; }
.badge-in_progress{ background: var(--warning-bg); color: #713f12; }
.badge-waiting    { background: #f3f4f6;            color: #374151; }
.badge-resolved   { background: var(--success-bg); color: #065f46; }
.badge-closed     { background: #f3f4f6;            color: var(--text-muted); }
.badge-low        { background: #f3f4f6;            color: #374151; }
.badge-medium     { background: var(--info-bg);    color: #1e40af; }
.badge-high       { background: var(--warning-bg); color: #713f12; }
.badge-urgent     { background: var(--danger-bg);  color: #991b1b; }
.badge-superadmin { background: #f3e8ff; color: #6b21a8; }
.badge-admin      { background: var(--primary-light); color: var(--primary-dark); }
.badge-support    { background: var(--success-bg); color: #065f46; }
.badge-support-type { background: var(--info-bg); color: #1e40af; }
.badge-general    { background: #f3f4f6; color: #374151; }
.badge-billing    { background: var(--warning-bg); color: #713f12; }
.badge-callback   { background: #fce7f3; color: #9d174d; }
.badge-active   { background: var(--success-bg); color: #065f46; }
.badge-inactive { background: var(--danger-bg);  color: #991b1b; }

/* Admin filters */
.filter-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.filter-bar .form-group { margin: 0; min-width: 150px; }
.filter-bar label { font-size: .78rem; margin-bottom: .25rem; }
.filter-bar select, .filter-bar input { padding: .45rem .75rem; font-size: .85rem; }

/* Ticket thread */
.ticket-meta-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.meta-item label  { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; margin-bottom: .2rem; }
.meta-item .val   { font-size: .9rem; font-weight: 600; color: var(--text); }
.reply-thread     { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.reply-bubble {
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  border: 1px solid var(--border); background: var(--surface);
}
.reply-bubble.is-admin { border-left: 3px solid var(--primary); }
.reply-bubble.is-customer { background: var(--bg); }
.reply-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.reply-author { font-weight: 700; font-size: .875rem; }
.reply-time   { font-size: .78rem; color: var(--text-muted); }
.reply-body   { font-size: .9rem; white-space: pre-wrap; word-break: break-word; }

/* Pagination */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 1.5rem; }
.pagination a, .pagination span {
  padding: .4rem .75rem; border-radius: var(--radius);
  font-size: .875rem; border: 1px solid var(--border);
  color: var(--text-muted); background: var(--surface);
  text-decoration: none; transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Login page */
.login-page { min-height: 100vh; background: var(--secondary); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-card { background: var(--surface); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-logo { text-align: center; margin-bottom: 1.75rem; }
.login-title { font-size: 1.35rem; font-weight: 700; color: var(--secondary); margin-bottom: .25rem; text-align: center; }
.login-sub   { text-align: center; font-size: .875rem; color: var(--text-muted); margin-bottom: 1.75rem; }

/* ── Utilities ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.gap-1 { gap: .5rem; }
.d-flex { display: flex; align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-inner     { grid-template-columns: 1fr; }
  .about-visual    { display: none; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  .support-grid    { grid-template-columns: 1fr; }
  .admin-sidebar   { transform: translateX(-100%); transition: transform .25s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main      { margin-left: 0; }
  .form-row        { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: .75rem 1rem; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 3.5rem 0 3rem; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 600px; }
}
