:root {
    color-scheme: light;
    --brand-cyan-50: #f2fbff;
    --brand-cyan-100: #dff5ff;
    --brand-cyan-200: #c6ecff;
    --brand-cyan-500: #58aef2;
    --brand-cyan-600: #3794e0;
    --brand-violet-100: #efe7ff;
    --brand-violet-200: #dfd1ff;
    --brand-violet-500: #8b5cf6;
    --brand-violet-600: #7c4deb;
    --brand-ink: #101828;
    --brand-fog: #667085;
    --surface-line: rgba(15, 23, 42, 0.1);
    --panel-shadow: 0 24px 60px rgba(16, 24, 40, 0.08), 0 8px 20px rgba(88, 174, 242, 0.06);
    --soft-shadow: 0 16px 34px rgba(16, 24, 40, 0.06), 0 6px 16px rgba(124, 77, 235, 0.04);
    --search-shadow: 0 28px 72px rgba(88, 174, 242, 0.16), 0 12px 28px rgba(124, 77, 235, 0.08);
}

html {
    scroll-behavior: smooth;
}

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

img,
svg,
canvas {
    max-width: 100%;
}

body {
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(88, 174, 242, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.06), transparent 24%),
        #eef2f6;
}

body.profile-page {
    background:
        radial-gradient(circle at top left, rgba(88, 174, 242, 0.06), transparent 24%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.04), transparent 22%),
        #f1f4f8;
}

.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(88, 174, 242, 0.1), transparent 18%),
        radial-gradient(circle at 82% 84%, rgba(139, 92, 246, 0.08), transparent 22%);
}

.surface-panel {
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(18px);
}

.site-navbar {
    position: relative;
    z-index: 110;
}

.surface-panel.section-outline::after {
    border-radius: inherit;
}

.dashboard-main {
    width: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-shell {
    width: min(100%, 88rem) !important;
    max-width: calc(100% - 1rem) !important;
    margin: 0 auto;
    border-radius: 1.5rem;
}

.dashboard-sidebar {
    width: 100%;
    align-self: start;
}

.dashboard-sidebar-nav {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr;
}

.surface-soft {
    border: 1px solid var(--surface-line);
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--soft-shadow);
}

.surface-subtle {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.76);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.section-outline {
    position: relative;
}

.section-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
    pointer-events: none;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.82rem 1.2rem;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
    text-decoration: none;
}

.btn-primary {
    border: 1px solid rgba(88, 174, 242, 0.2);
    background: linear-gradient(135deg, var(--brand-cyan-600), var(--brand-violet-500));
    color: #fff;
    box-shadow: 0 18px 34px rgba(88, 174, 242, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #2f88d9, var(--brand-violet-600));
    box-shadow: 0 20px 38px rgba(88, 174, 242, 0.22);
}

.btn-secondary {
    border: 1px solid rgba(15, 23, 42, 0.11);
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-ink);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(88, 174, 242, 0.26);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 255, 0.94));
}

.btn-danger {
    border: 1px solid rgba(225, 29, 72, 0.16);
    background: rgba(255, 255, 255, 0.96);
    color: #be123c;
}

.btn-danger:hover {
    border-color: rgba(225, 29, 72, 0.26);
    background: rgba(255, 241, 242, 0.92);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.9);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.form-input {
    width: 100%;
    min-height: 3.3rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.84);
    color: var(--brand-ink);
    padding: 0.9rem 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(88, 174, 242, 0.52);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.75);
}

.form-input:disabled,
.form-input[readonly],
textarea.form-input:disabled,
select.form-input:disabled {
    cursor: not-allowed;
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92));
    color: rgba(52, 64, 84, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bio-editor-shell {
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.84);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.bio-editor-shell:focus-within {
    border-color: rgba(88, 174, 242, 0.52);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.75);
}

.bio-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.78);
    padding: 0.8rem;
}

.bio-toolbar-button {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-ink);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bio-toolbar-button:hover {
    transform: translateY(-1px);
    border-color: rgba(88, 174, 242, 0.24);
    background: rgba(242, 251, 255, 0.94);
    box-shadow: 0 10px 18px rgba(16, 24, 40, 0.05);
}

.bio-toolbar-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

.bio-editor {
    min-height: 12rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 1rem 1rem 1.1rem;
    line-height: 1.8;
    box-shadow: none;
    outline: none;
}

.bio-editor:focus {
    box-shadow: none;
    background: transparent;
}

