:root {
  --primary: #68b88e;
  --primary-hover: #5aa87d;
  --primary-light: rgba(104, 184, 142, 0.1);
  --dark: #1a1a1a;
  --text: #333;
  --muted: #667085;
  --line: #e5e5e5;
  --panel: #fff;
  --shadow: 0 18px 46px rgba(21, 30, 25, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

.app {
  min-height: 100vh;
  background: #fff;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  height: 60px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #f0f0f0;
  backdrop-filter: blur(12px);
}

.brand,
.desktop-nav,
.header-actions,
.desktop-nav a,
.nav-dropdown > button,
.solid-button,
.text-button,
.hero-badge,
.composer-header,
.composer-upload,
.composer-footer,
.composer-tools,
.select-tool > button,
.generate-button,
.case-flow,
.mobile-nav,
.footer-links,
.footer-records {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.brand-icon svg {
  width: 28px;
  height: 28px;
  fill: #863bff;
  stroke: none;
}

.desktop-nav {
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.desktop-nav a,
.nav-dropdown > button {
  position: relative;
  height: 38px;
  padding: 0 11px;
  color: #333;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > button {
  color: #1a1a1a;
  background: #f4fbf7;
}

.desktop-nav em {
  margin-left: 3px;
  color: #2f7d52;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 10;
  display: grid;
  gap: 6px;
  width: 248px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e7ece9;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(21, 30, 25, 0.13);
  transform: translate(-50%, -4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.nav-menu.narrow {
  width: 218px;
}

.nav-dropdown:hover .nav-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-menu a {
  display: grid;
  height: auto;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 9px;
}

.nav-menu strong {
  color: #1a1a1a;
  font-size: 14px;
}

.nav-menu span {
  color: #777;
  font-size: 12px;
  line-height: 1.45;
}

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

.header-user-card {
  display: grid;
  grid-template-columns: 32px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  min-width: 154px;
  height: 42px;
  padding: 0 12px 0 6px;
  color: #17392b;
  background: #f4fbf7;
  border: 1px solid #dfe9e4;
  border-radius: 999px;
  cursor: default;
  text-align: left;
}

.header-user-card span {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: #101814;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 950;
}

.header-user-card strong,
.header-user-card small {
  overflow: hidden;
  max-width: 116px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-card strong {
  color: #13231b;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.header-user-card small {
  color: #64756c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.member-menu {
  position: relative;
}

.member-entry-button {
  gap: 7px;
}

.member-entry-button svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s;
}

.member-menu.open .member-entry-button svg {
  transform: rotate(180deg);
}

.member-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 6px;
  width: 232px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dfe9e4;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(21, 30, 25, 0.14);
  backdrop-filter: blur(12px);
}

.member-menu-panel[hidden] {
  display: none;
}

.member-menu-panel a,
.member-menu-panel button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 12px;
  color: #20382e;
  border-radius: 10px;
  text-align: left;
}

.member-menu-panel a:hover,
.member-menu-panel button:hover {
  background: #f4fbf7;
}

.member-menu-panel strong {
  color: #111814;
  font-size: 14px;
  font-weight: 950;
}

.member-menu-panel span {
  color: #64756c;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.text-button,
.solid-button {
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.text-button {
  color: #333;
  background: #fff;
}

.solid-button {
  color: #10281c;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.solid-button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

body.modal-open {
  overflow: hidden;
  padding-right: var(--modal-scrollbar-compensation, 0px);
}

body.modal-open .site-header {
  padding-right: calc(28px + var(--modal-scrollbar-compensation, 0px));
}

.wallet-recharge-modal,
.admin-credit-modal,
.app-dialog-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 18, 15, 0.42);
  backdrop-filter: blur(1px);
}

.wallet-recharge-modal[hidden],
.credit-records-modal[hidden],
.admin-credit-modal[hidden],
.app-dialog-modal[hidden] {
  display: none;
}

.wallet-recharge-dialog,
.admin-credit-dialog {
  position: relative;
  width: min(454px, 100%);
  padding: 28px;
  color: #171d1a;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 86px rgba(12, 18, 15, 0.28);
}

.app-dialog {
  position: relative;
  width: min(438px, 100%);
  padding: 30px;
  color: #111814;
  background:
    linear-gradient(180deg, rgba(244, 251, 247, 0.78), rgba(255, 255, 255, 0.98) 42%),
    #fff;
  border: 1px solid rgba(104, 184, 142, 0.22);
  border-radius: 22px;
  box-shadow: 0 34px 92px rgba(12, 18, 15, 0.3);
}

.app-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #7d8a83;
  background: transparent;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.app-dialog-close:hover {
  color: #10281c;
  background: #eef8f2;
}

.app-dialog-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #0b7448;
  background: #eaf8f0;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 950;
}

.app-dialog-modal[data-tone="danger"] .app-dialog-icon {
  color: #c2412d;
  background: #fff1ec;
}

.app-dialog-modal[data-tone="success"] .app-dialog-icon {
  color: #0b7448;
  background: #eaf8f0;
}

.app-dialog h2 {
  padding-right: 36px;
  color: #111814;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.2;
}

.app-dialog p {
  margin-top: 12px;
  color: #5f6f66;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.app-dialog-field {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.app-dialog-field[hidden],
.app-dialog-error[hidden],
.app-dialog-secondary[hidden] {
  display: none;
}

.app-dialog-field span {
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.app-dialog-field input {
  height: 48px;
  padding: 0 14px;
  color: #111814;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 14px;
  outline: 0;
  font-size: 16px;
  font-weight: 850;
}

.app-dialog-field input:focus {
  border-color: #68b88e;
  box-shadow: 0 0 0 4px rgba(104, 184, 142, 0.12);
}

.app-dialog-error {
  margin-top: 10px;
  color: #c2412d;
  font-size: 13px;
  font-weight: 900;
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.app-dialog-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 950;
}

.app-dialog-secondary {
  color: #20382e;
  background: #fff;
  border: 1px solid #dfe9e4;
}

.app-dialog-secondary:hover {
  background: #f4fbf7;
  border-color: rgba(104, 184, 142, 0.38);
}

.app-dialog-primary {
  color: #10281c;
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 12px 26px rgba(104, 184, 142, 0.22);
}

.app-dialog-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.app-dialog-modal[data-tone="danger"] .app-dialog-primary {
  color: #fff;
  background: #d44b35;
  border-color: #d44b35;
  box-shadow: 0 12px 26px rgba(212, 75, 53, 0.2);
}

.wallet-close-button {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #9aa29d;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.wallet-close-button:hover {
  color: #20382e;
  background: #f4fbf7;
}

.wallet-recharge-dialog h2,
.admin-credit-dialog h2 {
  color: #111814;
  font-size: 24px;
  font-weight: 950;
}

.wallet-balance-line,
.admin-credit-target {
  margin-top: 8px;
  color: #8a948f;
  font-size: 14px;
  font-weight: 800;
}

.admin-credit-target span {
  color: #20382e;
}

.wallet-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.wallet-preset-grid button {
  height: 50px;
  color: #111814;
  background: #fff;
  border: 1px solid #dfe5e2;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 950;
}

.wallet-preset-grid button.active {
  color: #0b7448;
  background: #f4fbf7;
  border-color: #68b88e;
}

.admin-credit-preset-grid button {
  font-size: 20px;
}

.wallet-amount-field {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.wallet-amount-field > span {
  color: #5c6761;
  font-size: 14px;
  font-weight: 900;
}

.wallet-amount-field div {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #dfe5e2;
  border-radius: 10px;
}

.wallet-amount-field b {
  color: #5c6761;
  font-size: 18px;
}

.wallet-amount-field input {
  width: 100%;
  min-width: 0;
  color: #111814;
  border: 0;
  outline: 0;
  font-size: 22px;
  font-weight: 950;
}

.wallet-arrival-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 18px;
  padding: 20px 22px;
  background: #f4fbf7;
  border: 1px solid rgba(104, 184, 142, 0.52);
  border-radius: 12px;
}

.wallet-arrival-box span {
  grid-column: 1 / -1;
  color: #8a948f;
  font-size: 14px;
  font-weight: 850;
}

.wallet-arrival-box strong {
  color: #111814;
  font-size: 24px;
  font-weight: 950;
}

.wallet-arrival-box b {
  align-self: end;
  color: #ff7a1a;
  font-size: 28px;
  font-weight: 950;
}

.wallet-arrival-box em {
  font-style: normal;
}

.wallet-pay-button {
  width: 100%;
  height: 56px;
  margin-top: 20px;
  color: #10281c;
  background: var(--primary);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 950;
}

.wallet-help-text {
  margin-top: 14px;
  color: #9aa29d;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.wallet-message {
  margin-top: 12px;
  color: #c01048;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.credit-records-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 18, 15, 0.42);
  backdrop-filter: blur(1px);
}

.credit-records-dialog {
  position: relative;
  width: min(454px, 100%);
  max-height: min(86vh, 720px);
  padding: 28px;
  overflow: hidden;
  color: #171d1a;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 86px rgba(12, 18, 15, 0.28);
}

.credit-records-head {
  padding: 0;
}

.credit-records-head h2 {
  color: #111814;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.credit-records-head p {
  margin-top: 8px;
  color: #8a948f;
  font-size: 14px;
  font-weight: 800;
}

.credit-records-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #e4ebe7;
  border-radius: 14px;
}

.credit-records-filter label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.credit-records-filter label span {
  color: #5c6761;
  font-size: 13px;
  font-weight: 900;
}

.credit-records-filter input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  color: #202631;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  outline: 0;
  font-size: 14px;
  font-weight: 850;
}

.credit-records-filter button {
  height: 44px;
  color: #111814;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 950;
}

.credit-records-filter button[data-reset-credit-records] {
  color: #657080;
  background: #fff;
  border-color: #dfe3e8;
}

.credit-records-count {
  margin-top: 14px;
  color: #96a0b0;
  font-size: 13px;
  font-weight: 800;
}

.credit-records-list {
  display: grid;
  max-height: min(360px, 38vh);
  gap: 10px;
  margin-top: 12px;
  overflow: auto;
}

.credit-record-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  background: #fbfbfc;
  border: 1px solid #eceeef;
  border-radius: 14px;
}

.credit-record-sign {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 950;
}

.credit-record-item.negative .credit-record-sign {
  color: #d85a08;
  background: #fff1e5;
}

.credit-record-item.positive .credit-record-sign {
  color: #2e8a59;
  background: #eaf8f1;
}

.credit-record-item strong {
  display: block;
  color: #202631;
  font-size: 15px;
  font-weight: 950;
}

.credit-record-item p {
  margin-top: 5px;
  color: #99a2b2;
  font-size: 13px;
  font-weight: 800;
}

.credit-record-item time {
  margin-left: 8px;
}

.credit-record-item b {
  color: #2e8a59;
  font-size: 20px;
  font-weight: 950;
}

.credit-record-item.negative b {
  color: #d85a08;
}

.credit-record-empty {
  display: grid;
  place-items: center;
  min-height: 110px;
  color: #8b968f;
  background: #fbfbfc;
  border: 1px solid #eceeef;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 850;
}

.wallet-message[data-tone="success"] {
  color: #16774c;
}

.page-home {
  min-height: 100vh;
  padding-top: 60px;
  color: #13231b;
  background: #f5faf7;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 60px);
  padding: 106px 24px 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(105, 185, 143, 0.98) 0%, rgba(78, 155, 109, 0.98) 100%);
}

.hero-surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-surface-dots {
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 18%, transparent 46%);
}

.hero-surface-lines::before,
.hero-surface-lines::after {
  content: "";
  position: absolute;
  right: -9%;
  top: 20%;
  width: 48%;
  height: 38%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.hero-surface-lines::after {
  right: -6%;
  top: 24%;
  width: 42%;
  height: 30%;
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(1060px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-copy {
  width: min(860px, 100%);
}

.hero-badge {
  gap: 6px;
  width: fit-content;
  margin: 0 auto 24px;
  padding: 7px 17px;
  color: #4c3900;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  color: #fff;
  font-size: 54px;
  font-weight: 850;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hero-copy p {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.home-composer {
  width: min(1020px, 100%);
  padding: 18px;
  text-align: left;
  background: rgba(248, 253, 250, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.13), 0 24px 70px rgba(33, 87, 55, 0.22);
  backdrop-filter: blur(16px);
}

.composer-header {
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 14px;
}

.composer-kicker {
  display: block;
  color: #2f7d52;
  font-size: 13px;
  font-weight: 900;
}

.composer-header strong {
  color: #13231b;
  font-size: 18px;
  font-weight: 900;
}

.composer-upload {
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  color: #17392b;
  background: #e9f8f0;
  border: 1px solid rgba(104, 184, 142, 0.24);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.home-composer textarea {
  display: block;
  width: 100%;
  min-height: 128px;
  padding: 18px 20px;
  resize: vertical;
  color: #13231b;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 18px;
  outline: none;
  font-size: 16px;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-composer textarea::placeholder {
  color: #8a9a91;
}

.reference-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.reference-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
}

.reference-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-thumb button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.composer-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.composer-tools {
  flex-wrap: wrap;
  gap: 8px;
}

.icon-tool,
.select-tool > button {
  height: 42px;
  color: #20382e;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(21, 30, 25, 0.05);
}

.icon-tool {
  display: inline-grid;
  place-items: center;
  width: 42px;
}

.select-tool {
  position: relative;
}

.select-tool > button {
  gap: 7px;
  padding: 0 12px;
}

.select-tool > button svg:last-child {
  width: 15px;
  height: 15px;
}

.select-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 138px;
  padding: 7px;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(21, 30, 25, 0.15);
}

.select-tool.open .select-menu {
  display: grid;
}

.select-menu button {
  height: 34px;
  padding: 0 10px;
  color: #20382e;
  text-align: left;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.select-menu button:hover,
.select-menu button.active {
  color: #0b7448;
  background: #eaf8f0;
}

.generate-button {
  flex: none;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  color: #0f2418;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(104, 184, 142, 0.32);
}

.generate-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.composer-error {
  margin-top: 12px;
  color: #c01048;
  font-size: 13px;
  font-weight: 800;
}

.composer-error[data-tone="success"] {
  color: #16774c;
}

.generation-results {
  margin-top: 18px;
}

.generation-result-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(21, 30, 25, 0.1);
}

.generation-result-panel.generation-failed {
  border-color: rgba(192, 16, 72, 0.18);
  background: #fffafb;
}

.generation-result-panel.generation-failed .generation-status-pill {
  color: #c01048;
  background: #fff0f4;
}

.generation-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 0;
}

.generation-result-head h3 {
  margin-top: 8px;
  color: #111814;
  font-size: 18px;
  font-weight: 950;
}

.generation-result-head p {
  margin-top: 4px;
  color: #64756c;
  font-size: 13px;
  font-weight: 820;
}

.generation-status-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  color: #0b7448;
  background: #eaf8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.generation-soft-button,
.generation-card-actions button,
.generation-card-actions a,
.image-preview-actions a,
.image-preview-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  color: #17392b;
  background: #f4fbf7;
  border: 1px solid #dfe8e2;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 950;
}

.generation-soft-button {
  gap: 7px;
  height: 38px;
  background: #fff;
}

.generation-soft-button:hover,
.generation-card-actions button:hover,
.generation-card-actions a:hover,
.image-preview-actions a:hover,
.image-preview-actions button:hover {
  color: #0f2418;
  background: var(--primary);
  border-color: var(--primary);
}

.generation-card-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.image-preview-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.generation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 168px));
  gap: 12px;
  align-items: start;
  justify-content: start;
}

.generation-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  min-width: 0;
  width: 100%;
  max-width: 168px;
  padding: 8px;
  color: #17392b;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 16px;
}

