/* SmartQR Social — Core Design System (Marketing, Auth, Business Panel, Super Admin)
   Full English UI + Native Gujarati & Hindi (Devanagari) font support */

:root {
  --primary: #0b3a8f;
  --primary-600: #082c6e;
  --primary-50: #eef3fc;
  --primary-100: #dbe6fa;
  --accent: #f97316;
  --accent-600: #ea580c;
  --navy: #042163;
  --indigo: #4f46e5;
  --success: #059669;
  --success-50: #ecfdf5;
  --warning: #d97706;
  --warning-50: #fffbeb;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --info: #0284c7;
  --info-50: #f0f9ff;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-2: #d1d5db;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 4px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
  --sidebar-w: 254px;
  --font: "Inter", "Noto Sans Gujarati", "Noto Sans Devanagari", "Baloo Bhai 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Baloo Bhai 2", "Inter", "Noto Sans Gujarati", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  line-height: 1.22;
  margin: 0 0 .5em;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
}
h3, h4 { font-weight: 700; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }
small, .small { font-size: .85em; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Helpers */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 760px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--muted); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex { display: flex; }
.flex-1 { flex: 1; min-width: 0; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 16px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 24px; }

.grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 780px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 780px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Promo Bar */
.promo-strip {
  background: linear-gradient(90deg, var(--navy), var(--primary));
  color: #fff;
  text-align: center;
  padding: 7px 14px;
  font-size: .84rem;
  font-weight: 600;
}
.promo-strip a { color: #fed7aa; text-decoration: underline; margin-left: 6px; }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none !important;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 3px 10px rgba(11, 58, 143, .25);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a:not(.btn) {
  color: var(--text-2);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active { color: var(--primary); }
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 66px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 8px 4px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color .15s, border-color .15s, transform .08s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-sm { padding: 6px 12px; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 1rem; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(249, 115, 22, .28); }
.btn-accent:hover { background: var(--accent-600); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border-2); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(15, 23, 42, .06); }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--primary-50); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-head h2, .card-head h3 { margin: 0; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.badge-success { background: var(--success-50); color: #065f46; border-color: #a7f3d0; }
.badge-warning { background: var(--warning-50); color: #92400e; border-color: #fde68a; }
.badge-danger { background: var(--danger-50); color: #991b1b; border-color: #fecaca; }
.badge-info { background: var(--info-50); color: #075985; border-color: #bae6fd; }
.badge-primary { background: var(--primary-50); color: var(--primary); border-color: var(--primary-100); }

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: .92rem;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-50); color: #065f46; border-color: #a7f3d0; }
.alert-error { background: var(--danger-50); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-50); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-50); color: #075985; border-color: #bae6fd; }
.alert-close {
  border: 0; background: none; color: inherit; font-size: 1.2rem; line-height: 1;
  cursor: pointer; opacity: .65; padding: 0 2px;
}
.alert-close:hover { opacity: 1; }

/* Forms */
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 5px;
  color: var(--text-2);
}
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=url], input[type=number], input[type=search], input[type=date],
select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}
textarea { resize: vertical; min-height: 90px; }
.help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.input-group { display: flex; align-items: stretch; }
.input-group .addon {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-right: 0;
  border-radius: 9px 0 0 9px;
  font-size: .86rem;
  color: var(--muted);
  white-space: nowrap;
}
.input-group input { border-radius: 0 9px 9px 0; }
.check { display: inline-flex; align-items: flex-start; gap: 9px; font-weight: 400 !important; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.table th, table.table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
  background: var(--surface-2);
}
table.table tbody tr:hover { background: #f9fafb; }

/* Auth Pages */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: radial-gradient(800px 380px at 0% 0%, #dbe6fa 0%, transparent 60%),
              radial-gradient(600px 360px at 100% 100%, #ffedd5 0%, transparent 60%), var(--bg);
}
.auth-brand { margin-bottom: 18px; }
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.55rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 20px; font-size: .94rem; }
.auth-foot { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 34px; border: 0; background: none; color: var(--muted);
  cursor: pointer; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
}
.password-toggle:hover { color: var(--primary); background: var(--primary-50); }

/* Footer */
.site-footer {
  background: #061844;
  color: #cbd5e1;
  padding: 48px 0 28px;
  font-size: .9rem;
}
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-cities { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-cities p { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: #94a3b8; }
.footer-bottom {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .82rem; color: #94a3b8;
}
