/* Inline onboarding cards — organization admin portal only */

.admin-onb-mount {
  margin: 0 0 16px;
}

.admin-onb {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(var(--mint-rgb), 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  padding: 16px 18px;
  position: relative;
}

.admin-onb--critical {
  border-color: rgba(var(--color-warning-rgb, 234, 179, 8), 0.35);
  background: linear-gradient(135deg, rgba(var(--color-warning-rgb, 234, 179, 8), 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.admin-onb--success {
  border-color: rgba(var(--mint-rgb), 0.28);
  background: linear-gradient(135deg, rgba(var(--mint-rgb), 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.admin-onb--info {
  border-color: rgba(var(--purple-rgb), 0.22);
  background: linear-gradient(135deg, rgba(var(--purple-rgb), 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Dashboard welcome (early setup) */
.admin-dashboard-welcome-mount {
  margin: 0 0 12px;
}

.admin-dashboard-welcome-mount[hidden] {
  display: none !important;
}

.admin-onb--welcome {
  border-color: rgba(var(--mint-rgb), 0.32);
  background: linear-gradient(125deg, rgba(var(--mint-rgb), 0.14) 0%, rgba(var(--purple-rgb), 0.07) 48%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.admin-onb--welcome .admin-onb__title {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.admin-welcome__kicker {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.admin-onb--welcome-compact {
  padding: 12px 16px;
}

.admin-onb--welcome-compact .admin-onb__title {
  font-size: 1rem;
}

.admin-onb--welcome-compact .admin-onb__body {
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.admin-onb__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-onb__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-onb__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(var(--mint-rgb), 0.18);
  color: var(--mint);
  border: 1px solid rgba(var(--mint-rgb), 0.3);
}

.admin-onb__badge--req {
  background: rgba(var(--color-warning-rgb, 234, 179, 8), 0.15);
  color: #fde68a;
  border-color: rgba(var(--color-warning-rgb, 234, 179, 8), 0.35);
}

.admin-onb__dismiss {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-onb__dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.admin-onb__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-onb__title .ti {
  color: var(--mint);
  font-size: 1.15rem;
}

.admin-onb__body {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 820px;
}

.admin-onb__list {
  margin: 8px 0 12px;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.admin-onb__list li + li {
  margin-top: 4px;
}

.admin-onb__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-onb__actions .adm-btn .ti {
  font-size: 1rem;
}

body.theme-light .admin-onb,
body.theme-light .admin-onb--critical,
body.theme-light .admin-onb--success,
body.theme-light .admin-onb--info,
body.theme-light .admin-onb--welcome {
  background: var(--field-bg, #fff);
  border-color: var(--field-border, rgba(17, 24, 39, 0.12));
}

body.theme-light .admin-onb--welcome {
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}

/* ─── Setup step strip (Season Config + Settings tabs) ─── */

.onb-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.onb-strip__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.onb-strip__reset {
  appearance: none;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.onb-strip__reset:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.onb-strip__reset .ti {
  font-size: 0.8rem;
}

.onb-strip__feedback {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mint);
  white-space: nowrap;
  animation: onb-feedback-fade 2.2s ease-out forwards;
}

@keyframes onb-feedback-fade {
  0%   { opacity: 0; transform: translateY(3px); }
  15%  { opacity: 1; transform: none; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

body.theme-light .onb-strip__reset:hover {
  background: rgba(17, 24, 39, 0.06);
}

.onb-strip--all-done {
  border-color: rgba(var(--mint-rgb), 0.2);
  background: rgba(var(--mint-rgb), 0.05);
}

.onb-strip__connector {
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.onb-strip__step {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.onb-strip__step--complete {
  background: rgba(var(--mint-rgb), 0.12);
  border-color: rgba(var(--mint-rgb), 0.25);
  color: var(--mint);
}

.onb-strip__step--complete:hover {
  background: rgba(var(--mint-rgb), 0.2);
}

.onb-strip__step--blocker {
  background: rgba(var(--color-warning-rgb, 234, 179, 8), 0.14);
  border-color: rgba(var(--color-warning-rgb, 234, 179, 8), 0.45);
  color: #fde68a;
  box-shadow: 0 0 0 3px rgba(var(--color-warning-rgb, 234, 179, 8), 0.1);
}

.onb-strip__step--blocker:hover {
  background: rgba(var(--color-warning-rgb, 234, 179, 8), 0.22);
}

.onb-strip__step--pending {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.onb-strip__step--pending:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--text);
}

.onb-strip__step-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.onb-strip__step-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(var(--color-warning-rgb, 234, 179, 8), 0.25);
  border: 1px solid rgba(var(--color-warning-rgb, 234, 179, 8), 0.4);
  color: #fde68a;
}

/* Light theme */
body.theme-light .onb-strip {
  background: var(--field-bg, #fff);
  border-color: var(--field-border, rgba(17, 24, 39, 0.12));
}

body.theme-light .onb-strip--all-done {
  border-color: rgba(var(--mint-rgb), 0.25);
  background: rgba(var(--mint-rgb), 0.04);
}

body.theme-light .onb-strip__connector {
  color: rgba(17, 24, 39, 0.2);
}

body.theme-light .onb-strip__step--complete {
  background: rgba(var(--mint-rgb), 0.09);
  border-color: rgba(var(--mint-rgb), 0.28);
}

body.theme-light .onb-strip__step--blocker {
  background: rgba(var(--color-warning-rgb, 234, 179, 8), 0.1);
  border-color: rgba(var(--color-warning-rgb, 234, 179, 8), 0.4);
  color: #92400e;
  box-shadow: 0 0 0 3px rgba(var(--color-warning-rgb, 234, 179, 8), 0.08);
}

body.theme-light .onb-strip__step--blocker .onb-strip__step-tag {
  background: rgba(var(--color-warning-rgb, 234, 179, 8), 0.15);
  color: #92400e;
  border-color: rgba(var(--color-warning-rgb, 234, 179, 8), 0.35);
}

body.theme-light .onb-strip__step--pending {
  background: rgba(17, 24, 39, 0.04);
  border-color: rgba(17, 24, 39, 0.1);
  color: var(--muted);
}

body.theme-light .onb-strip__step--pending:hover {
  background: rgba(17, 24, 39, 0.07);
  border-color: rgba(17, 24, 39, 0.18);
  color: var(--text);
}

@media (max-width: 640px) {
  .onb-strip {
    padding: 10px 12px;
  }

  .onb-strip__connector {
    display: none;
  }

  .onb-strip__step {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* ─── Subtab inline guidance cards ─── */

.onb-subtab-mount {
  /* empty until JS renders into it */
}

@keyframes onb-guide-appear {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes onb-guide-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  40%       { box-shadow: 0 0 0 4px rgba(var(--mint-rgb), 0.35); }
}

/* Blocker — shown when this step is the current gap */
.onb-subtab-guide {
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 18px;
  animation: onb-guide-appear 0.22s ease-out;
}

.onb-subtab-guide--highlight {
  animation: onb-guide-appear 0.22s ease-out, onb-guide-pulse 1.1s ease-out 0.15s;
}

.onb-subtab-guide--blocker {
  background: rgba(var(--color-warning-rgb, 234, 179, 8), 0.07);
  border: 1px solid rgba(var(--color-warning-rgb, 234, 179, 8), 0.22);
}

.onb-subtab-guide__hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.onb-subtab-guide__icon {
  font-size: 1.05rem;
  color: rgba(var(--color-warning-rgb, 234, 179, 8), 0.85);
  flex-shrink: 0;
}

.onb-subtab-guide__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.onb-subtab-guide__gotit {
  appearance: none;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
  flex-shrink: 0;
  transition: color 0.12s ease, background 0.12s ease;
}

.onb-subtab-guide__gotit:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.onb-subtab-guide__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
}

.onb-subtab-guide__list li + li {
  margin-top: 3px;
}

/* Complete — same structure as blocker but mint/green toned */
.onb-subtab-guide--complete {
  background: rgba(var(--mint-rgb), 0.07);
  border: 1px solid rgba(var(--mint-rgb), 0.18);
}

.onb-subtab-guide__icon--ok {
  color: var(--mint);
}

.onb-subtab-guide__title--ok {
  color: var(--mint);
}

.onb-subtab-guide__dismiss {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s ease, color 0.12s ease;
}

.onb-subtab-guide__dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* Light theme */
body.theme-light .onb-subtab-guide--blocker {
  background: rgba(var(--color-warning-rgb, 234, 179, 8), 0.06);
  border-color: rgba(var(--color-warning-rgb, 234, 179, 8), 0.25);
}

body.theme-light .onb-subtab-guide--complete {
  background: rgba(var(--mint-rgb), 0.05);
  border-color: rgba(var(--mint-rgb), 0.2);
}

body.theme-light .onb-subtab-guide__gotit:hover {
  background: rgba(17, 24, 39, 0.06);
}

body.theme-light .onb-subtab-guide__dismiss {
  background: rgba(17, 24, 39, 0.05);
}

body.theme-light .onb-subtab-guide__dismiss:hover {
  background: rgba(17, 24, 39, 0.1);
}

/* ─── Guided tour tooltip ─── */

@keyframes onb-tooltip-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.onb-tour-tooltip {
  position: fixed;
  z-index: 10001;
  width: 304px;
  background: #0e2018;
  border: 1px solid rgba(var(--mint-rgb), 0.42);
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--mint-rgb), 0.1);
  animation: onb-tooltip-in 0.2s ease-out;
}

.onb-tour__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.onb-tour__counter {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(var(--mint-rgb), 0.18);
  color: var(--mint);
  border: 1px solid rgba(var(--mint-rgb), 0.28);
  padding: 3px 9px;
  border-radius: 9999px;
}

.onb-tour__close {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}

.onb-tour__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.onb-tour__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.onb-tour__body {
  margin: 0 0 14px;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--muted);
}

.onb-tour__dots {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}

.onb-tour__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
  flex-shrink: 0;
}

.onb-tour__dot--active {
  background: var(--mint);
  width: 18px;
  border-radius: 3px;
}

.onb-tour__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.onb-tour__back,
.onb-tour__skip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
  font-family: inherit;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.onb-tour__back:hover,
.onb-tour__skip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.onb-tour__next {
  appearance: none;
  border: none;
  background: var(--mint);
  color: #061a0e;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  transition: opacity 0.12s;
}

.onb-tour__next:hover {
  opacity: 0.88;
}

/* Highlight ring on the focused form field */
.onb-tour-focus {
  outline: 3px solid rgba(var(--mint-rgb), 0.8) !important;
  outline-offset: 4px !important;
  border-radius: 6px;
  position: relative;
  z-index: 9990;
}

/* Light theme overrides */
body.theme-light .onb-tour-tooltip {
  background: #fff;
  border-color: rgba(var(--mint-rgb), 0.35);
  box-shadow: 0 8px 32px rgba(17, 24, 39, 0.16);
}

body.theme-light .onb-tour__close {
  background: rgba(17, 24, 39, 0.06);
}

body.theme-light .onb-tour__back,
body.theme-light .onb-tour__skip {
  border-color: rgba(17, 24, 39, 0.14);
  background: rgba(17, 24, 39, 0.04);
}

body.theme-light .onb-tour__dot {
  background: rgba(17, 24, 39, 0.15);
}
