:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-primary-soft: #eff6ff;
  --brand-primary-border: #bfdbfe;
  
  --accent-emerald: #059669;
  --accent-emerald-soft: #ecfdf5;
  --accent-emerald-border: #a7f3d0;
  
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 30px -6px rgba(15, 23, 42, 0.1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

button, input {
  font-family: inherit;
}

.shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-180%);
  background: var(--text-heading);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  z-index: 10000;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.brand-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--brand-primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
}

.site-nav > a {
  position: relative;
  padding: 6px 4px;
  color: var(--text-body);
  transition: color 0.15s;
}

.site-nav > a:hover {
  color: var(--brand-primary);
}

.site-nav > a[aria-current="page"] {
  color: var(--brand-primary);
  font-weight: 700;
}

.site-nav > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px !important;
  background: var(--brand-primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s, transform 0.15s !important;
}

.nav-contact:hover {
  background: var(--brand-primary-hover) !important;
  transform: translateY(-1px);
}

.nav-contact[aria-current="page"]::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Badges & Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald-soft);
  border: 1px solid var(--accent-emerald-border);
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.eyebrow, .section-kicker {
  display: inline-block;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Hero Section */
.hero {
  padding: 44px 0 52px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 44px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-heading);
}

.hero h1 em {
  font-style: normal;
  color: var(--brand-primary);
  background: linear-gradient(135deg, #2563eb, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--text-heading);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-surface);
  color: var(--text-heading);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  transform: translateY(-2px);
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  padding: 12px 14px;
}

.btn-quiet:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero Visual / Photo Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.photo-card-wrap {
  position: relative;
  max-width: 440px;
  width: 100%;
}

.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s;
}

.photo-card:hover img {
  transform: scale(1.02);
}

.photo-badge-bottom {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

.photo-badge-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-badge-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
}

/* Circular Photo Component for Home Hero */
.photo-circle-wrap {
  position: relative;
  width: min(390px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-circle {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-surface);
  border: 5px solid #ffffff;
  box-shadow: 0 0 0 1px var(--border-subtle), 0 20px 40px -10px rgba(15, 23, 42, 0.16), 0 0 0 10px rgba(37, 99, 235, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.photo-circle:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 0 0 1px var(--brand-primary-border), 0 25px 45px -10px rgba(37, 99, 235, 0.22), 0 0 0 12px rgba(37, 99, 235, 0.12);
}

.photo-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-circle:hover img {
  transform: scale(1.04);
}

.photo-circle-badge {
  margin-top: -24px;
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: transform 0.2s ease;
}

.photo-circle-wrap:hover .photo-circle-badge {
  transform: translateY(-2px);
}

.photo-circle-badge .photo-badge-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.photo-circle-badge .photo-badge-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Aligned Caption Below Photo Circle */
.photo-circle-caption {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.caption-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.caption-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
}

.caption-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-status-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Metrics Band */
.metrics-band {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-subtle);
  padding: 22px 0;
  box-shadow: var(--shadow-sm);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid var(--border-subtle);
}

.metric-item:first-child {
  border-left: none;
  padding-left: 0;
}

.metric-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* General Sections */
.section {
  padding: 52px 0;
}

.section-tint {
  background: var(--bg-surface);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.section-heading p:not(.eyebrow) {
  font-size: 17px;
  color: var(--text-muted);
}

/* Work / Case Studies Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* About & Skills Page Layouts */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.education-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary-border);
}

.work-card.work-card-primary, .work-card-primary {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #fff;
  border-color: #334155;
}

.work-card.work-card-primary .card-index, .work-card-primary .card-index {
  color: #60a5fa !important;
}

.work-card.work-card-primary h3, .work-card-primary h3 {
  color: #ffffff !important;
}

.work-card.work-card-primary p, .work-card-primary p {
  color: #cbd5e1 !important;
}

.work-card.work-card-primary .arrow-link, .work-card-primary .arrow-link {
  color: #93c5fd !important;
}

.card-index {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  text-transform: uppercase;
}

.work-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-heading);
}

.work-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.mini-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 24px;
}

.mini-flow i {
  display: block;
  width: 16px;
  height: 1px;
  background: #cbd5e1;
}

.arrow-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
}

.work-card-primary .arrow-link {
  color: #93c5fd;
}

.arrow-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Vibe Coder & AI Ecosystem Section */
.vibe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.vibe-card {
  padding: 22px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.vibe-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
}

.vibe-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.vibe-card-header .vibe-card-icon {
  font-size: 22px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.vibe-card-header h3 {
  font-size: 16px;
  font-weight: 750;
  color: var(--text-heading);
  margin: 0;
}

.vibe-card-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.vibe-card h3 {
  font-size: 16px;
  font-weight: 750;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.vibe-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.vibe-tools-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.vibe-tools-tag span {
  padding: 4px 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-body);
}

/* Timeline / Experience */
.role-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.role-card:first-child {
  padding-top: 0;
}

.role-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
}

.role-company {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
}

.role-location {
  font-size: 13px;
  color: var(--text-muted);
}

.role-content h2, .role-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.role-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 14px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  background: none;
  border: 0;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Case Studies Section */
.case-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.case-nav a {
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.case-nav a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  transform: translateY(-1px);
}

.case-study {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.case-study:last-child {
  border-bottom: 0;
}

.case-study header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.case-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-mono);
  flex-shrink: 0;
  border: 1px solid var(--brand-primary-border);
}

.case-study header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: 4px 0 8px;
}

.case-study header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

.case-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
  align-items: start;
}

.case-content-grid h3 {
  font-size: 18px;
  font-weight: 750;
  color: var(--text-heading);
  margin: 20px 0 8px;
}

.case-content-grid h3:first-child {
  margin-top: 0;
}

.case-content-grid p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 16px;
}

.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.workflow-card > span {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.vertical-flow {
  list-style: none;
  counter-reset: workflow-counter;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vertical-flow li {
  counter-increment: workflow-counter;
  position: relative;
  padding: 10px 14px 10px 40px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  transition: all 0.2s;
}

.vertical-flow li:hover {
  background: #ffffff;
  border-color: var(--brand-primary-border);
  transform: translateX(4px);
}

.vertical-flow li::before {
  content: counter(workflow-counter, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-primary);
}

.horizontal-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  -webkit-overflow-scrolling: touch;
}

.horizontal-flow span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
  min-width: 120px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.horizontal-flow span:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.horizontal-flow i {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--border-medium);
  position: relative;
  flex-shrink: 0;
}

