html [hidden] {
  display: none !important;
}

:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #dbe4f0;
  --blue: #1463ff;
  --blue-dark: #0b3fb3;
  --green: #16a36a;
  --red: #e5484d;
  --amber: #b7791f;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.10);
}

/* Apple-inspired profile page for MindClub */
.page-profile {
  background: #f5f5f7;
  overflow-x: hidden;
}

.page-profile .container {
  width: 100%;
  max-width: 860px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 28px 18px 88px;
  background: transparent;
  box-shadow: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.page-profile .site-header {
  background: rgba(255, 255, 255, 0.9);
}

.page-profile .user-card,
.page-profile .balance-card,
.page-profile .achievement-card,
.page-profile .menu-card,
.page-profile .logout-section {
  max-width: 824px;
  margin-left: auto;
  margin-right: auto;
}

.page-profile .user-card,
.page-profile .balance-card,
.page-profile .achievement-card,
.page-profile .menu-card {
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.page-profile .user-card {
  padding: 16px;
}

.page-profile .profile-login-card {
  width: 100%;
  max-width: 520px;
  margin-top: 36px;
}

.page-profile .login-copy {
  color: #86868b;
  font-size: 14px;
}

.page-profile .profile-login-form {
  margin-top: 14px;
}

.page-profile .profile-login-form input {
  width: 100%;
}

.page-profile .user-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}

.page-profile .avatar-container {
  position: relative;
  display: inline-block;
  margin-right: 12px;
}

.page-profile .profile-letter-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 25px;
  border: 1.5px solid #f2f2f7;
  font-size: 20px;
  font-weight: 800;
}

.page-profile .user-info {
  min-width: 0;
  flex: 1;
}

.page-profile .user-name {
  display: block;
  margin-bottom: 4px;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 700;
}

.page-profile .user-status {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 6px;
  color: #86868b;
  background: #f2f2f7;
  border-radius: 6px;
  font-size: 12px;
}

.page-profile .user-achievements {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: #34c759;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-profile .level-display {
  margin-bottom: 16px;
  padding: 12px;
  color: white;
  text-align: center;
  background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
  border-radius: 8px;
}

.page-profile .level-title {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 800;
}

.page-profile .level-achievement {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.page-profile .progress-section {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.page-profile .progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.page-profile .progress-label {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 600;
}

.page-profile .progress-value {
  color: #007aff;
  font-size: 14px;
  font-weight: 700;
}

.page-profile .progress-bar {
  height: 4px;
  margin-bottom: 6px;
  overflow: hidden;
  background: #e5e5ea;
  border-radius: 2px;
}

.page-profile .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007aff 0%, #5ac8fa 100%);
  border-radius: 2px;
}

.page-profile .next-level {
  color: #86868b;
  font-size: 12px;
  text-align: center;
}

.page-profile .balance-card {
  padding: 20px;
}

.page-profile .card-title {
  display: block;
  margin-bottom: 12px;
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 700;
}

.page-profile .balance-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  margin-bottom: 15px;
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 8px;
}

.page-profile .balance-label,
.page-profile .balance-unit,
.page-profile .balance-hint {
  color: #999999;
  font-size: 13px;
}

.page-profile .balance-value {
  color: #ff6b35;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.page-profile .recharge-pill {
  min-height: 42px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  cursor: pointer;
  font-weight: 700;
}

.page-profile .achievement-card {
  padding: 16px;
}

.page-profile .badges-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.page-profile .badge {
  flex: 1;
  padding: 10px 6px;
  text-align: center;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
}

.page-profile .badge.unlocked {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0fff4 100%);
  border-color: #34c759;
}

.page-profile .badge.locked {
  background: #f8f9fa;
  opacity: 0.8;
}

.page-profile .badge-icon,
.page-profile .badge-name,
.page-profile .badge-level {
  display: block;
}

.page-profile .badge-icon {
  margin-bottom: 4px;
  color: #007aff;
  font-size: 14px;
  font-weight: 900;
}

.page-profile .badge-name {
  margin-bottom: 2px;
  color: #1d1d1f;
  font-size: 11px;
  font-weight: 700;
}

.page-profile .badge-level {
  color: #007aff;
  font-size: 9px;
  font-weight: 600;
}

.page-profile .next-achievement {
  position: relative;
  padding: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
  border: 1px solid #ffd700;
  border-radius: 8px;
}

.page-profile .next-title {
  display: block;
  margin-bottom: 8px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 700;
}

.page-profile .next-badge {
  display: block;
  margin-bottom: 4px;
  color: #ff8c00;
  font-size: 13px;
  font-weight: 700;
}

.page-profile .next-progress {
  display: block;
  color: #86868b;
  font-size: 12px;
}

.page-profile .menu-card {
  overflow: hidden;
}

.page-profile .menu-card .card-title {
  padding: 12px 16px 0;
  margin-bottom: 8px;
}

.page-profile .menu-list {
  padding: 0;
}

.page-profile .menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.page-profile .menu-item:active {
  background: #f8f9fa;
}

.page-profile .menu-divider {
  height: 0.5px;
  margin: 0 16px;
  background: #f2f2f7;
}

