/* High-priority interaction layer loaded after the legacy stylesheet. */

#preloader .loader {
    --loader-letter: #d7dfda;
}

#preloader .loader-letter {
    fill: var(--loader-letter);
}

html[data-theme="light"] #preloader {
    background-color: rgba(238, 244, 240, 0.92);
    backdrop-filter: blur(8px);
}

html[data-theme="light"] #preloader .loader {
    --path: #5f7066;
    --dot: #118d41;
    --loader-letter: #17241c;
}

.theme-icon-svg {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 19px;
    height: 19px;
}

.theme-icon-sun { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
.theme-icon-moon { transform: translate(-50%, -50%) rotate(75deg) scale(0.55); }
html[data-theme="light"] .theme-icon-sun { transform: translate(-50%, -50%) rotate(-75deg) scale(0.55); }
html[data-theme="light"] .theme-icon-moon { transform: translate(-50%, -50%) rotate(0deg) scale(1); }

.logo-home-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.logo-home-link:focus {
    outline: none;
}

.logo-home-link:focus-visible {
    border-radius: 50%;
    outline: 2px solid var(--accent);
    outline-offset: 7px;
}

.logo-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    will-change: opacity, transform, filter;
    transition:
        opacity 0.34s ease,
        transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.34s ease,
        box-shadow 0.42s ease;
}

.logo-primary {
    position: relative;
    z-index: 2;
    opacity: 1;
}

.logo-qr {
    z-index: 1;
    opacity: 0;
    filter: blur(4px);
    transform: translateZ(0) rotate(4deg) scale(0.92);
}

.logo-div.show-qr .logo-primary {
    opacity: 0;
    filter: blur(3px);
    transform: translateZ(0) rotate(-4deg) scale(0.92);
}

.logo-div.show-qr .logo-qr {
    opacity: 1;
    filter: blur(0);
    transform: translateZ(0) rotate(0) scale(1);
}

.instagram-button::after {
    content: "";
    position: absolute;
    top: 42px;
    left: 0;
    z-index: 29;
    width: 42px;
    height: 24px;
}

.instagram-button:hover .instagram,
.instagram-button:focus-within .instagram,
.instagram-button:focus .instagram {
    box-shadow: none;
    background-clip: padding-box;
    clip-path: inset(0 round 12px);
    transform: scale(1.05);
}

.dropdown {
    left: 0;
    width: 210px;
}

.dropdown a {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    height: 64px;
    padding: 10px;
    row-gap: 3px;
}

.dropdown-icons {
    justify-self: start;
    width: 44px;
    height: 44px;
    padding: 9px;
    margin: 0;
}

.dropdown-txt,
.dropdown-txt2 {
    position: static;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.dropdown-txt { align-self: end; }
.dropdown-txt2 { align-self: start; }

body:has(.custom-terminal:hover) .circle {
    opacity: 0;
}

body:has(.terminal-div:hover) .circle {
    opacity: 1;
}

.terminal-div,
.terminal-div *,
.custom-terminal,
.custom-terminal * {
    cursor: default;
}

.terminal-div,
.terminal-div * {
    cursor: none;
}

.terminal-btn { cursor: pointer; }

.custom-terminal .terminal-input { cursor: text; }
.custom-terminal .terminal-top-bar { cursor: grab; }
.custom-terminal .terminal-top-bar:active { cursor: grabbing; }

.terminal-buttons {
    align-items: center;
    gap: 4px;
}

.terminal-btn {
    position: relative;
    display: grid;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--terminal-control-border);
    transition: filter 0.18s ease, transform 0.18s ease;
}

.terminal-btn::before,
.terminal-btn::after {
    content: none;
}

.terminal-btn.close::before,
.terminal-btn.close::after,
.terminal-btn.minimize::before,
.terminal-btn.minimize::after,
.terminal-btn.maximize::before,
.terminal-btn.maximize::after {
    content: none;
}

.terminal-btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 10px;
    height: 10px;
    overflow: visible;
    fill: none;
    stroke: var(--terminal-control-icon);
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.terminal-btn.close {
    --terminal-control-border: #da3c3e;
    --terminal-control-icon: #7b0913;
    background: #f85656;
}

.terminal-btn.minimize {
    --terminal-control-border: #d99b33;
    --terminal-control-icon: #94581f;
    background: #f9bc4a;
}

.terminal-btn.maximize {
    --terminal-control-border: #18a631;
    --terminal-control-icon: #12661a;
    background: #39c951;
}

.terminal-resize-icon {
    fill: none;
    stroke: var(--terminal-control-icon);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: center;
    transition:
        opacity 0.28s ease,
        transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-resize-out {
    opacity: 1;
    transform: scale(1);
}

.terminal-resize-in {
    opacity: 0;
    transform: rotate(-90deg) scale(0.55);
}

.terminal-maximized .terminal-resize-out {
    opacity: 0;
    transform: rotate(90deg) scale(0.55);
}

.terminal-maximized .terminal-resize-in {
    opacity: 1;
    transform: rotate(0) scale(1);
}
.terminal-btn:hover { filter: brightness(1.06); transform: scale(1.14); }

.terminal-top-bar {
    height: 38px;
    padding-inline: 10px;
}

.custom-terminal.terminal-minimized { height: 38px !important; }
.terminal-minimized .terminal-output,
.terminal-minimized .terminal-input-container { display: none; }

.custom-terminal.terminal-maximized {
    max-width: none;
    border-radius: 14px;
}

.custom-terminal.terminal-resizing {
    pointer-events: none;
}

.custom-terminal {
    transition:
        transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.24s ease,
        top 0.46s cubic-bezier(0.16, 1, 0.3, 1),
        left 0.46s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.46s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.46s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 0.38s ease;
}

.button-txt4 {
    display: flex;
    height: 100%;
    align-items: center;
    transform: translateY(1px);
}

.button {
    grid-template-columns: 72px minmax(0, 1fr) 48px;
}

.top-controls {
    top: 40px;
    left: max(40px, calc((100vw - 760px) / 2 + 16px));
    gap: 9px;
}

.terminal-div,
.theme-toggle {
    border-radius: 11px;
}

html[data-theme="light"] .background {
    box-shadow: none;
}

.background,
.background2,
.background2:hover {
    box-shadow: none;
}

html[data-theme="light"] .background2,
html[data-theme="light"] .background2:hover {
    box-shadow: none;
}

html,
html[data-theme="light"] {
    background: var(--page-bg);
    transition: background-color 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body,
html[data-theme="light"] body {
    background: transparent !important;
    transition-property: color;
}

@media (max-width: 600px) {
    .button {
        grid-template-columns: 68px minmax(0, 1fr) 42px;
    }

    .top-controls {
        top: 26px;
        left: 26px;
    }
}

html[data-route="about"] .about-view-title {
    animation: about-title-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html[data-route="about"] .about-view-content {
    animation: about-content-in 0.7s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html[data-route="about"] .about-contact-row {
    animation: about-link-in 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html[data-route="about"] .about-contact-row:nth-of-type(1) { animation-delay: 0.16s; }
html[data-route="about"] .about-contact-row:nth-of-type(2) { animation-delay: 0.21s; }
html[data-route="about"] .about-contact-row:nth-of-type(3) { animation-delay: 0.26s; }
html[data-route="about"] .about-contact-row:nth-of-type(4) { animation-delay: 0.31s; }

@keyframes about-title-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes about-content-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes about-link-in {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-layer,
    .theme-icon-svg,
    html[data-route="about"] .about-view-title,
    html[data-route="about"] .about-view-content,
    html[data-route="about"] .about-contact-row {
        animation: none;
        transition-duration: 0.01ms;
    }
}

/* Final admin layout overrides must remain after the authentication component rules. */
.admin-layout {
    width: min(100%, 700px);
}

.admin-login-card {
    max-width: 610px;
    margin-inline: auto;
}

.admin-login-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.admin-heading-copy {
    width: 100%;
}

.admin-login-header .admin-eyebrow {
    justify-content: center;
}

.admin-login-title {
    width: 100%;
    text-align: center;
}

.admin-panel {
    min-height: 520px;
}

@media (max-width: 600px) {
    .admin-login-header {
        display: flex;
        gap: 11px;
    }
}

/* Final content editor, popup and About Me corrections. */
.site-social-item .brand-social-image {
    filter: none;
}

.site-social-item > a:hover .brand-social-image,
.site-social-item.has-submenu:hover > .brand-social-image,
.site-social-item.has-submenu:focus-within > .brand-social-image {
    border-color: transparent;
    background: var(--social-brand);
    box-shadow: 0 9px 22px color-mix(in srgb, var(--social-brand) 28%, transparent);
    filter: none;
    transform: translateY(-2px) scale(1.05);
}

.site-social-item.instagram-button:hover > .instagram,
.site-social-item.instagram-button:focus-within > .instagram {
    background:
        radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%),
        radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%),
        radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%),
        radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent),
        linear-gradient(#6559ca, #bc318f 30%, #e33f5f 55%, #f77638 75%, #fec66d 100%);
    box-shadow: 0 9px 22px rgba(217, 49, 122, 0.22);
}

#site-social-list .instagram-button .dropdown {
    top: 56px;
    left: 0;
    width: 210px;
    padding: 6px;
    transform-origin: top left;
}

#site-social-list .instagram-button::after {
    top: 42px;
    left: 0;
    width: 42px;
    height: 14px;
}

#site-social-list .instagram-button .dropdown a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 64px;
    padding: 10px;
    row-gap: 3px;
}

#site-social-list .instagram-button .dropdown a + a {
    margin-top: 4px;
}

#site-social-list .instagram-button .dropdown a:hover {
    border-color: rgba(37, 211, 102, 0.38);
    background: rgba(37, 211, 102, 0.1);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.14);
    transform: translateX(2px);
}

#site-social-list .instagram-button .dropdown-icons {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: start;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 9px;
    object-fit: contain;
    border-radius: 12px;
}

#site-social-list .instagram-button .dropdown-txt,
#site-social-list .instagram-button .dropdown-txt2 {
    position: static;
    grid-column: 2;
    margin: 0;
    padding: 0;
    line-height: 1;
    transform: none;
}

#site-social-list .instagram-button .dropdown-txt {
    grid-row: 1;
    align-self: end;
}

#site-social-list .instagram-button .dropdown-txt2 {
    grid-row: 2;
    align-self: start;
}

.about-copy {
    margin: 0;
    white-space: pre-line;
    line-height: 1.65;
}

.about-links {
    display: grid;
    gap: 3px;
    margin-top: 5px;
}

.about-contact-row,
.about-contact-row a {
    width: fit-content;
}

.about-contact-row a {
    position: relative;
    display: flex;
    min-height: 30px;
    align-items: center;
}

.about-contact-row p {
    margin: 0;
    padding-left: 40px;
    line-height: 1.3;
}

.about-contact-row.no-icon p {
    padding-left: 0;
}

.about-social-media {
    left: 0;
    flex: 0 0 30px;
}

.admin-panel-header {
    padding-bottom: 28px;
}

.admin-editor-shell {
    margin-top: 0;
}

.editor-section[hidden] {
    display: none !important;
}

.editor-about-links-heading {
    margin: 18px 0 !important;
}

.editor-item-head {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
}

.editor-item-title {
    display: grid;
    gap: 1px;
}

.editor-item-title small,
.editor-custom-social-tools small {
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 9px;
    line-height: 1.3;
}

.editor-icon-preview {
    display: grid;
    box-sizing: border-box;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--item-color) 45%, var(--surface-border));
    border-radius: 11px;
    color: #fff;
    background: var(--item-color);
    font-family: ui-monospace, monospace;
    font-size: 15px;
    font-weight: 800;
}

.editor-icon-preview img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 9px;
    object-fit: contain;
}

.editor-icon-preview.brand-preview img,
.editor-icon-preview.contact-preview img {
    filter: none;
}

.editor-icon-preview.upload-preview {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    background: rgba(37, 211, 102, 0.1);
}

.editor-icon-preview.upload-preview img {
    padding: 5px;
}

.editor-icon-preview.is-empty {
    border-style: dashed;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);
}

.editor-custom-social-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.editor-color-control {
    display: flex;
    height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.editor-color-control input[type="color"] {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.editor-color-control code {
    color: var(--text-muted);
    font-size: 10px;
}

.editor-inline-actions.compact {
    min-height: 42px;
    margin-top: 0;
    justify-content: flex-start;
}

.editor-compact-item {
    grid-template-columns: 38px 110px minmax(0, 1fr) auto;
}

.editor-compact-item:has(input[data-field="customType"]) {
    grid-template-columns: 38px 100px minmax(100px, 0.72fr) minmax(0, 1fr) auto;
}

.editor-default-button {
    height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 11px;
    color: var(--accent);
    background: rgba(37, 211, 102, 0.08);
    cursor: pointer;
    font-family: 'Lalezar', sans-serif;
    font-size: 13px;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.editor-default-button:hover {
    border-color: rgba(37, 211, 102, 0.55);
    background: rgba(37, 211, 102, 0.14);
    transform: translateY(-1px);
}

html[data-theme="light"] .site-social-item .brand-social-image,
html[data-theme="light"] .site-social-item > a:hover .brand-social-image,
html[data-theme="light"] .site-social-item.has-submenu:hover > .brand-social-image,
html[data-theme="light"] .site-social-item.has-submenu:focus-within > .brand-social-image {
    filter: none;
}

@media (max-width: 600px) {
    .editor-custom-social-tools,
    .editor-compact-item,
    .editor-compact-item:has(input[data-field="customType"]) {
        grid-template-columns: 1fr;
    }

    .editor-compact-item .editor-icon-preview {
        justify-self: start;
    }

    .editor-actions {
        flex-wrap: wrap;
    }
}

/* Terminal completion mirrors the typed text so the remaining characters never overlap. */
.terminal-input-suggest {
    right: 15px;
    left: 15px;
    width: auto;
    overflow: hidden;
    font: 16px/normal monospace;
    color: color-mix(in srgb, var(--text-muted) 48%, transparent);
}

.terminal-suggest-typed {
    color: transparent;
}

/* Center the login identity as a single visual group. */
.admin-login-card {
    max-width: 610px;
    margin-inline: auto;
}

.admin-login-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.admin-heading-copy {
    width: 100%;
}

.admin-login-header .admin-eyebrow {
    justify-content: center;
}

.admin-login-title {
    width: 100%;
    text-align: center;
}

/* Editable public content */
.about-copy {
    margin-bottom: 14px;
    white-space: pre-line;
}

.about-links {
    display: grid;
    gap: 3px;
}

.about-contact-row.no-icon p {
    padding-left: 0;
}

.dynamic-social-icon {
    display: grid;
    place-items: center;
    color: var(--text-main);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.site-social-item:hover .dynamic-social-icon,
.site-social-item:focus-within .dynamic-social-icon,
.site-social-item:focus .dynamic-social-icon {
    border-color: transparent;
    color: #fff;
    background: var(--social-brand);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--social-brand) 34%, transparent);
    transform: translateY(-2px) scale(1.05);
}

.platform-snapchat:hover .dynamic-social-icon,
.platform-kick:hover .dynamic-social-icon {
    color: #111;
}

.site-social-item.has-submenu {
    position: relative;
}

.site-social-item.has-submenu::after {
    content: "";
    position: absolute;
    top: 42px;
    left: 0;
    z-index: 29;
    width: 42px;
    height: 24px;
}

.site-social-item.has-submenu:hover .dropdown,
.site-social-item.has-submenu:focus-within .dropdown,
.site-social-item.has-submenu:focus .dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.site-social-item.has-submenu:hover .triangle,
.site-social-item.has-submenu:focus-within .triangle,
.site-social-item.has-submenu:focus .triangle {
    opacity: 1;
}

.dynamic-dropdown-icon {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    border: 1px solid var(--surface-border);
    border-radius: 13px;
    color: var(--text-main);
    background: rgba(37, 211, 102, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 800;
}

.dynamic-button-icon {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    color: var(--text-main);
    font-family: system-ui, sans-serif;
    font-size: 20px;
}

/* Full site editor */
.admin-layout {
    width: min(100%, 700px);
}

.admin-panel {
    min-height: 520px;
}

.admin-editor-shell {
    margin-top: 22px;
}

.admin-editor-nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 4px 0 14px;
    scrollbar-width: thin;
}

.admin-editor-nav button {
    height: 36px;
    flex: 0 0 auto;
    padding: 0 13px;
    border: 1px solid var(--surface-border);
    border-radius: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-family: 'Lalezar', sans-serif;
    font-size: 13px;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.admin-editor-nav button:hover,
.admin-editor-nav button.active {
    border-color: rgba(37, 211, 102, 0.4);
    color: var(--text-main);
    background: rgba(37, 211, 102, 0.1);
}

.admin-editor-nav button:active {
    transform: scale(0.96);
}

.site-editor-form {
    display: grid;
    gap: 15px;
}

.site-editor-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 2px 8px;
}

.site-editor-kicker {
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.site-editor-heading h2,
.editor-section-title h3,
.editor-subsection-heading h4 {
    margin: 0;
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-weight: 400;
}

.site-editor-heading h2 {
    padding: 0;
    font-size: 27px;
    line-height: 1.15;
}

.site-editor-heading p,
.editor-section-title p,
.editor-logo-field p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    line-height: 1.45;
}

.editor-save-state {
    min-height: 18px;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 11px;
    text-align: right;
}

.editor-save-state[data-state="success"] { color: var(--accent); }
.editor-save-state[data-state="pending"] { color: #f9bc4a; }
.editor-save-state[data-state="error"] { color: #ff6b68; }

.editor-section {
    scroll-margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.editor-section-title {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}

.editor-section-title > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(37, 211, 102, 0.22);
    border-radius: 11px;
    color: var(--accent);
    background: rgba(37, 211, 102, 0.075);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
}

.editor-section-title h3 {
    font-size: 20px;
    line-height: 1;
}

.editor-grid {
    display: grid;
    gap: 12px;
}

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

.editor-field {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.editor-field > span,
.editor-subsection-heading h4,
.editor-nested-head > span {
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-size: 13px;
    line-height: 1;
}

.editor-field input,
.editor-field textarea,
.editor-add-row select,
.editor-compact-item input,
.editor-compact-item select,
.editor-nested-item input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--surface-border);
    outline: 0;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.035);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-field input,
.editor-add-row select,
.editor-compact-item input,
.editor-compact-item select,
.editor-nested-item input {
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
}

.editor-field textarea {
    min-height: 150px;
    resize: vertical;
    padding: 12px;
    border-radius: 13px;
    line-height: 1.55;
}

.editor-field input:focus,
.editor-field textarea:focus,
.editor-add-row select:focus,
.editor-compact-item input:focus,
.editor-compact-item select:focus,
.editor-nested-item input:focus {
    border-color: rgba(37, 211, 102, 0.65);
    background: rgba(37, 211, 102, 0.045);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.08);
}

.editor-logo-field {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 13px;
    border: 1px dashed color-mix(in srgb, var(--surface-border) 85%, var(--accent));
    border-radius: 15px;
}

.editor-logo-field img {
    box-sizing: border-box;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 2px solid var(--surface-strong);
    border-radius: 50%;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
}

.editor-file-button,
.editor-mini-upload {
    display: inline-flex;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 10px;
    color: var(--text-main);
    background: rgba(37, 211, 102, 0.09);
    cursor: pointer;
    font-family: 'Lalezar', sans-serif;
    font-size: 12px;
}

.editor-logo-field input[type="file"],
.editor-mini-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.editor-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    margin-bottom: 12px;
}

.editor-add-button,
.editor-save-button,
.editor-reset-button,
.editor-text-button,
.editor-remove-button,
.editor-nested-item button {
    border: 0;
    cursor: pointer;
    font-family: 'Lalezar', sans-serif;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, filter 0.2s ease;
}

.editor-add-button {
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(37, 211, 102, 0.28);
    border-radius: 12px;
    color: var(--text-main);
    background: rgba(37, 211, 102, 0.1);
    font-size: 13px;
}

.editor-repeater {
    display: grid;
    gap: 10px;
}

.editor-item {
    padding: 13px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.022);
}

.editor-item-head {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-bottom: 2px;
}

.editor-item-head strong {
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.editor-brand-badge {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--item-color);
    font-family: ui-monospace, monospace;
    font-size: 9px;
    font-weight: 800;
}

.editor-remove-button {
    padding: 5px 8px;
    border: 1px solid rgba(255, 107, 104, 0.18);
    border-radius: 8px;
    color: #ff7976;
    background: rgba(255, 107, 104, 0.06);
    font-size: 10px;
}

.editor-remove-button:hover {
    border-color: rgba(255, 107, 104, 0.42);
    background: rgba(255, 107, 104, 0.12);
}

.editor-nested-head,
.editor-subsection-heading,
.editor-inline-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.editor-nested-head {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--surface-border);
}

.editor-text-button {
    padding: 0;
    color: var(--accent);
    background: transparent;
    font-size: 11px;
}

.editor-text-button.danger { color: #ff7976; }

.editor-nested-list {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

.editor-nested-item {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1.35fr 30px;
    gap: 6px;
}

.editor-nested-item input {
    height: 36px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 10px;
}

.editor-nested-item button {
    width: 30px;
    height: 36px;
    border-radius: 9px;
    color: #ff7976;
    background: rgba(255, 107, 104, 0.08);
    font-size: 17px;
}

.editor-subsection-heading {
    margin: 2px 0 10px;
}

.editor-subsection-heading.email-heading {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--surface-border);
}

.editor-subsection-heading h4 {
    font-size: 15px;
}

.editor-compact-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px;
}

.editor-link-item .editor-field {
    margin-top: 0;
}

.editor-link-item > .editor-field {
    margin-top: 10px;
}

.editor-inline-actions {
    justify-content: flex-start;
    margin-top: 11px;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 10px;
}

.editor-inline-actions .editor-remove-button {
    margin-left: auto;
}

.editor-mini-upload {
    height: 30px;
    padding: 0 9px;
    font-size: 10px;
}

.editor-empty-state {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--surface-border);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 11px;
    text-align: center;
}

.editor-actions {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--surface-border);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
}