.horizontal-flow i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--brand-primary);
  border-right: 2px solid var(--brand-primary);
  transform: rotate(45deg);
}

.case-detail-grid, .stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.case-detail-grid.six-grid {
  grid-template-columns: repeat(3, 1fr);
}

.case-detail-grid article, .stage-grid article {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-detail-grid article:hover, .stage-grid article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-border);
}

.case-detail-grid article h3, .stage-grid article h3 {
  font-size: 16px;
  font-weight: 750;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.case-detail-grid article p, .stage-grid article p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

/* Interactive Requirement Demo on Case Studies */
.requirement-demo {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 32px 0;
}

.demo-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  overflow-x: auto;
}

.demo-tabs button {
  flex: 1;
  min-width: 140px;
  padding: 14px 12px;
  border: 0;
  background: transparent;
  border-right: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-tabs button:hover {
  color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.6);
}

.demo-tabs button[aria-selected="true"] {
  background: var(--bg-surface);
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
}

.demo-panel {
  padding: 36px 32px;
  min-height: 180px;
}

.demo-panel > span {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.demo-panel h3 {
  font-size: 22px;
  font-weight: 750;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 12px;
}

.demo-panel p {
  font-size: 15px;
  color: var(--text-body);
  max-width: 680px;
}

/* Blog & Filter Section */
.blog-controls {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  font-size: 14px;
  color: var(--text-heading);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

.search-icon svg {
  display: block;
  stroke: var(--text-muted);
  transition: stroke 0.2s;
}

.search-box:focus-within .search-icon svg {
  stroke: var(--brand-primary);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row button {
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-row button:hover {
  border-color: var(--border-medium);
  background: var(--bg-subtle);
}

.filter-row button.active {
  background: var(--text-heading);
  border-color: var(--text-heading);
  color: #fff;
}

.blog-list-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-list-card[hidden] {
  display: none;
}

.blog-list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.blog-list-meta span:first-child {
  color: var(--brand-primary);
}

.blog-list-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.blog-list-card h2 a:hover {
  color: var(--brand-primary);
}

.blog-list-card p {
  font-size: 15px;
  color: var(--text-body);
  max-width: 760px;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.tag-list li {
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl, 22px);
  padding: 56px 48px;
  margin: 64px 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner .eyebrow,
.cta-banner .cta-eyebrow {
  color: #60a5fa !important;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-banner h2 {
  color: #ffffff !important;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px;
  line-height: 1.65;
  color: #cbd5e1 !important;
  max-width: 560px;
}

.cta-banner .btn-primary {
  background: #ffffff !important;
  color: #0f172a !important;
  border: none;
  font-weight: 750;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.cta-banner .btn-primary:hover {
  background: #f8fafc !important;
  color: var(--brand-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
}

.footer-contact-link:hover {
  color: var(--brand-primary);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
}

.social-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-light);
}

/* Article Layout */
.article-hero {
  max-width: 840px;
  padding: 48px 0 36px;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.article-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-heading);
  margin: 12px 0 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-meta span:first-child {
  color: var(--brand-primary);
}

.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding-bottom: 80px;
}

.article-aside {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 2px solid var(--brand-primary);
  padding-top: 16px;
}

.article-content {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
}

.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 750;
  color: var(--text-heading);
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li + li {
  margin-top: 8px;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--brand-primary);
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text-heading);
}

/* Contact Page Cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-border);
}

.contact-card span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-card strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 0 44px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 6.5vw, 2.9rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  .hero-intro {
    max-width: 560px;
    font-size: 16px;
    line-height: 1.62;
    margin-top: 14px;
    text-wrap: pretty;
  }
  .hero-cta {
    justify-content: center;
    width: 100%;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-cta .btn-primary,
  .hero-cta .hero-btn-secondary {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
  }
  .hero-btn-secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    color: var(--text-heading);
    box-shadow: var(--shadow-sm);
  }
  .hero-btn-secondary:hover {
    background: var(--bg-surface-elevated);
    color: var(--brand-primary);
  }
  .hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .photo-card-wrap {
    max-width: 360px;
  }
  .photo-card img {
    height: 400px;
  }
  .photo-circle-wrap {
    max-width: 290px;
  }
  .photo-circle {
    width: min(260px, 100%);
  }
  .metrics-band {
    padding: 24px 0;
    background: transparent;
    border-block: none;
    box-shadow: none;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .metric-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    border-left: 1px solid var(--border-subtle);
  }
  .metric-item:first-child {
    border-left: 1px solid var(--border-subtle);
    padding-left: 16px;
  }
  .metric-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.1;
  }
  .metric-label {
    font-size: 11.5px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-heading);
    margin-top: 2px;
  }
  .metric-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
  }
  .work-grid, .vibe-grid, .contact-grid, .about-grid, .education-grid, .skills-grid, .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-card, .vibe-card, .work-card {
    padding: 22px 20px;
    border-radius: 16px;
  }
  .case-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .case-detail-grid, .stage-grid, .case-detail-grid.six-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside {
    display: none;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1200px);
  }
  .section {
    padding: 38px 0;
  }
  .section-heading {
    margin-bottom: 24px;
  }
  .section-heading h2 {
    font-size: clamp(1.6rem, 5.5vw, 1.95rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
  }
  .section-heading p {
    font-size: 14.5px;
    line-height: 1.6;
    margin-top: 8px;
  }
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }
  .section-header-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .menu-toggle {
    display: block;
  }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(3px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    transform: translateY(-3px) rotate(-45deg);
  }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px 24px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav > a {
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--bg-subtle);
  }
  .site-nav > a[aria-current="page"]::after {
    display: none;
  }
  .nav-contact {
    margin-top: 12px;
    justify-content: center;
  }
  .hero {
    gap: 28px;
    padding: 24px 0 36px;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.45rem);
    line-height: 1.18;
  }
  .hero-intro {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 12px;
  }
  .hero-cta {
    margin-top: 20px;
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn-primary,
  .hero-cta .hero-btn-secondary {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .photo-circle-wrap {
    max-width: 250px;
  }
  .photo-circle {
    width: min(220px, 100%);
    border-width: 4px;
    box-shadow: 0 0 0 1px var(--border-subtle), 0 14px 30px -8px rgba(15, 23, 42, 0.16), 0 0 0 6px rgba(37, 99, 235, 0.08);
  }
  .hero-status-pill {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 12px;
  }
  .caption-name {
    font-size: 16px;
  }
  .caption-role {
    font-size: 13px;
  }
  .caption-tag {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .metric-item {
    padding: 14px 12px;
  }
  .metric-number {
    font-size: 21px;
  }
  .metric-label {
    font-size: 11px;
  }
  .service-card, .vibe-card, .work-card {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .service-header-text h3 {
    font-size: 16px;
  }
  .service-points li {
    font-size: 12.5px;
  }
  .mini-flow {
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 10.5px;
  }
  .role-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .case-study header {
    flex-direction: column;
    gap: 14px;
  }
  .case-detail-grid, .stage-grid, .case-detail-grid.six-grid {
    grid-template-columns: 1fr;
  }
  .case-nav {
    gap: 8px;
  }
  .case-nav a {
    font-size: 12px;
    padding: 6px 12px;
  }
  .blog-controls {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
  }
  .cta-banner > div:last-child {
    justify-content: center;
    margin-top: 18px;
  }
  .cta-banner .btn-primary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}


/* ==========================================================================
   RESUME GATE MODAL & SECURITY STYLES
   ========================================================================== */

.resume-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.resume-gate-overlay.active {
  visibility: visible;
  opacity: 1;
}

.resume-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.resume-gate-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 36px 32px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.resume-gate-overlay.active .resume-gate-modal {
  transform: translateY(0) scale(1);
}

.gate-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.gate-close-btn:hover {
  color: var(--text-heading);
  background: var(--bg-surface-elevated);
}

.gate-step-view {
  display: none;
}

.gate-step-view.active {
  display: block;
  animation: gateFadeIn 0.3s ease-out;
}

@keyframes gateFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.gate-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.gate-icon-badge.step2-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.gate-icon-badge.success-badge {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald-border);
}

.gate-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.gate-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.gate-subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 22px;
}

