/* Forest green brand — light + dark. Shared by the whole product. */

:root {
  --jp-forest: #1e4037;
  --jp-forest-deep: #18372f;
  --jp-forest-soft: #2e6151;
  --jp-copper: #b36b4f;
  --jp-offwhite: #f7f8f4;
  --jp-sage: #edf0ea;
  --jp-white: #ffffff;
  --jp-green-gray: #dce3dc;
  --jp-charcoal: #1d2622;
  --jp-secondary: #56615a;
  --jp-muted: #79827b;
  --jp-surface: #f0f3ed;

  --bs-primary: #1e4037;
  --bs-primary--light: #f0f3ed;
  --bs-indigo: #1e4037;
  --bs-link-color: #1e4037;
  --bs-link-hover-color: #18372f;
  --bs-heading-color: #1d2622;
  --bs-body-bg: #f7f8f4;
  --bs-body-color: #56615a;
  --bs-emphasis-color: #1d2622;
  --bs-border-color: #dce3dc;
}

[data-theme="dark"] {
  --jp-forest: #1e4037;
  --jp-forest-deep: #121d19;
  --jp-forest-soft: #a9cdbd;
  --jp-copper: #e4a589;
  --jp-offwhite: #121d19;
  --jp-sage: #22352b;
  --jp-white: #1c2b24;
  --jp-green-gray: #34493d;
  --jp-charcoal: #edf2ed;
  --jp-secondary: #d0e4d9;
  --jp-muted: #8aa196;
  --jp-surface: #22352b;

  --bs-primary: #a9cdbd;
  --bs-primary--light: #22352b;
  --bs-indigo: #a9cdbd;
  --bs-link-color: #a9cdbd;
  --bs-link-hover-color: #d0e4d9;
  --bs-heading-color: #edf2ed;
  --bs-body-bg: #121d19;
  --bs-body-color: #d0e4d9;
  --bs-emphasis-color: #edf2ed;
  --bs-border-color: #34493d;
}

/* Hero decoration is the hexagon grid only. */
[class*="hero-grid"],
.hero-bg-grid {
  position: absolute !important;
  inset: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 17.32v34.64L30 60 0 51.96V17.32z' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3C/svg%3E") !important;
  background-size: 60px 60px !important;
  opacity: 0.8 !important;
  pointer-events: none !important;
  animation: none !important;
  display: block !important;
}

[data-theme="dark"] [class*="hero-grid"] {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 17.32v34.64L30 60 0 51.96V17.32z' fill='none' stroke='rgba(169,205,189,0.06)' stroke-width='1'/%3E%3C/svg%3E") !important;
}

[class*="-hero-glow"],
[class*="-hero-orbs"],
[class*="-hero-orbs"]::before,
[class*="-hero-orbs"]::after,
[class*="-hero-orbit"],
[class*="-hero-orbit"] span,
[class*="-hero-orb"],
[class*="-hero-stream"],
[class*="-hero-stream"]::before,
[class*="-hero-circuit"],
[class*="-hero-gears"],
[class*="-hero-nodes"],
[class*="-hero-connections"],
[class*="-hero-particles"],
[class*="-hero-visual"] {
  animation: none !important;
  display: none !important;
}

/* Buttons and chips on dark forest heroes need a contrasting fill */
[class*="-hero"] [class*="btn-new"],
[class*="-hero"] [class*="btn-primary"]:not(.jd-hero-btn-primary),
[class*="-hero-actions"] button,
[class*="-hero-actions"] a,
[class*="-hero-cta"] button,
[class*="-hero-cta"] a,
[class*="-hero-right"] .aw-btn-primary,
.aw-hero .aw-btn-primary,
.db-hero [class*="btn-primary"] {
  background: #f7f8f4 !important;
  background-image: none !important;
  color: #1e4037 !important;
  border: 1px solid #edf0ea !important;
  box-shadow: 0 2px 10px rgba(18, 29, 25, 0.16) !important;
}

[class*="-hero"] [class*="btn-new"] i,
[class*="-hero"] [class*="btn-primary"]:not(.jd-hero-btn-primary) i,
[class*="-hero-actions"] button i,
[class*="-hero-actions"] a i,
.aw-hero .aw-btn-primary i {
  color: #1e4037 !important;
}

[class*="-hero"] [class*="btn-new"]:hover,
[class*="-hero"] [class*="btn-primary"]:not(.jd-hero-btn-primary):hover,
[class*="-hero-actions"] button:hover,
[class*="-hero-actions"] a:hover,
.aw-hero .aw-btn-primary:hover {
  background: #ffffff !important;
  color: #18372f !important;
}