.generation-card img {
  width: 100%;
  height: 168px;
  aspect-ratio: auto;
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 10px;
  background: #edf7f1;
}

.generation-grid.ratio-16-9 .generation-card img {
  height: 95px;
}

.generation-grid.ratio-16-9 {
  grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
}

.generation-grid.ratio-16-9 .generation-card {
  max-width: 180px;
}

.generation-grid.ratio-16-9 .generation-skeleton div {
  aspect-ratio: 16 / 9;
}

.generation-grid.ratio-9-16 .generation-card img {
  height: 299px;
}

.generation-grid.ratio-9-16 {
  grid-template-columns: repeat(auto-fill, minmax(112px, 142px));
}

.generation-grid.ratio-9-16 .generation-card {
  max-width: 142px;
}

.generation-grid.ratio-9-16 .generation-skeleton div {
  aspect-ratio: 9 / 16;
}

.generation-grid.ratio-4-3 .generation-card img {
  height: 126px;
}

.generation-grid.ratio-4-3 {
  grid-template-columns: repeat(auto-fill, minmax(146px, 178px));
}

.generation-grid.ratio-4-3 .generation-card {
  max-width: 178px;
}

.generation-grid.ratio-4-3 .generation-skeleton div {
  aspect-ratio: 4 / 3;
}

