/* InternScan India — Consolidated Design System & Stylesheet
 * Fully responsive, optimized, dark/light mode, glassmorphic UI.
 */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --surface-hover: #f1f5f9;
  --surface-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --dim: #64748b;
  --faint: #94a3b8;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #fff7ed;
  --brand-glow: rgba(234, 88, 12, 0.14);
  --brand-blue: #2563eb;
  --brand-purple: #7c3aed;
  --new-fg: #15803d;
  --new-bg: #dcfce7;
  --new-border: #bbf7d0;
  --badge-bg: #f1f5f9;
  --badge-fg: #475569;
  --badge-border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 14px 28px -4px rgba(15, 23, 42, 0.09), 0 6px 12px -3px rgba(15, 23, 42, 0.04);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #07090e;
  --surface: #0f131d;
  --surface-card: #111726;
  --surface-glass: rgba(15, 19, 29, 0.88);
  --surface-hover: #192236;
  --surface-subtle: #0d111a;
  --border: #1e2638;
  --border-strong: #2c3852;
  --ink: #f8fafc;
  --ink-secondary: #e2e8f0;
  --dim: #94a3b8;
  --faint: #64748b;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: rgba(249, 115, 22, 0.12);
  --brand-glow: rgba(249, 115, 22, 0.22);
  --brand-blue: #3b82f6;
  --brand-purple: #a855f7;
  --new-fg: #4ade80;
  --new-bg: rgba(74, 222, 128, 0.12);
  --new-border: rgba(74, 222, 128, 0.25);
  --badge-bg: #161e2e;
  --badge-fg: #cbd5e1;
  --badge-border: #222e44;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px -2px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 36px -4px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07090e;
    --surface: #0f131d;
    --surface-card: #111726;
    --surface-glass: rgba(15, 19, 29, 0.88);
    --surface-hover: #192236;
    --surface-subtle: #0d111a;
    --border: #1e2638;
    --border-strong: #2c3852;
    --ink: #f8fafc;
    --ink-secondary: #e2e8f0;
    --dim: #94a3b8;
    --faint: #64748b;
    --brand: #f97316;
    --brand-dark: #ea580c;
    --brand-soft: rgba(249, 115, 22, 0.12);
    --brand-glow: rgba(249, 115, 22, 0.22);
    --brand-blue: #3b82f6;
    --brand-purple: #a855f7;
    --new-fg: #4ade80;
    --new-bg: rgba(74, 222, 128, 0.12);
    --new-border: rgba(74, 222, 128, 0.25);
    --badge-bg: #161e2e;
    --badge-fg: #cbd5e1;
    --badge-border: #222e44;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 18px -2px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 16px 36px -4px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* Base & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button, input, select {
  font-family: inherit;
  touch-action: manipulation;
}