.highlight-email {
  color: var(--brand-primary);
  font-family: var(--font-mono);
  word-break: break-all;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate-field label {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-heading);
}

.gate-req {
  color: var(--accent-rose);
}

.gate-input, .gate-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gate-input:focus, .gate-select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.gate-input.error, .gate-select.error, .gate-otp-input.error {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.gate-field-error {
  font-size: 12px;
  color: var(--accent-rose);
  min-height: 16px;
}

.gate-security-note {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--brand-primary);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
}

.gate-security-note .lock-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.gate-security-note code {
  color: #1d4ed8;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
}

.gate-submit-btn {
  width: 100%;
  padding: 13px 20px;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.15s;
}

.gate-submit-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.gate-back-btn {
  padding: 13px 18px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.gate-back-btn:hover {
  background: var(--border-subtle);
  color: var(--text-heading);
}

/* OTP dev banner & inputs */
.otp-dev-banner {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.otp-dev-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.otp-dev-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  animation: devPulse 1.5s infinite;
}

@keyframes devPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.otp-dev-banner p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 10px;
}

.otp-display-code {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #60a5fa;
  background: rgba(15, 23, 42, 0.8);
  border: 1px dashed rgba(96, 165, 250, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.otp-display-code:hover {
  background: rgba(15, 23, 42, 1);
  border-color: #93c5fd;
}

.otp-dev-banner small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

.gate-otp-input {
  width: 100%;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0.35em;
  text-align: center;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gate-otp-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.otp-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.gate-text-link {
  background: transparent;
  border: none;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.gate-text-link:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Step 3 Card */
.gate-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 20px;
  gap: 16px;
}

.download-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-tag {
  font-size: 11px;
  font-weight: 800;
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.download-card-meta strong {
  display: block;
  font-size: 13px;
  color: var(--text-heading);
}

.download-card-meta p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.gate-redownload-btn {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.gate-redownload-btn:hover {
  background: rgba(59, 130, 246, 0.25);
}


/* ==========================================================================
   ANALYTICS DASHBOARD STYLES
   ========================================================================== */

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.analytics-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .analytics-flow-grid {
    grid-template-columns: 1fr;
  }
}

.flow-card, .data-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.flow-card-header, .table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.flow-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.entry-tag {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.exit-tag {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 16px;
}

.flow-item-route {
  flex: 1;
}

.flow-progress-bar {
  width: 100%;
  height: 5px;
  background: var(--border-subtle);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.flow-progress-fill {
  height: 100%;
  border-radius: 3px;
}

.flow-item-count {
  text-align: right;
}

.flow-item-count strong {
  display: block;
  font-size: 16px;
  color: var(--text-heading);
}

.flow-item-count span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Analytics Tables */
.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.analytics-table th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-medium);
  background: rgba(15, 23, 42, 0.4);
}

.analytics-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
  vertical-align: middle;
}

.analytics-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-entry {
  display: inline-block;
  padding: 3px 8px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.badge-exit {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.badge-purpose {
  font-size: 12px;
  padding: 3px 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-heading);
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 750;
  color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
  border: 1px solid var(--accent-emerald-border);
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-pending {
  font-size: 12px;
  font-weight: 750;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

.journey-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.journey-node {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 7px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-heading);
}

.journey-node.is-exit {
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}

.journey-arrow {
  color: var(--text-muted);
  font-size: 12px;
}


/* ==========================================================================
   CORE ERP SERVICES & BUSINESS ANALYSIS SECTION (OPTIMIZED DESKTOP LAYOUT)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-border);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.service-card-header .service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 0;
  flex-shrink: 0;
  border: 1px solid var(--brand-primary-border);
}

.service-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.service-card-header h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.25;
}

.service-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}

.service-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: auto;
}

.service-points li {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-points li::before {
  content: "✓";
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 12px;
}

/* Hyperlinks for Companies, Colleges & External Credentials */
.text-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s, opacity 0.15s;
}

.text-link:hover {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

.company-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.company-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cert-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.cert-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ext-icon {
  font-size: 0.85em;
  display: inline-block;
  margin-left: 2px;
  opacity: 0.8;
}


/* ==========================================================================
   GLOBAL UNIFIED TYPOGRAPHY & FONT CONSISTENCY
   ========================================================================== */

html, body, button, input, select, textarea, optgroup {
  font-family: var(--font-main);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--text-heading);
  letter-spacing: -0.025em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  color: var(--text-heading);
}

/* Global Consistent Emphasis Style for all headers */
h1 em, h2 em, h3 em, .hero h1 em, .page-hero h1 em, .contact-hero-title em {
  font-style: normal;
  color: var(--brand-primary);
  background: linear-gradient(135deg, #2563eb, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 720px;
  margin-bottom: 24px;
}

/* ==========================================================================
   CONTACT PAGE HERO & BALANCED LAYOUT
   ========================================================================== */

.contact-hero-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-heading);
  margin: 8px 0 16px;
}

.contact-hero-desc {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 20px;
}

.contact-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s;
}

.meta-pill:hover {
  border-color: var(--brand-primary-border);
  transform: translateY(-1px);
}


/* ==========================================================================
   ABOUT PAGE HERO GRID & BALANCED LAYOUT
   ========================================================================== */

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-hero-content {
  display: flex;
  flex-direction: column;
}

.about-hero-content h1 {
  font-size: clamp(2.3rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 6px 0 16px;
  color: var(--text-heading);
}

.about-hero-content .hero-intro {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
}

.about-quick-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s;
}

.about-badge:hover {
  border-color: var(--brand-primary-border);
  transform: translateY(-1px);
}

.about-hero-media .photo-card {
  max-width: 380px;
  margin: 0 auto;
}

/* Journey Cards Grid */
.journey-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .journey-cards-grid {
    grid-template-columns: 1fr;
  }
}

.journey-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.journey-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-border);
}