.generation-grid.ratio-3-4 .generation-card img {
  height: 224px;
}

.generation-grid.ratio-3-4 {
  grid-template-columns: repeat(auto-fill, minmax(120px, 150px));
}

.generation-grid.ratio-3-4 .generation-card {
  max-width: 150px;
}

.generation-grid.ratio-3-4 .generation-skeleton div {
  aspect-ratio: 3 / 4;
}

.generation-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.generation-card-meta strong {
  overflow: hidden;
  color: #111814;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generation-card-meta span {
  flex: none;
  color: #64756c;
  font-size: 12px;
  font-weight: 850;
}

.generation-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.album-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(21, 30, 25, 0.1);
}

.album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 0;
}

.album-head h3 {
  margin-top: 8px;
  color: #111814;
  font-size: 18px;
  font-weight: 950;
}

.album-head p {
  margin-top: 4px;
  color: #64756c;
  font-size: 13px;
  font-weight: 820;
}

.album-grid {
  display: grid;
  width: 100%;
  max-width: 906px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  justify-content: start;
}

.album-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 16px;
}

.album-thumb-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  background: #f7faf8;
  border: 0;
  border-radius: 10px;
}

.album-thumb-frame::before {
  position: absolute;
  inset: -14px;
  background-image: inherit;
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(16px);
  opacity: 0.22;
  transform: scale(1.08);
}

.album-thumb-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.album-card[data-ratio="9-16"] .album-thumb-frame {
  aspect-ratio: 9 / 16;
}

.album-card[data-ratio="3-4"] .album-thumb-frame {
  aspect-ratio: 3 / 4;
}

.album-card[data-ratio="16-9"] .album-thumb-frame {
  aspect-ratio: 16 / 9;
}

.album-card[data-ratio="4-3"] .album-thumb-frame {
  aspect-ratio: 4 / 3;
}

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

.album-card-meta strong {
  overflow: hidden;
  color: #111814;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card-meta span {
  flex: none;
  color: #64756c;
  font-size: 11px;
  font-weight: 850;
}

.album-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.album-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 6px;
  color: #17392b;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 950;
}

.album-card-actions button:hover {
  color: #0f2418;
  background: var(--primary);
  border-color: var(--primary);
}

.album-card-actions .album-delete-button {
  color: #b94222;
  background: #fff7f3;
  border-color: #f2d8cd;
}

.album-card-actions .album-delete-button:hover {
  color: #fff;
  background: #d85b35;
  border-color: #d85b35;
}

.album-card-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.album-empty {
  grid-column: 1 / -1;
  padding: 22px;
  color: #64756c;
  background: #f8fbf9;
  border: 1px dashed #dfe8e2;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.album-progress {
  display: grid;
  gap: 8px;
  padding: 0 2px 2px;
}

.album-progress-track {
  overflow: hidden;
  height: 10px;
  background: #edf7f1;
  border: 1px solid #dcebe3;
  border-radius: 999px;
}

.album-progress-track span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #65bd8e, #9ee5b9, #65bd8e);
  border-radius: inherit;
  animation: albumProgress 1.45s ease-in-out infinite;
}

.album-progress small {
  color: #64756c;
  font-size: 12px;
  font-weight: 820;
}

.generation-skeleton {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 16px;
}

.album-grid.ratio-16-9 .generation-skeleton {
  width: 220px;
}

.album-grid.ratio-4-3 .generation-skeleton {
  width: 190px;
}

.album-grid.ratio-3-4 .generation-skeleton,
.album-grid.ratio-9-16 .generation-skeleton {
  width: 150px;
}

.generation-skeleton div,
.generation-skeleton span,
.generation-skeleton small {
  display: block;
  overflow: hidden;
  background: linear-gradient(90deg, #edf7f1, #fff, #edf7f1);
  background-size: 220% 100%;
  border-radius: 11px;
  animation: generationPulse 1.2s ease-in-out infinite;
}

.generation-skeleton div {
  aspect-ratio: 1 / 1;
}

.generation-skeleton span {
  width: 62%;
  height: 16px;
}

.generation-skeleton small {
  width: 86%;
  height: 34px;
}

@keyframes generationPulse {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 220% 50%;
  }
}

@keyframes albumProgress {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(250%);
  }
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 18, 15, 0.7);
  backdrop-filter: blur(5px);
}

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

.image-preview-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  padding: 14px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 86px rgba(12, 18, 15, 0.38);
}

.image-preview-dialog img {
  width: 100%;
  max-height: calc(100vh - 148px);
  object-fit: contain;
  background: #f4fbf7;
  border-radius: 12px;
}

.image-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(16, 24, 20, 0.72);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

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

.image-preview-actions .image-preview-download-button {
  min-width: 148px;
  height: 46px;
  padding: 0 24px;
  color: #10281c;
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 13px;
  box-shadow: 0 14px 32px rgba(104, 184, 142, 0.3);
  font-size: 15px;
}

.image-preview-actions .image-preview-download-button:hover {
  color: #10281c;
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 16px 36px rgba(104, 184, 142, 0.38);
}

.canvas-route {
  padding-bottom: 0;
  overflow: hidden;
  background: #f4f8f5;
}

