:root {
  --bg: #060b12;
  --bg-alt: #0b121b;
  --surface: rgba(21, 29, 39, 0.88);
  --surface-strong: rgba(15, 24, 34, 0.96);
  --surface-soft: rgba(20, 30, 41, 0.72);
  --border: rgba(122, 145, 164, 0.2);
  --text: #f1f5f9;
  --muted: #93a2b7;
  --accent: #00a659;
  --accent-soft: rgba(0, 166, 89, 0.14);
  --accent-strong: #33df8f;
  --danger: #ff7d7d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 166, 89, 0.16), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(18, 60, 95, 0.22), transparent 24%),
    linear-gradient(180deg, #04080f 0%, #060b12 38%, #091219 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

body.rtl {
  font-family: "Cairo", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(5, 11, 18, 0.58);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, transform 160ms ease,
    background-color 160ms ease;
}

input:focus,
textarea:focus {
  border-color: rgba(0, 166, 89, 0.75);
  background: rgba(7, 14, 21, 0.9);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.32;
  z-index: 0;
}

.ambient-a {
  top: -110px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: rgba(0, 166, 89, 0.35);
}

.ambient-b {
  bottom: -120px;
  left: -70px;
  width: 320px;
  height: 320px;
  background: rgba(9, 68, 99, 0.28);
}

.ambient-c {
  top: 36%;
  left: 42%;
  width: 200px;
  height: 200px;
  background: rgba(0, 166, 89, 0.16);
}

.hidden {
  display: none !important;
}

.glass-panel,
.panel,
.sidebar,
.content {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  background: rgba(6, 11, 18, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #00a659, #33df8f);
  color: #031108;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-title,
.section-header h2,
.hero-copy h1,
.sidebar-title,
.topbar h2,
.panel h3,
.panel-title {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

body.rtl .brand-title,
body.rtl .section-header h2,
body.rtl .hero-copy h1,
body.rtl .sidebar-title,
body.rtl .topbar h2,
body.rtl .panel h3,
body.rtl .panel-title {
  font-family: "Cairo", sans-serif;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: #7be6b4;
}

body.rtl .eyebrow {
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.nav-link,
.nav-item,
.auth-switch__button {
  border-radius: 999px;
  padding: 11px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  transition: color 160ms ease, background-color 160ms ease,
    border-color 160ms ease;
}

.nav-link:hover,
.nav-item:hover,
.auth-switch__button:hover {
  color: var(--text);
}

.header-actions,
.hero-actions,
.pill-set,
.sidebar-footer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.page-shell {
  position: relative;
  z-index: 1;
  padding: 26px 28px 32px;
}

#public-shell {
  display: grid;
  gap: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 460px);
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.auth-panel,
.panel,
.sidebar,
.content,
.doc-card,
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy,
.auth-panel,
.content-section .glass-panel,
.panel,
.content,
.sidebar {
  padding: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}

.hero-copy h1 {
  margin: 14px 0 16px;
  max-width: 12ch;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.02;
}

.hero-text,
.panel-header p,
.section-header p,
.status-text {
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-badges,
.card-grid,
.timeline-grid,
.docs-grid,
.option-grid,
.wallet-grid {
  display: grid;
  gap: 12px;
}

.hero-badges {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-badge,
.feature-card,
.timeline-card,
.doc-card,
.metric-card,
.ops-card,
.wallet-card,
.stat-card,
.list-item,
.result-card,
.surface-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  background: rgba(9, 15, 24, 0.5);
}

.hero-badge,
.feature-card,
.timeline-card,
.doc-card,
.metric-card,
.ops-card,
.wallet-card,
.stat-card,
.list-item,
.surface-card {
  padding: 16px;
}

.hero-badge strong,
.feature-card h3,
.timeline-card h3,
.doc-card h3,
.metric-card .value,
.ops-card h3,
.wallet-card .value,
.stat-card .value {
  display: block;
  margin-bottom: 8px;
  font-size: 1.04rem;
  font-weight: 800;
}

.hero-badge span,
.feature-card p,
.timeline-card p,
.doc-card p,
.ops-card p,
.wallet-card .label,
.stat-card .label,
.list-item .meta {
  color: var(--muted);
  line-height: 1.55;
}

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

.panel-header h3,
.panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.panel-header p {
  margin: 8px 0 0;
  max-width: 48ch;
}

.auth-panel .auth-switch {
  margin-bottom: 24px;
}

.auth-panel .panel-header {
  display: block;
  margin-bottom: 18px;
}

.auth-panel .panel-header h2 {
  margin: 0 0 12px;
  max-width: 12ch;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.16;
  text-wrap: balance;
}

.auth-panel .panel-header p {
  margin: 0;
  max-width: 38ch;
}

.auth-switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-switch__button.active,
.nav-item.active {
  color: var(--text);
  background: rgba(0, 166, 89, 0.16);
  border-color: rgba(0, 166, 89, 0.22);
}

.primary-button,
.preview-button {
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  color: #031108;
  background: linear-gradient(135deg, #00a659, #33df8f);
}

.primary-button.slim,
.ghost-button.slim {
  padding: 11px 14px;
  border-radius: 999px;
}

.wide {
  width: 100%;
}

.ghost-button {
  border-radius: 16px;
  padding: 13px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.ghost-button.danger {
  color: #ffd6d6;
  border-color: rgba(255, 125, 125, 0.2);
}

.stack,
.stack-lg {
  display: grid;
  gap: 14px;
}

.stack-lg {
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.field-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.two-field,
.two-column-layout,
.portal-preview,
.docs-layout {
  display: grid;
  gap: 16px;
}

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

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

.option-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.option-pill input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.status-text {
  min-height: 1.5rem;
  margin-top: 14px;
}

.result-card {
  margin-top: 14px;
  padding: 16px;
}

.result-card h3 {
  margin: 10px 0 8px;
}

.result-code {
  margin: 12px 0 0;
  color: #9fe8c3;
  font-family: "Space Grotesk", sans-serif;
  word-break: break-all;
}

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

.section-header {
  max-width: 780px;
}

.section-header h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

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

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

.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #00a659, transparent);
}

.docs-workspace {
  margin-top: 18px;
}

.docs-panel {
  padding: 24px;
}

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

.docs-shell--embedded {
  grid-template-columns: 240px minmax(0, 1fr);
}

.docs-sidebar-nav {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(13, 20, 29, 0.98), rgba(8, 13, 20, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.docs-shell--embedded .docs-sidebar-nav {
  top: 24px;
}

.docs-sidebar-nav__group + .docs-sidebar-nav__group {
  margin-top: 18px;
}

.docs-sidebar-nav__label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: start;
  transition: color 160ms ease, background-color 160ms ease,
    border-color 160ms ease, transform 160ms ease;
}

.docs-nav-link:hover,
.docs-nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 166, 89, 0.18);
  transform: translateX(2px);
}

.docs-nav-link--endpoint {
  font-size: 0.92rem;
}

.docs-main-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.docs-section-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(13, 20, 29, 0.98), rgba(7, 12, 19, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 40px rgba(0, 0, 0, 0.12);
}

.docs-section-card--hero {
  background:
    radial-gradient(circle at top right, rgba(0, 166, 89, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(15, 24, 34, 0.98), rgba(8, 14, 22, 0.94));
}

.docs-section-card--hero h2,
.docs-section-card__head h3 {
  margin: 10px 0 10px;
  font-size: 1.34rem;
}

.docs-section-card__head p,
.docs-section-card--hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.docs-base-url {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(4, 8, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-base-url span,
.docs-quickstart__title,
.docs-info-card__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-base-url code,
.docs-path {
  padding: 8px 10px;
  border-radius: 12px;
  background: #02060c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d0f4e1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
}

.docs-quickstart {
  margin-top: 20px;
}

.docs-config-grid,
.docs-quickstart__grid,
.docs-endpoint-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.docs-quickstart-card,
.docs-info-card {
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-quickstart-card strong {
  display: block;
  margin: 12px 0 8px;
}

.docs-quickstart-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.docs-info-card__body {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.docs-endpoint-card__route {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.docs-chip-list,
.docs-note-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.docs-chip-list li,
.docs-note-item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 8, 15, 0.54);
  color: var(--text);
}

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

.docs-endpoint-card .docs-info-card {
  height: 100%;
}

.docs-layout,
.portal-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.method-badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pill.subtle {
  color: var(--muted);
}

.method-badge {
  background: rgba(0, 166, 89, 0.14);
  color: #9fe8c3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-badge--get {
  background: rgba(38, 166, 154, 0.14);
  color: #9ff0dd;
}

.method-badge--post {
  background: rgba(37, 99, 235, 0.14);
  color: #bcd5ff;
}

.method-badge--put {
  background: rgba(245, 158, 11, 0.14);
  color: #ffd999;
}

.method-badge--delete {
  background: rgba(239, 68, 68, 0.14);
  color: #ffc0c0;
}

.status-list,
.bullet-list,
.list {
  display: grid;
  gap: 12px;
}

.status-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-row:last-child {
  border-bottom: none;
}

.status-row strong {
  min-width: 138px;
}

.code-block {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  white-space: pre;
  background: #03070d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #d0f4e1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.6;
}

.preview-metrics,
.preview-ops {
  display: grid;
  gap: 12px;
}

.preview-ops ul {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--muted);
  line-height: 1.8;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-title {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 700;
}

.dashboard-nav {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.nav-item {
  text-align: start;
  border: 1px solid transparent;
  border-radius: 16px;
}

.content {
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.topbar h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.tab {
  display: none;
  gap: 18px;
}

.tab.active {
  display: grid;
}

.api-keys-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1.05fr);
  gap: 20px;
  align-items: stretch;
}

.api-key-inventory {
  margin-top: 20px;
}

.integration-package-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  margin-top: 16px;
}

.integration-package-primary,
.integration-package-secondary {
  display: grid;
  gap: 16px;
  align-content: start;
}

.integration-essentials-grid,
.integration-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.integration-checklist,
.integration-settings-card,
.integration-output-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(0, 166, 89, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(11, 18, 27, 0.98), rgba(6, 11, 18, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 28px rgba(0, 0, 0, 0.14);
}

.integration-checklist__head strong,
.integration-settings-card strong {
  font-size: 1rem;
}

.integration-settings-card p,
.integration-output-card__help {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.integration-output-grid {
  margin-top: 18px;
}

.integration-output-card .code-block {
  margin-top: 0;
}

.api-key-latest,
.api-key-workbench {
  height: 100%;
  display: grid;
  align-content: start;
}

.api-key-workbench {
  background:
    linear-gradient(180deg, rgba(15, 24, 34, 0.96), rgba(10, 16, 24, 0.93)),
    rgba(15, 24, 34, 0.94);
}

.api-key-latest,
.api-key-inventory {
  background:
    linear-gradient(180deg, rgba(15, 24, 34, 0.98), rgba(8, 14, 22, 0.94)),
    rgba(15, 24, 34, 0.95);
}

.api-key-create-note {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(4, 8, 15, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.api-key-create-note strong {
  display: block;
  margin-bottom: 6px;
}

.api-key-create-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: rgba(4, 8, 15, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

th,
td {
  padding: 14px 16px;
  text-align: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-paid,
.status-approved,
.status-active {
  background: rgba(0, 166, 89, 0.18);
  color: #9be7c0;
}

.status-awaiting_approval,
.status-created {
  background: rgba(41, 155, 217, 0.18);
  color: #a8ddff;
}

.status-rejected,
.status-expired,
.status-declined,
.status-revoked {
  background: rgba(255, 125, 125, 0.14);
  color: #ffd0d0;
}

.secret-card {
  margin-top: 4px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(0, 166, 89, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(11, 18, 27, 0.98), rgba(7, 12, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 18px;
  min-height: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 48px rgba(0, 0, 0, 0.18);
}

.secret-card.is-empty {
  background:
    linear-gradient(180deg, rgba(11, 18, 27, 0.96), rgba(8, 13, 21, 0.94));
}

.secret-empty-state,
.secret-live-state {
  display: grid;
  gap: 16px;
}

.secret-empty-state {
  place-items: start;
  padding: 10px;
  border-radius: 20px;
  border: 1px dashed rgba(0, 166, 89, 0.18);
  background: rgba(0, 166, 89, 0.04);
}

.secret-empty-state__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 166, 89, 0.1);
  border: 1px solid rgba(0, 166, 89, 0.16);
  color: #9be7c0;
  font-size: 1.5rem;
  font-weight: 700;
}

.secret-empty-state__title,
.api-key-record__title {
  margin: 0;
  font-size: 1.08rem;
}

.secret-card h4 {
  margin: 10px 0 8px;
}

.secret-card__description,
.secret-card__hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.secret-label,
.api-key-origins-label,
.credential-box__label,
.data-box__label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-stack {
  display: grid;
  gap: 14px;
}

.credential-box,
.data-box {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12, 18, 27, 0.98), rgba(6, 11, 18, 0.94));
  border: 1px solid rgba(140, 157, 177, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 28px rgba(0, 0, 0, 0.14);
}

.credential-box--accent {
  background:
    linear-gradient(180deg, rgba(0, 166, 89, 0.14), rgba(7, 17, 24, 0.96));
  border-color: rgba(0, 166, 89, 0.28);
}

.credential-box__header,
.credential-box__actions,
.secret-card__footer,
.api-key-record__header-actions,
.api-key-inline-actions,
.api-key-chip-row,
.api-key-origins {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.credential-box__header,
.secret-card__footer {
  justify-content: space-between;
}

.credential-box__actions {
  justify-content: flex-end;
}

.api-key-record__header-actions {
  justify-content: flex-end;
}

.credential-box__value,
.secret-value,
.api-key-code {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: #02060c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #daf8e8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.65;
  word-break: break-all;
}

.secret-card__copy-all {
  flex: 0 0 auto;
  min-width: 148px;
}

.api-key-security-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(0, 166, 89, 0.12), rgba(9, 15, 24, 0.52));
}

.api-key-security-banner__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(0, 166, 89, 0.16);
  border: 1px solid rgba(0, 166, 89, 0.18);
  color: #9be7c0;
  font-weight: 800;
}

.api-key-security-banner strong {
  display: block;
  margin-bottom: 6px;
}

.api-key-security-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.api-keys-list {
  gap: 14px;
}

.api-key-record {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(0, 166, 89, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(9, 15, 24, 0.98), rgba(5, 10, 18, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.api-key-record__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 2px;
}

.api-key-record__header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.api-key-record__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.credential-box--record,
.data-box {
  min-height: 100%;
}

.credential-box--wide {
  grid-column: 1 / -1;
}

.api-key-chip,
.api-key-origin {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
}

.api-key-chip--label {
  color: var(--muted);
  border-style: dashed;
  background: transparent;
}

.api-key-origin--wildcard {
  color: #9be7c0;
  background: rgba(0, 166, 89, 0.12);
  border-color: rgba(0, 166, 89, 0.18);
}

.api-key-chip-row,
.api-key-origins,
.api-key-inline-actions {
  align-items: flex-start;
}

.data-box__stack {
  display: grid;
  gap: 10px;
}

.data-box__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(3, 7, 13, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.data-box__row span {
  color: var(--muted);
}

.data-box__row strong {
  text-align: end;
}

.api-key-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
}

.api-key-empty-state {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.api-key-empty-state strong {
  display: block;
}

.api-key-empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.widget-preview {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 166, 89, 0.18);
  background: linear-gradient(135deg, #151d27, #081118);
}

.widget-preview__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
}

.widget-preview__amount {
  margin: 18px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.widget-preview__hint {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.surface-card {
  margin-top: 16px;
}

body.rtl {
  direction: rtl;
}

body.rtl .site-header,
body.rtl .topbar,
body.rtl .list-item,
body.rtl .status-row,
body.rtl .widget-preview__head,
body.rtl .header-actions,
body.rtl .hero-actions,
body.rtl .pill-set,
body.rtl .sidebar-footer {
  direction: rtl;
}

body.rtl .site-nav,
body.rtl .dashboard-nav {
  direction: rtl;
}

body.rtl .site-nav {
  gap: 18px;
}

body.rtl .hero-copy,
body.rtl .auth-panel,
body.rtl .section-header,
body.rtl .panel,
body.rtl .content,
body.rtl .sidebar,
body.rtl .field,
body.rtl .preview-ops {
  text-align: right;
}

body.rtl .nav-link,
body.rtl .nav-item,
body.rtl .auth-switch__button {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

body.rtl .section-header h2,
body.rtl .auth-panel .panel-header h2,
body.rtl .topbar h2,
body.rtl .sidebar-title {
  letter-spacing: 0;
}

body.rtl .hero-copy h1 {
  max-width: 9ch;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

body.rtl .hero-text,
body.rtl .panel-header p,
body.rtl .section-header p,
body.rtl .status-text,
body.rtl .feature-card p,
body.rtl .timeline-card p,
body.rtl .doc-card p,
body.rtl .ops-card p,
body.rtl .wallet-card .label,
body.rtl .stat-card .label,
body.rtl .list-item .meta,
body.rtl .preview-ops ul,
body.rtl .widget-preview__hint {
  line-height: 1.9;
}

body.rtl .option-pill {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

body.rtl .status-row strong {
  min-width: 154px;
}

body.rtl .result-code,
body.rtl .code-block {
  direction: ltr;
  text-align: left;
}

body.rtl .docs-nav-link,
body.rtl .docs-endpoint-card__route,
body.rtl .docs-base-url {
  flex-direction: row-reverse;
}

body.rtl .docs-nav-link {
  text-align: right;
}

body.rtl .api-key-record__header-actions,
body.rtl .api-key-inline-actions,
body.rtl .credential-box__actions,
body.rtl .secret-card__footer {
  justify-content: flex-start;
}

@media (max-width: 1180px) {
  .hero-grid,
  .app-shell,
  .docs-grid,
  .timeline-grid,
  .card-grid,
  .stat-grid,
  .docs-layout,
  .portal-preview,
  .two-column-layout,
  .api-keys-layout,
  .integration-package-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-shell,
  .docs-shell--embedded,
  .docs-config-grid,
  .docs-quickstart__grid,
  .docs-endpoint-card__grid,
  .integration-essentials-grid,
  .integration-output-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-sidebar-nav {
    position: static;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .page-shell,
  .site-header {
    padding-inline: 18px;
  }

  .hero-copy,
  .auth-panel,
  .panel,
  .sidebar,
  .content,
  .content-section .glass-panel {
    padding: 20px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .hero-badges,
  .two-field,
  .option-grid,
  .wallet-grid,
  .api-key-record__grid,
  .integration-essentials-grid,
  .integration-output-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions > button {
    flex: 1 1 auto;
  }

  .topbar,
  .panel-header,
  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .api-key-record__header,
  .api-key-record__header-actions,
  .credential-box__header,
  .secret-card__footer,
  .data-box__row,
  .docs-base-url,
  .docs-endpoint-card__route {
    align-items: flex-start;
  }

  .credential-box__header,
  .secret-card__footer,
  .data-box__row,
  .docs-base-url {
    flex-direction: column;
  }

  .status-row strong {
    min-width: 110px;
  }
}
