/* Token, reset và component được dùng bởi cả public lẫn admin. */

@font-face {
font-family: "Be Vietnam Pro";
  src: url("/static/fonts/BeVietnamPro-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
font-family: "Be Vietnam Pro";
  src: url("/static/fonts/BeVietnamPro-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
font-family: "Be Vietnam Pro";
  src: url("/static/fonts/BeVietnamPro-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
color-scheme: light;
  --ink: #15213d;
  --muted: #5f6b85;
  --line: #dbe1ee;
  --panel: #ffffff;
  --page: #f4f7fb;
  --accent: #1f3168;
  --accent-strong: #121e42;
  --gold: #d4a33f;
  --public-shell-max-width: 1120px;
  --public-shell-inline-inset: 36px;
  --public-page-gutter: 18px;
  --public-content-gutter: 30px;
  --public-section-gap: 26px;
  --mobile-content-gutter: 22px;
  --report-section-gutter: 22px;
  --account-action-size: 40px;
  font-family: "Be Vietnam Pro", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

button,
input,
textarea,
select {
font: inherit;
}

body {
min-height: 100vh;
  margin: 0;
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  background:
    linear-gradient(135deg, rgba(31, 49, 104, 0.1), transparent 36%),
    linear-gradient(315deg, rgba(212, 163, 63, 0.12), transparent 32%),
    var(--page);
}

/* Date filter dùng chung: giá trị API nằm ở input ẩn, popup chỉ xử lý presentation. */
.date-filter-host,
.date-filter-control {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
}

.date-filter-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: none;
  text-align: left;
}

.date-filter-trigger:hover,
.date-filter-trigger:focus-visible,
.date-filter-trigger[aria-expanded="true"] {
  border-color: rgba(15, 118, 110, 0.58);
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.date-filter-display {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-filter-display.is-placeholder {
  color: #9aa6b8;
  font-weight: 400;
}

.date-filter-calendar-icon,
.date-filter-calendar-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.date-filter-calendar-icon svg,
.date-filter-nav svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-filter-popup {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  left: 0;
  width: min(380px, calc(100vw - 48px));
  padding: 18px;
  border: 1px solid #d6dfeb;
  border-radius: 22px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(21, 33, 61, 0.2);
}

.date-filter-popup[hidden] {
  display: none;
}

.date-filter-header {
  display: grid;
  grid-template-columns: 46px minmax(112px, 1fr) minmax(86px, 0.72fr) 46px;
  gap: 10px;
}

.date-filter-header select,
.date-filter-nav {
  width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  margin: 0;
  border: 1px solid #cdd8e7;
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: none;
}

.date-filter-header select {
  padding: 0 30px 0 12px;
}

.date-filter-nav {
  display: grid;
  place-items: center;
  padding: 0;
  color: #0f8b72;
}

.date-filter-nav:hover,
.date-filter-nav:focus-visible {
  border-color: #0f8b72;
  color: #ffffff;
  background: #0f8b72;
}

.date-filter-nav svg {
  width: 22px;
  height: 22px;
}

.date-filter-weekdays,
.date-filter-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-filter-weekdays {
  margin-top: 18px;
  color: #66748d;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.date-filter-weekdays span {
  padding: 7px 0;
}

.date-filter-days {
  gap: 3px;
  margin-top: 6px;
}

.date-filter-day {
  display: grid;
  min-width: 0;
  height: 39px;
  min-height: 39px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}

.date-filter-day:hover,
.date-filter-day:focus-visible {
  border-color: rgba(15, 139, 114, 0.42);
  color: #087560;
  background: rgba(15, 139, 114, 0.08);
}

.date-filter-day:focus-visible {
  outline: 2px solid rgba(16, 169, 133, 0.72);
  outline-offset: 1px;
}

.date-filter-day.is-adjacent {
  color: #b1bccd;
}

.date-filter-day.is-today:not(.is-selected) {
  border-color: #10a985;
  color: #087560;
  background: rgba(16, 169, 133, 0.06);
  font-weight: 700;
}

.date-filter-day.is-selected {
  border-color: #10a985;
  color: #087560;
  background: rgba(16, 169, 133, 0.08);
  font-weight: 800;
}

.date-filter-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.date-filter-footer button {
  min-height: 44px;
  margin: 0;
  padding: 0 15px;
  border-radius: 12px;
}

.date-filter-clear {
  justify-self: start;
  color: #718096;
  border-color: #d4deea;
  background: #edf2f7;
}

.date-filter-clear:disabled {
  color: #b2bdcc;
  cursor: not-allowed;
}

.date-filter-today {
  color: #334764;
  border-color: #c9d5e5;
  background: #ffffff;
}

.date-filter-done {
  color: #ffffff;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

@media (max-width: 420px) {
  .date-filter-popup {
    width: min(330px, calc(100vw - 48px));
    padding: 14px;
    border-radius: 18px;
  }

  .date-filter-header {
    grid-template-columns: 42px minmax(98px, 1fr) minmax(76px, 0.7fr) 42px;
    gap: 6px;
  }

  .date-filter-header select,
  .date-filter-nav {
    height: 42px;
    min-height: 42px;
  }

  .date-filter-header select {
    padding-right: 22px;
    padding-left: 8px;
    font-size: 13px;
  }

  .date-filter-day {
    height: 35px;
    min-height: 35px;
  }

  .date-filter-footer button {
    min-height: 42px;
    padding: 0 11px;
    font-size: 13px;
  }
}

.app-shell {
box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

body.dashboard-active .app-shell {
place-items: start center;
  align-content: start;
}

.panel {
box-sizing: border-box;
  width: min(720px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(21, 33, 61, 0.12);
  padding: 34px;
}

.dashboard-panel {
width: min(1040px, 100%);
}

[hidden] {
display: none !important;
}

.brand-row {
display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.eyebrow {
margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.heading-stack {
--heading-kicker-gap: 6px;
  --heading-description-gap: 8px;
  display: grid;
  min-width: 0;
}

.heading-stack-compact {
--heading-kicker-gap: 4px;
  --heading-description-gap: 6px;
}

.heading-stack > .eyebrow {
margin: 0 0 var(--heading-kicker-gap);
}

.heading-stack > :is(h1, h2, h3) {
margin: 0;
  text-wrap: balance;
}

.heading-stack > :is(h1, h2, h3) + p:not(.eyebrow) {
margin: var(--heading-description-gap) 0 0;
  text-wrap: pretty;
}

.brand-eyebrow {
display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 33, 61, 0.12);
}

h1 {
margin: 0;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

.account-meta {
display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.notification-item-action {
width: auto;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: #31508f;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
}

.notification-item-action:hover {
color: var(--accent-strong);
  background: transparent;
  text-decoration: underline;
}

.notification-item-icon {
display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #31508f;
  background: rgba(49, 80, 143, 0.1);
}

.notification-item-icon svg {
width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-item-copy {
display: grid;
  min-width: 0;
  gap: 5px;
}

.notification-item-copy > strong {
color: var(--accent-strong);
  font-size: 13px;
  line-height: 1.4;
  text-wrap: balance;
}

.notification-item-copy p {
margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-wrap: pretty;
}

.notification-keyword {
color: var(--accent-strong);
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
}

.notification-mark-read {
display: grid;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(49, 80, 143, 0.2);
  border-radius: 10px;
  color: #31508f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(31, 49, 104, 0.08);
  transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.notification-mark-read svg {
width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-mark-read:hover {
border-color: rgba(15, 118, 110, 0.4);
  color: #0f766e;
  background: rgba(232, 248, 245, 0.96);
  transform: translateY(-1px);
}

.notification-mark-read:focus-visible {
outline: 3px solid rgba(49, 80, 143, 0.2);
  outline-offset: 2px;
}

.notification-item-meta {
display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: #7b8499;
  font-size: 10px;
}

.notification-support-link {
padding: 3px 8px;
  border: 1px solid rgba(49, 80, 143, 0.18);
  border-radius: 8px;
  color: #284780;
  background: #eef3ff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.notification-support-link:hover,
.notification-support-link:focus-visible {
border-color: #31508f;
  color: #ffffff;
  background: #31508f;
  text-decoration: none;
}

.notification-support-link:focus-visible {
outline: 3px solid rgba(49, 80, 143, 0.2);
  outline-offset: 2px;
}

.notification-empty,
.notification-loading,
.notification-error {
align-self: center;
  margin: 0;
  padding: 28px 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.notification-error {
color: #b42318;
}

@media (max-width: 640px) {
  body.is-notification-open {
  overflow: hidden;
  }

  .notification-mark-read {
  width: 32px;
      height: 32px;
  }
}

@keyframes notification-panel-in {
from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loading-spin {
to {
    transform: rotate(360deg);
  }
}

@keyframes auth-choice-bounce {
0%,
  100% {
    transform: translateY(0) scale(1);
  }

  28% {
    transform: translateY(-8px) scale(1.035);
  }

  55% {
    transform: translateY(2px) scale(0.995);
  }

  76% {
    transform: translateY(-3px) scale(1.015);
  }
}

.single-select-source {
display: none;
}

.single-select-value {
min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.single-select-menu {
width: 100%;
  min-width: 100%;
  max-width: 100%;
  max-height: min(310px, 52vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.single-select-menu .single-select-option {
position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 38px 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.single-select-menu .single-select-option:hover,
.single-select-menu .single-select-option:focus-visible {
color: var(--ink);
  border-color: rgba(15, 118, 110, 0.12);
  background: rgba(15, 118, 110, 0.08);
  outline: none;
}

.single-select-menu .single-select-option.is-selected {
color: var(--accent-strong);
  border-color: rgba(31, 49, 104, 0.14);
  background: rgba(31, 49, 104, 0.1);
  font-weight: 700;
}

.single-select-menu .single-select-option.is-selected::after {
content: "✓";
  position: absolute;
  right: 13px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

input {
width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 14px;
  color: var(--ink);
  background: #fbfdfc;
  font-size: 17px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
color: #8a9aa5;
  font-weight: 400;
  opacity: 1;
}

input:focus {
border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.password-field {
position: relative;
}

.password-field input {
padding-right: 54px;
}

.password-toggle {
position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  font-size: 17px;
  line-height: 1;
}

.password-toggle:hover {
color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.08);
}

button {
appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 14px 18px;
  color: #ffffff;
  background: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  cursor: pointer;
}

button:hover {
background: var(--accent-strong);
}

button:disabled {
cursor: not-allowed;
  opacity: 0.72;
}

.multi-select {
position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.multi-select-toggle {
position: relative;
  width: 100%;
  max-width: 100%;
  height: 46px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 36px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(22, 32, 38, 0.02), 0 4px 12px rgba(22, 32, 38, 0.03);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.multi-select-toggle:hover,
.multi-select-toggle:focus {
color: var(--ink);
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.multi-select-toggle[aria-expanded="true"] {
color: var(--ink);
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.62);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1), 0 10px 24px rgba(22, 32, 38, 0.08);
}

.multi-select-toggle::after {
content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
}

.multi-select-toggle[aria-expanded="true"]::after {
transform: translateY(-35%) rotate(225deg);
}

.multi-select-toggle span {
color: inherit;
  font-size: inherit;
}

.multi-select-menu {
position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  display: grid;
  box-sizing: border-box;
  min-width: 100%;
  width: max-content;
  max-width: min(360px, calc(100vw - 48px));
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(22, 32, 38, 0.16);
}

.multi-select-menu[hidden] {
display: none;
}

.multi-select-menu label {
display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.multi-select-menu label:hover {
border-color: rgba(15, 118, 110, 0.12);
  background: rgba(15, 118, 110, 0.08);
}

.multi-select-menu input {
width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

select {
height: 46px;
  min-height: 46px;
  border-radius: 10px;
  background: #ffffff;
  font-weight: 400;
  box-shadow: inset 0 1px 0 rgba(22, 32, 38, 0.02);
}

select {
width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  color: var(--ink);
  background: #fbfdfc;
  font-size: 17px;
  outline: none;
}

input[type="date"] {
min-height: 54px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
cursor: pointer;
  opacity: 0.72;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
opacity: 1;
}

.compact-button {
padding: 9px 12px;
  font-size: 14px;
}

.plan-card.plan-card-standard {
  --plan-accent: linear-gradient(90deg, #2147a8, #5b7ee5);
  --plan-tier-color: #24439a;
  --plan-tier-copy: #53658f;
  --plan-tier-soft: rgba(65, 105, 225, 0.12);
  --plan-tier-soft-strong: rgba(65, 105, 225, 0.2);
  --plan-tier-border: rgba(52, 83, 166, 0.34);
  --plan-tier-border-strong: rgba(52, 83, 166, 0.6);
  --plan-tier-glow: rgba(79, 112, 221, 0.18);
  --plan-tier-awaiting-bg: #eef3ff;
  --plan-tier-shadow: rgba(33, 64, 145, 0.18);
  --plan-tier-cta: linear-gradient(135deg, #2649a7, #173577);
  --plan-tier-cta-hover: linear-gradient(135deg, #1f3d8d, #10275e);
  --plan-tier-focus: rgba(65, 105, 225, 0.45);
  border-color: var(--plan-tier-border);
  background:
    radial-gradient(circle at 100% 0, var(--plan-tier-glow), transparent 34%),
    linear-gradient(180deg, #f6f8ff, #ffffff 56%);
}

.plan-card.plan-card-pro {
  --plan-accent: linear-gradient(90deg, #b85c08, #f0b83f);
  --plan-tier-color: #a14f08;
  --plan-tier-copy: #735a35;
  --plan-tier-soft: rgba(235, 157, 36, 0.15);
  --plan-tier-soft-strong: rgba(235, 157, 36, 0.24);
  --plan-tier-border: rgba(204, 113, 20, 0.5);
  --plan-tier-border-strong: rgba(184, 92, 8, 0.68);
  --plan-tier-glow: rgba(240, 184, 63, 0.22);
  --plan-tier-awaiting-bg: #fff6df;
  --plan-tier-shadow: rgba(154, 81, 10, 0.23);
  --plan-tier-cta: linear-gradient(135deg, #a45107, #c86f0b);
  --plan-tier-cta-hover: linear-gradient(135deg, #843f05, #a95808);
  --plan-tier-focus: rgba(229, 148, 33, 0.5);
  border-color: var(--plan-tier-border);
  background:
    radial-gradient(circle at 100% 0, var(--plan-tier-glow), transparent 36%),
    linear-gradient(180deg, #fffbef, #ffffff 54%);
  box-shadow: 0 20px 46px var(--plan-tier-shadow);
}

.plan-card.plan-card-premium {
  --plan-accent: linear-gradient(90deg, #5523b9, #a855f7);
  --plan-tier-color: #5d2bb5;
  --plan-tier-copy: #685d7f;
  --plan-tier-soft: rgba(124, 58, 237, 0.11);
  --plan-tier-soft-strong: rgba(124, 58, 237, 0.19);
  --plan-tier-border: rgba(109, 40, 217, 0.36);
  --plan-tier-border-strong: rgba(109, 40, 217, 0.62);
  --plan-tier-glow: rgba(168, 85, 247, 0.18);
  --plan-tier-awaiting-bg: #f6f1ff;
  --plan-tier-shadow: rgba(91, 33, 182, 0.2);
  --plan-tier-cta: linear-gradient(135deg, #5b21b6, #7c3aed);
  --plan-tier-cta-hover: linear-gradient(135deg, #4c1d95, #6426c8);
  --plan-tier-focus: rgba(124, 58, 237, 0.46);
  border-color: var(--plan-tier-border);
  background:
    radial-gradient(circle at 100% 0, var(--plan-tier-glow), transparent 36%),
    linear-gradient(180deg, #faf7ff, #ffffff 56%);
}

.plan-card-meta {
display: flex;
  min-width: 0;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-positioning {
color: var(--plan-tier-color);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1.35;
  text-transform: uppercase;
}

.plan-title-row {
display: flex;
  min-width: 0;
  align-items: flex-start;
  margin-top: 12px;
}

.plan-icon {
display: inline-grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: var(--plan-tier-color);
  background: var(--plan-tier-soft);
}

.plan-icon svg {
width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-badge {
flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--plan-tier-cta);
  box-shadow: 0 7px 16px var(--plan-tier-shadow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-price {
display: grid;
  gap: 3px;
  align-items: start;
  margin-top: 18px !important;
}

.plan-price > span:first-child {
display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}

.plan-price-main {
color: var(--plan-tier-color) !important;
  font-size: clamp(26px, 2.8vw, 31px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.plan-price-unit {
color: var(--plan-tier-color);
  font-size: 12px;
  font-weight: 600;
}

.plan-price-note {
color: var(--plan-tier-color);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
}

.plan-saving-note {
min-height: 43px;
  margin-top: 14px !important;
  padding: 9px 10px;
  border-radius: 11px;
  color: var(--plan-tier-color) !important;
  background: var(--plan-tier-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
}

.plan-benefits {
display: grid;
  align-content: start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--plan-tier-copy);
  font-size: 13px;
  line-height: 1.45;
  list-style: none;
}

.plan-benefits li {
position: relative;
  padding-left: 24px;
}

.plan-benefits li::before {
position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--plan-tier-color);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  content: "✓";
}

.plan-benefits strong {
color: var(--plan-tier-color);
}

.plan-cta {
position: relative;
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  padding: 13px 42px 13px 18px;
  border-radius: 14px;
  background: var(--plan-tier-cta);
  box-shadow: 0 10px 22px var(--plan-tier-shadow);
}

.plan-cta::after {
position: absolute;
  top: 50%;
  right: 18px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-53%);
  transition: transform 180ms ease;
  content: "→";
}

.plan-cta:hover {
background: var(--plan-tier-cta-hover);
}

.plan-cta:focus-visible {
outline: 3px solid var(--plan-tier-focus);
  outline-offset: 3px;
}

@media (hover: hover) {
  .plan-cta:hover::after {
  transform: translate(3px, -53%);
  }
}

@media (max-width: 900px) {
  .plan-card-meta {
  grid-area: meta;
  }

  .plan-title-row {
  grid-area: title;
  }

  .plan-price {
  grid-area: price;
  }

  .plan-saving-note {
  grid-area: saving;
  }

  .plan-benefits {
  grid-area: benefits;
      align-self: center;
      margin-top: 12px;
      padding-left: 24px;
      border-left: 1px solid var(--line);
  }

  .plan-payment-status {
  grid-area: status;
  }

  .plan-cta {
  grid-area: cta;
  }
}

@media (max-width: 640px) {
  .plan-benefits {
  align-self: start;
      margin-top: 18px;
      padding-left: 0;
      border-left: 0;
  }

  .plan-price-main {
  font-size: clamp(27px, 8.4vw, 31px);
  }

  .plan-saving-note {
  min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-cta::after {
  transition: none;
  }
}

.confirm-modal {
position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  background: rgba(22, 32, 38, 0.46);
  overscroll-behavior: contain;
}

.confirm-modal[hidden] {
display: none;
}

.confirm-dialog {
width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(22, 32, 38, 0.24);
  padding: 24px;
}

body.confirm-modal-open {
overflow: hidden;
}

.confirm-dialog h2 {
margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.confirm-help {
margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.confirm-actions {
display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-actions button {
width: auto;
}

.secondary-button {
color: var(--accent-strong);
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.28);
}

.secondary-button:hover {
color: #ffffff;
  background: var(--accent-strong);
}

.ready-action {
color: #ffffff;
  background: var(--accent);
}

.ready-action:hover {
background: var(--accent-strong);
}

.form-note {
min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note.error {
color: #b42318;
}

.form-note.success {
color: var(--accent-strong);
}

.site-header-cta {
text-decoration: none;
}

.site-header-cta {
flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-strong);
  background: linear-gradient(135deg, #f4d38a, #f8edd0);
  box-shadow: 0 12px 28px rgba(212, 163, 63, 0.28);
  font-weight: 800;
}

.site-header-cta:hover {
color: var(--accent-strong);
  background: linear-gradient(135deg, #f0c567, #f7e7bd);
}

@keyframes hero-energy-flip {
0% {
    transform: perspective(420px) rotateX(0deg) scale(1);
  }
  45% {
    transform: perspective(420px) rotateX(90deg) scale(0.94);
  }
  100% {
    transform: perspective(420px) rotateX(0deg) scale(1);
  }
}

@keyframes life-path-bounce {
0% {
    transform: translateY(0) scale(1);
  }
  24% {
    transform: translateY(-10px) scale(1.04);
  }
  52% {
    transform: translateY(3px) scale(0.995);
  }
  74% {
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.site-footer-meta {
grid-column: 3;
  grid-row: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

body.is-support-open {
overflow: hidden;
}

.support-note {
min-height: 22px;
  margin: -2px 0 0;
}

.support-note.success {
color: #08796f;
}

.support-note.error {
color: #b32626;
}

@media (min-width: 961px) {
  .site-footer-meta {
  grid-column: 2;
      grid-row: 1;
      justify-self: end;
      padding-right: 4px;
  }
}

@media (max-width: 960px) {
  .site-footer-meta {
  grid-column: auto;
      grid-row: auto;
      order: 3;
  }
}

@media (max-width: 640px) {
  :root {
  --public-shell-inline-inset: 24px;
      --public-page-gutter: 12px;
      --public-section-gap: 18px;
  }

  html,
  body {
  overflow-x: hidden;
  }

  .site-footer-meta {
  text-align: left;
      white-space: normal;
  }

  .panel {
  padding: 24px;
  }

  .brand-row {
  display: grid;
      width: 100%;
      grid-template-columns: minmax(0, 1fr);
      justify-content: stretch;
      justify-items: stretch;
  }

  h1 {
  font-size: 28px;
  }

  .confirm-actions {
  display: grid;
  }

  #confirm-modal {
  place-items: end stretch;
      padding: 12px 0 0;
  }
}