.canvas-page {
  height: 100vh;
  color: #12231a;
  background: #f4f8f5;
}

.canvas-topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  height: 58px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e1e9e4;
  backdrop-filter: blur(12px);
}

.canvas-brand,
.canvas-back-home,
.canvas-project-pill,
.canvas-bottom-dock,
.canvas-zoom-dock,
.canvas-composer,
.canvas-result-grid a {
  display: flex;
  align-items: center;
}

.canvas-brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 950;
}

.canvas-project-pill {
  justify-self: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  color: #17392b;
  background: #eff8f3;
  border: 1px solid #d8e8df;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}

.canvas-back-home {
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  color: #17392b;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.canvas-shell {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  height: calc(100vh - 58px);
  overflow: hidden;
}

.canvas-sidebar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid #dfe8e2;
}

.canvas-helper {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: #f0faf5;
  border: 1px solid #d8e8df;
  border-radius: 16px;
}

.canvas-helper img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.canvas-helper strong,
.canvas-message span,
.canvas-node span,
.canvas-result-state {
  display: block;
  color: #163629;
  font-weight: 950;
}

.canvas-helper p,
.canvas-message p,
.canvas-node p {
  margin-top: 5px;
  color: #64756c;
  font-size: 13px;
  line-height: 1.65;
}

.canvas-chat {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.canvas-message {
  max-width: 92%;
  padding: 13px 14px;
  border-radius: 16px;
  font-size: 14px;
}

.canvas-message.user {
  align-self: flex-end;
  color: #10281c;
  background: #daf2e6;
}

.canvas-message.assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #dfe8e2;
}

.canvas-composer {
  gap: 10px;
  padding: 10px;
  background: #f7fbf8;
  border: 1px solid #dfe8e2;
  border-radius: 16px;
}

.canvas-composer textarea {
  min-width: 0;
  flex: 1;
  height: 42px;
  resize: none;
  color: #13231b;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
  line-height: 1.5;
}

.canvas-composer button {
  flex: none;
  height: 38px;
  padding: 0 13px;
  color: #0f2418;
  background: var(--primary);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
}

.canvas-composer button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.canvas-board {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #eef5f0;
}

.canvas-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(77, 113, 93, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 113, 93, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.canvas-empty {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 1;
  width: min(360px, 70%);
  color: #76877e;
  text-align: center;
  transform: translate(-50%, -50%);
}

.canvas-empty strong {
  display: block;
  color: #53665c;
  font-size: 26px;
  font-weight: 950;
}

.canvas-empty p {
  margin-top: 8px;
  font-size: 14px;
}

.canvas-node,
.canvas-result-node {
  position: absolute;
  z-index: 2;
  width: 240px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce8e1;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(21, 30, 25, 0.12);
}

.prompt-node {
  top: 94px;
  left: 70px;
}

.canvas-reference-nodes .reference-node {
  top: 285px;
  left: 190px;
}

.reference-node img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: 10px;
  object-fit: cover;
  border-radius: 10px;
}

.canvas-result-node {
  top: 170px;
  right: 86px;
  width: 310px;
  min-height: 186px;
}

.canvas-result-state {
  margin-top: 9px;
  color: #2f7d52;
  font-size: 14px;
}

.canvas-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.canvas-result-grid a {
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: #17392b;
  font-size: 12px;
  font-weight: 850;
}

.canvas-result-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #edf7f1;
}

.canvas-bottom-dock,
.canvas-zoom-dock {
  position: absolute;
  z-index: 5;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dfe8e2;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(21, 30, 25, 0.12);
  backdrop-filter: blur(12px);
}

.canvas-bottom-dock {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.canvas-bottom-dock button,
.canvas-zoom-dock button {
  height: 34px;
  padding: 0 12px;
  color: #20382e;
  background: #f4fbf7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
}

.canvas-zoom-dock {
  right: 18px;
  bottom: 18px;
}

.canvas-zoom-dock strong {
  min-width: 42px;
  color: #20382e;
  text-align: center;
  font-size: 13px;
}

.membership-route,
.admin-route {
  min-height: 100vh;
  background: #f7fbf8;
}

.simple-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e1e9e4;
  backdrop-filter: blur(12px);
}

.membership-route .simple-topbar {
  background: #151715;
  border-bottom: 0;
  box-shadow: 0 10px 28px rgba(16, 24, 20, 0.18);
}

.membership-route .simple-topbar .canvas-brand {
  color: #fff;
}

.membership-route .simple-topbar .canvas-back-home {
  color: #10281c;
  background: var(--primary);
  border-color: var(--primary);
}

.membership-page {
  min-height: 100vh;
  color: #12231a;
}

.membership-hero {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 56px;
  text-align: center;
}

