/* ============================================================
   VishX Innovations — shared design system
   Dark premium tech · teal #0C8077 · Inter
   Used by index.html and careers.html
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-0: #050505;
  --bg-1: #0A0A0A;
  --bg-2: #0F172A;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);

  /* Borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);

  /* Brand */
  --primary: #0C8077;
  --primary-hover: #09665f;
  --primary-soft: rgba(12, 128, 119, 0.15);
  --primary-glow: rgba(12, 128, 119, 0.3);

  /* Text */
  --text: #ffffff;
  --text-70: rgba(255, 255, 255, 0.7);
  --text-50: rgba(255, 255, 255, 0.5);
  --muted: #94A3B8;

  /* Status */
  --success: #22c55e;
  --error: #ef4444;
  --warn: #f59e0b;

  /* Shape & type */
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-70);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--primary); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 { color: var(--text); letter-spacing: -0.03em; line-height: 1.1; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

section { position: relative; padding: 72px 0; }
@media (min-width: 1024px) { section { padding: 110px 0; } }

/* Gradient display text */
.grad-text {
  background: linear-gradient(90deg, var(--primary), #2dd4bf, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section header pattern */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-sub { max-width: 560px; color: var(--text-50); font-size: 1.05rem; }

/* ---------- Ambient effects ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.blob-primary { background: rgba(12, 128, 119, 0.2); }
.blob-teal { background: rgba(13, 148, 136, 0.1); }

.bg-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 32px; } }

.nav-logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 7px 14px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.nav-logo:hover { transform: scale(1.05); }
.nav-logo img { height: 30px; width: auto; object-fit: contain; }

.nav-links { display: none; align-items: center; gap: 32px; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-70);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta-wrap { display: flex; align-items: center; gap: 12px; }
@media (max-width: 639px) { .nav-cta-wrap .btn { display: none; } }

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 99;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 13px 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-70);
  border-bottom: 1px solid var(--border-soft);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(12, 128, 119, 0.5);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--bg-0);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.btn-white:hover:not(:disabled) { background: #e5e7eb; transform: scale(1.03); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.4); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; border-radius: 10px; }

/* ---------- Badges & chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-70);
  backdrop-filter: blur(4px);
}
.pulse-dot { position: relative; display: inline-flex; width: 8px; height: 8px; }
.pulse-dot::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--primary);
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pulse-dot::after { content: ''; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.pulse-dot.green::before, .pulse-dot.green::after { background: var(--success); }
.pulse-dot.amber::before, .pulse-dot.amber::after { background: var(--warn); }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-50);
  font-size: 0.82rem;
  font-weight: 600;
}
a.chip { transition: border-color 0.2s ease, color 0.2s ease; }
a.chip:hover { border-color: rgba(12, 128, 119, 0.5); color: var(--text); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  border-color: rgba(12, 128, 119, 0.4);
  box-shadow: 0 0 30px rgba(12, 128, 119, 0.12);
  transform: translateY(-4px);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid rgba(12, 128, 119, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2dd4bf;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--text-50); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--text-70); }
.field .hint { font-size: 0.75rem; color: var(--muted); }

.input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: rgba(255, 255, 255, 0.3); }
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea.input { resize: vertical; min-height: 120px; }

.form-msg { min-height: 22px; font-size: 0.87rem; font-weight: 600; margin-top: 10px; }
.form-msg.success { color: var(--success); }
.form-msg.error { color: var(--error); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding: 56px 0 28px;
}
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }

.footer-logo {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 6px 12px;
  margin-bottom: 16px;
}
.footer-logo img { height: 26px; width: auto; }
.footer p.blurb { font-size: 0.9rem; color: var(--text-50); max-width: 320px; }

.footer-contact { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.footer-contact li { font-size: 0.85rem; color: var(--text-50); display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; color: var(--primary); }
.footer-contact a:hover { color: var(--text); }

.footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-50);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: var(--text-70); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }

.subscribe-form { display: flex; gap: 10px; margin-top: 6px; }
.subscribe-form .input { flex: 1; }
@media (max-width: 480px) { .subscribe-form { flex-direction: column; } }

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-50);
}

/* ============================================================
   index.html — page-specific
   ============================================================ */

/* Hero */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 72px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 56px; align-items: center; position: relative; z-index: 2; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 32px; } }

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 22px 0 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-50);
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 500;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero console cards */
.console-stack { position: relative; height: 460px; display: none; }
@media (min-width: 1024px) { .console-stack { display: block; } }

.console-card {
  position: absolute;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: float 7s ease-in-out infinite;
}
.console-card.accent { border-color: rgba(12, 128, 119, 0.35); box-shadow: 0 0 40px rgba(12, 128, 119, 0.15); }
.console-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-50);
}
.console-card .head .ok { color: var(--success); display: inline-flex; align-items: center; gap: 6px; }
.console-card .head .ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: blink 1.5s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.meter { height: 7px; background: rgba(255, 255, 255, 0.05); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.meter > i { display: block; height: 100%; background: rgba(12, 128, 119, 0.55); border-radius: 99px; }

.console-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.console-tags span {
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  font-size: 0.64rem;
  color: var(--text-50);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Tech strip */
.tech-strip { padding: 34px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg-1); }
.tech-strip-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

/* Bento services */
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento .span-2 { grid-column: span 2; }
}