.editor-save-button,
.editor-reset-button {
    height: 40px;
    padding: 0 15px;
    border-radius: 11px;
    font-size: 13px;
}

.editor-save-button {
    color: #07140c;
    background: linear-gradient(135deg, #1fbd59, #53e383);
}

.editor-reset-button {
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
}

.editor-save-button:hover,
.editor-add-button:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

html[data-theme="light"] .editor-section,
html[data-theme="light"] .editor-item,
html[data-theme="light"] .editor-field input,
html[data-theme="light"] .editor-field textarea,
html[data-theme="light"] .editor-add-row select,
html[data-theme="light"] .editor-compact-item input,
html[data-theme="light"] .editor-compact-item select,
html[data-theme="light"] .editor-nested-item input,
html[data-theme="light"] .admin-editor-nav button {
    background: rgba(24, 64, 39, 0.025);
}

@media (max-width: 600px) {
    .admin-panel {
        padding: 18px;
    }

    .site-editor-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .editor-save-state {
        text-align: left;
    }

    .editor-section {
        padding: 15px;
    }

    .editor-grid.two-columns,
    .editor-add-row,
    .editor-compact-item,
    .editor-nested-item {
        grid-template-columns: 1fr;
    }

    .editor-nested-item button {
        width: 100%;
        height: 32px;
    }

    .editor-inline-actions {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .editor-inline-actions .editor-remove-button {
        margin-left: 0;
    }

    .editor-actions {
        bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-editor-nav button,
    .editor-field input,
    .editor-field textarea,
    .editor-add-button,
    .editor-save-button,
    .site-social-item .social-media {
        transition-duration: 0.01ms;
    }
}

/* Admin route and authentication UI */
html[data-route="admin"] .logo-div {
    margin-right: 0;
    margin-left: 0;
    animation: about-logo-move 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-view {
    box-sizing: border-box;
    min-height: 540px;
    margin-top: -52px;
    padding: 96px 28px 30px;
}

.admin-layout {
    width: min(100%, 610px);
    margin: 0 auto;
}

.admin-login-card,
.admin-panel {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-login-card {
    padding: 28px;
    transform-origin: center;
}

.admin-login-header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.admin-brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(37, 211, 102, 0.28);
    border-radius: 17px;
    color: var(--accent);
    background: rgba(37, 211, 102, 0.1);
    box-shadow: inset 0 0 24px rgba(37, 211, 102, 0.05);
}

.admin-brand-mark svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-heading-copy {
    min-width: 0;
}

.admin-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.admin-eyebrow > span {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
}

.admin-login-title,
.admin-panel-title {
    margin: 0;
    padding: 0;
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1.05;
}

.admin-login-subtitle,
.admin-panel-header p,
.admin-panel-placeholder p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.admin-login-form {
    display: grid;
    gap: 17px;
}

.admin-field-label {
    display: grid;
    gap: 7px;
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-size: 15px;
    line-height: 1;
}

.admin-input-wrap {
    position: relative;
    display: flex;
    height: 52px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    transition:
        border-color 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.admin-input-wrap:focus-within {
    border-color: rgba(37, 211, 102, 0.72);
    background: rgba(37, 211, 102, 0.055);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
    transform: translateY(-1px);
}

.admin-input-wrap > svg {
    width: 20px;
    height: 20px;
    margin-left: 16px;
    flex: 0 0 20px;
    fill: none;
    color: var(--text-muted);
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color 0.22s ease;
}

.admin-input-wrap:focus-within > svg {
    color: var(--accent);
}

.admin-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 15px 0 12px;
    border: 0;
    outline: 0;
    color: var(--text-main);
    background: transparent;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    caret-color: var(--accent);
}

.admin-input-wrap input::placeholder {
    color: color-mix(in srgb, var(--text-muted) 72%, transparent);
}

.admin-password-wrap input {
    padding-right: 7px;
}

.admin-password-toggle {
    position: relative;
    display: grid;
    width: 46px;
    height: 42px;
    margin-right: 5px;
    flex: 0 0 46px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.admin-password-toggle:hover {
    color: var(--accent);
    background: rgba(37, 211, 102, 0.09);
}

.admin-password-toggle:active {
    transform: scale(0.92);
}

.admin-password-toggle:focus-visible,
.admin-login-button:focus-visible,
.admin-logout-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.admin-password-toggle svg {
    position: absolute;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-eye-show {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.admin-eye-hide {
    opacity: 0;
    transform: rotate(-35deg) scale(0.72);
}

.admin-password-toggle[aria-pressed="true"] .admin-eye-show {
    opacity: 0;
    transform: rotate(35deg) scale(0.72);
}

.admin-password-toggle[aria-pressed="true"] .admin-eye-hide {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.admin-login-status {
    min-height: 18px;
    margin: -3px 1px -5px;
    color: var(--text-muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    line-height: 18px;
}

.admin-login-status[data-state="error"] {
    color: #ff6b68;
}

.admin-login-status[data-state="success"] {
    color: var(--accent);
}

.admin-login-button {
    display: flex;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    color: #07140c;
    background: linear-gradient(135deg, #1fbd59, #53e383);
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.2);
    cursor: pointer;
    font-family: 'Lalezar', sans-serif;
    font-size: 18px;
    line-height: 1;
    transition:
        transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.2s ease,
        box-shadow 0.24s ease,
        opacity 0.2s ease;
}

.admin-login-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-login-button:hover {
    filter: brightness(1.06);
    box-shadow: 0 15px 32px rgba(37, 211, 102, 0.28);
    transform: translateY(-2px);
}

.admin-login-button:hover svg {
    transform: translateX(3px);
}

.admin-login-button:active {
    transform: translateY(0) scale(0.98);
}

.admin-login-button:disabled {
    opacity: 0.64;
    cursor: wait;
    transform: none;
}

.admin-login-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.admin-security-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.8);
    animation: admin-security-pulse 1.8s ease-in-out infinite;
}

.admin-login-card.login-error {
    animation: admin-login-shake 0.38s ease;
}

.admin-login-card.login-success {
    animation: admin-login-success 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-panel {
    min-height: 390px;
    padding: 28px;
}

.admin-panel:not([hidden]) {
    animation: admin-panel-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--surface-border);
}

.admin-panel-header strong {
    color: var(--text-main);
}

.admin-logout-button {
    display: flex;
    height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    font-family: 'Lalezar', sans-serif;
    font-size: 14px;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.admin-logout-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-logout-button:hover {
    border-color: rgba(255, 107, 104, 0.42);
    color: #ff7471;
    background: rgba(255, 107, 104, 0.08);
    transform: translateY(-1px);
}

.admin-panel-placeholder {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.admin-placeholder-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 17px;
    place-items: center;
    border: 1px solid rgba(37, 211, 102, 0.24);
    border-radius: 20px;
    color: var(--accent);
    background: rgba(37, 211, 102, 0.085);
}

.admin-placeholder-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.admin-panel-placeholder h2 {
    margin: 0;
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-size: 22px;
    font-weight: 400;
}

.admin-panel-placeholder p {
    max-width: 340px;
}

html[data-theme="light"] .admin-login-card,
html[data-theme="light"] .admin-panel {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 22px 55px rgba(28, 70, 43, 0.09);
}

html[data-theme="light"] .admin-input-wrap,
html[data-theme="light"] .admin-logout-button {
    background: rgba(24, 64, 39, 0.025);
}

html[data-theme="light"] .admin-input-wrap:focus-within {
    background: rgba(37, 211, 102, 0.055);
}

@keyframes admin-login-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
}

@keyframes admin-login-success {
    0% { opacity: 1; transform: scale(1); }
    55% { opacity: 1; transform: scale(1.015); }
    100% { opacity: 0; transform: scale(0.97); }
}

@keyframes admin-panel-in {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes admin-security-pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .admin-view {
        min-height: 510px;
        margin-top: -46px;
        padding: 88px 14px 22px;
    }

    .admin-login-card,
    .admin-panel {
        border-radius: 20px;
    }

    .admin-login-card,
    .admin-panel {
        padding: 21px;
    }

    .admin-login-header {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 13px;
        margin-bottom: 23px;
    }

    .admin-brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .admin-login-title,
    .admin-panel-title {
        font-size: 27px;
    }

    .admin-panel-header {
        align-items: center;
    }

    .admin-logout-button span {
        display: none;
    }

    .admin-logout-button {
        width: 40px;
        padding: 0;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-route="admin"] .logo-div,
    .admin-login-card,
    .admin-panel,
    .admin-security-dot,
    .admin-password-toggle svg {
        animation: none;
        transition-duration: 0.01ms;
    }
}

/* Final admin layout overrides. */
.admin-layout {
    width: min(100%, 700px);
}

.admin-login-card {
    max-width: 610px;
    margin-inline: auto;
}

.admin-login-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.admin-heading-copy {
    width: 100%;
}

.admin-login-header .admin-eyebrow {
    justify-content: center;
}

.admin-login-title {
    width: 100%;
    text-align: center;
}

.admin-panel {
    min-height: 520px;
}

@media (max-width: 600px) {
    .admin-login-header {
        display: flex;
        gap: 11px;
    }
}

/* Cascade guard: keep the latest editor corrections after every legacy rule. */
.admin-heading-copy,
.admin-panel-header > div:first-child,
.site-editor-heading > div:first-child {
    display: grid;
}

.admin-heading-copy .admin-eyebrow,
.admin-panel-header > div:first-child .admin-eyebrow {
    margin-bottom: 0;
}

.admin-login-title,
.admin-panel-title,
.site-editor-heading h2 {
    margin: 7px 0 !important;
}

.admin-login-subtitle,
.admin-panel-header p,
.site-editor-heading p {
    margin: 0;
}

.admin-editor-nav {
    padding-top: 18px;
}

.editor-qr-field {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    padding: 13px;
    border: 1px dashed color-mix(in srgb, var(--surface-border) 85%, var(--accent));
    border-radius: 15px;
}

.editor-qr-field > img {
    box-sizing: border-box;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 2px solid var(--surface-strong);
    border-radius: 16px;
    background: #20d574;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
}

.editor-qr-controls {
    min-width: 0;
}

.editor-qr-controls .editor-field {
    margin-top: 0;
}

.editor-qr-color-control {
    box-sizing: border-box;
}

.editor-qr-actions {
    flex-wrap: wrap;
    margin-top: 10px;
}

.editor-qr-actions .editor-add-button {
    height: 34px;
}

.editor-qr-actions small {
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 9px;
    line-height: 1.4;
}

.editor-add-button:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

.custom-contact-heading {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--surface-border);
}

.about-copy {
    margin: 0;
    white-space: pre-line;
    line-height: 1.65;
}

.about-links {
    display: grid;
    gap: 3px;
    margin-top: 5px;
}

.about-contact-row p {
    margin: 0;
}

.admin-panel-header {
    padding-bottom: 28px;
}

.admin-editor-shell {
    margin-top: 0;
}

.editor-item-head {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
}

.editor-compact-item {
    grid-template-columns: 38px 110px minmax(0, 1fr) auto;
}

.editor-compact-item:has(input[data-field="customType"]) {
    grid-template-columns: 38px 100px minmax(100px, 0.72fr) minmax(0, 1fr) auto;
}

@media (max-width: 600px) {
    .editor-custom-social-tools,
    .editor-compact-item,
    .editor-compact-item:has(input[data-field="customType"]) {
        grid-template-columns: 1fr;
    }

    .editor-qr-field {
        grid-template-columns: 1fr;
    }

    .editor-qr-field > img {
        justify-self: start;
    }
}

/* v39: restored About layout, readable social icons and versioned defaults. */
.admin-editor-nav {
    padding: 18px 0 9px;
}

.site-editor-heading {
    padding-top: 9px;
}

.admin-logout-button {
    align-items: center;
    white-space: nowrap;
    line-height: 1;
}

.admin-logout-button svg,
.admin-logout-button span {
    display: block;
    flex: 0 0 auto;
}

.editor-file-button,
.editor-mini-upload {
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

html[data-theme="light"] #site-social-list .site-social-item .social-media {
    border-color: rgba(23, 36, 28, 0.16);
    background-color: rgba(23, 36, 28, 0.82);
    filter: none;
}

html[data-theme="light"] #site-social-list .site-social-item > a:hover .social-media,
html[data-theme="light"] #site-social-list .site-social-item.has-submenu:hover > .social-media,
html[data-theme="light"] #site-social-list .site-social-item.has-submenu:focus-within > .social-media {
    border-color: transparent;
    background-color: var(--social-brand);
    filter: none;
}

#site-social-list .site-social-item.platform-custom > a:hover .custom-social-image,
#site-social-list .site-social-item.platform-custom.has-submenu:hover > .custom-social-image,
#site-social-list .site-social-item.platform-custom.has-submenu:focus-within > .custom-social-image {
    border-color: transparent;
    background-color: var(--social-brand);
    box-shadow: 0 9px 22px color-mix(in srgb, var(--social-brand) 30%, transparent);
    filter: none;
    transform: translateY(-2px) scale(1.05);
}

#site-social-list .site-social-item.has-submenu .dropdown {
    top: 56px;
    left: 0;
    box-sizing: border-box;
    width: 210px;
    margin: 0;
    padding: 6px;
    transform-origin: top left;
}

#site-social-list .site-social-item.has-submenu::after {
    top: 42px;
    left: 0;
    width: 42px;
    height: 14px;
}

#site-social-list .site-social-item.has-submenu .dropdown a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 64px;
    max-width: none;
    max-height: none;
    padding: 10px;
    row-gap: 3px;
}

#site-social-list .site-social-item.has-submenu .dropdown a + a {
    margin-top: 4px;
}

#site-social-list .site-social-item.has-submenu .dropdown a:hover {
    border-color: rgba(37, 211, 102, 0.38);
    background: rgba(37, 211, 102, 0.1);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.14);
    transform: translateX(2px);
}

#site-social-list .site-social-item.has-submenu .dropdown-icons {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: start;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 9px;
    object-fit: contain;
    border-radius: 12px;
}

#site-social-list .site-social-item.has-submenu .dropdown-txt,
#site-social-list .site-social-item.has-submenu .dropdown-txt2 {
    position: static;
    grid-column: 2;
    margin: 0;
    padding: 0;
    line-height: 1;
    transform: none;
}

#site-social-list .site-social-item.has-submenu .dropdown-txt {
    grid-row: 1;
    align-self: end;
}

#site-social-list .site-social-item.has-submenu .dropdown-txt2 {
    grid-row: 2;
    align-self: start;
}

.about-view-content {
    line-height: 1.65;
}

.about-copy {
    margin: 0;
    white-space: pre-line;
    line-height: 1.65;
}

.about-links {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.about-contact-row a {
    min-height: 44px;
}

.about-social-media {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    object-fit: cover;
}

.about-contact-row p {
    margin: 0;
    padding-left: 58px;
}

.about-outro {
    margin-top: 40px;
}

html[data-route="about"] .about-outro {
    animation: about-content-in 0.55s 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.editor-about-outro-field {
    margin-top: 18px;
}

.editor-nested-item .editor-child-fields {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1.35fr;
    gap: 6px;
    min-width: 0;
}

.editor-nested-item.has-icon-editor {
    grid-template-columns: 158px minmax(0, 1fr) 30px;
    align-items: center;
}

.editor-child-icon-controls {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}

.editor-child-icon-controls .editor-text-button {
    grid-column: 1 / -1;
    justify-self: start;
}

.editor-nested-item .editor-child-remove {
    width: 30px;
}

.editor-history-toolbar,
.editor-history-item,
.editor-history-actions,
.editor-history-previews {
    display: flex;
    align-items: center;
}

.editor-history-toolbar {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.editor-history-toolbar p {
    margin: 0;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 10px;
}

.editor-history-list {
    display: grid;
    gap: 8px;
}

.editor-history-item {
    gap: 11px;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.editor-history-previews {
    gap: 5px;
    flex: 0 0 auto;
}

.editor-history-previews img {
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--surface-strong);
}

.editor-history-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.editor-history-copy strong {
    overflow: hidden;
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-history-copy span {
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 9px;
    line-height: 1.35;
}

.editor-history-actions {
    gap: 10px;
    margin-left: auto;
}

@media (max-width: 600px) {
    .admin-logout-button span {
        display: block;
    }

    .admin-logout-button {
        width: auto;
        padding: 0 11px;
    }

    .editor-nested-item.has-icon-editor,
    .editor-nested-item .editor-child-fields {
        grid-template-columns: 1fr;
    }

    .editor-nested-item .editor-child-remove {
        width: 100%;
    }

    .editor-history-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .editor-history-actions {
        width: 100%;
        margin-left: 0;
        padding-left: 83px;
    }
}

/* v41: scalable socials, draggable editor rows and structured activity logs. */
[hidden] {
    display: none !important;
}

.top-control-button,
.admin-login-button,
.admin-logout-button,
.admin-password-toggle,
.admin-editor-nav button,
.editor-add-button,
.editor-save-button,
.editor-reset-button,
.editor-default-button,
.editor-text-button,
.editor-remove-button,
.editor-nested-item button,
.editor-file-button,
.editor-mini-upload,
.editor-log-filters button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.button-txt,
.button-txt2,
.button-txt3,
.button-txt4 {
    justify-content: center;
    text-align: center;
}

.button-txt,
.button-txt2,
.button-txt3,
.button-txt4,
.dropdown-txt,
.dropdown-txt2 {
    display: flex;
    align-items: center;
    line-height: 1;
}

#site-social-list {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 22px;
}

.bio > nav {
    width: 100%;
    max-width: 100%;
}

#site-social-list .site-social-item {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

#site-social-list:has(.site-social-item:nth-child(8)) {
    gap: 6px;
}

#site-social-list:has(.site-social-item:nth-child(8)) .site-social-item .social-media {
    width: 32px;
    height: 32px;
    padding: 5px;
}

#site-social-list:has(.site-social-item:nth-child(13)) .site-social-item .social-media {
    width: 29px;
    height: 29px;
    padding: 5px;
}

#site-social-list .site-social-item.has-submenu:nth-last-child(-n + 3) .dropdown {
    right: 0;
    left: auto;
    transform-origin: top right;
}

#site-social-list .site-social-item.has-submenu:nth-last-child(-n + 3)::after {
    right: 0;
    left: auto;
}

html[data-theme="light"] #site-social-list .site-social-item .social-media {
    border-color: rgba(35, 82, 57, 0.16);
    background-color: #587765;
    box-shadow: 0 5px 13px rgba(45, 86, 62, 0.12);
}

.about-social-media {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.about-contact-row a {
    min-height: 38px;
}

.about-contact-row p {
    padding-left: 50px;
}

.editor-nested-item,
.editor-nested-item.has-icon-editor {
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.editor-child-icon-controls {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.editor-child-icon-controls .editor-text-button {
    grid-column: auto;
    justify-self: auto;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(255, 107, 104, 0.2);
    border-radius: 9px;
    background: rgba(255, 107, 104, 0.06);
    font-size: 10px;
    white-space: nowrap;
}

.editor-nested-item .editor-child-fields {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.editor-nested-item .editor-child-fields input {
    height: 40px;
    padding: 0 11px;
    font-size: 11px;
}

.editor-nested-item .editor-child-remove {
    grid-column: 2;
    width: 34px;
    height: 40px;
}

.editor-item-head {
    grid-template-columns: 24px 38px minmax(0, 1fr) auto;
}

.editor-compact-item {
    grid-template-columns: 24px 38px 110px minmax(0, 1fr) auto;
}

.editor-compact-item:has(input[data-field="customType"]) {
    grid-template-columns: 24px 38px 100px minmax(100px, 0.72fr) minmax(0, 1fr) auto;
}

.editor-drag-handle {
    display: grid;
    width: 24px;
    height: 34px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 8px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
    cursor: grab;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    letter-spacing: -5px;
    user-select: none;
}

.editor-drag-handle:active {
    cursor: grabbing;
}

.editor-item-drag-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 9px;
}

.is-dragging {
    opacity: 0.42;
    border-color: rgba(37, 211, 102, 0.5) !important;
}

.editor-location-heading,
.editor-about-outro-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.editor-location-heading h4,
.editor-about-outro-heading h4 {
    margin: 0;
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-size: 15px;
    font-weight: 400;
}

.editor-about-outro-field {
    margin-top: 10px;
}

.editor-contact-order-heading {
    align-items: flex-end;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--surface-border);
}

.editor-contact-order-heading small {
    max-width: 260px;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 9px;
    line-height: 1.35;
    text-align: right;
}

.editor-order-list {
    display: grid;
    gap: 7px;
}

.editor-order-item {
    display: grid;
    grid-template-columns: 24px 38px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.022);
}

.editor-order-item > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.editor-order-item strong,
.editor-order-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-order-item strong {
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.editor-order-item small {
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 9px;
}

.editor-qr-field.no-qr {
    grid-template-columns: minmax(0, 1fr);
}

.editor-log-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 13px;
}

.editor-log-filters button {
    height: 36px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    font-family: 'Lalezar', sans-serif;
    font-size: 11px;
}

.editor-log-filters button.active {
    border-color: rgba(37, 211, 102, 0.38);
    color: var(--text-main);
    background: rgba(37, 211, 102, 0.1);
}

.editor-log-type {
    margin-right: 6px;
    padding: 2px 5px;
    border-radius: 5px;
    color: var(--accent);
    background: rgba(37, 211, 102, 0.1);
    font-family: ui-monospace, monospace;
    font-size: 7px;
    text-transform: uppercase;
}

.editor-history-no-qr {
    display: grid;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px dashed var(--surface-border);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 7px;
}

@media (max-width: 600px) {
    #site-social-list {
        padding-inline: 14px;
    }

    .editor-item-head,
    .editor-compact-item,
    .editor-compact-item:has(input[data-field="customType"]) {
        grid-template-columns: 24px 38px minmax(0, 1fr);
    }

    .editor-item-head .editor-remove-button,
    .editor-compact-item .editor-remove-button,
    .editor-compact-item > input {
        grid-column: 1 / -1;
    }

    .editor-nested-item .editor-child-fields {
        grid-template-columns: 1fr;
    }

    .editor-contact-order-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .editor-contact-order-heading small {
        text-align: left;
    }
}

