:root {
    --font-family: "Segoe UI", Arial, sans-serif;
    --bg-gradient: linear-gradient(165deg, #050505 0%, #121212 45%, #050505 100%);
    --surface: rgba(28, 28, 28, 0.92);
    --surface-muted: rgba(40, 40, 40, 0.88);
    --primary: #f97316;
    --primary-dark: #ea580c;
    --text-main: #f8fafc;
    --text-muted: #b0b8c7;
    --border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
    --transition: 0.2s ease;
}
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-family);
    color: var(--text-main);
    background: var(--bg-gradient);
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
.shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.25rem 0 1.65rem;
    background: var(--bg-gradient);
    margin-bottom: 1.25rem;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
    flex-shrink: 0;
}

.site-main {
    padding: 1rem 0 3rem;
}
.section {
    margin-bottom: 3rem;
}

.section__title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
}
.btn--primary:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
}

.btn--ghost {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    border: 1px solid rgba(249, 115, 22, 0.45);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.18);
}
.btn--ghost:hover {
    background: rgba(249, 115, 22, 0.2);
    color: #fff;
    border-color: rgba(249, 115, 22, 0.65);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.hero-grid h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.hero-grid p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(249, 115, 22, 0.18);
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
    margin-bottom: 1rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.pill-list span {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 0.85rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.notfound {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 5rem;
}

.notfound-hero {
    width: 100%;
    max-width: 720px;
    background: rgba(20, 20, 20, 0.82);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.notfound-hero::after {
    content: '';
    position: absolute;
    inset: -120px;
    background: radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.25), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(249, 115, 22, 0.18), transparent 65%);
    opacity: 0.9;
    pointer-events: none;
}

.notfound-hero > * {
    position: relative;
    z-index: 1;
}

.notfound-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.22);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.notfound-title {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    margin: 1.5rem 0 1rem;
}

.notfound-subtitle {
    color: rgba(255, 255, 255, 0.78);
    margin: 0 auto 2.25rem;
    max-width: 540px;
    line-height: 1.6;
}

.notfound-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.notfound-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 18px;
    padding: 1.25rem;
    text-align: left;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.notfound-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
}

.notfound-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}
.card {
    background: var(--surface);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
}

.card--subtle {
    background: var(--surface-muted);
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.stat-card span {
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface-muted);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.recent-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
}

.recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.recent-list li + li {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.recent-list .short-link {
    font-weight: 600;
    color: var(--primary);
}

.recent-list .metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer {
    padding: 2.5rem 0 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.admin-shell {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.page-title {
    margin: 0 0 1rem;
}

.actions-bar {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.alert {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-weight: 500;
}

.alert--error {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.alert--success {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}
.form-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    margin: 0;
}

.analytics-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    margin: 0;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.analytics-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.analytics-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.analytics-meta {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.analytics-card--tall {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.analytics-card--wide {
    grid-column: 1 / -1;
}

.responsive-table {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

.analytics-table--dense th,
.analytics-table--dense td {
    padding: 0.6rem 0.75rem;
}

.chart-bars--compact {
    min-height: 140px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.summary-grid article {
    background: rgba(249, 115, 22, 0.08);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.summary-grid strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.summary-grid span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.analytics-table th,
.analytics-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.analytics-table thead {
    background: rgba(249, 115, 22, 0.12);
}

.analytics-link {
    font-weight: 600;
    color: var(--primary);
}

.analytics-link:hover {
    text-decoration: underline;
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
    align-items: end;
    gap: 0.4rem;
    min-height: 180px;
}

.chart-bars--timeline {
    gap: 0.3rem;
}

.chart-bars__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chart-bars__bar {
    width: 100%;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.9) 0%, rgba(249, 115, 22, 0.45) 100%);
    height: var(--bar-height, 0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.35rem;
    position: relative;
}

.chart-bars__count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.88;
}

.chart-bars__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.bio-admin-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.bio-admin-sidebar {
    width: 320px;
    min-width: 280px;
    background: var(--surface);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.bio-admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bio-builder-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-builder-form {
    display: grid;
    gap: 1rem;
}

.bio-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.bio-toolbar-select {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bio-toolbar-select label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.bio-toolbar-select select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(20, 20, 20, 0.92);
    color: var(--text-main);
    font-weight: 500;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(249, 115, 22, 0.75) 50%), linear-gradient(135deg, rgba(249, 115, 22, 0.75) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.bio-toolbar-select select:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.12);
}

.bio-admin-toolbar__meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}


    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bio-sidebar-header {
    margin-bottom: 1rem;
}

.bio-sidebar-header h2 {
    margin: 0 0 0.25rem;
}

.bio-sidebar-header p {
    margin: 0;
}

.bio-sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bio-sidebar-section {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(16, 16, 16, 0.82);
    box-shadow: var(--shadow-sm);
}

.bio-sidebar-toggle {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 1.1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.bio-sidebar-toggle::after {
    content: '-';
    font-size: 1.1rem;
    line-height: 1;
}

.bio-sidebar-section:not(.is-open) .bio-sidebar-toggle::after {
    content: '+';
}

.bio-sidebar-body {
    padding: 0 1.1rem 1.1rem;
}

.bio-sidebar-section:not(.is-open) .bio-sidebar-body {
    display: none;
}

.bio-sidebar-form {
    display: grid;
    gap: 1rem;
}

.bio-sidebar-danger {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.bio-link-list,
.bio-profile-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bio-link-list__item,
.bio-profile-list__item {
    background: rgba(249, 115, 22, 0.08);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.bio-link-list__item {
    position: relative;
    padding-left: 1rem;
    padding-right: 3rem;
    cursor: grab;
    transition: transform var(--transition), opacity var(--transition);
}

.bio-link-list__item:active {
    cursor: grabbing;
}

.bio-link-list__item.is-dragging {
    opacity: 0.7;
    transform: scale(0.99);
}

.bio-link-list__drag {
    position: absolute;
    right: 0.75rem;
    top: 1.1rem;
    width: 1.4rem;
    height: 1.6rem;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: grab;
    line-height: 1;
    appearance: none;
}

.bio-link-list__item:hover .bio-link-list__drag {
    color: var(--primary);
}

.bio-link-list__drag:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.bio-link-list__item.is-active,
.bio-profile-list__item.is-active {
    border: 1px solid rgba(249, 115, 22, 0.55);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
}

.bio-link-list__info span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-word;
}

.bio-link-list__info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge--success {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.badge--muted {
    background: rgba(148, 163, 184, 0.14);
    color: rgba(226, 232, 240, 0.85);
}

.bio-link-list__actions,
.bio-profile-list__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bio-link-list__actions form {
    display: inline;
}

.bio-link-list__actions button {
    border: none;
    background: none;
    color: #f87171;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.bio-link-list__actions a,
.bio-profile-list__actions a {
    font-weight: 600;
}

.bio-preview-phone {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.82), rgba(5, 5, 5, 0.95));
    border-radius: 26px;
    padding: 1.5rem;
    max-width: 380px;
    margin: 0 auto;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.55);
}

.bio-preview-screen {
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.76);
    padding: 1.75rem 1.25rem;
}

.bio-preview-url-display {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
}

.bio-preview-url-display code {
    background: rgba(15, 15, 15, 0.7);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    display: inline-block;
}

.bio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.bio-body {
    margin: 0;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.25), transparent 55%), var(--bg-gradient);
    font-family: 'Inter', var(--font-family);
    color: var(--text-main);
    overflow: hidden;
    overscroll-behavior: none;
}

.bio-shell {
    width: 100%;
    max-width: 540px;
    padding: 3rem 1.5rem 4rem;
}

.bio-card {
    background: rgba(18, 18, 18, 0.88);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
    backdrop-filter: blur(12px);
}

.bio-avatar {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto 1.75rem;
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.35);
}

.bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.bio-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 1rem auto 2rem;
    max-width: 420px;
    line-height: 1.6;
}

.bio-desc__self {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.95rem;
    color: var(--primary, #f97316);
    word-break: break-word;
}

.bio-desc__self:hover,
.bio-desc__self:focus-visible {
    text-decoration: underline;
}

.bio-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.bio-link-btn {
    display: inline-flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.32), rgba(249, 115, 22, 0.16));
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: 0 20px 38px rgba(249, 115, 22, 0.25);
    border: 1px solid rgba(249, 115, 22, 0.45);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.bio-link-btn:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.46), rgba(249, 115, 22, 0.24));
    text-decoration: none;
    box-shadow: 0 24px 40px rgba(249, 115, 22, 0.32);
}

