:root {
  --bg: #031f28;
  --bg-deep: #02171e;
  --ink: #052f3b;
  --ink-2: #073b45;
  --ink-3: #0a4850;
  --panel: rgba(7, 59, 69, 0.74);
  --panel-solid: #073b45;
  --panel-soft: rgba(10, 72, 80, 0.56);
  --line: rgba(232, 238, 234, 0.12);
  --line-strong: rgba(75, 197, 183, 0.28);
  --text: #edf5ef;
  --muted: #9bb2b2;
  --muted-2: #6f8d8d;
  --accent: #0f8f82;
  --mint: #4bc5b7;
  --warm: #ffac72;
  --success: #4bc5b7;
  --warning: #ffbd82;
  --danger: #ff8582;
  --radius: 22px;
  --radius-sm: 13px;
  --shadow: 0 26px 70px rgba(0, 12, 17, 0.3);
  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", ui-monospace, monospace;
}

:root[data-theme="light"] {
  --bg: #e8f2f2;
  --bg-deep: #d6e6e8;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-solid: #f8fcfc;
  --panel-soft: rgba(225, 240, 241, 0.82);
  --line: rgba(12, 50, 64, 0.13);
  --line-strong: rgba(15, 143, 130, 0.3);
  --text: #0a2231;
  --muted: #536c76;
  --muted-2: #789097;
  --shadow: 0 24px 65px rgba(25, 72, 82, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(75, 197, 183, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 197, 183, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 82% 0, rgba(15, 143, 130, 0.2), transparent 32%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto;
  font: 15px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: color 180ms ease, background-color 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(75, 197, 183, 0.48);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 22px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 47, 59, 0.97), rgba(2, 23, 30, 0.98));
  box-shadow: 18px 0 55px rgba(0, 12, 17, 0.12);
}

.brand {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  transform-origin: center;
  animation: ccMarkFloat 6s ease-in-out infinite;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 13px rgba(2, 153, 170, 0.26));
  transition: transform 220ms ease, filter 220ms ease;
}

.brand:hover .brand-mark img {
  transform: translateY(-2px) rotate(-2deg) scale(1.06);
  filter: drop-shadow(0 11px 18px rgba(2, 190, 194, 0.38));
}

.brand-name {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.7px;
  white-space: nowrap;
}

.brand-name span {
  color: var(--mint);
}

.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 48px;
}

.nav-item {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(75, 197, 183, 0.19), rgba(15, 143, 130, 0.07));
  box-shadow: inset 3px 0 0 var(--mint), inset 0 0 0 1px rgba(75, 197, 183, 0.1);
}

.nav-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
}

.nav-icon svg,
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-footer {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
}

.side-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
  color: var(--muted);
  font-size: 13px;
}

.side-link:hover {
  color: var(--mint);
}

.main {
  min-width: 0;
  padding: 0 40px 28px;
}

.topbar {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.eyebrow,
.kicker {
  color: var(--mint);
  font: 800 10px/1.3 var(--font-mono);
  letter-spacing: 0.15em;
}

.mobile-brand {
  display: none;
}

.account-menu {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: #dffaf3;
  background: linear-gradient(145deg, var(--ink-3), var(--ink));
  font: 850 12px/1 var(--font-mono);
}

.account-copy {
  min-width: 0;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.account-copy strong {
  font-size: 13px;
}

.account-copy span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.theme-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(75, 197, 183, 0.09);
}

.theme-toggle-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #2360d8);
  font-size: 13px;
  line-height: 1;
}

.icon-button:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(75, 197, 183, 0.08);
}

.content {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 34px 0 46px;
}

.flash {
  width: 100%;
  max-width: 1420px;
  margin: 18px auto 0;
  padding: 13px 16px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.flash-success {
  color: #c5f5e8;
  border-color: rgba(75, 197, 183, 0.28);
  background: rgba(75, 197, 183, 0.1);
}

.flash-warning {
  color: #ffe1c3;
  border-color: rgba(255, 172, 114, 0.3);
  background: rgba(255, 172, 114, 0.1);
}

.flash-danger {
  color: #ffc3c1;
  border-color: rgba(255, 133, 130, 0.3);
  background: rgba(255, 133, 130, 0.1);
}

.hero-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 42%, rgba(75, 197, 183, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(7, 59, 69, 0.98), rgba(3, 31, 40, 0.97));
  box-shadow: var(--shadow);
  color: #edf5ef;
}

.hero-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 238, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 234, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, transparent, #000 42%);
}

.hero-card::after {
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -32%;
  width: 22%;
  content: "";
  pointer-events: none;
  transform: rotate(15deg);
  background: linear-gradient(90deg, transparent, rgba(91, 230, 216, 0.08), transparent);
  animation: ccHeroSweep 9s ease-in-out infinite;
}