/* v44: named identity icon, preset themes, profiles and refined ordering. */
html[data-site-theme="emerald"] {
    --accent: #25d366;
    --accent-deep: #159947;
    --accent-soft: #53e383;
    --accent-rgb: 37, 211, 102;
}

html[data-site-theme="ocean"] {
    --accent: #38bdf8;
    --accent-deep: #168ac0;
    --accent-soft: #7dd3fc;
    --accent-rgb: 56, 189, 248;
}

html[data-site-theme="violet"] {
    --accent: #8b5cf6;
    --accent-deep: #6d3fd3;
    --accent-soft: #b89afc;
    --accent-rgb: 139, 92, 246;
}

html[data-site-theme="sunset"] {
    --accent: #fb7185;
    --accent-deep: #d94f65;
    --accent-soft: #fda4af;
    --accent-rgb: 251, 113, 133;
}

html[data-site-theme="gold"] {
    --accent: #f5b942;
    --accent-deep: #c88b17;
    --accent-soft: #f8d57a;
    --accent-rgb: 245, 185, 66;
}

html[data-site-theme] body,
html[data-site-theme][data-theme="light"] body {
    background:
        radial-gradient(circle at 12% 5%, rgba(var(--accent-rgb), 0.13), transparent 28rem),
        radial-gradient(circle at 88% 32%, rgba(var(--accent-rgb), 0.06), transparent 25rem),
        var(--page-bg);
    transition: background-color 320ms ease, color 260ms ease;
}

html[data-site-theme] .background {
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
        linear-gradient(135deg, var(--accent-deep), var(--accent) 58%, var(--accent-soft));
    box-shadow: 0 20px 55px rgba(var(--accent-rgb), 0.22);
    transition: background 360ms ease, box-shadow 360ms ease;
}

html[data-site-theme] .button:hover {
    border-color: rgba(var(--accent-rgb), 0.7);
    background: rgba(var(--accent-rgb), 0.075);
}

html[data-site-theme] .button-icon,
html[data-site-theme] .dynamic-button-icon {
    background: rgba(var(--accent-rgb), 0.12);
}

html[data-site-theme] .loader {
    --dot: var(--accent);
}

html[data-site-theme] .circle {
    border-color: var(--accent);
}

html[data-site-theme] .circle-dot,
html[data-site-theme] .popup-btn {
    background-color: var(--accent);
}

html[data-site-theme] .ios-popup-box {
    border-color: var(--accent);
}

html[data-site-theme] .admin-editor-nav button.active,
html[data-site-theme] .editor-log-filters button.active {
    border-color: rgba(var(--accent-rgb), 0.38);
    background: rgba(var(--accent-rgb), 0.1);
}

html[data-site-theme] .editor-save-button,
html[data-site-theme] .editor-add-button,
html[data-site-theme] .admin-login-button {
    border-color: color-mix(in srgb, var(--accent) 62%, transparent);
}

html[data-site-theme] .editor-save-button,
html[data-site-theme] .admin-login-button {
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-soft));
    box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.2);
}

html[data-site-theme] .admin-login-button:hover {
    box-shadow: 0 15px 32px rgba(var(--accent-rgb), 0.28);
}

html[data-site-theme] .editor-default-button,
html[data-site-theme] .editor-file-button,
html[data-site-theme] .editor-mini-upload,
html[data-site-theme] .admin-brand-mark,
html[data-site-theme] .admin-placeholder-icon {
    border-color: rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--accent-rgb), 0.09);
}

html[data-site-theme] .editor-field input:focus,
html[data-site-theme] .editor-field textarea:focus,
html[data-site-theme] .editor-add-row select:focus,
html[data-site-theme] .editor-compact-item input:focus,
html[data-site-theme] .editor-compact-item select:focus,
html[data-site-theme] .editor-nested-item input:focus,
html[data-site-theme] .admin-input-wrap:focus-within {
    border-color: rgba(var(--accent-rgb), 0.65);
    background: rgba(var(--accent-rgb), 0.045);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

html[data-site-theme] .editor-section-title > span,
html[data-site-theme] .dynamic-dropdown-icon,
html[data-site-theme] .admin-password-toggle:hover {
    border-color: rgba(var(--accent-rgb), 0.24);
    background: rgba(var(--accent-rgb), 0.08);
}

.editor-name-heading {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--surface-border);
}

.editor-name-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
    align-items: end;
    gap: 12px;
}

.editor-name-icon-field .editor-inline-actions {
    min-height: 44px;
}

.name-icon-preview {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.name-icon-preview.is-empty::before {
    content: "+";
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 16px;
}

.name-icon-preview.is-empty img {
    display: none;
}

.editor-icon-remove-button {
    box-sizing: border-box;
    min-width: 84px;
    min-height: 32px;
    padding: 0 11px !important;
    border: 1px solid rgba(255, 107, 104, 0.24) !important;
    border-radius: 10px !important;
    color: #ff8b88 !important;
    background: rgba(255, 107, 104, 0.07) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.editor-icon-remove-button:hover {
    border-color: rgba(255, 107, 104, 0.48) !important;
    background: rgba(255, 107, 104, 0.13) !important;
    transform: translateY(-1px);
}

.editor-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.editor-theme-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid var(--surface-border);
    border-radius: 15px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.022);
    cursor: pointer;
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.editor-theme-card:hover {
    border-color: color-mix(in srgb, var(--preset-color) 48%, var(--surface-border));
    background: color-mix(in srgb, var(--preset-color) 7%, transparent);
    transform: translateY(-2px);
}

.editor-theme-card.active {
    border-color: color-mix(in srgb, var(--preset-color) 64%, var(--surface-border));
    background: color-mix(in srgb, var(--preset-color) 11%, transparent);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--preset-color) 14%, transparent);
}

.editor-theme-swatch {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--preset-deep), var(--preset-color) 58%, var(--preset-soft));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 18px color-mix(in srgb, var(--preset-color) 22%, transparent);
}

.editor-theme-swatch i {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.editor-theme-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.editor-theme-copy strong {
    font-family: 'Lalezar', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.editor-theme-copy small,
.editor-theme-note {
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 9px;
}

.editor-theme-check {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    color: transparent;
    font-family: system-ui, sans-serif;
    font-size: 11px;
}

.editor-theme-card.active .editor-theme-check {
    border-color: var(--preset-color);
    color: #fff;
    background: var(--preset-color);
}

.editor-theme-note {
    margin: 12px 2px 0;
}

.editor-profile-create {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
}

.editor-profile-create .editor-add-button {
    min-width: 150px;
}

.editor-profile-list {
    display: grid;
    gap: 8px;
}

.editor-profile-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.022);
}

.editor-profile-accent {
    align-self: stretch;
    min-height: 42px;
    border-radius: 999px;
    background: var(--profile-color);
    box-shadow: 0 0 18px color-mix(in srgb, var(--profile-color) 28%, transparent);
}

.editor-profile-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.editor-profile-copy strong {
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.editor-profile-copy small {
    overflow: hidden;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-profile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-profile-actions .editor-text-button {
    min-width: 52px;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid var(--surface-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 9px;
}

.editor-profile-actions .profile-apply {
    border-color: rgba(var(--accent-rgb), 0.32);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
}

.editor-item,
.editor-nested-item,
.editor-order-item {
    transition: transform 170ms ease, opacity 170ms ease, border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

.editor-drag-handle {
    width: 26px;
    height: 36px;
    flex-basis: 26px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
    letter-spacing: normal;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
    touch-action: none;
}

.editor-drag-handle svg {
    width: 18px;
    height: 24px;
    fill: currentColor;
    pointer-events: none;
}

.editor-drag-handle:hover {
    border-color: rgba(var(--accent-rgb), 0.24);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    transform: scale(1.04);
}

.is-dragging {
    opacity: 0.36;
    border-color: rgba(var(--accent-rgb), 0.46) !important;
    transform: scale(0.985);
}

.is-drop-target {
    border-color: rgba(var(--accent-rgb), 0.62) !important;
    background: rgba(var(--accent-rgb), 0.075) !important;
    box-shadow: 0 9px 24px rgba(var(--accent-rgb), 0.08);
    transform: translateY(3px);
}

/* Restore the original horizontal alignment while keeping vertical centering. */
.button-txt,
.button-txt2,
.button-txt3,
.button-txt4 {
    justify-content: flex-start;
    text-align: left;
}

/* Instagram keeps its branded hover inside the icon frame. */
#site-social-list .site-social-item.instagram-button > .instagram,
#site-social-list .site-social-item.instagram-button:hover > .instagram,
#site-social-list .site-social-item.instagram-button:focus > .instagram,
#site-social-list .site-social-item.instagram-button:focus-within > .instagram {
    overflow: hidden;
    background-clip: padding-box;
    transform: translateY(-1px) scale(1);
    filter: none;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.14);
}

@media (max-width: 680px) {
    .editor-theme-grid,
    .editor-profile-create {
        grid-template-columns: 1fr;
    }

    .editor-profile-item {
        grid-template-columns: 7px minmax(0, 1fr);
    }

    .editor-profile-actions {
        grid-column: 2;
        flex-wrap: wrap;
    }
}

/* v47: complete theming, header imagery and admin workflow refinements. */
.name-icon {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    overflow: visible;
    border-radius: 50%;
    background: transparent;
    filter: none;
    box-shadow: none;
    vertical-align: -2px;
    transform-origin: center;
}

.name-icon-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.name-icon.is-theme-verified {
    border-radius: 0;
    color: var(--accent);
    background: transparent;
    filter: drop-shadow(0 3px 5px rgba(var(--accent-rgb), 0.3));
    box-shadow: none;
}

.name-icon.is-theme-verified .name-icon-image {
    display: none;
}

.name-icon:hover,
h1:hover .name-icon {
    filter: none;
    box-shadow: 0 4px 13px rgba(var(--accent-rgb), 0.38);
}

.name-icon-preview.is-theme-verified {
    border-color: rgba(var(--accent-rgb), 0.35);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.18);
}

.name-icon-preview.is-theme-verified img {
    display: none;
}

.theme-verified-icon {
    display: none;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.is-theme-verified > .theme-verified-icon {
    display: block;
}

.verified-badge {
    fill: currentColor;
}

.verified-check {
    fill: none;
    stroke: #07140c;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.name-icon-preview .theme-verified-icon {
    width: 25px;
    height: 25px;
}

html[data-site-theme] .background.has-custom-header-image {
    background-image:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.62), rgba(7, 14, 10, 0.2)),
        var(--header-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.editor-name-settings {
    grid-template-columns: minmax(180px, 1fr) minmax(250px, 0.82fr);
    align-items: end;
}

.editor-name-display-field,
.editor-name-icon-field {
    margin-top: 0;
}

.editor-name-icon-field .editor-inline-actions {
    display: grid;
    grid-template-columns: 38px minmax(92px, 1fr) minmax(84px, auto);
    gap: 7px;
}

.editor-header-background-card {
    display: grid;
    grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.editor-header-background-preview {
    display: grid;
    min-height: 112px;
    place-items: center;
    overflow: hidden;
    border: 1px dashed rgba(var(--accent-rgb), 0.32);
    border-radius: 14px;
    color: var(--text-muted);
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.2), transparent 8rem),
        linear-gradient(135deg, var(--accent-deep), var(--accent) 58%, var(--accent-soft));
    background-position: center;
    background-size: cover;
    font-family: system-ui, sans-serif;
    font-size: 9px;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.editor-header-background-preview.has-image {
    border-style: solid;
    box-shadow: inset 0 0 0 999px rgba(var(--accent-rgb), 0.16);
}

.editor-header-background-card:hover .editor-header-background-preview {
    border-color: rgba(var(--accent-rgb), 0.58);
    transform: translateY(-1px);
}

.editor-header-background-copy {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.editor-header-background-copy strong {
    color: var(--text-main);
    font-family: 'Lalezar', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.editor-header-background-copy p {
    margin: 0;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 9px;
    line-height: 1.45;
}

html[data-site-theme] .popup-btn {
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-soft));
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.2);
}

html[data-site-theme] .popup-btn:hover {
    box-shadow: 0 11px 26px rgba(var(--accent-rgb), 0.3);
}

html[data-site-theme] .ios-popup-box {
    border-color: rgba(var(--accent-rgb), 0.68);
    box-shadow: 0 18px 48px rgba(var(--accent-rgb), 0.14);
}

html[data-site-theme] #site-social-list .site-social-item.has-submenu .dropdown a {
    border-color: rgba(var(--accent-rgb), 0.09);
    background: rgba(var(--accent-rgb), 0.045);
}

html[data-site-theme] #site-social-list .site-social-item.has-submenu .dropdown a:hover,
html[data-site-theme] #site-social-list .site-social-item.has-submenu .dropdown a:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.42);
    background: rgba(var(--accent-rgb), 0.12);
    box-shadow: 0 9px 22px rgba(var(--accent-rgb), 0.09);
}

html[data-site-theme] #site-social-list .site-social-item.has-submenu .dropdown-icons,
html[data-site-theme] #site-social-list .dynamic-dropdown-icon {
    border-color: rgba(var(--accent-rgb), 0.16);
    background-color: rgba(var(--accent-rgb), 0.11);
}

html[data-theme="light"][data-site-theme] #site-social-list .site-social-item .social-media {
    border-color: rgba(var(--accent-rgb), 0.19);
    background-color: color-mix(in srgb, var(--accent) 22%, #435149);
    box-shadow: 0 5px 14px rgba(var(--accent-rgb), 0.12);
}

html[data-theme="light"][data-site-theme] #site-social-list .site-social-item.has-submenu .dropdown a {
    border-color: rgba(var(--accent-rgb), 0.13);
    background: color-mix(in srgb, var(--accent) 7%, #ffffff);
}

html[data-theme="light"][data-site-theme] #site-social-list .site-social-item.has-submenu .dropdown a:hover,
html[data-theme="light"][data-site-theme] #site-social-list .site-social-item.has-submenu .dropdown a:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.34);
    background: color-mix(in srgb, var(--accent) 13%, #ffffff);
}

.admin-editor-nav {
    position: relative;
    top: auto;
    z-index: 60;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 8px;
    padding: 7px 8px;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: center;
    border: 1px solid var(--surface-border);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(18px);
    scrollbar-width: none;
    gap: 4px;
}

.admin-editor-nav::-webkit-scrollbar {
    display: none;
}

.admin-editor-nav button {
    min-width: 72px;
    flex: 1 1 76px;
    height: 38px;
    padding: 0 9px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
}

.admin-editor-nav button[data-editor-nav="socials"] {
    flex-basis: 108px;
}

.editor-section.is-section-entering {
    animation: editor-section-enter 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes editor-section-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.editor-theme-card:active,
.editor-profile-item:active {
    transform: scale(0.988);
}

.editor-profile-item {
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.editor-profile-item:hover {
    border-color: rgba(var(--accent-rgb), 0.26);
    background: rgba(var(--accent-rgb), 0.035);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.editor-log-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.editor-log-type {
    background: rgba(var(--accent-rgb), 0.1);
}

@media (max-width: 680px) {
    .editor-name-settings {
        grid-template-columns: minmax(130px, 1fr) minmax(190px, 0.9fr);
        gap: 8px;
    }

    .editor-name-icon-field .editor-inline-actions {
        grid-template-columns: 34px minmax(76px, 1fr);
    }

    .editor-name-icon-field .editor-icon-remove-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .editor-header-background-card {
        grid-template-columns: 1fr;
    }

    .editor-log-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .editor-section.is-section-entering {
        animation: none;
    }
}

/* v49: resilient verified icon, responsive navigation and complete accent controls. */
html[data-site-theme] .custom-terminal {
    border-color: rgba(var(--accent-rgb), 0.68);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(var(--accent-rgb), 0.12),
        0 0 34px rgba(var(--accent-rgb), 0.08);
}

html[data-site-theme] .terminal-top-bar {
    border-bottom-color: rgba(var(--accent-rgb), 0.16);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(255, 255, 255, 0.035));
}

html[data-site-theme] .terminal-title {
    color: color-mix(in srgb, var(--accent) 54%, var(--text-muted));
}

html[data-site-theme] .terminal-input {
    border-top-color: rgba(var(--accent-rgb), 0.14);
    background: rgba(var(--accent-rgb), 0.045);
    caret-color: var(--accent);
}

html[data-site-theme] .terminal-input:focus {
    background: rgba(var(--accent-rgb), 0.075);
}

html[data-site-theme] .terminal-input::selection,
html[data-site-theme] .terminal-output ::selection {
    color: var(--text-main);
    background: rgba(var(--accent-rgb), 0.34);
}

html[data-site-theme] .editor-add-button {
    border-color: rgba(var(--accent-rgb), 0.32);
    background: rgba(var(--accent-rgb), 0.1);
}

html[data-site-theme] .editor-add-button:hover {
    border-color: rgba(var(--accent-rgb), 0.56);
    background: rgba(var(--accent-rgb), 0.16);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.1);
}

html[data-site-theme] #editor-save-profile {
    border-color: rgba(var(--accent-rgb), 0.54);
    color: #07140c;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-soft));
    box-shadow: 0 9px 22px rgba(var(--accent-rgb), 0.18);
}

html[data-site-theme] #editor-save-profile:hover {
    box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.26);
}

html[data-site-theme] .admin-editor-nav button:hover {
    border-color: rgba(var(--accent-rgb), 0.34);
    color: var(--text-main);
    background: rgba(var(--accent-rgb), 0.085);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.035);
    transform: translateY(-1px);
}

html[data-site-theme] .admin-editor-nav button.active {
    border-color: rgba(var(--accent-rgb), 0.48);
    color: var(--text-main);
    background: rgba(var(--accent-rgb), 0.13);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.08);
}

[data-kind="about-link"] .editor-inline-actions {
    flex-wrap: wrap;
}

[data-kind="about-link"] .editor-mini-upload,
[data-kind="about-link"] .editor-icon-remove-button {
    box-sizing: border-box;
    width: 98px;
    min-width: 98px;
    height: 34px !important;
    min-height: 34px;
    padding: 0 10px !important;
    border-radius: 10px !important;
    justify-content: center;
}

[data-kind="about-link"] .editor-remove-button {
    min-height: 34px;
}

@media (max-width: 560px) {
    .admin-editor-nav {
        gap: 5px;
        padding: 6px;
    }

    .admin-editor-nav button,
    .admin-editor-nav button[data-editor-nav="socials"] {
        min-width: 88px;
        flex: 1 1 calc(33.333% - 5px);
    }
}

/* v51: consistent editor controls and shadow cleanup. */
html[data-site-theme] .background,
html[data-site-theme] .background2,
html[data-site-theme] .background2:hover,
html[data-theme="light"][data-site-theme] .background,
html[data-theme="light"][data-site-theme] .background2,
html[data-theme="light"][data-site-theme] .background2:hover {
    box-shadow: none !important;
}

.name-icon,
.name-icon:hover,
h1:hover .name-icon,
.name-icon.is-theme-verified,
.name-icon-preview.is-theme-verified {
    filter: none !important;
    box-shadow: none !important;
}

:is(
    .editor-add-button,
    .editor-save-button,
    .editor-reset-button,
    .editor-default-button,
    .editor-text-button,
    .editor-remove-button,
    .editor-child-remove,
    .editor-file-button,
    .editor-mini-upload,
    .editor-log-filters button,
    .editor-profile-actions button
) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1;
}

.editor-file-button,
.editor-mini-upload,
.editor-icon-remove-button {
    min-height: 36px;
}

.editor-qr-actions .editor-add-button,
.editor-qr-actions .editor-mini-upload {
    height: 36px;
    min-height: 36px;
}

.editor-name-icon-field .editor-mini-upload,
.editor-name-icon-field .editor-icon-remove-button,
.editor-header-background-copy .editor-mini-upload,
.editor-header-background-copy .editor-icon-remove-button,
.editor-custom-social-tools .editor-mini-upload,
.editor-custom-social-tools .editor-icon-remove-button,
.editor-child-icon-controls .editor-mini-upload,
.editor-child-icon-controls .editor-icon-remove-button {
    height: 36px !important;
    min-height: 36px;
}

.editor-compact-item > .editor-remove-button {
    align-self: center;
    height: 42px;
    min-height: 42px;
    padding-inline: 12px;
}

.editor-actions > .editor-reset-button,
.editor-actions > .editor-default-button,
.editor-actions > .editor-save-button {
    height: 42px;
    min-height: 42px;
}

[data-kind="about-link"] .editor-mini-upload,
[data-kind="about-link"] .editor-icon-remove-button {
    height: 36px !important;
    min-height: 36px;
}

/* v52: larger primary social remove control. */
.social-editor-item > .editor-item-head > .editor-remove-button {
    min-width: 88px;
    height: 42px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 107, 104, 0.24);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
}

.social-editor-item > .editor-item-head > .editor-remove-button:hover {
    border-color: rgba(255, 107, 104, 0.5);
    background: rgba(255, 107, 104, 0.14);
    transform: translateY(-1px);
}

/* v53: immersive, theme-aware admin sign-in experience. */
.admin-layout {
    width: min(100%, 800px);
}

.admin-panel {
    max-width: 700px;
    margin-inline: auto;
}

.admin-login-card {
    --login-danger: #ff6b68;
    position: relative;
    display: grid;
    width: 100%;
    max-width: 800px;
    min-height: 474px;
    margin-inline: auto;
    padding: 0;
    grid-template-columns: minmax(255px, 0.82fr) minmax(0, 1.18fr);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--surface-border) 76%, var(--accent) 24%);
    border-radius: 28px;
    background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.27),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    isolation: isolate;
}

