:root {
    --primary: #1e88e5;
    --primary-dark: #1565c0;
    --secondary: #43a047;
    --secondary-dark: #2e7d32;
    --accent: #f57c00;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #2c3e50;
    --muted: #546e7a;
    --border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.10);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; padding-top: 80px; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
svg { width: 18px; height: 18px; stroke-width: 2; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
[hidden] { display: none !important; }
.shell { width: min(100% - 48px, 1280px); margin-inline: auto; }
.narrow-shell { max-width: 1040px; }

:focus-visible { outline: 3px solid rgba(30, 136, 229, 0.35); outline-offset: 3px; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 70px; background: rgba(248, 250, 252, 0.94); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.brand-mark { display: inline-grid; place-items: center; min-width: 44px; height: 40px; padding: 0 12px; flex: 0 0 auto; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; box-shadow: 0 3px 8px rgba(30, 136, 229, 0.22); }
.brand-name { color: var(--primary); font-size: 20px; font-weight: 600; background: linear-gradient(90deg, var(--primary), var(--secondary)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.main-nav { display: flex; align-items: center; gap: 24px; height: 100%; }
.nav-item { position: relative; display: grid; place-items: center; height: 100%; padding: 0 2px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 180ms ease; }
.nav-item::after { content: ""; position: absolute; bottom: 13px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 220ms ease; }
.nav-item:hover, .nav-item.active { color: var(--primary); }
.nav-item:hover::after, .nav-item.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 230px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.035); color: var(--muted); transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.icon-btn:hover { background: rgba(0, 0, 0, 0.08); color: var(--text); }
.icon-btn:active { transform: scale(0.96); }
.mobile-menu { display: none; }
.login-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 160ms ease; }
.login-link:hover { color: var(--primary); }

.home-main { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 0; min-height: 560px; }
.home-main::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; left: 0; height: 330px; opacity: .42; pointer-events: none; background-image: linear-gradient(rgba(30, 136, 229, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 136, 229, .055) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent); animation: grid-drift 22s linear infinite; }
.home-main::after { content: ""; position: absolute; z-index: -1; top: 300px; left: 50%; width: min(760px, 88vw); height: 1px; background: rgba(30, 136, 229, .15); transform: translateX(-50%); box-shadow: 0 0 26px 6px rgba(30, 136, 229, .06); }
.hero { position: relative; text-align: center; animation: fade-up 520ms cubic-bezier(.22,1,.36,1) both; }
.hero h1 { margin: 0 0 13px; font-size: 32px; line-height: 1.3; font-weight: 700; animation: title-reveal 700ms cubic-bezier(.22,1,.36,1) both; }
.hero h1 a { color: var(--primary-dark); background: linear-gradient(90deg, var(--primary-dark), var(--secondary-dark)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats { color: var(--muted); font-size: 16px; }
.hero-description { max-width: 720px; margin: 0 auto 14px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-stats strong { color: var(--primary); }
.hero-clock { min-height: 24px; margin: 15px 0 0; color: #738793; font-size: 14px; font-variant-numeric: tabular-nums; }
.search-box { position: relative; max-width: 600px; margin: 31px auto 36px; animation: fade-up 600ms 120ms cubic-bezier(.22,1,.36,1) both; }
.search-input { width: 100%; height: 56px; padding: 0 65px 0 24px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font-size: 16px; box-shadow: var(--shadow-md); transition: border 180ms ease, box-shadow 180ms ease; }
.search-input::placeholder { color: #90a4ae; }
.search-input:focus { border-color: rgba(30, 136, 229, 0.45); outline: none; box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.16), var(--shadow-md); }
.search-button { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: #fff; transition: background 160ms ease, transform 160ms ease; }
.search-button:hover { background: var(--primary-dark); }
.search-button:active { transform: scale(0.95); }

.api-list { animation: fade-up 620ms 220ms cubic-bezier(.22,1,.36,1) both; }
.announcement { display: flex; align-items: center; gap: 10px; min-height: 46px; margin-bottom: 24px; padding: 10px 15px; border: 1px solid #bfdbfe; border-radius: 7px; background: #eff6ff; color: #1e3a5f; font-size: 14px; }
.announcement svg { color: #2563eb; }
.api-card { display: flex; flex-direction: column; width: min(100%, 390px); min-height: 226px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-md); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.api-card { position: relative; }
.api-card::after { content: ""; position: absolute; top: 0; left: 22px; width: 0; height: 2px; border-radius: 2px; background: var(--primary); transition: width 240ms ease; }
.api-card:hover { transform: translateY(-4px); border-color: rgba(30, 136, 229, 0.22); box-shadow: var(--shadow-lg); }
.api-card:hover::after { width: 54px; }
.api-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.api-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: linear-gradient(135deg, #ffb74d, #f57c00); color: #fff; font-size: 22px; font-weight: 700; box-shadow: var(--shadow-sm); }
.api-title-wrap { min-width: 0; }
.api-title-wrap h3 { margin: 0 0 5px; font-size: 18px; line-height: 1.3; font-weight: 600; }
.call-count { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.call-count svg { width: 14px; height: 14px; }
.api-card > p { flex: 1; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.api-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px rgba(67, 160, 71, 0.12); }
.price-tag { padding: 3px 9px; border-radius: 999px; background: rgba(245, 124, 0, 0.10); color: #d66c00; font-size: 12px; font-weight: 500; }
.empty-search { padding: 42px; text-align: center; color: var(--muted); }
.pagination-row { display: flex; align-items: center; gap: 12px; margin-top: 25px; padding: 18px 0; color: var(--muted); font-size: 14px; }
.pagination-row > span { margin-right: auto; }
.pagination { display: flex; border: 1px solid #dfe6eb; border-radius: 5px; overflow: hidden; }
.pagination a { display: grid; place-items: center; min-width: 36px; height: 34px; border-right: 1px solid #dfe6eb; background: #fff; }
.pagination a:last-child { border: 0; }
.pagination a.current { background: var(--primary); color: #fff; }
.jump-label { display: flex; align-items: center; gap: 6px; }
.jump-label input { width: 58px; height: 34px; padding: 0 8px; border: 1px solid #dfe6eb; border-radius: 5px; background: #fff; color: var(--text); }
.jump-button { height: 34px; padding: 0 13px; border: 0; border-radius: 5px; background: var(--primary); color: #fff; font-size: 13px; }

.site-footer { margin-top: 52px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner, .filing-row { display: flex; align-items: center; justify-content: space-between; min-height: 82px; font-size: 14px; }
.footer-links, .filing-links { display: flex; align-items: center; gap: 24px; }
.footer-links a:hover, .filing-links a:hover { color: var(--primary); }
.about-band { border-top: 1px solid var(--border); background: #fff; }
.about-copy { padding-block: 30px; }
.about-copy h4 { margin: 0 0 14px; color: var(--text); font-size: 16px; }
.about-copy h4 a, .about-copy p a { color: var(--primary); }
.about-copy p { margin: 8px 0; font-size: 13px; line-height: 1.8; }

.section-heading { padding: 46px 0 34px; text-align: center; }
.section-heading h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.35; }
.section-heading p { margin: 0; color: var(--muted); }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.support-panel { padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: var(--shadow-sm); }
.panel-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 8px; }
.panel-icon.blue { background: rgba(30, 136, 229, 0.12); color: var(--primary); }
.panel-icon.green { background: rgba(67, 160, 71, 0.12); color: var(--secondary); }
.support-panel h3 { margin: 0 0 10px; font-size: 18px; }
.support-panel p { margin: 0 0 6px; color: var(--text); }
.support-panel small { color: var(--muted); }
.faq-section { margin-top: 26px; padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: var(--shadow-sm); }
.faq-section > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 18px; }
.faq-section details { border-top: 1px solid var(--border); }
.faq-section summary { display: flex; align-items: center; justify-content: space-between; min-height: 58px; color: var(--text); font-size: 15px; font-weight: 500; list-style: none; cursor: pointer; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section details[open] summary svg { transform: rotate(180deg); }
.faq-section summary svg { transition: transform 180ms ease; }
.faq-section details p { margin: -2px 0 20px; color: var(--muted); font-size: 14px; }

.articles-main { padding-top: 44px; min-height: 530px; }
.content-title h2 { margin: 0 0 24px; font-size: 25px; }
.article-list { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); }
.article-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 28px; align-items: center; min-height: 132px; padding: 22px 26px; transition: background 160ms ease; }
.article-row:hover { background: rgba(30, 136, 229, 0.035); }
.article-views { display: grid; place-items: center; gap: 4px; color: var(--primary); }
.article-views strong { font-size: 14px; }
.article-body h5 { margin: 0 0 6px; font-size: 17px; }
.article-body span { display: flex; align-items: center; gap: 5px; color: #8496a1; font-size: 12px; }
.article-body span svg { width: 13px; height: 13px; }
.article-body p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.article-arrow { color: #a6b3ba; }
.prose-shell { max-width: 900px; padding-top: 42px; min-height: 520px; }
.article-detail { padding: 38px 42px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: var(--shadow-sm); }
.article-detail h1 { margin: 25px 0 14px; font-size: 30px; line-height: 1.35; }
.back-link, .text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 14px; font-weight: 500; }
.article-info { display: flex; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.article-info span { display: inline-flex; align-items: center; gap: 5px; }
.article-info svg { width: 14px; height: 14px; }
.prose { padding-top: 18px; color: #435563; line-height: 1.9; }

.auth-page { padding: 0; background: linear-gradient(135deg, #f7fbff 0%, #edf4fb 55%, #eef8f0 100%); }
.auth-shell { display: grid; place-items: center; align-content: center; min-height: 100vh; padding: 42px 20px; }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; color: var(--primary); font-size: 19px; font-weight: 600; }
.auth-card { width: min(100%, 430px); padding: 34px 38px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 12px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 18px 48px rgba(45, 75, 102, 0.12); }
.auth-heading { margin-bottom: 25px; text-align: center; }
.auth-heading h2 { margin: 0 0 8px; font-size: 24px; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 17px; }
.auth-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 14px; width: 17px; height: 17px; color: #8ca0ad; }
.input-wrap input { width: 100%; height: 48px; padding: 0 45px 0 42px; border: 1px solid #dce5eb; border-radius: 7px; background: #fff; color: var(--text); transition: border 180ms ease, box-shadow 180ms ease; }
.input-wrap input:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12); }
.input-wrap button { position: absolute; right: 5px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: #8ca0ad; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 7px; font-size: 14px; font-weight: 600; transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.primary-button { margin-top: 2px; background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(30, 136, 229, 0.20); }
.primary-button:hover { background: var(--primary-dark); }
.secondary-button { border: 1px solid #d8e2e8; background: #fff; color: var(--text); }
.secondary-button:hover { border-color: #bfcfd9; background: #f8fafc; }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.auth-links { display: flex; justify-content: space-between; margin-top: 21px; font-size: 13px; }
.auth-links.centered { justify-content: center; }
.auth-links a { color: var(--primary); }
.auth-home { display: inline-flex; align-items: center; gap: 5px; margin-top: 21px; color: var(--muted); font-size: 13px; }

.dashboard-main { padding-top: 45px; }
.portal-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: start; gap: 24px; }
.portal-sidebar { position: sticky; top: 94px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: var(--shadow-sm); }
.portal-profile { display: flex; align-items: center; gap: 11px; padding: 20px 16px; border-bottom: 1px solid var(--border); }
.profile-avatar, .admin-account > span, .user-cell > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #1e3a5f; color: #fff; font-weight: 700; }
.portal-profile div, .admin-account div, .user-cell div { display: grid; min-width: 0; }
.portal-profile small, .admin-account small, .user-cell small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.portal-sidebar nav { display: grid; padding: 8px; }
.portal-sidebar nav a { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 11px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 500; transition: background 180ms ease, color 180ms ease; }
.portal-sidebar nav a:hover, .portal-sidebar nav a.active { background: #eff6ff; color: #1d4ed8; }
.portal-content { min-width: 0; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.quick-actions a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border: 1px solid #dbe4ea; border-radius: 7px; background: var(--card); color: var(--text); font-size: 13px; font-weight: 600; transition: border-color 180ms ease, color 180ms ease; }
.quick-actions a:hover { border-color: #2563eb; color: #2563eb; }

.pricing-main { min-height: 600px; padding: 14px 0 45px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; }
.pricing-card { position: relative; display: flex; flex-direction: column; min-height: 410px; padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: var(--shadow-sm); }
.pricing-card.featured { border: 2px solid #2563eb; box-shadow: 0 12px 28px rgba(37, 99, 235, 0.13); }
.popular-tag { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 11px; font-weight: 700; }
.pricing-card h2 { margin: 0 0 7px; font-size: 21px; }
.pricing-card > p { min-height: 50px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.package-price { display: flex; align-items: flex-start; gap: 4px; margin: 24px 0; color: #0f172a; }
.package-price small { margin-top: 8px; font-size: 16px; }
.package-price strong { font-size: 40px; line-height: 1; }
.pricing-card ul { display: grid; gap: 12px; flex: 1; padding: 0; list-style: none; color: #475569; font-size: 13px; }
.pricing-card li { display: flex; align-items: center; gap: 8px; }
.pricing-card li svg { color: #059669; }
.pricing-card form, .pricing-card > .primary-button { display: flex; width: 100%; }
.pricing-card form .primary-button, .pricing-card > .primary-button { width: 100%; }

.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-pending { background: #fff7ed; color: #c2410c; }
.badge-paid, .badge-success { background: #ecfdf5; color: #047857; }
.badge-closed, .badge-failed { background: #f1f5f9; color: #64748b; }

/* 管理控制台 */
.admin-page { padding: 0; background: #f4f7fb; color: #0f172a; font-family: "Fira Sans", "Noto Sans SC", sans-serif; }
.admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 16px 12px; background: #102a43; color: #fff; }
.admin-brand { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 10px 14px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 16px; font-weight: 700; }
.admin-brand .brand-mark { width: 36px; height: 36px; flex-basis: 36px; background: #2563eb; font-size: 12px; }
.admin-sidebar nav { display: grid; gap: 4px; margin-top: 16px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 6px; color: #c9d6e2; font-size: 13px; font-weight: 500; transition: background 180ms ease, color 180ms ease; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.11); color: #fff; }
.admin-account { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-account > span { width: 34px; height: 34px; flex-basis: 34px; background: #059669; }
.admin-account small { color: #a9bdce; }
.admin-main { min-width: 0; padding: 0 28px 34px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid #e2e8f0; }
.admin-topbar span { color: #64748b; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.admin-topbar h1 { margin: 2px 0 0; font-size: 22px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.admin-stat-grid article { min-height: 132px; padding: 18px; border: 1px solid #e4e7eb; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.admin-stat-grid article > span { display: flex; align-items: center; gap: 7px; color: #64748b; font-size: 12px; }
.admin-stat-grid article > span svg { color: #2563eb; }
.admin-stat-grid strong { display: block; margin: 16px 0 3px; font-size: 28px; }
.admin-stat-grid small { color: #94a3b8; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; margin-top: 16px; }
.admin-panel { margin-top: 22px; padding: 20px; border: 1px solid #e4e7eb; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.admin-grid .admin-panel { margin-top: 0; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.admin-panel-head h2 { margin: 0 0 3px; font-size: 16px; }
.admin-panel-head p { margin: 0; color: #64748b; font-size: 12px; }
.admin-panel-head a { color: #2563eb; font-size: 12px; font-weight: 600; }
.count-badge { padding: 4px 9px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th, .admin-table td { padding: 12px 10px; border-bottom: 1px solid #edf0f3; text-align: left; vertical-align: middle; white-space: nowrap; }
.admin-table th { color: #64748b; background: #f8fafc; font-weight: 600; }
.admin-table code { color: #1d4ed8; }
.user-cell { display: flex; align-items: center; gap: 9px; }
.user-cell > span { width: 32px; height: 32px; flex-basis: 32px; font-size: 12px; }
.inline-edit, .order-actions { display: flex; align-items: center; gap: 6px; }
.inline-edit input, .inline-edit select, .package-form input, .package-form select, .package-form textarea, .content-editor input, .content-editor textarea { min-height: 38px; padding: 7px 9px; border: 1px solid #dce3e9; border-radius: 6px; background: #fff; color: #0f172a; font-size: 12px; }
.inline-edit input { width: 85px; }
.user-edit input[type="text"], .user-edit input[type="email"] { width: 130px; }
.user-edit input[type="password"] { width: 120px; }
.table-action { min-height: 34px; padding: 0 10px; border: 0; border-radius: 5px; background: #2563eb; color: #fff; font-size: 11px; font-weight: 600; }
.table-action.success { background: #059669; }
.table-action.danger { background: #dc2626; }
.admin-notices { display: grid; gap: 2px; padding: 0; list-style: none; }
.admin-notices li { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf0f3; color: #64748b; font-size: 12px; }
.admin-notices li svg { color: #2563eb; }
.admin-notices li span { display: grid; }
.admin-notices strong { color: #0f172a; }
.package-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.package-form { display: grid; gap: 12px; padding: 16px; border: 1px solid #e4e7eb; border-radius: 7px; background: #fbfdff; }
.package-form label, .content-editor label { display: grid; gap: 5px; color: #475569; font-size: 12px; font-weight: 600; }
.form-title { display: flex; align-items: center; justify-content: space-between; }
.form-title span { color: #94a3b8; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.content-editor { max-width: 820px; }
.content-editor form { display: grid; gap: 15px; }
.editor-divider { position: relative; margin-top: 8px; border-top: 1px solid #e4e7eb; }
.editor-divider span { position: relative; top: -10px; padding-right: 10px; background: #fff; color: #1e3a5f; font-size: 12px; font-weight: 700; }
.usage-stats { margin-bottom: 0; }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding: 12px; border: 1px solid #e4e7eb; border-radius: 7px; background: #f8fafc; }
.filter-bar label { display: grid; gap: 4px; color: #64748b; font-size: 11px; font-weight: 600; }
.filter-bar input, .filter-bar select { min-width: 180px; min-height: 36px; padding: 6px 9px; border: 1px solid #dce3e9; border-radius: 6px; background: #fff; color: #0f172a; }
.filter-bar .table-action { display: inline-flex; align-items: center; gap: 6px; }
.filter-bar > a { display: grid; place-items: center; min-height: 36px; padding: 0 10px; color: #64748b; font-size: 12px; }
.usage-table td { max-width: 230px; }
.table-subtext { display: block; margin-top: 3px; color: #94a3b8; font-size: 10px; }
.error-detail { display: block; max-width: 190px; margin-top: 4px; overflow: hidden; color: #b91c1c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.gateway-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.gateway-summary article { display: flex; flex-direction: column; padding: 18px; border: 1px solid #e4e7eb; border-radius: 8px; background: #fff; }
.gateway-summary span { display: flex; align-items: center; gap: 7px; color: #64748b; font-size: 12px; }
.gateway-summary span svg { color: #2563eb; }
.gateway-summary strong { display: block; margin: 13px 0 2px; font-size: 22px; }
.gateway-summary small { color: #94a3b8; }
.gateway-ok { color: #047857; }
.gateway-warn { color: #c2410c; }
.gateway-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gateway-layout .admin-panel { margin-top: 0; }
.gateway-form form, .connection-test { display: grid; gap: 14px; }
.gateway-form label, .connection-test label { display: grid; gap: 5px; color: #475569; font-size: 12px; font-weight: 600; }
.gateway-form input, .connection-test input { min-height: 42px; padding: 8px 10px; border: 1px solid #dce3e9; border-radius: 6px; background: #fff; color: #0f172a; }
.gateway-form input[readonly] { background: #f1f5f9; color: #64748b; }
.gateway-form label small { color: #94a3b8; font-size: 10px; font-weight: 400; }
.gateway-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gateway-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid #dbe4ea; border-radius: 999px; background: #f8fafc; color: #334155; font-size: 12px; font-weight: 600; }
.gateway-chip code { color: #1d4ed8; font-size: 11px; }
.gateway-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gateway-actions .primary-button, .gateway-actions .secondary-button { min-height: 42px; }
.mapping-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mapping-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mapping-flow { display: grid; justify-items: center; gap: 8px; }
.mapping-flow > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; padding: 13px; border: 1px solid #e4e7eb; border-radius: 7px; background: #f8fafc; }
.mapping-flow span { width: 100%; color: #475569; font-size: 11px; font-weight: 700; text-align: center; }
.mapping-flow code { padding: 3px 6px; border-radius: 4px; background: #eaf2ff; color: #1d4ed8; font-size: 10px; }
.mapping-flow > svg { color: #94a3b8; }
.connection-test { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e4e7eb; }
.secondary-button:disabled { cursor: not-allowed; opacity: .45; }
.security-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 12px; border: 1px solid #bbf7d0; border-radius: 7px; background: #f0fdf4; color: #166534; }
.security-note svg { flex: 0 0 18px; }
.security-note p { margin: 0; font-size: 11px; line-height: 1.6; }
.security-note strong { display: block; }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.dashboard-head h1 { margin: 0 0 6px; font-size: 30px; }
.dashboard-head p, .section-row p { margin: 0; color: var(--muted); font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-panel { display: flex; flex-direction: column; min-height: 148px; padding: 23px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: var(--shadow-sm); }
.stat-panel > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.stat-panel > span svg { color: var(--primary); }
.stat-panel strong { margin: 13px 0 4px; font-size: 28px; line-height: 1.2; }
.stat-panel small { color: var(--muted); font-size: 12px; }
.online-text { color: var(--secondary); }
.dashboard-section { margin-top: 20px; padding: 25px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: var(--shadow-sm); }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section-row h2 { margin: 0 0 4px; font-size: 19px; }
.key-box { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; padding: 10px 10px 10px 16px; border: 1px solid #dce5eb; border-radius: 7px; background: #f8fafc; }
.key-box code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #334155; font-size: 14px; }
.data-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.data-table th { color: var(--muted); font-weight: 600; }
.data-table td code { color: var(--primary); }
.empty-cell { height: 78px; color: var(--muted); text-align: center !important; }

.toast-stack { position: fixed; z-index: 500; top: 84px; right: 22px; display: grid; gap: 10px; width: min(390px, calc(100% - 44px)); }
.toast { display: grid; grid-template-columns: 20px minmax(0, 1fr) 32px; align-items: center; gap: 10px; min-height: 56px; padding: 10px 9px 10px 15px; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 7px; background: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: slide-in 240ms ease both; }
.toast-success { border-left-color: var(--secondary); }
.toast-error { border-left-color: #e53935; }
.toast-error > svg { color: #e53935; }
.toast-success > svg { color: var(--secondary); }
.toast-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }

.error-main { display: grid; place-items: center; align-content: center; min-height: 560px; padding: 40px 20px; text-align: center; }
.error-main > strong { color: var(--primary); font-size: 92px; line-height: 1; }
.error-main h1 { margin: 16px 0 8px; font-size: 27px; }
.error-main p { margin: 0 0 22px; color: var(--muted); }
.inline-button { min-width: 126px; }

/* API document page mirrors the source site's separate document visual system. */
.doc-page { padding: 20px; background: #f1f5f9; color: #334155; font: 400 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.doc-shell { max-width: 1225px; margin: 12px auto 32px; }
.api-doc-container { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05); }
.doc-hero { position: relative; padding: 42px 32px 38px; background: linear-gradient(135deg, #4a89dc 0%, #3b75c4 100%); color: #fff; }
.doc-back { position: absolute; top: 18px; right: 20px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.doc-hero h1 { margin: 0 0 8px; font-size: 40px; line-height: 1.6; font-weight: 700; }
.doc-hero > p { margin: 0 0 24px; color: rgba(255, 255, 255, 0.88); font-size: 17px; }
.doc-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.doc-badges span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 11px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); font-size: 13px; }
.doc-badges b { color: #c8f7d0; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 60px; padding: 32px; }
.doc-section + .doc-section { margin-top: 38px; }
.doc-section-title { position: relative; margin: 0 0 24px; padding-bottom: 12px; color: #1e1e2e; font-size: 24px; line-height: 1.6; font-weight: 600; }
.doc-section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: #4a89dc; }
.basic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.basic-grid > div { padding: 16px; border: 1px solid #e8edf2; border-radius: 8px; background: #f8fafc; }
.basic-grid span { display: block; margin-bottom: 8px; color: #64748b; font-size: 13px; }
.basic-grid strong { color: #334155; font-size: 14px; }
.basic-grid em { display: block; margin-top: 5px; color: #f57c00; font-style: normal; }
.method-pill { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(67, 160, 71, 0.12); color: #2e7d32 !important; }
.markdown-intro { padding: 20px 28px; border-left: 4px solid #4a89dc; background: #f8fafc; }
.markdown-intro h1 { margin: 0; font-size: 32px; line-height: 1.6; }
.markdown-intro p { margin: 4px 0 0; color: #64748b; }
.table-scroll { width: 100%; overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { padding: 14px 15px; border: 1px solid #e6ebf0; text-align: left; }
.doc-table th { background: #f3f6f9; color: #475569; font-weight: 600; white-space: nowrap; }
.doc-table tbody tr:hover { background: #fafcff; }
.doc-table code { color: #4a89dc; font-weight: 600; }
.required-pill { display: inline-block; padding: 1px 7px; border-radius: 4px; background: #fff1f0; color: #d73535; font-size: 12px; }
.code-toolbar { display: flex; justify-content: flex-end; height: 37px; }
.copy-code { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 8px 16px; border: 0; border-radius: 6px; background: #4a89dc; color: #fff; font-size: 14px; transition: background 160ms ease; }
.copy-code:hover { background: #3979c9; }
.code-block { margin: 0; padding: 20px; overflow-x: auto; border-radius: 8px; background: #1e293b; color: #d7e1ec; font-size: 13px; line-height: 1.75; }
.doc-sidebar { display: grid; align-content: start; gap: 22px; }
.side-panel { padding: 20px; border: 1px solid #e8edf2; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.045); }
.side-panel h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: #1e1e2e; font-size: 17.6px; line-height: 1.6; font-weight: 600; }
.side-panel h3 svg { color: #4a89dc; }
.endpoint-code { display: block; padding: 12px; overflow-wrap: anywhere; border-radius: 6px; background: #f4f7fa; color: #475569; font-size: 12px; line-height: 1.55; }
.full-button { width: 100%; margin: 8px 0; }
.test-api-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 49px; padding: 12px 24px; border: 0; border-radius: 8px; background: #4a89dc; color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 4px 6px rgba(74, 137, 220, 0.2); }
.auth-spec { display: grid; gap: 17px; }
.auth-spec span { display: grid; grid-template-columns: 26px 1fr; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #edf0f3; }
.auth-spec span:last-child { padding-bottom: 0; border: 0; }
.auth-spec svg { grid-row: span 2; color: #7b91a4; }
.auth-spec small { color: #7b8794; font-size: 11px; }
.auth-spec strong { color: #334155; font-size: 13px; }
.status-panel dl { margin: 0; }
.status-panel dl > div { padding: 10px 0; border-top: 1px solid #edf0f3; }
.status-panel dt { font-size: 12px; font-weight: 700; }
.status-panel dd { margin: 2px 0 0; color: #64748b; font-size: 12px; }
.status-panel .ok { color: #2e7d32; }
.status-panel .warn { color: #d97706; }
.status-panel .danger { color: #d73535; }

.tester-modal { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.7); }
.tester-dialog { position: relative; width: min(100%, 700px); max-height: calc(100vh - 40px); padding: 30px 32px 32px; overflow-y: auto; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28); }
.tester-dialog > h2 { margin: 0 0 24px; color: #4a89dc; font-size: 24px; line-height: 1.6; }
.tester-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #64748b; }
#api-tester { display: grid; gap: 17px; }
#api-tester label { display: grid; gap: 7px; color: #475569; font-size: 13px; font-weight: 600; }
#api-tester select, #api-tester input, #api-tester textarea { width: 100%; padding: 11px 12px; border: 1px solid #d7e0e8; border-radius: 7px; background: #fff; color: #334155; font-size: 13px; }
#api-tester textarea { resize: vertical; font-family: Consolas, monospace; line-height: 1.6; }
#api-tester select:focus, #api-tester input:focus, #api-tester textarea:focus { border-color: #4a89dc; outline: 0; box-shadow: 0 0 0 3px rgba(74, 137, 220, 0.14); }
.tester-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 24px; border: 0; border-radius: 8px; background: #4a89dc; color: #fff; font-weight: 600; }
.tester-submit[disabled] { cursor: wait; opacity: 0.65; }
.tester-result { margin-top: 20px; }
.tester-result > div { display: flex; justify-content: space-between; margin-bottom: 8px; color: #475569; font-size: 13px; }
.tester-result pre { max-height: 320px; margin: 0; padding: 16px; overflow: auto; border-radius: 8px; background: #142033; color: #dce8f3; font-size: 12px; line-height: 1.65; }
body.modal-open { overflow: hidden; }

/* Commercial SaaS refresh */
.site-header {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.brand-mark {
    border-radius: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #38bdf8 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.20);
}

.home-main {
    padding: 34px 0 0;
    background:
        radial-gradient(circle at 18% 5%, rgba(37, 99, 235, 0.18), transparent 34%),
        radial-gradient(circle at 86% 2%, rgba(14, 165, 233, 0.16), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #eef4fb 44%, #f8fafc 100%);
}

.home-main::before {
    height: 620px;
    opacity: .72;
    background-image:
        linear-gradient(rgba(37, 99, 235, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .08) 1px, transparent 1px);
    background-size: 36px 36px;
}

.home-main::after { display: none; }

.pro-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: 28px;
    overflow: hidden;
    min-height: 440px;
    padding: 54px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.92)),
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 40%);
    color: #e5eefb;
    text-align: left;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
}

.pro-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(110deg, black 0%, transparent 72%);
}

.pro-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, transparent 44%, rgba(56, 189, 248, 0.12) 50%, transparent 58%, transparent 100%);
    transform: translateX(-60%);
    animation: hero-scan 6.8s ease-in-out infinite;
}

.hero-copy, .hero-terminal, .pro-hero .search-box { position: relative; z-index: 1; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(125, 211, 252, 0.30);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.10);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-kicker.compact {
    min-height: 28px;
    padding-inline: 9px;
    font-size: 11px;
}

.pro-hero h1 {
    max-width: 720px;
    margin: 22px 0 18px;
    font-size: clamp(36px, 5.2vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.pro-hero h1 a {
    background: linear-gradient(90deg, #ffffff 0%, #bfdbfe 48%, #67e8f9 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.pro-hero .hero-description {
    max-width: 650px;
    margin: 0 0 24px;
    color: #b6c6d8;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-actions .secondary-button {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
}

.hero-stats-grid article {
    min-height: 104px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.hero-stats-grid span {
    display: block;
    color: #93a4b8;
    font-size: 12px;
}

.hero-stats-grid strong {
    display: block;
    margin: 8px 0 4px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.hero-stats-grid small {
    color: #7dd3fc;
    font-size: 11px;
}

.hero-terminal {
    align-self: start;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    background: rgba(2, 6, 23, 0.58);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(16px);
}

.terminal-top {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    color: #64748b;
}

.terminal-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.terminal-top span:nth-child(1) { background: #fb7185; }
.terminal-top span:nth-child(2) { background: #fbbf24; }
.terminal-top span:nth-child(3) { background: #34d399; }
.terminal-top em { margin-left: auto; font-style: normal; font-size: 12px; }

.terminal-body {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.terminal-body p {
    margin: 0;
    color: #e2e8f0;
    font-size: 14px;
}

.terminal-body b {
    display: inline-flex;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    font-size: 11px;
}

.terminal-body code {
    display: block;
    padding: 18px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.76);
    color: #bae6fd;
    white-space: pre-wrap;
}

.terminal-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.terminal-metrics span {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-height: 74px;
    padding: 12px 8px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 12px;
    text-align: center;
}

.terminal-metrics svg { color: #38bdf8; }

.pro-hero .hero-clock {
    margin: 0;
    padding: 13px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #93c5fd;
    text-align: right;
}

.hero-orb {
    position: absolute;
    z-index: 0;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .58;
    pointer-events: none;
    animation: orb-float 8s ease-in-out infinite alternate;
}

.hero-orb-a {
    right: -64px;
    top: -86px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.42), transparent 66%);
}

.hero-orb-b {
    left: 42%;
    bottom: -154px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 68%);
    animation-delay: -2.4s;
}

.pro-hero .search-box {
    grid-column: 1 / -1;
    width: min(100%, 760px);
    max-width: none;
    margin: 8px 0 0;
}

.pro-hero .search-input {
    height: 60px;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.25);
}

.announcement {
    margin-top: 22px;
    border-color: rgba(37, 99, 235, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.api-list {
    display: grid;
    gap: 18px;
    padding-top: 10px;
}

.api-card {
    width: min(100%, 430px);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.api-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), transparent 52%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.api-card:hover::before { opacity: 1; }

.api-avatar {
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.api-avatar svg {
    width: 23px;
    height: 23px;
}

.pricing-card {
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 65px rgba(37, 99, 235, 0.13);
}

.recharge-modal {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.recharge-dialog {
    position: relative;
    width: min(100%, 520px);
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 38%),
        #fff;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.35);
    animation: modal-rise 220ms ease both;
}

.recharge-dialog h2 {
    margin: 15px 0 8px;
    color: #0f172a;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.recharge-dialog > p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.contact-qq-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #f8fbff;
}

.contact-qq-box small {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.contact-qq-box strong {
    color: #0f172a;
    font-size: 30px;
    letter-spacing: .02em;
}

.recharge-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
}

.recharge-selected strong {
    color: #0f172a;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.admin-auth-page {
    background:
        radial-gradient(circle at 18% 16%, rgba(37, 99, 235, 0.22), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(14, 165, 233, 0.18), transparent 35%),
        linear-gradient(135deg, #020617 0%, #0f172a 55%, #111827 100%);
}

.admin-auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.admin-auth-shell {
    position: relative;
    z-index: 1;
}

.admin-login-card {
    width: min(100%, 460px);
    padding: 34px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    color: #e5edf7;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.admin-login-brand div { display: grid; }
.admin-login-brand strong { color: #fff; font-size: 16px; }
.admin-login-brand small { color: #7dd3fc; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.admin-login-card .auth-heading { text-align: left; }
.admin-login-card .auth-heading h2 { color: #fff; font-size: 30px; letter-spacing: -0.03em; }
.admin-login-card .auth-heading p { color: #94a3b8; }
.admin-login-card .auth-form label { color: #cbd5e1; }
.admin-login-card .input-wrap input {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.62);
    color: #f8fafc;
}
.admin-login-card .input-wrap input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18); }
.admin-login-card .auth-links a { color: #93c5fd; }

.admin-page {
    background: #eef3f8;
}

.admin-sidebar {
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #cbd5e1;
}

.admin-sidebar nav a {
    border-radius: 12px;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(59, 130, 246, 0.16);
    color: #fff;
}

.admin-panel,
.admin-stat-grid article,
.gateway-summary article {
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.empty-cell {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(14, 165, 233, 0.03));
    color: #64748b;
}

body.dark-mode { --bg: #121824; --card: #1e2233; --text: #ecf0f1; --muted: #b0bec5; --border: rgba(255, 255, 255, 0.09); color-scheme: dark; }
body.dark-mode .site-header { background: rgba(30, 34, 51, 0.94); }
body.dark-mode .icon-btn { background: rgba(255, 255, 255, 0.06); }
body.dark-mode .mode-text { border-color: rgba(148, 163, 184, .24); background: rgba(255, 255, 255, .06); color: #cbd5e1; }
body.dark-mode .pagination a, body.dark-mode .jump-label input, body.dark-mode .about-band, body.dark-mode .key-box { background: #1e2233; color: var(--text); }
body.dark-mode .support-panel, body.dark-mode .faq-section, body.dark-mode .article-list, body.dark-mode .article-detail, body.dark-mode .dashboard-section, body.dark-mode .stat-panel { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22); }
body.dark-mode .prose { color: #c7d2da; }
body.dark-mode .secondary-button { border-color: var(--border); background: #272c40; color: var(--text); }
body.dark-mode .data-table th { color: #b0bec5; }
body.dark-mode .gateway-chip { border-color: var(--border); background: rgba(255, 255, 255, 0.05); color: var(--text); }
body.dark-mode .gateway-chip code { color: #93c5fd; }
body.dark-mode .mapping-flow > div { border-color: var(--border); background: rgba(255, 255, 255, 0.04); }
body.dark-mode .mapping-flow code { background: rgba(59, 130, 246, 0.16); color: #bfdbfe; }
body.dark-mode .editor-divider span { background: #1e2233; }

@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes title-reveal { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 0 44px, 44px 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hero-scan { 0%, 42% { transform: translateX(-64%); opacity: 0; } 58% { opacity: 1; } 100% { transform: translateX(72%); opacity: 0; } }
@keyframes orb-float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-18px, 22px, 0) scale(1.08); } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 980px) {
    .brand, .header-actions { min-width: auto; }
    .pro-hero { grid-template-columns: 1fr; padding: 38px; }
    .hero-terminal { max-width: 560px; width: 100%; }
    .hero-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .doc-layout { grid-template-columns: 1fr; gap: 36px; }
    .doc-sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .basic-grid { grid-template-columns: 1fr; }
    .portal-layout { grid-template-columns: 1fr; }
    .portal-sidebar { position: static; }
    .portal-sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .portal-sidebar nav a { justify-content: center; }
    .portal-profile { display: none; }
    .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-grid { grid-template-columns: 1fr; }
    .gateway-layout { grid-template-columns: 1fr; }
    .inline-edit { flex-wrap: wrap; }
}

@media (max-width: 760px) {
    body { padding-top: 70px; }
    .shell { width: min(100% - 32px, 1280px); }
    .brand-name { font-size: 17px; }
    .mobile-menu { display: inline-grid; order: -1; }
    .main-nav { position: fixed; top: 70px; left: 0; right: 0; display: none; height: auto; padding: 8px 18px 16px; border-bottom: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-md); }
    .main-nav.open { display: grid; }
    .nav-item { justify-content: start; height: 45px; padding: 0 10px; }
    .nav-item::after { display: none; }
    .login-link span { display: none; }
    .reference-home ~ .site-footer .login-link span, .site-header .login-link span { display: inline; }
    .home-main { padding-top: 30px; }
    .pro-hero { padding: 28px 22px; border-radius: 24px; }
    .pro-hero h1 { font-size: 34px; }
    .hero-stats-grid, .terminal-metrics { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .primary-button, .hero-actions .secondary-button { width: 100%; }
    .hero h1 { font-size: 28px; }
    .pro-hero h1 { font-size: 34px; }
    .hero-stats { font-size: 14px; }
    .search-box { margin-top: 25px; }
    .api-card { width: 100%; }
    .pagination-row { flex-wrap: wrap; }
    .pagination-row > span { width: 100%; margin: 0 0 4px; }
    .footer-inner, .filing-row { flex-direction: column; justify-content: center; gap: 12px; padding-block: 19px; text-align: center; }
    .filing-links { flex-direction: column; gap: 7px; }
    .support-grid, .stat-grid { grid-template-columns: 1fr; }
    .pricing-grid, .package-admin-grid { grid-template-columns: 1fr; }
    .gateway-summary { grid-template-columns: 1fr; }
    .portal-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: visible; }
    .portal-sidebar nav a { min-width: 0; justify-content: flex-start; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-account { display: none; }
    .admin-main { padding: 0 16px 28px; }
    .admin-stat-grid { grid-template-columns: 1fr 1fr; }
    .article-detail { padding: 28px 24px; }
    .dashboard-head, .section-row { align-items: flex-start; flex-direction: column; }
    .gateway-actions { flex-direction: column; align-items: stretch; }
    .gateway-actions .primary-button, .gateway-actions .secondary-button { width: 100%; }
    .doc-page { padding: 0; }
    .doc-shell { margin: 0; }
    .api-doc-container { border-radius: 0; }
    .doc-hero { padding: 56px 22px 30px; }
    .doc-hero h1 { font-size: 29px; line-height: 1.4; }
    .doc-layout { padding: 24px 20px; }
    .doc-sidebar { grid-template-columns: 1fr; }
    .doc-section-title { font-size: 21px; }
    .markdown-intro h1 { font-size: 25px; }
    .tester-dialog { padding: 28px 20px 24px; }
}

@media (max-width: 480px) {
    .brand-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 13px; }
    .brand { gap: 8px; }
    .brand-name { font-size: 15px; }
    .header-actions { gap: 6px; }
    .icon-btn { width: 40px; height: 40px; }
    .hero h1 { font-size: 26px; }
    .pro-hero h1 { font-size: 30px; }
    .hero-stats { padding-inline: 10px; line-height: 1.8; }
    .search-input { height: 52px; padding-left: 19px; font-size: 14px; }
    .search-button { top: 6px; right: 6px; }
    .pagination-row { gap: 8px; }
    .article-row { grid-template-columns: 48px minmax(0, 1fr); padding: 19px 15px; }
    .article-arrow { display: none; }
    .auth-card { padding: 29px 23px; }
    .doc-badges { display: grid; }
    .doc-badges span { width: 100%; }
    .admin-sidebar nav { grid-template-columns: 1fr 1fr; }
    .admin-stat-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .mapping-grid { grid-template-columns: 1fr; }
    .mapping-grid--two { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: 0.01ms !important; }
}

.enterprise-home {
    padding-top: 28px;
    background:
        radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.12), transparent 28%),
        radial-gradient(circle at 84% 2%, rgba(16, 185, 129, 0.10), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #edf4fb 48%, #f8fafc 100%);
}

.enterprise-home::before {
    height: 620px;
    opacity: .56;
    background-image:
        linear-gradient(rgba(148, 163, 184, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .14) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

.enterprise-home::after { display: none; }

.enterprise-home .flow-field {
    position: absolute;
    z-index: 0;
    inset: 148px 0 auto;
    width: 100%;
    height: 540px;
    pointer-events: none;
    opacity: .8;
    mix-blend-mode: multiply;
}

.enterprise-home .enterprise-hero,
.enterprise-home .announcement,
.enterprise-list {
    position: relative;
    z-index: 1;
}

.enterprise-home .announcement {
    margin-top: 22px;
    border-color: rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.enterprise-list {
    display: grid;
    gap: 16px;
    padding-top: 14px;
}

.enterprise-list .enterprise-card {
    width: min(100%, 1080px);
    margin-inline: auto;
    padding: 30px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 20px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.enterprise-list .gateway-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.enterprise-list .gateway-copy {
    margin: 0;
    color: #4c5f71;
    font-size: 14px;
    line-height: 1.75;
}

.enterprise-list .gateway-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.enterprise-list .gateway-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #d9e4ee;
    background: #f7fbff;
    color: #516172;
    font-size: 12px;
    font-weight: 600;
}

.enterprise-list .gateway-side {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(239, 244, 249, 0.90));
}

.enterprise-list .gateway-mini {
    display: grid;
    gap: 4px;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.enterprise-list .gateway-mini span {
    color: #6b7f8f;
    font-size: 12px;
}

.enterprise-list .gateway-mini strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.5;
}

.enterprise-list .api-avatar {
    width: 54px;
    height: 42px;
    flex-basis: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.enterprise-list .api-title-wrap h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.enterprise-list .call-count {
    color: #64748b;
    font-size: 12px;
}

.enterprise-list .api-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.enterprise-list .empty-search {
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: 28px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    color: #64748b;
    text-align: center;
}

.enterprise-list .directory-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 1080px);
    margin: 0 auto;
}

.enterprise-list .directory-summary article {
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
}

.enterprise-list .directory-summary span {
    display: block;
    color: #6b7f8f;
    font-size: 12px;
}

.enterprise-list .directory-summary strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .enterprise-list .enterprise-card {
        grid-template-columns: 1fr;
    }

    .enterprise-list .gateway-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .enterprise-home {
        padding-top: 20px;
    }

    .enterprise-home .flow-field {
        inset: 120px 0 auto;
        height: 440px;
        opacity: .68;
    }

    .enterprise-list .enterprise-card {
        padding: 22px;
    }

    .enterprise-list .gateway-side,
    .enterprise-list .directory-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .enterprise-list .enterprise-card {
        padding: 18px;
    }

    .enterprise-list .api-avatar {
        width: 50px;
        height: 38px;
        flex-basis: 50px;
        font-size: 12px;
    }
}

/* Homepage reference layout: a calm, directory-style API index with restrained motion. */
.reference-home { padding-top: 0; background: #f7f9fb; }
.brand-lockup { display: grid; gap: 1px; min-width: 0; line-height: 1.1; }
.brand-lockup strong { overflow: hidden; color: #1d4f78; font-size: 18px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.brand-lockup small { color: #8294a3; font-size: 10px; font-weight: 500; letter-spacing: .16em; }
.site-header .brand-mark { border-radius: 50%; background: linear-gradient(135deg, #2684d8, #1768bb); box-shadow: 0 4px 10px rgba(30, 112, 190, .20); }
.site-header .login-link { min-height: 38px; padding: 0 14px; border-radius: 20px; background: #1f7ed1; color: #fff; box-shadow: 0 4px 10px rgba(31, 126, 209, .18); }
.site-header .login-link:hover { background: #1769b2; color: #fff; }
.mode-text { min-height: 36px; padding: 0 13px; border: 1px solid #dce7ee; border-radius: 18px; background: #f8fbfd; color: #5c7484; font-size: 12px; font-weight: 600; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.mode-text:hover { border-color: #a9c9dc; background: #fff; color: #1f6fa8; }
.flow-field { position: absolute; z-index: 0; top: 218px; left: 0; width: 100%; height: 480px; pointer-events: none; opacity: .92; mix-blend-mode: multiply; }
.reference-hero, .reference-api-list { z-index: 1; }
.reference-home::before { height: 390px; opacity: .18; background-size: 56px 56px; }
.reference-home::after { display: none; }
.reference-hero { min-height: 320px; padding-top: 46px; overflow: hidden; }
.reference-title-wrap { position: relative; z-index: 1; }
.reference-title-wrap h1 { margin: 0 0 4px; font-size: clamp(42px, 5.2vw, 62px); line-height: 1.18; letter-spacing: .02em; }
.reference-title-wrap h1 a { color: #bb8b08; background: linear-gradient(100deg, #9b7a0d 0%, #d88909 53%, #f07807 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.reference-stats { margin: 0; color: #53616b; font-size: 15px; line-height: 1.8; }
.reference-stats strong { color: #1685d8; font-weight: 700; }
.reference-stats b { padding: 0 4px; color: #9aa8b1; font-weight: 400; }
.reference-title-wrap .hero-clock { margin: 15px 0 0; color: #6d7b85; font-size: 15px; }
.reference-search { z-index: 1; max-width: 596px; margin: 47px auto 28px; }
.reference-search .search-input { height: 56px; border-color: #e1e5e8; box-shadow: 0 5px 14px rgba(39, 58, 73, .10), 0 1px 2px rgba(39, 58, 73, .05); }
.reference-search .search-input:focus { border-color: rgba(29, 137, 218, .48); box-shadow: 0 0 0 3px rgba(29, 137, 218, .13), 0 7px 18px rgba(39, 58, 73, .12); }
.reference-search .search-button { width: 58px; height: 42px; top: 7px; right: 7px; background: #238bd7; box-shadow: 0 3px 7px rgba(35, 139, 215, .22); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.reference-search .search-button:hover { background: #1676bb; }
.reference-api-list { position: relative; min-height: 310px; padding-bottom: 32px; }
.reference-api-list .api-card { width: 286px; min-height: 166px; padding: 17px 16px 15px; border-color: #e1e6e9; border-radius: 7px; box-shadow: 0 4px 12px rgba(26, 48, 64, .10); }
.reference-api-list .api-card::after { display: none; }
.reference-api-list .api-card:hover { transform: translateY(-3px); border-color: #cbdde9; box-shadow: 0 8px 18px rgba(26, 48, 64, .13); }
.reference-api-list .api-card-head { gap: 12px; margin-bottom: 12px; }
.reference-api-list .api-avatar { width: 52px; height: 40px; flex-basis: 52px; border: 1px solid #cbe4a9; border-radius: 8px; background: #f0f8e8; box-shadow: none; color: #548e35; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.reference-api-list .api-title-wrap h3 { margin-bottom: 4px; font-size: 16px; font-weight: 600; }
.reference-api-list .call-count { font-size: 11px; }
.reference-api-list .api-card > p { margin: 0 0 13px; color: #61707a; font-size: 13px; line-height: 1.5; }
.reference-api-list .api-meta { padding-top: 11px; font-size: 12px; }
.reference-api-list .status { gap: 7px; color: #3eaf6b; }
.reference-api-list .status-dot { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(67, 160, 71, .12); }
.reference-api-list .price-tag { padding: 2px 7px; border-radius: 4px; background: #f3911b; color: #fff; font-size: 11px; }
.reference-api-list .pagination-row { justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 0; }
.reference-api-list .pagination-row > span { width: 100%; margin: 0 0 3px; text-align: center; }
.reference-api-list .pagination { border-color: #e2e8ec; box-shadow: 0 1px 2px rgba(27, 48, 61, .04); }
.reference-api-list .pagination a { min-width: 39px; height: 39px; border-color: #e2e8ec; }
.reference-api-list .pagination a.current { background: #238bd7; }
.reference-api-list .jump-label input { height: 39px; border-color: #e2e8ec; }
.reference-api-list .jump-button { height: 39px; background: #238bd7; }
.reference-home .announcement { position: relative; z-index: 2; max-width: 720px; margin: 0 auto 19px; box-shadow: 0 2px 7px rgba(26, 48, 64, .04); }

@media (max-width: 760px) {
    .reference-hero { min-height: 286px; padding-top: 34px; }
    .reference-title-wrap h1 { font-size: 39px; }
    .reference-stats { padding-inline: 12px; font-size: 13px; }
    .reference-title-wrap .hero-clock { margin-top: 10px; font-size: 13px; }
    .reference-search { margin-top: 29px; }
    .reference-search .search-button { width: 54px; }
    .flow-field { top: 210px; height: 400px; opacity: .72; }
    .reference-api-list .api-card { width: 100%; }
}

/* Simple business homepage refresh */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: none;
}

.brand-lockup {
    display: grid;
    gap: 2px;
    min-width: 0;
    line-height: 1.1;
}

.brand-lockup strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-lockup small {
    color: #8b98a8;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
}

.site-header .login-link {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #dbe4ea;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}

.site-header .login-link:hover {
    border-color: #c8d3dd;
    background: #f8fafc;
    color: #0f172a;
}

.simple-home-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 28px 0 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.simple-home-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08), transparent 24%),
        radial-gradient(circle at 88% 0%, rgba(20, 184, 166, 0.07), transparent 22%);
}

.simple-home-page > * {
    position: relative;
    z-index: 1;
}

.simple-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
    gap: 24px;
    align-items: stretch;
}

.simple-hero-copy {
    display: grid;
    gap: 0;
    align-content: start;
    padding: 30px 0 10px;
}

.simple-hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #dbe4ea;
    border-radius: 999px;
    background: #fff;
    color: #35516d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.simple-hero-title {
    margin: 16px 0 12px;
    color: #0f172a;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.06;
    letter-spacing: -.04em;
    font-weight: 700;
}

.simple-hero-description {
    max-width: 680px;
    margin: 0;
    color: #546575;
    font-size: 16px;
    line-height: 1.85;
}

.simple-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.simple-actions .primary-button,
.simple-actions .secondary-button {
    min-width: 118px;
}

.simple-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.simple-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #e3e9ef;
    border-radius: 999px;
    background: #fff;
    color: #516172;
    font-size: 12px;
    font-weight: 600;
}

.simple-hero-panel {
    display: grid;
    gap: 18px;
    align-self: stretch;
    padding: 24px;
    border: 1px solid #e5ebf0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
}

.simple-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.simple-panel-head small {
    color: #8294a3;
    font-size: 12px;
    font-weight: 500;
}

.simple-panel-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.simple-panel-metrics article {
    padding: 16px;
    border: 1px solid #edf1f4;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcfe, #f7f9fb);
}

.simple-panel-metrics span {
    display: block;
    color: #728494;
    font-size: 12px;
}

.simple-panel-metrics strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
}

.simple-panel-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.simple-panel-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #edf1f4;
    border-radius: 14px;
    background: #fafbfc;
}

.simple-panel-list dt {
    color: #728494;
    font-size: 12px;
}

.simple-panel-list dd {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.simple-announcement {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 24px;
    padding: 12px 16px;
    border: 1px solid #e3ebf1;
    border-radius: 14px;
    background: #fff;
    color: #435465;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.03);
}

.simple-announcement svg { color: #2563eb; }

.simple-service-section {
    padding: 28px 0 10px;
}

.simple-api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
}

.simple-api-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid #e5ebf0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    will-change: transform;
}

.simple-api-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--card-accent-rgb, 37,99,235), 0.10) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 100%);
    opacity: .88;
    pointer-events: none;
    transition: opacity 240ms ease, transform 320ms ease;
}

.simple-api-card::after {
    content: "";
    position: absolute;
    top: -54px;
    right: -52px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--card-accent-rgb, 37,99,235), 0.18) 0%, rgba(var(--card-accent-rgb, 37,99,235), 0.08) 34%, rgba(var(--card-accent-rgb, 37,99,235), 0) 72%);
    filter: blur(2px);
    opacity: .72;
    transform: scale(.94);
    pointer-events: none;
    transition: opacity 260ms ease, transform 320ms ease;
}

.simple-api-card > * {
    position: relative;
    z-index: 1;
}

.simple-api-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--card-accent-rgb, 37,99,235), 0.22);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(var(--card-accent-rgb, 37,99,235), 0.05);
}

.simple-api-card:hover::before {
    opacity: 1;
    transform: translateY(-8px);
}

.simple-api-card:hover::after {
    opacity: .92;
    transform: scale(1.08);
}

.simple-api-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.simple-api-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid #d8e2ea;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
}

.simple-api-title {
    min-width: 0;
}

.simple-api-title h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
}

.simple-api-title span {
    color: #708090;
    font-size: 13px;
    line-height: 1.6;
}

.simple-api-copy {
    margin: 0;
    color: #516172;
    font-size: 14px;
    line-height: 1.72;
}

.simple-api-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.simple-api-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #e3e9ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #516172;
    font-size: 12px;
    font-weight: 600;
}

.simple-api-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf1f4;
}

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

.simple-section-label {
    display: block;
    color: #6b7f8f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.simple-section-head h2 {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.25;
}

.simple-service-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
    gap: 18px;
    padding: 24px;
    border: 1px solid #e5ebf0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.simple-service-card:hover {
    transform: translateY(-2px);
    border-color: #cfd9e2;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.simple-service-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.simple-service-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.simple-service-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d8e2ea;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.simple-service-title {
    min-width: 0;
}

.simple-service-title h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.35;
}

.simple-service-title p {
    margin: 0;
    color: #546575;
    font-size: 14px;
    line-height: 1.7;
}

.simple-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.simple-service-tags li {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #e3e9ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #516172;
    font-size: 12px;
    font-weight: 600;
}

.simple-service-aside {
    display: grid;
    gap: 10px;
    align-content: start;
}

.simple-service-meta {
    display: grid;
    gap: 6px;
    padding: 14px 15px;
    border: 1px solid #edf1f4;
    border-radius: 16px;
    background: #fafbfc;
}

.simple-service-meta span {
    color: #728494;
    font-size: 12px;
}

.simple-service-meta strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

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

.simple-snapshot article {
    padding: 16px 18px;
    border: 1px solid #e5ebf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.03);
}

.simple-snapshot span {
    display: block;
    color: #6b7f8f;
    font-size: 12px;
}

.simple-snapshot strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.5;
}

body.dark-mode .site-header {
    background: rgba(14, 19, 30, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

body.dark-mode .brand-lockup strong { color: #f8fafc; }
body.dark-mode .brand-lockup small { color: #94a3b8; }

body.dark-mode .site-header .login-link {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

body.dark-mode .site-header .login-link:hover {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

body.dark-mode .simple-home-page {
    background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
}

body.dark-mode .simple-home-page::before {
    background:
        radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.14), transparent 24%),
        radial-gradient(circle at 88% 0%, rgba(16, 185, 129, 0.12), transparent 22%);
}

body.dark-mode .simple-hero-kicker,
body.dark-mode .simple-badges span,
body.dark-mode .simple-hero-panel,
body.dark-mode .simple-service-card,
body.dark-mode .simple-snapshot article,
body.dark-mode .simple-panel-metrics article,
body.dark-mode .simple-panel-list div,
body.dark-mode .simple-service-meta,
body.dark-mode .simple-announcement {
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
}

body.dark-mode .simple-hero-title,
body.dark-mode .simple-panel-head,
body.dark-mode .simple-panel-metrics strong,
body.dark-mode .simple-panel-list dd,
body.dark-mode .simple-service-title h3,
body.dark-mode .simple-service-meta strong,
body.dark-mode .simple-snapshot strong,
body.dark-mode .simple-section-head h2 {
    color: #f8fafc;
}

body.dark-mode .simple-hero-description,
body.dark-mode .simple-panel-head small,
body.dark-mode .simple-panel-metrics span,
body.dark-mode .simple-panel-list dt,
body.dark-mode .simple-service-title p,
body.dark-mode .simple-service-meta span,
body.dark-mode .simple-snapshot span,
body.dark-mode .simple-section-label,
body.dark-mode .simple-announcement {
    color: #cbd5e1;
}

body.dark-mode .simple-badges span,
body.dark-mode .simple-service-tags li,
body.dark-mode .simple-api-tags span {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

body.dark-mode .simple-api-card {
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
}

body.dark-mode .simple-api-card:hover {
    border-color: rgba(var(--card-accent-rgb, 37,99,235), 0.24);
    box-shadow: 0 22px 54px rgba(2, 6, 23, 0.44), 0 0 0 1px rgba(var(--card-accent-rgb, 37,99,235), 0.10);
}

body.dark-mode .simple-api-title h3,
body.dark-mode .simple-api-mark,
body.dark-mode .simple-api-footer .status,
body.dark-mode .simple-api-footer .price-tag {
    color: #f8fafc;
}

body.dark-mode .simple-api-footer .price-tag {
    background: rgba(245, 124, 0, 0.16);
}

body.dark-mode .simple-api-title span,
body.dark-mode .simple-api-copy {
    color: #cbd5e1;
}

body.dark-mode .simple-api-mark { background: rgba(var(--card-accent-rgb, 37,99,235), 0.14); border-color: rgba(var(--card-accent-rgb, 37,99,235), 0.18); }

body.dark-mode .simple-service-card:hover {
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.42);
}

@media (max-width: 980px) {
    .simple-hero,
    .simple-service-card {
        grid-template-columns: 1fr;
    }

    .simple-panel-metrics,
    .simple-snapshot {
        grid-template-columns: 1fr;
    }

    .simple-api-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .simple-home-page {
        padding-top: 18px;
    }

    .simple-hero-copy {
        padding-top: 12px;
    }

    .simple-hero-title {
        font-size: 32px;
    }

    .simple-actions .primary-button,
    .simple-actions .secondary-button {
        width: 100%;
    }

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

    .simple-service-card,
    .simple-hero-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .simple-api-card {
        width: 100%;
        padding: 18px;
        border-radius: 18px;
    }
}

/* Homepage landing override */
body.home-landing {
    padding-top: 0;
}

body.home-landing .simple-home-page {
    position: relative;
    padding: 58px 0 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.03), transparent 28%),
        linear-gradient(180deg, #f9fbfe 0%, #ffffff 100%);
}

body.home-landing .simple-home-page::before {
    background: none;
}

.home-ribbons {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-ribbons .ribbon {
    position: absolute;
    display: block;
    opacity: .45;
    filter: blur(.1px);
    mix-blend-mode: multiply;
    border-radius: 2px;
}

.home-ribbons .ribbon::before,
.home-ribbons .ribbon::after {
    content: "";
    position: absolute;
    inset: 0;
}

.home-ribbons .ribbon-a {
    top: 172px;
    left: -70px;
    width: 520px;
    height: 108px;
    background: linear-gradient(90deg, rgba(251, 191, 36, .26), rgba(250, 204, 21, .08));
    clip-path: polygon(0 52%, 18% 20%, 31% 34%, 44% 14%, 59% 24%, 72% 4%, 100% 42%, 84% 76%, 62% 62%, 44% 86%, 22% 70%);
}

.home-ribbons .ribbon-b {
    top: 146px;
    left: 220px;
    width: 460px;
    height: 86px;
    background: linear-gradient(90deg, rgba(163, 230, 53, .24), rgba(74, 222, 128, .10));
    clip-path: polygon(0 40%, 17% 20%, 30% 34%, 46% 6%, 64% 18%, 80% 0, 100% 34%, 84% 70%, 64% 52%, 48% 78%, 27% 62%);
}

.home-ribbons .ribbon-c {
    top: 184px;
    right: 118px;
    width: 420px;
    height: 98px;
    background: linear-gradient(90deg, rgba(251, 146, 60, .24), rgba(249, 115, 22, .10));
    clip-path: polygon(0 32%, 16% 16%, 32% 26%, 50% 0, 68% 20%, 88% 4%, 100% 30%, 83% 76%, 62% 54%, 41% 86%, 20% 64%);
}

.home-ribbons .ribbon-d {
    top: 382px;
    left: -20px;
    width: 390px;
    height: 98px;
    background: linear-gradient(90deg, rgba(96, 165, 250, .20), rgba(59, 130, 246, .08));
    clip-path: polygon(0 42%, 16% 16%, 36% 38%, 50% 4%, 68% 24%, 85% 2%, 100% 42%, 84% 84%, 60% 62%, 42% 92%, 20% 74%);
}

.home-ribbons .ribbon-e {
    top: 372px;
    right: 12px;
    width: 520px;
    height: 112px;
    background: linear-gradient(90deg, rgba(74, 222, 128, .20), rgba(34, 197, 94, .08));
    clip-path: polygon(0 26%, 18% 10%, 34% 30%, 50% 0, 67% 20%, 82% 8%, 100% 34%, 83% 72%, 61% 52%, 44% 90%, 20% 72%);
}

body.home-landing .simple-hero,
body.home-landing .simple-service-section {
    position: relative;
    z-index: 1;
}

body.home-landing .simple-hero {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0;
    max-width: 1120px;
}

body.home-landing .simple-hero-copy {
    display: grid;
    justify-items: center;
    gap: 0;
    max-width: 1080px;
    padding: 4px 0 0;
}

body.home-landing .simple-hero-title {
    margin: 0;
    background: linear-gradient(90deg, #8f9f1e 0%, #d5a013 40%, #f97316 72%, #ff8a00 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 800;
}

body.home-landing .simple-hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.55;
}

body.home-landing .simple-hero-meta strong {
    font-weight: 700;
}

body.home-landing .stat-blue {
    color: #1e88e5;
}

body.home-landing .stat-green {
    color: #10b981;
}

body.home-landing .simple-hero-clock {
    margin: 18px 0 0;
    color: #60758a;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

body.home-landing .simple-search {
    width: min(760px, 100%);
    margin: 28px auto 0;
}

body.home-landing .simple-search .search-input {
    height: 72px;
    padding: 0 86px 0 30px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.04);
    color: #374151;
    font-size: 18px;
}

body.home-landing .simple-search .search-input::placeholder {
    color: #8f98a7;
}

body.home-landing .simple-search .search-button {
    top: 8px;
    right: 8px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2f8ff6, #1d73e8);
    box-shadow: 0 10px 18px rgba(29, 115, 232, 0.24);
}

body.home-landing .simple-search .search-button:hover {
    background: linear-gradient(135deg, #2380ef, #1663d5);
}

body.home-landing .simple-service-section {
    padding-top: 44px;
}

body.home-landing .simple-api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
    justify-content: start;
    gap: 16px;
    margin-top: 0;
}

body.home-landing .simple-api-card {
    min-height: 196px;
    padding: 24px 24px 20px;
    border: 1px solid #e5ebf0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

body.home-landing .simple-api-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--card-accent-rgb, 37,99,235), 0.28);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(var(--card-accent-rgb, 37,99,235), 0.06);
}

body.home-landing .simple-api-head {
    align-items: flex-start;
    gap: 14px;
}

body.home-landing .simple-api-mark {
    min-height: 30px;
    padding: 0 12px;
    border-color: rgba(var(--card-accent-rgb, 37,99,235), 0.14);
    background: rgba(var(--card-accent-rgb, 37,99,235), 0.08);
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
}

body.home-landing .simple-api-title h3 {
    margin-bottom: 6px;
    font-size: 19px;
    letter-spacing: -0.02em;
}

body.home-landing .simple-api-title span {
    display: block;
    color: #68798a;
    font-size: 13px;
    line-height: 1.6;
}

body.home-landing .simple-api-copy {
    margin-top: -2px;
    color: #516172;
    font-size: 14px;
    line-height: 1.72;
}

body.home-landing .simple-api-footer {
    padding-top: 12px;
    border-top-color: rgba(var(--card-accent-rgb, 37,99,235), 0.10);
}

body.home-landing .price-tag {
    background: rgba(245, 124, 0, 0.10);
    color: #d66c00;
}

body.home-landing .simple-home-page > * {
    position: relative;
    z-index: 1;
}

body.home-landing .simple-home-page .home-ribbons {
    z-index: 0;
}

body.home-landing .simple-home-page .simple-hero-meta,
body.home-landing .simple-home-page .simple-hero-clock,
body.home-landing .simple-home-page .simple-search {
    z-index: 1;
}

@media (max-width: 980px) {
    body.home-landing .simple-home-page {
        padding-top: 42px;
    }

    body.home-landing .simple-hero-title {
        font-size: clamp(40px, 9vw, 62px);
    }

    body.home-landing .simple-hero-meta,
    body.home-landing .simple-hero-clock {
        font-size: 16px;
    }

    body.home-landing .simple-search .search-input {
        height: 64px;
        padding-right: 78px;
        font-size: 16px;
    }

    body.home-landing .simple-search .search-button {
        width: 48px;
        height: 48px;
    }

    body.home-landing .simple-api-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .home-ribbons .ribbon-a,
    .home-ribbons .ribbon-b,
    .home-ribbons .ribbon-c,
    .home-ribbons .ribbon-d,
    .home-ribbons .ribbon-e {
        opacity: .32;
    }
}

@media (max-width: 760px) {
    body.home-landing .simple-home-page {
        padding-top: 30px;
    }

    body.home-landing .simple-hero-title {
        font-size: 34px;
    }

    body.home-landing .simple-hero-meta,
    body.home-landing .simple-hero-clock {
        font-size: 14px;
    }

    body.home-landing .simple-search {
        margin-top: 20px;
    }

    body.home-landing .simple-search .search-input {
        height: 58px;
        padding: 0 70px 0 20px;
        font-size: 15px;
    }

    body.home-landing .simple-search .search-button {
        width: 42px;
        height: 42px;
        top: 8px;
        right: 8px;
    }

    body.home-landing .simple-api-card {
        width: 100%;
        padding: 18px;
    }

    body.home-landing .simple-api-mark {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 15px;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.brand-lockup {
    display: grid;
    gap: 2px;
    min-width: 0;
    line-height: 1.1;
}

.brand-lockup strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-lockup small {
    color: #8b98a8;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .18em;
}

.site-header .theme-toggle {
    background: #eef2f6;
    color: #475569;
}

.site-header .theme-toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.site-header .login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2684d8, #1769b2);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.site-header .login-link i {
    width: 16px;
    height: 16px;
}

.site-header .login-link:hover {
    background: linear-gradient(135deg, #2374c4, #155e9d);
    color: #fff;
}

body.home-landing {
    padding-top: 80px;
}

body.home-landing .simple-home-page {
    padding: 34px 0 24px;
}