.bio-editor.is-disabled {
    cursor: not-allowed;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92));
    color: rgba(52, 64, 84, 0.88);
}

.bio-editor p,
.bio-editor ul,
.bio-editor ol,
.profile-rich-bio p,
.profile-rich-bio ul,
.profile-rich-bio ol {
    margin: 0;
}

.bio-editor p + p,
.bio-editor p + ul,
.bio-editor p + ol,
.bio-editor ul + p,
.bio-editor ol + p,
.bio-editor ul + ul,
.bio-editor ol + ol,
.profile-rich-bio p + p,
.profile-rich-bio p + ul,
.profile-rich-bio p + ol,
.profile-rich-bio ul + p,
.profile-rich-bio ol + p,
.profile-rich-bio ul + ul,
.profile-rich-bio ol + ol {
    margin-top: 0.7rem;
}

.bio-editor ul,
.bio-editor ol,
.profile-rich-bio ul,
.profile-rich-bio ol {
    padding-left: 1.2rem;
}

.bio-editor ul,
.profile-rich-bio ul {
    list-style: disc;
}

.bio-editor ol,
.profile-rich-bio ol {
    list-style: decimal;
}

.bio-editor ul,
.bio-editor ol,
.profile-rich-bio ul,
.profile-rich-bio ol {
    list-style-position: outside;
}

.bio-editor li + li,
.profile-rich-bio li + li {
    margin-top: 0.3rem;
}

.bio-align-left {
    text-align: left !important;
}

.bio-align-center {
    text-align: center !important;
}

.bio-align-right {
    text-align: right !important;
}

.bio-align-justify {
    text-align: justify !important;
}

.bio-editor.bio-align-left,
.profile-rich-bio.bio-align-left {
    text-align: left !important;
}

.bio-editor.bio-align-center,
.profile-rich-bio.bio-align-center {
    text-align: center !important;
}

.bio-editor.bio-align-right,
.profile-rich-bio.bio-align-right {
    text-align: right !important;
}

.bio-editor.bio-align-justify,
.profile-rich-bio.bio-align-justify {
    text-align: justify !important;
}

.profile-rich-bio {
    width: 100%;
}

.profile-rich-bio strong {
    color: var(--brand-ink);
}

.form-checkbox-wrap {
    display: flex;
    width: 100%;
    min-height: 3.3rem;
    align-items: center;
    gap: 0.75rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.84);
    padding: 0.9rem 1rem;
}

.form-checkbox-wrap.is-disabled {
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92));
    color: rgba(52, 64, 84, 0.88);
}

.form-error {
    margin-top: 0.55rem;
    font-size: 0.875rem;
    color: #e11d48;
}

.search-form {
    position: relative;
    z-index: 100;
}

.search-suggestions {
    animation: suggestionsIn 160ms ease;
    z-index: 100 !important;
    width: min(100%, 22rem);
    min-width: 0;
    max-width: min(22rem, calc(100vw - 2rem));
    margin-top: 30px !important;
}

.search-suggestion-item {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.9rem;
    padding: 0.7rem 0.95rem;
    text-decoration: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-active {
    background: transparent;
    transform: none;
}

.search-suggestion-avatar {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: none;
}

.result-grid {
    display: flex;
    width: min(100%, 88rem);
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.profile-links-grid {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.profile-link-tile {
    display: flex;
    width: 5.25rem;
    flex: 0 0 5.25rem;
    min-height: 6.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.2rem;
    padding: 0.8rem 0.65rem;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.profile-link-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 174, 242, 0.22);
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08), 0 8px 18px rgba(88, 174, 242, 0.06);
}

.profile-link-icon {
    height: 2.95rem;
    width: 2.95rem;
    flex: 0 0 2.95rem;
    border-radius: 0.95rem;
}

.profile-hero-avatar {
    height: 8rem;
    width: 8rem;
    border-radius: 1.8rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1), 0 8px 20px rgba(88, 174, 242, 0.08);
}

.profile-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(88, 174, 242, 0.26);
    background: linear-gradient(135deg, rgba(88, 174, 242, 0.98), rgba(111, 67, 214, 0.98));
    color: #fff;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 38px rgba(88, 174, 242, 0.22), 0 8px 18px rgba(111, 67, 214, 0.12);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.profile-share-button:hover {
    transform: translateY(-1px);
    filter: saturate(1.02);
    box-shadow: 0 22px 42px rgba(88, 174, 242, 0.24), 0 10px 22px rgba(111, 67, 214, 0.14);
}

