/* ===== LENG Link-in-Bio — Shared Theme ===== */

:root {
    --bg: #000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111;
    --border: #222;
    --text: #fff;
    --text-secondary: #888;
    --text-muted: #666;
    --accent: #fff;
    --danger: #e74c3c;
    --success: #4caf50;
}

[data-theme="light"] {
    --bg: #fff;
    --bg-secondary: #f5f5f5;
    --bg-card: #fff;
    --border: #e0e0e0;
    --text: #000;
    --text-secondary: #555;
    --text-muted: #888;
    --accent: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* ===== Ripple Effect ===== */
.ripple-host {
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 999;
}

[data-theme="light"] .ripple-wave {
    background: radial-gradient(circle, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 70%);
}

@keyframes ripple-anim {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 48px;
    height: 48px;
    background: rgba(128,128,128,0.15);
    backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(128,128,128,0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo:hover {
    background: rgba(128,128,128,0.25);
    transform: translateY(-2px);
}

.logo-img {
    height: 30px;
    max-height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

.theme-btn {
    width: 48px;
    height: 48px;
    background: rgba(128,128,128,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(128,128,128,0.25);
    transform: translateY(-2px);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
}

.theme-btn .sun { display: none; }
.theme-btn .moon { display: block; }
[data-theme="light"] .theme-btn .sun { display: block; }
[data-theme="light"] .theme-btn .moon { display: none; }

.menu-btn {
    width: 48px;
    height: 48px;
    background: var(--text);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.menu-btn:hover { transform: scale(1.1); }

.menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--bg);
    transition: all 0.3s ease;
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: var(--text);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-menu.active { transform: translateY(0); }

.menu-close {
    position: absolute;
    top: 1.5rem; right: 2rem;
    width: 48px; height: 48px;
    background: var(--bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-close:hover { transform: rotate(90deg); }

.menu-close svg {
    width: 20px; height: 20px;
    stroke: var(--text);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.menu-items a {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--bg);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.fullscreen-menu.active .menu-items a {
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-menu.active .menu-items a:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu.active .menu-items a:nth-child(2) { transition-delay: 0.15s; }
.fullscreen-menu.active .menu-items a:nth-child(3) { transition-delay: 0.2s; }
.fullscreen-menu.active .menu-items a:nth-child(4) { transition-delay: 0.25s; }
.fullscreen-menu.active .menu-items a:nth-child(5) { transition-delay: 0.3s; }

.menu-items a:hover { opacity: 0.6; }

/* ===== Auth Button (Navbar) ===== */
.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(128,128,128,0.2);
}

.auth-btn svg {
    width: 18px; height: 18px;
}

.auth-btn.logged-in {
    background: rgba(128,128,128,0.15);
    backdrop-filter: blur(10px);
    color: var(--text);
    border: 1px solid rgba(128,128,128,0.2);
}

.auth-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(128,128,128,0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(128,128,128,0.3);
}

.cta-btn svg {
    width: 20px; height: 20px;
}

/* ===== Features Grid ===== */
.features {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 56px; height: 56px;
    background: rgba(128,128,128,0.1);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 24px; height: 24px;
    stroke: var(--text);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    padding: 4rem 2rem 2rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    line-height: 2;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover { color: var(--text); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Bio CTA Footer ===== */
.bio-cta-footer {
    width: 100%;
    padding: 2rem 1rem 2.5rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.bio-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--text, #fff);
    text-decoration: none;
    background: rgba(128,128,128,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.65rem 1.15rem;
    border-radius: 50px;
    border: 1px solid rgba(128,128,128,0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bio-cta-btn:hover {
    background: rgba(128,128,128,0.25);
    transform: translateY(-2px);
}

.bio-cta-logo-img {
    height: 30px;
    max-height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Light background variant */
.bio-cta-btn.light-bg {
    color: #111;
    background: rgba(128,128,128,0.1);
    border-color: rgba(128,128,128,0.15);
}
.bio-cta-btn.light-bg:hover {
    background: rgba(128,128,128,0.2);
}

@media (max-width: 480px) {
    .bio-cta-btn {
        font-size: 0.7rem;
        padding: 0.55rem 1rem;
        gap: 0.4rem;
    }
    .bio-cta-logo-img { height: 24px; max-height: 24px; }
    .bio-cta-footer { padding: 1.5rem 1rem 2rem; }
}

/* ===== Loading ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Public Bio Page ===== */
.bio-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
}

.bio-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.bio-avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    display: block;
}

.bio-avatar-placeholder {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-muted);
}

.bio-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.bio-slug {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.bio-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.bio-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bio-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bio-link-btn:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bio-link-btn svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
}

.bio-not-found {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.bio-not-found h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    opacity: 0.2;
}

.bio-not-found p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===== Panel ===== */
.panel-container {
    min-height: 100vh;
    padding: 7rem 2rem 3rem;
}

.panel-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.panel-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.panel-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.panel-section .section-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input.error {
    border-color: var(--danger);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.form-hint.error {
    color: var(--danger);
}

.form-hint.success {
    color: var(--success);
}

.social-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-group label {
    min-width: 90px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.social-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
}

.social-group input:focus {
    outline: none;
    border-color: var(--text);
}

.panel-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    flex: 1;
    padding: 1rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 1rem 1.5rem;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--text);
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

/* Preview inside panel */
.preview-wrapper {
    position: sticky;
    top: 6rem;
}

.preview-device {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Toast / Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.info { border-color: #3b82f6; color: #3b82f6; }

/* Setup (first-time flow) */
.setup-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.setup-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Soft radial glow */
.setup-container::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.setup-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 40px rgba(0,0,0,0.06);
}

.setup-card .setup-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.setup-logo-img {
    height: 64px;
    max-height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

.setup-card h1 {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #111;
    margin-bottom: 0.4rem;
    text-align: center;
}

.setup-card .setup-desc {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

.setup-card .form-group {
    margin-bottom: 0;
}

.setup-card .form-group label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 0.5rem;
}

/* Slug inline input with prefix */
.slug-input-row {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.slug-input-row:focus-within {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.slug-input-prefix {
    padding: 0 0 0 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #bbb;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.3px;
}

.slug-input-field {
    flex: 1;
    padding: 0.85rem 1rem 0.85rem 0.15rem;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.3px;
}

.slug-input-field::placeholder {
    color: #ccc;
    font-weight: 500;
}

.slug-preview {
    display: none;
}

.slug-preview strong {
    color: #111;
}

.setup-card .form-hint {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.setup-card .panel-actions {
    margin-top: 1.5rem;
}

.setup-card .btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setup-card .btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.setup-card .btn-primary:active {
    transform: translateY(0);
}

.setup-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.72rem;
    color: #bbb;
    letter-spacing: 0.3px;
}

/* ===== Content Blocks (Panel Editor) ===== */
.blocks-empty {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.block-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.block-item:hover {
    border-color: var(--text-muted);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.block-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: rgba(128,128,128,0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
}

.block-controls {
    display: flex;
    gap: 0.25rem;
}

.block-ctrl-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.block-ctrl-btn:hover {
    background: rgba(128,128,128,0.1);
    color: var(--text);
}

.block-ctrl-delete:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(231,76,60,0.1);
}

.block-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

textarea.block-input {
    min-height: 100px;
    resize: vertical;
}

.block-input:focus {
    outline: none;
    border-color: var(--text);
}

.block-add-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.block-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: transparent;
    border: 2px dashed var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.block-add-btn:hover {
    border-color: var(--text);
    color: var(--text);
    background: rgba(128,128,128,0.05);
}

/* ===== Pattern Selector ===== */
.pattern-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.pattern-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.pattern-option:hover {
    border-color: var(--text-muted);
}

.pattern-option.active {
    border-color: var(--text);
    color: var(--text);
    background: rgba(128,128,128,0.1);
}

.pattern-preview {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.pattern-none { background: var(--bg-secondary); }

.pattern-dots {
    background-image: radial-gradient(circle, var(--text-muted) 1px, transparent 1px);
    background-size: 8px 8px;
}

.pattern-grid {
    background-image: linear-gradient(var(--text-muted) 1px, transparent 1px), linear-gradient(90deg, var(--text-muted) 1px, transparent 1px);
    background-size: 8px 8px;
}

.pattern-diagonal {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, var(--text-muted) 4px, var(--text-muted) 5px);
}

.pattern-cross {
    background-image: linear-gradient(var(--text-muted) 1px, transparent 1px), linear-gradient(90deg, var(--text-muted) 1px, transparent 1px);
    background-size: 12px 12px;
}

.pattern-waves {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, var(--text-muted) 5px, var(--text-muted) 6px),
                       repeating-linear-gradient(-45deg, transparent, transparent 5px, var(--text-muted) 5px, var(--text-muted) 6px);
}

/* ===== Bio Page Background + Pattern Overlays ===== */
.bio-page-bg {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.bio-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.bio-pattern-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
}

.pattern-overlay-dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-overlay-grid {
    background-image: linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 30px 30px;
}

.pattern-overlay-diagonal {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.2) 10px, rgba(255,255,255,0.2) 11px);
}

.pattern-overlay-cross {
    background-image: linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

.pattern-overlay-waves {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,0.15) 12px, rgba(255,255,255,0.15) 13px),
                       repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255,255,255,0.15) 12px, rgba(255,255,255,0.15) 13px);
}

/* ===== Bio Content Blocks (Public Page) ===== */
.bio-blocks {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.bio-content-text {
    text-align: justify;
    text-align-last: center;
    line-height: 1.7;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    padding: 1.25rem;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.bio-content-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.bio-content-image img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.bio-content-youtube {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.bio-content-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ===== Preview Bio Page (inside panel) ===== */
.preview-bio-page {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 480px;
    padding: 2rem 1.25rem;
    width: 100%;
}

.preview-bio-content {
    position: relative;
    z-index: 2;
}

/* ===== Poll & Q&A on Bio Page ===== */
.bio-section-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

.poll-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.poll-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

.poll-question {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.4;
}

.poll-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1rem;
    display: flex;
    align-items:center;
    gap: 0.75rem;
}

.poll-option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: rgba(255,255,255,0.9);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 0.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.poll-option-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.poll-option-btn.voted {
    cursor: default;
}

.poll-option-btn.voted:hover {
    transform: none;
}

.poll-option-btn.selected {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.12);
}

.poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: width 0.5s ease;
    z-index: 0;
}

.poll-option-text {
    position: relative;
    z-index: 1;
    flex: 1;
}

.poll-option-pct {
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.poll-option-votes {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.poll-vote-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.9);
    color: #000;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.poll-vote-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}

.poll-vote-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.poll-login-hint {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    margin-top: 0.5rem;
}

.poll-login-hint a {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* Q&A on Bio */
.qa-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.qa-question-text {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.95);
}

.qa-answer-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.75rem;
}

.qa-answer-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.qa-answer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
}

.qa-answer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qa-answer-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.1rem;
}

.qa-answer-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}

.qa-answer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.qa-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-like-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
}

.qa-like-btn.liked {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}

.qa-answer-input-wrap {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.qa-answer-input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: rgba(255,255,255,0.9);
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.qa-answer-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
}

.qa-answer-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.qa-send-btn {
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.9);
    color: #000;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.qa-send-btn:hover {
    background: #fff;
}

/* Google Login Modal */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal {
    background: var(--bg-card, #111);
    border: 1px solid var(--border, #222);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
}

.login-modal h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text, #fff);
}

.login-modal p {
    font-size: 0.9rem;
    color: var(--text-secondary, #888);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.google-login-btn svg {
    width: 20px;
    height: 20px;
}

.login-close-btn {
    display: block;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border, #222);
    border-radius: 10px;
    color: var(--text-muted, #666);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-close-btn:hover {
    color: var(--text, #fff);
    border-color: var(--text-muted, #666);
}

/* ===== Bio Avatar Wrap ===== */
.bio-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
}

/* ===== Bio Badges (Corner of Profile Photo) ===== */
.bio-badges-corner {
    position: absolute;
    bottom: -6px;
    right: -6px;
    display: flex;
    gap: 4px;
    z-index: 5;
}

.bio-badge-item {
    width: 26px;
    height: 26px;
    overflow: visible;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    cursor: default;
    border: none;
    background: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.bio-badge-item:hover {
    transform: scale(1.15);
}

.bio-badge-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

/* Verification badge (blue tick) */
.bio-badge-verified {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1d9bf0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    flex-shrink: 0;
}

.bio-badge-verified svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    stroke: none;
}

/* ======================================================================= */
/* ===== LENG LANDING PAGE (Modern Video Hero + Sections) ===== */
/* ======================================================================= */

/* Fixed Nav over video */
.leng-nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: transparent !important;
    border: none !important;
    transition: background 0.3s ease;
}

.leng-nav-fixed.scrolled {
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== Video Hero ===== */
.leng-video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #000;
}

.leng-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

/* Portrait (9:16) video — keep centered on desktop, fill on mobile */
@media (min-width: 769px) {
    .leng-hero-video {
        width: auto;
        height: 100%;
        min-width: unset;
    }
}

.leng-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    z-index: 2;
    pointer-events: none;
}

.leng-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 2rem 6rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.leng-hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.leng-hero-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 60px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.leng-hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(255,255,255,0.2);
}

.leng-hero-cta svg {
    transition: transform 0.3s ease;
}

.leng-hero-cta:hover svg {
    transform: translateX(4px);
}

.leng-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== Common Section ===== */
.leng-section {
    padding: 6rem 2rem;
}

.leng-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.leng-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.leng-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
}

.leng-section-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--text);
}

/* ===== Intro Section ===== */
.leng-intro {
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.leng-intro-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 50px;
}

.leng-big-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.leng-intro-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.leng-stats-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.leng-stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text);
}

.leng-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* ===== Bento Grid ===== */
.leng-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.leng-bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.leng-bento-card:hover {
    border-color: rgba(128,128,128,0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.leng-bento-wide {
    grid-column: span 2;
}

.leng-bento-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.leng-bento-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.3px;
}

.leng-bento-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Steps ===== */
.leng-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.leng-step {
    text-align: center;
    max-width: 260px;
    padding: 0 1.5rem;
}

.leng-step-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    opacity: 0.15;
    margin-bottom: 0.75rem;
    letter-spacing: -2px;
}

.leng-step h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.leng-step p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.leng-step-line {
    width: 80px;
    height: 1px;
    background: var(--border);
    margin-top: 2.5rem;
    flex-shrink: 0;
}

/* ===== Showcase ===== */
.leng-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.leng-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.leng-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.leng-showcase-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.leng-showcase-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.leng-showcase-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    height: 60px;
}