.membership-hero span,
.admin-header span {
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.membership-hero h1,
.admin-header h1 {
  margin-top: 8px;
  color: #111814;
  font-size: 42px;
  font-weight: 950;
  line-height: 1.2;
}

.membership-hero p {
  display: none;
  margin-top: 12px;
  color: #64756c;
  font-weight: 700;
}

.member-layout {
  display: grid;
  gap: 22px;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.member-login-panel,
.member-balance-card,
.member-section,
.member-record-panel,
.admin-panel,
.admin-login-panel,
.admin-stats div {
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(104, 184, 142, 0.08);
}

.member-login-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.member-login-panel[hidden],
.member-overview[hidden],
.member-records[hidden] {
  display: none;
}

.member-login-panel h2,
.member-section-head h2 {
  color: #111814;
  font-size: 22px;
  font-weight: 950;
}

.member-login-panel p,
.member-section-head p {
  color: #64756c;
  font-size: 14px;
  font-weight: 750;
}

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

.member-login-form input {
  height: 42px;
  min-width: 0;
  padding: 0 13px;
  color: #13231b;
  background: #f8fcfa;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  outline: 0;
}

.member-login-form button,
.member-balance-card button {
  height: 42px;
  padding: 0 16px;
  color: #0f2418;
  background: var(--primary);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
}

.member-login-form button:nth-of-type(2) {
  background: #eaf8f0;
}

.member-login-form button:disabled,
.member-balance-card button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.member-message {
  color: #c01048;
  font-size: 13px;
  font-weight: 850;
}

.member-message[data-tone="success"] {
  color: #16774c;
}

.member-overview {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
}

.member-balance-card {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 22px;
}

.member-balance-card.primary {
  color: #fff;
  background: #101814;
  border-color: #101814;
}

.member-balance-card span,
.member-section-head span {
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.member-balance-card.primary span,
.member-balance-card.primary p {
  color: rgba(255, 255, 255, 0.68);
}

.member-balance-card strong {
  color: #111814;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.member-balance-card.primary strong {
  color: #fff;
}

.member-balance-card p {
  color: #64756c;
  font-size: 13px;
  font-weight: 750;
}

.member-balance-card button {
  align-self: end;
  width: fit-content;
}

.member-section,
.member-record-panel {
  padding: 22px;
}

.pricing-section {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.member-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.member-section-head.small {
  margin-bottom: 12px;
}

.member-section-head.small h2 {
  font-size: 18px;
}

.recharge-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: #20382e;
  background: #f4fbf7;
  border: 1px solid #dfe9e4;
  border-radius: 14px;
}

.recharge-note div {
  display: grid;
  gap: 4px;
}

.recharge-note strong {
  color: #111814;
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.recharge-note span {
  color: #64756c;
  font-size: 14px;
  font-weight: 800;
}

.recharge-note button {
  flex: none;
  height: 40px;
  padding: 0 16px;
  color: #0f2418;
  background: var(--primary);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 950;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.membership-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 24px;
  min-height: 610px;
  padding: 44px 36px 32px;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(45, 92, 66, 0.06);
}

.membership-card.current,
.membership-card.popular {
  border-color: #68b88e;
  box-shadow: 0 16px 38px rgba(104, 184, 142, 0.16);
}

.popular-ribbon {
  position: absolute;
  top: -18px;
  left: 50%;
  display: grid;
  place-items: center;
  height: 36px;
  padding: 0 24px;
  color: #17392b;
  background: var(--primary);
  border-radius: 999px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.plan-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.plan-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #2f8c5c;
  background: #f0faf5;
  border-radius: 12px;
}

.membership-card.popular .plan-icon {
  color: #10281c;
  background: var(--primary);
}

.plan-icon svg {
  width: 28px;
  height: 28px;
}

.membership-card h2 {
  color: #111814;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.15;
}

.membership-card em,
.membership-card small {
  display: block;
  margin-top: 6px;
  color: #ff7a1a;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.35;
}

.membership-card em {
  color: #2f8c5c;
}

.membership-card strong {
  color: #111814;
  font-size: 54px;
  font-weight: 950;
  line-height: 1;
}

.membership-card .plan-credit {
  color: #2f8c5c;
  font-size: 20px;
  font-weight: 950;
}

.membership-card ul {
  display: grid;
  align-content: start;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.membership-card li {
  position: relative;
  padding-left: 32px;
  color: #26343d;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
}

.membership-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #58b683;
  font-weight: 950;
}

.membership-card.popular li:last-child,
.membership-card:nth-child(4) li:last-child {
  color: #2f8c5c;
  font-weight: 950;
}

.membership-card button,
.admin-header button,
.admin-login-panel button,
.admin-table button {
  height: 56px;
  padding: 0 14px;
  color: #2f8c5c;
  background: #fff;
  border: 1px solid rgba(104, 184, 142, 0.5);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 950;
}

.membership-card button:hover {
  color: #10281c;
  background: var(--primary);
}

.admin-header button,
.admin-login-panel button,
.admin-table button {
  height: 38px;
  color: #0f2418;
  background: var(--primary);
  border: 0;
  font-size: 13px;
}

.membership-card button:disabled,
.admin-login-panel button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.member-records,
.admin-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.record-list,
.admin-activity-list {
  display: grid;
  gap: 8px;
}

.record-row,
.admin-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 12px;
}

.record-row div,
.admin-activity-row div {
  min-width: 0;
}

.record-row strong,
.admin-activity-row strong {
  display: block;
  overflow: hidden;
  color: #20382e;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-row span,
.admin-activity-row span {
  display: block;
  overflow: hidden;
  color: #64756c;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-row b,
.admin-activity-row b {
  color: #111814;
  font-size: 14px;
}

.record-row b.positive,
.admin-activity-row b.positive {
  color: #16774c;
}

.record-row b.negative,
.admin-activity-row b.negative {
  color: #c01048;
}

.record-row em,
.admin-activity-row em {
  padding: 4px 8px;
  color: #0b7448;
  background: #eaf8f0;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.record-empty {
  padding: 14px;
  color: #64756c;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.empty-panel {
  grid-column: 1 / -1;
  padding: 24px;
  color: #64756c;
  font-weight: 800;
}

.admin-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  color: #12231a;
}

.admin-sidebar {
  padding: 22px;
  background: #fff;
  border-right: 1px solid #e1e9e4;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.admin-sidebar nav a {
  padding: 10px 12px;
  color: #20382e;
  background: #f4fbf7;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 850;
}

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

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-login-panel {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 24px;
}

.admin-login-panel[hidden],
#adminContent[hidden] {
  display: none;
}

.admin-login-panel h2,
.admin-panel h2 {
  color: #111814;
  font-size: 22px;
  font-weight: 950;
}

.admin-login-panel input {
  height: 44px;
  padding: 0 14px;
  color: #13231b;
  background: #f7fbf8;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  outline: 0;
}

.admin-login-panel p {
  min-height: 18px;
  color: #c01048;
  font-size: 13px;
  font-weight: 800;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats div {
  padding: 18px;
}

.admin-stats span {
  color: #64756c;
  font-size: 13px;
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: #111814;
  font-size: 28px;
  font-weight: 950;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #edf2ef;
}

.admin-panel-head span {
  color: #64756c;
  font-size: 13px;
  font-weight: 800;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #edf2ef;
  white-space: nowrap;
}

.admin-table th {
  color: #64756c;
  background: #f8fbf9;
  font-size: 12px;
  font-weight: 950;
}

.admin-table td {
  color: #20382e;
  font-size: 14px;
  font-weight: 750;
}

.admin-table td:last-child {
  display: flex;
  gap: 8px;
}

.admin-route {
  background:
    radial-gradient(circle at 24% 0%, rgba(104, 184, 142, 0.12), transparent 34%),
    #f5faf7;
}

.admin-page {
  grid-template-columns: 268px minmax(0, 1fr);
}

.admin-page:not(.admin-authenticated) {
  display: block;
}

.admin-page:not(.admin-authenticated) .admin-sidebar,
.admin-page:not(.admin-authenticated) .admin-header {
  display: none;
}

.admin-page:not(.admin-authenticated) .admin-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  color: #dfeee7;
  background: #101814;
  border-right: 0;
}

.admin-brand {
  color: #fff;
}

.admin-sidebar .brand-icon {
  background: linear-gradient(135deg, #7c3cff, #68b88e);
}

.admin-sidebar-label {
  margin: 26px 8px 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.admin-sidebar nav {
  gap: 10px;
  margin-top: 0;
}

.admin-sidebar nav a {
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  color: #fff;
  background: rgba(104, 184, 142, 0.16);
  border-color: rgba(104, 184, 142, 0.2);
}

.admin-sidebar nav a span {
  font-size: 14px;
  font-weight: 950;
}

.admin-sidebar nav a small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 750;
}

.admin-sidebar-note {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding: 16px;
  background: rgba(104, 184, 142, 0.12);
  border: 1px solid rgba(104, 184, 142, 0.18);
  border-radius: 16px;
}

.admin-sidebar-note strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.admin-sidebar-note p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.admin-main {
  padding: 32px;
}

.admin-header {
  align-items: flex-start;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin-top: 6px;
  font-size: 34px;
}

.admin-header p {
  margin-top: 8px;
  color: #64756c;
  font-size: 14px;
  font-weight: 750;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-header button,
.admin-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  color: #10281c;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
}

.admin-ghost-button {
  color: #20382e;
  background: #fff;
  border-color: #dfe9e4;
}

.admin-command-center {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(104, 184, 142, 0.2), transparent 48%),
    #101814;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(16, 24, 20, 0.18);
}

.admin-command-center span {
  color: #68b88e;
  font-size: 13px;
  font-weight: 950;
}

.admin-command-center h2 {
  margin-top: 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.2;
}

.admin-command-center p {
  max-width: 720px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 750;
}

.admin-stats {
  gap: 16px;
}

.admin-stats div {
  position: relative;
  min-height: 126px;
  padding: 20px;
  overflow: hidden;
}

.admin-stats div::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 86px;
  height: 86px;
  background: rgba(104, 184, 142, 0.14);
  border-radius: 50%;
}

.admin-stats span {
  color: #2f7d52;
  font-weight: 950;
}

.admin-stats strong {
  font-size: 34px;
}

.admin-stats small {
  display: block;
  margin-top: 8px;
  color: #64756c;
  font-size: 12px;
  font-weight: 800;
}

.admin-panel {
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(45, 92, 66, 0.07);
}

.admin-panel-head {
  align-items: center;
}

.admin-panel-head h2 {
  font-size: 20px;
}

.admin-table-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-table-tools input,
.admin-table-tools select {
  height: 38px;
  min-width: 160px;
  padding: 0 12px;
  color: #20382e;
  background: #f8fbf9;
  border: 1px solid #dfe9e4;
  border-radius: 12px;
  outline: 0;
  font-size: 13px;
  font-weight: 850;
}

.admin-table th {
  background: #f4fbf7;
}

.admin-table td {
  height: 72px;
  vertical-align: middle;
}

.admin-id-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  color: #64756c;
  background: #f4fbf7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.admin-user-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.admin-user-cell > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #101814;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 950;
}

.admin-user-cell strong,
.admin-user-cell small {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-cell strong {
  color: #111814;
  font-size: 14px;
  font-weight: 950;
}

.admin-user-cell small {
  color: #64756c;
  font-size: 12px;
  font-weight: 750;
}

.admin-credit-value {
  color: #111814;
  font-size: 15px;
  font-weight: 950;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.admin-status-pill.member {
  color: #0b7448;
  background: #eaf8f0;
}

.admin-status-pill.admin {
  color: #10281c;
  background: var(--primary);
}

.admin-status-pill.normal {
  color: #64756c;
  background: #f2f5f3;
}

.admin-status-pill.danger {
  color: #c2412d;
  background: #fff1ec;
}

.admin-users-table th:last-child,
.admin-users-table td:last-child {
  min-width: 340px;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  min-width: 240px;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
  min-width: 96px;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4),
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
  min-width: 82px;
}

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

.admin-table button {
  height: 34px;
  padding: 0 12px;
  color: #0f2418;
  background: #eaf8f0;
  border: 1px solid rgba(104, 184, 142, 0.42);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 950;
}

.admin-table button.primary {
  background: var(--primary);
  border-color: var(--primary);
}

.admin-table button.danger {
  color: #c2412d;
  background: #fff7f3;
  border-color: #ffd3c6;
}

.admin-table button.danger:hover {
  color: #fff;
  background: #d44b35;
  border-color: #d44b35;
}

.admin-activity-row b.neutral {
  color: #64756c;
}

.admin-table button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.admin-activity-grid {
  margin-top: 18px;
}

.admin-activity-grid > .admin-panel:only-child {
  grid-column: 1 / -1;
}

.admin-activity-row {
  min-height: 62px;
  background: #fff;
}

.admin-section-panel[hidden] {
  display: none;
}

.admin-interface-hero {
  background:
    linear-gradient(135deg, rgba(124, 60, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(104, 184, 142, 0.22), transparent 56%),
    #101814;
}

.admin-credit-hero {
  background:
    linear-gradient(135deg, rgba(104, 184, 142, 0.22), transparent 48%),
    linear-gradient(135deg, rgba(16, 24, 20, 0.92), rgba(16, 24, 20, 0.98)),
    #101814;
}

.admin-credit-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-credit-overview div {
  min-height: 128px;
  padding: 20px;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(45, 92, 66, 0.07);
}

.admin-credit-overview span {
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.admin-credit-overview strong {
  display: block;
  margin-top: 10px;
  color: #111814;
  font-size: 32px;
  font-weight: 950;
}

.admin-credit-overview strong.positive {
  color: #16774c;
}

.admin-credit-overview strong.negative {
  color: #c01048;
}

.admin-credit-overview small {
  display: block;
  margin-top: 10px;
  color: #64756c;
  font-size: 12px;
  font-weight: 800;
}

.admin-credit-tools input[type="date"] {
  min-width: 138px;
}

.admin-filter-reset {
  height: 38px;
  padding: 0 14px;
  color: #20382e;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
}

.admin-credit-ledger-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.admin-credit-ledger-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #edf2ef;
  border-radius: 16px;
}

.admin-credit-ledger-row:hover {
  border-color: rgba(104, 184, 142, 0.42);
  box-shadow: 0 14px 34px rgba(45, 92, 66, 0.08);
}

.admin-credit-ledger-sign {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #64756c;
  background: #f2f5f3;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 950;
}

.admin-credit-ledger-row.consume .admin-credit-ledger-sign {
  color: #c01048;
  background: #fff1f4;
}

.admin-credit-ledger-row.income .admin-credit-ledger-sign,
.admin-credit-ledger-row.manual .admin-credit-ledger-sign,
.admin-credit-ledger-row.refund .admin-credit-ledger-sign {
  color: #16774c;
  background: #eaf8f0;
}

.admin-credit-ledger-main {
  min-width: 0;
}

.admin-credit-ledger-main strong {
  display: block;
  overflow: hidden;
  color: #14281e;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-credit-ledger-main span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #64756c;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-credit-ledger-main small {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  color: #2f7d52;
  background: #eef8f2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-credit-ledger-row em {
  padding: 6px 10px;
  color: #64756c;
  background: #f2f5f3;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.admin-credit-ledger-row.consume em {
  color: #c01048;
  background: #fff1f4;
}

.admin-credit-ledger-row.income em,
.admin-credit-ledger-row.manual em,
.admin-credit-ledger-row.refund em {
  color: #16774c;
  background: #eaf8f0;
}

.admin-credit-ledger-row time {
  color: #64756c;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.admin-credit-ledger-row b {
  min-width: 86px;
  color: #64756c;
  font-size: 18px;
  font-weight: 950;
  text-align: right;
}

.admin-credit-ledger-row.consume b {
  color: #c01048;
}

.admin-credit-ledger-row.income b,
.admin-credit-ledger-row.manual b,
.admin-credit-ledger-row.refund b {
  color: #16774c;
}

.admin-interface-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-interface-card {
  min-height: 150px;
  padding: 22px;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(45, 92, 66, 0.07);
}

.admin-interface-card.primary {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(104, 184, 142, 0.2), transparent 52%),
    #101814;
  border-color: transparent;
}

.admin-interface-card span {
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.admin-interface-card.primary span {
  color: #68b88e;
}

.admin-interface-card strong {
  display: block;
  margin-top: 14px;
  color: #111814;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.1;
}

.admin-interface-card.primary strong {
  color: #fff;
}

.admin-interface-card p {
  margin-top: 12px;
  color: #64756c;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.6;
}

.admin-interface-card.primary p {
  color: rgba(255, 255, 255, 0.66);
}

.admin-interface-table code {
  display: inline-block;
  max-width: 300px;
  overflow: hidden;
  color: #20382e;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-cost-panel {
  margin-top: 18px;
}

.admin-cost-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.admin-cost-grid div {
  min-height: 116px;
  padding: 18px;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 14px;
}

.admin-cost-grid span,
.admin-cost-grid small {
  display: block;
  color: #64756c;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.admin-cost-grid strong {
  display: block;
  margin: 12px 0 8px;
  color: #111814;
  font-size: 22px;
  font-weight: 950;
}

.admin-login-panel {
  width: min(440px, 100%);
  margin: 80px auto 0;
  padding: 28px;
}

.admin-login-panel > span {
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.admin-login-tip {
  min-height: 0;
  color: #64756c !important;
  font-size: 13px !important;
  line-height: 1.55;
}

.home-section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.case-waterfall-section,
.more-tools-section,
.home-final-section {
  padding: 92px 0;
}

.case-waterfall-section {
  background: #f5faf7;
}

.more-tools-section {
  background: #fff;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.center-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 10px;
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.section-heading h2 {
  color: #111814;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.2;
}

.section-heading p {
  margin-top: 12px;
  color: #64756c;
  font-size: 15px;
  line-height: 1.8;
}

.case-waterfall-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.case-card,
.tool-card {
  position: relative;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(104, 184, 142, 0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}

.case-card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(104, 184, 142, 0.16);
}

.case-card-featured {
  grid-row: span 2;
}

.case-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf7f1;
}

.case-card-featured .case-image {
  aspect-ratio: 4 / 5;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pair-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.pair-image div {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.pair-image span,
.slider-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(17, 24, 20, 0.66);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pair-image div + div span,
.slider-label.right {
  right: 10px;
  left: auto;
}

.slider-image i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.case-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 10px;
  color: #102016;
  background: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.case-body {
  padding: 22px;
}

.case-body h3,
.tool-card h3 {
  color: #111814;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
}

.case-body p,
.tool-card p {
  margin-top: 9px;
  color: #64756c;
  font-size: 14px;
  line-height: 1.7;
}

.case-flow {
  gap: 8px;
  margin-top: 16px;
  color: #718278;
  font-size: 13px;
  font-weight: 800;
}

.case-flow strong {
  color: #2f7d52;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 156px;
  padding: 18px;
}

.tool-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.tool-card > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #2f7d52;
  background: #f0fbf5;
  border-radius: 999px;
  font-weight: 900;
}

.canvas-flow-section {
  padding: 96px 0;
  color: #fff;
  background: #102018;
}

.canvas-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 44px;
}

.canvas-ui-preview {
  overflow: hidden;
  background: #f4fbf7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.canvas-shot-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 14px;
  color: #17392b;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e3eee8;
}

.canvas-shot-brand {
  font-size: 20px;
  font-weight: 950;
}

.canvas-shot-brand i {
  margin-left: 6px;
  padding: 2px 5px;
  color: #10a464;
  background: #ecfdf4;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
}

.canvas-shot-project {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.canvas-shot-top button {
  width: 34px;
  height: 34px;
  background: #e8f8ef;
  border-radius: 8px;
  font-size: 20px;
}

.canvas-shot-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 420px;
}

.canvas-shot-sidebar {
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid #e3eee8;
}

.canvas-shot-sidebar-title {
  color: #17392b;
  font-weight: 950;
}

.canvas-shot-helper {
  margin-top: 20px;
  padding: 14px;
  color: #17392b;
  background: #fff;
  border: 1px solid #e3eee8;
  border-radius: 16px;
  text-align: center;
}

.canvas-shot-helper img {
  width: 74px;
  height: 74px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.canvas-shot-helper p {
  margin-top: 6px;
  color: #718278;
  font-size: 12px;
  line-height: 1.55;
}

.canvas-shot-input {
  margin-top: 14px;
  padding: 12px;
  color: #72877e;
  background: #f8fcfa;
  border: 1px solid #e3eee8;
  border-radius: 12px;
  font-size: 12px;
}

.canvas-shot-board {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: radial-gradient(circle at 48% 42%, rgba(104, 184, 142, 0.24), transparent 28%), #eef7f2;
}

.canvas-shot-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(47, 125, 82, 0.45);
}

.canvas-shot-links path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-dasharray: 9 9;
}

.canvas-asset {
  position: absolute;
  z-index: 2;
  width: 138px;
  height: 104px;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(18, 66, 42, 0.18);
}

.asset-1 { top: 44px; left: 46px; }
.asset-2 { top: 104px; left: 300px; }
.asset-3 { right: 42px; top: 176px; }
.asset-4 { left: 76px; bottom: 46px; }
.asset-5 { right: 166px; bottom: 58px; }

.canvas-flow-copy .section-heading,
.canvas-flow-copy {
  color: #fff;
}

.canvas-flow-copy h2 {
  color: #fff;
}

.canvas-flow-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.canvas-step-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.canvas-step-list div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.canvas-step-list strong {
  color: #8bd2aa;
}

.canvas-step-list p {
  margin-top: 4px;
  font-size: 13px;
}

.primary-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  color: #102016;
  background: var(--primary);
  border-radius: 999px;
  font-weight: 950;
}

.home-final-section {
  background:
    linear-gradient(180deg, rgba(237, 248, 242, 0.95), rgba(255, 255, 255, 0.98)),
    url("./images/features-bg.png") center/cover no-repeat;
}

.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 34px;
}

.final-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.final-action-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  color: #13231b;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(104, 184, 142, 0.1);
}