.journey-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.journey-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.journey-card-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  margin: 0;
}

.journey-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
}

/* ==========================================================================
   ABOUT PAGE: LEFT PHOTO + RIGHT CONTENT (NO EMPTY SPACE, HOVER ANIMATION)
   ========================================================================== */

.about-hero-grid {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 52px;
  align-items: start;
}

@media (max-width: 1024px) {
  .about-hero-grid {
    grid-template-columns: 360px 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Left Photo Card */
.about-hero-media {
  position: relative;
}

.photo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -10px rgba(37, 99, 235, 0.2), 0 0 0 1px var(--brand-primary-border);
  border-color: var(--brand-primary-border);
}

.photo-img-wrap {
  width: 100%;
  height: 520px;
  overflow: hidden;
  position: relative;
  background: #0b0f19;
  border-top-left-radius: 21px;
  border-top-right-radius: 21px;
}

.photo-portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.photo-card:hover .photo-portrait {
  transform: scale(1.05);
}

.photo-card-caption {
  padding: 20px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.photo-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.photo-card-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.photo-card-role {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 2px;
}

.photo-card-org {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Right Content Column */
.about-hero-content {
  display: flex;
  flex-direction: column;
}

.about-hero-title {
  font-size: clamp(2.3rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-heading);
  margin: 6px 0 16px;
}

.about-hero-content .hero-intro {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
}

.about-journey-narrative {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.journey-subtitle {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.about-journey-narrative p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 14px;
}

.about-quick-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.about-badge:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary-border);
}

.about-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Credential & Education Cards */
.credential-card {
  padding: 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.credential-card:hover {
  border-color: var(--brand-primary-border);
  box-shadow: var(--shadow-md);
}

.certs-box {
  display: flex;
  flex-direction: column;
}

.cert-link {
  font-weight: 600;
  color: var(--brand-primary);
}

/* About CTA Banner */
.about-cta-banner {
  text-align: center;
  padding: 56px 40px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(5, 150, 105, 0.04) 100%), var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.about-cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.about-cta-banner p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

.about-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Header Row with Aligned Right Action */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  width: 100%;
}

.section-heading-text {
  max-width: 760px;
}

.section-heading-text h2 {
  margin-bottom: 0;
}

.section-header-btn {
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}


/* ==========================================================================
   PROMOTIONAL & MARKETING BANNER ENGINE
   ========================================================================== */

.promo-banner-wrap {
  display: none;
  width: 100%;
  color: #ffffff;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.promo-banner-wrap.is-active {
  display: block !important;
}

.promo-theme-electric {
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 50%, #4338ca 100%);
}

.promo-theme-emerald {
  background: linear-gradient(90deg, #065f46 0%, #059669 50%, #0d9488 100%);
}

.promo-theme-sunset {
  background: linear-gradient(90deg, #9a3412 0%, #d97706 50%, #ea580c 100%);
}

.promo-theme-midnight {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 16px;
}

.promo-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  line-height: 1.4;
  margin: 0 auto;
  text-align: center;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promo-text {
  font-weight: 600;
  color: #ffffff;
}

.promo-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #ffffff;
  color: #0f172a !important;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, background-color 0.15s;
}

.promo-cta-btn:hover {
  background: #f8fafc;
  transform: scale(1.04);
}

.promo-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.promo-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   ADMIN PORTAL & COMMAND CENTER STYLES (/admin/)
   ========================================================================== */

.admin-app-container {
  min-height: calc(100vh - 120px);
  background: var(--bg-page);
}

/* 1. Login View Overlay */
.admin-login-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 40px 20px;
}

.admin-login-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl, 22px);
  padding: 40px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.15);
}

.admin-login-header {
  text-align: center;
  margin-bottom: 28px;
}

.admin-avatar-mini {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.admin-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-login-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.admin-login-header p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.admin-login-form .form-group {
  margin-bottom: 18px;
}

.admin-login-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.admin-login-form input[type="email"],
.admin-login-form input[type="password"],
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-heading);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-login-form input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.form-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 4px;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.toggle-pwd-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-body);
}

.admin-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 750;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.admin-alert-error {
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.admin-login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

/* 2. Admin Topbar */
.admin-topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 1100 !important;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 2px solid var(--brand-primary);
}

.admin-role-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.btn-logout {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* 3. Admin Layout: Sidebar + Content */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}

@media (max-width: 960px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 16px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-body);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.admin-nav-item:hover {
  background: var(--bg-subtle);
  color: var(--text-heading);
}

.admin-nav-item.active {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-left: 3px solid var(--brand-primary);
}

