/* DocFlow subdomain. Tokens and components mirror the extension popup (chrome-extensions/docflow-ai/popup/popup.css). */
:root {
    --bg: #F6F7FB;
    --card: #FFFFFF;
    --line: #E4E7EF;
    --text: #0F172A;
    --text-2: #475569;
    --text-3: #8591A5;
    --brand: #4F46E5;
    --brand-dark: #4338CA;
    --brand-soft: #EEF0FF;
    --brand-line: #C7CCFF;
    --ok: #16A34A;
    --ok-soft: #E8F7EE;
    --danger: #DC2626;
    --danger-soft: #FDECEC;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px -4px rgba(15, 23, 42, .08);
}
html { overflow-x: hidden; max-width: 100vw; width: 100%; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.55 Roboto, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; width: 100%; min-height: 100vh; display: flex; flex-direction: column; position: relative; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
main { flex: 1; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font-weight: 700; color: var(--brand); }
.top-nav { display: flex; gap: 4px; margin-left: 20px; overflow: visible; white-space: nowrap; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.top-nav a:hover { background: var(--bg); color: var(--text); }
.top-nav a.on { background: var(--brand-soft); color: var(--brand); }

/* Products Dropdown */
.products-dropdown { position: relative; display: inline-flex; align-items: center; }
.products-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); background: transparent; border: none; cursor: pointer; transition: all .15s ease; font-family: inherit; line-height: inherit; }
.products-trigger:hover, .products-dropdown:hover .products-trigger, .products-dropdown:focus-within .products-trigger { background: var(--bg); color: var(--brand); }
.products-trigger .chevron { color: var(--text-3); transition: transform .2s ease; }
.products-dropdown:hover .chevron, .products-dropdown:focus-within .chevron { transform: rotate(180deg); color: var(--brand); }
.products-menu { position: absolute; top: calc(100% + 8px); left: 0; width: 560px; max-width: 92vw; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px -4px rgba(15, 23, 42, .14), 0 4px 12px -2px rgba(15, 23, 42, .06); padding: 14px; z-index: 1000; visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; white-space: normal; }
.products-dropdown:hover .products-menu, .products-dropdown:focus-within .products-menu { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.products-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.products-menu-head-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.products-menu-bonus { font-size: 11px; font-weight: 600; color: #047857; background: #ecfdf5; padding: 3px 8px; border-radius: 6px; text-decoration: none; transition: background .15s ease; }
.products-menu-bonus:hover { background: #d1fae5; }
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.product-card { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: inherit; transition: background .15s ease; }
.product-card:hover { background: var(--bg); }
.product-card.current { background: var(--brand-soft); }
.product-card-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; transition: transform .15s ease; }
.product-card:hover .product-card-logo { transform: scale(1.05); }
.product-card-body { min-width: 0; flex: 1; }
.product-card-title-row { display: flex; align-items: center; gap: 6px; }
.product-card-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.product-card:hover .product-card-name { color: var(--brand); }
.product-card-badge { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; line-height: 1.4; }
.product-card-curr-badge { font-size: 9px; font-weight: 600; color: var(--text-3); background: rgba(15, 23, 42, .06); padding: 1px 5px; border-radius: 4px; text-transform: uppercase; }
.product-card-desc { font-size: 11.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.products-menu-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
.products-menu-foot a { color: var(--brand); font-weight: 600; text-decoration: none; }
.products-menu-foot a:hover { text-decoration: underline; }
@media (max-width: 899px) {
    .products-menu { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; max-width: none; }
    .products-grid { grid-template-columns: 1fr; }
}

/* Pricing Ecosystem Cross-Links */
.ecosystem-backlinks-card {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #ffffff 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px 24px;
    margin: 40px 0;
    text-align: center;
}
.ecosystem-backlinks-header { max-width: 680px; margin: 0 auto; }
.ecosystem-backlinks-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.ecosystem-backlinks-title { font-size: 24px; font-weight: 700; color: var(--text); margin-top: 10px; }
.ecosystem-backlinks-lead { font-size: 14px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.ecosystem-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; text-align: left; }
.eco-link-card { display: flex; flex-direction: column; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: inherit; transition: all .2s ease; }
.eco-link-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 24px -4px rgba(79, 70, 229, .12); }
.eco-link-card.current { border-color: var(--brand); background: var(--brand-soft); }
.eco-link-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.eco-link-logo { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.eco-link-badge { font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.eco-link-name { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between; }
.eco-link-card:hover .eco-link-name { color: var(--brand); }
.eco-link-desc { font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }
.eco-link-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--brand); display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
    .ecosystem-cards-grid { grid-template-columns: 1fr; }
}
.top-left { display: flex; align-items: center; min-width: 0; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.seg { display: flex; padding: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.seg a { padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.seg a.on { background: var(--card); color: var(--brand); box-shadow: var(--shadow); }
.avatar { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.who { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--card); max-width: 180px; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Profile Dropdown Component */
.profile-dropdown { position: relative; display: inline-flex; }
.profile-trigger { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 3px 10px 3px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); cursor: pointer; transition: all .15s ease; user-select: none; max-width: 220px; font: inherit; }
.profile-trigger:hover, .profile-dropdown.open .profile-trigger { border-color: var(--brand-line); background: var(--bg); }
.profile-trigger .avatar { width: 32px; height: 32px; font-size: 13px; }
.profile-meta { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; line-height: 1.25; }
.profile-name { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.profile-credits { font-size: 11px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.profile-trigger .chevron { color: var(--text-3); transition: transform .2s ease, color .15s ease; flex-shrink: 0; margin-left: 2px; }
.profile-dropdown:hover .profile-trigger .chevron, .profile-dropdown.open .profile-trigger .chevron { transform: rotate(180deg); color: var(--brand); }

/* Profile Dropdown Menu Card */
.profile-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 280px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px -4px rgba(15, 23, 42, .12), 0 4px 12px -2px rgba(15, 23, 42, .06); padding: 8px; z-index: 100; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; }
.profile-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.profile-dropdown:hover .profile-menu, .profile-dropdown.open .profile-menu, .profile-dropdown:focus-within .profile-menu { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }

.profile-menu-head { padding: 6px 8px 10px; }
.profile-user-info { display: flex; align-items: center; gap: 10px; }
.avatar-lg { width: 38px; height: 38px; font-size: 15px; }
.profile-user-details { min-width: 0; flex: 1; }
.profile-user-name-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.profile-user-name { font-size: 13.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-badge { display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .02em; flex-shrink: 0; }
.plan-free { background: var(--bg); color: var(--text-3); border: 1px solid var(--line); }
.plan-pro { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); }
.plan-admin { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.profile-user-email { display: block; font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }

/* Balance Card */
.profile-balance-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 10px; margin: 2px 4px 8px; }
.balance-info { display: flex; flex-direction: column; min-width: 0; }
.balance-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--brand); }
.balance-amount { font-size: 18px; font-weight: 700; color: var(--brand-dark); line-height: 1.2; }
.balance-amount small { font-size: 12px; font-weight: 500; color: var(--brand); }
.btn-topup { display: inline-flex; align-items: center; justify-content: center; padding: 5px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--brand); color: #fff !important; border: none; cursor: pointer; transition: background .15s ease; white-space: nowrap; box-shadow: 0 2px 6px -1px rgba(79, 70, 229, .5); }
.btn-topup:hover { background: var(--brand-dark); }

/* Menu Navigation */
.profile-menu-nav { display: flex; flex-direction: column; gap: 2px; }
.profile-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); border: none; background: transparent; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; text-decoration: none; box-sizing: border-box; font: inherit; }
.profile-menu-item:hover { background: var(--bg); color: var(--text); }
.profile-menu-item .icon { width: 17px; height: 17px; color: var(--text-3); flex-shrink: 0; transition: color .15s ease; }
.profile-menu-item:hover .icon { color: var(--brand); }

/* Divider */
.profile-menu-divider { height: 1px; background: var(--line); margin: 6px 4px; }

/* Logout */
.profile-logout-form { margin: 0; }
.profile-logout-btn { color: var(--danger); }
.profile-logout-btn .icon { color: var(--danger); }
.profile-logout-btn:hover { background: var(--danger-soft); color: var(--danger); }
.profile-logout-btn:hover .icon { color: var(--danger); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: var(--card); color: var(--text-2); transition: background .15s; white-space: nowrap; }
.btn:hover { background: var(--bg); }
.btn svg { width: 16px; height: 16px; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.btn-brand:hover { background: var(--brand-dark); }
.btn-lg { padding: 13px 20px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 500; font-size: 14px; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

/* Hero (landing) */
.hero { display: grid; gap: 40px; align-items: center; padding: 56px 0 48px; }
.kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand); font-size: 12.5px; font-weight: 500; }
h1 { margin-top: 16px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--brand); }
h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 17px; font-weight: 500; }
.lead { margin-top: 16px; font-size: 17px; color: var(--text-2); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cta-center { justify-content: center; }

/* Popup mock */
.mock { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .25); padding: 14px; display: flex; flex-direction: column; gap: 10px; max-width: 380px; width: 100%; justify-self: center; }
.site-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.site-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.site-icon svg { width: 18px; height: 18px; }
.site-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.site-text strong { font-size: 14px; font-weight: 500; }
.site-text span { font-size: 12px; color: var(--text-3); }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.mock-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: var(--radius); text-align: left; }
.mock-btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.mock-btn.secondary { background: var(--card); border: 1px solid var(--line); }
.mock-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.mock-btn.secondary .mock-ico { background: var(--brand-soft); color: var(--brand); }
.mock-ico svg { width: 19px; height: 19px; }
.mock-copy { display: flex; flex-direction: column; min-width: 0; }
.mock-copy strong { font-size: 14px; font-weight: 500; }
.mock-copy small { font-size: 12px; opacity: .8; }
.mock-btn.secondary .mock-copy small { color: var(--text-3); opacity: 1; }
.mock-tools { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--brand-soft); border-radius: var(--radius); font-size: 13px; color: var(--text-2); }
.mock-tools svg { width: 16px; height: 16px; color: var(--brand); }