.hero-card-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.hero-card h2 {
  margin: 15px 0 14px;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-card p {
  max-width: 610px;
  margin: 0;
  color: #b2c6c4;
  font-size: 16px;
}

.hero-brand {
  position: relative;
  z-index: 1;
  width: 330px;
  height: 210px;
  flex: 0 0 330px;
  margin-right: 1%;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-logo-orbit {
  position: absolute;
  z-index: -1;
  width: 184px;
  height: 184px;
  border: 1px solid rgba(91, 230, 216, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(28, 182, 194, 0.16), inset 0 0 0 28px rgba(75, 197, 183, 0.025);
  animation: ccOrbit 16s linear infinite;
}

.hero-logo-orbit::before,
.hero-logo-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero-logo-orbit::before {
  top: 15px;
  right: 22px;
  width: 8px;
  height: 8px;
  background: #53e7d8;
  box-shadow: 0 0 16px #53e7d8;
}

.hero-logo-orbit::after {
  inset: 34px;
  border: 1px dashed rgba(110, 210, 255, 0.2);
}

.hero-logo-image {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: saturate(1.12) contrast(1.06) drop-shadow(0 18px 30px rgba(8, 152, 187, 0.22));
  mask-image: radial-gradient(ellipse at center, #000 43%, rgba(0, 0, 0, 0.94) 58%, transparent 79%);
  animation: ccLogoFloat 5.5s ease-in-out infinite;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.metric-card,
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(7, 59, 69, 0.88), rgba(3, 31, 40, 0.9));
  box-shadow: 0 15px 45px rgba(0, 12, 17, 0.16);
}

.metric-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
  .metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(75, 197, 183, 0.28);
    box-shadow: 0 22px 50px rgba(0, 20, 28, 0.22);
  }
}

.metric-top,
.panel-head,
.subscription-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.status,
.trust-badge {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.status-success,
.trust-badge {
  color: var(--success);
  border-color: rgba(75, 197, 183, 0.25);
  background: rgba(75, 197, 183, 0.08);
}

.status-warning {
  color: var(--warning);
  border-color: rgba(255, 172, 114, 0.25);
  background: rgba(255, 172, 114, 0.08);
}

.status-danger {
  color: var(--danger);
  border-color: rgba(255, 133, 130, 0.25);
  background: rgba(255, 133, 130, 0.08);
}

.status-neutral {
  color: #a7cac6;
  border-color: rgba(167, 202, 198, 0.22);
  background: rgba(167, 202, 198, 0.07);
}

.metric-value {
  display: block;
  margin-top: 27px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.metric-card p {
  min-height: 44px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.text-link {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

.text-link:hover {
  color: #fff;
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 26px;
}

.panel-head h3,
.subscription-heading h3,
.side-info-panel h3,
.help-panel h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.help-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(75, 197, 183, 0.15), transparent 38%),
    linear-gradient(180deg, rgba(7, 59, 69, 0.9), rgba(3, 31, 40, 0.9));
}

.help-panel h3 {
  margin-top: 9px;
}

.help-panel p {
  max-width: 520px;
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.ghost-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #c6d8d5;
  font-size: 11px;
}

.ghost-button:hover {
  border-color: var(--line-strong);
  background: rgba(75, 197, 183, 0.07);
}

.detail-list {
  margin-top: 22px;
  display: grid;
}

.detail-list > div {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.detail-list span {
  color: var(--muted);
  font-size: 12px;
}

.detail-list strong {
  min-width: 0;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-list.compact {
  margin-top: 25px;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 3px 0 24px;
}

.page-intro h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.page-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.form-panel {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.field > span {
  color: #c2d5d2;
  font-size: 11px;
  font-weight: 750;
}

.field input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 23, 30, 0.78);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input::placeholder {
  color: #668281;
}

.field input:focus {
  border-color: rgba(75, 197, 183, 0.56);
  background: rgba(3, 39, 48, 0.94);
  box-shadow: 0 0 0 4px rgba(75, 197, 183, 0.1);
}

.field small {
  color: var(--muted-2);
  font-size: 10px;
}

.password-wrap {
  position: relative;
  min-width: 0;
}

.password-wrap input {
  padding-right: 78px;
}

.password-toggle {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 60px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--mint);
}

.form-stack {
  display: grid;
  gap: 18px;
}

.form-actions {
  margin-top: 26px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.form-note {
  color: var(--muted);
  font-size: 11px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  border: 1px solid rgba(145, 241, 226, 0.18);
  color: #fff;
  background: linear-gradient(135deg, #13968d 0%, #16b9b0 52%, #245bd6 100%);
  box-shadow: 0 12px 30px rgba(20, 130, 160, 0.26);
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.primary-button.full,
.secondary-button.full,
.danger-button.full {
  width: 100%;
}

.primary-button.disabled,
.primary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.secondary-button,
.danger-button {
  width: auto;
  background: transparent;
}

.secondary-button {
  border: 1px solid rgba(75, 197, 183, 0.26);
  color: #d3ebe7;
  background: rgba(75, 197, 183, 0.055);
}

.secondary-button:hover {
  border-color: rgba(75, 197, 183, 0.42);
  background: rgba(75, 197, 183, 0.1);
}

.danger-button {
  border: 1px solid rgba(255, 133, 130, 0.26);
  color: #ffc3c1;
  background: rgba(255, 133, 130, 0.055);
}

.danger-button:hover {
  border-color: rgba(255, 133, 130, 0.42);
  background: rgba(255, 133, 130, 0.1);
}

.narrow-panel {
  max-width: 720px;
}

.separator {
  height: 1px;
  margin: 1px 0;
  background: var(--line);
}

.subscription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
  gap: 16px;
}

.subscription-main {
  padding: 32px;
}

.setup-wide {
  margin: 0 0 16px;
}

.current-plan-summary {
  margin-top: 26px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
}

.current-plan-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.current-plan-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.current-plan-summary small {
  display: block;
  margin-top: 5px;
  color: #a6c3c0;
  font-size: 10px;
}

.current-plan-date {
  text-align: right;
}

.current-plan-date strong {
  font-size: 14px;
}

.coming-box {
  margin: 24px 0;
  padding: 18px;
  display: flex;
  gap: 15px;
  border: 1px solid rgba(75, 197, 183, 0.2);
  border-radius: 15px;
  background: rgba(75, 197, 183, 0.06);
}

.coming-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #c5f5e8;
  background: rgba(75, 197, 183, 0.12);
  font-weight: 800;
}

.coming-box strong {
  font-size: 12px;
}

.coming-box p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.warning-box {
  border-color: rgba(255, 172, 114, 0.25);
  background: rgba(255, 172, 114, 0.07);
}

.warning-box .coming-icon {
  color: #ffe2c7;
  background: rgba(255, 172, 114, 0.12);
}

.success-box {
  border-color: rgba(75, 197, 183, 0.25);
  background: rgba(75, 197, 183, 0.07);
}

.success-box .coming-icon {
  position: relative;
  border: 1px solid rgba(109, 255, 229, 0.28);
  color: #79f8e1;
  background: linear-gradient(145deg, rgba(75, 197, 183, 0.24), rgba(31, 101, 211, 0.16));
  box-shadow: 0 8px 22px rgba(12, 178, 164, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0;
}

.success-box .coming-icon::before {
  width: 9px;
  height: 16px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.plan-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(8, 65, 75, 0.9), rgba(3, 31, 40, 0.93));
}

.plan-card.featured {
  border-color: rgba(75, 197, 183, 0.34);
  background:
    radial-gradient(circle at 100% 0, rgba(75, 197, 183, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(8, 65, 75, 0.94), rgba(3, 31, 40, 0.94));
  box-shadow: 0 18px 48px rgba(0, 25, 31, 0.2);
}

.plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-tag {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(75, 197, 183, 0.23);
  border-radius: 999px;
  color: #bdece5;
  background: rgba(75, 197, 183, 0.07);
  font: 850 8px/1.2 var(--font-mono);
  letter-spacing: 0.11em;
}

.plan-tag.hot {
  color: #e4fff9;
  border-color: rgba(75, 197, 183, 0.34);
  background: rgba(75, 197, 183, 0.14);
}

.plan-period {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card h4 {
  margin: 19px 0 5px;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.plan-price strong {
  font-size: 34px;
  letter-spacing: -0.055em;
}

.plan-price span {
  color: var(--muted);
  font-size: 11px;
}

.effective-price {
  width: max-content;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 5px 8px;
  border-radius: 7px;
  color: #bff1e8;
  background: rgba(75, 197, 183, 0.1);
  font-size: 9px;
  font-weight: 750;
}

.plan-card p {
  min-height: 42px;
  margin: 15px 0 20px;
  color: var(--muted);
  font-size: 11px;
}

.subscription-actions {
  display: grid;
  gap: 10px;
}

.subscription-actions form {
  margin: 0;
}

.subscription-management {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.feature-list {
  margin: 25px 0;
  padding: 0;
  display: grid;
  gap: 15px;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 11px;
  color: #bfd0ce;
  font-size: 12px;
}

.feature-list i {
  color: var(--mint);
  font-style: normal;
}

.support-card {
  padding-top: 20px;
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
}

.support-card span {
  color: var(--muted);
  font-size: 10px;
}

.support-card strong {
  font-size: 13px;
}

.support-muted {
  margin-top: 6px !important;
  color: var(--muted) !important;
  font-size: 10px !important;
}

.page-footer {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 20px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
}

.page-footer a:hover {
  color: var(--mint);
}

.mobile-nav {
  display: none;
}

.auth-body {
  min-height: 100vh;
  padding: 0;
}

.auth-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  animation: ccGlowDrift 9s ease-in-out infinite alternate;
}

.glow-a {
  top: -12%;
  right: 3%;
  width: 430px;
  height: 430px;
  background: rgba(15, 143, 130, 0.22);
}

.glow-b {
  bottom: -22%;
  left: -10%;
  width: 420px;
  height: 420px;
  background: rgba(75, 197, 183, 0.1);
  animation-delay: -4s;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
}

.auth-brand-panel {
  position: relative;
  padding: 46px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(75, 197, 183, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 197, 183, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 100% 100%, rgba(40, 100, 221, 0.88), transparent 48%),
    linear-gradient(145deg, rgba(6, 74, 78, 0.96), rgba(14, 131, 119, 0.94));
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.auth-brand-panel::after {
  position: absolute;
  right: -7%;
  bottom: 1%;
  width: min(34vw, 480px);
  height: min(30vw, 360px);
  content: "";
  pointer-events: none;
  opacity: 0.13;
  background: url("/user/assets/images/coachcore-logo-hero.png") center / contain no-repeat;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 76%);
  animation: ccLogoFloat 7s ease-in-out infinite reverse;
}

.brand-auth {
  position: relative;
  z-index: 1;
}

.brand-auth .brand-mark {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}

.auth-hero {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto 0;
  color: #fff;
}

.auth-hero h1 {
  margin: 28px 0 24px;
  font-size: clamp(48px, 5vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.auth-hero h1 em {
  color: var(--mint);
  font-weight: 400;
}

.auth-hero p {
  max-width: 560px;
  color: #adc1bf;
  font-size: 16px;
}

.auth-footer {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
}

.auth-card-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px;
}

.auth-theme-toggle {
  position: absolute;
  z-index: 3;
  top: 30px;
  right: 30px;
}

.auth-card {
  width: min(470px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(7, 59, 69, 0.9), rgba(3, 31, 40, 0.94));
  box-shadow: 0 35px 100px rgba(0, 12, 17, 0.38);
  backdrop-filter: blur(20px);
}

.auth-card-brand {
  display: none;
}

.auth-card-head h2 {
  margin: 8px 0;
  font-size: 31px;
  letter-spacing: -0.05em;
}

.auth-card-head p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}

.auth-help {
  margin-top: 24px;
  padding-top: 19px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.auth-help a {
  color: var(--mint);
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 17px;
  }

  .main {
    padding-inline: 26px;
  }

  .hero-brand {
    width: 260px;
    flex-basis: 260px;
  }

  .hero-logo-image {
    width: 260px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card:last-child {
    grid-column: 1 / -1;
  }

  .auth-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  }
}

@media (max-width: 960px) {
  .two-col,
  .subscription-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-info-panel {
    order: -1;
  }

  .auth-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-brand-panel {
    min-height: 42vh;
    padding: 32px;
  }

  .auth-hero {
    margin: 70px 0 40px;
  }

  .auth-hero h1 {
    font-size: 52px;
  }

  .auth-card-wrap {
    padding: 32px;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
    background-size: 36px 36px, 36px 36px, auto, auto;
  }

  .auth-body {
    padding-bottom: 0;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 0 max(14px, env(safe-area-inset-right)) 20px max(14px, env(safe-area-inset-left));
  }

  .topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    min-height: 74px;
    margin-inline: calc(-1 * max(14px, env(safe-area-inset-right)));
    padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    border-bottom-color: rgba(232, 238, 234, 0.1);
    background: rgba(3, 31, 40, 0.91);
    backdrop-filter: blur(18px);
  }

  .topbar-heading {
    display: none;
  }

  .mobile-brand {
    min-width: 0;
    display: block;
  }

  .brand-mobile {
    gap: 9px;
  }

  .brand-mobile .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-mobile .brand-name {
    font-size: 17px;
  }

  .account-menu {
    gap: 8px;
  }

  .account-menu .theme-toggle {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .account-menu .theme-toggle [data-theme-label] {
    display: none;
  }

  .account-copy {
    display: none;
  }

  .avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .content {
    padding: 20px 0 30px;
  }

  .flash {
    margin-top: 12px;
  }

  .hero-card {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .hero-card h2 {
    margin-top: 13px;
    font-size: clamp(34px, 11vw, 44px);
  }

  .hero-card p {
    max-width: 100%;
    font-size: 13px;
  }

  .hero-brand {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 140px;
    flex-basis: 140px;
    align-self: center;
    margin: 7px 0 -12px;
    opacity: 1;
  }

  .hero-logo-image {
    width: 225px;
  }

  .hero-logo-orbit {
    width: 118px;
    height: 118px;
  }

  .hero-logo-orbit::before {
    top: 8px;
    right: 15px;
    width: 6px;
    height: 6px;
  }

  .hero-logo-orbit::after {
    inset: 22px;
  }

  .dashboard-grid,
  .two-col,
  .subscription-layout,
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .metric-card:last-child {
    grid-column: auto;
  }

  .metric-card,
  .panel {
    border-radius: 19px;
  }

  .metric-card,
  .panel,
  .form-panel,
  .subscription-main {
    padding: 20px;
  }

  .metric-card p,
  .plan-card p {
    min-height: 0;
  }

  .two-col {
    gap: 12px;
    margin-top: 12px;
  }

  .page-intro {
    margin: 2px 0 21px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .page-intro h2 {
    font-size: 29px;
  }

  .page-intro p {
    font-size: 12px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .field input {
    font-size: 16px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions > div:empty {
    display: none;
  }

  .primary-button,
  .secondary-button,
  .danger-button {
    width: 100%;
  }

  .subscription-heading {
    align-items: flex-start;
  }

  .current-plan-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .current-plan-date {
    text-align: left;
  }

  .plan-card {
    padding: 19px;
  }

  .plan-price strong {
    font-size: 31px;
  }

  .coming-box {
    margin-block: 18px;
    padding: 15px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 50;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    height: 68px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(232, 238, 234, 0.14);
    border-radius: 18px;
    background: rgba(5, 47, 59, 0.96);
    box-shadow: 0 16px 55px rgba(0, 12, 17, 0.48);
    backdrop-filter: blur(20px);
  }

  .mobile-nav .mobile-item {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 2px;
    border-radius: 12px;
    font-size: 9px;
    line-height: 1.1;
    text-align: center;
  }

  .mobile-nav .mobile-item .nav-icon {
    width: 19px;
    height: 19px;
  }

  .mobile-nav .mobile-item.active {
    background: rgba(75, 197, 183, 0.14);
    box-shadow: inset 0 -2px 0 var(--mint);
  }

  .page-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 4px;
  }

  .auth-wrap {
    display: block;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-card-wrap {
    min-height: 100vh;
    min-height: 100svh;
    padding: max(72px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .auth-card {
    padding: 27px 20px;
    border-radius: 22px;
  }

  .auth-card-brand {
    display: block;
    margin-bottom: 34px;
  }

  .auth-theme-toggle {
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
  }

  .auth-card-head h2 {
    font-size: 30px;
  }

  .auth-help {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .main {
    padding-inline: 10px;
  }

  .topbar {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .brand-mobile .brand-name {
    font-size: 16px;
  }

  .account-menu {
    gap: 6px;
  }

  .detail-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .detail-list strong {
    text-align: left;
  }

  .subscription-heading {
    flex-direction: column;
  }
}

@keyframes ccMarkFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3px, 0); }
}

@keyframes ccHeroSweep {
  0%, 38% { left: -32%; opacity: 0; }
  50% { opacity: 1; }
  68%, 100% { left: 115%; opacity: 0; }
}

@keyframes ccLogoFloat {
  0%, 100% { transform: translate3d(0, -3px, 0) scale(1); }
  50% { transform: translate3d(0, 7px, 0) scale(1.02); }
}

@keyframes ccOrbit {
  to { transform: rotate(360deg); }
}

@keyframes ccGlowDrift {
  to { transform: translate3d(18px, -12px, 0) scale(1.05); }
}

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

/* CoachCore light theme */
:root[data-theme="light"] body {
  background:
    linear-gradient(rgba(12, 85, 92, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 85, 92, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 88% 0, rgba(46, 103, 195, 0.23), transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(16, 151, 139, 0.18), transparent 38%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

:root[data-theme="light"] .sidebar {
  border-right-color: rgba(12, 50, 64, 0.12);
  background: linear-gradient(180deg, rgba(248, 252, 252, 0.94), rgba(224, 240, 240, 0.96));
  box-shadow: 18px 0 55px rgba(24, 70, 80, 0.08);
}

:root[data-theme="light"] .brand-name {
  color: #0a2c39;
}

:root[data-theme="light"] .nav-item:hover {
  color: #082937;
  background: rgba(15, 143, 130, 0.08);
}

:root[data-theme="light"] .nav-item.active {
  color: #07323e;
  background: linear-gradient(90deg, rgba(15, 143, 130, 0.16), rgba(36, 91, 214, 0.06));
}

:root[data-theme="light"] .side-link:hover,
:root[data-theme="light"] .text-link:hover {
  color: #087f76;
}

:root[data-theme="light"] .avatar {
  color: #fff;
  background: linear-gradient(145deg, #0e8f87, #215bd7);
}

:root[data-theme="light"] .icon-button,
:root[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.62);
}

:root[data-theme="light"] .icon-button:hover {
  color: #087f76;
  background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .flash-success {
  color: #087368;
  background: rgba(15, 143, 130, 0.1);
}

:root[data-theme="light"] .flash-warning {
  color: #8b4b18;
  background: rgba(255, 172, 114, 0.16);
}

:root[data-theme="light"] .flash-danger {
  color: #a33a3a;
  background: rgba(220, 69, 69, 0.1);
}

:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .panel {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(238, 247, 248, 0.82));
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .status-neutral {
  color: #46646c;
}

:root[data-theme="light"] .success-box .coming-icon {
  border-color: rgba(7, 126, 115, 0.24);
  color: #057c71;
  background: linear-gradient(145deg, rgba(75, 197, 183, 0.2), rgba(40, 100, 221, 0.09));
  box-shadow: 0 8px 20px rgba(6, 113, 105, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .text-link {
  color: #07877c;
}

:root[data-theme="light"] .help-panel {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(45, 99, 220, 0.48), transparent 46%),
    linear-gradient(145deg, #08736e, #0d8e85 52%, #1859bc);
}

:root[data-theme="light"] .help-panel p {
  color: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .help-panel .text-link,
:root[data-theme="light"] .help-panel .kicker {
  color: #d9fff8;
}

:root[data-theme="light"] .ghost-button {
  color: #294c57;
  background: rgba(255, 255, 255, 0.5);
}

:root[data-theme="light"] .field > span {
  color: #183a47;
}

:root[data-theme="light"] .field input {
  color: #0a2231;
  border-color: rgba(23, 79, 99, 0.14);
  background: #edf3fe;
}

:root[data-theme="light"] .field input::placeholder {
  color: #71838d;
}

:root[data-theme="light"] .field input:focus {
  border-color: rgba(15, 143, 130, 0.56);
  background: #f4f8ff;
}

:root[data-theme="light"] .secondary-button {
  color: #0d6e69;
}

:root[data-theme="light"] .danger-button {
  color: #a33a3a;
}

:root[data-theme="light"] .current-plan-summary,
:root[data-theme="light"] .plan-card {
  background: rgba(236, 246, 247, 0.72);
}

:root[data-theme="light"] .plan-card.featured {
  background:
    radial-gradient(circle at 100% 0, rgba(36, 91, 214, 0.14), transparent 42%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(226, 244, 243, 0.84));
}

:root[data-theme="light"] .feature-list li {
  color: #35545e;
}

:root[data-theme="light"] .auth-body {
  background:
    radial-gradient(circle at 10% 18%, rgba(15, 143, 130, 0.42), transparent 36%),
    radial-gradient(circle at 90% 12%, rgba(64, 112, 183, 0.44), transparent 42%),
    linear-gradient(135deg, #053d46, #d8e8e9 72%);
}

:root[data-theme="light"] .auth-brand-panel .brand-name {
  color: #fff;
}

:root[data-theme="light"] .auth-card-wrap {
  background: rgba(225, 239, 240, 0.68);
  backdrop-filter: blur(24px);
}

:root[data-theme="light"] .auth-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(235, 244, 245, 0.88));
  box-shadow: 0 28px 80px rgba(29, 78, 92, 0.2);
}

:root[data-theme="light"] .auth-card .brand-name {
  color: #0a2c39;
}

:root[data-theme="light"] .auth-help a {
  color: #087f76;
}

:root[data-theme="light"] .coming-box {
  color: #123845;
}

:root[data-theme="light"] .coming-box p {
  color: #536c76;
}

@media (max-width: 820px) {
  :root[data-theme="light"] body {
    background-size: 36px 36px, 36px 36px, auto, auto, auto;
  }

  :root[data-theme="light"] .topbar {
    border-bottom-color: rgba(12, 50, 64, 0.12);
    background: rgba(238, 247, 247, 0.92);
  }

  :root[data-theme="light"] .mobile-nav {
    border-color: rgba(12, 50, 64, 0.15);
    background: rgba(247, 252, 252, 0.96);
    box-shadow: 0 16px 55px rgba(25, 72, 82, 0.2);
  }

  :root[data-theme="light"] .mobile-nav .mobile-item.active {
    color: #07323e;
  }

  :root[data-theme="light"] .auth-card-wrap {
    background: transparent;
  }
}

/* === CoachCore web registration === */
.auth-register-wrap {
  padding-block: 28px;
}

.auth-card-register {
  width: min(620px, 100%);
}

.auth-register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.auth-register-grid .wide {
  grid-column: 1 / -1;
}

.field-optional {
  margin-left: 6px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
}

.register-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(75, 197, 183, 0.16);
  border-radius: 13px;
  background: rgba(75, 197, 183, 0.055);
}

.register-note-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px rgba(75, 197, 183, 0.48);
}

.register-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.register-note strong {
  color: var(--text);
}

.auth-switch {
  margin-top: 20px;
  padding: 15px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.auth-switch a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  font-weight: 800;
}

.auth-switch a:hover {
  filter: brightness(1.08);
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 680px) {
  .auth-register-grid {
    grid-template-columns: 1fr;
  }

  .auth-register-grid .wide {
    grid-column: auto;
  }

  .auth-switch {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}


/* ==========================================================================
   CoachCore registration paid-service disclosure + COACHCORE40
   ========================================================================== */
.cc-register-paid-notice {
  margin: 18px 0 14px;
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(75,197,183,.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(75,197,183,.095), rgba(66,116,197,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.cc-register-paid-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg,#16aa92,#0e7f73); color:#fff; box-shadow:0 10px 24px rgba(16,151,130,.22); font-weight:900; }
.cc-register-paid-copy { min-width:0; flex:1; }
.cc-register-paid-kicker { display:block; margin-bottom:4px; color:var(--mint); font-size:8px; font-weight:900; letter-spacing:.13em; }
.cc-register-paid-copy > strong { display:block; color:var(--text); font-size:13px; line-height:1.3; }
.cc-register-paid-copy > p { margin:5px 0 12px; color:var(--muted); font-size:10px; line-height:1.55; }
.cc-register-coupon-row { display:flex; align-items:center; gap:10px; padding:10px 11px; border-radius:13px; background:rgba(7,48,59,.06); border:1px dashed rgba(75,197,183,.28); }
.cc-register-discount { display:grid; place-items:center; min-width:44px; height:28px; padding:0 8px; border-radius:9px; background:#0b8f7e; color:#fff; font-size:11px; font-weight:900; }
.cc-register-coupon-row div { display:flex; flex-direction:column; gap:1px; }
.cc-register-coupon-row small { color:var(--muted); font-size:7px; letter-spacing:.12em; font-weight:800; }
.cc-register-coupon-row b { color:var(--text); font-size:12px; letter-spacing:.06em; }
.cc-register-coupon-help { margin-left:auto; color:var(--muted); font-size:8px; text-align:right; }

body.cc-register-modal-open { overflow:hidden; }
.cc-register-modal[hidden] { display:none !important; }
.cc-register-modal { position:fixed; inset:0; z-index:9999; display:grid; place-items:center; padding:18px; opacity:0; visibility:hidden; transition:opacity .2s ease,visibility .2s ease; }
.cc-register-modal.is-open { opacity:1; visibility:visible; }
.cc-register-modal-backdrop { position:absolute; inset:0; background:rgba(3,18,25,.78); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.cc-register-modal-card { position:relative; width:min(620px,100%); max-height:calc(100vh - 36px); overflow:auto; border:1px solid rgba(255,255,255,.12); border-radius:26px; background:linear-gradient(180deg,#ffffff 0%,#f8fbfb 100%); box-shadow:0 32px 90px rgba(0,20,28,.35); color:#0a2935; padding:28px; transform:translateY(16px) scale(.985); transition:transform .22s ease; }
.cc-register-modal.is-open .cc-register-modal-card { transform:translateY(0) scale(1); }
.cc-register-modal-close { position:absolute; top:16px; right:16px; width:34px; height:34px; border:1px solid #dbe7e9; border-radius:11px; background:#fff; color:#64808a; font-size:22px; line-height:1; cursor:pointer; }
.cc-register-modal-brand { display:flex; align-items:center; gap:10px; margin-bottom:26px; }
.cc-register-modal-mark { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,#18aa93,#087c70); font-weight:900; }
.cc-register-modal-brand div { display:flex; flex-direction:column; }
.cc-register-modal-brand small { color:#19a38f; font-size:8px; font-weight:900; letter-spacing:.16em; }
.cc-register-modal-brand strong { color:#0a2935; font-size:12px; }
.cc-register-modal-hero .kicker { color:#118f7e; }
.cc-register-modal-hero h2 { margin:6px 0 8px; color:#082c38; font-size:clamp(24px,4vw,34px); line-height:1.08; letter-spacing:-.035em; }
.cc-register-modal-hero > p { margin:0 0 22px; max-width:520px; color:#6a7f87; font-size:12px; line-height:1.6; }
.cc-register-modal-grid { display:grid; gap:10px; }
.cc-register-modal-grid article { display:flex; align-items:flex-start; gap:13px; padding:14px; border:1px solid #e1ebed; border-radius:16px; background:#fff; }
.cc-register-modal-grid article.is-coupon { border-color:rgba(25,166,143,.35); background:linear-gradient(135deg,rgba(26,170,146,.095),rgba(44,122,180,.04)); }
.cc-register-modal-number { min-width:42px; height:32px; padding:0 8px; border-radius:10px; display:grid; place-items:center; background:#edf5f5; color:#168f7e; font-size:10px; font-weight:900; letter-spacing:.05em; }
.cc-register-modal-grid article.is-coupon .cc-register-modal-number { background:#0d927f; color:#fff; }
.cc-register-modal-grid strong { display:block; color:#0a2935; font-size:12px; margin-bottom:3px; }
.cc-register-modal-grid p { margin:0; color:#698087; font-size:10px; line-height:1.55; }
.cc-register-modal-grid p b { color:#0b7d70; letter-spacing:.04em; }
.cc-register-confirm-check { margin-top:16px; display:flex; align-items:flex-start; gap:11px; padding:14px; border:1px solid #dfe9eb; border-radius:15px; background:#f8fbfb; cursor:pointer; }
.cc-register-confirm-check input { position:absolute; opacity:0; pointer-events:none; }
.cc-register-check-ui { width:22px; height:22px; flex:0 0 22px; border:1px solid #bdd0d4; border-radius:7px; background:#fff; display:grid; place-items:center; color:transparent; transition:.15s ease; }
.cc-register-confirm-check input:checked + .cc-register-check-ui { background:#119783; border-color:#119783; color:#fff; box-shadow:0 6px 16px rgba(17,151,131,.22); }
.cc-register-check-ui i { font-style:normal; font-size:12px; font-weight:900; }
.cc-register-confirm-check > span:last-child { color:#415d66; font-size:10px; line-height:1.55; }
.cc-register-modal-actions { display:flex; gap:10px; margin-top:18px; }
.cc-register-modal-back,.cc-register-modal-confirm { min-height:46px; border-radius:14px; font-size:10px; font-weight:900; cursor:pointer; }
.cc-register-modal-back { padding:0 18px; border:1px solid #d8e4e7; background:#fff; color:#607981; }
.cc-register-modal-confirm { flex:1; padding:0 18px; display:flex; align-items:center; justify-content:center; gap:12px; border:0; background:linear-gradient(135deg,#18a58f,#0a8175); color:#fff; box-shadow:0 12px 28px rgba(11,142,123,.22); }
.cc-register-modal-confirm:disabled { opacity:.42; cursor:not-allowed; box-shadow:none; }
.cc-register-modal-confirm.is-loading span { opacity:.78; }
.cc-register-modal-foot { margin:11px 0 0; text-align:center; color:#83969c; font-size:8px; }

.cc-subscription-promo { margin:0 0 18px; display:flex; align-items:center; gap:16px; padding:18px; border:1px solid rgba(34,190,162,.24); border-radius:20px; background:linear-gradient(135deg,rgba(40,194,168,.11),rgba(39,119,178,.055)); box-shadow:0 12px 30px rgba(12,74,76,.06); }
.cc-subscription-promo-mark { width:62px; height:62px; flex:0 0 62px; display:grid; place-items:center; border-radius:18px; background:linear-gradient(145deg,#22b49b,#087c70); color:#fff; font-size:18px; font-weight:950; box-shadow:0 12px 28px rgba(14,147,126,.22); }
.cc-subscription-promo-copy { min-width:0; flex:1; }
.cc-subscription-promo-copy h3 { margin:3px 0 4px; font-size:16px; }
.cc-subscription-promo-copy h3 strong { color:#159b86; letter-spacing:.035em; }
.cc-subscription-promo-copy p { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }
.cc-subscription-copy-code { min-width:145px; padding:11px 14px; border:1px dashed rgba(37,171,149,.42); border-radius:14px; background:var(--surface); color:var(--text); cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; }
.cc-subscription-copy-code span { font-weight:950; letter-spacing:.07em; font-size:12px; }
.cc-subscription-copy-code small { color:var(--muted); font-size:8px; }
.cc-subscription-copy-code.is-copied { border-style:solid; border-color:#20b397; }

:root[data-theme="dark"] .cc-register-modal-card { background:linear-gradient(180deg,#10252e,#0d2028); color:#edf9fa; border-color:rgba(89,211,191,.14); }
:root[data-theme="dark"] .cc-register-modal-close,:root[data-theme="dark"] .cc-register-modal-grid article,:root[data-theme="dark"] .cc-register-modal-back,:root[data-theme="dark"] .cc-register-confirm-check { background:#132d36; border-color:#25434d; }
:root[data-theme="dark"] .cc-register-modal-brand strong,:root[data-theme="dark"] .cc-register-modal-hero h2,:root[data-theme="dark"] .cc-register-modal-grid strong { color:#eefafa; }
:root[data-theme="dark"] .cc-register-modal-hero > p,:root[data-theme="dark"] .cc-register-modal-grid p,:root[data-theme="dark"] .cc-register-confirm-check > span:last-child { color:#a7bcc3; }
:root[data-theme="dark"] .cc-register-modal-number { background:#183943; }
:root[data-theme="dark"] .cc-register-check-ui { background:#0e242c; border-color:#36535c; }

@media (max-width:680px) {
  .cc-register-paid-notice { padding:13px; gap:11px; }
  .cc-register-coupon-row { flex-wrap:wrap; }
  .cc-register-coupon-help { width:100%; margin-left:54px; text-align:left; }
  .cc-register-modal { padding:10px; align-items:end; }
  .cc-register-modal-card { width:100%; max-height:92vh; border-radius:24px 24px 18px 18px; padding:22px 16px 18px; }
  .cc-register-modal-close { top:12px; right:12px; }
  .cc-register-modal-brand { margin-bottom:20px; }
  .cc-register-modal-actions { flex-direction:column-reverse; }
  .cc-register-modal-back,.cc-register-modal-confirm { width:100%; }
  .cc-subscription-promo { align-items:flex-start; flex-wrap:wrap; padding:15px; }
  .cc-subscription-promo-mark { width:52px; height:52px; flex-basis:52px; border-radius:15px; font-size:15px; }
  .cc-subscription-promo-copy { width:calc(100% - 70px); }
  .cc-subscription-copy-code { width:100%; min-width:0; flex-direction:row; justify-content:space-between; }
}
