:root {
    --color-primary: #6c5ce7;
    --color-primary-hover: #5a4bd1;
    --color-text: #1a1a2e;
    --color-text-secondary: #555;
    --color-muted: #999;
    --color-bg: #f8f9fa;
    --color-surface: #fff;
    --color-border: #e0e0e0;
    --color-error: #e74c3c;
    --color-success: #27ae60;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --font: system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.125rem;
}

code {
    background: #f0f0f0;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.15s;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.85;
}

.btn:active {
    opacity: 0.75;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-muted {
    background: transparent;
    color: var(--color-muted);
}

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

.btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

.btn-block {
    width: 100%;
}

/* ── File input styled ── */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
}

.file-upload label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.15s;
}

.file-upload label:hover {
    opacity: 0.85;
}

/* ── Forms ── */
.form {
    max-width: 480px;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--color-text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.15s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.input-prefix {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.input-prefix:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.input-prefix .prefix {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--color-muted);
    background: #f8f9fa;
    border-right: 1px solid var(--color-border);
    white-space: nowrap;
}

.input-prefix input {
    border: none;
    border-radius: 0;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
}

.field-error {
    font-size: 0.8125rem;
    color: var(--color-error);
    margin-top: 0.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .field {
    flex: 1;
}

/* ── Cards ── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.form-card {
    max-width: 640px;
    margin-bottom: 2rem;
}

/* ── Toast notifications ── */
.toast {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.toast-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.toast-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ── Auth pages ── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--color-surface);
    border: none;
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

.auth-card .field input:not([type="checkbox"]) {
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.auth-card .field input:not([type="checkbox"]):focus {
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--color-primary) 20%, transparent);
    outline: none;
}

.auth-card .btn-primary {
    border-radius: 9999px;
    padding: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--color-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9375rem;
}

/* ── Landing page ── */
.landing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Background effects */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #d946ef;
    bottom: -10%;
    right: -10%;
}

.landing-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.landing-hero {
    margin-bottom: 3rem;
}

.landing-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.landing-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin: 0 auto;
}

/* Micro-animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Top nav ── */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    z-index: 50;
}

.topnav-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
}

.topnav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text);
}

.topnav-logo i {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.topnav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.slug-checker {
    margin-bottom: 4rem;
}

.slug-input-group {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 0.5rem;
    max-width: 580px;
    margin: 0 auto;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.slug-input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px -10px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.slug-prefix {
    padding: 0 0.5rem 0 1.25rem;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.slug-input-group input {
    flex: 1;
    border: none;
    padding: 0.75rem 0.5rem;
    font-size: 1.125rem;
    font-family: inherit;
    background: transparent;
    font-weight: 500;
    color: var(--color-text);
}

.slug-input-group input:focus {
    outline: none;
}

.slug-input-group .btn {
    border-radius: 9999px;
    padding: 0.875rem 2.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.slug-input-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--color-primary);
}

.slug-status {
    font-size: 0.875rem;
    margin-top: 1rem;
    min-height: 1.25rem;
}

.status-ok {
    color: var(--color-success);
}

.status-error {
    color: var(--color-error);
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-surface);
    border: none;
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

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

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    border-radius: 20px;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: rotate(0deg) scale(1.1);
}

.feature-icon-wrapper i {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

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

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-muted);
}

.empty-state i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

/* ── Dashboard layout ── */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    border-radius: 0;
    transition: background 0.15s;
}

.nav-item:hover {
    background: #f0f0f5;
    color: var(--color-text);
}

.nav-item.active {
    background: #eeeaff;
    color: var(--color-primary);
    font-weight: 600;
}

.nav-logout {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.nav-item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    max-width: 960px;
}

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

/* ── Stats grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: #eeeaff;
    color: var(--color-primary);
    flex-shrink: 0;
}

.stat-icon i {
    width: 20px;
    height: 20px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-muted);
}

/* ── Tables ── */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    text-align: left;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    border-bottom: 2px solid var(--color-border);
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8f8ff;
}

.url-cell {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-secondary);
}

.alias-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-actions {
    display: inline-flex;
    gap: 0.25rem;
}

.action-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
}

.link-btn:hover {
    background: #f0f0f0;
    color: var(--color-text);
}

.link-btn i {
    width: 14px;
    height: 14px;
}

