:root {
    --bl-blue: #1d4ed8;
    --bl-blue-dark: #1e3a8a;
    --bl-yellow: #f5c518;
    --bl-ink: #0f172a;
    --bl-muted: #64748b;
    --bl-bg: #f4f7fb;
    --bl-card: #ffffff;
    --bl-line: #e2e8f0;
    --bl-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--bl-ink);
    background: var(--bl-bg);
}
img { max-width: 100%; }
a { color: var(--bl-blue); }
.skip-link {
    position: absolute;
    left: 1rem;
    top: -40px;
    background: #fff;
    padding: .5rem .8rem;
    z-index: 10;
}
.skip-link:focus { top: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--bl-ink); }
.btn-bl, .btn-bl:hover { background: var(--bl-blue); color: #fff; border: 0; }
.btn-accent, .btn-accent:hover { background: var(--bl-yellow); color: #1f2937; border: 0; font-weight: 700; }
.btn-bl-outline { background: #fff; color: var(--bl-blue); border: 1px solid #bfdbfe; }
.btn-bl-outline:hover { background: #eff6ff; color: var(--bl-blue-dark); }

.site-header { background: rgba(255,255,255,.9); border-bottom: 1px solid var(--bl-line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.hero { padding: 4.5rem 0 3rem; background: radial-gradient(circle at 12% 20%, rgba(245,197,24,.35), transparent 28%), radial-gradient(circle at 80% 0%, rgba(29,78,216,.18), transparent 32%), #f8fbff; }
.eyebrow { display: inline-flex; gap: .4rem; align-items: center; color: var(--bl-blue-dark); background: #fff; border-radius: 999px; padding: .35rem .75rem; font-weight: 700; font-size: .85rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.04em; margin: 1rem 0; }
.hero .lead { color: var(--bl-muted); font-size: 1.1rem; max-width: 38rem; }
.hero-note { margin-top: 1rem; color: var(--bl-muted); }
.phone { width: min(320px, 100%); margin: 0 auto; background: #fff; border-radius: 36px; padding: 1.4rem 1rem 1.2rem; box-shadow: var(--bl-shadow); text-align: center; }
.phone-bar { width: 90px; height: 8px; border-radius: 99px; background: #e2e8f0; margin: 0 auto 1rem; }
.phone-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto .7rem; display: grid; place-items: center; background: var(--bl-blue); color: #fff; font-weight: 800; }
.phone p { color: var(--bl-muted); font-size: .92rem; }
.phone-link, .phone-link.accent { display: block; margin: .55rem 0; padding: .8rem; border-radius: 14px; background: var(--bl-blue); color: #fff; font-weight: 700; }
.phone-link.accent { background: var(--bl-yellow); color: #1f2937; }
.section { padding: 4.5rem 0; }
.section-soft { background: #fff; }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { letter-spacing: -.03em; }
.section-head p, .feature-card p, .use-card p { color: var(--bl-muted); }
.feature-card, .use-card, .panel, .auth-card, .stat-card { background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: 20px; box-shadow: 0 10px 30px rgba(15,23,42,.04); }
.feature-card, .use-card { padding: 1.25rem; height: 100%; }
.feature-card i { font-size: 1.4rem; color: var(--bl-blue); }
.feature-card h3, .use-card h3 { font-size: 1.1rem; margin: .7rem 0 .3rem; }
.narrow { max-width: 820px; }
.accordion-item { border: 1px solid var(--bl-line); border-radius: 14px !important; overflow: hidden; margin-bottom: .7rem; }
.accordion-button { font-weight: 700; }
.cta-band { background: var(--bl-ink); color: #fff; border-radius: 24px; padding: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cta-band p { color: #cbd5e1; }
.site-footer { background: #fff; border-top: 1px solid var(--bl-line); padding: 3rem 0 1.2rem; }
.footer-links { padding: 0; margin: 0; }
.footer-links a { color: var(--bl-muted); text-decoration: none; }
.footer-links li { margin: .35rem 0; }
.footer-bottom { margin-top: 2rem; color: var(--bl-muted); font-size: .92rem; }
.legal-body p { color: #334155; line-height: 1.7; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(circle at top, rgba(245,197,24,.28), transparent 30%), var(--bl-bg); }
.auth-wrap { width: min(460px, 100%); }
.auth-card { padding: 1.4rem; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar { width: 260px; flex-direction: column; gap: .4rem; padding: 1.2rem; background: #fff; border-right: 1px solid var(--bl-line); position: sticky; top: 0; height: 100vh; }
.dash-main { flex: 1; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--bl-line); position: sticky; top: 0; z-index: 5; }
.dash-title { font-size: 1.25rem; margin: 0; }
.dash-content { padding: 1.2rem; }
.side-label { color: var(--bl-muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 1rem 0 .4rem; }
.side-link { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: #334155; border-radius: 12px; padding: .65rem .75rem; font-weight: 600; }
.side-link.active, .side-link:hover { background: #eff6ff; color: var(--bl-blue-dark); }
.panel { padding: 1.1rem; }
.stat-card { padding: 1rem 1.1rem; }
.stat-card span { display: block; color: var(--bl-muted); font-size: .85rem; }
.stat-card strong { font-size: 1.6rem; }
.link-row { display: flex; gap: .6rem; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--bl-line); flex-wrap: wrap; }
.drag-handle { border: 0; background: transparent; color: #94a3b8; cursor: grab; }
.empty-state { color: var(--bl-muted); }
.preset-card { width: 100%; text-align: left; border: 1px solid var(--bl-line); background: #fff; border-radius: 16px; padding: .9rem; }
.preset-card.is-current { border-color: var(--bl-blue); box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
.preset-swatch { width: 100%; height: 42px; border-radius: 10px; display: block; margin-bottom: .5rem; }
.preset-card small { display: block; color: var(--bl-muted); }

.bio-stage { min-height: 100vh; padding: 2rem 0 2.5rem; background-size: cover; background-position: center; font-family: var(--bio-font, "Plus Jakarta Sans", sans-serif); }
.bio-stage.is-preview { min-height: 0; border-radius: 24px; overflow: hidden; }
.bio-inner { width: min(480px, calc(100% - 2rem)); margin: 0 auto; text-align: center; }
.bio-stage.has-image .bio-inner { background: rgba(255,255,255,.88); border-radius: 28px; padding: 1.5rem 1rem; }
.bio-stage.has-image[data-mode="dark"] .bio-inner { background: rgba(15,23,42,.82); }
.bio-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.bio-fallback { display: grid; place-items: center; margin: 0 auto; background: var(--bl-blue); color: #fff; font-weight: 800; font-size: 1.4rem; }
.bio-name { font-size: 1.6rem; margin: .8rem 0 0; }
.bio-badge { color: #2563eb; font-size: 1rem; }
.bio-user, .bio-text, .bio-brand, .bio-preview-note { color: #475569; }
.bio-demo { display: inline-block; background: var(--bl-yellow); color: #1f2937; border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; font-weight: 700; }
.bio-socials { display: flex; justify-content: center; gap: .45rem; flex-wrap: wrap; margin: .8rem 0; }
.bio-social { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.8); color: var(--bl-ink); text-decoration: none; }
.bio-links { margin-top: .4rem; }
.bio-link { width: 100%; display: flex; align-items: center; justify-content: center; gap: .7rem; text-decoration: none; font-weight: 700; padding: .9rem 1rem; margin: .65rem 0; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
button.bio-link { font: inherit; cursor: pointer; }
.bio-link img { width: 36px; height: 36px; object-fit: cover; border-radius: 10px; }
.bio-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.12); }
.bio-link--fill { background: var(--btn); color: var(--btn-text); }
.bio-link--outline { background: transparent; color: var(--btn); border-color: var(--btn); }
.bio-link--soft { background: rgba(255,255,255,.78); color: var(--btn); }
.bio-link--pill { border-radius: 999px; }
.bio-link--rounded { border-radius: 16px; }
.bio-link--square { border-radius: 6px; }
.bio-actions, .bio-qr { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-top: .8rem; }
.bio-qr { flex-direction: column; align-items: center; }
.bio-qr canvas { background: #fff; border-radius: 12px; max-width: 200px; height: auto; }
.bio-stage[data-mode="dark"] { color: #f8fafc; }
.bio-stage[data-mode="dark"] .bio-user,
.bio-stage[data-mode="dark"] .bio-text,
.bio-stage[data-mode="dark"] .bio-brand,
.bio-stage[data-mode="dark"] .bio-preview-note { color: #cbd5e1; }
.bio-stage[data-mode="dark"] .bio-social { background: rgba(15,23,42,.45); color: #fff; }
.bio-stage[data-mode="dark"] .bio-link--soft { background: rgba(255,255,255,.08); }
.bio-brand a { color: inherit; font-weight: 700; }
.error-body { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--bl-bg); }
.error-card { width: min(520px, 100%); background: #fff; border-radius: 24px; padding: 2rem; box-shadow: var(--bl-shadow); }
.profile-body .alert { width: min(480px, calc(100% - 2rem)); margin: 1rem auto 0; }
#devDonateModal img { max-width: 100%; height: auto; }
.dev-donate { display: inline-flex; align-items: center; gap: .3rem; margin-left: .55rem; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: .65rem; background: #fff; color: #1f2937; border: 1px solid #d6d3d1; font-weight: 700; }
.btn-google:hover { background: #f8fafc; color: #1f2937; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: #64748b; font-size: .85rem; margin: 0 0 1rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }

@media (max-width: 720px) {
    .dash-content, .dash-top { padding-left: .8rem; padding-right: .8rem; }
    .link-row { align-items: flex-start; }
    .hero { padding-top: 2.5rem; }
}
