* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    background: #080810;
    color: #f5f5ff;
    font-family: "Courier New", monospace;
}

body.profile-page-body {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    background: #000;
    cursor: default;
}

body.profile-page-body:not([data-custom-cursor]) {
    cursor: auto !important;
}

body.profile-page-body:not([data-custom-cursor]) * {
    cursor: auto !important;
}

body.profile-page-body:not([data-custom-cursor]) a,
body.profile-page-body:not([data-custom-cursor]) button,
body.profile-page-body:not([data-custom-cursor]) [role="button"] {
    cursor: pointer !important;
}

body.profile-page-body:not([data-custom-cursor]) input,
body.profile-page-body:not([data-custom-cursor]) textarea {
    cursor: text !important;
}

body.profile-page-body[data-custom-cursor] {
    cursor: none;
}

body.profile-page-body[data-custom-cursor] * {
    cursor: none !important;
}

.profile-custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    width: 40px;
    height: 40px;
    background: var(--profile-custom-cursor) no-repeat center center;
    background-size: contain;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

@media (pointer: fine) {
    body.profile-page-body[data-custom-cursor] .profile-custom-cursor {
        display: block;
    }
}

.profile-effect-canvas {
    position: fixed;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body.dashboard-page,
body.auth-page {
    position: relative;
}

body.dashboard-page > .dashboard-background,
body.auth-page > .dashboard-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

body.dashboard-page > .account-card,
body.auth-page > .account-card {
    position: relative;
    z-index: 1;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

body.dashboard-page,
body.dashboard-page > .account-card,
body.dashboard-page textarea {
    scrollbar-color: rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
}

body.dashboard-page::-webkit-scrollbar,
body.dashboard-page > .account-card::-webkit-scrollbar,
body.dashboard-page textarea::-webkit-scrollbar {
    width: 8px;
}

body.dashboard-page::-webkit-scrollbar-track,
body.dashboard-page > .account-card::-webkit-scrollbar-track,
body.dashboard-page textarea::-webkit-scrollbar-track {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

body.dashboard-page::-webkit-scrollbar-thumb,
body.dashboard-page > .account-card::-webkit-scrollbar-thumb,
body.dashboard-page textarea::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    background-clip: padding-box;
}

a {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.75);
}

.account-card,
.public-profile {
    width: min(100%, 540px);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(20, 20, 32, 0.92);
    box-shadow: 0 16px 55px rgba(0, 0, 0, 0.45);
}

h1 {
    margin-top: 0;
}

p,
small {
    line-height: 1.5;
}

form {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

label {
    display: grid;
    gap: 6px;
}

.dashboard-profile-fields .separator-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-profile-fields .separator-toggle input[type="checkbox"] {
    width: auto;
    margin: 0;
}

input,
textarea,
button {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font: inherit;
}

button {
    background: #fff;
    color: #080810;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.secondary-button {
    background: transparent;
    color: #fff;
}

.form-message {
    min-height: 1.5em;
    margin: 0;
}

.save-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.save-progress[hidden] {
    display: none;
}

.save-progress progress {
    width: min(100%, 320px);
    height: 12px;
    accent-color: #fff;
}

.public-profile {
    position: relative;
    z-index: 1;
    text-align: center;
}

.profile-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

body.profile-page-body[data-background-mode="static"] .profile-background {
    display: none;
}

.profile-page {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

body.profile-page-body[data-page-layout="left"] .profile-page {
    justify-content: flex-start;
    padding-left: clamp(24px, 8vw, 120px);
}

body.profile-page-body[data-page-layout="right"] .profile-page {
    justify-content: flex-end;
    padding-right: clamp(24px, 8vw, 120px);
}

body.profile-page-body[data-page-layout="top"] .profile-page {
    align-items: flex-start;
    padding-top: clamp(32px, 8vh, 100px);
}

body.profile-page-body[data-page-layout="bottom"] .profile-page {
    align-items: flex-end;
    padding-bottom: clamp(32px, 8vh, 100px);
}

body.profile-page-body:not(.profile-started):not([data-profile-preview]) .profile-page {
    visibility: hidden;
}

.profile-card {
    position: relative;
    display: flex;
    width: min(var(--profile-card-width, 540px), calc(100vw - 32px));
    height: auto;
    min-height: var(--profile-card-height, 0px);
    overflow: visible;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: rgba(0, 0, 0, var(--profile-card-opacity, 0));
    color: #fff;
    transform-style: preserve-3d;
    transition: transform 160ms ease-out;
}

.profile-card > * {
    flex-shrink: 0;
}

.profile-card-style-glass {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(20, 24, 38, var(--profile-card-opacity, 0));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.profile-card-style-neon {
    border-color: #66f7ff;
    background: rgba(5, 8, 22, var(--profile-card-opacity, 0));
    box-shadow: 0 0 12px rgba(102, 247, 255, 0.65), 0 0 38px rgba(118, 67, 255, 0.3), inset 0 0 24px rgba(102, 247, 255, 0.08);
}

.profile-card-style-holographic {
    border: 1px solid transparent;
    background: linear-gradient(rgba(12, 10, 26, var(--profile-card-opacity, 0)), rgba(12, 10, 26, var(--profile-card-opacity, 0))) padding-box,
        linear-gradient(125deg, #ff73d1, #8a7dff, #65eaff, #7dffcf) border-box;
    box-shadow: 0 16px 48px rgba(101, 93, 255, 0.2);
}

.profile-card-style-cyberpunk {
    border: 1px solid #fa3bd1;
    border-left: 4px solid #f9ed32;
    border-radius: 4px 18px 4px 18px;
    background: rgba(24, 8, 30, var(--profile-card-opacity, 0));
    box-shadow: 8px 8px 0 rgba(250, 59, 209, 0.2), inset 0 0 24px rgba(250, 59, 209, 0.08);
}

.profile-card-style-minimal {
    border-color: rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(0, 0, 0, var(--profile-card-opacity, 0));
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}

.profile-card-style-frosted {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(235, 242, 255, var(--profile-card-opacity, 0));
    box-shadow: 0 20px 60px rgba(8, 12, 32, 0.28);
    backdrop-filter: blur(28px) saturate(1.5);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
}

.profile-card-style-outline {
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    background: rgba(0, 0, 0, var(--profile-card-opacity, 0));
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.08), 0 0 32px rgba(255, 255, 255, 0.12);
}

.profile-card-style-aurora {
    border: 1px solid rgba(124, 255, 218, 0.72);
    background: linear-gradient(145deg, rgba(8, 32, 38, var(--profile-card-opacity, 0)), rgba(30, 10, 46, var(--profile-card-opacity, 0)));
    box-shadow: 0 0 22px rgba(81, 255, 202, 0.25), 0 0 54px rgba(168, 92, 255, 0.2), inset 0 0 30px rgba(81, 255, 202, 0.08);
}

.profile-card-style-retro {
    border: 1px solid #76ff7a;
    border-radius: 6px;
    background: rgba(0, 18, 5, var(--profile-card-opacity, 0));
    box-shadow: 0 0 18px rgba(58, 255, 91, 0.2), inset 0 0 28px rgba(58, 255, 91, 0.06);
    color: #d7ffd9;
}

.profile-card-style-liquid {
    border-color: rgba(167, 235, 255, 0.72);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(39, 75, 102, var(--profile-card-opacity, 0)), rgba(17, 24, 46, var(--profile-card-opacity, 0)));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 22px 58px rgba(36, 119, 175, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.profile-card-style-midnight {
    border-color: rgba(174, 149, 255, 0.5);
    background: linear-gradient(145deg, rgba(30, 21, 55, var(--profile-card-opacity, 0)), rgba(5, 8, 22, var(--profile-card-opacity, 0)));
    box-shadow: 0 18px 54px rgba(4, 3, 15, 0.48), inset 0 0 32px rgba(145, 108, 255, 0.1);
}

.profile-card-style-sunset {
    border: 1px solid transparent;
    background: linear-gradient(rgba(34, 14, 28, var(--profile-card-opacity, 0)), rgba(34, 14, 28, var(--profile-card-opacity, 0))) padding-box,
        linear-gradient(125deg, #ffb347, #ff5f6d, #b15cff) border-box;
    box-shadow: 0 16px 48px rgba(255, 95, 109, 0.2);
}

.profile-card-style-carbon {
    border-color: #515866;
    border-radius: 10px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, var(--profile-card-texture-opacity, 0)) 0 2px, transparent 2px 7px), rgba(12, 14, 19, var(--profile-card-opacity, 0));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.profile-card-style-royal {
    border: 1px solid #d7bb74;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(45, 29, 67, var(--profile-card-opacity, 0)), rgba(18, 12, 33, var(--profile-card-opacity, 0)));
    box-shadow: 0 0 0 4px rgba(215, 187, 116, 0.08), 0 18px 52px rgba(20, 8, 40, 0.45);
}

.profile-card-style-toxic {
    border: 1px solid #b7ff38;
    border-radius: 6px 22px 6px 22px;
    background: rgba(10, 24, 12, var(--profile-card-opacity, 0));
    box-shadow: 0 0 18px rgba(183, 255, 56, 0.28), inset 0 0 26px rgba(183, 255, 56, 0.07);
    color: #f0ffd8;
}

.profile-card-style-candy {
    border: 2px solid #ff9bd8;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(67, 25, 66, var(--profile-card-opacity, 0)), rgba(29, 18, 57, var(--profile-card-opacity, 0)));
    box-shadow: 0 12px 0 rgba(255, 155, 216, 0.14), 0 22px 48px rgba(206, 84, 205, 0.2);
}

.profile-card-style-steel {
    border: 1px solid #aab6c5;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(74, 87, 105, var(--profile-card-opacity, 0)), rgba(19, 24, 32, var(--profile-card-opacity, 0)));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 42px rgba(0, 0, 0, 0.38);
}

.profile-card-style-paper {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    background: rgba(31, 30, 35, var(--profile-card-opacity, 0));
    box-shadow: 5px 6px 0 rgba(255, 255, 255, 0.12), 0 18px 48px rgba(0, 0, 0, 0.3);
}

.profile-card-style-glitch {
    border: 1px solid #ff4fd8;
    border-radius: 3px;
    background: rgba(14, 10, 24, var(--profile-card-opacity, 0));
    box-shadow: 5px 0 0 rgba(0, 240, 255, 0.42), -5px 0 0 rgba(255, 79, 216, 0.28), 0 16px 44px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-transparency: reduce) {
    .profile-card-style-glass,
    .profile-card-style-frosted {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@font-face {
    font-family: "Angel Wish";
    src: url("/assets/Angel_wish.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.profile-avatar-wrap {
    position: relative;
    flex: 0 0 126px;
    width: 126px;
    height: 126px;
}

.profile-avatar {
    display: block;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    margin: 0;
    color: #fff;
    font-family: "Angel Wish", "Courier New", monospace;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 3px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.profile-name-tag {
    display: inline-block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.profile-bio {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.profile-name.glitch,
.profile-bio.glitch {
    animation: profile-glitch 0.2s ease-in-out;
}

@keyframes profile-glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.profile-id {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.bio-separator {
    width: 100%;
    height: 1px;
    margin: 24px 0 18px;
    background: rgba(255, 255, 255, 0.2);
}

.profile-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: auto;
}

.profile-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.profile-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.profile-social-links .profile-social-preview-placeholder {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.profile-social-links[data-badge-style="circle"] a,
.profile-social-links[data-badge-style="circle"] .profile-wallet-icon,
.profile-social-links[data-badge-style="circle"] .profile-social-preview-placeholder,
.profile-social-links[data-badge-style="rounded"] a,
.profile-social-links[data-badge-style="rounded"] .profile-wallet-icon,
.profile-social-links[data-badge-style="rounded"] .profile-social-preview-placeholder {
    width: 44px;
    height: 44px;
    background: var(--social-badge-color, #171722);
}

.profile-social-links[data-badge-style="circle"] a,
.profile-social-links[data-badge-style="circle"] .profile-wallet-icon {
    border-radius: 50%;
}

.profile-social-links[data-badge-style="circle"] .profile-social-preview-placeholder {
    border-radius: 50%;
}

.profile-social-links[data-badge-style="rounded"] a,
.profile-social-links[data-badge-style="rounded"] .profile-wallet-icon {
    border-radius: 12px;
}

.profile-social-links[data-badge-style="rounded"] .profile-social-preview-placeholder {
    border-radius: 12px;
}

.profile-social-links[data-badge-style="circle"] a:hover,
.profile-social-links[data-badge-style="circle"] .profile-wallet-icon:hover,
.profile-social-links[data-badge-style="rounded"] a:hover,
.profile-social-links[data-badge-style="rounded"] .profile-wallet-icon:hover {
    background: var(--social-badge-color, #171722);
}

.profile-social-links .profile-wallet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.profile-social-links .profile-wallet-icon:hover {
    background: transparent;
    box-shadow: none;
}

.profile-social-links .profile-social-image {
    display: block;
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 5px transparent);
    transition: transform 0.3s ease;
}

.profile-social-links[data-badge-style="icon"] .profile-social-image {
    width: 36px;
    height: 36px;
}

.profile-social-links[data-icon-glow="soft"] .profile-social-image {
    filter: drop-shadow(0 0 5px var(--social-icon-color, #fff));
}

.profile-social-links[data-icon-glow="neon"] .profile-social-image {
    filter: drop-shadow(0 0 5px var(--social-icon-color, #fff))
        drop-shadow(0 0 12px var(--social-icon-color, #fff));
}

.profile-social-links .profile-wallet-icon:hover .profile-social-image {
    transform: scale(1.12);
}

.profile-social-links a:focus-visible {
    border-radius: 50%;
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.profile-social-links .profile-wallet-icon:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.profile-wallet-copy-status {
    min-height: 1em;
    margin: -8px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-family: Arial, sans-serif;
    font-size: 11px;
    text-align: center;
}

.profile-view-counter {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.profile-name-row .profile-view-counter {
    gap: 5px;
    font-size: 12px;
    letter-spacing: normal;
}

.profile-view-counter svg {
    width: 20px;
    height: 20px;
}

.profile-name-row .profile-view-counter svg {
    width: 16px;
    height: 16px;
}

.profile-social-links a:hover .profile-social-image {
    transform: scale(1.4) rotateY(15deg);
}

.dashboard-social-badge-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-social-badge-editor h3 {
    grid-column: 1 / -1;
    margin: 0;
    color: #f1f1f7;
    font: 700 11px/1.4 Arial, sans-serif;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dashboard-social-badge-editor label {
    display: grid;
    gap: 8px;
}

.dashboard-social-badge-editor input[type="color"] {
    width: 48px;
    height: 34px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    background: #111;
    cursor: pointer;
}

@media (max-width: 900px) {
    .dashboard-social-badge-editor input[type="color"] {
        width: 42px;
        height: 30px;
    }
}

.dashboard-social-badge-editor select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: #000;
    color: #fff;
    color-scheme: dark;
    font-family: Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.dashboard-social-badge-editor select option {
    background: #000;
    color: #fff;
}

.profile-music {
    display: none;
}

.profile-preview-audio {
    display: none;
}

.profile-preview-audio[hidden] {
    display: none;
}

.profile-start-screen {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    text-align: center;
    text-shadow: 0 2px 8px #000;
}

.profile-start-screen.is-hidden {
    display: none;
}

.profile-volume-control {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-volume-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: none;
    transition: color 160ms ease, opacity 160ms ease;
}

.profile-volume-icon:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.profile-volume-icon:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

.profile-volume-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.profile-volume-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
}

.profile-volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.profile-volume-control input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.upload-section {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-section h2 {
    margin-bottom: 8px;
}

.upload-section > label {
    margin: 12px 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
}

.upload-section + button[type="submit"] {
    margin-top: 12px;
}

input[type="file"] {
    padding: 8px;
}

input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #080810;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: #f0f0f5;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
}

body.dashboard-page {
    min-height: 100vh;
    padding: clamp(16px, 3vw, 40px);
    display: block;
    background: #000;
}

body.dashboard-page > .dashboard-background {
    display: none;
}

body.dashboard-page::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #000;
    content: "";
    pointer-events: none;
}

body.dashboard-page > .dashboard-card {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 42px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.dashboard-form {
    display: grid;
    gap: 28px;
    margin: 0;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.dashboard-eyebrow,
.dashboard-summary-label {
    display: block;
    margin: 0 0 8px;
    color: #b8b8b8;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.dashboard-header h1 {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.04em;
}

.dashboard-description {
    margin: 8px 0 0;
    color: #c0c0c0;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.dashboard-summary {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.dashboard-header-tools {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.dashboard-profile-link,
.dashboard-visitor-stat {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 178px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: #f5f5ff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
    text-shadow: none;
}

.dashboard-profile-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-profile-link .dashboard-summary-label,
.dashboard-visitor-stat .dashboard-summary-label {
    margin: 0;
    font-size: 9px;
}

.dashboard-visitor-stat strong {
    font-size: 18px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    grid-template-areas:
        "profile preview"
        "settings preview";
    align-items: start;
    gap: 20px;
}

.dashboard-main-column {
    display: grid;
    grid-area: profile;
    align-content: start;
    gap: 20px;
    min-width: 0;
}

.dashboard-side-column {
    display: contents;
}

.dashboard-settings {
    grid-area: settings;
}

.dashboard-preview-column {
    display: grid;
    grid-area: preview;
    align-content: start;
    gap: 20px;
    min-width: 0;
}

.dashboard-preview {
    position: static;
    align-self: start;
}

.dashboard-preview-frame {
    display: block;
    width: 100%;
    height: min(68vh, 720px);
    min-height: 540px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: #080810;
}

.dashboard-preview-status {
    min-height: 1.5em;
    margin: 8px 0 0;
    color: #c0c0c0;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.dashboard-section {
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(18, 18, 18, 0.25);
    backdrop-filter: blur(8px);
}

.dashboard-section-heading {
    margin-bottom: 18px;
}

.dashboard-section-heading h2 {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.dashboard-section-heading p {
    margin: 6px 0 0;
    color: #c0c0c0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.dashboard-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.dashboard-social-items {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
}

.dashboard-social-item {
    position: relative;
    display: flex;
    min-width: 0;
    width: min(100%, 390px);
    align-items: center;
    gap: 7px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    transition: width 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dashboard-social-item:focus-within {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-social-item.is-collapsed {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
    border-color: transparent;
    background: transparent;
}

.dashboard-social-item[hidden] {
    display: none;
}

.dashboard-social-edit {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.dashboard-social-edit:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: none;
    transform: translateY(-1px);
}

.dashboard-social-edit:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.dashboard-social-edit .profile-social-image {
    display: block;
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    filter: none;
}

.dashboard-social-link-editor {
    flex: 1;
    min-width: 0;
}

.dashboard-social-item input {
    width: 100%;
    padding: 9px 10px !important;
    font-size: 12px !important;
}

.dashboard-social-link-hint {
    margin: 5px 4px 1px;
    color: rgba(235, 235, 245, 0.62);
    font: 11px/1.4 Arial, sans-serif;
}

.dashboard-social-item.is-collapsed .dashboard-social-link-editor {
    display: none;
}

.dashboard-social-delete-mode {
    width: auto;
    min-width: 108px;
    height: 40px;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.84);
    font: 600 11px Arial, sans-serif;
    box-shadow: none;
}

.dashboard-social-delete-mode:hover:not(:disabled),
.dashboard-social-delete-mode[aria-pressed="true"] {
    border-color: rgba(255, 110, 130, 0.55);
    background: rgba(255, 80, 110, 0.14);
    color: #fff;
    box-shadow: none;
}

.dashboard-social-delete-hint {
    margin: -7px 0 10px;
    color: #ffb5c0;
    font: 11px/1.4 Arial, sans-serif;
}

.dashboard-social-delete-hint[hidden] {
    display: none;
}

.is-social-delete-mode .dashboard-social-edit {
    position: relative;
    border-color: rgba(255, 110, 130, 0.48);
    background: rgba(255, 80, 110, 0.12);
}

.is-social-delete-mode .dashboard-social-edit::after {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: #d93650;
    color: #fff;
    content: "−";
    font: 700 13px/1 Arial, sans-serif;
}

.is-social-delete-mode .dashboard-social-edit:hover,
.is-social-delete-mode .dashboard-social-edit:focus-visible {
    border-color: #ff8798;
    background: rgba(255, 80, 110, 0.24);
    box-shadow: 0 0 0 3px rgba(255, 80, 110, 0.12);
}

.dashboard-details-grid .dashboard-bio-field {
    grid-column: 1 / -1;
}

.dashboard-details-grid textarea {
    min-height: 96px;
    resize: vertical;
}

.dashboard-profile-fields label,
.dashboard-links-fields label,
.dashboard-settings label,
.dashboard-form > .dashboard-layout .upload-section label {
    min-width: 0;
    color: #e6e6f0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-card input:not([type="checkbox"]):not([type="file"]):not([type="range"]),
.dashboard-card textarea {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.dashboard-social-add-label {
    display: block;
    margin-bottom: 8px;
}

.dashboard-social-add {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.dashboard-social-add select {
    -webkit-appearance: none;
    appearance: none;
    color-scheme: dark;
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: #000;
    color: #fff;
    font: 13px Arial, sans-serif;
    cursor: pointer;
}

.dashboard-social-add select option,
.dashboard-social-add select optgroup {
    background: #000;
    color: #fff;
}

.dashboard-social-add .secondary-button {
    width: auto;
    min-width: 88px;
    flex: 0 0 auto;
}

.dashboard-card input[type="color"] {
    width: 100%;
    height: 42px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.dashboard-settings .effect-color-setting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-settings .effect-color-setting input[type="color"] {
    width: 48px;
    height: 34px;
    flex: 0 0 48px;
    padding: 3px;
}

.dashboard-card input:not([type="range"]):focus,
.dashboard-card textarea:focus {
    border-color: rgba(255, 255, 255, 0.8);
    outline: 2px solid rgba(255, 255, 255, 0.16);
}

.dashboard-card input::placeholder {
    color: #777789;
}

.dashboard-settings .separator-toggle input[type="checkbox"] {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 22px;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: #393939;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.dashboard-settings .separator-toggle input[type="checkbox"]::before {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: transform 160ms ease;
}

.dashboard-settings .separator-toggle input[type="checkbox"]:checked {
    border-color: #fff;
    background: #fff;
}

.dashboard-settings .separator-toggle input[type="checkbox"]:checked::before {
    background: #111;
    transform: translateX(16px);
}

.dashboard-settings .separator-toggle input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.dashboard-setting-group {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-setting-group h3 {
    margin: 0;
    color: #f1f1f7;
    font: 700 11px/1.4 Arial, sans-serif;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dashboard-profile-fields .separator-toggle,
.dashboard-settings .separator-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    color: #c5c5d3;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.dashboard-settings .separator-toggle > span:first-of-type {
    flex: 1;
}

.dashboard-settings .toggle-state {
    min-width: 34px;
    color: #9292a1;
    font: 700 9px Arial, sans-serif;
    text-align: right;
}

.dashboard-settings .separator-toggle input:checked ~ .toggle-state {
    color: #fff;
}

.dashboard-settings .toggle-state::before {
    content: "OFF";
}

.dashboard-settings .separator-toggle input:checked ~ .toggle-state::before {
    content: "ON";
}

.dashboard-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #fff;
}

.dashboard-settings .opacity-setting {
    display: grid;
    gap: 8px;
}

.dashboard-settings .effect-setting {
    display: grid;
    gap: 8px;
}

.dashboard-settings select {
    -webkit-appearance: none;
    appearance: none;
    color-scheme: dark;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.dashboard-settings select option {
    background: #000;
    color: #fff;
}

.dashboard-settings .opacity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-card input[type="range"] {
    width: 100%;
    margin: 0;
    accent-color: #fff;
}

.opacity-control output {
    min-width: 38px;
    color: #c5c5d3;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: right;
}

.dashboard-settings {
    display: grid;
    gap: 12px;
}

.dashboard-settings .dashboard-section-heading {
    margin-bottom: 4px;
}

.dashboard-settings > .dashboard-setting-group {
    grid-column: 1 / -1;
}

.dashboard-form > .dashboard-layout .upload-section {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(18, 18, 18, 0.25);
    backdrop-filter: blur(8px);
}

.dashboard-form > .dashboard-layout .dashboard-profile-media.upload-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-profile-media .dashboard-section-heading,
.dashboard-profile-media .media-clear-message {
    grid-column: 1 / -1;
}

.dashboard-profile-media .dashboard-media-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-media-heading > div {
    min-width: 0;
}

.dashboard-profile-media .dashboard-media-heading p {
    margin-bottom: 0;
}

.dashboard-media-heading .clear-media-button {
    flex: 0 0 auto;
}

.dashboard-form > .dashboard-layout .upload-section h2 {
    margin: 0;
}

.dashboard-form > .dashboard-layout .upload-section .dashboard-section-heading {
    margin: 0 0 4px;
}

.dashboard-form > .dashboard-layout .upload-section > label {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(18, 18, 18, 0.2);
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.dashboard-form > .dashboard-layout .upload-section > label:focus-within {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(18, 18, 18, 0.34);
}

.media-upload-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.media-upload-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #f2f2ff;
}

.media-upload-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.media-upload-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.dashboard-form > .dashboard-layout .upload-section .media-upload-title {
    color: #f5f5ff;
    font-size: 13px;
    font-weight: 650;
}

.dashboard-form > .dashboard-layout .upload-section .media-upload-description {
    color: #a3a3b2;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

.dashboard-form > .dashboard-layout .upload-section .media-upload-selection {
    overflow: hidden;
    color: #858596;
    font-size: 10px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-form > .dashboard-layout .upload-section .media-upload-selection.is-selected {
    color: #d8f6df;
}

.dashboard-card input[type="file"] {
    width: 100%;
    min-width: 0;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.32);
    color: #c4c4d0;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.dashboard-card input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.09);
    color: #f5f5ff;
    font: 600 11px Arial, sans-serif;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.dashboard-card input[type="file"]::file-selector-button:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.16);
}

.media-upload-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.media-upload-actions > span {
    max-width: 220px;
    color: #9292a2;
    font: 11px/1.5 Arial, sans-serif;
}

.media-upload-actions .clear-media-button {
    width: auto;
    min-width: 108px;
    justify-self: auto;
    align-self: flex-start;
    margin: 0;
    height: 40px;
    padding: 0 12px;
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.84);
    font-size: 11px;
    box-shadow: none;
}

.media-upload-actions .clear-media-button:hover:not(:disabled) {
    border-color: rgba(255, 110, 130, 0.55);
    background: rgba(255, 80, 110, 0.14);
    color: #fff;
    box-shadow: none;
}

@media (max-width: 560px) {
    .dashboard-form > .dashboard-layout .upload-section {
        padding: 16px;
    }

    .dashboard-form > .dashboard-layout .dashboard-profile-media.upload-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-form > .dashboard-layout .upload-section > label {
        padding: 12px;
    }

    .media-upload-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .media-upload-actions .clear-media-button {
        width: auto;
    }
}

.dashboard-card input[type="file"]:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.clear-media-button {
    justify-self: start;
    min-width: 108px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.84);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.clear-media-button:hover:not(:disabled) {
    border-color: rgba(255, 110, 130, 0.55);
    background: rgba(255, 80, 110, 0.14);
    color: #fff;
}

.clear-media-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.media-clear-message {
    margin: 0;
    color: #c5c5d3;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.dashboard-actions {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 30px;
    padding: 0;
    border: 0;
    background: transparent;
}

.dashboard-actions .dashboard-save-button {
    width: 130px;
    min-width: 130px;
    min-height: 42px;
    padding: 11px 18px;
    border: 0;
    border-radius: 9px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-actions .dashboard-save-button {
    margin-left: auto;
    background: #fff;
    color: #111;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.16);
    transition: background-color 160ms ease, transform 160ms ease;
}

.dashboard-actions .dashboard-save-button:hover:not(:disabled) {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.dashboard-actions .dashboard-save-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.dashboard-actions > form {
    display: block;
    margin: 0;
}

.dashboard-navigation-links {
    display: contents;
}

.dashboard-actions > form input,
.dashboard-actions > form .form-message {
    display: none;
}

.dashboard-actions > form button,
.dashboard-users-link,
.dashboard-home-link,
.dashboard-discord-link {
    width: 104px;
    min-width: 104px;
    min-height: 36px;
    display: inline-block;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #dddde8;
    box-shadow: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-shadow: none;
    text-decoration: none;
    line-height: 18px;
}

.dashboard-actions > form button:hover,
.dashboard-users-link:hover,
.dashboard-home-link:hover,
.dashboard-discord-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-actions .dashboard-users-link {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.dashboard-actions .dashboard-users-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.users-card {
    width: min(100%, 900px);
}

.users-list-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.users-list {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.users-list th,
.users-list td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-list th {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.users-list td {
    color: #e5e5ef;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.users-list tbody tr:last-child td {
    border-bottom: 0;
}

.users-list .users-id {
    width: 1%;
    color: #b9b9c8;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.users-list a {
    overflow-wrap: anywhere;
}

.users-empty {
    padding: 18px;
    color: #c6c6d3;
    font-family: Arial, sans-serif;
}

.dashboard-admin {
    margin-top: 20px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.19);
    background:
        radial-gradient(ellipse at 0 0, rgba(255, 255, 255, 0.055), transparent 48%),
        rgba(18, 18, 18, 0.35);
}

.dashboard-admin-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.dashboard-admin-heading .dashboard-section-heading {
    flex: 1;
    margin: 0;
}

.dashboard-admin-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: #f4f4f8;
}

.dashboard-admin-icon svg {
    display: block;
    width: 23px;
    min-width: 23px;
    max-width: 23px;
    height: 23px;
    min-height: 23px;
    max-height: 23px;
    flex: 0 0 23px;
}

.dashboard-admin-heading .dashboard-admin-eyebrow {
    margin: 0 0 4px;
    color: #aaaab6;
    font: 700 9px Arial, sans-serif;
    letter-spacing: 0.15em;
}

.dashboard-admin-heading .dashboard-section-heading h2 {
    font-size: 19px;
}

.dashboard-admin-count {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: #c8c8d2;
    font: 11px Arial, sans-serif;
    white-space: nowrap;
}

.admin-member-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-member-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.028);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.admin-member-row:hover {
    border-color: rgba(255, 255, 255, 0.17);
    background: rgba(255, 255, 255, 0.045);
}

.admin-member-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.admin-member-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035));
    color: #f1f1f6;
    font: 700 14px Arial, sans-serif;
    text-transform: uppercase;
}

.admin-member-details {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.admin-member-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: #f3f3f8;
    font: 600 13px Arial, sans-serif;
    overflow-wrap: anywhere;
}

.admin-member-details > a {
    width: fit-content;
    color: #9696a4;
    font: 11px Arial, sans-serif;
    text-decoration: none;
}

.admin-member-details > a:hover {
    color: #fff;
}

.admin-badge-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin: 0;
}

.admin-badge-form select {
    min-width: 142px;
    padding: 9px 32px 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background-color: rgba(0, 0, 0, 0.35);
    color: #f5f5ff;
    font: 12px Arial, sans-serif;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.admin-badge-form select:hover,
.admin-badge-form select:focus-visible {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(0, 0, 0, 0.55);
    outline: none;
}

.admin-badge-form .form-message {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    margin: 0;
}

.admin-badge-save {
    width: auto;
    min-width: 58px;
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    box-shadow: none;
    font: 600 11px Arial, sans-serif;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.admin-badge-save:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.09);
}

@media (max-width: 560px) {
    .dashboard-admin-heading {
        align-items: flex-start;
        gap: 11px;
    }

    .dashboard-admin-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
    }

    .dashboard-admin-count {
        margin-left: auto;
        padding: 6px 8px;
        font-size: 10px;
    }

    .admin-member-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .admin-member-identity {
        width: 100%;
    }

    .admin-badge-form {
        width: 100%;
    }

    .admin-badge-form select {
        flex: 1;
        min-width: 0;
    }
}

.dashboard-actions > .form-message {
    flex: 1 1 220px;
    min-height: 0;
    color: #d1d1dc;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.dashboard-actions .save-progress {
    flex: 1 0 100%;
    order: 2;
    font-family: Arial, sans-serif;
}

.dashboard-actions .save-progress progress {
    accent-color: #fff;
}

.dashboard-chat {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 12px;
}

.dashboard-chat .dashboard-section-heading {
    margin-bottom: 0;
}

.dashboard-chat-warning {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 191, 96, 0.24);
    border-radius: 10px;
    background: rgba(120, 72, 15, 0.16);
    color: #e9cfaa;
    font: 12px/1.45 Arial, sans-serif;
}

.dashboard-chat-warning strong {
    color: #f3d39b;
    font-size: 12px;
}

.dashboard-chat-acknowledgement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #c5c5d3;
    font: 11px/1.4 Arial, sans-serif;
}

.dashboard-chat-acknowledgement input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #fff;
}

.dashboard-chat-messages {
    display: flex;
    min-height: 180px;
    max-height: 320px;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.24);
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    scrollbar-width: thin;
}

.dashboard-chat-empty {
    margin: auto;
    color: #9292a2;
    font: 12px Arial, sans-serif;
    text-align: center;
}

.dashboard-chat-message {
    display: grid;
    gap: 4px;
    align-self: flex-start;
    max-width: 100%;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px 10px 10px 3px;
    background: rgba(255, 255, 255, 0.055);
    overflow-wrap: anywhere;
}

.dashboard-chat-message.is-own {
    align-self: flex-end;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-chat-message-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.dashboard-chat-delete {
    width: auto;
    margin-left: auto;
    padding: 2px 5px;
    border: 0;
    background: transparent;
    color: #a6a6b5;
    font: 10px Arial, sans-serif;
    cursor: pointer;
}

.dashboard-chat-delete:hover:not(:disabled) {
    color: #ffb4b4;
    text-decoration: underline;
}

.dashboard-chat-delete:disabled {
    cursor: wait;
    opacity: 0.55;
}

.dashboard-chat-message-header strong {
    color: #f2f2fa;
    font: 600 11px Arial, sans-serif;
}

.dashboard-chat-message-header time {
    color: #888898;
    font: 10px Arial, sans-serif;
}

.dashboard-chat-message-text {
    margin: 0;
    color: #dedee8;
    font: 12px/1.45 Arial, sans-serif;
    white-space: pre-wrap;
}

.dashboard-chat-status {
    min-height: 0;
    margin: 0;
    color: #bdbdca;
    font: 11px/1.4 Arial, sans-serif;
}

.dashboard-chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 9px;
    margin: 0;
}

.dashboard-chat-composer textarea {
    min-height: 48px;
    max-height: 120px;
    resize: vertical;
}

.dashboard-chat-composer button {
    width: auto;
    min-width: 68px;
    min-height: 44px;
    padding: 9px 13px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #111;
    font: 700 12px Arial, sans-serif;
    cursor: pointer;
}

.dashboard-chat-composer button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "preview"
            "profile"
            "settings"
            "chat";
    }

    .dashboard-preview-column {
        display: contents;
    }

    .dashboard-preview {
        grid-area: preview;
    }

    .dashboard-chat {
        grid-area: chat;
    }

    .dashboard-preview {
        position: static;
    }

    .dashboard-preview-frame {
        height: min(70vh, 720px);
    }

}

@media (max-width: 900px) {
    .dashboard-header {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    .dashboard-header > div:first-child {
        min-width: 0;
    }

}

@media (max-width: 560px) {
    body.dashboard-page {
        padding: 12px;
    }

    body.dashboard-page > .dashboard-card {
        padding: 20px 16px;
        border-radius: 0;
    }

    .dashboard-form {
        gap: 18px;
    }

    .dashboard-summary {
        width: 100%;
        flex-direction: column;
    }

    .dashboard-profile-link,
    .dashboard-visitor-stat {
        min-width: 0;
    }

    .dashboard-section {
        padding: 17px;
    }

    .dashboard-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-details-grid .dashboard-bio-field {
        grid-column: auto;
    }

    .dashboard-actions {
        align-items: stretch;
    }

    .dashboard-actions .dashboard-users-link {
        position: static;
        margin: 0;
        transform: none;
    }

    .dashboard-navigation-links {
        display: flex;
        flex: 1 0 100%;
        flex-wrap: nowrap;
        order: 3;
        gap: 8px;
        width: 100%;
    }

    .dashboard-home-link,
    .dashboard-actions .dashboard-users-link,
    .dashboard-discord-link {
        flex: 1 1 0;
        min-width: 0;
    }

    .dashboard-discord-link {
        width: 100%;
    }

    .dashboard-actions .dashboard-save-button {
        width: 100%;
        order: 4;
    }

    .dashboard-home-link {
        margin-left: 0;
    }

    .dashboard-card input:not([type="checkbox"]):not([type="file"]):not([type="range"]),
    .dashboard-card textarea,
    .dashboard-settings select,
    .auth-page .account-card input:not([type="hidden"]) {
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    body.dashboard-page {
        padding: 10px 16px;
    }

    body.dashboard-page > .dashboard-card {
        width: min(1680px, 100%);
        padding: 8px 14px 14px;
    }

    .dashboard-actions {
        position: sticky;
        top: 8px;
        z-index: 5;
        gap: 8px;
        margin-bottom: 10px;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.88);
        backdrop-filter: blur(12px);
    }

    .dashboard-actions .dashboard-save-button,
    .dashboard-actions > form button,
    .dashboard-users-link,
    .dashboard-home-link {
        min-height: 36px;
    }

    .dashboard-actions > .form-message {
        flex-basis: 180px;
        margin: 0;
    }

    .dashboard-actions .save-progress {
        flex: 1 0 100%;
    }

    .dashboard-form {
        gap: 12px;
    }

    .dashboard-header {
        align-items: center;
        gap: 16px;
    }

    .dashboard-eyebrow,
    .dashboard-summary-label {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .dashboard-header h1 {
        font-size: 30px;
    }

    .dashboard-description {
        margin-top: 5px;
        font-size: 16px;
    }

    .dashboard-summary {
        gap: 8px;
    }

    .dashboard-header-tools {
        gap: 8px;
    }

    .dashboard-profile-link,
    .dashboard-visitor-stat {
        min-width: 160px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .dashboard-visitor-stat strong {
        font-size: 16px;
    }

    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
        grid-template-areas:
            "profile preview"
            "settings preview";
        align-items: start;
        gap: 20px;
    }

    .dashboard-settings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 8px 10px;
    }

    .dashboard-settings > .dashboard-section-heading {
        grid-column: 1 / -1;
    }

    .dashboard-settings .separator-toggle {
        gap: 8px;
        font-size: 11px;
        line-height: 1.3;
    }

    .dashboard-settings .effect-setting,
    .dashboard-settings .opacity-setting {
        gap: 6px;
        font-size: 11px;
    }

    .dashboard-settings select {
        padding: 8px 10px;
        font-size: 12px;
    }

    .dashboard-settings .effect-color-setting {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
    }

    .dashboard-settings .effect-color-setting input {
        width: 42px;
        height: 30px;
        flex-basis: 42px;
    }

    .dashboard-settings .opacity-control {
        gap: 8px;
    }

    .dashboard-settings .opacity-control output {
        min-width: 36px;
        font-size: 11px;
    }

    .dashboard-section,
    .dashboard-form > .dashboard-layout .upload-section {
        padding: 16px;
        border-radius: 14px;
    }

    .dashboard-chat {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 8px;
    }

    .dashboard-chat .dashboard-section-heading {
        margin-bottom: 8px;
    }

    .dashboard-chat-messages {
        min-height: 130px;
        max-height: 220px;
        padding: 9px;
    }

    .dashboard-chat-warning {
        padding: 8px 9px;
        font-size: 10px;
    }

    .dashboard-chat-composer textarea {
        min-height: 42px;
    }

    .dashboard-chat-composer button {
        min-width: 58px;
        min-height: 40px;
    }

    .dashboard-section-heading {
        margin-bottom: 10px;
    }

    .dashboard-section-heading h2 {
        font-size: 16px;
    }

    .dashboard-section-heading p {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.4;
    }

    .dashboard-details-grid {
        gap: 9px;
    }

    .dashboard-profile-fields label,
    .dashboard-links-fields label {
        font-size: 12px;
    }

    .dashboard-card input:not([type="checkbox"]):not([type="file"]):not([type="range"]),
    .dashboard-card textarea {
        padding: 9px 10px;
        border-radius: 8px;
        font-size: 13px;
    }

    .dashboard-details-grid textarea {
        min-height: 72px;
        height: 72px;
    }

    .dashboard-form > .dashboard-layout .upload-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 9px;
    }

    .dashboard-form > .dashboard-layout .upload-section .dashboard-section-heading,
    .dashboard-form > .dashboard-layout .upload-section .media-clear-message {
        grid-column: 1 / -1;
    }

    .dashboard-profile-media .dashboard-media-heading {
        align-items: flex-start;
    }

    .dashboard-form > .dashboard-layout .upload-section > label {
        gap: 8px;
        padding: 10px;
        border-radius: 10px;
    }

    .media-upload-heading {
        gap: 8px;
    }

    .media-upload-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 9px;
    }

    .media-upload-icon svg {
        width: 18px;
        height: 18px;
    }

    .dashboard-form > .dashboard-layout .upload-section .media-upload-title {
        font-size: 12px;
    }

    .dashboard-form > .dashboard-layout .upload-section .media-upload-description {
        font-size: 10px;
        line-height: 1.35;
    }

    .dashboard-card input[type="file"] {
        padding: 5px;
        font-size: 11px;
    }

    .dashboard-card input[type="file"]::file-selector-button {
        margin-right: 6px;
        padding: 7px 8px;
        font-size: 10px;
    }

    .dashboard-form > .dashboard-layout .upload-section .media-upload-selection {
        font-size: 10px;
    }

    .media-upload-actions {
        margin-top: 0;
        padding-top: 8px;
    }

    .media-upload-actions > span {
        max-width: none;
        font-size: 10px;
    }

}

@media (max-width: 480px) {
    .account-card,
    .public-profile {
        padding: 22px;
    }

    .profile-card {
        width: min(var(--profile-card-width, 540px), calc(100vw - 24px));
        padding: 18px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .profile-info {
        align-items: center;
        text-align: center;
    }

    .profile-avatar-wrap,
    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .profile-avatar-wrap {
        flex-basis: 120px;
    }

    .profile-name {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .profile-bio {
        font-size: 14px;
        line-height: 1.4;
    }

    .profile-footer {
        flex-direction: column;
        justify-content: center;
    }

    .profile-social-links .profile-social-image {
        width: 32px;
        height: 32px;
    }

    .profile-wallet-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .profile-start-screen {
        font-size: 18px;
    }

    .profile-volume-control {
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        gap: 8px;
        padding: 4px 8px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(8px);
    }

    .profile-volume-icon {
        width: 44px;
        height: 44px;
    }

    .profile-volume-icon svg {
        width: 22px;
        height: 22px;
    }

    .profile-volume-control input[type="range"] {
        width: 84px;
        height: 4px;
        touch-action: pan-x;
    }

    .profile-volume-control input[type="range"]::-webkit-slider-thumb,
    .profile-volume-control input[type="range"]::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }
}

body.auth-page {
    min-height: 100vh;
    padding: clamp(20px, 5vw, 56px);
    display: grid;
    place-items: center;
    background: #000;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
}

body.auth-page > .account-card {
    width: min(100%, 480px);
    padding: clamp(22px, 5vw, 38px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: Arial, sans-serif;
}

.auth-page .account-card h1 {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(28px, 5vw, 36px);
    letter-spacing: -0.04em;
}

.auth-page .account-card > p {
    color: #bcbcbc;
    font-size: 14px;
}

.auth-page .account-card strong {
    color: #fff;
}

.auth-page .account-card form {
    gap: 14px;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(18, 18, 18, 0.25);
    backdrop-filter: blur(8px);
}

.auth-page .account-card label {
    gap: 8px;
    color: #e6e6e6;
    font-size: 12px;
    font-weight: 600;
}

.auth-page .account-card input:not([type="hidden"]) {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.auth-page .account-card input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    outline: 2px solid rgba(255, 255, 255, 0.16);
}

.auth-page .account-card small {
    margin-top: -8px;
    color: #a8a8a8;
    font-size: 11px;
}

.auth-page .account-card button {
    min-height: 42px;
    border: 1px solid #fff;
    border-radius: 9px;
    background: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.auth-page .account-card button:hover {
    background: #e8e8e8;
}

.auth-page .account-card .secondary-button {
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #fff;
}

.auth-page .account-card .secondary-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.auth-page .account-card .form-message {
    color: #d0d0d0;
    font-size: 12px;
}

.auth-page .account-card > a,
.auth-page .account-card > p a,
.auth-page .account-card form a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 3px;
    text-shadow: none;
}

.auth-page .account-card > a:hover,
.auth-page .account-card > p a:hover,
.auth-page .account-card form a:hover {
    text-decoration-color: #fff;
}

.auth-page .account-card > p[role="status"] {
    margin: 18px 0 24px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.25);
    color: #d0d0d0;
}

@media (max-width: 480px) {
    body.auth-page {
        padding: 14px;
    }

    body.auth-page > .account-card {
        padding: 20px 8px;
    }

    .auth-page .account-card form {
        padding: 16px;
    }
}
