/* ==========================================================
   ATLAS — Design System (base tokens, reset, utilities)
   ========================================================== */

:root {
  /* Type */
  --font-display: "Quicksand", sans-serif;
  --font-ui: "Quicksand", sans-serif;

  /* Light theme (warm ivory + deep emerald + champagne gold) */
  --bg: #f7f5f0;
  --bg-elev: #fdfcfa;
  --surface: #ffffff;
  --surface-2: #f1eee7;
  --ink: #16181d;
  --ink-2: #4c5158;
  --ink-3: #8a8f98;
  --line: rgba(22, 24, 29, 0.09);
  --line-strong: rgba(22, 24, 29, 0.16);

  --accent: #14594a;
  --accent-ink: #0e4237;
  --accent-soft: rgba(20, 89, 74, 0.09);
  --gold: #b98a2e;
  --gold-soft: rgba(185, 138, 46, 0.13);
  --danger: #ff614a;
  --danger-soft: rgba(179, 64, 47, 0.11);
  --ok: #2e7d4f;
  --ok-soft: rgba(46, 125, 79, 0.12);
  --warn: #a06a10;
  --warn-soft: rgba(160, 106, 16, 0.13);

  --shadow-1: 0 1px 2px rgba(22, 24, 29, 0.05), 0 4px 16px rgba(22, 24, 29, 0.05);
  --shadow-2: 0 2px 6px rgba(22, 24, 29, 0.06), 0 14px 40px rgba(22, 24, 29, 0.10);
  --shadow-3: 0 8px 20px rgba(22, 24, 29, 0.12), 0 32px 80px rgba(22, 24, 29, 0.18);

  --r-sm: 10px;
  --r-md: 10px;
  --r-lg: 15px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;

  --header-h: 72px;
  --tabbar-h: 64px;
}

@media (max-width: 767.98px) {
  :root {
    --r-sm: 5px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 20px;
  }
}

[data-theme="dark"] {
  --bg: #0d0f12;
  --bg-elev: #12151a;
  --surface: #171b21;
  --surface-2: #1e232b;
  --ink: #eef0f3;
  --ink-2: #b3b9c2;
  --ink-3: #737a85;
  --line: rgba(238, 240, 243, 0.08);
  --line-strong: rgba(238, 240, 243, 0.16);

  --accent: #3ea88c;
  --accent-ink: #5cc2a6;
  --accent-soft: rgba(62, 168, 140, 0.13);
  --gold: #d4a94e;
  --gold-soft: rgba(212, 169, 78, 0.14);
  --danger: #e06a56;
  --danger-soft: rgba(224, 106, 86, 0.14);
  --ok: #58b981;
  --ok-soft: rgba(88, 185, 129, 0.14);
  --warn: #d9a244;
  --warn-soft: rgba(217, 162, 68, 0.15);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-3: 0 8px 20px rgba(0, 0, 0, 0.5), 0 32px 80px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: normal;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 400ms ease, color 400ms ease;
}
.hint{
  font-size: 15px;
  color: var(--ink-3);
  margin-top: 16px;
}
.join-comm{
  font-size: 20px;
}
.join-comm-muted{
  margin-top: 20px;
  margin-bottom: 20px;
}

img, svg {
  display: block;
  /* max-width: 100%; */
}
[data-icon] { display: contents; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.headingcms{
  background: var(--surface-2);
  padding: 13px 15px;
  border-radius: var(--r-md);
  font-size: 20px;
  font-weight: 900;
}

/* ---------- Buttons ---------- */
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
              background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: var(--shadow-2); transform: translateY(-1px); }
[data-theme="dark"] .btn-primary { color: #0b1512; }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--r-md);
}
.btn-soft:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .btn-soft:hover { color: #0b1512; }

.btn-sm { 
  padding: 8px 14px; 
  font-size: 14px; 
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  transition: all 180ms var(--ease);
  flex-shrink: 0;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all 180ms var(--ease);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  min-width: 90px;
  justify-content: center;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.chip.is-active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
[data-theme="dark"] .chip.is-active { background: var(--ink); color: #0d0f12; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-transform: capitalize;
}
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn {
  background: var(--warn-soft); 
  color: var(--warn);
}
.panel-vendor-upgrade .pill-warn{
  max-height: 30px;
}
.panel-vendor-upgrade .comment .c-body{
  font-weight: 600;
}
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-gold { background: var(--gold-soft); color: var(--gold); }
.pill-accent { background: var(--accent-soft); color: var(--accent-ink); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color 200ms ease;
}

/* ---------- Forms ---------- */
.field {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field::placeholder { color: var(--ink-3); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Illustration placeholders (pure CSS "photos") ---------- */
.ph { background: linear-gradient(140deg, var(--ph-a, #d8e5df), var(--ph-b, #b9cfc6)); position: relative; }
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 55% at 68% 78%, rgba(255,255,255,0.28), transparent 70%),
    radial-gradient(45% 60% at 22% 18%, rgba(255,255,255,0.16), transparent 70%);
}
.ph .ph-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}
.ph .ph-glyph svg { width: 44px; height: 44px; opacity: 0.9; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18)); }

.ph-emerald { --ph-a: #1d6a58; --ph-b: #10453a; }
.ph-gold    { --ph-a: #caa04a; --ph-b: #8f6a1e; }
.ph-terra   { --ph-a: #c96a52; --ph-b: #8e3f2d; }
.ph-slate   { --ph-a: #5a7184; --ph-b: #34495c; }
.ph-plum    { --ph-a: #7d5a84; --ph-b: #4e3355; }
.ph-ocean   { --ph-a: #3e7ca6; --ph-b: #23506e; }
.ph-moss    { --ph-a: #7a8a4e; --ph-b: #4d5c2c; }
.ph-rose    { --ph-a: #b56576; --ph-b: #7d3c4e; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Scrollbars ---------- */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  bottom: calc(var(--tabbar-h) + 18px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
@media (min-width: 900px) { .toast-wrap { bottom: 28px; } }

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 550;
  box-shadow: var(--shadow-3);
  animation: toast-in 400ms var(--ease), toast-out 350ms ease 2600ms forwards;
}
[data-theme="dark"] .toast { background: #eef0f3; color: #14161a; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }

@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ---------- Helpers ---------- */
.hide-mobile { display: none !important; }
@media (min-width: 900px) {
  .hide-mobile { display: revert !important; }
  .hide-desktop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
