/* Marketing pages, mega footer, forms and blog.
   Hand-written (not Tailwind) so new pages don't need a CSS rebuild. Prefix: bx- */
:root {
  --bx-brand: #4f46e5; --bx-brand-dark: #3730a3; --bx-brand-soft: #eef2ff;
  --bx-ink: #111827; --bx-muted: #4b5563; --bx-faint: #6b7280; --bx-line: #e5e7eb;
  --bx-bg: #f9fafb; --bx-card: #ffffff; --bx-accent: #fde047;
}
.bx-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.bx-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }

/* Hero */
.bx-hero { background: linear-gradient(135deg, var(--bx-brand), #312e81); color: #fff; padding: 3.5rem 0 3rem; }
.bx-hero .bx-icon { font-size: 2.25rem; line-height: 1; margin-bottom: .75rem; }
.bx-hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .75rem; }
.bx-hero p { color: #c7d2fe; font-size: 1.125rem; max-width: 42rem; margin: 0; }
.bx-crumbs { font-size: .85rem; color: #c7d2fe; margin-bottom: 1rem; }
.bx-crumbs a { color: #e0e7ff; text-decoration: none; }
.bx-crumbs a:hover { text-decoration: underline; }
.bx-hero-cta { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* Buttons */
.bx-btn { display: inline-block; padding: .65rem 1.25rem; border-radius: .6rem; font-weight: 600; font-size: .95rem; text-decoration: none; border: 0; cursor: pointer; }
.bx-btn-light { background: #fff; color: var(--bx-brand); }
.bx-btn-light:hover { background: var(--bx-brand-soft); }
.bx-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.bx-btn-ghost:hover { background: rgba(255,255,255,.1); }
.bx-btn-primary { background: var(--bx-brand); color: #fff; }
.bx-btn-primary:hover { background: var(--bx-brand-dark); }

/* Sections */
.bx-section { padding: 3rem 0; }
.bx-section h2 { font-size: 1.5rem; font-weight: 700; color: var(--bx-ink); margin: 0 0 1.25rem; }
.bx-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bx-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.bx-card { background: var(--bx-card); border: 1px solid var(--bx-line); border-radius: .9rem; padding: 1.25rem 1.25rem 1.1rem; }
.bx-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--bx-ink); margin: 0 0 .4rem; }
.bx-card p { color: var(--bx-muted); font-size: .95rem; line-height: 1.55; margin: 0; }
a.bx-card { text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
a.bx-card:hover { border-color: var(--bx-brand); transform: translateY(-2px); }
.bx-card .bx-card-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.bx-card .bx-more { color: var(--bx-brand); font-size: .875rem; font-weight: 600; margin-top: .6rem; display: inline-block; }

/* FAQ */
.bx-faq details { background: var(--bx-card); border: 1px solid var(--bx-line); border-radius: .7rem; padding: .9rem 1.1rem; margin-bottom: .6rem; }
.bx-faq summary { font-weight: 600; cursor: pointer; color: var(--bx-ink); }
.bx-faq details p { color: var(--bx-muted); margin: .6rem 0 0; line-height: 1.55; }

/* Related + CTA */
.bx-related { display: flex; flex-wrap: wrap; gap: .5rem; }
.bx-chip { background: var(--bx-brand-soft); color: var(--bx-brand-dark); padding: .35rem .8rem; border-radius: 999px; font-size: .875rem; text-decoration: none; }
.bx-chip:hover { background: #e0e7ff; }
.bx-cta { background: var(--bx-brand-soft); border-radius: 1rem; padding: 2rem 1.5rem; text-align: center; }
.bx-cta h2 { margin-bottom: 1rem; }
.bx-cta .bx-hero-cta { justify-content: center; }
.bx-cta .bx-btn-ghost { color: var(--bx-brand); border-color: var(--bx-brand); }

/* Forms */
.bx-form { background: var(--bx-card); border: 1px solid var(--bx-line); border-radius: 1rem; padding: 1.5rem; }
.bx-form .bx-row { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 640px) { .bx-form .bx-row-2 { grid-template-columns: 1fr 1fr; } }
.bx-form label { display: block; font-size: .875rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }
.bx-form input, .bx-form select, .bx-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: .55rem; padding: .6rem .75rem; font: inherit; font-size: .95rem; background: #fff; color: var(--bx-ink); }
.bx-form input:focus, .bx-form select:focus, .bx-form textarea:focus { outline: 2px solid #a5b4fc; border-color: var(--bx-brand); }
.bx-form .bx-hint { font-size: .8rem; color: var(--bx-faint); margin-top: .25rem; }
.bx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bx-alert { border-radius: .6rem; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.bx-alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.bx-alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Blog */
.bx-post-meta { color: #c7d2fe; font-size: .9rem; margin-top: .75rem; }
.bx-prose { color: #1f2937; font-size: 1.05rem; line-height: 1.75; }
.bx-prose h2 { font-size: 1.45rem; font-weight: 700; margin: 2rem 0 .75rem; }
.bx-prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.bx-prose p { margin: 0 0 1rem; }
.bx-prose ul, .bx-prose ol { margin: 0 0 1rem 1.4rem; padding: 0; }
.bx-prose ul { list-style: disc; } .bx-prose ol { list-style: decimal; }
.bx-prose li { margin: .25rem 0; }
.bx-prose a { color: var(--bx-brand); text-decoration: underline; }
.bx-prose blockquote { border-left: 4px solid #c7d2fe; margin: 0 0 1rem; padding: .25rem 0 .25rem 1rem; color: var(--bx-muted); }
.bx-prose code { background: #f3f4f6; padding: .1rem .35rem; border-radius: .3rem; font-size: .9em; }
.bx-prose pre { background: #111827; color: #e5e7eb; padding: 1rem; border-radius: .6rem; overflow-x: auto; margin: 0 0 1rem; }
.bx-prose pre code { background: none; padding: 0; color: inherit; }
.bx-prose img { max-width: 100%; height: auto; border-radius: .6rem; }
.bx-prose hr { border: 0; border-top: 1px solid var(--bx-line); margin: 2rem 0; }

/* Mega footer */
.bx-footer { background: #fff; border-top: 1px solid var(--bx-line); margin-top: 3rem; padding: 2.5rem 0 1.5rem; font-size: .9rem; }
.bx-footer-grid { display: grid; gap: 1.75rem 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .bx-footer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .bx-footer-grid { grid-template-columns: repeat(7, 1fr); } }
.bx-footer h4 { font-size: .9rem; font-weight: 700; color: var(--bx-ink); margin: 0 0 .7rem; }
.bx-footer ul { list-style: none; margin: 0; padding: 0; }
.bx-footer li { margin: 0 0 .45rem; }
.bx-footer a { color: var(--bx-muted); text-decoration: none; }
.bx-footer a:hover { color: var(--bx-brand); text-decoration: underline; }
.bx-footer-bottom { border-top: 1px solid var(--bx-line); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; color: var(--bx-faint); }
.bx-footer-brand { display: flex; align-items: center; gap: .6rem; color: var(--bx-ink); font-weight: 700; }

/* Nav additions */
.bx-nav-links { flex-wrap: wrap; justify-content: flex-end; row-gap: .4rem; }
.bx-nav-quote { border: 1.5px solid rgba(255,255,255,.75); border-radius: .5rem; padding: .2rem .65rem; font-weight: 600; }
.bx-nav-quote:hover { background: rgba(255,255,255,.12); text-decoration: none !important; }

/* Barcode tool */
.bx-tool { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bx-tool { grid-template-columns: 1fr 1fr; align-items: start; } }
.bx-tool-preview { min-height: 160px; display: flex; align-items: center; justify-content: center; background: #f9fafb; border-radius: .7rem; padding: 1rem; margin-bottom: 1rem; overflow-x: auto; }
.bx-tool-preview img { max-width: 100%; height: auto; image-rendering: pixelated; }
.bx-form input[type=color] { padding: .2rem; height: 2.6rem; }

/* Public digital business card (/card/<slug>) */
.bx-cardpage { min-height: 100vh; background: color-mix(in srgb, var(--card) 10%, #f9fafb); padding: 1.5rem 1rem 2rem; }
.bx-vcard { max-width: 26rem; margin: 0 auto; }
.bx-vcard-top { height: 6.5rem; border-radius: 1.2rem 1.2rem 0 0; background: linear-gradient(135deg, var(--card), color-mix(in srgb, var(--card) 60%, #111827)); }
.bx-vcard-body { background: #fff; border-radius: 0 0 1.2rem 1.2rem; padding: 0 1.4rem 1.6rem; text-align: center; box-shadow: 0 10px 30px rgba(17,24,39,.08); }
.bx-vcard-avatar { width: 6.5rem; height: 6.5rem; border-radius: 50%; border: 4px solid #fff; margin: -3.25rem auto .75rem; object-fit: cover; display: block; background: #fff; }
.bx-vcard-initial { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 800; color: #fff; background: var(--card); }
.bx-vcard h1 { font-size: 1.5rem; font-weight: 800; color: #111827; margin: 0; }
.bx-vcard-role { color: #4b5563; margin: .25rem 0 0; }
.bx-vcard-about { color: #4b5563; font-size: .95rem; margin: .75rem 0 0; line-height: 1.5; }
.bx-vcard-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.25rem 0 1rem; }
.bx-vcard-actions a { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: 1.3rem; padding: .6rem .2rem; border-radius: .7rem; background: color-mix(in srgb, var(--card) 10%, #fff); text-decoration: none; color: #111827; }
.bx-vcard-actions span { font-size: .75rem; font-weight: 600; }
.bx-vcard-save { display: block; background: var(--card); color: #fff; padding: .8rem; border-radius: .8rem; font-weight: 700; text-decoration: none; }
.bx-vcard-links { display: grid; gap: .5rem; margin-top: 1rem; }
.bx-vcard-links a { display: block; padding: .7rem; border-radius: .7rem; border: 1.5px solid color-mix(in srgb, var(--card) 35%, #fff); color: #111827; text-decoration: none; font-weight: 600; }
.bx-vcard-details { text-align: left; margin: 1.25rem 0 0; font-size: .9rem; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.bx-vcard-details dt { color: #6b7280; } .bx-vcard-details dd { margin: 0; color: #111827; word-break: break-word; }
.bx-vcard-qr { margin-top: 1.25rem; font-size: .9rem; color: #4b5563; }
.bx-vcard-qr summary { cursor: pointer; font-weight: 600; }
.bx-vcard-qr img { display: block; margin: .75rem auto .25rem; }
.bx-vcard-foot { text-align: center; font-size: .8rem; color: #6b7280; margin-top: 1.25rem; }
.bx-vcard-foot a { color: #6b7280; }

/* Public landing page (/p/<slug>) */
.bx-lp { min-height: 100vh; background: color-mix(in srgb, var(--lp) 6%, #f9fafb); padding-bottom: 2rem; }
.bx-lp-draft { background: #fef3c7; color: #92400e; text-align: center; padding: .5rem; font-size: .85rem; font-weight: 600; }
.bx-lp-head { background: linear-gradient(135deg, var(--lp), color-mix(in srgb, var(--lp) 55%, #111827)); color: #fff; text-align: center; padding: 3rem 1rem 2.5rem; }
.bx-lp-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; margin: 0 auto; max-width: 40rem; }
.bx-lp-head p { margin: .75rem auto 0; max-width: 36rem; opacity: .9; font-size: 1.1rem; }
.bx-lp-body { max-width: 40rem; margin: 0 auto; padding: 2rem 1rem 0; display: flex; flex-direction: column; gap: 1rem; }
.lp-h { font-size: 1.5rem; font-weight: 800; color: #111827; margin: .5rem 0 0; }
.lp-btn { display: block; text-align: center; color: #fff; padding: .9rem 1rem; border-radius: .8rem; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.lp-btn:hover { filter: brightness(1.08); }
.lp-img { width: 100%; border-radius: .8rem; }
.lp-hr { border: 0; border-top: 1px solid #e5e7eb; margin: .5rem 0; }

/* Pages editor */
.lp-blocks { display: grid; gap: .6rem; }
.lp-block { border: 1px solid #e5e7eb; border-radius: .7rem; padding: .7rem; background: #fafafa; display: grid; gap: .5rem; }
.lp-block-head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; text-transform: uppercase; color: #6b7280; }
.lp-block-head button { margin-left: .4rem; padding: .1rem .35rem; }
button.bx-chip { border: 0; cursor: pointer; }

/* Ads (AdSense) */
.bx-ad { max-width: 72rem; margin: 1.5rem auto; padding: .5rem 1rem 1rem; text-align: center; }
.bx-ad-label { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; margin-bottom: .35rem; }
.bx-ad-remove { display: inline-block; margin-top: .4rem; font-size: .75rem; color: #6b7280; }
.bx-ad-remove:hover { color: #4f46e5; }

/* ───────────────────────── Polish (Nov 2026) ─────────────────────────
   Site-wide depth: tinted background, glass nav, soft shadows, home page sections,
   auth cards, dashboard summary. Plain CSS so no Tailwind rebuild is needed. */
:root { --bx-shadow-sm: 0 1px 2px rgba(17,24,39,.05), 0 1px 3px rgba(17,24,39,.06);
        --bx-shadow: 0 4px 6px -2px rgba(17,24,39,.05), 0 12px 24px -6px rgba(49,46,129,.12);
        --bx-shadow-lg: 0 24px 48px -12px rgba(49,46,129,.28); }
html.bg-gray-50, body { background-color: #f6f7fb; }
body { background-image: radial-gradient(60rem 30rem at 100% -10%, rgba(99,102,241,.07), transparent 60%),
                          radial-gradient(50rem 30rem at -10% 110%, rgba(236,72,153,.05), transparent 60%);
       background-attachment: fixed; -webkit-font-smoothing: antialiased; }
::selection { background: #c7d2fe; color: #1e1b4b; }

/* Nav: deep gradient, sticky, subtle glass */
body > nav.bg-indigo-600 { position: sticky; top: 0; z-index: 40;
  background: linear-gradient(90deg, #4338ca, #4f46e5 45%, #6d28d9);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 20px -8px rgba(49,46,129,.55); }
body > nav.bg-indigo-600 .bx-nav-links > a:not(.bx-nav-quote) { padding: .3rem .55rem; border-radius: .45rem; transition: background .15s; }
body > nav.bg-indigo-600 .bx-nav-links > a:not(.bx-nav-quote):hover { background: rgba(255,255,255,.14); text-decoration: none; }
.bx-nav-links { gap: .35rem .5rem !important; }
.bx-nav-quote { background: #fff; color: #4338ca; border-color: #fff; margin-left: .25rem; }
.bx-nav-quote:hover { background: #eef2ff !important; }

/* Generic surfaces get depth */
.bx-card, .bx-faq details, .bx-form { box-shadow: var(--bx-shadow-sm); }
a.bx-card:hover { box-shadow: var(--bx-shadow); border-color: #c7d2fe; }
.bx-hero { position: relative; overflow: hidden;
  background: radial-gradient(40rem 20rem at 85% 0%, rgba(236,72,153,.35), transparent 60%),
              radial-gradient(40rem 24rem at 0% 100%, rgba(56,189,248,.25), transparent 60%),
              linear-gradient(135deg, #4f46e5, #312e81); }
.bx-hero .bx-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem;
  border-radius: 1rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: 1.75rem; }
.bx-card h3::before { content: ''; display: block; width: 2rem; height: 3px; border-radius: 3px; margin-bottom: .7rem;
  background: linear-gradient(90deg, #6366f1, #ec4899); }
.bx-home-hero .bx-card h3::before, .bx-feature h3::before { display: none; }
.bx-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.bx-faq summary::-webkit-details-marker { display: none; }
.bx-faq summary::after { content: '+'; color: var(--bx-brand); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.bx-faq details[open] summary::after { content: '–'; }
.bx-faq details[open] { border-color: #c7d2fe; }
.bx-cta { background: linear-gradient(135deg, #eef2ff, #fdf2f8); border: 1px solid #e0e7ff; }
.bx-footer { background: #fff; position: relative; }
.bx-footer::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899); }

/* Home */
.bx-home-hero { position: relative; overflow: hidden; color: #fff; padding: 4.5rem 0 3.5rem; text-align: center;
  background: linear-gradient(160deg, #4338ca 0%, #4f46e5 40%, #312e81 100%); }
.bx-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.bx-glow-a { width: 28rem; height: 28rem; background: #ec4899; top: -10rem; right: -6rem; }
.bx-glow-b { width: 26rem; height: 26rem; background: #22d3ee; bottom: -14rem; left: -8rem; opacity: .35; }
.bx-home-hero-in { position: relative; }
.bx-badge { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .01em; padding: .35rem .85rem;
  border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); margin-bottom: 1.25rem; }
.bx-home-hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 1rem;
  background: linear-gradient(180deg, #fff 30%, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bx-home-sub { color: #c7d2fe; font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 40rem; margin: 0 auto 2rem; }
.bx-shorten { max-width: 40rem; margin: 0 auto; text-align: left; background: rgba(255,255,255,.98); border-radius: 1.1rem;
  padding: 1rem; box-shadow: var(--bx-shadow-lg), 0 0 0 6px rgba(255,255,255,.12); }
.bx-shorten form { display: grid; gap: .6rem; }
.bx-shorten-row { display: flex; gap: .6rem; }
.bx-shorten input { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; border: 1.5px solid #e5e7eb; border-radius: .7rem;
  padding: .8rem .95rem; font: inherit; font-size: 1rem; color: #111827; background: #fff; transition: border-color .15s, box-shadow .15s; }
.bx-shorten input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.bx-shorten button { border: 0; cursor: pointer; font: inherit; font-weight: 700; color: #fff; padding: 0 1.4rem; border-radius: .7rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5 50%, #7c3aed); box-shadow: 0 6px 16px -6px rgba(79,70,229,.7); white-space: nowrap; }
.bx-shorten button:hover { filter: brightness(1.07); }
.bx-shorten .bx-alert { margin-bottom: .6rem; }
@media (max-width: 520px) { .bx-shorten-row { flex-direction: column; } .bx-shorten button { padding: .8rem; } }
.bx-trust { list-style: none; padding: 0; margin: 2rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem;
  color: #e0e7ff; font-size: .9rem; }
.bx-band { background: #fff; border-top: 1px solid #eef0f5; border-bottom: 1px solid #eef0f5; }
.bx-head { text-align: center; max-width: 40rem; margin: 0 auto 2rem; }
.bx-head h2 { font-size: clamp(1.5rem, 3vw, 2rem) !important; letter-spacing: -.02em; margin-bottom: .5rem !important; }
.bx-head p { color: var(--bx-muted); margin: 0; font-size: 1.05rem; }
.bx-feature { padding: 1.4rem; }
.bx-chip-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .8rem;
  font-size: 1.35rem; margin-bottom: .9rem; }
.bx-tone-0 { background: #eef2ff; } .bx-tone-1 { background: #ecfeff; } .bx-tone-2 { background: #f0fdf4; }
.bx-tone-3 { background: #fdf2f8; } .bx-tone-4 { background: #fff7ed; } .bx-tone-5 { background: #f5f3ff; }
.bx-center { text-align: center; margin: 1.75rem 0 0; }
.bx-link-strong { color: var(--bx-brand); font-weight: 600; text-decoration: none; }
.bx-link-strong:hover { text-decoration: underline; }
.bx-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 768px) { .bx-steps { grid-template-columns: repeat(3, 1fr); } }
.bx-steps li { background: #fff; border: 1px solid var(--bx-line); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--bx-shadow-sm); }
.bx-steps span { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  color: #fff; font-weight: 800; background: linear-gradient(135deg, #6366f1, #a855f7); margin-bottom: .8rem; }
.bx-steps h3 { font-size: 1.1rem; font-weight: 700; color: var(--bx-ink); margin: 0 0 .35rem; }
.bx-steps p { color: var(--bx-muted); margin: 0; line-height: 1.55; }
.bx-related-center { justify-content: center; }
.bx-chip-lg { padding: .55rem 1rem; font-size: .95rem; background: #fff; border: 1px solid var(--bx-line); color: var(--bx-ink);
  box-shadow: var(--bx-shadow-sm); transition: border-color .15s, transform .15s; }
.bx-chip-lg:hover { border-color: #a5b4fc; background: #fff; transform: translateY(-1px); }
.bx-cta-dark { margin: 1rem 0 0; border-radius: 1.4rem; padding: 3rem 1.5rem; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(30rem 16rem at 100% 0%, rgba(236,72,153,.45), transparent 60%),
              radial-gradient(30rem 16rem at 0% 100%, rgba(34,211,238,.3), transparent 60%), #1e1b4b; box-shadow: var(--bx-shadow-lg); }
.bx-cta-dark h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; max-width: 36rem; margin: 0 auto .6rem; }
.bx-cta-dark p { color: #c7d2fe; margin: 0; }
.bx-cta-dark .bx-hero-cta { justify-content: center; }

/* Auth pages (login, signup, forgot, reset, verify) */
main.bx-auth { max-width: 28rem !important; margin: 3.5rem auto 0 !important; background: #fff; border: 1px solid var(--bx-line);
  border-radius: 1.25rem; padding: 2rem 1.75rem !important; box-shadow: var(--bx-shadow); position: relative; }
main.bx-auth::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 1.25rem 1.25rem 0 0;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899); }
main.bx-auth input:not([type=checkbox]):not([type=hidden]) { border-color: #d1d5db; padding-top: .65rem; padding-bottom: .65rem; }
main.bx-auth button[type=submit] { padding-top: .7rem; padding-bottom: .7rem; background: linear-gradient(135deg, #6366f1, #4f46e5 50%, #7c3aed);
  box-shadow: 0 6px 16px -6px rgba(79,70,229,.7); }

/* Pricing cards side by side (the prebuilt Tailwind file has no sm:grid-cols-2) */
.bx-plans { display: grid !important; gap: 1.5rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 720px) { .bx-plans { grid-template-columns: 1fr 1fr; } }
.bx-plans > div { border-radius: 1.25rem !important; box-shadow: var(--bx-shadow); }
.bx-plans > div:last-child { background: linear-gradient(160deg, #4f46e5, #312e81) !important; box-shadow: var(--bx-shadow-lg); }

/* Dashboard */
.bx-stats { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); margin: 0 0 1.25rem; }
.bx-stat { background: #fff; border: 1px solid var(--bx-line); border-radius: 1rem; padding: 1rem 1.1rem; box-shadow: var(--bx-shadow-sm); }
.bx-stat b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--bx-ink); }
.bx-stat span { font-size: .8rem; color: var(--bx-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bx-stat:nth-child(1) { border-top: 3px solid #6366f1; } .bx-stat:nth-child(2) { border-top: 3px solid #ec4899; } .bx-stat:nth-child(3) { border-top: 3px solid #22c55e; }
@media (max-width: 520px) { .bx-stats { grid-template-columns: 1fr 1fr; } .bx-stat:nth-child(3) { grid-column: span 2; } }
.bx-table { border: 1px solid var(--bx-line); border-radius: 1rem !important; box-shadow: var(--bx-shadow-sm) !important; }
.bx-table tbody tr { transition: background .12s; }
.bx-table tbody tr:hover { background: #fafaff; }
.bx-table td button[data-action] { padding: .2rem .45rem; border-radius: .4rem; }
.bx-table td button[data-action]:hover { background: #f3f4f6; text-decoration: none; }
.bx-empty { text-align: center; padding: 3rem 1rem; }
.bx-empty div { font-size: 2.5rem; margin-bottom: .5rem; }
.bx-empty h3 { font-weight: 700; font-size: 1.1rem; color: var(--bx-ink); margin: 0 0 .25rem; }
.bx-empty p { color: var(--bx-muted); margin: 0; }
#create-modal > div, #edit-modal > div, #stats-modal > div, #bulk-modal > div, #qr-modal > div, #rules-modal > div { border-radius: 1.1rem; }
#create-modal, #edit-modal, #stats-modal, #bulk-modal, #qr-modal, #rules-modal { backdrop-filter: blur(3px); }
.bx-check:not(.hidden) { display: flex; gap: .5rem; align-items: center; font-size: .875rem; color: #374151; margin: 0 0 1rem; }
main#pricing-root { padding-top: 2.5rem; }

/* Mobile nav: burger menu below 900px (logged-in nav has ~10 links) */
.bx-burger { display: none; }
@media (max-width: 899px) {
  nav.bx-nav { flex-wrap: wrap; padding: .7rem 1rem !important; }
  .bx-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.6rem; height: 2.4rem;
    padding: 0 .6rem; border-radius: .6rem; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); cursor: pointer; }
  .bx-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .bx-nav-open .bx-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .bx-nav-open .bx-burger span:nth-child(2) { opacity: 0; }
  .bx-nav-open .bx-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav.bx-nav .bx-nav-links { display: none !important; }
  nav.bx-nav.bx-nav-open .bx-nav-links { display: flex !important; flex-direction: column; align-items: stretch !important; width: 100%;
    gap: .15rem !important; margin-top: .7rem; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.2); font-size: 1rem !important; }
  nav.bx-nav.bx-nav-open .bx-nav-links > a, nav.bx-nav.bx-nav-open .bx-nav-links > form > button { display: block; width: 100%; text-align: left;
    padding: .6rem .75rem !important; border-radius: .55rem; }
  nav.bx-nav.bx-nav-open .bx-nav-links > form { display: block; }
  nav.bx-nav.bx-nav-open .bx-nav-links > form > button:hover { background: rgba(255,255,255,.14); }
  nav.bx-nav.bx-nav-open .bx-nav-quote { text-align: center !important; margin: .4rem 0 0; }
  nav.bx-nav.bx-nav-open .bx-nav-links > form:last-child > button { width: auto; display: inline-block; margin-top: .4rem; }
}

/* Dashboard tool shortcuts */
.bx-tools { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); margin: 0 0 1.25rem; }
.bx-tools a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center;
  background: #fff; border: 1px solid var(--bx-line); border-radius: .9rem; padding: .7rem .8rem; text-decoration: none;
  box-shadow: var(--bx-shadow-sm); transition: border-color .15s, transform .15s, box-shadow .15s; }
.bx-tools a:hover { border-color: #a5b4fc; transform: translateY(-1px); box-shadow: var(--bx-shadow); }
.bx-tools .bx-chip-icon { grid-row: span 2; width: 2.4rem; height: 2.4rem; margin: 0; font-size: 1.15rem; }
.bx-tools b { color: var(--bx-ink); font-size: .92rem; line-height: 1.2; }
.bx-tools small { color: var(--bx-faint); font-size: .75rem; line-height: 1.3; }
@media (max-width: 640px) {
  .bx-table { overflow-x: auto !important; }
  .bx-table td:last-child { white-space: nowrap; }
  .bx-table td, .bx-table th { padding-left: .6rem !important; padding-right: .6rem !important; }
}

/* Unified auth page: Google button + "or" divider */
.bx-google-wrap { display: flex; justify-content: center; min-height: 44px; margin: 0 0 1rem; }
.bx-auth-or { display: flex; align-items: center; gap: .75rem; color: #9ca3af; font-size: .8rem; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .05em; }
.bx-auth-or::before, .bx-auth-or::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

/* Free tools hub + tool pages */
a.bx-tool-card { color: inherit; }
a.bx-tool-card:hover { border-color: #a5b4fc; transform: translateY(-2px); }
.bx-tool-card h2 { font-size: 1.1rem; font-weight: 700; margin: .6rem 0 .3rem; color: #111827; }
.bx-tool-card p { margin: 0; color: #6b7280; font-size: .92rem; line-height: 1.5; }
.bx-tool-emoji { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .75rem;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff); color: #4338ca; font-size: 1.3rem; font-weight: 700; }
.bx-tool-link { display: flex; gap: .5rem; margin: 0 0 1rem; }
.bx-tool-link input { flex: 1; min-width: 0; font-size: .85rem; background: #f9fafb; }
.bx-tool-upsell { margin-top: 1rem; padding: .85rem 1rem; border-radius: .75rem; background: #f5f3ff; border: 1px solid #e0e7ff;
  font-size: .88rem; color: #4b5563; line-height: 1.55; }
.bx-tool-upsell b { display: block; color: #312e81; margin-bottom: .15rem; }
.bx-tool-upsell a { color: #4f46e5; font-weight: 600; white-space: nowrap; }