.leng-mock-profile {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
}

.leng-mock-circle { border-radius: 50%; }
.leng-mock-rounded { border-radius: 12px; }
.leng-mock-square { border-radius: 4px; }

.leng-mock-btn {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.leng-mock-btn-rounded { border-radius: 50px; }
.leng-mock-btn-sharp { border-radius: 4px; }
.leng-mock-btn-outline { border-radius: 12px; background: transparent; border: 2px solid var(--text-muted); }

.leng-mock-bg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

/* ===== Final CTA ===== */
.leng-final-cta {
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.leng-final-cta .leng-big-title {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
}

/* ===== Footer ===== */
.leng-footer {
    border-top: 1px solid var(--border);
}

/* ===== Share Button (Bio Navbar) — mirrors .theme-btn exactly ===== */
.share-btn {
    width: 48px;
    height: 48px;
    background: rgba(128,128,128,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(128,128,128,0.25);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
}

/* ===== Share Panel Overlay ===== */
.share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 1.5rem;
}

.share-overlay.active {
    display: flex;
}

.share-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.75rem 1.75rem;
    max-width: 380px;
    width: 100%;
    position: relative;
    animation: sharePanelPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

@keyframes sharePanelPop {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.share-panel-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128,128,128,0.1);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.share-panel-close:hover {
    background: rgba(128,128,128,0.2);
    color: var(--text);
}

/* Handle / pill at top */
.share-panel::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
}

.share-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    padding-top: 0.75rem;
}