.admin-login-visual {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 30px 27px 25px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #f5fff8;
    background:
        radial-gradient(circle at 50% 31%, rgba(var(--accent-rgb), 0.26), transparent 31%),
        linear-gradient(145deg, color-mix(in srgb, var(--accent-deep) 21%, #101512), #0b0e0c 72%);
}

.admin-login-visual::before {
    position: absolute;
    inset: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 35%, rgba(var(--accent-rgb), 0.035));
    content: "";
    pointer-events: none;
}

.admin-login-visual::after {
    position: absolute;
    right: -64px;
    bottom: -84px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 28px rgba(var(--accent-rgb), 0.025),
        0 0 0 64px rgba(var(--accent-rgb), 0.018);
    content: "";
}

.admin-login-grid {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
    pointer-events: none;
}

.admin-login-orbit {
    position: relative;
    display: grid;
    width: 188px;
    height: 188px;
    margin: 7px auto 0;
    place-items: center;
}

.admin-orbit-ring {
    position: absolute;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 50%;
}

.admin-orbit-ring-one {
    inset: 12px;
    border-top-color: var(--accent);
    border-right-color: rgba(var(--accent-rgb), 0.06);
    animation: admin-orbit-spin 15s linear infinite;
}

.admin-orbit-ring-one::before,
.admin-orbit-ring-two::before {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.85);
    content: "";
}

.admin-orbit-ring-one::before {
    top: 17px;
    right: 20px;
}

.admin-orbit-ring-two {
    inset: 31px;
    border-bottom-color: rgba(var(--accent-rgb), 0.8);
    transform: rotate(28deg);
    animation: admin-orbit-spin-reverse 11s linear infinite;
}

.admin-orbit-ring-two::before {
    bottom: 8px;
    left: 28px;
    width: 5px;
    height: 5px;
}

.admin-orbit-pulse {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 27px;
    background: rgba(var(--accent-rgb), 0.11);
    box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0.035);
    animation: admin-emblem-breathe 3.2s ease-in-out infinite;
}

.admin-login-emblem {
    position: relative;
    z-index: 1;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), 0.46);
    border-radius: 23px;
    color: var(--accent-soft);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.07));
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.admin-login-emblem svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-login-visual-copy,
.admin-login-visual-meta {
    position: relative;
    z-index: 1;
}

.admin-visual-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: rgba(245, 255, 248, 0.58);
    font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.15em;
}

.admin-visual-kicker span {
    width: 18px;
    height: 1px;
    background: var(--accent);
}

.admin-login-visual-copy > strong {
    display: block;
    margin: 0;
    color: #fff;
    font: 730 25px/1.12 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.035em;
}

.admin-login-visual-copy > p {
    max-width: 235px;
    margin: 10px 0 0;
    color: rgba(245, 255, 248, 0.58);
    font: 450 11px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-login-visual-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    color: rgba(245, 255, 248, 0.48);
    font: 650 8px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-login-visual-meta span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.admin-login-visual-meta i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.72);
}

.admin-login-content {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 36px 38px 26px;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0, rgba(var(--accent-rgb), 0.055), transparent 32%),
        color-mix(in srgb, var(--surface-strong) 96%, transparent);
}

.admin-login-content .admin-login-header {
    display: grid;
    margin: 0 0 29px;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    text-align: left;
}

.admin-login-content .admin-brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 15px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    box-shadow: inset 0 0 20px rgba(var(--accent-rgb), 0.035);
}

.admin-login-content .admin-brand-mark svg {
    width: 22px;
    height: 22px;
}

.admin-login-content .admin-heading-copy {
    display: block;
    width: auto;
}

.admin-login-content .admin-eyebrow {
    justify-content: flex-start;
    margin: 0 0 6px;
    color: color-mix(in srgb, var(--text-muted) 82%, var(--accent));
    font-size: 8px;
    letter-spacing: 0.15em;
}

.admin-login-content .admin-eyebrow > span {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.09);
}

.admin-login-content .admin-login-title {
    width: auto;
    margin: 0 !important;
    color: var(--text-main);
    font: 730 31px/1.06 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.045em;
    text-align: left;
}

.admin-login-content .admin-login-subtitle {
    margin: 7px 0 0;
    font-size: 11.5px;
}

.admin-login-content .admin-login-form {
    display: grid;
    gap: 16px;
}

.admin-login-content .admin-field-label {
    display: grid;
    gap: 7px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-login-content .admin-field-label > label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 720;
    line-height: 1;
}

.admin-login-content .admin-field-label > label small {
    color: var(--text-muted);
    font: 650 7.5px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-login-content .admin-input-wrap {
    height: 52px;
    overflow: visible;
    border-color: color-mix(in srgb, var(--surface-border) 92%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.24s ease,
        transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-login-content .admin-input-wrap:hover {
    border-color: color-mix(in srgb, var(--surface-border) 68%, var(--accent) 32%);
}

.admin-login-content .admin-input-wrap:focus-within {
    border-color: rgba(var(--accent-rgb), 0.7);
    background: rgba(var(--accent-rgb), 0.035);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
    transform: translateY(-1px);
}

.admin-login-content .admin-input-wrap.is-invalid {
    border-color: rgba(255, 107, 104, 0.7);
    background: rgba(255, 107, 104, 0.035);
    box-shadow: 0 0 0 4px rgba(255, 107, 104, 0.07);
}

.admin-login-content .admin-input-wrap > .admin-field-icon {
    width: 19px;
    height: 19px;
    margin: 0 0 0 15px;
    flex: 0 0 19px;
    color: color-mix(in srgb, var(--text-muted) 86%, transparent);
    stroke-width: 1.65;
}

.admin-login-content .admin-input-wrap:focus-within > .admin-field-icon,
.admin-login-content .admin-input-wrap.has-value > .admin-field-icon {
    color: var(--accent);
}

.admin-login-content .admin-input-wrap.is-invalid > .admin-field-icon {
    color: var(--login-danger);
}

.admin-login-content .admin-input-wrap input {
    padding: 0 11px;
    font-size: 12.5px;
    font-weight: 560;
}

.admin-login-content .admin-input-wrap input::placeholder {
    color: color-mix(in srgb, var(--text-muted) 58%, transparent);
}

.admin-login-content .admin-input-wrap input:-webkit-autofill {
    -webkit-text-fill-color: var(--text-main);
    transition: background-color 9999s ease-out;
    caret-color: var(--accent);
}

.admin-login-content .admin-input-wrap > .admin-field-check {
    width: 20px;
    height: 20px;
    margin: 0 12px 0 0;
    flex: 0 0 20px;
    border-radius: 50%;
    opacity: 0;
    color: #07140c;
    background: var(--accent);
    stroke-width: 2.6;
    transform: scale(0.65) rotate(-12deg);
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-login-content .admin-input-wrap.has-value:not(.is-invalid) > .admin-field-check {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.admin-login-content .admin-password-wrap > .admin-field-check {
    margin-right: 4px;
}

.admin-login-content .admin-password-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    margin-right: 5px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 10px;
}

.admin-login-content .admin-password-toggle:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.09);
}

.admin-login-content .admin-password-toggle svg {
    width: 18px;
    height: 18px;
}

.admin-caps-lock {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 5px;
    margin: -1px 0 0;
    color: #f5b942;
    font: 650 9px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-caps-lock svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-login-content .admin-login-status {
    display: flex;
    min-height: 17px;
    align-items: center;
    margin: -4px 1px -4px;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 17px;
}

.admin-login-content .admin-login-status:not(:empty)::before {
    width: 5px;
    height: 5px;
    margin-right: 7px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.admin-login-content .admin-login-status[data-state="error"] {
    color: var(--login-danger);
}

.admin-login-content .admin-login-status[data-state="success"] {
    color: var(--accent);
}

.admin-login-content .admin-login-button {
    position: relative;
    display: flex;
    width: 100%;
    height: 58px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent-soft) 48%, transparent);
    border-radius: 15px;
    color: #06120a;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent) 56%, var(--accent-soft));
    box-shadow: 0 13px 30px rgba(var(--accent-rgb), 0.2);
    cursor: pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-login-content .admin-login-button::before {
    position: absolute;
    top: -50%;
    left: -45%;
    width: 34%;
    height: 200%;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    content: "";
    transform: skewX(-18deg);
    transition: left 0.65s ease, opacity 0.2s ease;
}

.admin-login-content .admin-login-button:hover {
    filter: saturate(1.08) brightness(1.04);
    box-shadow: 0 17px 36px rgba(var(--accent-rgb), 0.28);
    transform: translateY(-2px);
}

.admin-login-content .admin-login-button:hover::before {
    left: 110%;
    opacity: 1;
}

.admin-login-button-copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 3px;
    line-height: 1;
}

.admin-login-button-copy small {
    opacity: 0.62;
    font: 750 6.5px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.14em;
}

.admin-login-button-copy strong {
    font-size: 13px;
    font-weight: 760;
    letter-spacing: -0.015em;
}

.admin-login-button-action {
    position: absolute;
    right: 8px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(7, 20, 12, 0.11);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.18);
}

.admin-login-content .admin-login-button-action svg {
    position: absolute;
    width: 18px;
    height: 18px;
    margin: 0;
}

.admin-login-content .admin-login-arrow {
    opacity: 1;
    transition: opacity 0.18s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-login-content .admin-login-button:hover .admin-login-arrow {
    transform: translateX(3px);
}

.admin-login-content .admin-login-spinner {
    opacity: 0;
    stroke-dasharray: 38 15;
    transform: rotate(-90deg) scale(0.7);
}

.admin-login-content .admin-login-button.is-submitting .admin-login-arrow {
    opacity: 0;
    transform: translateX(7px) scale(0.7);
}

.admin-login-content .admin-login-button.is-submitting .admin-login-spinner {
    opacity: 1;
    animation: admin-login-spin 0.8s linear infinite;
}

.admin-login-content .admin-login-button.is-complete .admin-login-arrow {
    opacity: 1;
    transform: rotate(-45deg) scale(1.05);
}

.admin-login-content .admin-login-button:disabled {
    opacity: 1;
    cursor: wait;
}

.admin-login-content .admin-login-foot {
    display: flex;
    margin-top: 19px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: color-mix(in srgb, var(--text-muted) 78%, transparent);
    font: 600 8px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.admin-login-content .admin-login-foot > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-login-content .admin-login-foot kbd {
    display: inline-grid;
    min-width: 30px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.14);
    font: 650 7px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.admin-session-note i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
}

html[data-theme="light"] .admin-login-card {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(25, 54, 36, 0.12);
}

html[data-theme="light"] .admin-login-content {
    background:
        radial-gradient(circle at 100% 0, rgba(var(--accent-rgb), 0.07), transparent 34%),
        rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .admin-login-content .admin-input-wrap {
    background: color-mix(in srgb, var(--accent) 2.5%, #f7faf8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .admin-login-content .admin-input-wrap:focus-within {
    background: rgba(var(--accent-rgb), 0.04);
}

html[data-theme="light"] .admin-login-content .admin-login-foot kbd {
    background: rgba(18, 54, 31, 0.035);
    box-shadow: 0 2px 0 rgba(25, 54, 36, 0.07);
}

.admin-login-card.login-error {
    animation: admin-login-shake-v53 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.admin-login-card.login-success {
    animation: admin-login-success-v53 0.74s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes admin-orbit-spin-reverse {
    from { transform: rotate(28deg); }
    to { transform: rotate(-332deg); }
}

@keyframes admin-emblem-breathe {
    0%, 100% { opacity: 0.7; transform: scale(0.94); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes admin-login-spin {
    to { transform: rotate(270deg) scale(1); }
}

@keyframes admin-login-shake-v53 {
    0%, 100% { transform: translateX(0); }
    22% { transform: translateX(-6px); }
    45% { transform: translateX(5px); }
    68% { transform: translateX(-3px); }
    84% { transform: translateX(2px); }
}

@keyframes admin-login-success-v53 {
    0%, 58% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-8px) scale(0.985); }
}

@media (max-width: 720px) {
    .admin-layout {
        width: min(100%, 470px);
    }

    .admin-login-card {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .admin-login-visual {
        min-height: 132px;
        padding: 22px;
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        align-items: center;
        gap: 16px;
    }

    .admin-login-visual::before {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .admin-login-orbit {
        width: 96px;
        height: 96px;
        margin: 0;
    }

    .admin-orbit-ring-one { inset: 2px; }
    .admin-orbit-ring-two { inset: 17px; }
    .admin-orbit-pulse { width: 58px; height: 58px; border-radius: 19px; }
    .admin-login-emblem { width: 50px; height: 50px; border-radius: 17px; }
    .admin-login-emblem svg { width: 24px; height: 24px; }

    .admin-login-visual-meta {
        display: none;
    }

    .admin-login-visual-copy > strong {
        font-size: 21px;
    }

    .admin-login-visual-copy > p {
        max-width: 290px;
        margin-top: 7px;
        font-size: 10px;
        line-height: 1.5;
    }

    .admin-login-content {
        padding: 29px 28px 24px;
    }
}

@media (max-width: 430px) {
    .admin-view {
        padding-inline: 12px;
    }

    .admin-login-card {
        border-radius: 22px;
    }

    .admin-login-visual {
        min-height: 112px;
        padding: 17px 18px;
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .admin-login-orbit {
        width: 78px;
        height: 78px;
    }

    .admin-orbit-ring-two { inset: 14px; }
    .admin-orbit-pulse { width: 50px; height: 50px; }
    .admin-login-emblem { width: 44px; height: 44px; border-radius: 15px; }
    .admin-login-emblem svg { width: 21px; height: 21px; }

    .admin-login-visual-copy > p {
        display: none;
    }

    .admin-login-content {
        padding: 25px 20px 21px;
    }

    .admin-login-content .admin-login-header {
        margin-bottom: 24px;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
    }

    .admin-login-content .admin-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .admin-login-content .admin-login-title {
        font-size: 27px;
    }

    .admin-login-content .admin-login-foot {
        justify-content: center;
    }

    .admin-session-note {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-orbit-ring,
    .admin-orbit-pulse,
    .admin-login-spinner,
    .admin-login-card.login-error,
    .admin-login-card.login-success {
        animation: none !important;
    }

    .admin-login-content .admin-login-button::before {
        display: none;
    }
}

/* v54: security editor, cursor presets and compact About spacing. */
html[data-site-theme="cobalt"] {
    --accent: #3b82f6;
    --accent-deep: #1d4ed8;
    --accent-soft: #78a9ff;
    --accent-rgb: 59, 130, 246;
}

.editor-header-background-preview > span:not([hidden]) {
    display: inline-flex;
    min-height: 28px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 9px;
    color: #fff;
    background: rgba(7, 14, 10, 0.48);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(7px);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.editor-cursor-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--surface-border);
}

.editor-cursor-section .editor-subsection-heading {
    margin: 0 0 11px;
}

.editor-cursor-section .editor-subsection-heading > div {
    display: grid;
    gap: 3px;
}

.editor-cursor-section .editor-subsection-heading small {
    color: var(--text-muted);
    font: 500 8px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.editor-cursor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.editor-cursor-card {
    display: grid;
    min-width: 0;
    min-height: 66px;
    padding: 9px 10px;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.022);
    cursor: pointer;
    text-align: left;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.editor-cursor-card:hover {
    border-color: rgba(var(--accent-rgb), 0.42);
    background: rgba(var(--accent-rgb), 0.055);
    transform: translateY(-2px);
}

.editor-cursor-card.active {
    border-color: rgba(var(--accent-rgb), 0.62);
    background: rgba(var(--accent-rgb), 0.09);
    box-shadow: 0 9px 24px rgba(var(--accent-rgb), 0.09);
}

.editor-cursor-card > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.editor-cursor-card strong {
    font: 400 13px/1 'Lalezar', sans-serif;
}

.editor-cursor-card small {
    overflow: hidden;
    color: var(--text-muted);
    font: 500 8px/1.2 system-ui, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-cursor-card > b {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    color: transparent;
    font: 700 9px/1 system-ui, sans-serif;
}

.editor-cursor-card.active > b {
    border-color: var(--accent);
    color: #07140c;
    background: var(--accent);
}

.editor-cursor-demo {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.055);
}

.editor-cursor-demo::before,
.editor-cursor-demo::after,
.editor-cursor-demo i {
    position: absolute;
    display: block;
    box-sizing: border-box;
    content: "";
}

.cursor-demo-orbit::before {
    width: 25px;
    height: 25px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.26);
}

.cursor-demo-orbit i,
.cursor-demo-diamond i,
.cursor-demo-target i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.75);
}

.cursor-demo-diamond::before {
    width: 21px;
    height: 21px;
    border: 1.5px solid var(--accent);
    border-radius: 5px;
    box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.26);
    transform: rotate(45deg);
}

.cursor-demo-target::before {
    width: 27px;
    height: 1px;
    background: var(--accent);
}

.cursor-demo-target::after {
    width: 1px;
    height: 27px;
    background: var(--accent);
}

.cursor-demo-target i {
    width: 17px;
    height: 17px;
    border: 1px solid var(--accent);
    background: transparent;
}

.cursor-demo-comet::before {
    width: 15px;
    height: 15px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
    transform: translate(5px, -5px);
}

.cursor-demo-comet::after {
    width: 21px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, var(--accent));
    transform: translate(-7px, 7px) rotate(-45deg);
}

.editor-security-card {
    padding: 15px;
    border: 1px solid color-mix(in srgb, var(--surface-border) 78%, var(--accent) 22%);
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0, rgba(var(--accent-rgb), 0.08), transparent 13rem),
        rgba(255, 255, 255, 0.02);
}

.editor-security-head {
    display: grid;
    margin-bottom: 16px;
    padding-bottom: 14px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--surface-border);
}

.editor-security-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 13px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
}

.editor-security-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.editor-security-head > div {
    display: grid;
    gap: 3px;
}

.editor-security-head strong {
    color: var(--text-main);
    font: 400 15px/1 'Lalezar', sans-serif;
}

.editor-security-head p,
.editor-security-note {
    margin: 0;
    color: var(--text-muted);
    font: 500 8.5px/1.45 system-ui, sans-serif;
}

.editor-security-fields {
    gap: 10px;
}

.editor-security-fields input {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.editor-security-actions {
    display: flex;
    margin-top: 13px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.editor-security-actions .editor-text-button,
.editor-security-actions .editor-save-button {
    display: inline-flex;
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
}

.editor-security-actions .editor-text-button {
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.03);
}

.editor-security-note {
    display: flex;
    min-height: 18px;
    margin-top: 11px;
    align-items: center;
}

.editor-security-note::before {
    width: 5px;
    height: 5px;
    margin-right: 7px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: var(--text-muted);
    content: "";
}

.editor-security-note[data-state="error"] {
    color: #ff7d79;
}

.editor-security-note[data-state="error"]::before {
    background: #ff7d79;
}

.editor-security-note[data-state="success"] {
    color: var(--accent);
}

.editor-security-note[data-state="success"]::before {
    background: var(--accent);
}

/* Compact the public About page without changing its content structure. */
.about-view-content,
.about-copy {
    line-height: 1.42;
}

.about-links {
    margin-top: 20px;
    gap: 14px;
}

.about-outro {
    margin-top: 28px;
}

/* Four lightweight cursor models; every model inherits the active site theme. */
.circle::before,
.circle::after {
    position: absolute;
    box-sizing: border-box;
    content: "";
    pointer-events: none;
}

html[data-cursor-style="orbit"] .circle {
    --circle-size: 40px;
    border: 2px solid var(--accent) !important;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.24) !important;
}

html[data-cursor-style="orbit"] .circle::before {
    inset: 5px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 50%;
}

html[data-cursor-style="diamond"] .circle {
    --circle-size: 38px;
    border-color: transparent !important;
    border-radius: 0;
    box-shadow: none !important;
}

html[data-cursor-style="diamond"] .circle::before {
    width: 27px;
    height: 27px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    box-shadow: 0 0 13px rgba(var(--accent-rgb), 0.35), inset 0 0 9px rgba(var(--accent-rgb), 0.08);
    transform: rotate(45deg);
}

html[data-cursor-style="diamond"] .circle-dot {
    width: 5px;
    height: 5px;
}

html[data-cursor-style="target"] .circle {
    --circle-size: 38px;
    border: 1px solid rgba(var(--accent-rgb), 0.72) !important;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.18) !important;
}

html[data-cursor-style="target"] .circle::before {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0 10%, var(--accent) 10% 37%, transparent 37% 63%, var(--accent) 63% 90%, transparent 90%);
}

html[data-cursor-style="target"] .circle::after {
    width: 1px;
    height: 50px;
    background: linear-gradient(transparent 0 10%, var(--accent) 10% 37%, transparent 37% 63%, var(--accent) 63% 90%, transparent 90%);
}

html[data-cursor-style="target"] .circle-dot {
    width: 4px;
    height: 4px;
}

html[data-cursor-style="comet"] .circle {
    --circle-size: 22px;
    border: 2px solid var(--accent) !important;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.42) !important;
}

html[data-cursor-style="comet"] .circle::after {
    right: 14px;
    bottom: 14px;
    width: 34px;
    height: 3px;
    border-radius: 99px;
    opacity: 0.8;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.35), var(--accent));
    filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.5));
    transform: rotate(-45deg);
    transform-origin: right center;
}

html[data-cursor-style="comet"] .circle-dot {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
}

@media (max-width: 680px) {
    .editor-cursor-grid,
    .editor-security-fields {
        grid-template-columns: 1fr;
    }

    .editor-security-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .editor-security-actions > * {
        width: 100%;
    }
}

/* v55: kinetic comet, security history and final responsive system. */
html[data-cursor-style="comet"] .circle {
    --circle-size: 22px;
    --comet-angle: -35deg;
    --comet-tail: 30px;
    --comet-tail-small: 19px;
    --comet-particle-distance: -27px;
    --comet-opacity: 0.2;
    overflow: visible;
}

html[data-cursor-style="comet"] .circle::before {
    inset: -7px;
    border: 1px solid rgba(var(--accent-rgb), 0.24);
    border-radius: 50%;
    opacity: var(--comet-opacity);
    box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.34);
    animation: comet-head-pulse 0.8s ease-in-out infinite alternate;
}

html[data-cursor-style="comet"] .circle::after {
    top: calc(50% - 1.5px);
    right: 50%;
    bottom: auto;
    left: auto;
    width: var(--comet-tail);
    height: 3px;
    border-radius: 999px 0 0 999px;
    opacity: var(--comet-opacity);
    background: repeating-linear-gradient(90deg,
        transparent 0 7px,
        rgba(var(--accent-rgb), 0.16) 9px,
        rgba(var(--accent-rgb), 0.62) 14px,
        var(--accent) 18px);
    background-size: 36px 100%;
    filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.7));
    transform: rotate(var(--comet-angle));
    transform-origin: right center;
    animation: comet-tail-stream 0.28s linear infinite;
}

