/* ===== INVAZIUM — Dark Eco-Tech Design System v2 ===== */

:root {
  --bg:             #020d06;
  --bg-deep:        #010805;
  --surface:        rgba(255,255,255,0.055);
  --surface-strong: rgba(255,255,255,0.095);
  --surface-border: rgba(255,255,255,0.10);
  --surface-border-strong: rgba(255,255,255,0.18);

  --text:      #eef2ed;
  --text-soft: rgba(238,242,237,0.68);
  --text-muted:rgba(238,242,237,0.44);

  --accent:       #d8f000;
  --accent-hover: #e8ff3a;
  --accent-dark:  #a0b800;
  --accent-glow:  rgba(216,240,0,0.22);

  --teal:      #0e8f87;
  --teal-soft: #14aaa1;
  --teal-glow: rgba(14,143,135,0.20);

  --success: #7ed957;
  --warning: #ffd84d;
  --danger:  #ff6161;

  --shadow:    0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.50);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --transition: 200ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 350ms cubic-bezier(0.4,0,0.2,1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* ===== Canvas background ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Everything sits above canvas */
.site-header, .main-content, .site-footer, .bottom-nav {
  position: relative;
  z-index: 1;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2,13,6,0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.site-logo__text {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-nav {
  display: none;
  gap: 2px;
}
@media (min-width: 768px) { .site-nav { display: flex; } }

.site-nav a {
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.site-nav a.active { color: var(--accent); background: rgba(216,240,0,0.08); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
  font-family: inherit;
}
.btn:disabled { opacity: 0.38; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #0d1a05;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #0d1a05;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(216,240,0,0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--surface-border-strong);
}

.btn-teal {
  background: rgba(14,143,135,0.15);
  color: var(--teal-soft);
  border: 1px solid rgba(14,143,135,0.30);
}
.btn-teal:hover:not(:disabled) {
  background: rgba(14,143,135,0.25);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--surface-border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.btn-danger {
  background: rgba(255,97,97,0.10);
  color: var(--danger);
  border: 1px solid rgba(255,97,97,0.22);
}
.btn-danger:hover { background: rgba(255,97,97,0.20); }

.btn-sm  { min-height: 34px; padding: 0 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg  { min-height: 54px; padding: 0 32px; font-size: 1rem; }
.btn-icon{ padding: 0; width: 44px; border-radius: 50%; }

/* ===== Cards ===== */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 24px; }

/* ===== Glass utility ===== */
.glass {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== Forms ===== */
.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(216,240,0,0.10);
}
textarea.form-control { min-height: 110px; resize: vertical; }

.form-hint  { font-size: 0.78rem; color: var(--text-muted); }
.form-error { font-size: 0.82rem; color: var(--danger); }

/* ===== Hero ===== */
.hero {
  padding: 72px 0 64px;
  position: relative;
}

@media (min-width: 1024px) {
  .hero { padding: 96px 0 80px; }
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14,143,135,0.12);
  border: 1px solid rgba(14,143,135,0.28);
  color: var(--teal-soft);
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-soft);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__media {
  display: none;
}
@media (min-width: 1024px) {
  .hero__media {
    display: block;
    position: relative;
  }
}

.hero__media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero__media-grid > :first-child {
  grid-column: 1 / -1;
}

.hero__media-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-lg);
}

.hero__media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.hero__media-img:hover img { transform: scale(1.03); }

/* ===== Sections ===== */
.section    { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 96px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.7;
}

/* ===== Plant cards — List layout ===== */
.plants-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plant-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.plant-list-item:hover {
  background: var(--surface);
  border-color: var(--surface-border);
  transform: translateX(4px);
  color: inherit;
}

.plant-list-item__num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 22px;
  flex-shrink: 0;
  text-align: center;
}

.plant-list-item__img {
  width: 52px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--surface-border);
}

.plant-list-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.plant-list-item__info {
  flex: 1;
  min-width: 0;
}