.share-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.share-profile-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-muted);
}

.share-profile-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
    margin-top: 0.25rem;
}

.share-profile-slug {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.share-url-box {
    display: flex;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.share-url-input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
    letter-spacing: -0.2px;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.share-copy-btn:hover {
    opacity: 0.85;
}

.share-copy-btn.copied {
    background: #4caf50;
    color: #fff;
}

.share-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.share-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
    border-color: rgba(128,128,128,0.35);
}

.share-action-btn svg {
    opacity: 0.6;
}

.share-action-btn:hover svg {
    opacity: 1;
}

@media (max-width: 768px) {
    .share-btn {
        width: 40px;
        height: 40px;
    }
    .share-btn svg { width: 18px; height: 18px; }
}

/* ===== Utility ===== */
.hidden { display: none !important; }

.text-center { text-align: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.25rem;
    }

    .nav-left { gap: 0.5rem; }

    .logo {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .logo-img {
        height: 24px;
        max-height: 24px;
    }

    .theme-btn,
    .menu-btn {
        width: 40px; height: 40px;
    }

    .theme-btn svg { width: 18px; height: 18px; }

    .menu-btn span { width: 16px; }

    .hero { padding: 5rem 1.25rem 2rem; }

    .panel-grid {
        grid-template-columns: 1fr;
    }

    .preview-wrapper {
        position: static;
    }

    .features, .footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .setup-card {
        padding: 2rem 1.5rem;
    }

    .auth-btn span.auth-label {
        display: none;
    }

    /* Landing responsive */
    .leng-big-title { font-size: 2rem; letter-spacing: -1px; }
    .leng-section-title { font-size: 1.5rem; }
    .leng-section { padding: 3.5rem 1rem; }
    .leng-intro { padding-top: 4rem; padding-bottom: 3rem; }

    .leng-intro-text { font-size: 0.9rem; }
    .leng-intro-badge { font-size: 0.55rem; letter-spacing: 2px; padding: 0.35rem 0.8rem; }

    .leng-stats-row {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .leng-stat {
        flex: 1;
        min-width: 80px;
        padding: 1rem 0.5rem !important;
    }

    .leng-stat-num { font-size: 1.6rem; }
    .leng-stat-label { font-size: 0.6rem; letter-spacing: 0.5px; }

    .leng-bento {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .leng-bento-wide {
        grid-column: span 1;
    }

    .leng-bento-card {
        padding: 1.5rem;
    }

    .leng-bento-card h3 { font-size: 0.95rem; }
    .leng-bento-card p { font-size: 0.8rem; }

    .leng-steps {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .leng-step { padding: 0 1rem; }
    .leng-step-num { font-size: 2rem; }
    .leng-step h3 { font-size: 0.9rem; }
    .leng-step p { font-size: 0.78rem; }

    .leng-step-line {
        width: 1px;
        height: 30px;
        margin: 0;
    }

    .leng-showcase-grid {
        grid-template-columns: 1fr;
    }

    .leng-hero-content {
        padding: 0 1rem 4rem;
    }

    .leng-hero-cta {
        padding: 0.85rem 2rem;
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .leng-scroll-hint {
        bottom: 1.25rem;
        font-size: 0.6rem;
    }

    .leng-final-cta {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .leng-final-cta .leng-big-title {
        font-size: 1.8rem;
    }

    .leng-final-cta .leng-intro-text {
        font-size: 0.85rem;
    }

    .leng-section-header {
        margin-bottom: 2rem;
    }

    .leng-label {
        font-size: 0.55rem;
        letter-spacing: 2px;
        padding: 0.3rem 0.8rem;
    }

    /* Footer mobile */
    .leng-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .leng-footer .footer-bottom {
        font-size: 0.75rem;
        padding: 1rem 0;
    }
}

/* ===== Document Page ===== */
.doc-page {
    min-height: 100vh;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.doc-container {
    width: 100%;
    max-width: 560px;
}

.doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.doc-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.doc-logo-img {
    height: 48px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.doc-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
}

.doc-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.04);
}

.doc-section {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.doc-section:last-child { border-bottom: none; }

.doc-section-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin-bottom: 0.75rem;
}

.doc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.doc-info-row:not(:last-child) { border-bottom: 1px solid #f5f5f5; }

.doc-info-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
}

.doc-info-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: #111;
}

.doc-qr-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #fafafa;
}

.doc-qr-section img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.doc-qr-text {
    flex: 1;
}

.doc-qr-text h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.35rem;
}

.doc-qr-text p {
    font-size: 0.72rem;
    color: #888;
    line-height: 1.6;
}

.doc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.doc-stat-item {
    background: #fff;
    text-align: center;
    padding: 1rem 0.5rem;
}

.doc-stat-num {
    font-size: 1.25rem;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.5px;
}

.doc-stat-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-top: 0.2rem;
}

.doc-footer {
    text-align: center;
    padding: 1.25rem 0.5rem;
    font-size: 0.65rem;
    color: #bbb;
    letter-spacing: 0.2px;
}

@media (max-width: 480px) {
    .doc-page { padding: 1rem 0.75rem; }
    .doc-qr-section { flex-direction: column; text-align: center; }
    .doc-qr-section img { width: 120px; height: 120px; }
    .doc-stat-grid { grid-template-columns: repeat(3, 1fr); }
}