.qr-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qr-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: opacity 0.15s;
}

.qr-thumb:hover {
    opacity: 0.8;
}

.modal-qr {
    max-width: 360px;
    text-align: center;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.625rem;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    transition: background 0.15s;
}

.page-btn:hover {
    background: #f0f0f0;
}

.page-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.ellipsis {
    padding: 0 0.375rem;
    color: var(--color-muted);
}

/* ── Modal (native dialog) ── */
.modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin: auto;
    max-height: 85vh;
    overflow-y: auto;
    position: fixed;
    inset: 0;
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    animation: backdropFade 0.3s ease forwards;
}

@keyframes backdropFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    padding: 2rem;
}

.modal-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--color-text);
}

.modal-content>p {
    /* Optional subtitle */
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    justify-content: flex-end;
}

.modal-actions .btn {
    min-width: 100px;
}

.field-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.field-checkbox:hover {
    background: #f1f3f5;
}

.field-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.field-checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    flex: 1;
}

/* ── Blocks list (bio editor) ── */
.blocks-list {
    margin-top: 1rem;
}

.block-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    background: var(--color-surface);
}

.block-handle {
    cursor: grab;
    color: var(--color-muted);
    display: flex;
}

.block-handle i {
    width: 18px;
    height: 18px;
}

.block-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.block-type {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.block-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.block-actions {
    display: flex;
    gap: 0.375rem;
}

.block-type i,
.block-type img {
    vertical-align: middle;
    margin-right: 0.25rem;
}

.block-type img.block-thumb {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
}

.block-type i {
    width: 14px;
    height: 14px;
    color: var(--color-muted);
}

.block-type svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.15s;
}

.file-label:hover {
    opacity: 0.85;
}

.file-name {
    margin-left: 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.file-current {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-current a.btn-danger {
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    outline: none;
    padding: 0;
    border: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
}

#overlay-opacity-value {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    min-width: 2.5rem;
    text-align: center;
}

/* ── Tags ── */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
    background: #f0f0f5;
    border-radius: 4px;
    color: var(--color-text-secondary);
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-ok {
    background: #d4edda;
    color: #155724;
}

.badge-error {
    background: #f8d7da;
    color: #721c24;
}

/* ── Sections ── */
.dash-section {
    margin-bottom: 2rem;
}

/* ── Admin page ── */
.admin-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

/* ── Responsive ── */
/* ── Mobile Menu Utils ── */
.mobile-topbar {
    display: none;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.125rem;
        font-weight: 600;
    }

    .mobile-logo i,
    .mobile-logo img {
        color: var(--color-primary);
        max-height: 28px;
    }

    .hamburger-btn {
        background: none;
        border: none;
        padding: 0.25rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        border-radius: var(--radius);
        color: var(--color-text);
    }

    .d-none.d-md-flex {
        display: none !important;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        width: 280px;
        z-index: 1050;
        flex-direction: column;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid var(--color-border);
        background: var(--color-surface);
    }

    .sidebar.open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    }

    .sidebar-brand {
        display: flex;
    }

    .sidebar-nav {
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
    }

    .nav-item {
        flex-direction: row;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        gap: 0.75rem;
    }

    .nav-logout {
        border-top: 1px solid var(--color-border);
        padding-top: 1rem;
    }

    .dashboard-layout {
        flex-direction: column;
        padding-bottom: 0;
    }

    .dashboard-content {
        padding: 1rem;
    }

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

    .landing-features {
        grid-template-columns: 1fr;
    }

    .landing-hero h1 {
        font-size: 1.5rem;
    }

    .slug-input-group {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem;
        padding: 0.75rem;
        border-radius: 20px;
        max-width: 100%;
        align-items: center;
    }

    .slug-prefix {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        padding: 0 0 0 1rem;
        font-size: 1.125rem;
        white-space: nowrap;
        border: none;
    }

    .slug-input-group input {
        grid-column: 2;
        grid-row: 1;
        padding: 0.75rem 0.5rem;
        font-size: 1.125rem;
        width: 100%;
        border: none;
        background: transparent;
    }

    .slug-input-group .btn {
        grid-column: 1 / span 2;
        grid-row: 2;
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1.125rem;
        border-radius: 9999px;
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}