.nav-icon {
  font-size: 17px;
}

.nav-status-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.nav-status-pill.active {
  background: #dcfce7;
  color: #15803d;
}

.nav-status-pill.inactive {
  background: #f1f5f9;
  color: #64748b;
}

/* 4. Content Area & Panes */
.admin-content {
  padding: 36px 40px;
}

@media (max-width: 768px) {
  .admin-content {
    padding: 20px 16px;
  }
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.tab-eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tab-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.tab-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.tab-actions {
  display: flex;
  gap: 10px;
}

/* 5. KPI Cards */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

@media (max-width: 1100px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.admin-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.kpi-icon {
  font-size: 24px;
  padding: 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.kpi-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.kpi-trend {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.kpi-trend.positive {
  color: var(--accent-emerald);
  font-weight: 600;
}

/* 6. Admin Cards & Grid Layouts */
.admin-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .admin-grid-2col {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  margin: 0;
}

.card-badge {
  font-size: 11px;
  font-weight: 750;
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.admin-list-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13.5px;
}

.route-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-heading);
  font-weight: 600;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-data-table th {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  background: var(--bg-subtle);
}

.admin-data-table tr:hover td {
  background: rgba(37, 99, 235, 0.02);
}

.journey-flow-str {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brand-primary);
}

/* 7. Forms, Toggles & Editor */
.admin-form .form-group {
  margin-bottom: 18px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 768px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.toggle-switch-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle-switch-label input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: var(--border-medium);
  border-radius: var(--radius-full);
  position: relative;
  transition: background-color 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #ffffff;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}

.toggle-switch-label input:checked + .toggle-slider {
  background: var(--accent-emerald);
}

.toggle-switch-label input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Markdown Editor Studio */
.editor-wrap {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.toolbar-btn {
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-body);
}

.toolbar-btn:hover {
  background: var(--bg-muted);
}

.editor-textarea {
  width: 100%;
  border: none;
  border-radius: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
}

.editor-textarea:focus {
  box-shadow: none !important;
}

.editor-preview-pane {
  padding: 20px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  max-height: 400px;
  overflow-y: auto;
}

.rendered-markdown h1,
.rendered-markdown h2,
.rendered-markdown h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--text-heading);
}

.rendered-markdown p {
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-body);
}

.rendered-markdown blockquote {
  border-left: 3px solid var(--brand-primary);
  padding-left: 14px;
  color: var(--text-muted);
  margin: 12px 0;
}

/* Google SERP Preview */
.google-preview-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.preview-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.google-result-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  max-width: 650px;
}

.google-site-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #202124;
  margin-bottom: 4px;
}

.google-title {
  font-size: 18px;
  font-weight: 500;
  color: #1a0dab;
  cursor: pointer;
  line-height: 1.3;
  margin-bottom: 4px;
}

.google-snippet {
  font-size: 13.5px;
  line-height: 1.5;
  color: #4d5156;
}

.char-counter {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.btn-xs {
  font-size: 11.5px;
  padding: 5px 10px;
}


/* Cloaked 404 Stealth Disguise */
.cloaked-404-view {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cloaked-404-view .page-hero {
  text-align: center;
  padding: 60px 20px;
}

.cloaked-404-view .clickable-knock {
  cursor: default;
  user-select: none;
  display: inline-block;
  transition: transform 0.15s ease;
}

.cloaked-404-view .clickable-knock:active {
  transform: scale(0.96);
}


/* ==========================================================================
   ADMIN PORTAL V2 DEDICATED LAYOUT & SCROLL FIX
   ========================================================================== */

/* 1. Hide Public Site Header and Footer on Admin */
body.page-admin .site-header,
body.page-admin .site-footer {
  display: none !important;
}

body.page-admin {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg-page) !important;
  overflow-x: hidden;
}

body.page-admin #main-content {
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* 2. Admin Command Bar & Sticky Sidebar Layout */
.admin-app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  font-family: var(--font-sans);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1100 !important;
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--brand-primary);
}

.admin-role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  letter-spacing: 0.05em;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.btn-logout {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* 3. Sidebar + Main Grid */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
  position: relative;
}

@media (max-width: 992px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-body);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.admin-nav-item:hover {
  background: var(--bg-subtle);
  color: var(--text-heading);
}

.admin-nav-item.active {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.admin-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  background: var(--brand-primary);
  border-radius: 0 4px 4px 0;
}

.nav-status-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
}

.nav-status-pill.active {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.admin-sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.admin-main {
  padding: 32px 36px;
  background: var(--bg-page);
  overflow-y: auto;
  max-width: 1300px;
  width: 100%;
}

/* ==========================================================================
   MARKETING AD POPUP MODAL & CORNER CARD STYLES
   ========================================================================== */

/* Centered Ad Popup Modal */
.promo-modal-backdrop {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 20px !important;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.promo-modal-backdrop.is-active {
  display: flex !important;
}

.promo-modal-card {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  color: #ffffff;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.promo-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 10;
}

.promo-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.promo-modal-media {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.promo-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15% !important;
}

.promo-modal-body {
  padding: 32px 28px 28px;
}

.promo-modal-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}

.promo-modal-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.promo-modal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.promo-cta-large {
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: 10px;
  text-align: center;
  flex: 1;
}

.promo-dismiss-link {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
}

.promo-dismiss-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Floating Corner Card */
.promo-corner-card {
  display: none;
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 350px !important;
  max-width: calc(100vw - 32px) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
  z-index: 9999 !important;
  overflow: hidden !important;
  animation: promoCardSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.promo-corner-card.is-active {
  display: block !important;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.promo-corner-inner {
  display: flex;
  align-items: stretch;
}

.promo-corner-media {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
}

.promo-corner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15% !important;
}

.promo-corner-content {
  padding: 18px 20px;
  flex: 1;
}

.promo-corner-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 4px;
  line-height: 1.3;
}

.promo-corner-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  margin-bottom: 12px;
}

.promo-cta-sm {
  font-size: 12.5px;
  padding: 6px 14px;
  font-weight: 750;
  border-radius: 6px;
}

.promo-corner-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Multi-Format Previewer Box */
.preview-format-toggles {
  display: flex;
  gap: 8px;
}