html[data-cursor-style="comet"] .circle-dot::before,
html[data-cursor-style="comet"] .circle-dot::after {
    position: absolute;
    top: 50%;
    right: 50%;
    box-sizing: border-box;
    content: "";
    pointer-events: none;
}

/* Keep the third-party chat reachable without letting its 300px wake-up
   message cover the site's controls on narrow phones. */
@media (max-width: 480px) {
    iframe#goftino_w.goftino-wakeup {
        width: 80px !important;
        max-width: 80px !important;
    }
}

html[data-cursor-style="comet"] .circle-dot::before {
    width: var(--comet-tail-small);
    height: 1px;
    opacity: var(--comet-opacity);
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.85));
    filter: blur(0.4px);
    transform: rotate(var(--comet-angle)) translateY(4px);
    transform-origin: right center;
    animation: comet-tail-flicker 0.42s ease-in-out infinite alternate;
}

html[data-cursor-style="comet"] .circle-dot::after {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: var(--comet-opacity);
    background: var(--accent-soft);
    box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.8);
    transform-origin: right center;
    animation: comet-particle-flight 0.62s linear infinite;
}

@keyframes comet-tail-stream {
    from { background-position: 0 0; }
    to { background-position: 36px 0; }
}

@keyframes comet-tail-flicker {
    from { opacity: 0.1; }
    to { opacity: var(--comet-opacity); }
}

@keyframes comet-particle-flight {
    0% { opacity: 0; transform: rotate(var(--comet-angle)) translateX(-9px) translateY(-2px) scale(0.5); }
    20% { opacity: var(--comet-opacity); }
    100% { opacity: 0; transform: rotate(var(--comet-angle)) translateX(var(--comet-particle-distance)) translateY(5px) scale(1); }
}

@keyframes comet-head-pulse {
    from { transform: scale(0.88); opacity: 0.2; }
    to { transform: scale(1.08); opacity: 0.62; }
}

.editor-log-filters {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.editor-security-history-item {
    grid-template-columns: 42px minmax(0, 1fr) auto;
}

.editor-security-log-icon {
    position: relative;
    display: grid;
    box-sizing: border-box;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), 0.24);
    border-radius: 11px;
    background: rgba(var(--accent-rgb), 0.07);
}

.editor-security-log-icon::before {
    width: 12px;
    height: 14px;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    content: "";
}

.editor-security-log-icon::after {
    position: absolute;
    top: 9px;
    width: 8px;
    height: 7px;
    border: 1.5px solid var(--accent);
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    content: "";
}

.editor-security-log-icon i {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 6px;
    height: 6px;
    border: 2px solid var(--surface-strong);
    border-radius: 50%;
    background: var(--accent);
}

.editor-security-history-item[data-security-result="failed"] .editor-security-log-icon {
    border-color: rgba(255, 107, 104, 0.25);
    background: rgba(255, 107, 104, 0.07);
}

.editor-security-history-item[data-security-result="failed"] .editor-security-log-icon::before,
.editor-security-history-item[data-security-result="failed"] .editor-security-log-icon::after {
    border-color: #ff7773;
}

.editor-security-history-item[data-security-result="failed"] .editor-security-log-icon i {
    background: #ff7773;
}

.editor-security-result {
    min-width: 48px;
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    font: 750 7px/1 system-ui, sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.editor-security-history-item[data-security-result="failed"] .editor-security-result {
    color: #ff7773;
    background: rgba(255, 107, 104, 0.09);
}

/* Tighter line rhythm, with a clearer gap below the About Me heading. */
.about-view-content {
    padding-top: 18px;
}

.about-copy {
    display: grid;
    gap: 7px;
    line-height: 1.24;
}

.about-copy-line {
    display: block;
    white-space: pre-line;
}

/* Responsive foundation */
html {
    overflow-x: clip;
}

[hidden] {
    display: none !important;
}

body {
    width: min(760px, calc(100% - clamp(18px, 4vw, 40px)));
    max-width: 100%;
}

.background,
.background2,
.route-view,
.bio,
.buttons,
.admin-layout,
.admin-login-card,
.admin-panel,
.site-editor-form {
    max-width: 100%;
}

.button,
.editor-item,
.editor-nested-item,
.editor-history-item,
.editor-profile-item,
.editor-order-item,
.editor-section,
.editor-field,
.editor-field input,
.editor-field textarea,
.editor-field select {
    min-width: 0;
}

.button-txt,
.button-txt2,
.button-txt3,
.button-txt4,
.editor-history-copy,
.editor-profile-copy,
.about-copy,
.about-contact-row p {
    overflow-wrap: anywhere;
}

.custom-terminal {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
}

@media (max-width: 820px) {
    body {
        width: calc(100% - 24px);
        padding-top: 12px;
    }

    .background {
        height: 150px;
        border-radius: 24px;
    }

    .top-controls {
        top: 22px;
        left: max(20px, calc((100vw - 760px) / 2 + 18px));
    }

    .route-back {
        top: 4px;
        right: 4px;
    }

    .route-back img {
        height: 44px;
    }

    .logo-div {
        width: 116px;
        height: 116px;
        margin-top: -58px;
    }

    .background2,
    .about-view {
        margin-top: -42px;
        border-radius: 24px;
    }

    h1 {
        padding-top: 68px;
        font-size: clamp(27px, 5vw, 32px);
    }

    .buttons {
        width: calc(100% - 28px);
    }

    .admin-view {
        padding-inline: 16px;
    }

    .admin-panel {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    body {
        width: calc(100% - 16px);
        padding: 8px 0 22px;
    }

    .background {
        height: 138px;
        border-radius: 20px;
    }

    .top-controls {
        top: 17px;
        left: 17px;
        gap: 6px;
    }

    .top-control-button,
    .theme-toggle,
    .terminal-div {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .logo-div {
        width: 104px;
        height: 104px;
        margin-top: -52px;
    }

    .logo {
        border-width: 3px;
    }

    .background2,
    .about-view {
        margin-top: -36px;
        border-radius: 20px;
    }

    h1 {
        padding-top: 58px;
        font-size: clamp(25px, 7vw, 30px);
    }

    h2 {
        max-width: calc(100% - 24px);
        margin-inline: auto;
        font-size: clamp(14px, 4.2vw, 18px);
        overflow-wrap: anywhere;
    }

    #site-social-list {
        padding-inline: 12px;
        gap: 7px;
    }

    #site-social-list .site-social-item .social-media {
        width: 38px;
        height: 38px;
        padding: 8px;
    }

    .buttons {
        width: calc(100% - 16px);
        margin-top: 17px;
    }

    .button {
        height: 66px;
        grid-template-columns: 58px minmax(0, 1fr) 38px;
        border-radius: 15px;
    }

    .button-icon {
        width: 46px;
        height: 46px;
        margin-left: 6px;
    }

    .button-Chevron,
    .button-Chevrons {
        width: 28px;
    }

    .button-txt,
    .button-txt2,
    .button-txt3,
    .button-txt4 {
        min-width: 0;
        padding-inline: 5px;
        overflow: hidden;
        font-size: clamp(13px, 3.8vw, 16px);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .about-view .about-view-title {
        margin-inline: 18px;
        padding-top: 64px;
        font-size: clamp(27px, 8vw, 31px);
    }

    .about-view-content {
        margin-inline: 18px;
        padding-top: 16px;
        font-size: clamp(18px, 5.3vw, 22px);
    }

    .about-copy {
        gap: 6px;
        line-height: 1.22;
    }

    .about-links {
        gap: 11px;
        margin-top: 17px;
    }

    .about-contact-row,
    .about-contact-row a {
        max-width: 100%;
    }

    .about-contact-row p {
        padding-left: 50px;
    }

    .about-social-media {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .about-outro {
        margin-top: 22px;
    }

    .admin-view {
        padding: 82px 8px 20px;
    }

    .admin-panel {
        padding: 16px;
        border-radius: 19px;
    }

    .admin-panel-header {
        align-items: center;
        gap: 10px;
    }

    .admin-panel-title {
        font-size: 25px;
    }

    .admin-editor-nav {
        padding: 6px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-padding-inline: 6px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .admin-editor-nav button,
    .admin-editor-nav button[data-editor-nav="socials"] {
        min-width: 92px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .site-editor-form {
        padding: 15px;
        border-radius: 16px;
    }

    .site-editor-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .editor-grid.two-columns,
    .editor-name-settings,
    .editor-qr-field,
    .editor-header-background-card,
    .editor-profile-create,
    .editor-security-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-qr-field > img,
    .editor-logo-field > img {
        justify-self: center;
    }

    .editor-add-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-add-row .editor-add-button,
    .editor-profile-create .editor-add-button {
        width: 100%;
    }

    .editor-item-head {
        grid-template-columns: 28px 38px minmax(0, 1fr);
    }

    .editor-item-head > .editor-remove-button {
        width: 100%;
        grid-column: 1 / -1;
    }

    .editor-compact-item,
    .editor-compact-item:has(input[data-field="customType"]) {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .editor-compact-item > input,
    .editor-compact-item > select,
    .editor-compact-item > .editor-remove-button {
        width: 100%;
        grid-column: 1 / -1;
    }

    .editor-nested-item,
    .editor-nested-item.has-icon-editor {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-child-icon-controls {
        flex-wrap: wrap;
    }

    .editor-nested-item .editor-child-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-nested-item .editor-child-remove {
        width: 100%;
        height: 34px;
    }

    .editor-log-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-history-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-history-item,
    .editor-security-history-item,
    .editor-profile-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .editor-history-actions,
    .editor-profile-actions {
        width: 100%;
        grid-column: 1 / -1;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .editor-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-actions > button {
        width: 100%;
    }

    .editor-cursor-grid,
    .editor-theme-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .custom-terminal {
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 400px) {
    body {
        width: calc(100% - 10px);
        padding-top: 5px;
    }

    .background {
        height: 126px;
        border-radius: 17px;
    }

    .top-controls {
        top: 13px;
        left: 13px;
    }

    .route-back img {
        height: 39px;
    }

    .logo-div {
        width: 94px;
        height: 94px;
        margin-top: -47px;
    }

    .background2,
    .about-view {
        margin-top: -31px;
        border-radius: 17px;
    }

    h1 {
        padding-top: 50px;
        font-size: 24px;
    }

    #site-social-list .site-social-item .social-media {
        width: 34px;
        height: 34px;
        padding: 7px;
    }

    .button {
        height: 62px;
        grid-template-columns: 52px minmax(0, 1fr) 34px;
    }

    .button-icon {
        width: 42px;
        height: 42px;
        margin-left: 4px;
    }

    .button-txt,
    .button-txt2,
    .button-txt3,
    .button-txt4 {
        font-size: 13px;
    }

    .about-view .about-view-title {
        margin-inline: 14px;
        padding-top: 56px;
    }

    .about-view-content {
        margin-inline: 14px;
        padding-top: 14px;
        font-size: 18px;
    }

    .admin-panel {
        padding: 12px;
    }

    .site-editor-form {
        padding: 12px;
    }

    .editor-section-title {
        align-items: flex-start;
    }

    .editor-security-card,
    .editor-item,
    .editor-profile-item,
    .editor-history-item {
        padding: 11px;
    }

    .editor-security-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .editor-security-actions > * {
        width: 100%;
    }
}

/* Keep one explicit source of truth for typography. The data attribute makes the
   selected family available before individual component styles are evaluated. */
:root,
html[data-site-font="lalezar"] {
    --site-font-family: 'Lalezar', sans-serif;
}

html[data-site-font="inter"] {
    --site-font-family: 'Inter', sans-serif;
}

html[data-site-font="roboto"] {
    --site-font-family: 'Roboto', sans-serif;
}

html[data-site-font="opensans"] {
    --site-font-family: 'Open Sans', sans-serif;
}

html[data-site-font="montserrat"] {
    --site-font-family: 'Montserrat', sans-serif;
}

html[data-site-font="poppins"] {
    --site-font-family: 'Poppins', sans-serif;
}

body,
body :where(:not(.custom-terminal):not(.custom-terminal *)) {
    font-family: var(--site-font-family, 'Lalezar', sans-serif) !important;
}

.custom-terminal,
.custom-terminal * {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* v62: local typography picker. The specimen is the only expressive element;
   controls remain quiet so the letterforms do the comparison work. */
.editor-font-section {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--panel-border);
}

.editor-font-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.editor-font-card {
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 15px;
    background: var(--panel-raised);
    transition: border-color 0.24s var(--motion-smooth), transform 0.24s var(--motion-smooth), box-shadow 0.24s var(--motion-smooth);
}

.editor-font-card[data-font-key="lalezar"] {
    --font-preview-family: 'Lalezar', sans-serif;
}

.editor-font-card[data-font-key="inter"] {
    --font-preview-family: 'Inter', sans-serif;
}

.editor-font-card[data-font-key="roboto"] {
    --font-preview-family: 'Roboto', sans-serif;
}

.editor-font-card[data-font-key="opensans"] {
    --font-preview-family: 'Open Sans', sans-serif;
}

.editor-font-card[data-font-key="montserrat"] {
    --font-preview-family: 'Montserrat', sans-serif;
}

.editor-font-card[data-font-key="poppins"] {
    --font-preview-family: 'Poppins', sans-serif;
}

.editor-font-card:hover {
    border-color: rgba(var(--accent-rgb), 0.42);
    transform: translateY(-2px);
}

.editor-font-card.active {
    border-color: rgba(var(--accent-rgb), 0.75);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.editor-font-select {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 20px;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 88px;
    padding: 11px 13px;
    border: 0;
    color: var(--text-main);
    background: transparent;
    text-align: left;
}

.editor-font-select:disabled {
    cursor: default;
    opacity: 0.72;
}

.editor-font-sample {
    display: grid;
    place-items: center;
    width: 58px;
    height: 56px;
    border: 1px solid rgba(var(--accent-rgb), 0.17);
    border-radius: 12px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.07);
    font-family: var(--font-preview-family, 'Lalezar', sans-serif) !important;
    font-size: 25px;
    line-height: 1;
}

.editor-font-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.editor-font-copy strong {
    font-family: var(--font-preview-family, 'Lalezar', sans-serif) !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.15;
    white-space: normal;
}

.editor-font-copy small,
.editor-font-note {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.editor-font-check {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    color: transparent;
    background: rgba(var(--accent-rgb), 0.1);
    font-size: 11px;
}

.editor-font-card.active .editor-font-check {
    color: #07110b;
    background: var(--accent);
}

@media (max-width: 620px) {
    .editor-font-grid {
        grid-template-columns: 1fr;
    }
}

/* v59: accessibility, safe-area and resilient interaction hardening. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

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

.terminal-div,
.popup-btn {
    appearance: none;
    border: 0;
    color: inherit;
    font: inherit;
}

.terminal-div {
    display: grid;
    place-items: center;
}

.popup-btn {
    display: grid;
    padding: 0;
    place-items: center;
}

.popup-btn-txt {
    margin: 0;
    padding: 0;
}

.noscript-notice {
    box-sizing: border-box;
    width: min(760px, calc(100% - 24px));
    margin: 12px auto;
    padding: 12px 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 12px;
    color: var(--text-main);
    background: rgba(var(--accent-rgb), 0.1);
    font: 600 14px/1.45 system-ui, sans-serif;
    text-align: center;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

:where(.about-view-title, .admin-login-title):focus {
    outline: none;
}

.admin-editor-nav {
    overscroll-behavior-x: contain;
    scroll-padding-inline: 10px;
    scrollbar-width: thin;
}

.admin-editor-nav button {
    flex: 0 0 auto;
}

.terminal-btn::after {
    position: absolute;
    inset: -7px;
    content: "";
}

.terminal-top-bar {
    touch-action: none;
    user-select: none;
}

@media (max-width: 640px) {
    body {
        padding-bottom: max(22px, env(safe-area-inset-bottom));
    }

    .top-controls {
        top: max(16px, env(safe-area-inset-top));
        left: max(16px, env(safe-area-inset-left));
    }

    .site-editor-form :is(input:not([type="color"]):not([type="file"]), select, textarea),
    .admin-login-form :is(input, select, textarea),
    .terminal-input {
        font-size: 16px;
    }

    .editor-actions > button,
    .editor-add-button,
    .editor-save-button,
    .editor-default-button,
    .editor-reset-button,
    .admin-login-button,
    .admin-logout-button {
        min-height: 44px;
    }
}

@media (forced-colors: active) {
    :where(a, button, input, select, textarea, [tabindex]):focus-visible {
        outline-color: Highlight;
    }

    .name-icon,
    .theme-verified-icon,
    .editor-theme-card.active {
        forced-color-adjust: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-cursor-style="comet"] .circle::before,
    html[data-cursor-style="comet"] .circle::after,
    html[data-cursor-style="comet"] .circle-dot::before,
    html[data-cursor-style="comet"] .circle-dot::after {
        animation: none !important;
    }
}

/* v58: aligned identity, compact terminal and frame-rate independent motion. */
:root {
    --motion-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

h1 .name-icon {
    position: relative;
    top: -3px;
    vertical-align: middle;
}

.about-view-content {
    padding-top: 25px;
}

.about-copy {
    gap: 3px;
    line-height: 1.18;
}

.custom-terminal:not(.terminal-maximized) {
    width: min(398px, calc(100vw - 32px));
    height: min(282px, calc(100dvh - 32px));
}

.custom-terminal {
    transition:
        transform 0.3s var(--motion-smooth),
        opacity 0.22s ease,
        top 0.4s var(--motion-smooth),
        left 0.4s var(--motion-smooth),
        width 0.4s var(--motion-smooth),
        height 0.4s var(--motion-smooth),
        border-radius 0.34s ease;
}

.button,
.social-media,
.dropdown,
.dropdown a,
.top-control-button,
.theme-toggle,
.terminal-div,
.admin-editor-nav button,
.editor-action-button,
.editor-add-button,
.editor-remove-button,
.about-contact-row,
.logo-primary,
.logo-qr {
    transition-timing-function: var(--motion-smooth);
}

.circle,
.circle-dot,
.logo-primary,
.logo-qr {
    backface-visibility: hidden;
}

.circle,
.circle-dot {
    will-change: transform;
}

html[data-cursor-style="comet"] .circle::before {
    filter: none;
    box-shadow: 0 0 13px rgba(var(--accent-rgb), 0.26);
    animation-duration: 1.15s;
    animation-timing-function: ease-in-out;
}

html[data-cursor-style="comet"] .circle::after {
    height: 2.5px;
    opacity: var(--comet-opacity);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--accent-rgb), 0.06) 20%,
        rgba(var(--accent-rgb), 0.28) 54%,
        rgba(var(--accent-rgb), 0.78) 82%,
        var(--accent) 100%);
    background-size: 190% 100%;
    filter: none;
    box-shadow: 0 0 5px rgba(var(--accent-rgb), 0.42);
    animation: comet-tail-stream 0.62s linear infinite;
}

html[data-cursor-style="comet"] .circle-dot::before {
    filter: none;
    opacity: calc(var(--comet-opacity) * 0.72);
    animation: none;
}

html[data-cursor-style="comet"] .circle-dot::after {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px rgba(var(--accent-rgb), 0.55);
    animation-duration: 0.92s;
    animation-timing-function: linear;
}

@keyframes comet-tail-stream {
    from { background-position: 100% 0; }
    to { background-position: -90% 0; }
}

@media (max-width: 640px) {
    h1 .name-icon {
        top: -2px;
    }

    .about-view-content {
        padding-top: 21px;
    }

    .about-copy {
        gap: 3px;
        line-height: 1.17;
    }

    .custom-terminal:not(.terminal-maximized) {
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
        height: min(258px, calc(100dvh - 28px));
        max-width: none;
    }
}

@media (max-width: 400px) {
    .about-view-content {
        padding-top: 19px;
    }

    .custom-terminal:not(.terminal-maximized) {
        right: 10px;
        bottom: 10px;
        left: 10px;
        height: min(246px, calc(100dvh - 20px));
    }
}

/* v66: font rhythm, admin responsive pass, smoother cursors and portable logs. */
:root {
    --site-line-height: 1.24;
    --site-heading-line-height: 1.02;
    --site-ui-line-height: 1.28;
    --site-font-weight: 400;
    --site-ui-weight: 500;
}

html[data-site-font="lalezar"] {
    --site-line-height: 1.2;
    --site-heading-line-height: 0.98;
    --site-ui-line-height: 1.18;
    --site-font-weight: 400;
    --site-ui-weight: 400;
}

html[data-site-font="inter"],
html[data-site-font="roboto"],
html[data-site-font="opensans"] {
    --site-line-height: 1.42;
    --site-heading-line-height: 1.08;
    --site-ui-line-height: 1.32;
    --site-font-weight: 520;
    --site-ui-weight: 650;
}

html[data-site-font="montserrat"],
html[data-site-font="poppins"] {
    --site-line-height: 1.36;
    --site-heading-line-height: 1.1;
    --site-ui-line-height: 1.32;
    --site-font-weight: 500;
    --site-ui-weight: 650;
}

body,
body :where(:not(.custom-terminal):not(.custom-terminal *)) {
    letter-spacing: 0 !important;
    line-height: var(--site-line-height) !important;
    font-weight: var(--site-font-weight);
    text-rendering: geometricPrecision;
}

.bio h1,
.about-view-title,
.admin-login-title,
.admin-panel-title,
.site-editor-heading h2,
.editor-section-title h3,
.footer1,
.footer2 {
    line-height: var(--site-heading-line-height) !important;
}

.button :is(p, span),
.dropdown :is(p, span),
.about-contact-row :is(p, span),
.site-editor-form :is(button, label, input, select, textarea, small, p, strong),
.admin-login-form :is(button, label, input, small, p, strong),
.admin-editor-nav button,
.editor-log-filters button {
    line-height: var(--site-ui-line-height) !important;
    overflow-wrap: anywhere;
}

.button,
.dynamic-contact-button {
    align-content: center;
    min-height: 74px;
}

.button-txt,
.button-txt2,
.button-txt3,
.button-txt4,
.dropdown-txt,
.dropdown-txt2 {
    margin-block: 0 !important;
}

.theme-verified-icon {
    overflow: visible;
    filter: drop-shadow(0 3px 6px rgba(37, 211, 102, 0.22));
}

.verified-badge {
    fill: #25d366;
    stroke: none;
}

.verified-check {
    fill: none;
    stroke: #050505;
    stroke-width: 2.95;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.name-icon.is-theme-verified,
.name-icon-preview.is-theme-verified {
    background: transparent !important;
    box-shadow: none !important;
}

.custom-cursor-enabled .circle {
    opacity: 0;
    transform: translate3d(-80px, -80px, 0) scale(0.86);
    transition:
        opacity 0.16s ease,
        border-color 0.24s var(--motion-smooth),
        box-shadow 0.24s var(--motion-smooth);
}

.custom-cursor-visible .circle {
    opacity: 1;
}

.circle {
    contain: layout style paint;
}

.circle-dot {
    contain: layout style paint;
}

@media (pointer: coarse), (max-width: 760px) {
    * {
        cursor: auto;
    }

    .circle {
        display: none !important;
    }
}

.admin-view,
.admin-layout {
    width: min(1180px, calc(100vw - 24px));
    max-width: none;
}

.admin-panel {
    width: 100%;
    max-width: none;
}

.admin-editor-shell {
    display: grid;
    grid-template-columns: minmax(164px, 0.23fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.admin-editor-nav {
    position: sticky;
    top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    max-height: calc(100dvh - 34px);
    padding: 8px;
    overflow: auto;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.11), transparent 34%),
        rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(var(--accent-rgb), 0.13);
}

.admin-editor-nav button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    white-space: normal;
    text-align: left;
    font-weight: var(--site-ui-weight);
}

.admin-editor-nav button.active {
    transform: translateX(2px);
}

.site-editor-form {
    min-width: 0;
}

.editor-history-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.editor-log-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.editor-import-log-button {
    display: inline-grid;
    place-items: center;
}

#editor-import-log-file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.editor-log-upload-state {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 14px;
    color: var(--text-main);
    background:
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.13), transparent),
        var(--panel-raised);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.editor-log-upload-state[hidden] {
    display: none;
}

.editor-log-upload-state[data-state="success"] {
    border-color: rgba(37, 211, 102, 0.44);
}

.editor-log-upload-state[data-state="error"] {
    border-color: rgba(255, 91, 91, 0.46);
}

.editor-upload-spinner {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 18%, var(--accent) 46%, rgba(var(--accent-rgb), 0.18) 100%);
    animation: editor-upload-spin 0.82s linear infinite;
}

.editor-upload-spinner::after {
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    background: var(--panel-raised);
    content: "";
}

.editor-log-upload-state[data-state="success"] .editor-upload-spinner {
    animation: editor-upload-pop 0.45s var(--motion-smooth) both;
    background: #25d366;
}

.editor-log-upload-state[data-state="error"] .editor-upload-spinner {
    animation: none;
    background: #ff5b5b;
}

@keyframes editor-upload-spin {
    to { transform: rotate(1turn); }
}

@keyframes editor-upload-pop {
    0% { transform: scale(0.75); }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@media (max-width: 860px) {
    .admin-panel {
        width: 100%;
    }

    .admin-panel-header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .admin-logout-button {
        width: 100%;
        justify-content: center;
    }

    .admin-editor-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .admin-editor-nav {
        position: sticky;
        top: max(8px, env(safe-area-inset-top));
        z-index: 20;
        display: flex;
        max-height: none;
        padding: 7px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .admin-editor-nav button {
        flex: 0 0 auto;
        width: auto;
        min-width: clamp(90px, 28vw, 132px);
        min-height: 42px;
        justify-content: center;
        text-align: center;
        scroll-snap-align: start;
    }

    .admin-editor-nav button.active {
        transform: translateY(-1px);
    }

    .editor-history-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-log-actions {
        justify-content: stretch;
    }

    .editor-log-actions > * {
        flex: 1 1 130px;
        min-height: 42px;
    }
}

@media (max-width: 520px) {
    .admin-layout {
        width: 100%;
    }

    .admin-panel {
        width: calc(100vw - 12px);
    }

    .admin-panel-header,
    .site-editor-form {
        border-radius: 18px;
    }

    .site-editor-form {
        padding: 12px;
    }

    .editor-section-title {
        align-items: flex-start;
        gap: 10px;
    }

    .editor-section-title > span {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .editor-history-item,
    .editor-security-history-item,
    .editor-profile-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-history-previews,
    .editor-security-log-icon {
        justify-self: start;
    }
}

/* v68: final product pass. The public link hub should feel like a compact
   personal control surface, with clear tap targets and less legacy drift. */
:root {
    --accent-rgb: 37, 211, 102;
    --page-bg: #080b0a;
    --surface: rgba(15, 20, 17, 0.9);
    --surface-strong: #111714;
    --surface-border: rgba(222, 246, 232, 0.12);
    --text-main: #f5faf7;
    --text-muted: #a4b4ab;
    --panel-bg: color-mix(in srgb, var(--surface-strong) 88%, transparent);
    --panel-border: color-mix(in srgb, var(--surface-border) 78%, var(--accent) 22%);
    --panel-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] {
    --page-bg: #edf3ef;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-border: rgba(33, 56, 43, 0.12);
    --text-main: #16221b;
    --text-muted: #54675d;
    --panel-bg: rgba(255, 255, 255, 0.86);
    --panel-border: color-mix(in srgb, rgba(33, 56, 43, 0.14) 78%, var(--accent) 22%);
    --panel-shadow: 0 22px 52px rgba(29, 67, 43, 0.12);
}

body {
    background:
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.07) 1px, transparent 1px),
        linear-gradient(rgba(var(--accent-rgb), 0.05) 1px, transparent 1px),
        var(--page-bg) !important;
    background-size: 44px 44px, 44px 44px, auto;
}

.background {
    overflow: hidden;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 18px 18px 0 0;
}

.background::after {
    position: absolute;
    inset: auto 0 0;
    height: 34px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
    content: "";
    pointer-events: none;
}

.background2,
.about-view,
.admin-view {
    border: 1px solid var(--panel-border);
    border-top: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 140px),
        var(--panel-bg);
    box-shadow: var(--panel-shadow) !important;
    backdrop-filter: blur(18px);
}

.bio {
    display: grid;
    width: min(100%, 680px);
    gap: 8px;
    padding-inline: 18px;
    box-sizing: border-box;
}

.bio h1 {
    max-width: 100%;
    margin-inline: 0;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.add h2 {
    color: var(--text-muted);
    overflow-wrap: normal;
    white-space: nowrap;
}

#site-social-list {
    margin-top: 8px;
    padding: 4px 16px 2px;
}

#site-social-list .site-social-item .social-media {
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 10px;
    background-color: rgba(var(--accent-rgb), 0.1);
}

#site-social-list .site-social-item > a:focus-visible,
#site-social-list .site-social-item:focus-visible {
    border-radius: 12px;
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.buttons {
    width: min(92%, 620px);
    margin-top: 12px;
}

.buttons > a {
    display: block;
    border-radius: 10px;
}

.buttons > a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.buttons > a:focus-visible .button,
.button:hover {
    border-color: rgba(var(--accent-rgb), 0.62);
    background:
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.11), transparent 72%),
        rgba(255, 255, 255, 0.035);
    transform: translateY(-1px);
}

.button,
.dynamic-contact-button {
    min-height: 76px;
    border-radius: 8px;
    border-color: rgba(var(--accent-rgb), 0.24);
    background: rgba(255, 255, 255, 0.026);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.button-icon {
    border-radius: 8px;
}

.button-txt,
.button-txt4 {
    color: var(--text-main);
    font-size: 15px;
}

.button-txt2,
.button-txt3 {
    color: var(--text-muted);
    font-size: 13px;
}

.button-Chevron,
.button-Chevrons {
    opacity: 0.72;
    transition: transform 0.22s var(--motion-smooth), opacity 0.22s var(--motion-smooth);
}

.button:hover .button-Chevron,
.button:hover .button-Chevrons,
.buttons > a:focus-visible .button-Chevron,
.buttons > a:focus-visible .button-Chevrons {
    opacity: 1;
    transform: translateX(3px);
}

.top-controls {
    gap: 10px;
}

.terminal-div,
.theme-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: 8px;
    background: rgba(7, 12, 9, 0.68);
    backdrop-filter: blur(12px);
}

html[data-theme="light"] .terminal-div,
html[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.82);
}