.final-action-card.dark {
  color: #fff;
  background: #111814;
}

.final-action-card strong {
  align-self: end;
  font-size: 18px;
  font-weight: 950;
}

.final-action-card span {
  color: #718278;
  font-size: 13px;
  font-weight: 800;
}

.final-action-card.dark span {
  color: rgba(255, 255, 255, 0.66);
}

.home-footer {
  background: #101814;
  color: rgba(255, 255, 255, 0.72);
}

.footer-content {
  display: grid;
  gap: 18px;
  width: min(1416px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 38px;
}

.footer-brand span {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.footer-brand p,
.footer-copyright,
.footer-records {
  margin-top: 4px;
  font-size: 13px;
}

.footer-links,
.footer-records {
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}

.footer-brand p,
.footer-links a,
.footer-copyright,
.footer-records a,
.footer-records span {
  color: rgba(255, 255, 255, 0.58);
}

.mobile-nav {
  display: none;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.62);
  backdrop-filter: blur(3px);
}

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

.login-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #667085;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 22px;
}

.login-dialog h2 {
  margin-bottom: 16px;
  color: #1a1a1a;
  font-size: 22px;
}

.login-dialog label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #23362b;
  font-size: 13px;
  font-weight: 900;
}

.login-dialog input {
  height: 44px;
  padding: 0 12px;
  color: #111814;
  background: #f8fcfa;
  border: 1px solid #dbe9e2;
  border-radius: 12px;
  outline: none;
}