.preview-format-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.preview-format-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.promo-live-preview-stage {
  padding: 30px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ==========================================================================
   GEOLOCATION WORLD MAP & COUNTRY LEADERBOARD
   ========================================================================== */

.geo-map-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .geo-map-layout {
    grid-template-columns: 1fr;
  }
}

.geo-map-canvas-wrap {
  position: relative;
  background: #e5e3df;
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  height: 480px;
  min-height: 480px;
}

.admin-google-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius-lg);
  z-index: 1;
}

/* Floating Google Maps Toolbar Controls */
.gmap-toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 12px;
}

.gmap-layer-selector {
  pointer-events: auto;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.gmap-btn {
  border: none;
  background: transparent;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  line-height: 1;
}

.gmap-btn:hover {
  background: #f1f3f4;
  color: #1a73e8;
}

.gmap-btn.active {
  background: #1a73e8;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.35);
}

.gmap-actions {
  pointer-events: auto;
  display: inline-flex;
  gap: 6px;
}

.gmap-icon-btn {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 7px 12px;
  border-radius: 8px;
}

.gmap-icon-btn:hover {
  background: #ffffff;
  color: #1a73e8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

/* Floating Live Indicator */
.gmap-live-chip {
  position: absolute;
  bottom: 16px;
  left: 14px;
  z-index: 500;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.gmap-live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
  animation: gmap-radar-pulse 1.8s infinite;
}

@keyframes gmap-radar-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Custom Google Map Pin Markers */
.gmap-marker-pin-wrap {
  position: relative;
  width: 32px;
  height: 42px;
  cursor: pointer;
  transform: translate(-16px, -42px);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gmap-marker-pin-wrap:hover {
  transform: translate(-16px, -48px) scale(1.15);
  z-index: 9999 !important;
}

.gmap-radar-ring {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.2);
  animation: gmap-ring-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes gmap-ring-ping {
  0% { transform: translate(-50%, 50%) scale(0.2); opacity: 1; }
  80%, 100% { transform: translate(-50%, 50%) scale(2.4); opacity: 0; }
}

/* Leaflet Google Map Customizations */
.leaflet-container {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
}

.leaflet-popup-content-wrapper {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 0 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 250px !important;
}

.leaflet-popup-tip {
  background: #ffffff !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
  margin-right: 14px !important;
}

.leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #3c4043 !important;
  border-bottom: 1px solid #eceff1 !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
  background: #ffffff !important;
  color: #1a73e8 !important;
}

/* InfoWindow Popup Layout */
.gmap-infowindow {
  padding: 14px 16px;
}

.gmap-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f3f4;
  padding-bottom: 9px;
  margin-bottom: 9px;
}

.gmap-info-flag {
  font-size: 22px;
  line-height: 1;
}

.gmap-info-city {
  font-size: 14.5px;
  font-weight: 700;
  color: #202124;
  margin: 0;
  line-height: 1.2;
}

.gmap-info-country {
  font-size: 11.5px;
  color: #5f6368;
}

.gmap-info-live-badge {
  margin-left: auto;
  background: #e6f4ea;
  color: #137333;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.gmap-info-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.gmap-info-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: #1a73e8;
  font-family: var(--font-mono, monospace);
  line-height: 1.1;
}

.gmap-info-stat-lbl {
  font-size: 11px;
  color: #70757a;
  display: block;
}

.gmap-info-meta {
  font-size: 10.5px;
  color: #5f6368;
  text-align: right;
  line-height: 1.4;
}

.gmap-info-footer {
  border-top: 1px solid #f1f3f4;
  padding-top: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gmap-info-link {
  font-size: 11px;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.gmap-info-link:hover {
  text-decoration: underline;
}

.geo-leaderboard-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.geo-countries-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.geo-country-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.geo-country-row:hover {
  background: var(--bg-subtle);
  transform: translateX(3px);
}

.geo-country-row.selected {
  background: rgba(26, 115, 232, 0.08);
  border-left: 3px solid #1a73e8;
}

.geo-country-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-heading);
}

.geo-bar-wrap {
  flex: 1;
  max-width: 100px;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 12px;
}

.geo-bar-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 999px;
}

.geo-country-count {
  font-family: var(--font-mono);
  font-size: 12px;
}  color: var(--text-muted);
}

/* ==========================================================================
   BLOG CMS DIRECTORY TABLE & ACTIONS
   ========================================================================== */

.blog-directory-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-directory-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

.blog-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.blog-action-btn {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  transition: all 0.15s;
  margin-left: 6px;
}

.blog-action-btn:hover {
  background: var(--bg-muted);
  border-color: var(--border-medium);
}

.blog-action-btn.delete-btn {
  color: #dc2626;
  border-color: #fecaca;
}

.blog-action-btn.delete-btn:hover {
  background: #fef2f2;
  border-color: #f87171;
}


/* Modern Toggle Switch & Promo Power Card */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color, #cbd5e1);
  transition: .25s ease-in-out;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s ease-in-out;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.btn-promo-off {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}
.btn-promo-off:hover {
  background: rgba(239, 68, 68, 0.2) !important;
}

.btn-promo-on {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
.btn-promo-on:hover {
  background: rgba(16, 185, 129, 0.2) !important;
}


/* ==========================================================================
   BLOG CMS ICON ACTION BUTTONS
   ========================================================================== */
.blog-action-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.blog-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.blog-icon-btn svg {
  display: block;
  stroke-width: 2.2;
}

.blog-icon-btn.edit-post-btn:hover {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #6366f1 !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.blog-icon-btn.view-post-btn:hover {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0ea5e9 !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.blog-icon-btn.delete-btn:hover,
.blog-icon-btn.delete-post-btn:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   MULTI-FORMAT PROMOTIONAL MARKETING ENGINE (BAR, MODAL, CORNER CARD)
   ========================================================================== */

/* Top & Bottom Announcement Bar */
.promo-banner-wrap {
  display: none;
  width: 100%;
  color: #ffffff;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.promo-banner-wrap.is-active {
  display: block !important;
}

.promo-banner-wrap.is-bottom {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2) !important;
}

/* 2. Centered Ad Popup Modal Dialog */
.promo-modal-backdrop {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 20px !important;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.promo-modal-backdrop.is-active {
  display: flex !important;
}

.promo-modal-card {
  position: relative !important;
  width: 100% !important;
  max-width: 480px !important;
  border-radius: 20px !important;
  color: #ffffff !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
  overflow: hidden !important;
  animation: promoModalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes promoModalPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.promo-modal-close-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: background 0.15s, transform 0.15s !important;
  z-index: 2 !important;
}

.promo-modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.1);
}