.about-view .about-view-title {
    color: var(--text-main);
}

.about-view-content {
    color: var(--text-muted);
}

.about-copy {
    display: grid;
    gap: 11px;
    line-height: 1.35 !important;
}

.about-copy-line {
    display: block;
}

.about-links {
    gap: 12px;
    margin-top: 22px;
}

.about-contact-row a {
    width: 100%;
    max-width: 340px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.045);
}

.about-contact-row p {
    color: var(--text-main);
}

.about-outro {
    color: var(--text-main);
}

.footer {
    margin-top: 18px;
}

.footer-center {
    display: grid;
    gap: 2px;
}

.footer1,
.footer2 {
    margin: 0;
}

.ios-popup-box,
.admin-login-card,
.admin-panel,
.editor-section,
.editor-item,
.editor-profile-item,
.editor-history-item,
.editor-security-card {
    border-radius: 8px;
}

.custom-terminal {
    border-radius: 8px;
}

.terminal-top-bar {
    border-radius: 7px 7px 0 0;
}

.terminal-output {
    white-space: pre-wrap;
}

@media (max-width: 640px) {
    body {
        width: calc(100% - 18px);
        padding-top: 9px;
    }

    .background {
        height: 118px;
        border-radius: 14px 14px 0 0;
    }

    .logo-div {
        width: 96px;
        height: 96px;
        margin-top: -48px;
    }

    .background2,
    .about-view,
    .admin-view {
        margin-top: -34px;
    }

    .bio h1 {
        padding-top: 56px;
        font-size: 28px;
    }

    .add h2 {
        font-size: 16px;
    }

    .button,
    .dynamic-contact-button {
        min-height: 72px;
        grid-template-columns: 56px minmax(0, 1fr) 34px;
    }

    .button-icon {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 400px) {
    body {
        width: calc(100% - 10px);
    }

    .top-controls {
        top: max(12px, env(safe-area-inset-top));
        left: max(12px, env(safe-area-inset-left));
    }

    #site-social-list {
        gap: 7px;
        padding-inline: 10px;
    }

    #site-social-list .site-social-item .social-media {
        width: 34px;
        height: 34px;
        padding: 7px;
    }

    .bio h1 {
        font-size: 26px;
    }

    .add h2 {
        font-size: 15px;
    }

    .buttons {
        width: calc(100% - 20px);
    }
}

/* v69: UI/UX Pro Max pass for equal controls, brand hovers, responsive admin and smoother cursors. */
html {
    overflow-x: clip;
}

body {
    width: min(760px, calc(100% - 40px));
    max-width: 100%;
    overflow-x: clip;
    background:
        radial-gradient(circle at 14% 4%, rgba(var(--accent-rgb), 0.14), transparent 26rem),
        radial-gradient(circle at 88% 30%, rgba(var(--accent-rgb), 0.075), transparent 24rem),
        var(--page-bg) !important;
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), 0.13), transparent 24rem),
        radial-gradient(circle at 88% 28%, rgba(42, 80, 55, 0.08), transparent 24rem),
        linear-gradient(180deg, #f7fbf8 0%, var(--page-bg) 56%) !important;
}

html[data-route="admin"] body {
    width: min(1180px, calc(100% - 32px));
}

.background {
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.24), transparent 14rem),
        radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.18), transparent 16rem),
        linear-gradient(135deg, var(--accent-deep), var(--accent) 58%, var(--accent-soft));
}

html[data-theme="light"] .background {
    border-color: rgba(24, 64, 39, 0.1);
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.68), transparent 13rem),
        radial-gradient(circle at 86% 20%, rgba(var(--accent-rgb), 0.2), transparent 16rem),
        linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 44%, #ffffff), #f9fffb 42%, color-mix(in srgb, var(--accent) 24%, #eef8f1));
}

html[data-theme="light"] .background::after {
    background: linear-gradient(180deg, transparent, rgba(42, 80, 55, 0.09));
}

.top-controls {
    align-items: center;
    gap: 10px;
}

.terminal-div,
.theme-toggle {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    padding: 0 !important;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #f6fff9;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
        rgba(7, 12, 9, 0.74);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    transition:
        transform 0.24s var(--motion-smooth),
        border-color 0.24s ease,
        background-color 0.24s ease,
        box-shadow 0.24s ease;
}

.terminal-div:hover,
.theme-toggle:hover,
.terminal-div:focus-visible,
.theme-toggle:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.54);
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.2), rgba(255, 255, 255, 0.035)),
        rgba(7, 12, 9, 0.82);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.24),
        0 0 0 4px rgba(var(--accent-rgb), 0.1);
    transform: translateY(-1px);
}

.terminal-div:active,
.theme-toggle:active {
    transform: translateY(0) scale(0.96);
}

html[data-theme="light"] .terminal-div,
html[data-theme="light"] .theme-toggle {
    color: #13241b;
    border-color: rgba(24, 64, 39, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 247, 241, 0.82)),
        rgba(255, 255, 255, 0.9);
    box-shadow:
        0 12px 28px rgba(29, 67, 43, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] .terminal-div:hover,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .terminal-div:focus-visible,
html[data-theme="light"] .theme-toggle:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.45);
    background:
        linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--accent) 12%, #ffffff)),
        #ffffff;
    box-shadow:
        0 14px 30px rgba(29, 67, 43, 0.16),
        0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.theme-toggle-icon::before {
    content: none !important;
}

.theme-toggle-icon,
.theme-icon-svg {
    width: 22px;
    height: 22px;
}

.theme-icon-svg {
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition:
        opacity 0.26s var(--motion-smooth),
        transform 0.34s var(--motion-smooth);
}

.terminal {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

html[data-theme="light"] .terminal {
    filter: brightness(0) saturate(100%) invert(11%) sepia(18%) saturate(982%) hue-rotate(83deg) brightness(94%) contrast(88%);
}

#site-social-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#site-social-list .site-social-item {
    --social-hover: var(--social-brand, var(--accent));
    border-radius: 13px;
}

#site-social-list .site-social-item .social-media {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-color: color-mix(in srgb, var(--social-hover) 26%, var(--surface-border));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
        color-mix(in srgb, var(--social-hover) 11%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    object-fit: contain;
    transition:
        transform 0.25s var(--motion-smooth),
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

#site-social-list .site-social-item:is(:hover, :focus-within) .social-media {
    border-color: transparent;
    background-color: var(--social-hover);
    box-shadow:
        0 12px 24px color-mix(in srgb, var(--social-hover) 30%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    filter: brightness(0) invert(1);
    transform: translateY(-3px) scale(1.035);
}

#site-social-list .platform-snapchat:is(:hover, :focus-within) .social-media,
#site-social-list .platform-kick:is(:hover, :focus-within) .social-media {
    filter: brightness(0) saturate(100%);
}

#site-social-list .platform-x:is(:hover, :focus-within) .social-media,
#site-social-list .platform-tiktok:is(:hover, :focus-within) .social-media,
#site-social-list .platform-github:is(:hover, :focus-within) .social-media,
#site-social-list .platform-threads:is(:hover, :focus-within) .social-media {
    background-color: #111;
    filter: brightness(0) invert(1);
}

#site-social-list .platform-instagram:is(:hover, :focus-within) .social-media {
    background:
        radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%),
        radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%),
        radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%),
        radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%),
        radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent),
        linear-gradient(#6559ca, #bc318f 30%, #e33f5f 55%, #f77638 75%, #fec66d 100%);
    filter: brightness(0) invert(1);
}

.about-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 12px;
    width: min(100%, 720px);
}

.about-contact-row {
    width: 100%;
    min-width: 0;
}

.about-contact-row a {
    position: relative;
    display: grid;
    width: 100%;
    max-width: none;
    min-height: 56px;
    box-sizing: border-box;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--about-brand, var(--accent)) 22%, var(--surface-border));
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--about-brand, var(--accent)) 10%, transparent), transparent 72%),
        rgba(255, 255, 255, 0.026);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        transform 0.26s var(--motion-smooth),
        border-color 0.26s ease,
        background-color 0.26s ease,
        box-shadow 0.26s ease;
}

.about-contact-row.no-icon a {
    grid-template-columns: minmax(0, 1fr);
}

.about-social-media {
    position: static;
    width: 34px;
    height: 34px;
    padding: 7px;
    box-sizing: border-box;
    justify-self: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--about-brand, var(--accent)) 16%, transparent);
    opacity: 1;
    object-fit: contain;
    transition:
        transform 0.34s var(--motion-smooth),
        background-color 0.26s ease,
        filter 0.26s ease;
}

.about-contact-row p {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text-main);
    text-align: left;
    overflow-wrap: anywhere;
    transition:
        color 0.24s ease,
        transform 0.3s var(--motion-smooth);
}

.about-contact-row:hover a,
.about-contact-row:focus-within a {
    border-color: color-mix(in srgb, var(--about-brand, var(--accent)) 72%, transparent);
    background-color: color-mix(in srgb, var(--about-brand, var(--accent)) 18%, transparent);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--about-brand, var(--accent)) 18%, transparent);
    transform: translateY(-2px);
}

.about-contact-row:hover .about-social-media,
.about-contact-row:focus-within .about-social-media {
    background: var(--about-brand, var(--accent));
    filter: brightness(0) invert(1);
    transform: rotate(-8deg) scale(1.08);
}

.about-contact-row:hover p,
.about-contact-row:focus-within p {
    color: var(--text-main);
    transform: translateX(2px);
}

.name-icon.is-theme-verified,
.name-icon-preview.is-theme-verified {
    display: inline-grid;
    width: 24px;
    height: 24px;
    padding: 2px;
    box-sizing: border-box;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, var(--surface-strong)) 0 58%, transparent 60%),
        color-mix(in srgb, var(--accent) 10%, transparent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent) !important;
}

html[data-theme="light"] .name-icon.is-theme-verified,
html[data-theme="light"] .name-icon-preview.is-theme-verified {
    background:
        radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, #ffffff) 0 58%, transparent 60%),
        color-mix(in srgb, var(--accent) 9%, #ffffff) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent) !important;
}

.name-icon.is-theme-verified .theme-verified-icon,
.name-icon-preview.is-theme-verified .theme-verified-icon {
    display: none;
}

.name-icon-image,
.name-icon-preview img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

html[data-route="admin"] .background2,
html[data-route="admin"] .admin-view {
    width: 100%;
}

.admin-view,
.admin-layout,
.admin-panel,
.admin-login-card,
.admin-editor-shell,
.site-editor-form,
.editor-section,
.editor-item {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.admin-login-card {
    grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1fr);
}

.site-editor-form :is(input:not([type="color"]):not([type="file"]), select, textarea),
.admin-login-form :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.editor-grid,
.editor-theme-grid,
.editor-font-grid,
.editor-cursor-grid,
.editor-security-fields {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.editor-add-row,
.editor-profile-create,
.editor-name-settings,
.editor-qr-field,
.editor-logo-field,
.editor-header-background-card {
    grid-template-columns: minmax(0, 1fr);
}

.editor-inline-actions,
.editor-actions,
.editor-security-actions {
    flex-wrap: wrap;
}

.editor-actions > *,
.editor-inline-actions > *,
.editor-security-actions > * {
    min-width: min(100%, 130px);
}

.editor-repeater,
.editor-order-list,
.editor-history-list,
.editor-profile-list {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-editor-nav {
    max-width: 100%;
}

.circle {
    mix-blend-mode: normal;
    transition:
        opacity 0.16s ease,
        border-color 0.24s var(--motion-smooth),
        box-shadow 0.24s var(--motion-smooth),
        background-color 0.24s ease;
}

.circle-dot {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55);
}

html[data-cursor-style="orbit"] .circle {
    --circle-size: 42px;
    border-width: 1.5px !important;
    background:
        radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0 24%, transparent 26%),
        radial-gradient(circle, transparent 52%, rgba(var(--accent-rgb), 0.08) 54% 60%, transparent 62%);
}

html[data-cursor-style="orbit"] .circle::before {
    inset: 7px;
    border-style: dashed;
    opacity: 0.78;
    animation: cursor-orbit-spin 2.8s linear infinite;
}

html[data-cursor-style="orbit"] .circle::after {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.72);
    transform: translate(14px, -11px);
}

html[data-cursor-style="diamond"] .circle {
    --circle-size: 40px;
}

html[data-cursor-style="diamond"] .circle::before {
    width: 28px;
    height: 28px;
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), transparent 48%),
        rgba(var(--accent-rgb), 0.035);
}

html[data-cursor-style="diamond"] .circle::after {
    width: 9px;
    height: 9px;
    border: 1px solid var(--accent-soft);
    border-radius: 3px;
    transform: rotate(45deg);
}

html[data-cursor-style="target"] .circle {
    --circle-size: 42px;
    background: radial-gradient(circle, transparent 0 33%, rgba(var(--accent-rgb), 0.08) 35% 43%, transparent 45%);
}

html[data-cursor-style="target"] .circle::before,
html[data-cursor-style="target"] .circle::after {
    opacity: 0.84;
}

html[data-cursor-style="target"] .circle-dot {
    outline: 5px solid rgba(var(--accent-rgb), 0.1);
}

html[data-cursor-style="comet"] .circle {
    --circle-size: 24px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 62%);
}

html[data-cursor-style="comet"] .circle::before {
    inset: -8px;
    border-color: rgba(var(--accent-rgb), 0.3);
}

html[data-cursor-style="comet"] .circle::after {
    height: 3px;
    background:
        linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.12) 22%, rgba(var(--accent-rgb), 0.68) 70%, var(--accent-soft) 100%);
}

@keyframes cursor-orbit-spin {
    to { transform: rotate(1turn); }
}