.profile-share-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(223, 245, 255, 0.95), 0 18px 38px rgba(88, 174, 242, 0.22), 0 8px 18px rgba(111, 67, 214, 0.12);
}

.result-card {
    display: flex;
    width: min(100%, 16rem);
    flex: 0 1 16rem;
    min-height: 14.55rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 1.55rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
    padding: 1.1rem 0.9rem 0.95rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08), 0 6px 16px rgba(88, 174, 242, 0.05);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 174, 242, 0.22);
    box-shadow: 0 20px 48px rgba(16, 24, 40, 0.1), 0 10px 24px rgba(88, 174, 242, 0.06);
}

.result-avatar,
.result-avatar-fallback {
    height: 5.15rem;
    width: 5.15rem;
    border-radius: 1.45rem;
    object-fit: cover;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
}

.result-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(223, 245, 255, 0.96), rgba(239, 231, 255, 0.96));
    color: var(--brand-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.line-clamp-1,
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.link-editor-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--soft-shadow);
}

.link-editor-card.is-editing {
    border-color: rgba(88, 174, 242, 0.28);
    box-shadow: 0 0 0 4px rgba(223, 245, 255, 0.85), var(--soft-shadow);
}

.link-platform-chip {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 3.3rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.78);
    padding: 0.75rem 0.95rem;
}

.link-platform-icon {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    flex: 0 0 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.inline-actions > * {
    flex: 0 0 auto;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
}

.modal-overlay.is-open {
    display: flex;
}

.modal-card {
    width: min(100%, calc(100vw - 1.5rem));
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.96);
    padding: 1.5rem;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.share-modal-card {
    width: min(100%, 32rem);
}

.share-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.share-channel-tile {
    display: flex;
    min-height: 5.8rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    padding: 0.6rem 0.35rem;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.share-channel-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 174, 242, 0.2);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.07), 0 7px 16px rgba(88, 174, 242, 0.05);
}