.promo-modal-media {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.promo-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-modal-body {
  padding: 28px 24px 24px !important;
}

.promo-modal-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin: 12px 0 8px !important;
  color: #ffffff !important;
}

.promo-modal-desc {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 24px !important;
}

.promo-modal-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.promo-cta-large {
  padding: 10px 22px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.promo-dismiss-link {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 13px !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  padding: 4px !important;
}

.promo-dismiss-link:hover {
  color: #ffffff !important;
}

/* 3. Floating Corner Card (Slide-In) */
.promo-corner-card {
  display: none;
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 350px !important;
  max-width: calc(100vw - 32px) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
  z-index: 9999 !important;
  overflow: hidden !important;
  animation: promoCardSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.promo-corner-card.is-active {
  display: block !important;
}

@keyframes promoCardSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.promo-corner-close-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 12px !important;
  z-index: 2 !important;
}

.promo-corner-close-btn:hover {
  background: rgba(0, 0, 0, 0.45) !important;
}

.promo-corner-inner {
  display: flex;
  flex-direction: row !important;
  align-items: stretch !important;
}

.promo-corner-media {
  width: 115px !important;
  min-width: 115px !important;
  height: auto !important;
  min-height: 100% !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.promo-corner-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 15% !important;
}

.promo-corner-content {
  padding: 18px 20px 20px !important;
}

.promo-corner-title {
  font-size: 16px !important;
  font-weight: 750 !important;
  margin: 8px 0 6px !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
}

.promo-corner-desc {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  margin-bottom: 14px !important;
}

.promo-cta-sm {
  padding: 6px 16px !important;
  font-size: 12.5px !important;
  display: inline-block !important;
}


/* Zero-interference Admin Isolation: NEVER show live promo popups on Admin Command Center page (only inside live preview stage) */
body.page-admin #marketing-engine-container,
body.page-admin #promo-banner-bar,
body.page-admin #promo-modal-backdrop,
body.page-admin #promo-corner-card,
body.page-admin > .promo-modal-backdrop,
body.page-admin > .promo-corner-card,
body.page-admin > .promo-banner-wrap {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

/* Explicitly ensure preview stage elements are rendered and positioned relatively inside the stage */
body.page-admin .promo-live-preview-stage * {
  z-index: 1 !important;
}

body.page-admin .promo-live-preview-stage .promo-corner-card,
body.page-admin #promo-preview-card-el {
  display: block !important;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: none !important;
  z-index: 1 !important;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.25) !important;
}

body.page-admin .promo-live-preview-stage .promo-banner-wrap,
body.page-admin #promo-preview-bar-el {
  display: block !important;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

body.page-admin .promo-live-preview-stage .promo-modal-card,
body.page-admin #promo-preview-modal-el {
  display: block !important;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

/* Marketing Theme Selector Swatches */
.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.theme-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card, #ffffff);
  border: 2px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.theme-choice:hover {
  border-color: var(--brand-primary, #6366f1);
  transform: translateY(-1px);
}

.theme-choice input[type="radio"] {
  display: none;
}

.theme-choice:has(input[type="radio"]:checked) {
  border-color: var(--brand-primary, #6366f1);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 1px var(--brand-primary, #6366f1);
}

.theme-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
}

.theme-swatch.theme-violet {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
}

.theme-swatch.theme-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #0d9488 100%);
}

.theme-swatch.theme-amber {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 50%, #e11d48 100%);
}

.theme-swatch.theme-ocean {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #1d4ed8 100%);
}

.theme-swatch.theme-ruby {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 50%, #9f1239 100%);
}

.theme-swatch.theme-dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.theme-swatch.theme-cyberpunk {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
}

.theme-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-heading, #0f172a);
}

/* Saved Promotions Library Table Styling */
.promo-badge-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-badge-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.promo-badge-pill.saved {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.table-promo-theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.table-promo-theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}


/* ==========================================================================
   PUBLIC CONTACT FORM & SPLIT LAYOUT STYLES
   ========================================================================== */
.contact-split-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 36px;
  margin-top: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-split-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.contact-form-card {
  background: var(--bg-surface-elevated, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.contact-form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.contact-form-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.public-contact-form .form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .public-contact-form .form-row-grid {
    grid-template-columns: 1fr;
  }
}

.public-contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.public-contact-form label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-heading);
}

.public-contact-form .req {
  color: #ef4444;
}

