:root {
  --fp-bg: #1E1E1B;
  --fp-bg-warm: #B1A38B;
  --fp-bg-gradient: linear-gradient(116deg, #B1A38B 55%, #1E1E1B 55%, #1E1E1B 100%);
  --fp-surface: rgba(30, 30, 27, 0.72);
  --fp-surface2: rgba(30, 30, 27, 0.88);
  --fp-border: rgba(177, 163, 139, 0.28);
  --fp-text: #ffffff;
  --fp-muted: rgba(255, 255, 255, 0.72);
  --fp-accent: #B1A38B;
  --fp-accent2: #D4C7B0;
  --fp-accent-dark: #1E1E1B;
  --fp-success: #10b981;
  --fp-danger: #ef4444;
  --fp-warning: #f59e0b;
  --fp-radius: 0.75rem;
  --fp-radius-lg: 1rem;
}

* { box-sizing: border-box; }

body.fp-body, button, input, select, textarea, table, th, td {
  font-family: Vazirmatn, Tahoma, sans-serif;
}

body.fp-body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--fp-bg-gradient);
  background-attachment: fixed;
  color: var(--fp-text);
  direction: rtl;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #E8DFD0; }
a:hover { color: #fff; }

.fp-muted { color: var(--fp-muted); }
.fp-text-sm { font-size: 0.875rem; }
.fp-text-xs { font-size: 0.75rem; }
.fp-font-mono { font-family: ui-monospace, monospace; }
.fp-ltr { direction: ltr; text-align: left; }

.fp-page-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.25rem; color: #fff; }
.fp-page-subtitle { color: var(--fp-muted); font-size: 0.9rem; margin: 0 0 1.5rem; }

.fp-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.fp-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.fp-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.fp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.fp-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.fp-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }

.fp-card {
  background: rgba(22, 22, 20, 0.98);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-lg);
  padding: 1.25rem;
}
.fp-card h3 { margin: 0 0 0.5rem; font-size: 1rem; color: #ffffff; }
.fp-card p { color: rgba(255, 255, 255, 0.90); font-size: 0.9rem; margin: 0; }

.fp-stat-card {
  background: linear-gradient(135deg, rgba(35, 33, 30, 0.98), rgba(23, 22, 20, 0.98));
  border: 1px solid rgba(177, 163, 139, 0.2);
  border-radius: var(--fp-radius-lg);
  padding: 1.25rem;
}
.fp-stat-card .fp-stat-label { color: var(--fp-muted); font-size: 0.8rem; margin-bottom: 0.35rem; }
.fp-stat-card .fp-stat-value { font-size: 1.75rem; font-weight: 800; color: #fff; }

.fp-hero-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(177, 163, 139, 0.12) 45%, rgba(30, 30, 27, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--fp-radius-lg);
  padding: 1.5rem;
  color: #fff;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.fp-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(177, 163, 139, 0.22), transparent 50%);
  pointer-events: none;
}
.fp-hero-card > * { position: relative; z-index: 1; }
.fp-hero-card .fp-stat-label { opacity: 0.9; font-size: 0.85rem; color: #fff; }
.fp-hero-card .fp-stat-value { font-size: 2rem; font-weight: 800; color: #fff; }
.fp-hero-card a { color: rgba(255, 255, 255, 0.85); }
.fp-hero-card a:hover { color: #fff; }

.fp-btn, .fp-btn-primary, .fp-btn-ghost, .fp-btn-outline, .fp-btn-danger, .fp-btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.1rem; border-radius: var(--fp-radius);
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer; font-family: inherit;
  transition: opacity 0.15s, transform 0.15s;
}
.fp-btn:hover, .fp-btn-primary:hover, .fp-btn-ghost:hover, .fp-btn-outline:hover, .fp-btn-danger:hover { opacity: 0.92; }
.fp-btn-primary {
  background: linear-gradient(145deg, #D4C7B0 0%, #FFB73A 48%, #8a7d68 100%);
  color: #1E1E1B;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.fp-btn-primary:hover { color: #1E1E1B; }
.fp-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(177, 163, 139, 0.4);
  color: #fff;
  backdrop-filter: blur(8px);
}
.fp-btn-outline {
  background: transparent;
  border: 1px solid rgba(177, 163, 139, 0.65);
  color: #E8DFD0;
}
.fp-btn-outline:hover { background: rgba(177, 163, 139, 0.15); color: #fff; }
.fp-btn-danger { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; }
.fp-btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.fp-btn-block { width: 100%; }

.fp-input, .fp-select, .fp-textarea {
  width: 100%;
  background: var(--fp-surface2);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  color: var(--fp-text);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
}
.fp-input:focus, .fp-select:focus, .fp-textarea:focus {
  outline: none;
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 3px rgba(177, 163, 139, 0.25);
}
.fp-textarea { min-height: 120px; resize: vertical; }
.fp-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--fp-text); }

.fp-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(177, 163, 139, 0.22);
  color: #E8DFD0;
  border: 1px solid rgba(177, 163, 139, 0.45);
}

.fp-code, pre.fp-code {
  background: rgba(30, 30, 27, 0.95);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  color: #fff;
  margin: 0;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
.fp-code code { font-family: ui-monospace, monospace; }

/* Service result: main UI font (not monospace) */
.fp-result-text,
pre.fp-result-text {
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.fp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-lg);
  background: #171715;
}
.fp-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: #171715; }
.fp-table th {
  background: #22211e;
  color: var(--fp-muted);
  font-weight: 600;
  text-align: right;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--fp-border);
  white-space: nowrap;
}
.fp-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--fp-border);
  color: var(--fp-text);
}
.fp-table tr:last-child td { border-bottom: none; }
.fp-table tr:hover td { background: rgba(255,255,255,.04); }