[class*="-hero"] [class*="btn-outline"],
[class*="-hero"] [class*="btn-ghost"],
[class*="-hero"] [class*="btn-icon"]:not(.jd-hero-btn-icon),
[class*="-hero"] [class*="btn-archive"],
[class*="-hero"] [class*="btn-secondary"],
.db-profile-card [class*="btn"],
[class*="-hero"] .aw-btn-ghost {
  background: #f0f3ed !important;
  background-image: none !important;
  color: #1e4037 !important;
  border: 1px solid #dce3dc !important;
}

[class*="-hero"] [class*="btn-outline"] i,
[class*="-hero"] [class*="btn-ghost"] i,
[class*="-hero"] [class*="btn-icon"]:not(.jd-hero-btn-icon) i,
[class*="-hero"] [class*="btn-archive"] i,
[class*="-hero"] [class*="btn-secondary"] i,
.db-profile-card [class*="btn"] i,
.aw-hero .aw-btn-ghost i {
  color: #1e4037 !important;
}

[class*="-hero"] [class*="token-card"],
[class*="-hero"] .aw-hero-metric,
.aw-hero-metric {
  background: rgba(169, 205, 189, 0.16) !important;
  border: 1px solid rgba(208, 228, 217, 0.38) !important;
  backdrop-filter: blur(18px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.25) !important;
  box-shadow: none !important;
  color: #edf2ed !important;
}

[class*="-hero"] [class*="token-label"],
[class*="-hero"] .aw-hero-metric-label,
.aw-hero-metric-label {
  color: rgba(237, 242, 237, 0.74) !important;
}

[class*="-hero"] [class*="token-value"],
[class*="-hero"] .aw-hero-metric-value,
.aw-hero-metric-value {
  color: #edf2ed !important;
}

[class*="-hero"] [class*="token-icon"],
[class*="-hero"] .aw-hero-metric-icon,
.aw-hero-metric-icon {
  background: rgba(169, 205, 189, 0.28) !important;
  background-image: none !important;
  color: #edf2ed !important;
  border: 1px solid rgba(208, 228, 217, 0.4) !important;
}

[class*="-hero-badge"] i,
[class*="-hero-badge"] svg {
  color: #a9cdbd !important;
  fill: #a9cdbd !important;
}

/* Confirm / restore actions: forest fill + paper text, not forest-on-forest */
.fj-confirm-btn-confirm,
.int-confirm-btn-confirm,
.res-confirm-btn-confirm,
.auto-premium-btn-confirm,
.fj-restore-btn,
.int-restore-btn,
.swal2-confirm.auto-premium-btn-confirm {
  background: #1e4037 !important;
  background-image: none !important;
  color: #f7f8f4 !important;
}

.fj-confirm-btn-confirm i,
.int-confirm-btn-confirm i,
.res-confirm-btn-confirm i,
.auto-premium-btn-confirm i,
.fj-restore-btn i,
.int-restore-btn i,
.swal2-confirm.auto-premium-btn-confirm {
  color: #f7f8f4 !important;
}

[data-theme="dark"] .fj-confirm-btn-confirm,
[data-theme="dark"] .int-confirm-btn-confirm,
[data-theme="dark"] .res-confirm-btn-confirm,
[data-theme="dark"] .auto-premium-btn-confirm,
[data-theme="dark"] .fj-restore-btn,
[data-theme="dark"] .int-restore-btn,
[data-theme="dark"] .swal2-confirm.auto-premium-btn-confirm {
  background: #a9cdbd !important;
  background-image: none !important;
  color: #121d19 !important;
}

[data-theme="dark"] .fj-confirm-btn-confirm i,
[data-theme="dark"] .int-confirm-btn-confirm i,
[data-theme="dark"] .res-confirm-btn-confirm i,
[data-theme="dark"] .auto-premium-btn-confirm i,
[data-theme="dark"] .fj-restore-btn i,
[data-theme="dark"] .int-restore-btn i,
[data-theme="dark"] .swal2-confirm.auto-premium-btn-confirm {
  color: #121d19 !important;
}

.modal-header {
  align-items: center;
}

.modal-header .btn-close {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center;
}

.fj-archived-header,
.int-archived-header {
  display: flex !important;
  align-items: center !important;
}

.fj-archived-close,
.int-archived-close {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  flex-shrink: 0;
  margin: 0 !important;
}

[class*="-hero-title"] span,
[class*="-hero-title"] .gradient-text,
[class*="-hero-title"] .gold-text,
[class*="-hero"] .gradient-text,
[class*="-hero"] .gold-text {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #a9cdbd !important;
  color: #a9cdbd !important;
}