.share-channel-icon {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.12rem;
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.share-channel-whatsapp {
    background: linear-gradient(135deg, #20c05c, #0ea85a);
}

.share-channel-telegram {
    background: linear-gradient(135deg, #34a6eb, #2187d9);
}

.share-channel-x {
    background: linear-gradient(135deg, #111827, #0f172a);
}

.share-channel-facebook {
    background: linear-gradient(135deg, #1877f2, #1659c4);
}

.share-channel-linkedin {
    background: linear-gradient(135deg, #0a66c2, #084c94);
}

.share-channel-email {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.share-channel-native {
    background: linear-gradient(135deg, var(--brand-cyan-600), var(--brand-violet-500));
}

.help-accordion-item {
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.help-accordion-item.is-open {
    border-color: rgba(88, 174, 242, 0.2);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.06), 0 8px 18px rgba(88, 174, 242, 0.05);
}

.help-accordion-trigger {
    transition: background 160ms ease;
}

.help-accordion-trigger:hover {
    background: rgba(248, 250, 252, 0.92);
}

.help-accordion-icon {
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.help-accordion-item.is-open .help-accordion-icon {
    background: linear-gradient(135deg, var(--brand-cyan-100), var(--brand-violet-100));
    color: var(--brand-cyan-600);
    transform: rotate(0deg);
}

.cookie-banner {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 130;
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
}

.cookie-banner.is-visible {
    display: block;
    animation: cookieBannerIn 180ms ease;
}

mark {
    background: rgba(198, 236, 255, 0.88);
    color: inherit;
    border-radius: 0.35rem;
    padding: 0 0.08rem;
}

@keyframes suggestionsIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 640px) {
    .search-suggestions {
        width: 100%;
        max-width: calc(100vw - 2rem);
    }

    .dashboard-shell {
        width: 100%;
        max-width: calc(100% - 0.75rem) !important;
        border-radius: 0;
    }

    .result-card {
        width: min(100%, 22rem);
        flex-basis: min(100%, 22rem);
        min-height: 13.7rem;
        padding: 1rem 0.85rem 0.9rem;
    }

    .cookie-banner {
        right: 0.85rem;
        bottom: 0.85rem;
        left: 0.85rem;
        border-radius: 1.4rem;
    }

    .share-channel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inline-actions {
        width: 100%;
    }

    .inline-actions > * {
        flex: 1 1 calc(50% - 0.65rem);
        width: 100%;
        justify-content: center;
    }

    .bio-toolbar {
        gap: 0.35rem;
        padding: 0.65rem;
    }

    .bio-toolbar-button {
        height: 2.3rem;
        width: 2.3rem;
    }

    .profile-share-button {
        min-height: 3.2rem;
    }

    .dashboard-sidebar {
        padding: 0.85rem;
    }

    .dashboard-sidebar-nav a {
        min-height: 3rem;
    }
}

@media (min-width: 768px) {
    .dashboard-shell {
        max-width: calc(100% - 1.5rem) !important;
    }

    .profile-links-grid {
        width: min(100%, 28rem);
    }

    .result-grid {
        gap: 0.95rem;
    }

    .result-card {
        width: 13.4rem;
        flex-basis: 13.4rem;
    }

    .profile-hero-avatar {
        height: 9rem;
        width: 9rem;
        border-radius: 2rem;
    }

    .profile-link-tile {
        width: 5.65rem;
        flex-basis: 5.65rem;
        min-height: 7rem;
    }

    .link-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .share-channel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .dashboard-shell {
        max-width: calc(100% - 2rem) !important;
    }

    .result-card {
        width: 12.7rem;
        flex-basis: 12.7rem;
    }

    .link-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-sidebar-nav {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: sticky;
        top: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .result-grid {
        gap: 0.9rem;
    }

    .result-card {
        width: 11.9rem;
        flex-basis: 11.9rem;
        min-height: 13.8rem;
        padding: 0.95rem 0.82rem 0.88rem;
    }
}

@media (min-width: 1440px) {
    .dashboard-shell {
        max-width: min(86rem, calc(100% - 3rem)) !important;
    }

    .result-card {
        width: 11.4rem;
        flex-basis: 11.4rem;
    }
}

/* profile-editor-and-link-modals */
body.overflow-hidden {
    overflow: hidden;
}

.avatar-preview-card,
.link-summary-item,
.link-config-modal .link-editor-card,
.avatar-crop-modal,
.delete-account-modal {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--soft-shadow);
}

.link-summary-item {
    display: block;
    border-radius: 1.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.link-summary-item:hover {
    border-color: rgba(88, 174, 242, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.07), 0 6px 18px rgba(88, 174, 242, 0.05);
    transform: translateY(-1px);
}

.link-summary-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
}

.link-summary-icon {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    flex: 0 0 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    font-size: 0.95rem;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -10px 30px rgba(16, 24, 40, 0.03);
    backdrop-filter: blur(12px);
}

.modal-card {
    max-height: min(92vh, 56rem);
    overflow-y: auto;
}

.share-modal-card {
    max-height: min(92vh, 40rem);
    padding: 1.3rem;
    overflow-y: hidden;
}

.link-config-modal {
    width: min(100%, 60rem);
}

.avatar-crop-modal {
    width: min(100%, 62rem);
}

.delete-account-modal {
    width: min(100%, 34rem);
}

.avatar-modal-close {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.9);
    color: var(--brand-fog);
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.avatar-modal-close:hover {
    border-color: rgba(88, 174, 242, 0.18);
    background: rgba(255, 255, 255, 0.98);
    color: var(--brand-ink);
}

.avatar-crop-stage {
    position: relative;
    overflow: hidden;
    border-radius: 1.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.avatar-crop-stage canvas,
.avatar-crop-preview canvas {
    display: block;
    width: 100%;
    height: auto;
}

.avatar-crop-stage canvas {
    touch-action: none;
    cursor: grab;
}

.avatar-crop-stage canvas:active {
    cursor: grabbing;
}

.avatar-crop-preview {
    overflow: hidden;
    border-radius: 1.7rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

@media (max-width: 640px) {
    .modal-overlay {
        padding: 0.85rem;
    }

    .modal-card {
        padding: 1.1rem;
        border-radius: 1.6rem;
    }

    .link-summary-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner [data-cookie-accept="true"],
    .cookie-banner [data-cookie-dismiss="true"] {
        width: 100%;
        justify-content: center;
    }

    .link-config-modal .form-checkbox-wrap,
    .link-config-modal .form-input,
    .delete-account-modal .form-input,
    .avatar-crop-modal .form-input {
        min-height: 3.15rem;
    }

    .link-config-modal .btn-primary,
    .link-config-modal .btn-secondary,
    .link-config-modal .btn-danger,
    .delete-account-modal .btn-primary,
    .delete-account-modal .btn-secondary,
    .delete-account-modal .btn-danger {
        min-height: 3rem;
    }
}