/* Products */
.products-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .products-grid { grid-template-columns: 1.5fr 1fr; align-items: stretch; } }

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { border-color: rgba(12, 128, 119, 0.45); box-shadow: 0 0 40px rgba(12, 128, 119, 0.12); }
.product-card h3 { font-size: 1.7rem; font-weight: 800; }
.product-card .desc { color: var(--text-50); font-size: 0.98rem; max-width: 520px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.product-link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: #2dd4bf; font-weight: 700; font-size: 0.95rem; }
.product-link:hover { color: #6ee7b7; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-live { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--success); }
.badge-stealth { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warn); }

.product-card.stealth {
  border-style: dashed;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.05), transparent 55%),
    var(--surface);
}
.product-card.stealth .lock {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--warn);
}
.product-card.stealth .lock svg { width: 20px; height: 20px; }

/* Process */
.process-grid { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step { position: relative; padding: 26px 24px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
.process-step .num {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--text-50); }

/* Contact */
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-item .ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid rgba(12, 128, 119, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: #2dd4bf;
}
.contact-item .ico svg { width: 18px; height: 18px; }
.contact-item strong { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 2px; }
.contact-item span, .contact-item a.val { font-size: 0.88rem; color: var(--text-50); }
.contact-item a.val:hover { color: #2dd4bf; }

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  backdrop-filter: blur(12px);
}
.contact-form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-form-card .sub { font-size: 0.9rem; color: var(--text-50); margin-bottom: 26px; }

/* reCAPTCHA v3: badge hidden (can overlap the submit button), attribution shown instead per Google policy */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { margin-top: 12px; font-size: 0.72rem; color: var(--muted); }
.recaptcha-note a { color: var(--text-50); text-decoration: underline; }
.recaptcha-note a:hover { color: var(--text); }

/* ============================================================
   careers.html — page-specific
   ============================================================ */

.careers-hero { padding: calc(var(--nav-h) + 72px) 0 56px; overflow: hidden; }
.careers-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); font-weight: 800; max-width: 760px; margin: 20px 0 18px; }
.careers-hero p { max-width: 560px; color: var(--text-50); font-size: 1.05rem; }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px; }
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-70);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.filter-chip:hover { border-color: rgba(12, 128, 119, 0.5); color: var(--text); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Role cards */
.roles-list { display: flex; flex-direction: column; gap: 16px; }

.role {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 900px) { .role { grid-template-columns: 1fr auto auto auto; align-items: start; } }
.role:hover { border-color: rgba(12, 128, 119, 0.4); box-shadow: 0 0 26px rgba(12, 128, 119, 0.1); }

.role-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.role-loc { font-size: 0.86rem; color: var(--text-50); }
.role-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.role-tags span {
  padding: 4px 11px;
  border-radius: 7px;
  background: var(--primary-soft);
  border: 1px solid rgba(12, 128, 119, 0.25);
  color: #2dd4bf;
  font-size: 0.72rem;
  font-weight: 600;
}

.role-meta { min-width: 110px; }
.role-meta .lbl { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-50); margin-bottom: 4px; }
.role-meta .val { display: block; font-size: 0.9rem; color: var(--text); font-weight: 600; }
.role-meta .closes { display: block; font-size: 0.75rem; color: var(--warn); margin-top: 4px; }

.role-toggle {
  background: none;
  border: none;
  color: #2dd4bf;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.role-toggle .chev { transition: transform 0.25s ease; font-style: normal; }
.role-toggle.open .chev { transform: rotate(180deg); }

.role-desc { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.role-desc-inner { padding-top: 16px; font-size: 0.92rem; color: var(--text-50); white-space: pre-line; }

/* States */
.state-box {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-50);
}
.state-box h3 { margin-bottom: 8px; font-size: 1.15rem; }
.spinner {
  width: 34px; height: 34px;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Apply modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  padding: 0;
}
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal.open { display: flex; }

.modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  padding: 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.modal-box::-webkit-scrollbar { width: 8px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 99px; }
@media (min-width: 640px) { .modal-box { border-radius: 22px; } }

.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.modal-head h3 { font-size: 1.3rem; margin-bottom: 4px; }
.modal-head .meta { font-size: 0.85rem; color: var(--text-50); }
.modal-close {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-70);
  font-size: 1.15rem;
  line-height: 1;
}
.modal-close:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }

.file-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 26px 16px;
  text-align: center;
  color: var(--text-50);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.file-zone:hover, .file-zone.drag-over { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.file-zone.has-file { border-color: var(--success); border-style: solid; color: var(--success); }
.file-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.modal-success { text-align: center; padding: 26px 6px; }
.modal-success .tick {
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--success);
  font-size: 1.6rem;
}
.modal-success h3 { margin-bottom: 10px; }
.modal-success p { color: var(--text-50); font-size: 0.95rem; }
