:root {
  --text: #192520;
  --muted: #627068;
  --panel: rgba(255, 255, 255, 0.76);
  --line: rgba(31, 53, 45, 0.1);
  --shadow: 0 18px 45px rgba(59, 93, 84, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #effaf5;
  font-size: 14px;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.page {
  min-height: 100vh;
  padding: 0 8vw 64px;
  position: relative;
  overflow-x: hidden;
}

.page.gpt {
  background:
    radial-gradient(circle at 82% 13%, rgba(83, 202, 169, 0.38), transparent 26rem),
    radial-gradient(circle at 12% 28%, rgba(202, 255, 231, 0.8), transparent 30rem),
    linear-gradient(180deg, #eefcf6 0%, #f6fffb 54%, #edfbf6 100%);
}

.page.claude {
  background:
    radial-gradient(circle at 78% 10%, rgba(219, 139, 94, 0.22), transparent 25rem),
    radial-gradient(circle at 8% 20%, rgba(255, 236, 210, 0.66), transparent 28rem),
    linear-gradient(180deg, #fff2e8 0%, #fff9f3 55%, #fff4e7 100%);
  color: #49362d;
}

.page.grok {
  color: #f7fbff;
  background:
    radial-gradient(circle at 66% 14%, rgba(39, 137, 220, 0.36), transparent 18rem),
    radial-gradient(circle at 34% 12%, rgba(94, 69, 148, 0.25), transparent 18rem),
    #030406;
}

.page.grok {
  padding-top: 0;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin-bottom: 34px;
  position: sticky;
  top: 14px;
  z-index: 10;
}

.switcher {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(37, 54, 47, 0.1);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(32, 52, 46, 0.18);
  backdrop-filter: blur(14px);
}

.switch-item {
  min-width: 120px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #172620;
  text-decoration: none;
  border-radius: 19px;
  font-size: 13px;
  font-weight: 740;
  white-space: nowrap;
}

.switch-item.active {
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.gpt .switch-item.active {
  background: linear-gradient(135deg, #50b79b, #2f9b82);
}

.claude .switch-item.active {
  background: linear-gradient(135deg, #d57d53, #b9472f);
}

.grok .switch-item.active {
  background: linear-gradient(135deg, #171717, #030303);
}

.language {
  position: absolute;
  right: 0;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(31, 46, 40, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.88);
  color: #2c332f;
  box-shadow: 0 10px 25px rgba(31, 46, 40, 0.1);
  cursor: pointer;
  font-size: 14px;
}

.language-menu {
  position: absolute;
  right: 0;
  top: 46px;
  width: 158px;
  padding: 8px;
  border: 1px solid rgba(31, 46, 40, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(31, 46, 40, 0.16);
  backdrop-filter: blur(14px);
  max-height: 268px;
  overflow: auto;
}

.language-menu button {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #2c332f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.language-menu .selected,
.language-menu button:hover {
  background: rgba(56, 160, 132, 0.12);
}

.language img {
  width: 20px;
  height: 13px;
}

.lang-flag {
  font-size: 18px;
  line-height: 1;
}

.chevron {
  color: #b3b8b5;
}

.mini-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 900;
}

.mini-icon.gpt {
  color: #11876f;
}

.mini-icon.claude {
  color: #c1603f;
}

.mini-icon.grok {
  color: #fff;
  background: #050505;
}

.hero {
  max-width: 1080px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gpt-hero {
  min-height: 368px;
  border-radius: 28px;
  padding: 58px 64px 46px;
  background:
    radial-gradient(circle at 85% 20%, rgba(53, 174, 142, 0.26), transparent 18rem),
    linear-gradient(105deg, rgba(255, 255, 255, 0.92), rgba(216, 250, 235, 0.74));
}

.gpt .stats {
  margin-top: 6px;
}

.claude-hero {
  max-width: 1044px;
  height: 618px;
  min-height: 618px;
  margin-top: 5px;
  padding: 44px 42px 32px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 83% 18%, rgba(209, 125, 83, 0.18), transparent 18rem),
    linear-gradient(105deg, rgba(255, 250, 246, 0.92), rgba(255, 239, 229, 0.75));
}

.grok-hero {
  max-width: 725px;
  height: 308px;
  min-height: 308px;
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 28px;
  margin-top: 0;
  padding: 38px 36px 32px;
  border-radius: 22px;
  border-color: rgba(78, 105, 132, 0.3);
  background:
    radial-gradient(circle at 78% 28%, rgba(57, 156, 234, 0.26), transparent 16rem),
    linear-gradient(115deg, rgba(17, 18, 23, 0.94), rgba(8, 12, 18, 0.88));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 28px;
  font-size: 34px;
  line-height: 1.08;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  color: #17372f;
  position: relative;
}

.gpt h1 span {
  color: #239679;
}

.claude h1 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #3f2419;
  font-size: 36px;
  font-weight: 880;
}

.claude h1 span {
  color: #b75d35;
}

.gpt h1::after,
.claude h1::after,
.grok h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 58px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}

.grok h1 {
  font-family: inherit;
  font-size: 36px;
  color: #f7fbff;
  font-weight: 950;
  margin-bottom: 20px;
}

.grok h1::after {
  background: #5e83ff;
  width: 90px;
}

.grok .hero-copy {
  display: contents;
}

.grok .hero-copy h1,
.grok .hero-copy p {
  grid-column: 2;
}

.grok .hero-copy .stats {
  grid-column: 1 / -1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 640;
}

.grok .hero p,
.grok .hint,
.grok .stat-label {
  color: #87919e;
}

.notice {
  width: min(520px, 100%);
  margin: 18px 0 10px 215px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(69, 173, 139, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  color: #275347;
  font-size: 13px;
}

.stats,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.stat,
.pill-row span {
  min-width: 148px;
  min-height: 65px;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(23, 47, 40, 0.08);
}

.stat-icon {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #4fc1a3, #159077);
  color: #fff;
}

.claude .stat-icon {
  background: linear-gradient(135deg, #dc9c72, #bc6548);
}

.grok .stat,
.grok .pill-row span {
  min-width: 128px;
  min-height: 64px;
  padding: 8px 13px;
  border-color: rgba(109, 144, 177, 0.18);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.grok .stat-icon {
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: linear-gradient(135deg, #58bbff, #1e6fb7);
}

.grok .stats {
  gap: 13px;
}

.grok .stat-value {
  font-size: 17px;
  font-weight: 880;
}

.grok .stat-label {
  font-size: 11px;
  font-weight: 650;
}

.stat-value {
  font-weight: 900;
  font-size: 17px;
}

.stat-label {
  color: #5f7068;
  font-size: 11px;
  font-weight: 700;
}

.two-col {
  max-width: 1080px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 24px;
}

.single-col {
  max-width: 610px;
  margin: -190px auto 30px;
  position: relative;
  z-index: 2;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.guide {
  padding: 26px;
}

h2 {
  margin: 0 0 24px;
  padding-left: 14px;
  border-left: 4px solid #3ba88e;
  font-size: 18px;
}

.guide-card {
  display: flex;
  gap: 18px;
  padding: 19px 18px;
  margin-top: 16px;
  border: 1px solid rgba(35, 56, 49, 0.08);
  border-left: 4px solid #4aa58e;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.guide-card:nth-of-type(1) {
  border-left-color: #3d78ff;
}

.guide-card.warn {
  border-left-color: #dfb13f;
}

.guide-card.danger {
  border-left-color: #e55a62;
}

.guide-num,
.field-label span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9fff7;
  color: #47a98c;
  border: 1px solid #b9eadb;
  font-weight: 800;
}

.guide-card h3 {
  margin: 1px 0 9px;
  font-size: 16px;
}

.guide-card p,
.hint,
.query-bar p,
.footer p,
.benefit-box span {
  margin: 0;
  color: #67756d;
  line-height: 1.6;
}

.soft-link {
  display: inline-flex;
  justify-content: center;
  min-width: 120px;
  margin-top: 11px;
  padding: 9px 18px;
  border-radius: 8px;
  background: #dafcef;
  color: #23836d;
  text-decoration: none;
  font-weight: 740;
  font-size: 13px;
}

.form-panel {
  padding: 32px 24px;
}

.redeem-card {
  padding: 14px;
  border: 1px solid #d7d9ee;
  border-radius: 10px;
  background: linear-gradient(180deg, #f1f4ff, #f9f9ff);
}

.claude .redeem-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(197, 107, 73, 0.13);
}

.grok .redeem-card {
  padding: 0;
  border: none;
  background: transparent;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 6px;
  margin-bottom: 16px;
  border: 1px solid #ced4f1;
  border-radius: 10px;
  background: #e9edfb;
}

.tab {
  height: 48px;
  border: none;
  border-radius: 7px;
  color: #4f5876;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 12px;
  text-align: center;
  line-height: 1.15;
}

.tab span {
  font-weight: 850;
}

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, #4d78ff, #714fe2);
  box-shadow: 0 8px 18px rgba(75, 106, 224, 0.36);
}

.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 9px;
  color: #48536a;
  font-size: 13px;
  font-weight: 780;
}

.field-label span {
  width: 22px;
  height: 22px;
  color: #fff;
  background: linear-gradient(135deg, #587aff, #6c50dc);
  border: none;
  font-size: 13px;
}

.field-label em,
h2 em {
  margin-left: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(77, 190, 155, 0.16);
  color: #21816b;
  font-style: normal;
  font-size: 11px;
}

.field {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid rgba(64, 74, 90, 0.1);
  border-radius: 8px;
  color: #25302b;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  resize: vertical;
  font-size: 13px;
}

.claude-form .field {
  min-height: 40px;
  padding: 10px 14px;
  width: calc(100% - 24px);
  margin-left: 12px;
}

.claude-form .hint {
  margin-top: 2px;
}

.claude-form .primary-action {
  height: 53px;
  margin-top: 35px;
}

.grok .field {
  background: #010101;
  border-color: rgba(76, 91, 108, 0.28);
  color: #fff;
}

.account-box {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(208, 150, 91, 0.32);
  border-radius: 9px;
  background: #fff8ed;
  color: #684522;
  font-size: 13px;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 8px;
  margin: 10px 0;
}

.apply-account {
  border: none;
  border-radius: 8px;
  color: #fff;
  background: #e19b3a;
  font-weight: 850;
  cursor: pointer;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(31, 45, 60, 0.08);
}

.hint {
  margin-top: 14px;
  font-size: 13px;
}

.hint a {
  color: #3279c2;
  text-decoration: none;
}

.primary-action,
.query-button,
.grok-tabs button {
  border: none;
  cursor: pointer;
  font-weight: 900;
}

.primary-action {
  width: 100%;
  height: 54px;
  margin-top: 18px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #4f78ef, #2c9c7e);
  box-shadow: 0 10px 24px rgba(44, 130, 109, 0.24);
  font-size: 14px;
}

.primary-action:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.65);
  background: #c4cbdb;
  box-shadow: none;
}

.query-bar {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(74, 95, 88, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 34px rgba(55, 92, 82, 0.12);
}

.query-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.query-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  font-size: 24px;
  font-weight: 900;
}

.query-copy strong {
  display: block;
  color: #17302b;
  font-size: 15px;
  font-weight: 900;
}

.query-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.query-button {
  min-width: 160px;
  height: 46px;
  padding: 0 22px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #4b7af2, #2f67d9);
  box-shadow: 0 10px 24px rgba(57, 105, 221, 0.28);
}

.query-button.green {
  background: linear-gradient(135deg, #3fb08f, #22876f);
}

.query-bar p {
  margin: 3px 0 0;
  text-align: left;
  font-size: 13px;
}

.query-panel .query-input {
  margin-bottom: 14px;
}

.query-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  color: #9aa4b1;
}

.query-clear {
  height: 32px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9edf4;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 24, 21, 0.44);
}

.modal {
  width: min(720px, 100%);
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  color: #222a27;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.modal-x {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #69706c;
  font-size: 24px;
  cursor: pointer;
}

.modal-textarea {
  min-height: 145px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.modal-submit,
.modal-cancel {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.modal-submit {
  color: #fff;
  background: #4b75ec;
  font-weight: 850;
}

.modal-cancel {
  color: #2f3835;
  background: #f5f5f5;
  border: 1px solid #e2e2e2;
}

.modal-result {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f3f6ff;
  color: #41536d;
}

.modal-result pre,
.form-result pre {
  max-height: 260px;
  margin: 8px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.5;
}

.result-title {
  font-weight: 850;
  color: #2c4d42;
}

.result-title.error {
  color: #a94436;
}

.cdk-list {
  display: grid;
  gap: 14px;
}

.cdk-card {
  overflow: hidden;
  border: 1px solid rgba(45, 64, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.cdk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cdk-table th,
.cdk-table td {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(45, 64, 80, 0.08);
  text-align: left;
  vertical-align: middle;
}

.cdk-table th {
  width: 118px;
  background: rgba(247, 248, 252, 0.82);
  color: #202a33;
  font-weight: 760;
}

.cdk-table td {
  color: #37424d;
  word-break: break-word;
}

.cdk-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.invoice-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-left: 8px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 820;
}

.invoice-pill {
  color: #fff;
  background: linear-gradient(135deg, #4a7cff, #2f63dc);
}

.status-badge {
  margin-left: 0;
}

.status-badge.success {
  color: #168452;
  background: #e9fbf0;
  border: 1px solid #a8e6bd;
}

.status-badge.info {
  color: #2d64b3;
  background: #edf4ff;
  border: 1px solid #b8d3ff;
}

.status-badge.warn {
  color: #9a6518;
  background: #fff7e7;
  border: 1px solid #f2d18f;
}

.status-badge.danger {
  color: #a94436;
  background: #fff0ef;
  border: 1px solid #f0bbb7;
}

.json-details {
  padding: 10px 13px 12px;
  background: #f1f5ff;
  color: #41536d;
}

.json-details summary {
  cursor: pointer;
  font-weight: 760;
}

.json-details pre {
  margin-top: 10px;
}

.pulse {
  transform: scale(0.98);
}

.feedback {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 5px 14px;
  padding: 16px 16px 16px 18px;
  border: 1px solid rgba(48, 75, 67, 0.12);
  border-left: 5px solid #3da88d;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #23352f;
  box-shadow: 0 22px 50px rgba(24, 48, 41, 0.2);
  backdrop-filter: blur(14px);
}

.feedback strong {
  font-size: 15px;
}

.feedback span {
  grid-column: 1;
  color: #64736c;
  line-height: 1.5;
  font-size: 13px;
}

.feedback button {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 45, 40, 0.08);
  cursor: pointer;
}

.feedback.warn {
  border-left-color: #e0a237;
}

.feedback.success {
  border-left-color: #3da88d;
}

.claude-info {
  margin: 28px 0 20px;
  display: grid;
  gap: 12px;
}

.claude-info article {
  padding: 15px 18px;
  border: 1px solid rgba(130, 87, 65, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(134, 90, 64, 0.06);
}

.claude-info p {
  margin-top: 10px;
  color: #7f7169;
  font-size: 14px;
}

.pill-row {
  margin-top: 14px;
}

.pill-row span {
  min-height: 45px;
  display: inline-flex;
  min-width: 112px;
  grid-template-columns: none;
  border-radius: 22px;
  color: #6d574b;
  font-weight: 850;
}

.claude-form {
  max-width: 1040px;
  margin: 0 auto 7px;
  padding: 0;
  border-color: rgba(195, 95, 58, 0.42);
  overflow: hidden;
}

.claude-form h2 {
  height: 60px;
  display: flex;
  align-items: center;
  margin: 0;
  padding-left: 38px;
  border-left-color: #cf7956;
  font-size: 17px;
}

.claude-plan-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 15px 0 9px;
  padding: 6px;
  border-top: 1px solid rgba(209, 130, 91, 0.16);
  border-bottom: 1px solid rgba(209, 130, 91, 0.16);
  background: rgba(244, 245, 252, 0.76);
}

.plan-tab {
  min-height: 45px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6d6470;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 820;
  font-size: 14px;
  cursor: pointer;
}

.plan-tab.active {
  color: #4f70cf;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(95, 116, 206, 0.26), 0 8px 18px rgba(92, 95, 122, 0.12);
}

.plan-tab em {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(69, 180, 140, 0.16);
  color: #208064;
  font-style: normal;
  font-size: 12px;
}

.claude-fields {
  display: grid;
  gap: 4px;
  padding: 0 28px 25px;
}

.field-label.plain {
  margin-top: 8px;
  margin-bottom: 6px;
  color: #5d463d;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.field-label.plain::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cd7856;
  box-shadow: 0 0 0 3px rgba(205, 120, 86, 0.12);
}

.field-label.plain span,
.field-label.plain em {
  display: none;
}

.benefit-box {
  margin-top: 4px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 246, 238, 0.82);
  font-size: 14px;
}

.form-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(68, 126, 236, 0.1);
  color: #456077;
  font-size: 13px;
  line-height: 1.55;
}

.claude-query {
  max-width: 1040px;
  width: 100%;
  min-height: 56px;
  display: block;
  margin: 7px auto 22px;
  border: 1px solid rgba(201, 130, 91, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  color: #2d2e30;
  text-align: left;
  padding: 0 18px;
  cursor: pointer;
}

.footer {
  text-align: center;
  margin-top: 32px;
  color: #7c6a60;
}

.grok-logo {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.grok-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grok-tabs {
  max-width: 725px;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 28px auto 16px;
  padding: 5px;
  border: 1px solid rgba(55, 132, 204, 0.28);
  border-radius: 12px;
  background: rgba(9, 13, 19, 0.78);
}

.grok .topbar {
  margin-bottom: -25px;
}

.claude .topbar {
  margin-bottom: 12px;
}

.grok-tabs button {
  border-radius: 8px;
  color: #9ca5af;
  background: transparent;
}

.grok-tabs .active {
  color: #fff;
  background: linear-gradient(135deg, #48a8ef, #2679bd);
}

.grok-panel,
.grok-guide {
  max-width: 725px;
  margin: 0 auto 20px;
  padding: 30px;
  border-color: rgba(72, 112, 149, 0.25);
  background: #181a1f;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.grok-panel h2,
.grok-guide h2 {
  border-left-color: #359ae5;
}

.grok-panel,
.grok-guide,
.grok-tabs button {
  font-size: 14px;
}

.grok-guide article {
  margin-top: 22px;
}

.grok-guide p {
  color: #9199a4;
  line-height: 1.75;
}

.floating-nav,
.lock {
  display: none;
}

@media (max-width: 900px) {
  .page {
    padding: 12px 18px 46px;
  }

  .topbar {
    justify-content: flex-start;
    margin-bottom: 18px;
    position: relative;
    top: auto;
    gap: 10px;
    flex-wrap: wrap;
  }

  .switcher {
    order: 2;
    width: 100%;
    overflow: auto;
    justify-content: flex-start;
  }

  .switch-item {
    min-width: 118px;
  }

  .language {
    position: static;
    margin-left: auto;
  }

  .language-menu {
    top: 42px;
    right: 0;
  }

  .gpt-hero,
  .claude-hero,
  .grok-hero {
    padding: 30px 24px;
    min-height: auto;
  }

  h1,
  .grok h1 {
    font-size: 30px;
  }

  .notice {
    margin-left: 0;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .single-col {
    margin: 18px auto 30px;
  }

  .grok-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    min-width: 0;
  }

  .inline-field {
    grid-template-columns: 1fr;
  }

  .apply-account {
    height: 42px;
  }

  .feedback {
    right: 18px;
    bottom: 18px;
  }

}

/* Final refresh overrides */
.page,
.page.gpt,
.page.claude,
.page.grok {
  padding: 18px clamp(18px, 4vw, 54px) 44px;
  color: #17211f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 249, 0.94)),
    radial-gradient(circle at 13% 0%, rgba(20, 184, 166, 0.08), transparent 24rem),
    radial-gradient(circle at 90% 6%, rgba(47, 128, 255, 0.07), transparent 22rem),
    #f7faf9;
}

.topbar {
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto 34px;
  padding: 0 12px 0 16px;
  justify-content: space-between;
  gap: 20px;
  top: 12px;
  border: 1px solid #e4ecec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 138px;
  color: #17211f;
  text-decoration: none;
  font-size: 20px;
  font-weight: 920;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  font-size: 15px;
  font-weight: 950;
  transform: skew(-10deg);
}

.switcher {
  flex: 1;
  justify-content: center;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.switch-item {
  min-width: auto;
  height: 44px;
  padding: 0 2px;
  border-radius: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 780;
  position: relative;
}

.switch-item::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 3px;
  border-radius: 99px;
  background: transparent;
}

.switch-item.active,
.gpt .switch-item.active,
.claude .switch-item.active,
.grok .switch-item.active {
  color: #0f766e;
  background: transparent;
  box-shadow: none;
}

.switch-item.active::after {
  background: #0f766e;
}

.mini-icon {
  display: none;
}

.top-actions {
  min-width: 140px;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.language {
  position: static;
  height: 38px;
  border-color: #e4ecec;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #475569;
  font-size: 13px;
}

.language {
  padding: 0 12px;
}

.language-menu {
  top: 60px;
  right: 12px;
}

.page-head {
  max-width: 1180px;
  margin: 0 auto 22px;
}

.page-head h1 {
  margin: 0 0 10px;
  color: #0f172a;
  font-family: inherit;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.12;
  font-weight: 920;
}

.page-head h1::after {
  display: none;
}

.page-head p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 680;
}

.page-head .stats {
  margin-top: 28px;
}

.stat,
.grok .stat,
.pill-row span {
  min-width: 0;
  min-height: 110px;
  padding: 20px 22px;
  border: 1px solid #e4ecec;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.page-head .stat {
  width: min(100%, 260px);
}

.stat-icon,
.claude .stat-icon,
.grok .stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e6fffa;
  color: #0f766e;
  font-weight: 920;
}

.stat-value,
.grok .stat-value {
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.stat-label,
.grok .stat-label,
.grok .hint {
  color: #84919f;
  font-size: 13px;
}

.two-col.app-grid {
  max-width: 1180px;
  grid-template-columns: minmax(320px, 0.78fr) minmax(470px, 1.22fr);
  gap: 24px;
  align-items: stretch;
}

.panel,
.guide,
.form-panel,
.claude-form,
.grok-panel,
.simple-guide {
  border: 1px solid #e4ecec;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.guide,
.form-panel,
.grok-panel,
.simple-guide {
  padding: 28px;
}

h2,
.claude-form h2,
.grok-panel h2 {
  margin: 0 0 24px;
  padding-left: 14px;
  border-left: 4px solid #0f766e;
  color: #17211f;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.guide-card {
  gap: 18px;
  min-height: 128px;
  margin-top: 16px;
  padding: 22px 20px;
  border: 1px solid #e4ecec;
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.guide-card:nth-of-type(2),
.guide-card:nth-of-type(3) {
  border-left-color: #10b981;
}

.guide-card.warn {
  border-left-color: #d9a514;
}

.guide-card.danger {
  border-left-color: #ef4b5f;
}

.guide-num,
.field-label span {
  width: 34px;
  height: 34px;
  background: #dcfce7;
  color: #0f766e;
  border-color: #9ee7d7;
  font-size: 15px;
}

.guide-card h3 {
  margin: 0 0 12px;
  color: #17211f;
  font-size: 18px;
  font-weight: 900;
}

.soft-link {
  min-width: 120px;
  margin-top: 14px;
  border-radius: 7px;
  background: #d6faed;
  color: #0f766e;
  font-weight: 900;
}

.redeem-card,
.claude .redeem-card,
.grok .redeem-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tabs,
.grok-tabs {
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 22px;
  padding: 6px;
  border: 1px solid #eef2f4;
  border-radius: 9px;
  background: #f6f8f8;
}

.tab,
.grok-tabs button {
  height: 48px;
  border-radius: 7px;
  color: #64748b;
  background: transparent;
  box-shadow: none;
}

.tab.active,
.grok-tabs .active {
  color: #fff;
  background: linear-gradient(135deg, #07948c, #087b74);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.16);
}

.field,
.claude-form .field,
.grok .field {
  width: 100%;
  min-height: 58px;
  margin-left: 0;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #17211f;
  background: rgba(255, 255, 255, 0.94);
  font-size: 14px;
}

.field:focus {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.primary-action {
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(135deg, #07948c, #087b74);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.query-bar {
  max-width: 1180px;
  min-height: 70px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #dfeaea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.query-copy strong {
  color: #17211f;
}

.query-copy p {
  color: #65736e;
}

.query-icon {
  color: #0f766e;
  background: #e8f7f3;
}

.query-button,
.query-button.green {
  min-width: 148px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  color: #fff;
  background: #0f766e;
  box-shadow: none;
  font-size: 14px;
}

.query-button.green {
  color: #0f766e;
  background: #eef8f5;
}

.subscription-fab {
  position: fixed;
  right: clamp(18px, 4vw, 54px);
  bottom: 28px;
  z-index: 20;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 14px;
  backdrop-filter: blur(12px);
}

.subscription-fab span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0f766e;
  font-weight: 900;
}

.subscription-fab strong {
  font-weight: 900;
}

.subscription-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.plan-row {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan-card {
  min-height: 142px;
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 22px;
  border: 1px solid #e4ecec;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #17211f;
  cursor: pointer;
}

.plan-card strong {
  font-size: 20px;
  font-weight: 900;
}

.plan-card span {
  color: #64748b;
  font-weight: 760;
}

.plan-card em {
  margin-top: 10px;
  color: #16a34a;
  font-style: normal;
  font-weight: 820;
}

.plan-card.active {
  border-color: rgba(15, 118, 110, 0.78);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.25);
}

.claude-form {
  max-width: none;
  margin: 0;
  padding: 28px;
  overflow: visible;
}

.claude-form h2 {
  height: auto;
  display: block;
  padding-left: 14px;
}

.claude-plan-tabs,
.benefit-box,
.footer,
.claude-query {
  display: none;
}

.claude-fields {
  gap: 10px;
  padding: 0;
}

.grok-grid {
  grid-template-columns: minmax(260px, 0.62fr) minmax(520px, 1.38fr);
}

.gpt520-grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(500px, 1.18fr);
}

.gpt520-card h2 {
  margin-bottom: 22px;
}

.gpt520-tabs {
  margin-bottom: 26px;
}

.gpt520-tabs .tab {
  display: grid;
  gap: 3px;
  place-items: center;
}

.gpt520-tabs .tab span {
  font-size: 16px;
  font-weight: 950;
}

.gpt520-tabs .tab b {
  font-size: 12px;
  font-weight: 760;
}

.simple-guide ol {
  margin: 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 26px;
  color: #334155;
  font-weight: 790;
}

.simple-guide a {
  display: block;
  margin-top: 10px;
  color: #0f766e;
  font-weight: 900;
  text-decoration: none;
}

.grok-panel {
  max-width: none;
  margin: 0;
  color: #17211f;
}

.grok .topbar,
.claude .topbar {
  margin-bottom: 34px;
}

@media (max-width: 980px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
    height: auto;
    padding: 12px;
  }

  .brand {
    order: 1;
  }

  .top-actions {
    order: 2;
    margin-left: auto;
  }

  .switcher {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    overflow-x: visible;
  }

  .switch-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .two-col.app-grid,
  .grok-grid,
  .gpt520-grid,
  .plan-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .top-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .page.gpt,
  .page.gpt520 {
    padding-bottom: 96px;
  }

  .subscription-fab {
    right: 16px;
    bottom: 16px;
    left: 16px;
    justify-content: center;
  }

  .query-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .query-actions {
    width: 100%;
    flex-direction: column;
  }

  .query-button,
  .query-button.green {
    width: 100%;
  }

  .switch-item {
    font-size: 12px;
  }

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

  .switch-item {
    height: 38px;
  }
}