@media (max-width: 860px) {
    html[data-route="admin"] body,
    body {
        width: calc(100% - 24px);
    }

    .admin-login-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-login-visual {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    body,
    html[data-route="admin"] body {
        width: 100%;
        padding: 8px;
    }

    .background,
    .background2,
    .about-view,
    .admin-view {
        border-radius: 14px;
    }

    .top-controls {
        top: max(14px, env(safe-area-inset-top));
        left: max(14px, env(safe-area-inset-left));
    }

    .terminal-div,
    .theme-toggle {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }

    .about-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-contact-row a {
        min-height: 54px;
    }

    .admin-panel {
        width: 100%;
    }

    .editor-section,
    .admin-panel-header,
    .site-editor-form {
        padding-inline: 12px;
    }

    .editor-actions > *,
    .editor-inline-actions > *,
    .editor-security-actions > * {
        flex: 1 1 100%;
    }
}

@media (max-width: 400px) {
    body,
    html[data-route="admin"] body {
        width: 100%;
        padding-inline: 5px;
    }

    #site-social-list .site-social-item .social-media {
        width: 38px;
        height: 38px;
        padding: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-cursor-style="orbit"] .circle::before {
        animation: none !important;
    }
}

/* v70: requested precision pass for theme color parity, hover clarity, admin previews and cursor shapes. */
:root {
    --verified-filter: none;
}

html[data-site-theme="ocean"] { --verified-filter: hue-rotate(55deg) saturate(1.18) brightness(1.06); }
html[data-site-theme="violet"] { --verified-filter: hue-rotate(116deg) saturate(1.26) brightness(1.02); }
html[data-site-theme="sunset"] { --verified-filter: hue-rotate(-154deg) saturate(1.28) brightness(1.08); }
html[data-site-theme="gold"] { --verified-filter: hue-rotate(-106deg) saturate(1.08) brightness(1.12); }
html[data-site-theme="cobalt"] { --verified-filter: hue-rotate(74deg) saturate(1.2) brightness(1.04); }

.background,
html[data-theme="light"] .background {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.24), transparent 14rem),
        radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.18), transparent 16rem),
        linear-gradient(135deg, var(--accent-deep), var(--accent) 58%, var(--accent-soft)) !important;
}

.background::after,
html[data-theme="light"] .background::after {
    display: none !important;
}

.background,
.background2,
.about-view,
.admin-view {
    box-shadow: none !important;
}

.bio {
    gap: 9px;
}

.add {
    line-height: 1;
}

.add h2 {
    margin: 0 !important;
    line-height: 1.15 !important;
}

#site-social-list {
    margin-top: 9px;
}

.theme-toggle,
html[data-theme="light"] .theme-toggle {
    color: #13241b !important;
}

html[data-theme="dark"] .theme-toggle {
    color: #f6fff9 !important;
}

.theme-toggle .theme-icon-svg {
    stroke: currentColor !important;
}

.terminal {
    filter: brightness(0) invert(1);
}

html[data-theme="light"] .terminal {
    filter: brightness(0) saturate(100%) !important;
}

html[data-route="admin"] .top-controls {
    top: 34px;
    left: max(30px, calc((100vw - 760px) / 2 + 10px));
}

#site-social-list .site-social-item:is(:hover, :focus-within) .social-media,
html[data-theme="dark"] #site-social-list .site-social-item:is(:hover, :focus-within) .social-media,
html[data-theme="light"] #site-social-list .site-social-item:is(:hover, :focus-within) .social-media {
    border-color: color-mix(in srgb, var(--social-hover) 64%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--social-hover) 24%, rgba(255, 255, 255, 0.08)), transparent),
        var(--social-hover);
    filter: none !important;
}

#site-social-list .platform-x:is(:hover, :focus-within) .social-media,
#site-social-list .platform-tiktok:is(:hover, :focus-within) .social-media,
#site-social-list .platform-github:is(:hover, :focus-within) .social-media,
#site-social-list .platform-threads:is(:hover, :focus-within) .social-media {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
        #111 !important;
}

#site-social-list .platform-instagram:is(:hover, :focus-within) .social-media {
    background:
        radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%),
        radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%),
        radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%),
        radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%),
        radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent),
        linear-gradient(#6559ca, #bc318f 30%, #e33f5f 55%, #f77638 75%, #fec66d 100%) !important;
}

.about-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.about-contact-row a {
    min-height: 60px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 11px 14px;
    border-radius: 12px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--about-brand, var(--accent)) 8%, transparent), transparent 72%),
        color-mix(in srgb, var(--surface-strong) 78%, transparent);
}

.about-social-media {
    width: 38px;
    height: 38px;
    padding: 7px;
    border: 1px solid color-mix(in srgb, var(--about-brand, var(--accent)) 28%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--about-brand, var(--accent)) 14%, var(--surface-strong));
    filter: none !important;
}

.about-contact-row:hover a,
.about-contact-row:focus-within a {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--about-brand, var(--accent)) 17%, transparent), transparent 74%),
        color-mix(in srgb, var(--surface-strong) 84%, transparent);
}

.about-contact-row:hover .about-social-media,
.about-contact-row:focus-within .about-social-media {
    background: color-mix(in srgb, var(--about-brand, var(--accent)) 22%, var(--surface-strong));
    filter: none !important;
    transform: translateY(-1px) rotate(-4deg) scale(1.06);
}

h1:hover .name-icon {
    transform: none !important;
}

.name-icon:hover {
    transform: rotate(360deg) !important;
}

.name-icon.is-theme-verified .name-icon-image,
.name-icon-preview.is-theme-verified img {
    filter: var(--verified-filter) !important;
}

.name-icon.is-theme-verified,
.name-icon-preview.is-theme-verified {
    background:
        radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, var(--surface-strong)) 0 60%, transparent 62%),
        color-mix(in srgb, var(--accent) 8%, transparent) !important;
}

.editor-name-icon-field .editor-icon-preview.name-icon-preview,
.editor-icon-preview.name-icon-preview.is-theme-verified {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 50% !important;
    overflow: hidden;
}

.editor-name-icon-field .editor-icon-preview.name-icon-preview img,
.editor-icon-preview.name-icon-preview.is-theme-verified img {
    width: 30px;
    height: 30px;
    margin: auto;
    object-fit: contain;
}

[data-kind="about-link"] .editor-icon-preview.upload-preview,
[data-kind="about-link"] .editor-icon-preview.upload-preview.is-empty,
[data-kind="custom-link"] .editor-icon-preview.upload-preview,
[data-kind="custom-link"] .editor-icon-preview.upload-preview.is-empty {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px !important;
    padding: 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px !important;
    overflow: hidden;
}

[data-kind="about-link"] .editor-icon-preview.upload-preview img,
[data-kind="custom-link"] .editor-icon-preview.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* v71: cleanup pass for flat page background, uploaded headers, tab icon polish and final control alignment. */
html,
body,
html[data-theme="light"] body,
html[data-route="home"] body {
    background: var(--page-bg) !important;
}

.background,
html[data-theme="light"] .background {
    border-radius: 18px !important;
}

.background.has-custom-header-image,
html[data-theme="light"] .background.has-custom-header-image {
    background-image:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.42), rgba(7, 14, 10, 0.1)),
        var(--header-image) !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

.background2,
.background2:hover,
.about-view,
.admin-view {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 118px),
        var(--panel-bg) !important;
}

.logo {
    outline-color: color-mix(in srgb, var(--accent) 42%, #ffffff) !important;
    box-shadow:
        0 0 0 5px rgba(var(--accent-rgb), 0.1),
        0 14px 34px rgba(var(--accent-rgb), 0.18) !important;
}

.logo:hover {
    outline-color: var(--accent) !important;
    box-shadow:
        0 0 0 6px rgba(var(--accent-rgb), 0.14),
        0 16px 38px rgba(var(--accent-rgb), 0.24) !important;
}

.name-icon.is-theme-verified,
.name-icon-preview.is-theme-verified {
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 16%, transparent) !important;
}

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .theme-toggle .theme-icon-svg {
    color: #121a15 !important;
    stroke: #121a15 !important;
}

.theme-toggle-icon,
.theme-icon-svg,
.terminal {
    width: 24px;
    height: 24px;
}

.button,
.dynamic-contact-button,
.buttons > a,
.about-contact-row a,
#site-social-list .site-social-item .social-media,
.terminal-div,
.theme-toggle {
    transition-duration: 0.34s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

#site-social-list .platform-instagram:is(:hover, :focus-within) .social-media {
    background-color: transparent !important;
    box-shadow:
        0 12px 24px rgba(225, 48, 108, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html[data-route="admin"] .top-controls {
    top: 34px;
    left: max(16px, calc((100vw - 1180px) / 2 + 16px));
}

.editor-name-settings {
    align-items: start;
}

.editor-name-icon-field .editor-inline-actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.editor-name-icon-field .editor-icon-preview.name-icon-preview,
.editor-icon-preview.name-icon-preview.is-theme-verified {
    flex: 0 0 48px !important;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--surface-border));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
        color-mix(in srgb, var(--accent) 12%, var(--surface-strong)) !important;
}

.editor-name-icon-field .editor-mini-upload,
.editor-name-icon-field .editor-icon-remove-button {
    flex: 1 1 128px;
    max-width: 180px;
}

.admin-editor-nav {
    padding-block: 9px !important;
}

.admin-editor-shell {
    gap: 14px;
}

html[data-cursor-style="diamond"] .circle-dot {
    display: block !important;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.72);
}

html[data-cursor-style="comet"] .circle::after,
html[data-cursor-style="comet"] .circle-dot::before,
html[data-cursor-style="comet"] .circle-dot::after {
    transition: opacity 0.22s ease;
}

@media (max-width: 640px) {
    .background,
    html[data-theme="light"] .background {
        border-radius: 14px !important;
    }

    html[data-route="admin"] .top-controls {
        top: max(14px, env(safe-area-inset-top));
        left: max(14px, env(safe-area-inset-left));
    }

    .editor-name-icon-field .editor-mini-upload,
    .editor-name-icon-field .editor-icon-remove-button {
        max-width: none;
    }
}

html[data-cursor-style="orbit"] .circle::after {
    display: none !important;
}

html[data-cursor-style="diamond"] .circle {
    --circle-size: 40px;
    border: 0 !important;
    background: transparent !important;
}

html[data-cursor-style="diamond"] .circle::before {
    width: 29px;
    height: 29px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    background: transparent !important;
    box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.28) !important;
    transform: rotate(45deg);
}

html[data-cursor-style="diamond"] .circle::after,
html[data-cursor-style="diamond"] .circle-dot {
    display: none !important;
}

html[data-cursor-style="target"] .circle {
    --circle-size: 42px;
    border-width: 2px !important;
}

html[data-cursor-style="target"] .circle::before {
    height: 2px;
}

html[data-cursor-style="target"] .circle::after {
    width: 2px;
}

html[data-cursor-style="comet"] .circle {
    --circle-size: 24px;
    --comet-tail: 56px;
    --comet-tail-small: 32px;
}

html[data-cursor-style="comet"] .circle::after {
    min-width: 48px;
    height: 3px;
    animation-duration: 0.78s !important;
    filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.48));
}

html[data-cursor-style="comet"] .circle-dot::before {
    min-width: 28px;
    animation-duration: 0.72s !important;
}

@media (max-width: 640px) {
    html[data-route="admin"] .top-controls {
        top: max(14px, env(safe-area-inset-top));
        left: max(14px, env(safe-area-inset-left));
    }

    .about-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* v72: hard final overrides after legacy cursor rules. */
#site-social-list .platform-instagram:is(:hover, :focus-within) .social-media {
    background-color: transparent !important;
    filter: none !important;
    box-shadow:
        0 12px 24px rgba(225, 48, 108, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html[data-cursor-style="diamond"] .circle-dot {
    display: block !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 50%;
    background: var(--accent) !important;
    box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.72) !important;
}

html[data-cursor-style="comet"] .circle {
    --comet-opacity: 0;
}

html[data-cursor-style="comet"] .circle::after,
html[data-cursor-style="comet"] .circle-dot::before,
html[data-cursor-style="comet"] .circle-dot::after {
    opacity: var(--comet-opacity) !important;
    transition: opacity 0.22s ease;
}

/* v73: remaining visual polish for social hover clipping, admin spacing and cursor tone. */
:root {
    --cursor-accent: color-mix(in srgb, var(--accent-deep, var(--accent)) 76%, #06120b 24%);
    --cursor-accent-soft: color-mix(in srgb, var(--accent, #25d366) 68%, #08120c 32%);
}

#site-social-list .site-social-item.instagram-button,
#site-social-list .platform-instagram {
    isolation: isolate;
}

#home-view > nav {
    transition: margin-bottom 0.3s var(--motion-smooth);
}

#home-view > nav:has(.instagram-button:is(:hover, :focus, :focus-within)) {
    margin-bottom: 160px;
}

#site-social-list .instagram-button > .instagram,
#site-social-list .site-social-item.instagram-button > .instagram,
#site-social-list .platform-instagram > .social-media,
#site-social-list .platform-instagram .brand-social-image {
    box-sizing: border-box;
    overflow: hidden !important;
    background-clip: padding-box !important;
    clip-path: inset(0 round 12px);
    contain: paint;
    transform: translateZ(0) !important;
}

#site-social-list .instagram-button:is(:hover, :focus, :focus-within) > .instagram,
#site-social-list .site-social-item.instagram-button:is(:hover, :focus, :focus-within) > .instagram,
#site-social-list .platform-instagram:is(:hover, :focus, :focus-within) > .social-media,
#site-social-list .platform-instagram:is(:hover, :focus, :focus-within) .brand-social-image {
    background:
        radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%),
        radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%),
        radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%),
        radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent),
        linear-gradient(#6559ca, #bc318f 30%, #e33f5f 55%, #f77638 75%, #fec66d 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    filter: none !important;
    transform: translateY(-2px) translateZ(0) !important;
}

#site-social-list .instagram-button .dropdown {
    z-index: 90 !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
        color-mix(in srgb, var(--panel-bg) 94%, #020403) !important;
    border-color: color-mix(in srgb, var(--accent) 26%, var(--surface-border)) !important;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px) saturate(1.12);
}

.terminal {
    width: 24px !important;
    height: 24px !important;
    filter:
        brightness(0) invert(1)
        drop-shadow(0.55px 0 currentColor)
        drop-shadow(-0.55px 0 currentColor)
        drop-shadow(0 0.55px currentColor)
        drop-shadow(0 -0.55px currentColor) !important;
}

html[data-theme="light"] .terminal {
    filter:
        brightness(0) saturate(100%) invert(7%) sepia(11%) saturate(1243%) hue-rotate(83deg) brightness(96%) contrast(93%)
        drop-shadow(0.55px 0 #121a15)
        drop-shadow(-0.55px 0 #121a15)
        drop-shadow(0 0.55px #121a15)
        drop-shadow(0 -0.55px #121a15) !important;
}

.button-txt {
    text-transform: capitalize;
}

.footer-center {
    gap: 8px !important;
}

.footer1,
.footer2 {
    line-height: 1.05 !important;
}

html[data-route="admin"] .top-controls {
    left: max(30px, calc((100vw - 1180px) / 2 + 30px)) !important;
}

.admin-panel-header {
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
}

.admin-editor-shell {
    margin-top: 0 !important;
}

.editor-logo-field p {
    margin-top: 10px !important;
}

.editor-name-icon-field .editor-icon-preview.name-icon-preview,
.editor-icon-preview.name-icon-preview.is-theme-verified {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
    padding: 6px !important;
}

.editor-name-icon-field .editor-icon-preview.name-icon-preview img,
.editor-icon-preview.name-icon-preview.is-theme-verified img {
    width: 26px !important;
    height: 26px !important;
}

.name-icon.is-theme-verified,
.name-icon-preview.is-theme-verified {
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 11%, transparent) !important;
}

.circle-dot {
    background: var(--cursor-accent) !important;
    box-shadow: 0 0 8px color-mix(in srgb, var(--cursor-accent) 48%, transparent) !important;
}

html[data-cursor-style="orbit"] .circle {
    border-color: var(--cursor-accent) !important;
}

html[data-cursor-style="orbit"] .circle::before {
    border-color: color-mix(in srgb, var(--cursor-accent) 44%, transparent) !important;
}

html[data-cursor-style="orbit"] .circle::after {
    background: var(--cursor-accent-soft) !important;
}

html[data-cursor-style="diamond"] .circle::before {
    border-color: var(--cursor-accent) !important;
}

html[data-cursor-style="diamond"] .circle::after,
html[data-cursor-style="diamond"] .circle-dot {
    background: var(--cursor-accent) !important;
}

html[data-cursor-style="target"] .circle {
    border-color: color-mix(in srgb, var(--cursor-accent) 78%, transparent) !important;
}

html[data-cursor-style="target"] .circle::before {
    background: linear-gradient(90deg, transparent 0 10%, var(--cursor-accent) 10% 37%, transparent 37% 63%, var(--cursor-accent) 63% 90%, transparent 90%) !important;
}

html[data-cursor-style="target"] .circle::after {
    background: linear-gradient(transparent 0 10%, var(--cursor-accent) 10% 37%, transparent 37% 63%, var(--cursor-accent) 63% 90%, transparent 90%) !important;
}

html[data-cursor-style="comet"] .circle {
    border-color: var(--cursor-accent) !important;
}

html[data-cursor-style="comet"] .circle::after {
    min-width: 58px !important;
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--cursor-accent) 14%, transparent) 24%,
        color-mix(in srgb, var(--cursor-accent) 62%, transparent) 72%,
        var(--cursor-accent-soft) 100%) !important;
    box-shadow: 0 0 4px color-mix(in srgb, var(--cursor-accent) 26%, transparent) !important;
}

@media (max-width: 640px) {
    html[data-route="admin"] .top-controls {
        left: max(18px, env(safe-area-inset-left)) !important;
    }

    .admin-panel-header {
        margin-bottom: 20px !important;
    }

    .editor-name-icon-field .editor-icon-preview.name-icon-preview,
    .editor-icon-preview.name-icon-preview.is-theme-verified {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        flex-basis: 40px !important;
    }
}

/* v74: profile picker flow and final social/terminal corrections. */
#home-view > nav,
#home-view > nav:has(.instagram-button:is(:hover, :focus, :focus-within)) {
    margin-bottom: 0 !important;
}

#site-social-list .site-social-item {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

#site-social-list .site-social-item .social-media,
#site-social-list .instagram-button > .instagram,
#site-social-list .platform-instagram > .social-media,
#site-social-list .platform-instagram .brand-social-image {
    width: 42px !important;
    height: 42px !important;
    padding: 9px !important;
    border: 1px solid rgba(var(--accent-rgb), 0.18) !important;
    border-radius: 10px !important;
    object-fit: contain !important;
    clip-path: inset(0 round 10px) !important;
}

#site-social-list .instagram-button .dropdown {
    top: 54px !important;
    left: 50% !important;
    z-index: 120 !important;
    transform: translate(-50%, 8px) scale(0.96) !important;
    transform-origin: top center !important;
}

#site-social-list .instagram-button:hover .dropdown,
#site-social-list .instagram-button:focus .dropdown,
#site-social-list .instagram-button:focus-within .dropdown,
#site-social-list .site-social-item.has-submenu:hover .dropdown,
#site-social-list .site-social-item.has-submenu:focus .dropdown,
#site-social-list .site-social-item.has-submenu:focus-within .dropdown {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) scale(1) !important;
}

#site-social-list .instagram-button::after,
#site-social-list .site-social-item.has-submenu::after {
    left: 50% !important;
    width: 210px !important;
    height: 18px !important;
    transform: translateX(-50%) !important;
}

.terminal {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain !important;
    transform: none !important;
    filter: brightness(0) invert(1) !important;
}

html[data-theme="light"] .terminal {
    filter: brightness(0) saturate(100%) invert(7%) sepia(11%) saturate(1243%) hue-rotate(83deg) brightness(96%) contrast(93%) !important;
}

.editor-name-icon-field .editor-icon-preview.name-icon-preview img,
.editor-icon-preview.name-icon-preview.is-theme-verified img {
    width: 31px !important;
    height: 31px !important;
}

.admin-profile-gate {
    width: min(100%, 920px);
    padding: 26px;
    border: 1px solid var(--panel-border, var(--surface-border));
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 36%),
        var(--panel-bg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
    animation: admin-panel-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.admin-profile-gate-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--surface-border);
}

.admin-profile-gate-head p {
    margin: 0;
    color: var(--text-muted);
}

.admin-profile-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 16px;
}

.admin-profile-card {
    min-height: 146px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--surface-border));
    border-radius: 16px;
    color: var(--text-main);
    background:
        radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 58%),
        color-mix(in srgb, var(--surface-strong) 82%, transparent);
    cursor: pointer;
    transition:
        transform 0.28s var(--motion-smooth),
        border-color 0.28s ease,
        background-color 0.28s ease,
        box-shadow 0.28s ease;
}

.admin-profile-card:hover,
.admin-profile-card:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 54%, var(--surface-border));
    box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 14%, transparent);
    transform: translateY(-4px);
}

.admin-profile-avatar {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--accent) 36%, #ffffff);
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
}

.admin-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-profile-avatar b {
    font: 700 34px/1 system-ui, sans-serif;
    color: var(--accent);
}

.admin-profile-name {
    max-width: 100%;
    overflow: hidden;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-profile-card small {
    min-height: 16px;
    opacity: 0;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    transform: translateY(-4px);
    transition: opacity 0.22s ease, transform 0.22s var(--motion-smooth);
}

.admin-profile-card:hover small,
.admin-profile-card:focus-visible small {
    opacity: 1;
    transform: translateY(0);
}

.admin-profile-create {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--surface-border));
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
}

.admin-profile-create[hidden] {
    display: none !important;
}

.admin-profile-create strong,
.admin-profile-create small {
    display: block;
}

.admin-profile-create small,
.admin-profile-status {
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
}

.admin-profile-status {
    min-height: 18px;
    margin: 0;
    font-size: 12px;
}