.page-profile .menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 122, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.page-profile .menu-content {
  min-width: 0;
  flex: 1;
}

.page-profile .menu-title {
  display: block;
  margin-bottom: 3px;
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 700;
}

.page-profile .menu-desc {
  display: block;
  color: #86868b;
  font-size: 12px;
  line-height: 1.4;
}

.page-profile .contact-inline {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-profile .menu-arrow {
  color: #c7c7cc;
  font-size: 18px;
  font-weight: 300;
}

.page-profile .record-card {
  padding-bottom: 14px;
}

.page-profile .record-note {
  margin: 0 16px 12px;
  color: #86868b;
  font-size: 12px;
}

.page-profile .profile-record-list {
  display: grid;
  gap: 10px;
  max-height: none;
  padding: 0 16px 2px;
  overflow: visible;
}

.page-profile .profile-record {
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
}

.page-profile .record-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.page-profile .record-main strong {
  color: #1d1d1f;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.page-profile .record-main span,
.page-profile .record-status {
  color: #007aff;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.page-profile .record-meta {
  color: #86868b;
  font-size: 12px;
  line-height: 1.5;
}

.page-profile .record-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.page-profile .record-actions .primary-button,
.page-profile .record-actions .secondary-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.page-profile .logout-section {
  margin-top: 16px;
}

.page-profile .logout-btn {
  width: 100%;
  padding: 16px;
  color: #ff3b30;
  background: #ffffff;
  border: 1px solid #ff3b30;
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.page-profile .tabbar {
  display: none;
}

@media (max-width: 1099px) {
  .page-profile .site-header {
    display: none;
  }

  .page-profile .container {
    min-height: 100vh;
    padding: 12px 12px 78px;
    box-shadow: none;
  }

  .page-profile .user-card,
  .page-profile .balance-card,
  .page-profile .achievement-card,
  .page-profile .menu-card {
    width: auto;
    margin-bottom: 12px;
  }

  .page-profile .profile-login-card {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .page-profile .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    height: 64px;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5e5ea;
    backdrop-filter: blur(18px);
  }

  .page-profile .tabbar-item {
    display: grid;
    flex: 1;
    justify-items: center;
    align-content: center;
    gap: 2px;
    color: #86868b;
    font-size: 11px;
    font-weight: 700;
  }

  .page-profile .tabbar-icon {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 22px;
    font-size: 12px;
    font-weight: 900;
  }

  .page-profile .tabbar-item.active {
    color: #ff6b35;
  }
}

@media (max-width: 560px) {
  .page-profile .user-card,
  .page-profile .achievement-card {
    padding: 12px;
  }

  .page-profile .balance-card {
    padding: 16px;
  }

  .page-profile .balance-inner {
    padding: 16px;
  }

  .page-profile .balance-value {
    font-size: 28px;
  }

  .page-profile .badges-row {
    gap: 6px;
  }

  .page-profile .badge {
    padding: 8px 4px;
  }

  .page-profile .menu-item {
    padding: 10px 12px;
  }

  .page-profile .menu-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 8px;
  }

  .page-profile .menu-title {
    font-size: 14px;
  }

  .page-profile .menu-desc {
    font-size: 11px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 44px;
  background: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 240, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: #101828;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 26px;
  color: #263244;
  font-size: 15px;
}

.site-header > .ghost-button {
  justify-self: end;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a.active {
  color: var(--blue);
  font-weight: 800;
}

.standalone-tool {
  padding-top: 46px;
}

.page-kicker {
  width: min(1040px, 100%);
  margin: 0 auto 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 820;
  text-align: center;
}

.compact-copy {
  min-height: 210px;
  margin-bottom: 18px;
}

.detector-tool {
  padding-top: 24px;
}

.detector-copy {
  min-height: 180px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.tool-shell,
.api-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.tool-shell {
  padding: 34px 0 34px;
}

.tool-copy {
  display: grid;
  justify-items: center;
  max-width: 1120px;
  min-height: clamp(180px, 24vw, 300px);
  margin: 0 auto 20px;
  padding: clamp(28px, 3.5vw, 42px) 18px;
  text-align: center;
  align-content: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(240, 244, 250, 0.72));
  border-radius: 8px;
  overflow: hidden;
}

.tool-shell.detector-tool,
.tool-shell.humanizer-tool {
  padding-top: 16px;
}

.tool-copy.detector-copy,
.tool-copy.humanizer-copy {
  min-height: clamp(132px, 16vw, 176px);
  padding-top: clamp(14px, 1.8vw, 22px);
  padding-bottom: clamp(16px, 2vw, 24px);
}

.hero-title {
  display: grid;
  width: 100%;
  gap: clamp(4px, 0.6vw, 8px);
  margin: 0 0 clamp(12px, 1.5vw, 18px);
  font-size: clamp(24px, 2.6vw, 39px);
  font-weight: 860;
  line-height: 0.92;
  letter-spacing: 0;
  color: #17191f;
}

.hero-title span {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.hero-title .accent {
  color: #ff8a14;
}

.mobile-break {
  display: none;
}

.desktop-space {
  display: inline;
}

.hero-lead {
  width: min(100%, 980px);
  max-width: 980px;
  margin: 0 0 6px;
  color: #5f6673;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 540;
  line-height: 1.18;
}

.hero-claim {
  margin: 0 0 8px;
  color: #ff8a14;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 760;
  line-height: 1.2;
}

.hero-support {
  width: min(100%, 1040px);
  max-width: 1040px;
  margin: 0;
  color: #8b9099;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 650;
  line-height: 1.24;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.subhead,
.api-hero p,
.api-band p,
.docs-copy p,
.key-panel p,
.empty-state p {
  color: var(--muted);
}

.subhead {
  max-width: 690px;
  margin-bottom: 0;
  font-size: 18px;
}

.workspace-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.source-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  background: #eef4ff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-tab {
  min-height: 36px;
  padding: 0 16px;
  color: #344054;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 780;
}

.source-tab.active {
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.upload-strip {
  display: grid;
  gap: 15px;
  margin-bottom: 18px;
}

.upload-strip[hidden] {
  display: none;
}

.upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 200px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  border: 2px dashed #e5e5ea;
  border-radius: 12px;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: #ff6b35;
  background-color: rgba(255, 107, 53, 0.02);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.upload-icon {
  margin-bottom: 15px;
  font-size: 48px;
  line-height: 1;
}

.upload-title {
  margin-bottom: 8px;
  color: #1c1c1e;
  font-size: 16px;
  font-weight: 700;
}

.upload-desc {
  margin-bottom: 20px;
  color: #999999;
  font-size: 13px;
}

.select-file-btn {
  min-width: 134px;
  min-height: 44px;
  padding: 12px 30px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.select-file-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.parse-status.success {
  color: var(--green);
  font-weight: 760;
}

.parse-status.error {
  color: var(--red);
  font-weight: 760;
}

.parse-status.loading {
  color: var(--blue);
  font-weight: 760;
}

.file-info {
  padding: 15px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 32px;
  line-height: 1;
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-name {
  margin-bottom: 4px;
  overflow: hidden;
  color: #1c1c1e;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size,
.parse-status {
  color: #999999;
  font-size: 12px;
}

.upload-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.upload-feature-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 15px 10px;
  background-color: #f2f2f7;
  border-radius: 12px;
}

.upload-feature-icon {
  font-size: 24px;
  line-height: 1;
}

.upload-feature-icon.feature-code {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.upload-feature-text {
  color: #666666;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.file-remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.file-remove:hover {
  color: var(--red);
  border-color: rgba(229, 72, 77, 0.45);
}

.editor-panel,
.result-panel,
.endpoint-panel,
.docs-panel,
.key-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.editor-panel {
  position: relative;
  height: 335px;
  min-height: 0;
  overflow: hidden;
  box-shadow: none;
}

textarea {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 28px 28px 88px;
  resize: none;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border: 0;
  outline: none;
  color: var(--text);
  background: white;
  font-size: 18px;
  line-height: 1.7;
}

textarea::placeholder {
  color: #98a2b3;
}

.editor-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
}

.editor-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

#wordCount {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.ai-rate-badge {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.ai-rate-badge.high {
  color: var(--red);
}

.ai-rate-badge.low {
  color: var(--green);
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 720;
  white-space: nowrap;
}

.primary-button,
.primary-link {
  color: white;
  background: var(--blue);
}

.primary-button:hover,
.primary-link:hover {
  background: var(--blue-dark);
}

.secondary-button {
  color: var(--text);
  background: white;
  border-color: #b9c7da;
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.auth-code-row input,
.auth-code-row button {
  min-width: 0;
}

.auth-mode-toggle {
  width: 100%;
  min-height: 38px;
  color: var(--blue);
  background: transparent;
  border-color: var(--line);
}

.auth-mode-toggle:hover {
  color: var(--blue-dark);
  background: #f4f8ff;
}

@media (max-width: 420px) {
  .auth-code-row {
    grid-template-columns: 1fr;
  }

  .auth-code-row button {
    width: 100%;
  }
}

.ghost-button {
  color: var(--text);
  background: white;
  border-color: var(--line);
}

.wide {
  width: 100%;
}

button[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.result-panel {
  height: 530px;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.results-section {
  margin-top: 22px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.empty-state {
  display: grid;
  min-height: 100%;
  align-content: center;
  justify-items: start;
}

textarea,
.result-panel {
  scrollbar-width: thin;
  scrollbar-color: #c8d4e5 transparent;
}

textarea::-webkit-scrollbar,
.result-panel::-webkit-scrollbar {
  width: 10px;
}

textarea::-webkit-scrollbar-track,
.result-panel::-webkit-scrollbar-track {
  background: transparent;
}

textarea::-webkit-scrollbar-thumb,
.result-panel::-webkit-scrollbar-thumb {
  background: #d5deeb;
  border: 3px solid #ffffff;
  border-radius: 999px;
}

textarea::-webkit-scrollbar-thumb:hover,
.result-panel::-webkit-scrollbar-thumb:hover {
  background: #b9c7da;
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(22, 163, 106, 0.10);
}

.score-block {
  display: grid;
  gap: 18px;
}

.overall-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.overall-card {
  padding: 16px;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.overall-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.overall-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.overall-card .high,
.overall-card.high strong {
  color: var(--red);
}

.overall-card .low,
.overall-card.low strong {
  color: var(--green);
}

.score-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.score-number {
  font-size: 62px;
  line-height: 0.95;
  font-weight: 820;
}

.score-label {
  color: var(--muted);
  font-size: 14px;
}

.score-bar {
  height: 12px;
  overflow: hidden;
  background: #edf2f7;
  border-radius: 999px;
}

.score-fill {
  height: 100%;
  width: 0;
  background: var(--blue);
  border-radius: inherit;
}

.sentence-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sentence-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fbfdff;
}

.sentence-item.high {
  border-left-color: var(--red);
  background: #fff8f8;
}

.sentence-item.mid {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.sentence-item.low {
  border-left-color: var(--green);
}

.sentence-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.paragraph-list {
  display: grid;
  gap: 12px;
}

.paragraph-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fbfdff;
}

.paragraph-item.ai {
  border-left-color: var(--red);
  background: #fff8f8;
}

.paragraph-item.human {
  border-left-color: var(--green);
}

.paragraph-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-weight: 800;
}

.paragraph-rate.high {
  color: var(--red);
}

.paragraph-rate.low {
  color: var(--green);
}

.paragraph-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.paragraph-item p {
  margin: 0;
  color: #263244;
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.detected-text {
  padding: 16px;
  white-space: pre-wrap;
  color: #263244;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 300px;
  overflow: auto;
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.humanized-output {
  margin-top: 14px;
  padding: 16px;
  white-space: pre-wrap;
  background: #f5f9ff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pricing-band,
.api-band {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  width: min(560px, 100%);
}

.price-item,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-item span,
.price-row span {
  color: var(--muted);
}

.api-page {
  padding: 54px 0;
}

.pricing-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 12px;
}

.pricing-hero {
  max-width: 1180px;
  margin: 0 0 22px;
  text-align: left;
}

.pricing-hero h1 {
  max-width: none;
  margin: 0;
  color: #ff8a14;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

.pricing-hero p {
  display: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 248px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.pricing-card.featured {
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 99, 255, 0.12), transparent 36%),
    #ffffff;
}

.pricing-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.pricing-card strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.08;
}

.pricing-card p {
  flex: 1;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pricing-panel {
  margin-top: 18px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.pricing-usage {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.pricing-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 34px);
}

.pricing-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pricing-mode-grid article {
  min-height: 190px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #e5edf7;
  border-radius: 8px;
}

.pricing-mode-grid span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.pricing-mode-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 20px;
}

.pricing-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.pricing-table {
  overflow: hidden;
  border: 1px solid #e5edf7;
  border-radius: 8px;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e5edf7;
}

.pricing-row:last-child {
  border-bottom: 0;
}

.pricing-row.header {
  color: #667085;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.pricing-row span {
  color: #344054;
}

.pricing-row strong {
  color: var(--text);
  font-size: 18px;
}

.pricing-faq {
  display: grid;
  gap: 8px;
}

.pricing-faq details {
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #e5edf7;
  border-radius: 8px;
}

.pricing-faq summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.pricing-faq p {
  margin: 10px 0 0;
}

.api-hero {
  max-width: 820px;
  margin-bottom: 28px;
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.endpoint-panel,
.docs-panel,
.key-panel {
  padding: 24px;
}

.endpoint-list {
  display: grid;
  gap: 10px;
}

code {
  color: #0b3fb3;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.endpoint-list code {
  display: block;
  padding: 12px;
  background: #f5f9ff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.docs-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  background: #101828;
  color: #f9fafb;
  border-radius: 8px;
}

pre code {
  color: inherit;
  font-size: 13px;
}

.key-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.key-output,
.key-list,
.payment-box {
  padding: 14px;
  overflow-wrap: anywhere;
  background: #f5f9ff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  padding: 26px 0 34px;
  color: #344054;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-links a[href^="mailto:"],
.contact-email {
  white-space: nowrap;
  font-size: 13px;
}

.legal-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 18px;
}

.legal-hero {
  margin-bottom: 22px;
}

.legal-hero h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(40px, 7vw, 72px);
}

.legal-hero p {
  color: var(--muted);
}

.legal-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-panel h2 {
  margin-top: 28px;
  font-size: 22px;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p {
  color: #344054;
}

.legal-panel a {
  color: var(--blue);
  font-weight: 700;
}

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

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

.modal {
  position: relative;
  width: min(440px, 100%);
  padding: 28px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.progress-backdrop {
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}

.progress-modal {
  width: min(360px, calc(100% - 40px));
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.progress-modal h2 {
  margin: 0;
  padding: 20px 20px 10px;
  color: #1c1c1e;
  border-bottom: 1px solid #f2f2f7;
  font-size: 18px;
  font-weight: 600;
}

.progress-info,
.progress-meta,
.progress-motion {
  display: flex;
  align-items: center;
}

.progress-info {
  justify-content: space-between;
  gap: 18px;
  margin: 20px 20px 12px;
}

.progress-message,
.progress-text {
  color: #344054;
  font-weight: 720;
}

.progress-message {
  font-size: 14px;
}

.progress-percentage {
  color: #ff6b35;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.progress-bar-container {
  margin: 0 20px 14px;
}

.progress-bar {
  width: 100%;
  height: 11px;
  margin-bottom: 9px;
  overflow: hidden;
  background: #e8eaf0;
  border-radius: 999px;
  box-shadow: inset 0 1px 5px rgba(18, 22, 34, 0.1);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 56%, #ffc36a 100%);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(255, 107, 53, 0.36);
  transition: width 0.3s ease;
}

.progress-meta {
  justify-content: space-between;
  gap: 14px;
}

.progress-text,
.progress-state {
  font-size: 13px;
}

.progress-state {
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 720;
}

.progress-motion {
  gap: 11px;
  margin: 3px 20px 14px;
}

.progress-orbit {
  position: relative;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  background: #f3f5f9;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(17, 18, 22, 0.04);
}

.progress-orbit-line {
  position: absolute;
  inset: -2px;
  border: 2.5px solid transparent;
  border-top-color: #ff6b35;
  border-right-color: rgba(255, 178, 104, 0.95);
  border-radius: 50%;
  animation: progressOrbitSpin 1.05s linear infinite;
}

.progress-light-track {
  position: relative;
  flex: 1;
  height: 6px;
  overflow: hidden;
  background: #eef0f4;
  border-radius: 999px;
}

.progress-light-line {
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 107, 53, 0), rgba(255, 107, 53, 0.92), rgba(255, 210, 166, 0.96), rgba(255, 107, 53, 0));
  border-radius: inherit;
  animation: progressRailFlow 1.25s ease-in-out infinite;
}

.progress-tip {
  margin: 0 20px 20px;
  padding: 12px;
  color: #6c6c70;
  background: #f8f9fa;
  border-left: 3px solid #ff6b35;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.tip-text {
  display: block;
  margin-bottom: 4px;
}

.tip-text:last-child {
  margin-bottom: 0;
}

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

@keyframes progressRailFlow {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.account-modal {
  width: min(640px, 100%);
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.account-summary div,
.order-item {
  padding: 14px;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-summary span,
.order-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.account-summary strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.account-records {
  margin-top: 18px;
}

.account-records h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.order-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.order-item {
  display: grid;
  gap: 4px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #344054;
  font-size: 13px;
}

.order-status {
  color: var(--blue);
  font-weight: 800;
  text-transform: capitalize;
}

form {
  display: grid;
  gap: 10px;
}

label {
  color: var(--text);
  font-weight: 700;
}

input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(20, 99, 255, 0.12);
}

.balance-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  padding: 14px;
  background: #f7faff;
  border-radius: 8px;
}

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

.payment-actions [hidden] {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - 40px));
  padding: 12px 16px;
  color: white;
  background: #101828;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 20px;
}

.profile-login-card,
.profile-hero-card,
.profile-stat,
.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-login-card {
  width: min(520px, 100%);
  margin: 34px auto;
  padding: 30px;
}

.profile-login-card p {
  color: var(--muted);
}

.profile-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.profile-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #ffffff;
  background: #101828;
  border-radius: 12px;
  font-size: 26px;
  font-weight: 860;
}

.profile-hero-card h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 48px);
}

.profile-email {
  margin: 0 0 4px;
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.profile-stat {
  padding: 18px;
}

.profile-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.profile-stat strong {
  font-size: 30px;
  line-height: 1;
}

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

.profile-card {
  padding: 24px;
}

.profile-card h2 {
  margin-bottom: 8px;
}

.profile-card p {
  color: var(--muted);
}

.profile-card .primary-link {
  margin-top: 8px;
}

.records-card {
  grid-row: span 2;
}

.record-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.profile-record {
  padding: 14px;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.record-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.record-main strong {
  overflow-wrap: anywhere;
}

.record-main span,
.record-status {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.record-meta {
  color: var(--muted);
  font-size: 12px;
}

.record-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--blue);
  background: #f5f9ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    height: auto;
    padding: 16px 20px;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .editor-layout,
  .api-grid,
  .pricing-cards,
  .pricing-usage,
  .pricing-mode-grid {
    grid-template-columns: 1fr;
  }

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

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

  .pricing-band,
  .api-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

  .profile-actions {
    justify-content: flex-start;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 12px;
    overflow: hidden;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .nav-links a {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tool-shell,
  .api-page,
  .legal-page,
  .pricing-page,
  .pricing-band,
  .api-band,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 42px;
  }

  .tool-copy {
    width: 100%;
    min-height: 220px;
    padding: 28px 12px 30px;
  }

  .standalone-tool {
    padding-top: 22px;
  }

  .detector-tool,
  .humanizer-tool {
    padding-top: 6px;
  }

  .detector-copy,
  .humanizer-copy {
    min-height: 145px;
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .pricing-page {
    padding: 30px 0;
  }

  .pricing-hero h1 {
    font-size: 38px;
    white-space: normal;
  }

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

  .pricing-panel {
    padding: 18px;
  }

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pricing-row.header {
    display: none;
  }

  .hero-title {
    gap: 5px;
    font-size: clamp(20px, 6.4vw, 26px);
    line-height: 0.98;
  }

  .hero-title span {
    width: 100%;
    white-space: normal;
    text-wrap: balance;
  }

  .mobile-break {
    display: block;
  }

  .desktop-space {
    display: none;
  }

  .hero-lead {
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
    font-size: clamp(13px, 3.8vw, 16px);
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .hero-claim {
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
    font-size: clamp(13px, 3.8vw, 15px);
    overflow-wrap: anywhere;
  }

  .hero-support {
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
    font-size: clamp(11px, 3.2vw, 13px);
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .editor-panel,
  .result-panel {
    height: 310px;
    min-height: 0;
  }

  .workspace-panel {
    padding: 12px;
  }

  textarea {
    height: 100%;
    min-height: 0;
  }

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

  .action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .upload-area {
    min-height: 175px;
    align-items: center;
    justify-content: center;
  }

  .file-item {
    align-items: flex-start;
  }

  .source-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .source-tab {
    padding: 0 8px;
  }

  .overall-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .legal-panel {
    padding: 22px;
  }

  .account-summary {
    grid-template-columns: 1fr;
  }

  .profile-page {
    width: min(100% - 24px, 1120px);
    padding-top: 26px;
  }

  .profile-login-card,
  .profile-hero-card,
  .profile-card {
    padding: 20px;
  }

  .profile-identity {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    font-size: 22px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-stat strong {
    font-size: 26px;
  }
}

/* Final profile guards: keep the Apple-style mobile page flush and uncropped. */
body.page-profile {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body.page-profile .container {
  width: 100%;
  max-width: min(860px, 100%);
  background: transparent;
  box-shadow: none;
  overflow-x: hidden;
  box-sizing: border-box;
}

body.page-profile .user-card,
body.page-profile .balance-card,
body.page-profile .achievement-card,
body.page-profile .menu-card,
body.page-profile .logout-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.page-profile .profile-login-card {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

body.page-profile .profile-login-form,
body.page-profile .profile-login-form input,
body.page-profile .profile-login-form button,
body.page-profile .balance-inner,
body.page-profile .menu-item,
body.page-profile .profile-record {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.page-profile .login-copy,
body.page-profile .next-level,
body.page-profile .next-progress,
body.page-profile .menu-desc,
body.page-profile .record-meta {
  overflow-wrap: anywhere;
}

@media (max-width: 1099px) {
  body.page-profile .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.page-profile .profile-login-card {
    max-width: 100%;
  }
}

/* High-tech account workspace redesign */
body.page-profile {
  background: #f6f7f9;
}

body.page-profile .container {
  width: 100%;
  max-width: 1180px;
  padding: 32px 24px 96px;
}

body.page-profile .profile-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

body.page-profile .profile-sidebar {
  position: sticky;
  top: 0;
}

body.page-profile .profile-side-panel,
body.page-profile .profile-hero-panel,
body.page-profile .profile-metric,
body.page-profile .profile-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.page-profile .profile-side-panel {
  padding: 16px;
}

body.page-profile .side-account {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.page-profile .side-account .profile-letter-avatar,
body.page-profile .profile-identity-card .profile-letter-avatar {
  flex: 0 0 auto;
  margin: 0;
}

body.page-profile .side-account-copy {
  min-width: 0;
}

body.page-profile .side-name {
  overflow: hidden;
  color: #101828;
  font-size: 16px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-profile .side-email {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-profile .side-credit {
  margin: 18px 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e7edf5;
  border-radius: 8px;
}

body.page-profile .side-credit span,
body.page-profile .profile-metric span,
body.page-profile .section-heading span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 720;
}

body.page-profile .side-credit strong {
  display: block;
  margin-top: 3px;
  color: #101828;
  font-size: 26px;
  line-height: 1.05;
}

body.page-profile .side-recharge {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  color: #ffffff;
  background: #101828;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

body.page-profile .profile-side-nav {
  display: grid;
  gap: 4px;
}

body.page-profile .profile-side-nav button,
body.page-profile .profile-side-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: #344054;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 690;
  text-align: left;
}

body.page-profile .profile-side-nav button:hover,
body.page-profile .profile-side-nav a:hover {
  background: #f1f5f9;
  color: #101828;
}

body.page-profile .profile-side-nav .active {
  color: #ffffff;
  background: #101828;
}

body.page-profile .profile-mobile-nav {
  display: none;
}

body.page-profile .side-logout {
  width: 100%;
  min-height: 40px;
  margin-top: 18px;
  color: #b42318;
  background: #ffffff;
  border: 1px solid #f1b8b3;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 720;
}

body.page-profile .profile-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

body.page-profile .profile-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 99, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
}

body.page-profile .profile-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #1463ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

body.page-profile .profile-hero-copy h1 {
  max-width: 520px;
  margin: 0;
  color: #101828;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

body.page-profile .profile-hero-copy p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #667085;
  font-size: 15px;
}

body.page-profile .profile-identity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
}

body.page-profile .profile-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.page-profile .profile-metric {
  min-height: 132px;
  padding: 18px;
}

body.page-profile .profile-metric strong {
  display: block;
  margin-top: 16px;
  color: #101828;
  font-size: 26px;
  line-height: 1.05;
}

body.page-profile .profile-metric small {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
}

body.page-profile .profile-panel {
  padding: 22px;
}

body.page-profile .section-heading {
  margin-bottom: 18px;
}

body.page-profile .section-heading h2 {
  margin: 4px 0 0;
  color: #101828;
  font-size: 20px;
  line-height: 1.2;
}

body.page-profile .billing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf1f6;
}

body.page-profile .balance-value {
  color: #101828;
  font-size: 38px;
}

body.page-profile .recharge-pill {
  min-width: 132px;
  background: #101828;
  box-shadow: none;
}

body.page-profile .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.page-profile .service-item {
  min-height: 100px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e7edf5;
  border-radius: 8px;
}

body.page-profile .service-item strong {
  display: block;
  color: #101828;
  font-size: 15px;
}

body.page-profile .service-item span {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
}

body.page-profile .profile-record-list {
  padding: 0;
}

body.page-profile .record-note {
  margin: -8px 0 16px;
  color: #667085;
  font-size: 13px;
}

body.page-profile .profile-record {
  background: #f8fafc;
  border-color: #e7edf5;
}

body.page-profile .profile-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.page-profile .panel-copy {
  min-height: 44px;
  margin: 0 0 18px;
  color: #667085;
  font-size: 14px;
}

body.page-profile .profile-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: #101828;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 760;
}

body.page-profile .route-panel {
  min-height: 196px;
}

body.page-profile .support-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e7edf5;
  border-radius: 8px;
}

body.page-profile .support-contact-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 720;
}

body.page-profile .support-contact-card strong {
  display: block;
  margin-top: 5px;
  color: #101828;
  font-size: clamp(18px, 2vw, 24px);
  overflow-wrap: anywhere;
}

body.page-profile .support-contact-card p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #667085;
  font-size: 14px;
}

@media (max-width: 1099px) {
  body.page-profile .container {
    max-width: 760px;
    padding: 14px 12px 84px;
  }

  body.page-profile .profile-workspace {
    display: block;
  }

  body.page-profile .profile-sidebar {
    display: none;
  }

  body.page-profile .profile-mobile-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.page-profile .profile-mobile-nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    color: #344054;
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 760;
    line-height: 36px;
    white-space: nowrap;
  }

  body.page-profile .profile-mobile-nav a.active {
    color: #ffffff;
    background: #101828;
    border-color: #101828;
  }

  body.page-profile .profile-hero-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  body.page-profile .profile-identity-card {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  body.page-profile .profile-hero-copy h1 {
    font-size: 30px;
  }

  body.page-profile .profile-metric-grid,
  body.page-profile .service-grid,
  body.page-profile .profile-split-grid {
    grid-template-columns: 1fr;
  }

  body.page-profile .billing-row {
    align-items: stretch;
    flex-direction: column;
  }

  body.page-profile .support-contact-card {
    align-items: stretch;
    flex-direction: column;
  }

  body.page-profile .recharge-pill {
    width: 100%;
  }
}

/* API developer console */
.page-api-console {
  background: #f5f7fb;
}

.page-api-console .site-header {
  background: rgba(248, 251, 255, 0.94);
}

.op-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.op-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  padding: 18px;
  color: #101828;
  background: #edf2f8;
  border-right: 1px solid rgba(16, 24, 40, 0.08);
}

.op-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 18px;
  color: #101828;
}

.op-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: #101828;
  border-radius: 8px;
  font-weight: 850;
}

.op-brand strong,
.op-brand small {
  display: block;
}

.op-brand small {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
}

.op-nav {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.op-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #101828;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 760;
  text-align: left;
}

.op-nav-item svg,
.op-btn svg,
.op-icon-btn svg,
.op-sidebar-foot svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.op-nav-item:hover,
.op-nav-item.active {
  color: #101828;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.op-sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.op-sidebar-foot a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: #101828;
  font-weight: 720;
}

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

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

.op-eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.op-header h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

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

.op-status {
  max-width: 260px;
  overflow: hidden;
  padding: 8px 12px;
  color: #667085;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  font-size: 13px;
}

.op-btn,
.op-link-btn,
.op-icon-btn {
  color: #101828;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  cursor: pointer;
}

.op-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 780;
}

.op-btn.primary {
  color: #ffffff;
  background: #1463ff;
  border-color: #1463ff;
}

.op-btn.ghost:hover,
.op-link-btn:hover {
  border-color: #b9c8dc;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.op-btn.wide {
  width: 100%;
}

.op-link-btn {
  min-height: 32px;
  padding: 0 10px;
  font-weight: 760;
}

.op-icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.op-section {
  display: none;
}

.op-section.active {
  display: grid;
  gap: 18px;
}

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

.op-metric,
.op-panel {
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.op-metric {
  display: grid;
  gap: 6px;
  min-height: 136px;
  padding: 18px;
}

.op-metric span,
.op-metric small,
.op-panel-head p {
  color: #667085;
}

.op-metric strong {
  color: #101828;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.op-panel {
  padding: 20px;
}

.op-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.op-panel-head h2,
.op-panel-head p {
  margin: 0;
}

.op-panel-head h2 {
  font-size: 21px;
}

.op-panel-head p {
  margin-top: 5px;
  line-height: 1.45;
}

.op-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #e5edf7;
  border-radius: 8px;
}

.op-table-wrap table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.op-table-wrap th,
.op-table-wrap td {
  padding: 13px 14px;
  border-bottom: 1px solid #e5edf7;
  font-size: 14px;
  text-align: left;
  vertical-align: middle;
}

.op-table-wrap th {
  color: #667085;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.op-table-wrap tr:last-child td {
  border-bottom: 0;
}

.op-table-wrap code,
.op-doc-block pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.op-empty {
  color: #667085;
  text-align: center;
}

.op-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
}

.op-chip.ok {
  color: #067647;
  background: #ecfdf3;
}

.op-chip.warn {
  color: #92400e;
  background: #fffbeb;
}

.op-chip.danger {
  color: #b42318;
  background: #fff1f0;
}

.op-recharge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.op-recharge-option {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 16px;
  color: #101828;
  text-align: left;
  background: #f8fbff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 850;
}

.op-recharge-option span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.op-recharge-option.active {
  color: #1463ff;
  background: #edf4ff;
  border-color: #1463ff;
}

.op-form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.op-form-row span {
  color: #344054;
  font-size: 13px;
  font-weight: 780;
}

.op-form-row input,
.op-form-row select,
.op-form-row textarea,
.op-modal textarea {
  width: 100%;
  padding: 12px 13px;
  color: #101828;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  outline: none;
}

.op-form-row textarea,
.op-modal textarea {
  resize: vertical;
}

.op-form-row input:focus,
.op-form-row select:focus,
.op-form-row textarea:focus,
.op-modal textarea:focus {
  border-color: #1463ff;
  box-shadow: 0 0 0 3px rgba(20, 99, 255, 0.12);
}

.op-recharge-summary {
  margin: 10px 0 14px;
  padding: 13px;
  color: #344054;
  background: #f8fbff;
  border: 1px solid #e5edf7;
  border-radius: 8px;
}

.op-docs {
  display: grid;
  gap: 14px;
}

.op-doc-block {
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #e5edf7;
  border-radius: 8px;
}

.op-doc-block h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.op-doc-block pre {
  max-width: 100%;
  max-height: 360px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  color: #064e3b;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.op-service-grid,
.op-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.op-service-card,
.op-price-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #e5edf7;
  border-radius: 8px;
}

.op-service-card.recommended {
  background: #f3fff9;
  border-color: #a7f3d0;
}

.op-service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.op-service-top strong,
.op-price-card strong {
  color: #101828;
  font-size: 19px;
}

.op-service-card p,
.op-price-card p {
  margin: 0;
  color: #667085;
  line-height: 1.5;
}

.op-service-tag {
  padding: 5px 9px;
  color: #1463ff;
  background: #edf4ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.op-service-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.op-service-scope span {
  padding: 6px 8px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 720;
}

.op-integration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.op-integration-form .full,
.op-integration-form .wide {
  grid-column: 1 / -1;
}

.op-faq-list {
  display: grid;
  gap: 10px;
}

.op-faq-list details {
  padding: 15px 16px;
  background: #f8fbff;
  border: 1px solid #e5edf7;
  border-radius: 8px;
}

.op-faq-list summary {
  cursor: pointer;
  font-weight: 820;
}

.op-faq-list p {
  margin: 10px 0 0;
  color: #667085;
  line-height: 1.5;
}

.op-price-card span {
  color: #1463ff;
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.op-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.48);
}

.op-modal.show {
  display: grid;
}

.op-modal-box {
  width: min(520px, 100%);
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
}

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

.op-modal-head h3,
.op-modal-copy {
  margin: 0;
}

.op-modal-copy {
  margin-bottom: 12px;
  color: #667085;
}

.op-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  color: #ffffff;
  background: #101828;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.2);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.op-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 960px) {
  .op-shell {
    grid-template-columns: 1fr;
  }

  .op-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  }

  .op-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .op-sidebar-foot {
    display: none;
  }

  .op-main {
    padding: 20px;
  }

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

@media (max-width: 640px) {
  .op-main {
    padding: 14px;
  }

  .op-header,
  .op-panel-head,
  .op-service-top {
    align-items: stretch;
    flex-direction: column;
  }

  .op-header-actions {
    justify-content: flex-start;
  }

  .op-nav,
  .op-metrics,
  .op-recharge-grid,
  .op-service-grid,
  .op-pricing-grid,
  .op-integration-form {
    grid-template-columns: 1fr;
  }

  .op-nav-item {
    justify-content: flex-start;
  }
}