/* Visual Accents (Glow & Subtle Grid) */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 100vw);
  max-width: 100vw;
  height: 480px;
  background: radial-gradient(circle, var(--brand-glow) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.grid-pattern {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 420px;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 24px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand-accent {
  color: var(--brand);
}
.brand-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.35));
}
.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(-3deg);
}
.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 3px 8px var(--brand-glow);
  flex-shrink: 0;
}
.badge-country {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--brand-glow);
}
.version-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--surface-subtle);
  color: var(--dim);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.nav-btn:hover, .theme-toggle:hover, .theme-toggle-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.nav-btn:active, .theme-toggle:active, .theme-toggle-btn:active {
  transform: translateY(0);
}
.nav-btn-text-mobile { display: none; }
.theme-toggle, .theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 0;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 8vw, 84px) clamp(12px, 3vw, 24px) 32px;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  color: var(--dim);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
  animation: pulse-ring 2.2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.hero h1 {
  font-size: clamp(24px, 5.2vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  color: var(--ink);
  line-height: 1.15;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #f97316 50%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(14px, 2.2vw, 16.5px);
  color: var(--dim);
  max-width: 700px;
  margin: 0 auto clamp(20px, 4vw, 36px);
  line-height: 1.6;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.8vw, 14px);
  max-width: 960px;
  margin: 0 auto;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.metric-icon-wrap {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--faint);
  opacity: 0.6;
}
.metric-label {
  font-size: 11.5px;
  color: var(--dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.metric-value {
  font-size: clamp(20px, 3.2vw, 24px);
  font-weight: 800;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.metric-cadence-val {
  font-size: clamp(14px, 2.2vw, 19px);
  margin-top: 8px;
}
.metric-sub {
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
  font-weight: 500;
}

/* Controls Dock */
.controls-wrap {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 0 clamp(12px, 3vw, 24px);
}
.controls-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(14px, 2.5vw, 22px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Search row */
.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 48px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  padding: 0 80px 0 44px;
  font-size: 14.5px;
  transition: all 0.2s ease;
  outline: none;
}
.search-input:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.search-kbd-hint {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--badge-bg);
  border: 1px solid var(--border);
  color: var(--faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  pointer-events: none;
}
.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--faint);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.clear-btn:hover { color: var(--ink); background: var(--surface-hover); }

.select-box {
  height: 48px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.15s;
}
.select-box:focus { border-color: var(--brand); }
.select-box.is-filtered {
  border-color: var(--brand);
  background-color: var(--brand-soft);
  color: var(--brand);
}
.mobile-filter-select {
  display: none;
}

.view-switch-box {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  padding: 4px;
  gap: 4px;
}
.view-btn {
  width: 40px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.view-btn:hover { color: var(--ink); }
.view-btn.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* Hub & Filter Bars */
.hub-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.hub-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--faint);
  letter-spacing: 0.05em;
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hub-btn, .filter-pill, .toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--dim);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.hub-btn span.count, .hub-btn span.badge, .filter-pill span.cat-count, .filter-pill span.pill-count, .toggle-count {
  background: var(--badge-bg);
  color: var(--faint);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-block;
  margin-left: 3px;
  line-height: 1.3;
}
.hub-btn:hover, .filter-pill:hover, .toggle-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
  border-color: var(--border-strong);
}
.hub-btn.active {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.hub-btn.active span.count, .hub-btn.active span.badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--surface);
}
:root[data-theme="dark"] .hub-btn.active {
  background: #f1f5f9;
  color: #0b0f17;
  border-color: #f1f5f9;
}
:root[data-theme="dark"] .hub-btn.active span.count, :root[data-theme="dark"] .hub-btn.active span.badge {
  background: rgba(11, 15, 23, 0.22);
  color: #0b0f17;
}

.pills-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.role-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}
.filter-pill.active span.cat-count, .filter-pill.active span.pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.quick-toggles { display: flex; gap: 8px; align-items: center; }
.toggle-btn.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* Job Listings Layout */
.jobs-container {
  max-width: 1240px;
  margin: 22px auto 60px;
  padding: 0 clamp(12px, 3vw, 24px);
  flex: 1;
  width: 100%;
}
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--dim);
  font-weight: 600;
}
.results-count { color: var(--ink); font-weight: 700; }

/* Job Card (Cards View) */
.job-grid-cards { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(14px, 2.5vw, 20px) clamp(16px, 2.5vw, 22px);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.job-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3.5px;
  background: transparent;
  transition: background 0.18s ease;
}
.job-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.job-card:hover::before { background: var(--brand); }

.job-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.company-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.company-avatar img.company-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
:root[data-theme="dark"] .company-avatar {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.job-details { flex: 1; min-width: 0; }
.job-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.company-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
}
.role-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.35;
}
.role-name a:hover { color: var(--brand-blue); }

.badge-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-status.new {
  background: var(--new-bg);
  color: var(--new-fg);
  border: 1px solid var(--new-border);
}
.badge-status.new::before {
  content: "▲";
  font-size: 7.5px;
  line-height: 1;
}

.chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--badge-bg);
  color: var(--badge-fg);
  border: 1px solid var(--badge-border);
}
.chip.hub {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-glow);
}
.chip.cat-ai {
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-purple);
  border-color: rgba(124, 58, 237, 0.2);
}
.chip.cat-hw {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.2);
}
.chip svg {
  width: 12px;
  height: 12px;
  opacity: 0.85;
  flex-shrink: 0;
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.action-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.action-icon-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
  border-color: var(--border-strong);
}
.action-icon-btn.saved {
  color: #eab308;
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--surface);
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.btn-apply:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-apply svg { transition: transform 0.15s; }
.btn-apply:hover svg { transform: translateX(2px) translateY(-2px); }
:root[data-theme="dark"] .btn-apply {
  background: #f8fafc;
  color: #07090e;
}

/* Compact Table Layout */
.job-grid-compact {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compact-header, .compact-row {
  display: grid;
  grid-template-columns: 2.5fr 1.2fr 1.2fr 1fr 140px;
  padding: 13px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.compact-header {
  background: var(--surface-subtle);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim);
}
.compact-row:last-child { border-bottom: none; }
.compact-row:hover { background: var(--surface-hover); }
.compact-role {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.compact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11.5px;
  color: #0f172a;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
}
.compact-avatar img.compact-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
:root[data-theme="dark"] .compact-avatar {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}
.compact-title-box { min-width: 0; }
.compact-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-sub {
  font-size: 12px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.compact-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.compact-btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ink);
  color: var(--surface);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.15s;
}
:root[data-theme="dark"] .compact-btn-apply {
  background: #f8fafc;
  color: #07090e;
}
.compact-meta-inline { display: none; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  color: var(--dim);
}
.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--faint);
}
.empty-state h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 700;
}
.btn-reset {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-reset:hover {
  background: var(--surface-hover);
  border-color: var(--brand);
  color: var(--brand);
}

/* Toast Notification */
.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast-box.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
:root[data-theme="dark"] .toast-box {
  background: #ffffff;
  color: #07090e;
}

/* Info & FAQ Section */
.info-section {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto 60px;
  padding: 0 clamp(12px, 3vw, 24px);
}
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}
.info-box h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.info-title-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}
.info-badge-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(249, 115, 22, 0.3));
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.faq-card {
  padding: 18px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}
.faq-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.faq-card p {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.55;
}

/* ==========================================================================
   Modern Global & Regional Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 24px 36px;
  background: var(--surface);
  color: var(--dim);
  margin-top: auto;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}
.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 320px;
}
.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  white-space: nowrap;
}
[data-theme="light"] .footer-status-pill {
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}
.footer-status-pill .pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  color: var(--dim);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}
.footer-col a:hover {
  color: var(--brand);
  transform: translateX(2px);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--dim);
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-bottom-links a {
  color: var(--dim);
  font-size: 12.5px;
  text-decoration: none;
}
.footer-bottom-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints (Comprehensive Mobile Overhaul)
   ========================================================================== */