.admin-profile-status[data-state="error"] { color: #ff7a7a; }
.admin-profile-status[data-state="success"] { color: var(--accent); }

.admin-profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 640px) {
    .admin-profile-gate {
        padding: 18px;
        border-radius: 18px;
    }

    .admin-profile-gate-head {
        display: grid;
    }

    .admin-profile-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .admin-profile-card {
        min-height: 132px;
        padding-inline: 10px;
    }

    .admin-profile-avatar {
        width: 58px;
        height: 58px;
    }
}

/* v75: stronger Instagram popup, compact profile gate and independent profile avatars. */
#home-view > nav {
    position: relative;
    z-index: 60;
}

#home-view .buttons {
    position: relative;
    z-index: 5;
}

#site-social-list,
#site-social-list .instagram-button,
#site-social-list .site-social-item.has-submenu {
    position: relative;
    z-index: 70;
}

#site-social-list .instagram-button .dropdown,
#site-social-list .site-social-item.has-submenu .dropdown {
    top: 52px !important;
    z-index: 250 !important;
    opacity: 0 !important;
    color: #f7fff9 !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
        color-mix(in srgb, var(--panel-bg) 82%, #07110b 18%) !important;
    border: 1px solid color-mix(in srgb, var(--accent) 48%, rgba(255, 255, 255, 0.08)) !important;
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.045) inset,
        0 0 26px color-mix(in srgb, var(--accent) 14%, transparent) !important;
    backdrop-filter: none !important;
    transition:
        opacity 0.16s ease,
        visibility 0.16s ease,
        transform 0.2s var(--motion-smooth) !important;
}

#site-social-list .instagram-button:hover .dropdown,
#site-social-list .instagram-button:focus .dropdown,
#site-social-list .instagram-button:focus-within .dropdown,
#site-social-list .instagram-button:has(.dropdown:hover) .dropdown,
#site-social-list .site-social-item.has-submenu[aria-expanded="true"] .dropdown,
#site-social-list .site-social-item.has-submenu:hover .dropdown,
#site-social-list .site-social-item.has-submenu:focus .dropdown,
#site-social-list .site-social-item.has-submenu:focus-within .dropdown,
#site-social-list .site-social-item.has-submenu:has(.dropdown:hover) .dropdown {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#site-social-list .instagram-button .dropdown a,
#site-social-list .site-social-item.has-submenu .dropdown a {
    opacity: 1 !important;
    color: #f7fff9 !important;
    background: rgba(255, 255, 255, 0.045) !important;
}

#site-social-list .instagram-button .dropdown a:hover,
#site-social-list .instagram-button .dropdown a:focus-visible,
#site-social-list .site-social-item.has-submenu .dropdown a:hover,
#site-social-list .site-social-item.has-submenu .dropdown a:focus-visible {
    background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.055)) !important;
}

.terminal {
    width: 29px !important;
    height: 29px !important;
}

.editor-name-icon-field .editor-icon-preview.name-icon-preview,
.editor-icon-preview.name-icon-preview.is-theme-verified {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-basis: 38px !important;
    padding: 2px !important;
}

.editor-name-icon-field .editor-icon-preview.name-icon-preview img,
.editor-icon-preview.name-icon-preview.is-theme-verified img {
    width: 34px !important;
    height: 34px !important;
}

.admin-layout:has(.admin-profile-gate:not([hidden])) {
    width: min(100%, 1120px) !important;
}

.admin-profile-gate {
    box-sizing: border-box;
    width: min(100%, 1080px) !important;
    padding: 22px !important;
    border-radius: 18px !important;
}

.admin-profile-gate-head {
    align-items: center !important;
    padding-bottom: 18px !important;
    margin-bottom: 18px !important;
}

.admin-profile-gate-head > div {
    display: grid;
    justify-items: start;
    text-align: left;
}

.admin-profile-gate .admin-panel-title {
    margin: 5px 0 !important;
    text-align: left !important;
}

.admin-profile-picker {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important;
    gap: 12px !important;
}

.admin-profile-card {
    min-height: 118px !important;
    gap: 7px !important;
    padding: 12px 10px !important;
    border-radius: 13px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
        color-mix(in srgb, var(--surface-strong) 88%, transparent) !important;
    box-shadow: none !important;
}

.admin-profile-card:hover,
.admin-profile-card:focus-visible {
    box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 11%, transparent) !important;
    transform: translateY(-2px) !important;
}

.admin-profile-avatar,
.admin-profile-avatar-preview {
    width: 54px !important;
    height: 54px !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.08), transparent 62%),
        color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
}

.admin-profile-avatar {
    border-width: 1px !important;
}

.admin-profile-avatar img,
.admin-profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-profile-default-icon {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: color-mix(in srgb, var(--text-muted) 82%, var(--accent));
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-profile-add .admin-profile-avatar b {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: ui-sans-serif, system-ui, sans-serif !important;
    font-size: 32px !important;
    line-height: 1 !important;
    transform: translateY(-1px);
}

.admin-profile-avatar-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--surface-border) 82%, var(--accent) 18%);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
}

.admin-profile-avatar-field small {
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    font-size: 11px;
}

.admin-profile-create {
    padding: 15px !important;
    border-radius: 14px !important;
}

@media (max-width: 760px) {
    .admin-layout:has(.admin-profile-gate:not([hidden])) {
        width: 100% !important;
    }

    .admin-profile-gate {
        width: 100% !important;
        padding: 16px !important;
    }

    .admin-profile-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .admin-profile-card {
        min-height: 112px !important;
    }

    .admin-profile-gate-head {
        align-items: start !important;
    }
}

@media (max-width: 420px) {
    .admin-profile-picker {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .admin-profile-avatar-field {
        display: grid;
        justify-items: start;
    }
}

/* v76: balanced profile gate spacing, owner profile switch and required-field cues. */
html[data-route="admin"] .admin-view:has(.admin-profile-gate:not([hidden])) {
    box-sizing: border-box;
    display: grid !important;
    place-items: center !important;
    padding-block: clamp(18px, 3vw, 34px) !important;
    padding-inline: clamp(14px, 3vw, 34px) !important;
}

html[data-route="admin"] .admin-layout:has(.admin-profile-gate:not([hidden])) {
    box-sizing: border-box;
    width: min(100%, 1080px) !important;
    max-width: 1080px !important;
    margin-inline: auto !important;
    padding: 0 !important;
}

.admin-profile-gate {
    width: 100% !important;
    margin: 0 auto !important;
    padding: clamp(18px, 2.4vw, 28px) !important;
}

.admin-profile-gate-head {
    padding-bottom: 22px !important;
    margin-bottom: 24px !important;
}

.admin-profile-gate .admin-panel-title {
    margin: 7px 0 10px !important;
}

.admin-profile-gate-head p {
    margin-top: 0 !important;
}

.admin-profile-picker {
    margin-top: 0 !important;
}

.admin-panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-profile-switch-button {
    border-color: color-mix(in srgb, var(--accent) 36%, var(--surface-border)) !important;
    color: var(--text-main) !important;
}

.editor-field.is-required > span::after {
    content: " *";
    color: var(--accent);
}

.editor-name-icon-field .editor-icon-preview.name-icon-preview,
.editor-icon-preview.name-icon-preview.is-theme-verified {
    padding: 1px !important;
}

.editor-name-icon-field .editor-icon-preview.name-icon-preview img,
.editor-icon-preview.name-icon-preview.is-theme-verified img {
    width: 36px !important;
    height: 36px !important;
}

.admin-profile-add .admin-profile-avatar b {
    align-items: center !important;
    justify-items: center !important;
    transform: translateY(-3px) !important;
}

@media (max-width: 760px) {
    html[data-route="admin"] .admin-view:has(.admin-profile-gate:not([hidden])) {
        padding-block: 14px !important;
        padding-inline: 14px !important;
    }

    .admin-profile-gate {
        padding: 16px !important;
    }

    .admin-profile-gate-head {
        padding-bottom: 22px !important;
        margin-bottom: 22px !important;
    }

    .admin-panel-actions {
        width: 100%;
    }

    .admin-panel-actions .admin-logout-button {
        flex: 1 1 132px;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    html[data-route="admin"] .admin-view:has(.admin-profile-gate:not([hidden])) {
        padding-inline: 10px !important;
    }

    .admin-profile-gate {
        padding: 14px !important;
    }
}

/* v77: account isolation, exact add-profile centering and calmer terminal controls. */
.theme-toggle .theme-icon-svg {
    stroke-width: 1.55 !important;
}

.terminal {
    width: 30px !important;
    height: 30px !important;
}

html[data-site-theme] .custom-terminal,
.custom-terminal {
    border-color: color-mix(in srgb, var(--surface-border) 72%, rgba(255, 255, 255, 0.12)) !important;
}

html[data-site-theme] .terminal-top-bar,
.terminal-top-bar {
    border-bottom-color: color-mix(in srgb, var(--surface-border) 82%, transparent) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
        color-mix(in srgb, var(--surface-strong) 86%, #050807 14%) !important;
}

html[data-site-theme] .terminal-input,
.terminal-input {
    border-top-color: color-mix(in srgb, var(--surface-border) 86%, transparent) !important;
    background: color-mix(in srgb, var(--surface-strong) 82%, transparent) !important;
}

html[data-site-theme] .terminal-input:focus,
.terminal-input:focus {
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent) !important;
    box-shadow: none !important;
    outline: none !important;
}

.admin-profile-add .admin-profile-avatar b {
    position: relative !important;
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transform: none !important;
}

.admin-profile-add .admin-profile-avatar b::before,
.admin-profile-add .admin-profile-avatar b::after {
    content: "" !important;
    position: absolute !important;
    inset: 50% auto auto 50% !important;
    width: 22px !important;
    height: 2.5px !important;
    border-radius: 999px !important;
    background: var(--accent) !important;
    transform: translate(-50%, -50%) !important;
}

.admin-profile-add .admin-profile-avatar b::after {
    width: 2.5px !important;
    height: 22px !important;
}

.admin-profile-switch-button,
.admin-panel-actions .admin-profile-switch-button {
    border-color: color-mix(in srgb, var(--surface-border) 78%, #a8b4ad 22%) !important;
    color: var(--text-main) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
        color-mix(in srgb, var(--surface-strong) 84%, transparent) !important;
}

.admin-profile-switch-button:hover,
.admin-profile-switch-button:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 32%, var(--surface-border)) !important;
    color: var(--text-main) !important;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, rgba(255, 255, 255, 0.05)), transparent),
        color-mix(in srgb, var(--surface-strong) 90%, transparent) !important;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 8%, transparent) !important;
}

/* v78: cleaner security access, empty selects and minimal verification controls. */
.editor-add-row select:required:invalid,
#editor-social-platform:invalid {
    color: var(--text-muted) !important;
}

.editor-name-icon-field .editor-inline-actions.compact {
    align-items: center !important;
}

.editor-icon-preview.name-icon-preview.is-empty {
    position: relative !important;
    color: color-mix(in srgb, var(--text-muted) 68%, var(--accent)) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
        color-mix(in srgb, var(--surface-strong) 88%, transparent) !important;
    border: 1px dashed color-mix(in srgb, var(--accent) 26%, var(--surface-border)) !important;
    box-shadow: none !important;
}

.editor-icon-preview.name-icon-preview.is-empty::before {
    content: "" !important;
    width: 19px !important;
    height: 19px !important;
    border: 1.8px solid currentColor !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 50% 38%, currentColor 0 2.8px, transparent 3px),
        radial-gradient(ellipse at 50% 84%, currentColor 0 7px, transparent 7.5px) !important;
    opacity: 0.72 !important;
}

.editor-verified-preset-button {
    gap: 6px !important;
    border-color: color-mix(in srgb, var(--accent) 34%, var(--surface-border)) !important;
    color: var(--text-main) !important;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong)) !important;
}

.editor-verified-preset-button svg {
    width: 16px !important;
    height: 16px !important;
    fill: none !important;
    stroke: var(--accent) !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.editor-verified-preset-button:hover,
.editor-verified-preset-button:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 58%, var(--surface-border)) !important;
    background: color-mix(in srgb, var(--accent) 16%, var(--surface-strong)) !important;
    transform: translateY(-1px);
}

.theme-verified-icon {
    padding: 2px !important;
}

.verified-badge {
    fill: currentColor !important;
}

.verified-check {
    stroke: color-mix(in srgb, var(--page-bg) 78%, #ffffff) !important;
    stroke-width: 2.05 !important;
}

.editor-theme-check {
    width: 18px !important;
    height: 18px !important;
    border-width: 1.2px !important;
    font-size: 0 !important;
}

.editor-theme-card.active .editor-theme-check::before {
    content: "" !important;
    width: 7px !important;
    height: 4px !important;
    border: solid #fff !important;
    border-width: 0 0 1.7px 1.7px !important;
    transform: rotate(-45deg) translate(0, -1px) !important;
}

.admin-profile-switch-button,
.admin-panel-actions .admin-profile-switch-button {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--surface-border)) !important;
    color: #06140b !important;
    background: var(--accent) !important;
    box-shadow: none !important;
}

.admin-profile-switch-button:hover,
.admin-profile-switch-button:focus-visible {
    border-color: color-mix(in srgb, var(--accent-deep) 72%, var(--accent)) !important;
    color: #06140b !important;
    background: color-mix(in srgb, var(--accent-deep) 78%, var(--accent) 22%) !important;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 14%, transparent) !important;
}

.admin-profile-switch-button svg {
    stroke: currentColor !important;
}

.editor-security-fields .editor-field[hidden] {
    display: none !important;
}

.editor-security-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 780px) {
    .editor-security-fields {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* v79: smooth theme transitions, steadier custom cursor and selector/button polish. */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none !important;
    mix-blend-mode: normal !important;
}

html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning .background,
html.theme-transitioning .background::before,
html.theme-transitioning .background::after,
html.theme-transitioning .background2,
html.theme-transitioning .home-view,
html.theme-transitioning .about-view,
html.theme-transitioning .admin-view,
html.theme-transitioning .admin-login-card,
html.theme-transitioning .admin-panel,
html.theme-transitioning .admin-profile-gate,
html.theme-transitioning .editor-section,
html.theme-transitioning .editor-item,
html.theme-transitioning .button,
html.theme-transitioning .dynamic-contact-button,
html.theme-transitioning .theme-toggle,
html.theme-transitioning .terminal-div,
html.theme-transitioning #site-social-list .social-media {
    transition:
        background-color 280ms var(--motion-smooth),
        background 280ms var(--motion-smooth),
        color 240ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease,
        filter 240ms ease !important;
}

html.theme-transitioning::before,
html.theme-transitioning::after,
html.theme-transitioning body::before,
html.theme-transitioning body::after {
    background-color: transparent !important;
}

.theme-toggle .theme-icon-svg {
    stroke-width: 1.38 !important;
}

.terminal {
    width: 31px !important;
    height: 31px !important;
}

html[data-route="admin"] .top-controls {
    left: max(26px, calc((100vw - 1180px) / 2 + 26px)) !important;
}

#site-social-list .instagram-button .dropdown,
#site-social-list .site-social-item.has-submenu .dropdown {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: translate(-50%, 10px) scale(0.94) !important;
    transform-origin: 50% 0 !important;
    transition:
        opacity 220ms ease,
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 220ms !important;
    will-change: opacity, transform;
}

#site-social-list .instagram-button:hover .dropdown,
#site-social-list .instagram-button:focus .dropdown,
#site-social-list .instagram-button:focus-within .dropdown,
#site-social-list .instagram-button:has(.dropdown:hover) .dropdown,
#site-social-list .site-social-item.has-submenu[aria-expanded="true"] .dropdown,
#site-social-list .site-social-item.has-submenu:hover .dropdown,
#site-social-list .site-social-item.has-submenu:focus .dropdown,
#site-social-list .site-social-item.has-submenu:focus-within .dropdown,
#site-social-list .site-social-item.has-submenu:has(.dropdown:hover) .dropdown {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: translate(-50%, 0) scale(1) !important;
    transition-delay: 0s !important;
}

#site-social-list .platform-instagram:is(:hover, :focus-within) .social-media,
#site-social-list .instagram-button:is(:hover, :focus-within) > .instagram {
    overflow: hidden !important;
    background-clip: padding-box !important;
    filter: none !important;
    clip-path: inset(0 round 12px) !important;
}

#site-social-list .site-social-item.has-submenu:not(.instagram-button) .dropdown {
    transform: translateY(10px) scale(0.94) !important;
    transform-origin: top left !important;
}

#site-social-list .site-social-item.has-submenu:not(.instagram-button)[aria-expanded="true"] .dropdown,
#site-social-list .site-social-item.has-submenu:not(.instagram-button):hover .dropdown,
#site-social-list .site-social-item.has-submenu:not(.instagram-button):focus .dropdown,
#site-social-list .site-social-item.has-submenu:not(.instagram-button):focus-within .dropdown,
#site-social-list .site-social-item.has-submenu:not(.instagram-button):has(.dropdown:hover) .dropdown {
    transform: translateY(0) scale(1) !important;
}

.editor-compact-item select:required:invalid,
.editor-add-row select:required:invalid {
    color: var(--text-muted) !important;
}

.editor-compact-item.has-invalid-email input[data-field="value"],
.editor-compact-item input[data-field="value"][type="email"][aria-invalid="true"] {
    border-color: rgba(255, 107, 104, 0.82) !important;
    background: rgba(255, 107, 104, 0.075) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 104, 0.12) !important;
}

[data-kind="custom-link"] .editor-inline-actions > .editor-remove-button,
.editor-compact-item > .editor-remove-button {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 11px !important;
    display: inline-grid !important;
    place-items: center !important;
    align-self: center !important;
}

.editor-icon-preview.name-icon-preview {
    display: inline-grid !important;
    place-items: center !important;
    overflow: hidden !important;
}

.editor-icon-preview.name-icon-preview.is-empty {
    cursor: inherit !important;
    border-style: solid !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent),
        color-mix(in srgb, var(--accent) 8%, var(--surface-strong)) !important;
}

.editor-icon-preview.name-icon-preview.is-empty::before {
    width: 21px !important;
    height: 21px !important;
    opacity: 0.82 !important;
}

html.custom-cursor-enabled,
html.custom-cursor-enabled *,
html.custom-cursor-enabled *::before,
html.custom-cursor-enabled *::after {
    cursor: none !important;
}

@media (pointer: coarse), (max-width: 760px) {
    html.custom-cursor-enabled,
    html.custom-cursor-enabled *,
    html.custom-cursor-enabled *::before,
    html.custom-cursor-enabled *::after {
        cursor: auto !important;
    }

    html[data-route="admin"] .top-controls {
        left: max(16px, env(safe-area-inset-left)) !important;
    }
}

/* v80: aligned admin login controls, inline security eyes and cleaner identity actions. */
html[data-route="admin"] .top-controls {
    left: max(18px, calc((100vw - 1180px) / 2 + 18px)) !important;
}

html[data-route="admin"] .admin-login-card:not([hidden]) ~ .top-controls,
html[data-route="admin"]:has([data-admin-login]:not([hidden])) .top-controls {
    left: max(18px, calc((100vw - 1180px) / 2 + 18px)) !important;
}

.editor-verified-preset-button {
    display: inline-flex !important;
    flex: 1 1 128px !important;
    max-width: 180px !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 12px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border: 1px solid rgba(37, 211, 102, 0.3) !important;
    border-radius: 10px !important;
    color: var(--text-main) !important;
    background: rgba(37, 211, 102, 0.09) !important;
    box-shadow: none !important;
    font-family: 'Lalezar', sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.editor-verified-preset-button svg {
    width: 16px !important;
    height: 16px !important;
    stroke: var(--accent) !important;
    stroke-width: 1.75 !important;
}

.editor-verified-preset-button:hover,
.editor-verified-preset-button:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.52) !important;
    color: var(--text-main) !important;
    background: rgba(var(--accent-rgb), 0.14) !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

.editor-profile-create.editor-profile-create-compact {
    display: flex !important;
    justify-content: flex-end !important;
}

.editor-profile-create.editor-profile-create-compact .editor-add-button {
    min-width: 178px;
}

.editor-password-wrap {
    position: relative;
    display: grid !important;
    align-items: center;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: normal !important;
}

.editor-password-wrap input {
    padding-right: 45px !important;
}

.editor-password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    width: 34px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: var(--text-muted);
    background: transparent;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    transform: translateY(-50%);
}

.editor-password-toggle:hover,
.editor-password-toggle:focus-visible {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.editor-password-toggle:active {
    transform: translateY(-50%) scale(0.92);
}

.editor-password-toggle svg {
    position: absolute;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.editor-eye-show {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.editor-eye-hide {
    opacity: 0;
    transform: rotate(-35deg) scale(0.72);
}

.editor-password-toggle[aria-pressed="true"] .editor-eye-show {
    opacity: 0;
    transform: rotate(35deg) scale(0.72);
}

.editor-password-toggle[aria-pressed="true"] .editor-eye-hide {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.editor-security-actions {
    justify-content: flex-end !important;
}

.editor-icon-preview.name-icon-preview.is-empty {
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--surface-border)) !important;
    color: color-mix(in srgb, var(--accent) 72%, var(--text-muted)) !important;
    background:
        radial-gradient(circle at 50% 18%, rgba(var(--accent-rgb), 0.13), transparent 56%),
        color-mix(in srgb, var(--surface-strong) 88%, var(--accent) 12%) !important;
}

.editor-icon-preview.name-icon-preview.is-empty::before {
    content: "" !important;
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    border: 1.8px solid currentColor !important;
    border-radius: 9px !important;
    opacity: 0.86 !important;
    background:
        linear-gradient(currentColor, currentColor) 50% 48% / 10px 1.8px no-repeat,
        linear-gradient(currentColor, currentColor) 50% 48% / 1.8px 10px no-repeat,
        radial-gradient(circle at 50% 50%, transparent 0 8px, color-mix(in srgb, currentColor 20%, transparent) 8.5px 9px, transparent 9.5px) !important;
}

.editor-icon-preview.name-icon-preview.is-empty img,
.editor-icon-preview.name-icon-preview.is-empty .theme-verified-icon {
    display: none !important;
}

@media (max-width: 760px) {
    html[data-route="admin"] .top-controls,
    html[data-route="admin"]:has([data-admin-login]:not([hidden])) .top-controls {
        left: max(14px, env(safe-area-inset-left)) !important;
    }
}