/* Sections */
section { padding: 48px 0; }
.section-head { }
.section-head p { margin-top: 10px; color: var(--text-2); }
.features { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: 1fr; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.feature-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.feature-ico svg { width: 20px; height: 20px; }
.feature p { font-size: 14.5px; color: var(--text-2); }
.steps { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: 1fr; list-style: none; }
.step { display: flex; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.step .step-num { color: #fff; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; }
.step strong { display: block; font-size: 15.5px; font-weight: 500; }
.step span { font-size: 14px; color: var(--text-2); }
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }
.cta-band { margin: 24px 0 56px; padding: 32px 24px; background: var(--card); border: 1px solid var(--brand-line); border-radius: 18px; box-shadow: var(--shadow); text-align: center; }
.cta-band h2 { font-size: clamp(22px, 3vw, 28px); }

/* Inner pages */
.page { padding: 40px 0 56px; }
.crumbs { font-size: 13px; color: var(--text-3); }
.crumbs a:hover { color: var(--brand); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.page-head p { margin-top: 6px; color: var(--text-2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--text-2); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.01em; margin-top: 4px; }
.stat-label { font-size: 12.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.meter { height: 6px; margin-top: 12px; border-radius: 6px; background: var(--brand-soft); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 500; color: var(--text-2); }
.chip.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.item-main { flex: 1; min-width: 0; }
.item-main strong { display: block; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-main span { font-size: 12.5px; color: var(--text-3); }
.tag { display: inline-block; padding: 1px 8px; margin-right: 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.empty { text-align: center; padding: 36px 16px; background: var(--card); border: 1px dashed var(--brand-line); border-radius: 14px; color: var(--text-2); }
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--text-2); font-size: 14px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th, .ledger td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.ledger th { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.ledger td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--ok); font-weight: 500; }
.neg { color: var(--danger); font-weight: 500; }
.table-wrap { overflow-x: auto; }

/* Guides */
.guide {
    width: min(1280px, calc(100% - 32px)) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 36px 0 80px !important;
    box-sizing: border-box !important;
}
.guide > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}
.guide .crumbs {
    width: 100%;
    max-width: 100%;
}
.guide-figure.guide-hero,
.guide-figure,
.guide .cta-box,
.guide .related,
.guide .guide-list {
    max-width: 100% !important;
}
.guide h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.025em; color: var(--text); line-height: 1.24; margin: 0 0 20px 0; }
.guide .intro { margin: 0 0 32px 0; font-size: 18px; line-height: 1.75; color: var(--text-2); }
.guide h2 { font-size: clamp(22px, 2.8vw, 26px); font-weight: 700; color: var(--text); line-height: 1.35; margin: 44px 0 16px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.guide h1 + .intro + .cta-box + h2,
.guide .intro + .cta-box + h2,
.guide .guide-figure + h2 { border-top: none; padding-top: 0; margin-top: 36px; }
.guide p { margin: 0 0 20px 0; font-size: 16.5px; line-height: 1.75; color: var(--text-2); }
.guide ol, .guide ul { margin: 18px 0 28px 0; padding-left: 24px; color: var(--text-2); display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.7; }
.guide li { padding-left: 4px; }
.guide ol li::marker { color: var(--brand); font-weight: 700; }
.guide .callout { margin: 28px 0; padding: 20px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); }
.guide .callout p { margin-top: 0; margin-bottom: 0; color: var(--text); }
.guide-list { display: grid; gap: 20px; margin-top: 24px; }
.guide-list a { display: block; text-decoration: none; }
.guide-list a:hover .card { border-color: var(--brand-line); transform: translateY(-2px); }
.guide-list h3 { color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.45; }
.guide-figure { margin: 32px 0; }
.guide-figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.guide-figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-3); text-align: center; }
.guide-figure.guide-hero { margin: 24px 0 32px; display: block; }
.guide-faq { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.guide-faq h2, .related h2 { margin-top: 0; border-top: none; padding-top: 0; }
.guide-faq details { margin-top: 14px; padding: 16px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.guide-faq details p { color: var(--text-2); margin-top: 12px; margin-bottom: 0; line-height: 1.65; }
.guide .cta-box { margin: 36px 0 !important; width: 100% !important; box-sizing: border-box !important; }
.guide .cta-box.cta-top { margin: 28px 0 36px !important; }
.guide .cta-box.cta-mid { margin: 40px 0 !important; }
.guide .cta-box.cta-end { margin: 24px 0 48px !important; }
.next-steps { margin: 44px 0 24px; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.next-steps a { color: var(--brand); font-weight: 600; text-decoration: none; font-size: 14px; }
.next-steps a:hover { text-decoration: underline; }
.callout-title { font-weight: 500; color: var(--text); }
.related { margin-top: 44px; }
.related .card { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.related .card h3 { font-size: 15px; }
.thumb { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 12px; }
.guide-list .card { display: flex; flex-direction: column; gap: 6px; }
.guide-list .card p { margin-top: 2px; }

/* Landing sections */
.badges { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 20px; font-size: 13.5px; color: var(--text-2); }
.badges span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.btn-link-quiet { font-size: 14px; color: var(--text-2); padding: 13px 4px; }
.btn-link-quiet:hover { color: var(--brand); text-decoration: underline; }
.split { display: grid; gap: 28px; align-items: center; margin-top: 28px; grid-template-columns: 1fr; }
.split ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.split li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15px; }
.split li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 4px; background: var(--brand-soft); border: 2px solid var(--brand); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--text-3); border-top: 1px solid var(--line); }
.tools { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: 1fr; }
.tool { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.tool .feature-ico { flex: none; }
.tool h3 { font-size: 16px; }
.tool p { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.tag-free { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; vertical-align: middle; }
.tag-ai { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; vertical-align: middle; }
.credit-panel { display: grid; gap: 20px; margin-top: 28px; padding: 26px; background: var(--card); border: 1px solid var(--brand-line); border-radius: 18px; box-shadow: var(--shadow); }
.credit-panel ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.trust { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: 1fr; }
.trust .card { display: flex; flex-direction: column; gap: 8px; }
.trust .card a { color: var(--brand); font-weight: 500; }
.cta-band .cta { margin-top: 18px; }
.guide-list.home { margin-top: 28px; }

.btn-google, .btn-brand:has(.chrome-logo) { display: inline-flex; align-items: center; gap: 10px; }
.chrome-logo { width: 18px; height: 18px; flex: none; stroke: none; }
.btn-google .g-logo,
.btn-google svg,
.g-logo,
.g-logo *,
.btn-google svg * {
    width: 18px;
    height: 18px;
    flex: none;
    stroke: none !important;
    stroke-width: 0 !important;
}

.next-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.next-steps a { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 500; }
.next-steps a:hover { background: var(--card); }

.cta-box { margin: 28px 0; padding: 22px; border-radius: 16px; background: var(--brand-soft); border: 1px solid var(--brand-line); }
.cta-box .cta-title { font-size: 18px; font-weight: 700; color: var(--text); }
.cta-box .cta-note { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
.cta-box .cta { margin-top: 14px; }
.cta-box.cta-mid { background: var(--card); box-shadow: var(--shadow); }
.cta-box.cta-end { margin-top: 36px; }

/* Pricing */
.price-hero { display: grid; gap: 28px; align-items: center; padding: 40px 0 16px; grid-template-columns: 1fr; }
.price-hero h1 { margin-top: 12px; font-size: clamp(30px, 4vw, 44px); }
.rate-card { background: var(--card); border: 1px solid var(--brand-line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 12px; }
.rate-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; color: var(--text-2); padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.rate-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.rate-row strong { color: var(--text); font-size: 17px; font-variant-numeric: tabular-nums; }
.rate-note { font-size: 13px; color: var(--text-3); }
.price-section { margin-top: 48px; }
.price-section h2 { font-size: clamp(22px, 3vw, 28px); }
.section-lead { margin-top: 8px; color: var(--text-2); max-width: 680px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill-free { background: var(--ok-soft); color: var(--ok); }
.pill-credit { background: var(--brand-soft); color: var(--brand); }
.pill-bonus { background: #FEF3C7; color: #92400E; }
.pill-muted { background: transparent; color: transparent; }
.costs { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.cost-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cost-row:last-child { border-bottom: 0; }
.cost-what { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 500; }
.cost-what small { font-size: 13px; font-weight: 400; color: var(--text-3); }
.billing-cycle-nav { display: inline-flex; align-items: center; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 999px; border: 1px solid #e2e8f0; }
.billing-cycle-btn { border: none; background: transparent; padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #475569; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.billing-cycle-btn.active-cycle { background: var(--brand, #4f46e5); color: #fff; box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3); }
.billing-cycle-btn:hover:not(.active-cycle) { color: #0f172a; background: rgba(0, 0, 0, 0.04); }

.pack-grid { display: grid; gap: 16px; margin-top: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pack-grid-3 { display: grid; gap: 18px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 600px) {
    .pack-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .pack-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.topup-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.topup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}
.topup-card.featured {
    border-color: var(--brand, #4f46e5);
    box-shadow: 0 16px 30px -8px rgba(79, 70, 229, 0.22);
}
.topup-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.topup-card-price {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}
.topup-badge-bonus {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    letter-spacing: 0.01em;
}
.topup-badge-standard {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.topup-card-vnd {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}
.topup-credit-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.topup-credits-num {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    display: block;
}
.topup-credits-label {
    font-size: 11.5px;
    color: #059669;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}
.topup-features-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 7px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.4;
}
.topup-features-list li {
    display: flex;
    align-items: center;
    gap: 7px;
}
.topup-check-icon {
    color: #16a34a;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}
.topup-card-action {
    margin-top: auto;
    padding-top: 18px;
}
.pack { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 26px 22px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04), 0 2px 4px -2px rgba(0,0,0,0.04); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.pack:hover { transform: translateY(-3px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04); border-color: #cbd5e1; }
.pack.featured { border-color: var(--brand, #4f46e5); ring: 2px solid var(--brand, #4f46e5); box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.25); }
.pack-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; background: var(--brand, #4f46e5); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3); white-space: nowrap; }
.pack-title { font-size: 19px; font-weight: 800; color: #0f172a; letter-spacing: -0.01em; margin: 0; }
.pack-desc { font-size: 12.5px; color: #64748b; line-height: 1.4; min-height: 34px; margin-top: 2px; }
.pack-usd { font-size: 40px; font-weight: 900; color: #0f172a; letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 4px; margin-top: 8px; }
.pack-usd small { font-size: 14px; font-weight: 600; color: #64748b; letter-spacing: normal; }
.pack-vnd { font-size: 12px; color: #94a3b8; font-weight: 500; margin-top: 3px; }
.pack-credits-box { margin-top: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; padding: 10px 12px; }
.pack-credits-highlight { font-size: 13.5px; font-weight: 700; color: #0f172a; display: block; }
.pack-credits-sub { font-size: 11.5px; color: #059669; font-weight: 600; display: block; margin-top: 2px; }
.pack-savings-pill { display: inline-flex; align-items: center; gap: 4px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #15803d; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-top: 8px; }
.pack-features-list { list-style: none; padding: 0; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f1f5f9; display: grid; gap: 8px; font-size: 13px; color: #334155; line-height: 1.45; }
.pack-features-list li { display: flex; align-items: flex-start; gap: 8px; }
.pack-check-icon { color: #16a34a; font-weight: 800; font-size: 14px; line-height: 1.3; flex-shrink: 0; }
.pack .pill { align-self: flex-start; margin-top: 2px; }
.pack-cta { margin-top: 20px; width: 100%; justify-content: center; font-weight: 700; padding: 11px 16px; border-radius: 12px; font-size: 14px; text-decoration: none; }
.pay-grid { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: 1fr; }
.pay-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.pay-card h3 { font-size: 17px; }
.pay-card p { font-size: 14.5px; color: var(--text-2); }
.fine-print { margin-top: 14px; font-size: 13px; color: var(--text-3); }
.price-hero .badges span::before { content: "\2713"; }

@media (min-width: 720px) {
    .pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .price-hero { grid-template-columns: 1.2fr .8fr; }
}

.custom-card { margin-top: 22px; display: grid; gap: 18px; padding: 26px; background: var(--card); border: 1px solid var(--brand-line); border-radius: 20px; box-shadow: var(--shadow); }
.custom-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.custom-head label { font-size: 15px; font-weight: 500; color: var(--text-2); }
.custom-head output { font-size: 28px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.custom-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) 0%, var(--brand) var(--fill, 4%), var(--brand-soft) var(--fill, 4%)); outline: none; cursor: pointer; }
.custom-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(79, 70, 229, .35); }
.custom-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.custom-range:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.custom-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-3); margin-top: -6px; }
.custom-result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding: 18px 20px; border-radius: 14px; background: var(--brand-soft); }
.custom-credits { font-size: 34px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--text); }
.custom-vnd { font-size: 14px; color: var(--text-2); }
.custom-hint { font-size: 14px; color: var(--text-2); }
.custom-card #custom-cta { justify-self: start; }
.pay-logo { width: auto; height: auto; border: 0; box-shadow: none; background: none; }
.pay-logo svg { display: block; height: 34px !important; width: auto !important; max-height: none !important; }
/* The base svg rule strokes every shape in currentColor; brand logos must keep their own colours. */
.pay-logo svg, .pay-logo svg * { stroke: none !important; }
.pay-logo svg * { stroke-width: 0 !important; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--card); }
footer .footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 32px 0 20px; }
footer .footer-grid div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
footer .footer-grid strong { color: var(--text); font-weight: 500; margin-bottom: 4px; }
footer .footer-bottom { border-top: 1px solid var(--line); padding: 16px 0 24px; font-size: 13px; color: var(--text-3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0; font-size: 13px; color: var(--text-3); }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a:hover { color: var(--brand); }

@media (min-width: 720px) {
    .features, .grid-2, .tools, .trust { grid-template-columns: 1fr 1fr; }
    .tools { grid-template-columns: 1fr 1fr; }
    .credit-panel { grid-template-columns: 1fr 1fr; }
    .steps, .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .guide-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split.flip .shot { order: 2; }
    .hero { grid-template-columns: 1.1fr .9fr; padding: 72px 0 60px; }
    .top-nav { display: flex; }
}
@media (max-width: 899px) {
    .top .wrap { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 6px; }
    .top-left { width: 100%; flex-wrap: wrap; }
    .top-nav { margin-left: 0; width: 100%; padding-bottom: 2px; }
}
@media (min-width: 720px) {
    footer .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .top-actions .btn-brand { display: none; }
    .who span { display: none; }
    .profile-meta { display: none; }
    .profile-trigger { padding: 3px; max-width: none; }
    .profile-trigger .chevron { display: none; }
    .profile-menu { width: calc(100vw - 32px); max-width: 290px; right: 0; }
}


/* Pricing Model Segmented Tabs */
.pricing-model-tabs {
    display: flex;
    gap: 12px;
    margin: 36px 0 24px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 18px;
    border: 1.5px solid var(--line);
}
.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-2);
}
.tab-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
}
.tab-btn.active {
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.1), 0 2px 6px -2px rgba(0, 0, 0, 0.05);
}
.tab-icon {
    font-size: 26px;
    line-height: 1;
}
.tab-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.tab-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.tab-desc {
    font-size: 13px;
    color: var(--text-2);
}
.tab-badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand);
    white-space: nowrap;
}
.tab-badge-green {
    background: #ecfdf5;
    color: #047857;
}
@media (max-width: 720px) {
    .pricing-model-tabs {
        flex-direction: column;
        gap: 8px;
    }
    .tab-badge {
        display: none;
    }
}


/* Guarantee banner safety rules */
.guarantee-callout { margin-top: 24px; padding: 14px 20px; background: #fafbff; border: 1px solid var(--brand-line, #c7ccff); border-radius: 14px; font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 12px; }
.guarantee-callout svg { width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important; max-width: 22px !important; max-height: 22px !important; flex-shrink: 0 !important; }


/* Bonus Value Showcase Card */
.bonus-showcase-card {
    margin: 28px 0 36px;
    padding: 28px 24px;
    background: #fafbff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
}
.bonus-showcase-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 24px;
}
.bonus-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #e0e7ff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.bonus-showcase-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.3;
}
.bonus-showcase-subtitle {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.bonus-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
.bonus-feature-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.bonus-feature-item:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.06);
}
.bonus-feature-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 4px;
}
.bonus-feature-content strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.bonus-feature-content p {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 10px;
}
.bonus-feature-rate {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}
.bonus-showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px dashed #cbd5e1;
    flex-wrap: wrap;
}
.bonus-footer-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #334155;
    flex: 1;
    min-width: 280px;
}
@media (max-width: 900px) {
    .bonus-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .bonus-features-grid {
        grid-template-columns: 1fr;
    }
    .bonus-showcase-card {
        padding: 20px 16px;
    }
    .bonus-showcase-title {
        font-size: 19px;
    }
    .bonus-showcase-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .bonus-footer-cta .btn {
        width: 100%;
        text-align: center;
    }
}

/* Footer Social Pills */
.footer-social-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-social-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 8px; }
.footer-social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-social-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; transition: all .15s ease; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.footer-social-pill:hover { border-color: var(--brand); color: var(--brand); background: var(--bg); transform: translateY(-1px); }
.footer-social-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-social-pill.pill-telegram { color: #0284c7; }
.footer-social-pill.pill-ph { color: #ea580c; }
.footer-social-pill.pill-facebook { color: #1877F2; }
.footer-social-pill.pill-youtube { color: #dc2626; }


/* Sleek Mobile Bottom Navigation Bar & Mobile Responsiveness */
.docflow-bottom-nav {
    display: none;
}
@media (max-width: 1140px) {
    .top-actions .btn-brand {
        display: none !important;
    }
}
.products-dropdown.open .products-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
@media (max-width: 768px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .top {
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        max-width: 100vw;
        overflow-x: clip;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }
    .top .wrap {
        height: 54px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        flex-wrap: nowrap;
        row-gap: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .top-left {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        flex-shrink: 1;
    }
    .brand {
        font-size: 16px;
        gap: 6px;
        flex-shrink: 0;
    }
    .brand img {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }
    .top-nav {
        margin-left: 0;
        display: flex;
        align-items: center;
    }
    .top-nav > a {
        display: none !important;
    }
    .products-trigger {
        padding: 5px 6px;
        font-size: 12px;
        gap: 3px;
    }
    .products-trigger span {
        display: none !important;
    }
    .top-actions {
        display: flex;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
    }
    .top-actions .btn-brand {
        display: none !important;
    }
    .seg {
        padding: 1.5px;
    }
    .seg a {
        padding: 3px 6px;
        font-size: 11px;
    }
    .btn-google {
        padding: 6px 9px;
        font-size: 11.5px;
        gap: 0;
        white-space: nowrap;
    }
    .btn-google span {
        display: none !important;
    }
    .btn-google img,
    .btn-google svg {
        width: 15px;
        height: 15px;
    }
    .docflow-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(58px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
        z-index: 9999;
    }
    .docflow-bottom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 58px;
        color: var(--text-3);
        text-decoration: none;
        font-size: 10.5px;
        font-weight: 500;
        gap: 3px;
        transition: color 0.15s ease;
    }
    .docflow-bottom-item:hover,
    .docflow-bottom-item.active {
        color: var(--brand);
        font-weight: 600;
    }
    .docflow-bottom-item .nav-icon {
        width: 19px;
        height: 19px;
    }
    .docflow-bottom-item.docflow-bottom-install {
        flex: 1.15;
    }
    .docflow-bottom-item .install-pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 11px;
        border-radius: 999px;
        background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
        color: #ffffff;
        font-size: 11px;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
    }
}
@media (max-width: 480px) {
    .products-trigger span {
        display: none;
    }
    .products-trigger {
        padding: 5px 6px;
    }
}



/* ==========================================================================
   DocFlow Modern SaaS Footer Styles
   ========================================================================== */
.docflow-site-footer {
    border-top: 1px solid var(--line);
    background: #f8fafc;
    padding: 56px 0 28px;
    margin-top: 60px;
    color: var(--text);
}
.docflow-site-footer .wrap {
    width: min(1280px, calc(100% - 32px)) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}
.docflow-site-footer .footer-main-row {
    display: grid;
    grid-template-columns: 1.15fr 2.35fr;
    gap: 48px;
    margin-bottom: 32px;
    align-items: start;
}
@media (max-width: 990px) {
    .docflow-site-footer .footer-main-row {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}
/* Brand column */
.docflow-site-footer .footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.docflow-site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.docflow-site-footer .footer-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: contain;
}
.docflow-site-footer .footer-brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.docflow-site-footer .footer-brand-name {
    font-size: 21px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.02em;
}
.docflow-site-footer .footer-brand-name b {
    font-weight: 700;
    color: var(--brand);
}
.docflow-site-footer .footer-brand-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid var(--brand-line);
}
.docflow-site-footer .footer-parent-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease;
}
.docflow-site-footer .footer-parent-badge:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}
.docflow-site-footer .footer-axio-logo {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.docflow-site-footer .chevron-icon {
    color: var(--text-3);
}
.docflow-site-footer .footer-brand-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-2);
    max-width: 400px;
    margin: 2px 0 2px;
}
.docflow-site-footer .footer-brand-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}
.docflow-site-footer .footer-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    transition: all 0.15s ease;
}
.docflow-site-footer .footer-install-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

/* Nav columns: 4 balanced columns (Product, Account, Help, Ecosystem) */
.docflow-site-footer .footer-nav-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1.05fr 1.55fr;
    gap: 26px;
}
@media (max-width: 840px) {
    .docflow-site-footer .footer-nav-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}
@media (max-width: 480px) {
    .docflow-site-footer .footer-nav-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
.docflow-site-footer .footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
}
.docflow-site-footer .footer-nav-col strong {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 3px;
}
.docflow-site-footer .footer-nav-col a {
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.15s ease;
}
.docflow-site-footer .footer-nav-col a:hover {
    color: var(--brand);
}
.docflow-site-footer .footer-credit-bonus-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    font-size: 11.5px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
    width: fit-content;
}
.docflow-site-footer .footer-credit-bonus-link:hover {
    background: #d1fae5;
    text-decoration: none;
}

/* Ecosystem Column items */
.docflow-site-footer .footer-eco-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}
.docflow-site-footer .footer-eco-hub-mini-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--brand-soft);
}
.docflow-site-footer .footer-eco-hub-mini-link:hover {
    background: #e0e7ff;
}
.docflow-site-footer .footer-eco-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.docflow-site-footer .footer-eco-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 6px;
    margin: 0 -6px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.docflow-site-footer .footer-eco-item:hover {
    background: #eef2ff;
}
.docflow-site-footer .footer-eco-item.current {
    background: var(--brand-soft);
}
.docflow-site-footer .footer-eco-item-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
}
.docflow-site-footer .footer-eco-item-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.docflow-site-footer .footer-eco-item-top {
    display: flex;
    align-items: center;
    gap: 5px;
}
.docflow-site-footer .footer-eco-item-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}
.docflow-site-footer .footer-eco-item:hover .footer-eco-item-name {
    color: var(--brand);
}
.docflow-site-footer .footer-eco-item-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 0.5px 4px;
    border-radius: 3px;
    line-height: 1.3;
}
.docflow-site-footer .footer-eco-item-desc {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bottom line */
.docflow-site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding: 18px 0 10px;
    font-size: 12.5px;
    color: var(--text-3);
}
.docflow-site-footer .footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.docflow-site-footer .footer-bottom-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 500;
}
.docflow-site-footer .footer-bottom-brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: contain;
}
.docflow-site-footer .footer-bottom-brand-name b {
    color: var(--brand);
}
.docflow-site-footer .footer-bottom-sep {
    color: var(--text-3);
}
.docflow-site-footer .footer-bottom-social {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.docflow-site-footer .footer-social-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, color 0.2s ease;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    opacity: 0.85;
}
.docflow-site-footer .footer-social-ico:hover {
    background: transparent !important;
    opacity: 1;
    transform: translateY(-2px) scale(1.15);
}
.docflow-site-footer .footer-social-ico svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    flex-shrink: 0 !important;
}
.docflow-site-footer .footer-social-ico svg * {
    stroke: none !important;
    stroke-width: 0 !important;
}
.docflow-site-footer .footer-social-ico.ico-tg:hover { color: #0284c7; }
.docflow-site-footer .footer-social-ico.ico-ph:hover { color: #DA552F; }
.docflow-site-footer .footer-social-ico.ico-dev:hover { color: #0f172a; }
.docflow-site-footer .footer-social-ico.ico-fb:hover { color: #1877F2; }
.docflow-site-footer .footer-social-ico.ico-gh:hover { color: #0f172a; }
.docflow-site-footer .footer-social-ico.ico-yt:hover { color: #dc2626; }
.docflow-site-footer .footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.docflow-site-footer .footer-security-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
}
.docflow-site-footer .footer-tech-note {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
}

/* Global utility classes & component compatibility */
.hidden { display: none !important; }
.size-2 { width: 8px !important; height: 8px !important; }
.size-2\.5 { width: 10px !important; height: 10px !important; }
.size-3 { width: 12px !important; height: 12px !important; }
.size-3\.5 { width: 14px !important; height: 14px !important; }
.size-4 { width: 16px !important; height: 16px !important; }
.size-4\.5 { width: 18px !important; height: 18px !important; }
.size-5 { width: 20px !important; height: 20px !important; }
.size-6 { width: 24px !important; height: 24px !important; }
.size-7 { width: 28px !important; height: 28px !important; }
.size-8 { width: 32px !important; height: 32px !important; }
.size-9 { width: 36px !important; height: 36px !important; }
.size-10 { width: 40px !important; height: 40px !important; }
.size-12 { width: 48px !important; height: 48px !important; }
.size-13 { width: 52px !important; height: 52px !important; }
.size-14 { width: 56px !important; height: 56px !important; }
.size-full { width: 100% !important; height: 100% !important; }

