:root {
  --bg-primary: #0a1a12;
  --bg-secondary: #0f2318;
  --bg-card: #132b1e;
  --bg-accent: #1a3a26;
  --fg-primary: #e8efe6;
  --fg-secondary: #9ab8a4;
  --fg-muted: #6a917a;
  --accent: #4fd185;
  --accent-warm: #d4a857;
  --accent-glow: rgba(79, 209, 133, 0.15);
  --border: rgba(79, 209, 133, 0.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --section-padding: clamp(4rem, 8vw, 8rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(79, 209, 133, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(212, 168, 87, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg-primary);
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--fg-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--accent-warm);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ====== SERVICES ====== */
.services {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-secondary);
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.services h2, .credentials h2, .approach h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: rgba(79, 209, 133, 0.3);
  transform: translateY(-2px);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.service-nbs .service-icon {
  background: rgba(79, 209, 133, 0.1);
  color: var(--accent);
}

.service-ehs .service-icon {
  background: rgba(212, 168, 87, 0.1);
  color: var(--accent-warm);
}

.service-eco .service-icon {
  background: rgba(79, 165, 209, 0.1);
  color: #4fa5d1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--fg-primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--fg-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.service-tags li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
}

/* ====== CREDENTIALS ====== */
.credentials {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-primary);
}

.credentials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.credentials-text p {
  color: var(--fg-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1rem;
}

.credential {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s;
}

.credential:hover {
  border-color: rgba(79, 209, 133, 0.25);
}

.credential-org {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg-primary);
  margin-bottom: 0.2rem;
}

.credential-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ====== APPROACH / CLIENTS ====== */
.approach {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-secondary);
}

.approach-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.client-type {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.client-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-warm);
  margin-bottom: 0.75rem;
}

.client-type h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fg-primary);
  margin-bottom: 0.5rem;
}