.fp-alert { padding: 0.85rem 1rem; border-radius: var(--fp-radius); font-size: 0.875rem; margin-bottom: 0.75rem; }
.fp-alert-success { background: rgba(12, 28, 20, 0.95); border: 1px solid rgba(16, 185, 129, 0.4); color: #34d399; }
.fp-alert-error, .fp-alert-danger { background: rgba(28, 12, 12, 0.95); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }
.fp-alert-info { background: rgba(26, 25, 22, 0.95); border: 1px solid rgba(177, 163, 139, 0.4); color: #b1a38b; }
.fp-alert-warning { background: rgba(28, 22, 12, 0.95); border: 1px solid rgba(245, 158, 11, 0.4); color: #fbbf24; }

.fp-empty { text-align: center; padding: 2.5rem 1rem; color: var(--fp-muted); }
.fp-empty i { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.5; display: block; }

.fp-service-card { overflow: hidden; padding: 0; }
.fp-service-card-img {
  height: 140px;
  background: var(--fp-surface2);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--fp-border);
}
.fp-service-card-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.fp-service-card-body { padding: 1rem; }

.fp-chat-box {
  background: var(--fp-surface2);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-lg);
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
}
.fp-chat-msg {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--fp-radius);
  font-size: 0.9rem;
  max-width: 85%;
}
.fp-chat-msg.user { background: rgba(177, 163, 139, 0.22); margin-right: 0; margin-left: auto; }
.fp-chat-msg.assistant { background: var(--fp-surface); border: 1px solid var(--fp-border); }

.fp-divider { border: none; border-top: 1px solid var(--fp-border); margin: 1rem 0; }

/* Landing / marketing (shared) */
.fp-container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.fp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(177, 163, 139, 0.18);
  background: linear-gradient(180deg, rgba(30, 30, 27, 0.82) 0%, rgba(30, 30, 27, 0.55) 100%);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}