.login-message {
  margin-bottom: 12px;
  color: #c01048;
  font-size: 13px;
  font-weight: 800;
}

.solid-button.full {
  width: 100%;
}

.login-dialog p {
  margin-top: 12px;
  color: #718278;
  font-size: 13px;
  text-align: center;
}

.login-dialog p button {
  color: #2f7d52;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .desktop-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

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

  .case-waterfall-grid,
  .tool-card-grid,
  .final-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card-featured {
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .membership-grid,
  .member-overview,
  .member-records,
  .admin-stats,
  .admin-credit-overview,
  .admin-activity-grid,
  .admin-interface-grid,
  .admin-cost-grid {
    grid-template-columns: 1fr;
  }

  .membership-card {
    min-height: auto;
  }

  .member-login-form {
    grid-template-columns: 1fr;
  }

  .credit-records-modal {
    align-items: center;
    padding: 16px;
    overflow: auto;
  }

  .credit-records-dialog {
    max-height: calc(100vh - 32px);
  }

  .credit-records-filter {
    grid-template-columns: 1fr;
  }

  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e1e9e4;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
  }

  .admin-credit-ledger-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .admin-credit-ledger-row time {
    grid-column: 2 / 3;
  }

  .admin-credit-ledger-row b {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .canvas-route {
    overflow: auto;
  }

  .canvas-page {
    height: auto;
    min-height: 100vh;
  }

  .canvas-topbar {
    grid-template-columns: auto auto;
  }

  .canvas-project-pill {
    display: none;
  }

  .canvas-shell {
    display: flex;
    height: auto;
    min-height: calc(100vh - 58px);
    flex-direction: column;
  }

  .canvas-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dfe8e2;
  }

  .canvas-board {
    min-height: 560px;
  }

  .prompt-node {
    top: 52px;
    left: 22px;
    width: min(230px, calc(100% - 44px));
  }

  .canvas-reference-nodes .reference-node {
    top: 220px;
    left: 48px;
  }

  .canvas-result-node {
    top: 330px;
    right: 22px;
    left: 22px;
    width: auto;
  }

  .canvas-bottom-dock {
    right: 18px;
    left: 18px;
    justify-content: center;
    transform: none;
  }

  .canvas-zoom-dock {
    display: none;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .hero-section {
    min-height: calc(100vh - 60px);
    padding: 74px 18px 54px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .composer-footer {
    display: grid;
  }

  .composer-tools {
    display: grid;
    grid-template-columns: 42px 1fr 1fr;
  }

  .model-select-tool {
    grid-column: span 2;
  }

  .generate-button {
    justify-content: center;
    width: 100%;
  }

  .generation-result-head,
  .image-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .generation-soft-button,
  .image-preview-actions a,
  .image-preview-actions button {
    width: 100%;
  }

  .generation-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
    justify-content: center;
  }

  .generation-card {
    max-width: 180px;
  }

  .generation-card img {
    max-height: 280px;
  }

  .generation-card-actions {
    grid-template-columns: 1fr;
  }

  .album-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .album-card {
    width: auto;
  }

  .album-card-actions {
    grid-template-columns: 1fr;
  }

  .case-waterfall-grid,
  .tool-card-grid,
  .canvas-flow-layout,
  .final-layout,
  .final-actions {
    grid-template-columns: 1fr;
  }

  .tool-card {
    grid-template-columns: 104px minmax(0, 1fr) auto;
  }

  .tool-card img {
    width: 104px;
    height: 104px;
  }

  .canvas-shot-body {
    grid-template-columns: 1fr;
  }

  .canvas-shot-sidebar {
    display: none;
  }

}

@media (max-width: 560px) {
  .simple-topbar,
  .admin-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .membership-hero,
  .member-layout {
    width: calc(100% - 32px);
  }

  .member-section,
  .member-record-panel,
  .member-login-panel {
    padding: 18px;
  }

  .pricing-section {
    padding: 0;
  }

  .membership-card {
    padding: 30px 24px 24px;
  }

  .membership-card strong {
    font-size: 42px;
  }

  .membership-card li {
    font-size: 16px;
  }

  .member-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .record-row,
  .admin-activity-row,
  .admin-credit-ledger-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .admin-credit-ledger-row time,
  .admin-credit-ledger-row b {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-credit-ledger-row b {
    text-align: left;
  }

  .member-menu-panel {
    right: auto;
    left: 50%;
    width: min(232px, calc(100vw - 32px));
    transform: translateX(-50%);
  }

  .recharge-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .membership-hero h1,
  .admin-header h1 {
    font-size: 30px;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .canvas-topbar {
    height: 56px;
    padding: 0 14px;
  }

  .canvas-brand {
    font-size: 16px;
  }

  .canvas-back-home {
    padding: 0 10px;
  }

  .canvas-helper {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .canvas-helper img {
    width: 48px;
    height: 48px;
  }

  .canvas-composer {
    display: grid;
  }

  .canvas-composer textarea,
  .canvas-composer button {
    width: 100%;
  }

  .canvas-bottom-dock {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .site-header {
    height: 56px;
    padding: 0 16px;
  }

  body.modal-open .site-header {
    padding-right: calc(16px + var(--modal-scrollbar-compensation, 0px));
  }

  .page-home {
    padding-top: 56px;
  }

  .hero-section {
    min-height: calc(100vh - 56px);
  }

  .brand {
    font-size: 17px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-badge {
    margin-bottom: 18px;
  }

  .home-composer {
    padding: 14px;
    border-radius: 18px;
  }

  .composer-header {
    align-items: flex-start;
  }

  .composer-upload span {
    display: none;
  }

  .home-composer textarea {
    min-height: 132px;
    font-size: 15px;
  }

  .home-section-inner {
    width: calc(100% - 36px);
  }

  .case-waterfall-section,
  .more-tools-section,
  .canvas-flow-section,
  .home-final-section {
    padding: 58px 0;
  }

  .section-heading h2 {
    font-size: 28px;
  }
}

/* Homepage album uses a capped 4-column grid: 216px cards plus 14px gaps. */
.home-composer .generation-results .album-panel,
.home-composer .generation-results .generation-result-panel {
  overflow: hidden;
}

.home-composer .generation-results .album-grid,
.home-composer .generation-results .generation-grid,
.generation-results .album-grid,
.generation-results .generation-grid {
  display: grid !important;
  width: 100% !important;
  max-width: 906px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: start !important;
  justify-content: start !important;
}

.home-composer .generation-results .album-card,
.home-composer .generation-results .generation-card,
.home-composer .generation-results .generation-skeleton,
.generation-results .album-card,
.generation-results .generation-card,
.generation-results .generation-skeleton {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

.home-composer .generation-results .album-thumb-frame,
.home-composer .generation-results .generation-skeleton div,
.generation-results .album-thumb-frame,
.generation-results .generation-skeleton div {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
}

.home-composer .generation-results .album-thumb-frame img,
.generation-results .album-thumb-frame img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

.home-composer .generation-results .generation-card img,
.generation-results .generation-card img {
  width: 100% !important;
  height: 160px !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

.home-composer .generation-results .album-card[data-ratio="9-16"] .album-thumb-frame,
.generation-results .album-card[data-ratio="9-16"] .album-thumb-frame {
  aspect-ratio: 9 / 16 !important;
}

.home-composer .generation-results .album-card[data-ratio="3-4"] .album-thumb-frame,
.generation-results .album-card[data-ratio="3-4"] .album-thumb-frame {
  aspect-ratio: 3 / 4 !important;
}

.home-composer .generation-results .album-card[data-ratio="16-9"] .album-thumb-frame,
.generation-results .album-card[data-ratio="16-9"] .album-thumb-frame {
  aspect-ratio: 16 / 9 !important;
}

.home-composer .generation-results .album-card[data-ratio="4-3"] .album-thumb-frame,
.generation-results .album-card[data-ratio="4-3"] .album-thumb-frame {
  aspect-ratio: 4 / 3 !important;
}

@media (max-width: 700px) {
  .home-composer .generation-results .album-grid,
  .home-composer .generation-results .generation-grid,
  .generation-results .album-grid,
  .generation-results .generation-grid {
    max-width: 446px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-composer .generation-results .album-thumb-frame,
  .home-composer .generation-results .generation-skeleton div,
  .generation-results .album-thumb-frame,
  .generation-results .generation-skeleton div {
    height: auto !important;
  }

  .home-composer .generation-results .generation-card img,
  .generation-results .generation-card img {
    height: 132px !important;
  }

}

@media (min-width: 701px) and (max-width: 980px) {
  .home-composer .generation-results .album-grid,
  .home-composer .generation-results .generation-grid,
  .generation-results .album-grid,
  .generation-results .generation-grid {
    max-width: 676px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