.client-type p {
  color: var(--fg-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ====== CLOSING ====== */
.closing {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(79, 209, 133, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.closing-quote h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg-primary);
  margin-bottom: 1.5rem;
}

.closing-quote p {
  font-size: 1.1rem;
  color: var(--fg-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
}

/* ====== FOOTER ====== */
.site-footer {
  padding: 3rem clamp(1.5rem, 5vw, 4rem) 2rem;
  background: var(--bg-accent);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--fg-primary);
  margin-bottom: 0.35rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.footer-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.footer-col div {
  font-size: 0.9rem;
  color: var(--fg-secondary);
}

.footer-small {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.15rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .credentials-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .client-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }
}
/* ====== NAV ====== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(10, 26, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--fg-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg-primary);
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--accent);
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg-secondary);
  border-radius: 2px;
  transition: background 0.2s;
}

/* Offset hero for fixed nav */
.hero {
  padding-top: calc(var(--section-padding) + 5rem);
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  }

  .nav-links.open {
    display: flex;
  }
}

/* ====== INQUIRY PAGE ====== */
.inquiry-page {
  min-height: 100vh;
  padding: 7rem clamp(1.5rem, 5vw, 4rem) 4rem;
  position: relative;
}

.inquiry-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 10%, rgba(79, 209, 133, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(212, 168, 87, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.inquiry-container {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.inquiry-header {
  margin-bottom: 3rem;
}

.inquiry-lede {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 1rem;
}

/* ====== FORMS ====== */
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem;
  margin-bottom: 1.25rem;
}

.form-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group + .form-group {
  margin-top: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 0.02em;
}

.required {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--fg-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(79, 209, 133, 0.4);
  box-shadow: 0 0 0 3px rgba(79, 209, 133, 0.08);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%236a917a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-submit-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* ====== BUTTONS ====== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--fg-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(79, 209, 133, 0.3);
  color: var(--fg-primary);
}

/* ====== FORM ERROR / SUCCESS ====== */
.form-error-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(220, 80, 60, 0.1);
  border: 1px solid rgba(220, 80, 60, 0.25);
  border-radius: 10px;
  color: #e07060;
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.success-card {
  background: var(--bg-card);
  border: 1px solid rgba(79, 209, 133, 0.25);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(79, 209, 133, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}

.success-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.success-card p {
  color: var(--fg-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ====== ADMIN LAYOUT ====== */
.admin-body {
  background: #07130c;
}

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

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-brand {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--fg-primary);
}

.admin-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.2rem;
}

.admin-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: var(--bg-accent);
  color: var(--fg-primary);
}

.admin-sidebar-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-logout-btn {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.admin-logout-btn:hover {
  color: #e07060;
  background: rgba(220, 80, 60, 0.08);
}

.admin-main {
  flex: 1;
  padding: 2.5rem 2.5rem;
  overflow: auto;
  min-width: 0;
}

/* ====== ADMIN HEADER / STATS ====== */
.admin-header {
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--fg-primary);
  margin-bottom: 1rem;
}

.admin-stats-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-stat-chip {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  min-width: 70px;
}

.admin-stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--fg-primary);
}

.admin-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.chip-new .admin-stat-val { color: var(--accent); }
.chip-contacted .admin-stat-val { color: var(--accent-warm); }
.chip-qualified .admin-stat-val { color: #4fa5d1; }
.chip-closed .admin-stat-val { color: var(--fg-muted); }

/* ====== FILTER TABS ====== */
.admin-filter-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.filter-tab {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, background 0.15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.filter-tab:hover { color: var(--fg-secondary); }

.filter-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--accent-glow);
}

/* ====== ADMIN TABLE ====== */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table thead th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.admin-table tbody tr:last-child {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: var(--bg-accent);
}

.admin-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

.inq-name {
  font-weight: 600;
  color: var(--fg-primary);
}

.inq-email {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 0.15rem;
}

.inq-meta {
  color: var(--fg-secondary);
  font-size: 0.82rem;
  text-transform: capitalize;
}

.inq-date {
  color: var(--fg-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.admin-view-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.admin-view-btn:hover { opacity: 1; }

/* ====== STATUS BADGES ====== */
.status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  display: inline-block;
}

.status-new { background: rgba(79,209,133,0.12); color: var(--accent); }
.status-contacted { background: rgba(212,168,87,0.12); color: var(--accent-warm); }
.status-qualified { background: rgba(79,165,209,0.12); color: #4fa5d1; }
.status-closed { background: rgba(255,255,255,0.06); color: var(--fg-muted); }

/* ====== SERVICE BADGES ====== */
.service-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.service-badge-nbs { background: rgba(79,209,133,0.1); color: var(--accent); }
.service-badge-ehs { background: rgba(212,168,87,0.1); color: var(--accent-warm); }
.service-badge-commerce { background: rgba(79,165,209,0.1); color: #4fa5d1; }
.service-badge-multiple { background: rgba(150,150,255,0.1); color: #a09fe0; }
.service-badge-unsure { background: rgba(255,255,255,0.06); color: var(--fg-muted); }

/* ====== ADMIN EMPTY STATE ====== */
.admin-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--fg-muted);
}

.admin-empty svg {
  display: block;
  margin: 0 auto 1rem;
}

.admin-empty p {
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ====== ADMIN DETAIL ====== */
.admin-detail-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-back-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.admin-back-link:hover { color: var(--fg-primary); }

.update-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(79,209,133,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.detail-card,
.detail-actions-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.detail-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--fg-primary);
}

.detail-org {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.detail-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.3rem;
}

.detail-meta-val {
  font-size: 0.9rem;
  color: var(--fg-secondary);
}

.detail-link {
  color: var(--accent);
  text-decoration: none;
}

.detail-link:hover {
  text-decoration: underline;
}

.detail-message-block {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.detail-message {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.75;
  margin-top: 0.5rem;
  white-space: pre-wrap;
}

.detail-actions-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg-primary);
  margin-bottom: 1.25rem;
}

.detail-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ====== ADMIN LOGIN ====== */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
}

.admin-login-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--fg-primary);
  margin-bottom: 0.2rem;
}

.admin-login-sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* ====== RESPONSIVE ADMIN ====== */
@media (max-width: 900px) {
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-main {
    padding: 1.5rem;
  }
  .form-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