/* ------------------------------------------------------------------ */
/* Shared starter / empty states (Job Finder, Automation, Resume, …)  */
/* ------------------------------------------------------------------ */
.rk-empty {
  text-align: center;
  padding: 64px 28px;
  background: var(--jp-white, #ffffff);
  border-radius: 16px;
  border: 1px solid var(--jp-sage, #edf0ea);
  position: relative;
  overflow: hidden;
}

.rk-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 97, 81, 0.12);
  color: #18372f;
  font-size: 1.85rem;
  animation: rk-empty-in 0.45s ease both;
}

.rk-empty-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--jp-surface, #f0f3ed);
  border: 1px solid var(--jp-sage, #edf0ea);
  color: var(--jp-secondary, #56615a);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: rk-empty-in 0.45s ease 0.06s both;
}

.rk-empty-eyebrow i {
  color: #2e6151;
  font-size: 0.9rem;
}

.rk-empty h2,
.rk-empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--jp-charcoal, #1d2622);
  margin: 0 0 10px;
  animation: rk-empty-in 0.45s ease 0.1s both;
}

.rk-empty-text {
  color: var(--jp-muted, #79827b);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto 22px;
  line-height: 1.55;
  animation: rk-empty-in 0.45s ease 0.14s both;
}

.rk-empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  animation: rk-empty-in 0.45s ease 0.18s both;
}

.rk-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.rk-empty-btn-primary {
  background: #1e4037;
  color: #f7f8f4;
  box-shadow: 0 2px 10px rgba(18, 29, 25, 0.14);
}

.rk-empty-btn-primary:hover {
  background: #18372f;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(30, 64, 55, 0.22);
}

.rk-empty-btn-secondary {
  background: var(--jp-surface, #f0f3ed);
  color: #1e4037;
  border-color: var(--jp-green-gray, #dce3dc);
}

.rk-empty-btn-secondary:hover {
  background: #ffffff;
  border-color: #dce3dc;
  color: #18372f;
}

.rk-empty-hints {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--jp-sage, #edf0ea);
  animation: rk-empty-in 0.45s ease 0.22s both;
}

.rk-empty-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--jp-muted, #79827b);
  font-size: 0.8rem;
  font-weight: 500;
}

.rk-empty-hint i {
  color: #2e6151;
  font-size: 0.95rem;
}

@keyframes rk-empty-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme="dark"] .rk-empty {
  background: var(--jp-white, #1c2b24);
  border-color: var(--jp-green-gray, #34493d);
}

[data-theme="dark"] .rk-empty-icon {
  background: rgba(169, 205, 189, 0.12);
  color: #a9cdbd;
}

[data-theme="dark"] .rk-empty-eyebrow {
  background: var(--jp-sage, #22352b);
  border-color: var(--jp-green-gray, #34493d);
  color: var(--jp-secondary, #d0e4d9);
}

[data-theme="dark"] .rk-empty-eyebrow i,
[data-theme="dark"] .rk-empty-hint i {
  color: #a9cdbd;
}

[data-theme="dark"] .rk-empty h2,
[data-theme="dark"] .rk-empty-title {
  color: var(--jp-charcoal, #edf2ed);
}

[data-theme="dark"] .rk-empty-text,
[data-theme="dark"] .rk-empty-hint {
  color: var(--jp-muted, #8aa196);
}

[data-theme="dark"] .rk-empty-btn-primary {
  background: #a9cdbd;
  color: #121d19;
  box-shadow: none;
}

[data-theme="dark"] .rk-empty-btn-primary:hover {
  background: #d0e4d9;
  color: #121d19;
  box-shadow: 0 10px 24px rgba(169, 205, 189, 0.25);
}

[data-theme="dark"] .rk-empty-btn-secondary {
  background: #22352b;
  color: #edf2ed;
  border-color: #34493d;
}

[data-theme="dark"] .rk-empty-btn-secondary:hover {
  background: #2a3c33;
  border-color: #34493d;
  color: #edf2ed;
}

[data-theme="dark"] .rk-empty-hints {
  border-top-color: var(--jp-green-gray, #34493d);
}

@media (max-width: 576px) {
  .rk-empty {
    padding: 44px 16px;
    border-radius: 14px;
  }

  .rk-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 1.5rem;
  }

  .rk-empty h2,
  .rk-empty-title {
    font-size: 1.3rem;
  }

  .rk-empty-text {
    font-size: 0.88rem;
  }

  .rk-empty-actions {
    flex-direction: column;
    gap: 10px;
  }

  .rk-empty-btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.88rem;
  }

  .rk-empty-hints {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
  }
}