.fp-header::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(177, 163, 139, 0.55), transparent);
  pointer-events: none;
}
.fp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
  position: relative;
}
.fp-logo {
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  font-size: 1.12rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.25s ease, color 0.2s ease;
  z-index: 2;
}
.fp-logo:hover { color: #E8DFD0; transform: translateY(-1px); }
.fp-logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0.85rem;
  background: rgba(177, 163, 139, 0.12);
  border: 1px solid rgba(177, 163, 139, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.fp-logo:hover .fp-logo-mark {
  border-color: rgba(212, 199, 176, 0.55);
  box-shadow: 0 10px 28px rgba(177, 163, 139, 0.28);
}
.fp-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 0.45rem;
  object-fit: cover;
  display: block;
}
.fp-logo-text { letter-spacing: -0.01em; }

.fp-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 2;
}
.fp-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #E8DFD0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.fp-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fp-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.fp-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.fp-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.fp-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.fp-nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.fp-nav-link:hover {
  color: #fff;
  background: rgba(177, 163, 139, 0.16);
}
.fp-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.fp-nav-login {
  color: #E8DFD0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: var(--fp-radius);
  border: 1px solid rgba(177, 163, 139, 0.28);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.fp-nav-login:hover {
  color: #fff;
  border-color: rgba(212, 199, 176, 0.5);
  background: rgba(177, 163, 139, 0.12);
}
.fp-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.6rem 1.1rem;
  border-radius: var(--fp-radius);
  color: #1E1E1B;
  background: linear-gradient(135deg, #D4C7B0 0%, #B1A38B 100%);
  box-shadow: 0 8px 22px rgba(177, 163, 139, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.fp-nav-cta:hover {
  color: #1E1E1B;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(177, 163, 139, 0.4);
  filter: brightness(1.05);
}

@media (max-width: 860px) {
  .fp-nav-toggle { display: inline-flex; }
  .fp-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: var(--fp-radius-lg);
    background: rgba(30, 30, 27, 0.96);
    border: 1px solid rgba(177, 163, 139, 0.22);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .fp-nav.is-open { display: flex; }
  .fp-nav-links {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--fp-radius);
    padding: 0.35rem;
  }
  .fp-nav-link { text-align: right; }
  .fp-nav-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .fp-nav-login, .fp-nav-cta { text-align: center; justify-content: center; }
}

.fp-hero { padding: 4rem 0 3rem; text-align: center; }
.fp-hero-icon {
  display: block;
  height: auto;
}
.fp-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1rem; line-height: 1.2; color: #fff; }
.fp-hero p { color: var(--fp-muted); max-width: 640px; margin: 0 auto 2rem; font-size: 1.05rem; }
.fp-hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.fp-section { padding: 3rem 0; }
.fp-section h2 { text-align: center; margin-bottom: 2rem; font-size: 1.75rem; color: #fff; }
.fp-pricing-card { text-align: center; }
.fp-price { font-size: 1.5rem; font-weight: 800; margin: .5rem 0 1rem; color: #E8DFD0; }
.fp-footer {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  padding: 3.25rem 0 1.75rem;
  color: var(--fp-muted);
  border-top: 1px solid rgba(177, 163, 139, 0.22);
  background:
    linear-gradient(180deg, rgba(30, 30, 27, 0.15) 0%, rgba(30, 30, 27, 0.72) 40%, rgba(20, 20, 18, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.fp-footer-glow {
  pointer-events: none;
  position: absolute;
  inset: auto auto -40% -10%;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 163, 139, 0.22) 0%, rgba(177, 163, 139, 0) 68%);
  animation: fp-footer-pulse 8s ease-in-out infinite;
}
@keyframes fp-footer-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}
.fp-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 2.5rem 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.fp-footer-brand { max-width: 22rem; }
.fp-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  transition: transform 0.25s ease, color 0.2s ease;
}
.fp-footer-logo:hover { color: #E8DFD0; transform: translateY(-1px); }
.fp-footer-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.fp-footer-tagline {
  margin: 0 0 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}
.fp-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: var(--fp-radius);
  background: linear-gradient(135deg, #D4C7B0 0%, #B1A38B 100%);
  color: #1E1E1B;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.875rem;
  box-shadow: 0 10px 28px rgba(177, 163, 139, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.fp-footer-cta:hover {
  color: #1E1E1B;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(177, 163, 139, 0.4);
  filter: brightness(1.05);
}
.fp-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}
.fp-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.fp-footer-col h3 {
  margin: 0 0 0.35rem;
  color: #E8DFD0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.fp-footer-col a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.9rem;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}
.fp-footer-col a:hover {
  color: #fff;
  transform: translateX(-3px);
}
.fp-footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.fp-copy { font-size: .8rem; margin: 0; color: rgba(255, 255, 255, 0.45); }
.fp-footer-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.fp-footer-enamad {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-left: 0.25rem;
}
.fp-footer-enamad img {
  width: 72px;
  height: auto;
  max-height: 80px;
  cursor: pointer;
  border-radius: 0.35rem;
  background: #fff;
  padding: 2px;
}
.fp-footer-chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: #E8DFD0;
  border: 1px solid rgba(177, 163, 139, 0.3);
  background: rgba(177, 163, 139, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .fp-footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .fp-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .fp-footer-cols { grid-template-columns: 1fr; }
  .fp-footer-bottom { flex-direction: column; align-items: flex-start; }
}

.fp-docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}
.fp-docs-nav {
  background: rgba(30, 30, 27, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--fp-radius-lg);
  padding: 1rem 0.85rem;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  position: sticky;
  top: 5.25rem;
}
.fp-docs-nav h3 {
  margin: 0 0 0.75rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.fp-docs-nav a {
  display: block;
  padding: 0.45rem 0.65rem;
  color: var(--fp-muted);
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.fp-docs-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.fp-docs-nav a.active {
  color: #fff;
  background: rgba(177, 163, 139, 0.22);
  border: 1px solid rgba(177, 163, 139, 0.28);
}

.fp-docs-content {
  min-width: 0;
  background: rgba(30, 30, 27, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--fp-radius-lg);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fp-docs-content h1 { margin: 0 0 1rem; font-size: 1.75rem; color: #fff; }
.fp-docs-content h2 { margin: 1.75rem 0 0.75rem; font-size: 1.25rem; color: #fff; }
.fp-docs-content h3 { margin: 1.25rem 0 0.5rem; font-size: 1.05rem; color: #E8DFD0; }
.fp-docs-content p { color: var(--fp-muted); margin: 0 0 1rem; }
.fp-docs-content ol, .fp-docs-content ul {
  margin: 0 0 1.25rem;
  padding-right: 1.25rem;
  color: var(--fp-muted);
}
.fp-docs-content li { margin-bottom: 0.4rem; }
.fp-docs-content .fp-table-wrap {
  margin: 1rem 0 1.5rem;
}
.fp-docs-content .fp-table th,
.fp-docs-content .fp-table td {
  text-align: right;
}
.fp-docs-content .fp-table code {
  white-space: nowrap;
}
.fp-docs-content .fp-inline-code,
.fp-docs-content :not(pre) > code {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.35rem;
  padding: 0.1rem 0.4rem;
  color: #F5EDE0;
}
.fp-docs-content pre.fp-code-block,
.fp-docs-content pre {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  background: rgba(12, 12, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--fp-radius);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.fp-docs-content pre code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #F3F0EA;
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}

/* Auth pages */
.fp-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--fp-bg-gradient);
  background-attachment: fixed;
}
.fp-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
}
.fp-auth-logo { text-align: center; margin-bottom: 1.5rem; }
.fp-auth-logo a {
  color: #fff; font-size: 1.25rem; font-weight: 800; text-decoration: none;
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.fp-auth-logo-icon { width: 160px; height: 160px; border-radius: 1.5rem; object-fit: cover; display: block; filter: drop-shadow(0 16px 32px rgba(0,0,0,.4)); }
.fp-auth-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.25rem; color: #fff; text-align: center; }
.fp-auth-sub { color: var(--fp-muted); font-size: 0.85rem; text-align: center; margin: 0 0 1.5rem; }
.fp-form-group { margin-bottom: 1rem; }
.fp-auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; color: var(--fp-muted); }
.fp-otp-input { letter-spacing: 0.4em; text-align: center; font-size: 1.25rem; }

.fp-auth-steps-wrap { position: relative; overflow: hidden; min-height: 260px; transition: height 0.3s; }
.fp-auth-step {
  position: absolute; inset: 0; opacity: 0; transform: translateX(100%);
  pointer-events: none; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; justify-content: space-between;
}
.fp-auth-step.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.fp-auth-step.prev { transform: translateX(-100%); }
.fp-auth-divider { position: relative; text-align: center; margin: 1rem 0; }
.fp-auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid var(--fp-border); }
.fp-auth-divider span { position: relative; background: var(--fp-surface); padding: 0 0.75rem; font-size: 0.7rem; color: var(--fp-muted); font-weight: 700; }

.fp-auth-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fp-border);
  border-radius: 0.85rem;
}
.fp-auth-method-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--fp-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 0.5rem;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.fp-auth-method-tab i { margin-left: 0.35rem; opacity: 0.85; }
.fp-auth-method-tab.is-active {
  background: rgba(232, 223, 208, 0.12);
  color: #fff;
}
.fp-auth-method-tab:hover:not(.is-active) { color: var(--fp-text); }
.fp-auth-method[hidden] { display: none !important; }

/* Auth / panel modal */
.fp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.fp-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.fp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 9, 0.72);
  backdrop-filter: blur(6px);
}
.fp-modal-dialog {
  position: relative;
  width: min(100%, 420px);
  background: var(--fp-surface, #252320);
  border: 1px solid var(--fp-border, rgba(255,255,255,0.1));
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.35rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.fp-modal.is-open .fp-modal-dialog {
  transform: translateY(0) scale(1);
}
.fp-modal-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.fp-modal-icon.is-success {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}
.fp-modal-icon.is-error {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}
.fp-modal-icon.is-warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.fp-modal-icon.is-info {
  background: rgba(232, 223, 208, 0.12);
  color: #E8DFD0;
}
.fp-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.fp-modal-body {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fp-muted, #a8a29e);
  white-space: pre-wrap;
}
.fp-modal-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fp-tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--fp-border); margin-bottom: 1rem; flex-wrap: wrap; }
.fp-tab {
  padding: 0.5rem 1rem; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--fp-muted); font-family: inherit; font-weight: 600; font-size: 0.875rem; cursor: pointer;
}
.fp-tab.active { color: #E8DFD0; border-bottom-color: var(--fp-accent); }
.fp-tab:hover { color: var(--fp-text); }

.fp-code-samples {
  max-width: 52rem;
  margin: 0 auto;
  direction: ltr;
  unicode-bidi: isolate;
}
.fp-code-tabs {
  direction: ltr;
  text-align: left;
  justify-content: flex-start;
}
.fp-code-tabs .fp-tab {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.01em;
}
.fp-code-panel-wrap {
  position: relative;
  direction: ltr;
}
.fp-code-copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  left: auto;
  z-index: 2;
  direction: rtl;
  background: rgba(177, 163, 139, 0.2);
  border: 1px solid rgba(177, 163, 139, 0.35);
  color: #E8DFD0;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.fp-code-copy:hover { background: rgba(177, 163, 139, 0.32); color: #fff; }
pre.fp-code.fp-code-panel {
  margin: 0;
  min-height: 11rem;
  white-space: pre;
  line-height: 1.55;
  padding-top: 1rem;
  padding-right: 4.75rem;
}
.fp-code-panel[hidden] { display: none !important; }

.fp-service-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fp-api-samples-modal .fp-api-samples-dialog {
  width: min(100%, 720px);
  max-height: min(92vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1rem;
}
.fp-api-samples-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fp-api-samples-key {
  margin-bottom: 1rem;
}
.fp-api-samples-modal .fp-code-tabs {
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.fp-api-samples-modal .fp-code-panel-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.fp-api-samples-modal pre.fp-code.fp-code-panel {
  max-height: none;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.fp-api-samples-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--fp-border, rgba(255,255,255,0.1));
  flex-shrink: 0;
}

.fp-link { color: #E8DFD0; text-decoration: none; font-weight: 600; }
.fp-link:hover { color: #fff; }

@media (max-width: 768px) {
  .fp-docs-layout { grid-template-columns: 1fr; }
  .fp-docs-nav { position: static; }
}

/* Hide scrollbars globally across the platform panel, maintaining scroll functionality */
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html, body, .fp-table-wrap, .fp-panel-main, .fp-panel-content, div, pre, code {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
}