/* Tablets & Small Desktops (< 960px) */
@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Mobile & Small Tablets (< 768px) */
@media (max-width: 768px) {
  /* Prevent horizontal scrollbars & viewport drift */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
  }

  /* Compact Sleek Navbar */
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .nav-inner {
    height: 56px;
    padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    gap: 8px;
  }
  .nav-brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .brand-logo {
    font-size: 15px;
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-logo-img {
    width: 28px;
    height: 28px;
  }
  .brand-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .country-selector-wrap {
    position: relative;
    margin-left: 2px;
  }
  .country-pill-btn {
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    gap: 4px;
    border-radius: 8px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    white-space: nowrap;
  }
  .country-dropdown-menu {
    position: absolute;
    min-width: 190px;
    max-width: calc(100vw - 28px);
    top: calc(100% + 6px);
    z-index: 1000;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  /* Remove text labels in mobile navbar to prevent horizontal overflow */
  .nav-btn-text,
  .nav-btn-text-mobile {
    display: none !important;
  }
  /* Hide secondary wide links that clutter mobile navigation */
  .nav-btn[href*="companies.md"],
  .nav-btn[href*="regions/"],
  .nav-btn[href="#countries"],
  .nav-btn[href*="/in/"] {
    display: none !important;
  }
  /* Turn remaining actions (Docs, GitHub) into uniform 36x36 square icon buttons */
  .nav-btn {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    flex-shrink: 0;
    box-sizing: border-box;
  }
  .theme-toggle, .theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Compact Hero */
  .hero {
    padding: 24px max(14px, env(safe-area-inset-right)) 16px max(14px, env(safe-area-inset-left));
  }
  .hero-pill {
    margin-bottom: 12px;
    font-size: 11px;
    padding: 4px 10px;
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
  .hero h1 {
    font-size: clamp(23px, 6vw, 30px);
    line-height: 1.22;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
    text-wrap: balance;
    word-break: break-word;
  }
  .hero h1 .gradient-text {
    display: inline-block;
    white-space: nowrap;
  }
  .hero p {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--dim);
    margin: 0 auto 18px;
    max-width: 96%;
    text-wrap: pretty;
  }

  /* Compact Metrics Grid (2x2) */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 100%;
  }
  .metric-card {
    padding: 12px 14px;
    border-radius: 12px;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .metric-icon-wrap { display: none; }
  .metric-label {
    font-size: 10px;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--dim);
  }
  .metric-value {
    font-size: 19px;
    margin-top: 2px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
  }
  .metric-cadence-val {
    font-size: 12.5px;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.2;
  }
  .metric-sub {
    font-size: 10px;
    margin-top: 2px;
    color: var(--faint);
    line-height: 1.25;
  }

  /* Controls Dock */
  .controls-wrap {
    margin: 14px auto 0;
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }
  .controls-box {
    padding: 12px;
    border-radius: 14px;
    gap: 8px;
    box-shadow: var(--shadow-sm);
  }
  .search-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
  .search-input-wrap {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    position: relative !important;
  }
  .search-input {
    font-size: 16px !important; /* CRITICAL: Prevents unwanted iOS auto-zoom on focus */
    height: 42px;
    padding: 0 36px 0 38px;
    border-radius: 9px;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--ink);
  }
  .search-icon {
    left: 12px;
    width: 15px;
    height: 15px;
  }
  .search-kbd-hint { display: none !important; }
  .mobile-filter-select {
    display: block !important;
  }
  .select-box {
    min-width: 0 !important;
    width: 100% !important;
    height: 40px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 24px 0 10px !important;
    border-radius: 9px !important;
    border: 1px solid var(--border-strong) !important;
    background: var(--bg) !important;
    color: var(--ink) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
  }
  .select-box.is-filtered {
    border-color: var(--brand) !important;
    color: var(--brand) !important;
    background-color: var(--brand-soft) !important;
  }
  #category-select {
    grid-column: 1 !important;
  }
  #hub-select {
    grid-column: 2 !important;
  }
  #company-select {
    grid-column: 1 !important;
  }
  #sort-select {
    grid-column: 2 !important;
  }
  .view-switch-box {
    display: none !important;
  }

  /* Hide horizontal strips on mobile - replaced by vertical dropdown selectors above */
  .hub-filter-bar {
    display: none !important;
  }
  #category-pills {
    display: none !important;
  }

  .pills-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: stretch !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
  .quick-toggles {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    overflow-x: visible !important;
  }
  .toggle-btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 9px !important;
    height: 36px !important;
    gap: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  @media (max-width: 360px) {
    .search-row {
      grid-template-columns: 1fr !important;
    }
    #category-select,
    #hub-select,
    #company-select,
    #sort-select {
      grid-column: 1 / -1 !important;
    }
    .quick-toggles {
      flex-direction: column !important;
    }
  }

  /* Results Bar */
  .jobs-container {
    margin: 16px auto 36px;
    padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    width: 100%;
    box-sizing: border-box;
  }
  .results-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    font-size: 13px;
    gap: 8px;
    padding: 0 2px;
  }
  .results-bar > div:first-child {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--dim);
  }
  .results-count { font-weight: 800; color: var(--ink); }
  #last-updated-text {
    font-size: 11px;
    color: var(--faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    min-width: 0;
    flex: 1;
  }

  /* Job Listings & Card */
  .job-grid-cards {
    gap: 12px;
    width: 100%;
  }
  .job-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    border-radius: 14px;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
  }
  .job-left {
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
  }
  .company-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .company-avatar img.company-logo-img {
    width: 24px;
    height: 24px;
  }
  .job-details {
    flex: 1;
    min-width: 0;
  }
  .job-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
  }
  .company-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dim);
  }
  .badge-status {
    font-size: 9.5px;
    padding: 2px 6px;
    border-radius: 5px;
  }
  .role-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
  }
  .chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }
  .chip {
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 6px;
    gap: 4px;
  }
  .chip svg { width: 11px; height: 11px; }

  /* Actions Row */
  .job-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
  }
  .action-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .action-icon-btn svg { width: 16px; height: 16px; }
  .btn-apply {
    height: 40px;
    flex: 1;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
  }

  /* Compact Table on Mobile */
  .compact-header { display: none; }
  .compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
  }
  .compact-col-loc, .compact-col-cat, .compact-col-date { display: none; }
  .compact-meta-inline { display: inline; color: var(--dim); font-size: 11px; }
  .compact-role { flex: 1; min-width: 0; }
  .compact-actions { flex-shrink: 0; gap: 6px; }

  /* Toast Notification */
  .toast-box {
    left: 12px;
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    justify-content: center;
    border-radius: 11px;
    padding: 11px 18px;
    font-size: 13px;
  }

  /* Global Hero & Grid */
  .global-hero {
    padding: 24px 14px 16px;
  }
  .global-hero h1 {
    font-size: clamp(22px, 5.8vw, 30px);
    line-height: 1.2;
    margin-bottom: 8px;
    text-wrap: balance;
  }
  .global-hero p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    text-wrap: pretty;
  }
  .country-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px;
    margin: 16px auto 36px;
  }
  .country-card {
    padding: 18px;
    border-radius: 14px;
  }
  .country-card-flag { font-size: 32px; }
  .country-card-title { font-size: 18px; }
  .country-card-desc {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .features-container {
    margin: 20px auto 36px;
    padding: 0 12px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature-card {
    padding: 18px;
    border-radius: 14px;
  }

  /* Footer on Mobile */
  .footer {
    padding: 36px max(14px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }
  .footer-brand {
    gap: 10px;
  }
  .footer-brand-desc {
    font-size: 13px;
    max-width: 100%;
    line-height: 1.55;
  }
  .footer-col h4 {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .footer-col ul {
    gap: 8px;
  }
  .footer-col a {
    font-size: 13.5px;
    padding: 5px 0;
    display: inline-block;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding-top: 18px;
    font-size: 11.5px;
  }
  .footer-bottom-links {
    justify-content: center;
    gap: 14px;
  }

  /* FAQ / Value prop section on mobile */
  .info-section {
    margin: 0 auto 36px;
    padding: 0 12px;
  }
  .info-box {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .info-box h2 {
    font-size: 18px;
    margin-bottom: 16px;
    gap: 8px;
  }
  .info-title-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .info-badge-img {
    width: 18px;
    height: 18px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .faq-card {
    padding: 14px;
    border-radius: 11px;
  }
  .faq-card h4 {
    font-size: 13.5px;
    margin-bottom: 6px;
  }
  .faq-card p {
    font-size: 12.5px;
    line-height: 1.5;
  }
}

/* Phones (< 440px): 2-column dropdowns & cards-first layout */
@media (max-width: 440px) {
  .search-row {
    grid-template-columns: 1fr 1fr;
  }
  .view-switch-box {
    display: none;
  }
}

/* Very Small Phones (< 360px): Minimal icon navbar */
@media (max-width: 360px) {
  .brand-logo span {
    font-size: 14px;
  }
  .country-pill-btn span {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-btn[href*="docs/"] {
    display: none !important;
  }
}

/* Native Touch Micro-interactions */
@media (hover: none) and (pointer: coarse) {
  .btn-apply:active,
  .action-icon-btn:active,
  .nav-btn:active,
  .theme-toggle:active,
  .hub-btn:active,
  .filter-pill:active,
  .toggle-btn:active,
  .country-pill-btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.08s ease;
  }
}

/* ==========================================================================
   Documentation & Telegram Bot Section Styles
   ========================================================================== */
.docs-section {
  max-width: 1240px;
  width: 100%;
  margin: 36px auto 24px;
  padding: 0 clamp(12px, 3vw, 24px);
}

.docs-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.docs-header {
  margin-bottom: 24px;
}

.docs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-glow);
  margin-bottom: 12px;
}

.docs-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.docs-desc {
  font-size: 14px;
  color: var(--dim);
  max-width: 720px;
  line-height: 1.6;
}

/* Tabs */
.docs-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.docs-tabs-nav::-webkit-scrollbar { display: none; }

.docs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--dim);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.docs-tab-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
  border-color: var(--border-strong);
}

.docs-tab-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.docs-tab-panel {
  display: none;
}
.docs-tab-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Endpoint Card */
.api-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.api-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.api-endpoint-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.method-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
:root[data-theme="dark"] .method-badge {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.endpoint-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.api-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.api-copy-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.code-box {
  background: #0b0f19;
  border: 1px solid #1e2638;
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 10px 0;
  position: relative;
}
.code-box pre {
  margin: 0;
}
.code-box code {
  font-family: inherit;
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.feature-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.feature-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-box p {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.55;
  margin: 0;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}
.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.step-content p {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .docs-section {
    margin: 20px auto 16px;
    padding: 0 12px;
  }
  .docs-container, .info-box {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .docs-title {
    font-size: 19px;
  }
  .docs-desc {
    font-size: 13px;
  }
  .docs-tabs-nav {
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }
  .docs-tab-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
  }
  .api-card {
    padding: 14px;
    border-radius: 12px;
  }
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature-box {
    padding: 14px;
    border-radius: 10px;
  }
  .code-box {
    padding: 10px 12px;
    font-size: 11px;
    border-radius: 8px;
  }
}

/* ==========================================================================
   Navbar Brand & Country Switcher
   ========================================================================== */
.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.country-selector-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.country-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--ink-secondary);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1.4;
  user-select: none;
}
.country-pill-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.country-selector-wrap.open .country-pill-btn {
  background: var(--surface-hover);
  color: var(--ink);
}
.country-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border);
  padding: 6px;
  z-index: 1000;
  display: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeInDown 0.15s ease-out;
}
.country-selector-wrap.open .country-dropdown-menu {
  display: block;
}
.country-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.country-menu-item .flag {
  font-size: 15px;
  line-height: 1;
}
.country-menu-item:hover {
  background: var(--surface-card-hover);
  color: var(--ink);
}
.country-menu-item.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Global Homepage Elements
   ========================================================================== */
.global-hero {
  text-align: center;
  padding: clamp(56px, 8vw, 84px) 20px 32px;
  max-width: 860px;
  margin: 0 auto;
}
.global-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.global-hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--dim);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 20px auto 60px;
  padding: 0 clamp(12px, 3vw, 24px);
}
.country-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.country-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg), 0 0 28px var(--brand-glow);
}
.country-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.country-card-flag {
  font-size: 38px;
  line-height: 1;
}
.country-card-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-glow);
}
.country-card-title {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.country-card-desc {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.5;
  margin-bottom: 18px;
}
.country-card-hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.country-hub-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}
.country-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand);
}

/* Features Grid (Symmetric Horizontal Row on Desktop) */
.features-container {
  max-width: 1240px;
  margin: 50px auto 80px;
  padding: 0 clamp(12px, 3vw, 24px);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(249, 115, 22, 0.1);
}
.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.feature-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}
@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}



