/*
  Lionare 2026. All rights reserved.
  Logo, brand, agents, mascots and other visual elements.
*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

:root {
  --lm-green: #087a2d;
  --lm-green-dark: #064f20;
  --lm-green-soft: #e8f6ee;
  --lm-ink: #172018;
  --lm-muted: #63706a;
  --lm-line: #d9e5dd;
  --lm-bg: #f7faf8;
  --lm-card: #fff;
  --lm-wire: #c8d4cc;
  --lm-placeholder: #eef2ef;
  --lm-topbar-bg: rgb(226 239 230 / 96%);
  --lm-topbar-border: #cee4d5;
  --lm-radius: 12px;
  --lm-chrome-box-border: 1px solid var(--lm-line);
  --lm-chrome-box-shadow: 0 2px 10px rgba(23, 32, 24, 0.05);
  --lm-planbar-h: 46px;
  --lm-tempbar-h: 50px;
  --lm-top-chrome-h: 62px;
  --lm-fixed-chrome-row-h: 48px;
  --lm-fixed-chrome-inset-left: 156px;
  --lm-fixed-chrome-inset-right: 84px;
  --lm-company-logo-w: 168px;
  --lm-top-float-w: 50%;
  --lm-chrome-logo-size: 50px;
  --lm-footer-logo-w: 70px;
  --lm-footer-live-w: 34px;
  --lm-footer-left-slot: calc(var(--lm-footer-logo-w) + 28px);
  --lm-footer-right-slot: calc(var(--lm-footer-live-w) + 14px);
  --lm-chrome-agent-size: 96px;
  --lm-agent-modal-hero-w: 34%;
  --lm-agent-modal-portrait-h: 220px;
  --lm-footer-h: 156px;
  --lm-overlay-z: 40;
  --lm-modal-z: 50;
  --lm-chrome-z: 30;
  --lm-sector-gold: #cedc00;
  --lm-gold-dark: #6b6200;
  --lm-gold-soft: #f4f6d4;
  --lm-plan-accent: var(--lm-sector-gold);
  --lm-plan-accent-ring: rgba(206, 220, 0, 0.28);
  --lm-plan-accent-border: rgba(168, 155, 0, 0.22);
  --lm-lime: #cedc00;
  --lm-lime-secondary: #cddb03;
  --lm-lime-soft: #f0f4c8;
  --lm-lime-ink: #00322f;
  --lm-topbar-h: 62px;
  --lm-dock-h: 0px;
  --lm-sector-green: #3ef08a;
  --lm-sector-teal: #5ce8ff;
  --lm-group-green-border: rgba(62, 240, 138, 0.28);
  --lm-group-green-bg-a: rgba(18, 155, 72, 0.2);
  --lm-group-green-bg-b: rgba(0, 0, 0, 0.1);
  --lm-group-green-accent: rgb(96, 255, 176);
  --lm-group-green-accent-soft: rgba(62, 240, 138, 0.62);
  --lm-group-teal-border: rgba(92, 232, 255, 0.3);
  --lm-group-teal-bg-a: rgba(24, 175, 205, 0.22);
  --lm-group-teal-bg-b: rgba(0, 0, 0, 0.1);
  --lm-group-teal-accent: rgb(144, 255, 252);
  --lm-group-teal-accent-soft: rgba(92, 232, 255, 0.62);
  --lm-mural-bg: linear-gradient(180deg, #021814, #002818);
  --lm-mural-border: rgba(255, 255, 255, 0.12);
  --lm-danger: #bf3d30;
  --lm-warn: #c47a12;
  --lm-info: #2563eb;
  --lm-gold: var(--lm-lime);
  --lm-gold-phase: var(--lm-lime-soft);
  --lm-green-phase: #dceee2;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.lm-app {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--lm-bg);
  color: var(--lm-ink);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lm-green-dark); text-decoration: none; }
a:hover { color: var(--lm-green); }

.lm-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lm-muted);
}

.lm-wire-box {
  background: var(--lm-card);
  border: 2px dashed var(--lm-wire);
  border-radius: var(--lm-radius);
  padding: 16px;
}

.lm-placeholder {
  background: var(--lm-placeholder);
  border: 1px dashed var(--lm-wire);
  border-radius: 8px;
  min-height: 48px;
}

.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.lm-btn[hidden] { display: none !important; }
.lm-btn--primary { background: var(--lm-green); color: #fff; }
.lm-btn--ghost { background: transparent; color: var(--lm-ink); border: 2px dashed var(--lm-wire); }
.lm-btn--ai {
  background: var(--lm-green-soft);
  color: var(--lm-green-dark);
  border: 2px dotted var(--lm-green);
}
.lm-btn--sm { padding: 5px 10px; font-size: 11px; }
.lm-btn--lg { padding: 12px 22px; font-size: 14px; }
.lm-btn:hover { opacity: 0.88; }
.lm-btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Modal footer: primary CTA is always large (never --sm). Ghost/cancel may stay default. */
.lm-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}
.lm-modal-actions .lm-btn--primary,
.lm-modal-actions .lm-btn--primary.lm-btn--sm {
  padding: 12px 22px;
  font-size: 14px;
}
.lm-btn--link {
  background: none;
  border: none;
  padding: 0;
  color: var(--lm-green-dark);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lm-fs-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px dashed var(--lm-wire);
  color: var(--lm-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lm-fs-exit:hover {
  border-color: var(--lm-green);
  color: var(--lm-green-dark);
}

.lm-fs-exit--vet {
  border-color: rgba(8, 122, 45, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: var(--lm-green-dark);
}

.lm-fs-exit--vet:hover {
  background: #fff;
  color: var(--lm-green);
}

.lm-page-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.lm-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--lm-green-soft);
  color: var(--lm-green-dark);
}

.lm-tag--hot { background: #fde8e6; color: var(--lm-danger); }
.lm-tag--warm { background: #fef3e2; color: var(--lm-warn); }
.lm-tag--trial { background: #ffedd5; color: #c2410c; }
.lm-tag--cool { background: #e8f0fe; color: var(--lm-info); }

/* Plan flow intensity (Stream → Ocean) */
.lm-plan-flow-icon {
  display: inline-flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
  width: 30px;
  height: 18px;
  flex-shrink: 0;
}

.lm-plan-flow-line {
  display: block;
  width: var(--flow-w, 50%);
  height: 5px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  background: #b9c6be;
}

.lm-plan-flow-line.is-active {
  opacity: 1;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.lm-plan-flow-icon.is-trial .lm-plan-flow-line.is-active,
.lm-plan-flow-icon[data-flow-level="trial"] .lm-plan-flow-line.is-active {
  background: linear-gradient(90deg, #fb923c, #ea580c);
}

.lm-plan-flow-icon[data-flow-level="4"] .lm-plan-flow-line.is-active {
  background: linear-gradient(90deg, #818cf8, #4f46e5);
}

/* Accented journey counts (shared by plan modals + first-sale game) */
.lm-plan-journeys-n {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.lm-plan-journeys[data-plan-id="stream"] .lm-plan-journeys-n,
.lm-plan-journeys[data-flow-level="1"] .lm-plan-journeys-n {
  color: #0891b2;
}

.lm-plan-journeys[data-plan-id="river"] .lm-plan-journeys-n,
.lm-plan-journeys[data-flow-level="2"] .lm-plan-journeys-n {
  color: var(--lm-green, #087a2d);
}

.lm-plan-journeys[data-plan-id="sea"] .lm-plan-journeys-n,
.lm-plan-journeys[data-flow-level="3"] .lm-plan-journeys-n {
  color: #2563eb;
}

.lm-plan-journeys[data-plan-id="ocean"] .lm-plan-journeys-n,
.lm-plan-journeys[data-flow-level="4"] .lm-plan-journeys-n {
  color: #7c3aed;
}

.lm-plan-journeys[data-plan-id="trial"] .lm-plan-journeys-n,
.lm-plan-journeys[data-flow-level="trial"] .lm-plan-journeys-n {
  color: #ea580c;
}

.lm-plan-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lm-plan-title-row h4,
.lm-plan-title-row .lm-ltv-plan-name {
  margin: 0;
}

.lm-field { display: flex; flex-direction: column; gap: 6px; }
.lm-field span { font-size: 12px; font-weight: 600; color: var(--lm-muted); }
.lm-field input, .lm-field select, .lm-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--lm-wire);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.lm-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px 15px;
}

.lm-field input[readonly]:not(.lm-field-input--autofill-guard),
.lm-field input:read-only:not(.lm-field-input--autofill-guard),
.lm-field input:disabled:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.lm-field textarea:disabled {
  background-color: #f1f3f4;
  color: #7b8794;
  border-color: #d5dbe1;
  cursor: not-allowed;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%2394a3b8'%3E%3Cpath d='M144 144v48h160V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64v192c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64h16z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px 13px;
}

.lm-field select:disabled {
  background-color: #f1f3f4;
  color: #7b8794;
  border-color: #d5dbe1;
  cursor: not-allowed;
  padding-right: 56px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%2394a3b8'%3E%3Cpath d='M144 144v48h160V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64v192c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64h16z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 34px center, right 12px center;
  background-size: 13px 13px, 15px 15px;
}

.lm-field input.lm-field-input--autofill-guard[readonly] {
  background-color: #fff;
  color: inherit;
  border-color: var(--lm-wire);
  cursor: text;
  padding-right: 12px;
  background-image: none;
}

.lm-config-note { font-size: 13px; color: var(--lm-muted); margin: 0; }

.lm-status-error {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fde8e6;
  color: var(--lm-danger);
  font-size: 13px;
}

.lm-status-success {
  padding: 10px 12px;
  border-radius: 8px;
  background: #e8f6ee;
  color: #064f20;
  font-size: 13px;
}

.lm-stepper {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.lm-stepper-dot {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background: var(--lm-placeholder);
  border: 1px dashed var(--lm-wire);
}

.lm-stepper-dot.is-active,
.lm-stepper-dot.is-done {
  background: var(--lm-green);
  border-color: var(--lm-green);
}

/* Shared checkbox: same look as login "Remember me" */
input[type="checkbox"].lm-check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  border: 1.5px solid #b8cfc2;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

input[type="checkbox"].lm-check:hover {
  border-color: var(--lm-green);
}

input[type="checkbox"].lm-check:checked {
  background: linear-gradient(145deg, var(--lm-green), var(--lm-green-dark));
  border-color: var(--lm-green-dark);
  box-shadow: 0 2px 8px rgba(8, 122, 45, 0.28);
}

input[type="checkbox"].lm-check:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"].lm-check:focus-visible {
  outline: 2px solid rgba(8, 122, 45, 0.35);
  outline-offset: 2px;
}

input[type="checkbox"].lm-check:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