.plant-list-item__name {
  font-weight: 700;
  font-size: 0.97rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plant-list-item__latin {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.plant-list-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ===== Plant grid (home preview) ===== */
.plants-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px)  { .plants-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .plants-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.plant-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.plant-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.plant-card__img {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.plant-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 400ms ease;
}
.plant-card:hover .plant-card__img img { transform: scale(1.05); }

.plant-card__body { padding: 14px 16px 18px; }
.plant-card__name { font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; line-height: 1.3; }
.plant-card__latin { font-style: italic; color: var(--text-muted); font-size: 0.78rem; margin-bottom: 10px; }

/* ===== Tags / Badges ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tag-teal   { background: rgba(14,143,135,0.14); color: var(--teal-soft);  border: 1px solid rgba(14,143,135,0.25); }
.tag-accent { background: rgba(216,240,0,0.10);  color: var(--accent);     border: 1px solid rgba(216,240,0,0.22); }
.tag-muted  { background: rgba(255,255,255,0.06);color: var(--text-muted); border: 1px solid var(--surface-border); }

/* ===== Status ===== */
.status-pending  { color: var(--warning); }
.status-approved { color: var(--success); }
.status-rejected { color: var(--danger); }

.badge-pending  { background: rgba(255,216,77,0.10); color: var(--warning); border: 1px solid rgba(255,216,77,0.25); padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.badge-approved { background: rgba(126,217,87,0.10); color: var(--success); border: 1px solid rgba(126,217,87,0.25); padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.badge-rejected { background: rgba(255,97,97,0.10);  color: var(--danger);  border: 1px solid rgba(255,97,97,0.25);  padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }

/* ===== Metrics ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 768px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }

.metric-card {
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
}
.metric-card__value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-card__label { color: var(--text-muted); font-size: 0.8rem; line-height: 1.4; }

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card { padding: 22px 20px; border-radius: var(--radius-lg); }
.step-card__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(216,240,0,0.10);
  border: 1px solid rgba(216,240,0,0.25);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-card__title { font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.step-card__text  { color: var(--text-soft); font-size: 0.86rem; line-height: 1.6; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color var(--transition);
  letter-spacing: -0.01em;
}
.faq-question:hover { color: var(--accent); }

.faq-question__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--surface-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.faq-item.open .faq-question__icon {
  transform: rotate(45deg);
  background: rgba(216,240,0,0.10);
  border-color: rgba(216,240,0,0.30);
  color: var(--accent);
}

.faq-answer { overflow: hidden; max-height: 0; transition: max-height 320ms cubic-bezier(0.4,0,0.2,1); }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer__inner { padding-bottom: 18px; color: var(--text-soft); line-height: 1.75; font-size: 0.93rem; }

/* ===== Bottom Nav (mobile) ===== */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(2,10,5,0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  min-height: 54px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.bottom-nav__item.active { color: var(--accent); }
.bottom-nav__item svg { width: 20px; height: 20px; }

.bottom-nav__item--cta {
  background: var(--accent);
  border-radius: 50%;
  color: #0d1a05;
  width: 46px;
  height: 46px;
  margin: auto;
  flex: none;
  min-height: unset;
  padding: 0;
  box-shadow: 0 4px 16px var(--accent-glow);
}

@media (max-width: 767px) { .main-content { padding-bottom: 72px; } }

/* ===== Observe SPA ===== */
.screen { display: none; animation: fadeSlideUp 220ms cubic-bezier(0.4,0,0.2,1); }
.screen.active { display: block; }

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

.observe-progress { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin: 16px 0; }
.observe-progress__fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 350ms cubic-bezier(0.4,0,0.2,1); box-shadow: 0 0 8px var(--accent-glow); }

.dropzone {
  border: 2px dashed rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255,255,255,0.03);
  position: relative;
}
.dropzone:hover, .dropzone.dragover {
  border-color: rgba(216,240,0,0.45);
  background: rgba(216,240,0,0.04);
}
.dropzone__icon  { font-size: 2.4rem; margin-bottom: 10px; opacity: 0.45; }
.dropzone__text  { color: var(--text-soft); font-size: 0.9rem; font-weight: 500; }
.dropzone__hint  { color: var(--text-muted); font-size: 0.78rem; margin-top: 6px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 14px; }
.photo-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb__remove {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.75); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1;
}

/* ===== Map ===== */
.map-container { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--surface-border); }

/* ===== Partners ===== */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.partner-card { padding: 20px 16px; border-radius: var(--radius-lg); text-align: center; transition: transform var(--transition), box-shadow var(--transition); }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ===== Footer ===== */
.site-footer {
  background: rgba(1,8,4,0.90);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 52px 0 32px;
  margin-top: 80px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ===== Profile ===== */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 768px) { .profile-stats { grid-template-columns: repeat(4, 1fr); } }

/* ===== Obs list ===== */
.obs-item { border-radius: var(--radius-md); transition: box-shadow var(--transition); }
.obs-item:hover { box-shadow: var(--shadow); }
.obs-item__header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; gap: 10px; }
.obs-item__body { max-height: 0; overflow: hidden; transition: max-height 300ms ease; padding: 0 18px; }
.obs-item.open .obs-item__body { max-height: 500px; padding: 0 18px 18px; }

/* ===== Alerts ===== */
.alert { padding: 13px 18px; border-radius: var(--radius-md); font-size: 0.875rem; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: rgba(126,217,87,0.08); border: 1px solid rgba(126,217,87,0.22); color: var(--success); }
.alert-danger  { background: rgba(255,97,97,0.08);  border: 1px solid rgba(255,97,97,0.22);  color: var(--danger); }
.alert-warning { background: rgba(255,216,77,0.08); border: 1px solid rgba(255,216,77,0.22); color: var(--warning); }
.alert-info    { background: rgba(14,143,135,0.08); border: 1px solid rgba(14,143,135,0.22); color: var(--teal-soft); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #0a1c0e;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto;
  transform: translateY(16px); transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.modal__body   { padding: 22px 24px; }
.modal__title  { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }

/* ===== Divider ===== */
.divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 22px 0; }

/* ===== Spinner ===== */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Utilities ===== */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-soft    { color: var(--text-soft); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:48px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.gap-1{gap:8px}.gap-2{gap:16px}.gap-3{gap:24px}

.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between{ justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.w-full        { width: 100%; }
.text-center   { text-align: center; }
.italic        { font-style: italic; }
.font-bold     { font-weight: 700; }
.hidden        { display: none !important; }
.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; }