.public-contact-form input,
.public-contact-form select,
.public-contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid var(--border-medium, #cbd5e1);
  background: var(--bg-surface, #ffffff);
  color: var(--text-heading, #0f172a);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.public-contact-form input:focus,
.public-contact-form select:focus,
.public-contact-form textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.contact-submit-btn {
  padding: 12px 26px !important;
  font-size: 14.5px !important;
  font-weight: 750 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.contact-privacy-note {
  font-size: 12.5px;
  color: var(--text-muted);
}

.contact-alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-alert.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
}

.contact-alert.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #991b1b;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   ADMIN MESSAGES INBOX STYLES
   ========================================================================== */
.message-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 6px;
  box-shadow: 0 0 6px #10b981;
}

.message-detail-box {
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-medium, #e2e8f0);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 10px;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-heading);
}

.badge-topic {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

/* ==========================================================================
   COOKIE & PRIVACY CONSENT BANNER STYLES
   ========================================================================== */
.cookie-banner-wrapper {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  width: calc(100% - 40px);
  max-width: 840px;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie-banner-card {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

.cookie-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cookie-banner-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cookie-icon {
  font-size: 28px;
  line-height: 1;
}

.cookie-banner-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.cookie-banner-subtitle {
  margin: 3px 0 0;
  font-size: 13px;
  color: #94a3b8;
}

.cookie-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.cookie-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.cookie-banner-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 16px 0;
}

.cookie-banner-text strong {
  color: #38bdf8;
  font-weight: 600;
}

.cookie-details-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.cookie-category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-category-item:last-child {
  border-bottom: none;
}

.cookie-cat-info strong {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.cookie-cat-info p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  max-width: 500px;
}

.cookie-badge-locked {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 9999px;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.cookie-banner-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-actions-primary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cookie-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-cookie-analytics {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cookie-analytics:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-cookie-decline {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-decline:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cookie-link-btn {
  background: none;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-link-btn:hover {
  color: #7dd3fc;
}

.btn-cookie-save {
  background: #6366f1;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.footer-cookie-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 12px;
  transition: color 0.2s ease;
}

.footer-cookie-btn:hover {
  color: var(--text-heading);
}

@media (max-width: 680px) {
  .cookie-banner-wrapper {
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .cookie-banner-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .cookie-banner-title {
    font-size: 15px;
  }

  .cookie-banner-text {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .cookie-banner-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .cookie-actions-primary {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .btn-cookie-accept,
  .btn-cookie-analytics,
  .btn-cookie-decline {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }

  .cookie-link-btn {
    text-align: center;
    padding: 4px 0;
  }
}

/* Don't display public cookie banner inside admin page */
body.page-admin #portfolio-cookie-banner {
  display: none !important;
}

/* ==========================================================================
   ADMIN DETAILED VISITORS TABLE & FILTERS
   ========================================================================== */
.visitors-filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 16px 0;
}

.visitors-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.visitors-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.visitors-search-box input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border-radius: 8px;
  border: 1px solid var(--border-medium, #cbd5e1);
  background: var(--bg-surface-elevated, #f8fafc);
  color: var(--text-heading);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.visitors-search-box input:focus {
  border-color: var(--accent-indigo, #6366f1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.visitors-filters-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.visitor-select-filter {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-medium, #cbd5e1);
  background: var(--bg-surface-elevated, #f8fafc);
  color: var(--text-heading);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.detailed-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--bg-surface, #ffffff);
}

.detailed-visitors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.detailed-visitors-table th {
  background: var(--bg-surface-elevated, #f8fafc);
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-medium, #e2e8f0);
  white-space: nowrap;
}

.detailed-visitor-row td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
  vertical-align: top;
}

.detailed-visitor-row:hover td {
  background: var(--bg-hover, rgba(99, 102, 241, 0.03));
}

.table-cell-main {
  display: flex;
  flex-direction: column;
}

.visitor-id-tag {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-heading);
  cursor: help;
}

.btn-copy-id {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.btn-copy-id:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-heading);
}

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
}

.session-pill.live {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.session-pill.live .dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.session-pill.recent {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

.session-pill.returning {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.session-pill.first {
  background: rgba(6, 182, 212, 0.15);
  color: #0891b2;
}

.geo-source-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.geo-source-pill.gps {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.geo-source-pill.ip {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.geo-source-pill.pending {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-muted);
}

.geo-source-pill.necessary {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.geo-ip-pill {
  font-family: monospace;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  padding: 1px 5px;
  border-radius: 4px;
}

.journey-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface-elevated, #f8fafc);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 500;
}

.consent-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
}

.consent-pill.all {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.consent-pill.analytics {
  background: rgba(14, 165, 233, 0.15);
  color: #0284c7;
}

.consent-pill.necessary {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.consent-pill.pending {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

.table-action-btns {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.btn-table-action {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-action-locate {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.btn-action-locate:hover {
  background: #10b981;
  color: #ffffff;
}

.btn-action-dossier {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.25);
}

.btn-action-dossier:hover {
  background: #6366f1;
  color: #ffffff;
}

/* ==========================================================================
   DETAILED VISITORS TABLE PAGINATION
   ========================================================================== */
.detailed-table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 13px;
  color: var(--text-body, #475569);
}

.pagination-info {
  font-size: 12.5px;
  color: var(--text-muted, #64748b);
}

.pagination-info strong {
  color: var(--text-heading, #0f172a);
  font-weight: 700;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pagination-pagesize-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.pagination-size-select {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-medium, #cbd5e1);
  background: var(--bg-surface, #ffffff);
  color: var(--text-heading, #0f172a);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.pagination-size-select:focus {
  border-color: var(--brand-primary, #2563eb);
}

.pagination-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-pag {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border-medium, #cbd5e1);
  background: var(--bg-surface, #ffffff);
  color: var(--text-heading, #0f172a);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-pag:hover:not(:disabled) {
  background: var(--bg-hover, #f1f5f9);
  border-color: var(--brand-primary, #2563eb);
  color: var(--brand-primary, #2563eb);
}

.btn-pag:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border-subtle, #e2e8f0);
}

.pagination-numbers {
  display: inline-flex;
  gap: 4px;
}

.btn-pag-num {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border-medium, #cbd5e1);
  background: var(--bg-surface, #ffffff);
  color: var(--text-heading, #0f172a);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pag-num:hover:not(.active) {
  background: var(--bg-hover, #f1f5f9);
  border-color: var(--brand-primary, #2563eb);
  color: var(--brand-primary, #2563eb);
}

.btn-pag-num.active {
  background: var(--brand-primary, #2563eb);
  border-color: var(--brand-primary, #2563eb);
  color: #ffffff;
  font-weight: 700;
}

.btn-pag-dots {
  min-width: 20px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #94a3b8);
  font-weight: 700;
  font-size: 13px;
  user-select: none;
}

/* ==========================================================================
   TELEMETRY DOSSIER MODAL STYLES
   ========================================================================== */
.dossier-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dossier-modal-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-medium, #e2e8f0);
  border-radius: 18px;
  width: 100%;
  max-width: 800px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: var(--text-heading);
}

.dossier-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.dossier-modal-close {
  background: var(--bg-surface-elevated, #f1f5f9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
}

.dossier-modal-close:hover {
  color: var(--text-heading);
}

.dossier-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.dossier-grid-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.dossier-stat-pill {
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 10px;
  padding: 10px 12px;
}

.dossier-stat-label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.dossier-stat-pill strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-heading);
}

.dossier-cookies-table-wrap {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
}

.dossier-cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.dossier-cookies-table th {
  background: var(--bg-surface-elevated, #f8fafc);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dossier-cookies-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
}

.dossier-cookie-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.dossier-raw-json {
  background: #0f172a;
  color: #38bdf8;
  padding: 14px 16px;
  border-radius: 10px;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 11.5px;
  max-height: 220px;
  overflow-y: auto;
  line-height: 1.45;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dossier-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle, #e2e8f0);
}