.bio-footer {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.bio-preview-wrapper {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.bio-preview-header h3 {
    margin: 0 0 0.25rem;
}

.bio-preview-stage {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-preview-url {
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
}

.bio-preview-url strong {
    color: var(--primary);
}

.bio-preview-card {
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-md);
    color: var(--text-main);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bio-preview-theme-default .bio-preview-card {
    background: rgba(18, 18, 18, 0.9);
}

.bio-preview-theme-glow .bio-preview-card {
    background: radial-gradient(circle at 10% 20%, rgba(147, 197, 253, 0.35), transparent 55%), radial-gradient(circle at 90% 80%, rgba(253, 186, 116, 0.3), transparent 55%), rgba(18, 18, 18, 0.92);
}

.bio-preview-theme-neon .bio-preview-card {
    background: rgba(14, 14, 28, 0.92);
}

.bio-preview-theme-sunset .bio-preview-card {
    background: rgba(30, 30, 30, 0.9);
}

.bio-preview-avatar {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.bio-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-preview-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.bio-preview-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.bio-preview-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.bio-preview-link {
    background: rgba(249, 115, 22, 0.12);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bio-preview-link-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.bio-preview-link-label {
    font-weight: 600;
}

.bio-preview-badge {
    align-self: flex-start;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bio-preview-badge[data-state='active'] {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.bio-preview-badge[data-state='inactive'] {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

@media (min-width: 1024px) {
    .bio-admin-sidebar {
        max-height: calc(100vh - 4rem);
    }
}

@media (max-width: 1024px) {
    .shell {
        padding: 0 1.25rem;
    }

    .bio-admin-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .bio-admin-sidebar {
        position: static;
        width: 100%;
        max-width: none;
        max-height: none;
    }

    .bio-admin-content {
        width: 100%;
    }

    .bio-preview-wrapper {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .section {
        margin-bottom: 2.5rem;
    }

    .analytics-card,
    .form-card,
    .table-card {
        padding: 1.5rem 1.25rem;
    }

    .table-scroll {
        margin-top: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    td,
    th {
        padding: 0.65rem;
    }

    .bio-builder-card {
        padding: 1.5rem;
    }

    .bio-preview-stage {
        padding: 1.5rem 0.75rem 0;
    }

    .bio-admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .bio-toolbar-select {
        width: 100%;
    }

    .bio-toolbar-select select {
        width: 100%;
    }

    .bio-admin-toolbar .btn-group {
        width: 100%;
        gap: 0.65rem;
    }

    .bio-admin-toolbar .btn-group .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .stats-grid,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .stats-grid article,
    .feature-card {
        text-align: left;
    }

    .admin-shell {
        gap: 1.75rem;
    }

    .analytics-card,
    .form-card,
    .table-card,
    .bio-builder-card {
        border-radius: 16px;
    }

    .notfound {
        padding: 3.5rem 1.25rem 4rem;
    }

    .notfound-hero {
        padding: 2.5rem 2rem;
    }

    .notfound-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.bio-theme-default {
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.2), transparent 55%), #050505;
}

.bio-theme-glow {
    background: radial-gradient(circle at 10% 20%, rgba(147, 197, 253, 0.35), transparent 55%), radial-gradient(circle at 90% 80%, rgba(253, 186, 116, 0.35), transparent 55%), #050505;
}

.bio-theme-neon .bio-card {
    background: rgba(14, 14, 28, 0.9);
}

.bio-theme-neon .bio-link-btn {
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 18px 35px rgba(14, 165, 233, 0.3);
}

.bio-theme-neon .bio-link-btn:hover {
    background: rgba(14, 165, 233, 0.32);
}

.bio-theme-sunset {
    background: linear-gradient(145deg, #1f2933, #111827 55%, #1b1b1b);
}

.bio-theme-sunset .bio-card {
    background: rgba(30, 30, 30, 0.88);
}

.bio-theme-sunset .bio-link-btn {
    background: rgba(236, 72, 153, 0.18);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.28);
}

.bio-theme-sunset .bio-link-btn:hover {
    background: rgba(236, 72, 153, 0.3);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field--inline {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.field--inline label {
    flex: 0 0 auto;
    margin: 0;
}

.field--inline input[type="number"],
.field--inline input[type="text"] {
    flex: 1;
    min-width: 140px;
}

.field label {
    font-weight: 600;
    font-size: 0.95rem;
}
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font: inherit;
    background: rgba(20, 20, 20, 0.9);
    color: var(--text-main);
}

select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font: inherit;
    background: rgba(20, 20, 20, 0.92);
    color: var(--text-main);
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(249, 115, 22, 0.75) 50%), linear-gradient(135deg, rgba(249, 115, 22, 0.75) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

select:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.65);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.16);
}

textarea {
    resize: vertical;
}

button {
    font: inherit;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.btn-group .btn {
    flex: 0 0 auto;
}
.table-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.25rem;
}

.table-scroll:first-child {
    margin-top: 0;
}

.table-scroll table {
    min-width: 640px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead {
    background: rgba(249, 115, 22, 0.12);
}

td, th {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
tbody tr:hover {
    background: rgba(249, 115, 22, 0.08);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.table-actions form {
    display: inline;
}

.table-actions button {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}

.inline-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    margin: 0 0 1.5rem;
    text-align: center;
}

.auth-card form {
    display: grid;
    gap: 1rem;
}
.auth-card .btn {
    width: 100%;
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.85rem 0 1.35rem;
    }

    .hero-grid {
        gap: 1.75rem;
        justify-items: stretch;
    }

    .shell {
        padding: 0 1rem;
    }

    .btn-group {
        width: 100%;
        justify-content: center;
        gap: 0.6rem;
    }

    .btn-group .btn {
        flex: 1 1 auto;
        min-width: 120px;
    }

    .site-header > .btn {
        align-self: flex-end;
        min-width: 0;
    }

    .hero-grid h1 {
        font-size: clamp(2rem, 7vw, 2.4rem);
    }

    .hero-grid p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .pill-list {
        gap: 0.5rem;
    }

    .pill-list span {
        flex: 1 1 auto;
        text-align: center;
    }

    .stats-grid {
        gap: 0.85rem;
    }

    .field--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .table-card {
        padding: 1.35rem 1rem;
    }

    .table-scroll {
        margin: 0.75rem 0 0;
    }

    .table-scroll table {
        min-width: 560px;
    }

    .bio-body {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .bio-shell {
        padding: 2.5rem 1.25rem 3rem;
    }

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

    .bio-preview-wrapper {
        padding: 1.5rem 1.25rem;
    }

    .bio-preview-card {
        padding: 1.5rem 1.25rem;
    }

    .bio-preview-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .chart-bars {
        gap: 0.4rem;
    }

    .bio-preview-stage {
        padding: 1.25rem 0.5rem 0;
    }

    .bio-preview-phone {
        max-width: 320px;
        margin: 0 auto;
    }

    .bio-admin-sidebar {
        padding: 1.5rem 1.25rem;
    }

    .table-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .notfound {
        padding: 3rem 1rem 4rem;
    }

    .notfound-hero {
        padding: 2.2rem 1.5rem;
    }

    .notfound-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bio-link-btn {
        padding: 0.75rem 0.9rem;
    }

    .bio-preview-link {
        padding: 0.75rem 0.9rem;
    }

    .bio-preview-card {
        padding: 1.35rem 1.1rem;
    }
}
.table-actions a {
    font-weight: 600;
}

























