/* Public site — Products design language */
:root {
    --site-bg: #09090b;
    --site-sidebar: #0c0c0e;
    --site-panel: #141416;
    --site-panel-2: #1a1a1d;
    --site-hover: #1f1f23;
    --site-border: rgba(255, 255, 255, .06);
    --site-border-strong: rgba(255, 255, 255, .1);
    --site-text: #f4f4f5;
    --site-dim: #a1a1aa;
    --site-muted: #71717a;
    --site-green: #ff80e1;
    --site-red: #ef4444;
    --site-orange: #f59e0b;
    --site-radius: 14px;
    --site-radius-sm: 10px;
}

html {
    scrollbar-color: #27272a var(--site-bg);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 128, 225, .025), transparent 32%),
        var(--site-bg);
}

body .btn,
body .icon-btn,
body button,
body input,
body select,
body textarea {
    font-family: var(--font-main);
}

body .btn {
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid var(--site-border-strong);
    border-radius: var(--site-radius-sm);
    background: var(--site-panel-2);
    color: var(--site-text);
    font-size: 13px;
    font-weight: 650;
    transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}

body .btn:hover {
    border-color: rgba(255, 255, 255, .16);
    background: var(--site-hover);
    color: var(--site-text);
    transform: translateY(-1px);
}

body .btn:active {
    transform: translateY(0);
}

body .btn-primary {
    border-color: transparent;
    background: #fafafa;
    color: #09090b;
}

body .btn-primary:hover {
    border-color: transparent;
    background: #e4e4e7;
    color: #09090b;
}

body .btn:focus-visible,
body .icon-btn:focus-visible,
body .input-field:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 128, 225, .2);
}

body .input-field,
body input.input-field,
body select.input-field,
body textarea.input-field {
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--site-border-strong);
    border-radius: var(--site-radius-sm);
    outline: none;
    background: var(--site-bg);
    color: var(--site-text);
    font-size: 13.5px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

body .input-field:hover {
    border-color: rgba(255, 255, 255, .16);
}

body .input-field:focus {
    border-color: var(--site-green);
    box-shadow: 0 0 0 3px rgba(255, 128, 225, .12);
}

body .input-field::placeholder {
    color: var(--site-muted);
}

body .card,
body .dash-panel {
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--site-panel) 0%, var(--site-sidebar) 100%);
    box-shadow: none;
}

body .card-header,
body .dash-panel-head {
    border-bottom: 1px solid var(--site-border);
    background: transparent;
}

body .dash-panel-title i,
body .card-title i {
    color: var(--site-green);
}

/* Navbar */
body .navbar {
    height: 64px;
    padding: 0 28px;
    border-bottom: 1px solid var(--site-border);
    background: rgba(9, 9, 11, .92);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

body .navbar .logo {
    font-size: 17px;
    letter-spacing: -.02em;
}

body .navbar .logo::before {
    content: none;
    display: none;
}

body .nav-links {
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: rgba(20, 20, 22, .75);
}

body .nav-links a {
    position: relative;
    padding: 7px 11px;
    border-radius: 8px;
    color: var(--site-muted);
    font-size: 12.5px;
}

body .nav-links a:hover {
    background: var(--site-hover);
    color: var(--site-text);
}

body .nav-links a.active {
    background: var(--site-panel-2);
    color: var(--site-text);
    box-shadow: inset 0 -2px 0 var(--site-green);
}

body .icon-btn,
body .profile-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--site-border-strong);
    border-radius: 10px;
    background: var(--site-panel);
}

body .icon-btn:hover,
body .profile-btn:hover {
    border-color: rgba(255, 255, 255, .16);
    background: var(--site-hover);
}

body .search-bar {
    min-height: 38px;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-panel);
}

body .search-bar:focus-within {
    border-color: var(--site-green);
    box-shadow: 0 0 0 3px rgba(255, 128, 225, .1);
}

body .search-dropdown,
body .notif-dropdown,
body .profile-dropdown,
body .account-dropdown,
body .user-hover-card,
body .friend-picker-panel {
    border: 1px solid var(--site-border-strong);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--site-panel), var(--site-sidebar));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
}

body .account-trigger {
    gap: 8px;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 10px;
}

body .account-trigger:hover,
body .account-wrapper:has(.account-dropdown.active) .account-trigger {
    border-color: var(--site-border);
    background: var(--site-panel);
}

body .account-trigger img {
    width: 30px;
    height: 30px;
    border: 1px solid var(--site-border-strong);
    border-radius: 8px;
}

body .account-trigger span {
    font-size: 12px;
}

body .account-dropdown {
    top: calc(100% + 8px);
    width: 280px;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
}

body .account-content {
    padding: 13px;
}

body .account-info {
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
    padding: 3px;
}

body .account-avatar-big img {
    width: 48px;
    height: 48px;
    border: 1px solid var(--site-border-strong);
    border-radius: 12px;
}

body .account-meta h4 {
    font-size: 13px !important;
}

body .account-meta .role {
    margin: 2px 0 4px;
    font-size: 9px;
    letter-spacing: .06em;
}

body .account-meta .stat {
    color: var(--site-dim);
    font-size: 10px;
}

body .account-links {
    padding-top: 8px;
    border-top-color: var(--site-border);
}

body .account-links .link-grid {
    gap: 3px;
    margin-bottom: 7px;
}

body .account-links a,
body .account-links .logout-link {
    display: flex;
    align-items: center;
    min-height: 35px;
    padding: 7px 9px;
    border-radius: 9px;
    color: var(--site-muted);
    font-size: 11px;
    font-weight: 550;
}

body .account-links a i {
    color: var(--site-dim);
    text-align: center;
}

body .account-links a:hover {
    background: var(--site-hover);
    color: var(--site-text);
    text-decoration: none;
}

body .account-links a:hover i {
    color: var(--site-green);
}

body .account-links hr {
    margin: 7px 0;
    border-top-color: var(--site-border);
}

body .account-links .logout-link:hover,
body .account-links .logout-link:hover i {
    background: rgba(239, 68, 68, .07);
    color: #fca5a5;
}

body .search-dropdown,
body .notif-dropdown,
body .account-dropdown {
    overflow: hidden;
}

body .search-result-item,
body .notif-item,
body .account-dropdown a {
    border-radius: 9px;
    transition: background .15s ease, color .15s ease;
}

body .search-result-item:hover,
body .notif-item:hover,
body .account-dropdown a:hover {
    background: var(--site-hover);
}

/* Auth */
body .auth-container {
    width: min(100% - 32px, 430px);
    max-width: 430px;
    margin: 0 auto;
    padding: 76px 0 48px;
}

body .auth-container::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 128, 225, .06), transparent 25%),
        linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
}

body .auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--site-text);
    font-size: 22px;
    letter-spacing: -.03em;
}

body .auth-logo::before {
    content: none;
    display: none;
}

body .auth-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--site-border-strong);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--site-panel) 0%, var(--site-sidebar) 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

body .auth-card::before {
    content: "";
    position: absolute;
    inset: 0 22px auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--site-green), transparent);
    opacity: .65;
}

body .auth-card .form-group {
    margin-bottom: 15px;
}

body .auth-card .form-label {
    margin-bottom: 7px;
    color: var(--site-dim);
    font-size: 12px;
    font-weight: 650;
}

body .auth-card .btn-block {
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    border-radius: 10px;
}

body .auth-card .input-field {
    width: 100%;
}

body .auth-links {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

body .auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 10px;
}

body .auth-forgot {
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

body .auth-error,
body .auth-success {
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 13px;
}

body .auth-error {
    border: 1px solid rgba(239, 68, 68, .25);
    background: rgba(239, 68, 68, .08);
    color: #fca5a5;
}

body .auth-success {
    border: 1px solid rgba(255, 128, 225, .25);
    background: rgba(255, 128, 225, .08);
    color: #ffc4f0;
}

body .auth-links a,
body .auth-forgot {
    color: var(--site-dim);
}

body .auth-links a:hover,
body .auth-forgot:hover {
    color: #ffc4f0;
}

body .auth-lead,
body .ban-status,
body .ban-sub {
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.55;
}

body .auth-lead {
    margin: 0 0 18px;
}

body .ban-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.03em;
}

body .ban-sub {
    margin: 0 0 22px;
}

body .ban-reason {
    min-height: auto;
    white-space: pre-wrap;
    line-height: 1.5;
    cursor: default;
}

body .auth-card textarea.input-field {
    min-height: 110px;
    display: block;
    resize: vertical;
}

/* Shared page shell */
body .container,
body .dash,
body .profile-page,
body .store-container,
body .dm-page {
    width: min(100% - 36px, 1240px);
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
}

body .dash {
    padding-top: 28px;
    padding-bottom: 48px;
}

body .dash-hero,
body .dm-hero {
    margin-bottom: 20px;
}

body .dash-hero-title,
body .dm-hero h1 {
    font-size: 25px;
    letter-spacing: -.035em;
}

body .dash-hero-sub,
body .dm-hero p {
    color: var(--site-muted);
}

body .dash-licenses {
    margin: -8px 0 20px;
    border-color: var(--site-border);
    background: var(--site-panel);
}

body .dash-licenses-kicker {
    color: var(--site-muted);
}

body .dash-licenses-count {
    border-color: var(--site-border);
    background: var(--site-panel-2);
    color: var(--site-dim);
}

body .dash-licenses-link {
    color: var(--site-dim);
}

body .dash-licenses-link:hover {
    color: var(--site-text);
}

body .dash-license-chip {
    border-color: var(--site-border);
    background: var(--site-panel-2);
}

body .dash-license-chip:hover {
    border-color: var(--site-border-strong);
    background: var(--site-hover);
}

body .dash-panel {
    overflow: hidden;
}

body .dash-panel-head {
    min-height: 58px;
    padding: 14px 17px;
}

body .dash-sub-item,
body .settings-row,
body .support-ticket-row,
body .status-item {
    border-color: var(--site-border);
    border-radius: 12px;
    background: var(--site-panel);
}

body .settings-row:hover,
body .support-ticket-row:hover,
body .status-item:hover {
    border-color: var(--site-border-strong);
    background: var(--site-panel-2);
}

body .dash-top {
    gap: 2px;
    padding: 8px;
}

body .dash-top-card {
    flex: 0 0 auto;
    min-height: 70px;
    padding: 10px 11px;
    border: 0;
    border-bottom: 1px solid var(--site-border);
    border-radius: 0;
    background: transparent;
    transition: background .15s ease;
}

body .dash-top-card:last-child {
    border-bottom: 0;
}

body .dash-top-card:hover,
body .dash-top-card:focus {
    border-radius: 10px;
    background: var(--site-hover) !important;
}

body .dash-top-icon {
    width: 30px;
    height: 30px;
    border: 1px solid var(--site-border);
    border-radius: 9px;
    background: var(--site-panel-2);
    color: var(--site-dim);
    font-size: 12px;
}

body .dash-top-card:hover .dash-top-icon {
    border-color: rgba(255, 128, 225, .2);
    color: var(--site-green);
}

body .dash-top-info {
    gap: 4px;
}

body .dash-top-label {
    color: var(--site-dim);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .035em;
    text-transform: uppercase;
}

body .dash-top-av {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

body .dash-top-name {
    font-size: 13px;
}

body .dash-top-chip {
    min-width: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--site-text);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

body .dash-top-chip-date {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--site-dim);
    font-size: 10px;
    font-weight: 500;
}

body .dash-side .dash-panel-fill {
    height: auto;
    min-height: 0;
}

body .dash-shout-panel {
    display: flex;
    flex-direction: column;
    align-self: start;
    width: 100%;
    min-height: 0;
}

body .dash-layout > .dash-shout-panel {
    height: auto;
}

body .dash-shout-panel .shout-mod-bar {
    flex: 0 0 auto;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--site-border);
    background: var(--site-panel);
}

body .dash-shout-panel .shout-mod-btn {
    min-height: 31px;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 10px;
}

body .dash-shout-messages {
    flex: 0 0 380px;
    height: 380px;
    min-height: 0;
    margin: 0;
    padding: 7px;
    border: 0;
    border-radius: 0;
    background: var(--site-bg);
    box-shadow: none;
}

body .dash-shout-messages .msg {
    gap: 9px;
    margin: 0;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid var(--site-border);
    border-radius: 0;
    background: transparent;
    transition: background .15s ease;
}

body .dash-shout-messages .msg:last-child {
    border-bottom: 0;
}

body .dash-shout-messages .msg:hover {
    border-radius: 9px;
    background: var(--site-hover);
}

body .dash-shout-messages .msg img {
    border-radius: 8px;
}

body .dash-shout-foot {
    flex: 0 0 auto;
    gap: 5px;
    padding: 9px 11px 8px;
    border-top: 1px solid var(--site-border);
    background: var(--site-panel);
}

body .dash-shout-row {
    gap: 7px;
}

body .dash-shout-row .input-field {
    min-height: 38px;
    border-radius: 9px;
    background: var(--site-bg);
    font-size: 11px;
}

body .dash-shout-row .btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 9px;
}

body .dash-shout-foot .dash-meta {
    min-height: 12px;
    font-size: 9px;
}

body .onboard {
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--site-panel), var(--site-sidebar));
}

body .onboard-step.is-done .onboard-num,
body .dash-live-dot {
    background: var(--site-green);
}

body .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(9px);
}

body .modal-overlay.active {
    display: flex;
}

body .modal-card {
    width: min(100%, 520px);
    max-height: min(90vh, 820px);
    overflow: auto;
    border: 1px solid var(--site-border-strong);
    border-radius: 16px;
    background:
        radial-gradient(circle at 85% 0%, rgba(255, 128, 225, .045), transparent 30%),
        var(--site-panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .6);
}

body .modal-overlay.active .modal-card {
    animation: siteModalIn .18s cubic-bezier(.2, .8, .2, 1);
}

@keyframes siteModalIn {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

body .modal-card > .card-header,
body .dash-modal .card-header,
body .support-ticket-head {
    min-height: 62px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--site-border) !important;
}

body .modal-card > .card-body {
    padding: 18px;
}

body .modal-card .card-title {
    font-size: 17px !important;
    letter-spacing: -.025em;
}

body .modal-card .icon-btn {
    width: 32px;
    height: 32px;
}

body .modal-card .form-group:last-child {
    margin-bottom: 0;
}

/* Confirm dialog */
body .confirm-overlay {
    z-index: 12000;
    padding: 20px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(9px);
}

body .confirm-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 420px);
    padding: 22px;
    border: 1px solid var(--site-border-strong);
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 0%, rgba(239, 68, 68, .06), transparent 34%),
        var(--site-panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .65);
}

body .confirm-card::before {
    content: "";
    position: absolute;
    inset: 0 22px auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--site-red), transparent);
    opacity: .7;
}

body .confirm-overlay.is-open .confirm-card {
    animation: siteModalIn .18s cubic-bezier(.2, .8, .2, 1);
}

body .confirm-title {
    margin-bottom: 7px;
    color: var(--site-text);
    font-size: 17px;
    letter-spacing: -.025em;
}

body .confirm-message {
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.55;
}

body .confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

body .confirm-btn-ok {
    border-color: rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .12);
    color: #fca5a5;
}

body .confirm-btn-ok:hover {
    border-color: rgba(239, 68, 68, .55);
    background: rgba(239, 68, 68, .2);
    color: #fecaca;
}

/* Toasts */
body .toast-container {
    z-index: 13000;
}

body .toast {
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: min(390px, calc(100vw - 24px));
    border: 1px solid var(--site-border-strong);
    border-radius: 13px;
    background: rgba(20, 20, 22, .96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    backdrop-filter: blur(14px);
}

body .toast::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--site-dim);
}

body .toast.success::before { background: var(--site-green); }
body .toast.error::before { background: var(--site-red); }
body .toast.warning::before { background: var(--site-orange); }

body .toast-body {
    padding: 12px 14px 12px 16px;
}

body .toast-message {
    color: var(--site-text);
    font-size: 13px;
}

body .toast-close {
    border-radius: 8px;
    color: var(--site-muted);
}

body .toast-close:hover {
    background: var(--site-hover);
    color: var(--site-text);
}

/* Store */
body .store-container {
    padding: 28px 0 52px;
}

body .store-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

body .store-kicker {
    margin-bottom: 6px;
    color: var(--site-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body .store-hero h1 {
    margin: 0;
    color: var(--site-text);
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -.04em;
}

body .store-hero p {
    margin: 6px 0 0;
    color: var(--site-muted);
    font-size: 13.5px;
}

body .store-summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-panel);
    color: var(--site-muted);
    font-size: 11px;
    white-space: nowrap;
}

body .store-summary strong {
    color: var(--site-text);
    font-size: 12px;
}

body .store-summary-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--site-green);
    box-shadow: 0 0 8px rgba(255, 128, 225, .55);
}

body .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 16px;
}

body .store-card {
    position: relative;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--site-panel), var(--site-sidebar));
    box-shadow: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

body .store-card:not(.is-disabled):hover {
    border-color: var(--site-border-strong);
    background: var(--site-panel-2);
    transform: translateY(-3px);
}

body .store-card-media {
    height: 166px;
    border-bottom: 1px solid var(--site-border);
    background: var(--site-bg);
}

body .store-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(9, 9, 11, .72));
    pointer-events: none;
}

body .store-card-badge {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

body .store-card-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

body .store-card-body {
    padding: 17px;
}

body .store-card-title {
    font-size: 16px;
    font-weight: 700;
}

body .store-card-foot {
    padding-top: 14px;
}

body .store-product-dialog {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--site-border-strong);
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 128, 225, .04), transparent 30%),
        var(--site-panel);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .65);
}

body .store-product-overlay {
    padding: 22px;
    place-items: center !important;
    align-items: center !important;
    justify-items: center !important;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(10px);
}

body .store-product-dialog {
    position: absolute;
    top: clamp(72px, 9vh, 104px);
    left: 50%;
    width: min(920px, calc(100vw - 44px));
    max-height: calc(100vh - clamp(72px, 9vh, 104px) - 20px);
    margin: 0;
    transform: translateX(-50%);
}

body .store-product-overlay.active .store-product-dialog,
body .store-product-overlay:not([hidden]) .store-product-dialog {
    animation: siteStoreModalIn .2s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes siteStoreModalIn {
    from { opacity: 0; transform: translate(-50%, 10px) scale(.98); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

body .store-product-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--site-border-strong);
    border-radius: 10px;
    background: var(--site-panel-2);
    color: var(--site-dim);
}

body .store-product-close:hover {
    border-color: rgba(255, 255, 255, .18);
    background: var(--site-hover);
    color: var(--site-text);
}

body .store-product-header {
    min-height: 76px;
    padding: 13px 58px 13px 15px;
    border-bottom: 1px solid var(--site-border);
    background:
        linear-gradient(90deg, rgba(255, 128, 225, .025), transparent 35%),
        var(--site-panel);
}

body .store-product-thumb {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-color: var(--site-border-strong);
    border-radius: 11px;
}

body .store-product-header-top h2 {
    font-size: 17px;
}

body .store-product-header-top .store-card-badge {
    padding: 4px 7px;
    font-size: 9px;
}

body .store-product-header-meta > p {
    margin-top: 4px;
    color: var(--site-dim);
    font-size: 10px;
}

body .store-product-body {
    display: flex;
    flex-direction: column;
    background: var(--site-bg);
}

body .store-product-main {
    order: 2;
    flex: 1 1 auto;
    padding: 15px;
    border: 0;
}

body .store-product-section-label,
body .store-product-side-label {
    margin-bottom: 10px;
    color: var(--site-dim);
    font-size: 9px;
    letter-spacing: .075em;
}

body .store-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body .store-feature-item {
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--site-border);
    border-radius: 11px;
    background: var(--site-panel);
}

body .store-feature-item:only-child {
    grid-column: 1 / -1;
}

body .store-feature-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-color: rgba(255, 128, 225, .16);
    border-radius: 7px;
    background: rgba(255, 128, 225, .055);
    color: var(--site-green);
    font-size: 9px;
}

body .store-feature-copy {
    flex: 1;
}

body .store-feature-copy strong {
    color: var(--site-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -.01em;
}

body .store-feature-copy p {
    margin-top: 6px;
    color: var(--site-muted);
    font-size: 10px;
    line-height: 1.55;
}

body .store-feature-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

body .store-feature-points li {
    position: relative;
    min-width: 0;
    padding-left: 10px;
    color: var(--site-muted);
    font-size: 9px;
    line-height: 1.4;
}

body .store-feature-points li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--site-green);
    opacity: .7;
}

body .store-product-side {
    order: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 180px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--site-border);
    background: var(--site-panel);
}

body .store-product-side-label {
    margin: 0;
    white-space: nowrap;
}

body .store-product-quick-prices {
    flex-direction: row;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
}

body .store-product-quick-price {
    flex: 1 1 150px;
    min-width: 145px;
    position: relative;
    min-height: 46px;
    padding: 9px 10px 9px 34px;
    border-color: var(--site-border);
    border-radius: 9px;
    background: var(--site-bg);
}

body .store-product-quick-price::before {
    content: "";
    position: absolute;
    left: 11px;
    width: 11px;
    height: 11px;
    border: 1px solid var(--site-border-strong);
    border-radius: 50%;
    background: var(--site-panel);
}

body .store-product-quick-price:hover:not(.is-disabled) {
    border-color: var(--site-border-strong);
    background: var(--site-hover);
}

body .store-product-quick-price.is-selected {
    border-color: rgba(255, 128, 225, .3);
    background: rgba(255, 128, 225, .045);
    box-shadow: none;
}

body .store-product-quick-price.is-selected::before {
    border: 3px solid var(--site-panel);
    background: var(--site-green);
    box-shadow: 0 0 0 1px rgba(255, 128, 225, .35);
}

body .store-product-quick-price span {
    color: var(--site-muted);
    font-size: 10px;
}

body .store-product-quick-price strong {
    color: var(--site-text);
    font-size: 11px;
}

body .store-product-side > .btn {
    width: 180px;
    min-height: 42px;
    margin: 0;
    border-color: rgba(255, 128, 225, .26);
    border-radius: 10px;
    background: rgba(255, 128, 225, .1);
    color: #ffc4f0;
    font-size: 11px;
    font-weight: 700;
}

body .store-product-side > .btn:hover {
    border-color: rgba(255, 128, 225, .4);
    background: rgba(255, 128, 225, .16);
    color: #bbf7d0;
}

body .store-product-side,
body .store-feature-item,
body .store-product-price-option {
    border-color: var(--site-border);
}

/* Messages */
body .dm-page {
    padding-top: 28px;
    padding-bottom: 48px;
}

body .dm-container {
    overflow: hidden;
    min-height: 680px;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: var(--site-panel);
}

body .dm-sidebar {
    border-right: 1px solid var(--site-border);
    background: linear-gradient(180deg, var(--site-panel), var(--site-sidebar));
}

body .dm-search {
    border-bottom: 1px solid var(--site-border);
}

body .dm-search-wrap {
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-bg);
}

body .dm-search-wrap:focus-within {
    border-color: var(--site-green);
    box-shadow: 0 0 0 3px rgba(255, 128, 225, .1);
}

body .dm-conv-item {
    margin: 3px 7px;
    border: 1px solid transparent;
    border-radius: 11px;
}

body .dm-conv-item:hover {
    border-color: var(--site-border);
    background: var(--site-hover);
}

body .dm-conv-item.active {
    border-color: var(--site-border-strong);
    background: var(--site-panel-2);
    box-shadow: inset 3px 0 0 var(--site-green);
}

body .dm-chat {
    background:
        radial-gradient(circle at 70% 0%, rgba(255, 128, 225, .025), transparent 30%),
        var(--site-panel);
}

body .dm-chat-header,
body .dm-input-area {
    border-color: var(--site-border);
    background: var(--site-panel);
}

body .dm-messages {
    background:
        linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
    background-size: 28px 28px;
}

body .dm-msg.mine .dm-msg-bubble,
body .dm-msg.sent .dm-msg-bubble {
    border: 1px solid rgba(255, 128, 225, .2);
    background: rgba(255, 128, 225, .09);
}

body .dm-msg.theirs .dm-msg-bubble,
body .dm-msg.received .dm-msg-bubble {
    border: 1px solid var(--site-border-strong);
    background: var(--site-panel-2);
    color: var(--site-text);
}

body .dm-input-wrap {
    border: 1px solid var(--site-border-strong);
    border-radius: 10px;
    background: var(--site-bg);
}

body .dm-input-wrap:focus-within {
    border-color: var(--site-green);
    box-shadow: 0 0 0 3px rgba(255, 128, 225, .1);
}

body .dm-send-btn {
    border: 0;
    border-radius: 10px;
    background: #fafafa;
    color: #09090b;
}

/* Settings, profile, support, status, download */
body .settings-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 14px;
}

body .settings-nav {
    gap: 2px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    background: var(--site-panel);
}

body .settings-nav-btn {
    min-height: 38px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--site-muted);
    font-size: 11px;
    font-weight: 580;
}

body .settings-nav-btn:hover {
    background: var(--site-hover);
    color: var(--site-text);
}

body .settings-nav-btn.active {
    border-color: var(--site-border);
    background: var(--site-hover);
    color: var(--site-text);
    box-shadow: inset 2px 0 0 var(--site-green);
}

body .settings-nav-btn i {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--site-dim);
    font-size: 10px;
}

body .settings-nav-btn.active i {
    border-color: rgba(255, 128, 225, .14);
    background: rgba(255, 128, 225, .06);
    color: var(--site-green);
}

body .settings-main,
body .settings-stack {
    gap: 10px;
}

body .settings-tab-content > .dash-panel,
body .settings-stack > .dash-panel {
    border-radius: 14px;
}

body .settings-tab-content .dash-panel-head {
    min-height: 55px;
    padding: 12px 15px;
}

body .settings-tab-content .settings-panel-body {
    padding: 10px;
}

body .settings-row-list {
    gap: 5px;
}

body .settings-tab-content .settings-row {
    min-height: 56px;
    padding: 9px 10px;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-bg);
}

body .settings-tab-content .settings-row:hover {
    border-color: var(--site-border-strong);
    background: var(--site-hover);
}

body .settings-row-title {
    color: var(--site-text);
    font-size: 11px;
    font-weight: 650;
}

body .settings-row-sub,
body .settings-hint {
    color: var(--site-dim);
    font-size: 10px;
}

body .settings-row-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 11px;
}

body .settings-tab-content .btn {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 10px;
}

body .settings-tab-content .btn-primary {
    border-color: rgba(255, 128, 225, .24);
    background: rgba(255, 128, 225, .1);
    color: #ffc4f0;
}

body .settings-tab-content .btn-primary:hover {
    border-color: rgba(255, 128, 225, .38);
    background: rgba(255, 128, 225, .16);
    color: #bbf7d0;
}

body .settings-profile-panel,
body .profile-shell {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: var(--site-panel);
}

body .profile-action-btn,
body .profile-comment-send {
    border-radius: 10px;
}

body .profile-action-primary,
body .profile-comment-send {
    border-color: transparent;
    background: #fafafa;
    color: #09090b;
}

body .profile-about,
body .profile-subs,
body .profile-comments,
body .profile-spotify-card {
    border-color: var(--site-border);
    border-radius: 14px;
    background: var(--site-panel);
}

body .support-hwid,
body .download-hero {
    border-color: var(--site-border);
    border-radius: 12px;
    background: var(--site-panel);
}

body .support-faq-subtitle,
body .download-panel-sub {
    margin-top: 4px;
    color: var(--site-dim);
    font-size: 11px;
}

body .support-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 10px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 11px;
    background: var(--site-bg);
}

body .support-faq .faq-item {
    align-self: start;
    min-height: 55px;
    border: 0;
    border-bottom: 1px solid var(--site-border);
    border-radius: 0;
    background: transparent;
    transition: background .15s ease;
}

body .support-faq .faq-item:nth-child(odd) {
    border-right: 1px solid var(--site-border);
}

body .support-faq .faq-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

body .support-faq .faq-item:hover,
body .support-faq .faq-item.is-open {
    background: var(--site-hover);
}

body .support-faq .faq-question {
    gap: 9px;
    min-height: 54px;
    padding: 11px 13px;
    border: 0;
    color: var(--site-text);
    font-size: 11px;
    font-weight: 600;
}

body .support-faq .faq-question::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 15px;
    border-radius: 3px;
    background: var(--site-border-strong);
    transition: background .15s ease;
}

body .support-faq .faq-item:hover .faq-question::before,
body .support-faq .faq-item.is-open .faq-question::before {
    background: var(--site-green);
}

body .support-faq .faq-question i {
    margin-left: auto;
    color: var(--site-dim);
}

body .support-faq .faq-question:hover {
    background: transparent;
    color: var(--site-text);
}

body .support-faq .faq-answer {
    margin: 0;
    padding: 0 30px 13px 25px;
    border: 0;
    color: var(--site-muted);
    font-size: 11px;
    line-height: 1.6;
}

body .status-badge,
body .support-status,
body .download-chip {
    border-radius: 999px;
}

body .upload-drop-zone,
body .support-shot-zone {
    border-color: var(--site-border-strong);
    border-radius: 12px;
    background: var(--site-bg);
}

body .upload-drop-zone:hover,
body .support-shot-zone:hover {
    border-color: var(--site-green);
    background: rgba(255, 128, 225, .035);
}

body .settings-row-icon,
body .support-hwid-icon,
body .download-step-num {
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-panel-2);
}

/* Download release */
body .download-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-panel);
    color: var(--site-muted);
    font-size: 11px;
    font-weight: 650;
}

body .download-chip.is-ready {
    color: var(--site-green);
}

body .download-release {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    margin-bottom: 16px;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 128, 225, .055), transparent 32%),
        var(--site-panel);
}

body .download-release-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--site-green), transparent);
}

body .download-release-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 22px;
}

body .download-release-icon {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--site-border-strong);
    border-radius: 15px;
    background: var(--site-bg);
    color: var(--site-green);
    font-size: 21px;
    box-shadow: inset 0 0 24px rgba(255, 128, 225, .035);
}

body .download-release-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
}

body .download-release-kicker {
    margin-bottom: 2px;
    color: var(--site-dim);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body .download-release-heading h2 {
    margin: 0;
    color: var(--site-text);
    font-size: 18px;
    letter-spacing: -.025em;
}

body .download-release .download-meta-row {
    gap: 7px 14px;
    margin: 10px 0 0;
    color: var(--site-dim);
    font-size: 11px;
}

body .download-release .download-hero-text {
    max-width: 620px;
    color: var(--site-muted);
}

body .download-release-action {
    display: flex;
    align-items: center;
    padding: 20px 22px;
    border-left: 1px solid var(--site-border);
}

body .download-btn {
    min-width: 190px;
    justify-content: center;
    padding: 10px 14px;
}

body .download-btn > span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

body .download-btn strong {
    font-size: 12px;
}

body .download-btn small {
    color: currentColor;
    font-size: 9px;
    font-weight: 500;
    opacity: .65;
}

body .download-grid {
    gap: 16px;
}

body .download-steps,
body .download-notes {
    display: grid;
    gap: 6px;
    padding: 8px;
}

body .download-steps li {
    align-items: center;
    min-height: 54px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
}

body .download-steps li:hover,
body .download-notes li:hover {
    background: var(--site-hover);
}

body .download-step-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: var(--site-green);
}

body .download-notes li {
    display: grid;
    grid-template-columns: 30px 90px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
}

body .download-note-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: var(--site-bg);
    color: var(--site-dim);
    font-size: 11px;
}

body .download-note-label {
    font-size: 11px;
}

body .download-note-text {
    font-size: 11px;
    line-height: 1.5;
}

body .download-empty-action {
    margin-top: 12px;
}

body .status-list {
    gap: 3px;
    padding: 8px;
}

body .status-item {
    min-height: 62px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    transition: background .15s ease;
}

body .status-item:hover {
    background: var(--site-hover);
}

body .status-img {
    border: 1px solid var(--site-border-strong);
    border-radius: 9px;
}

body .status-name {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 650;
}

body .status-meta {
    gap: 5px 12px;
    color: var(--site-dim);
    font-size: 10px;
}

body .status-badge {
    min-width: 90px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .015em;
}

body .status-badge::before {
    width: 5px;
    height: 5px;
    box-shadow: none;
}

body .status-page .dash-meta {
    padding: 4px 8px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-panel-2);
    color: var(--site-dim);
    font-size: 9px;
}

body .support-list {
    gap: 3px;
    min-height: 0;
    padding: 8px;
}

body .support-ticket-row {
    min-height: 57px;
    margin: 0;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    transition: background .15s ease;
}

body .support-ticket-row:hover {
    border-color: transparent;
    background: var(--site-hover);
}

body .support-ticket-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    color: var(--site-text);
    font-size: 12px;
    font-weight: 650;
}

body .support-cat {
    flex-shrink: 0;
    margin: 0;
    padding: 3px 6px;
    border: 1px solid var(--site-border);
    background: var(--site-panel-2);
    font-size: 8px;
    letter-spacing: .04em;
}

body .support-ticket-meta {
    color: var(--site-dim);
    font-size: 9px;
}

body .support-status {
    min-width: 55px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9px;
    text-align: center;
}

body .support-status.is-closed {
    border-color: var(--site-border);
    background: transparent;
    color: var(--site-dim);
}

body .support-create-modal,
body .support-ticket-modal {
    border-radius: 16px;
}

body .support-ticket-modal {
    width: min(620px, calc(100vw - 24px));
    max-height: min(760px, calc(100vh - 40px));
    border: 1px solid var(--site-border-strong);
    background: var(--site-sidebar);
}

body .support-ticket-modal .support-ticket-head {
    align-items: center;
    min-height: 66px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--site-border);
    background: var(--site-panel);
}

body .support-ticket-kicker {
    margin-bottom: 3px;
    color: var(--site-dim);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body .support-ticket-modal .card-title {
    color: var(--site-text);
    font-size: 14px;
    font-weight: 680;
}

body .support-ticket-modal .support-ticket-head .icon-btn {
    width: 31px;
    height: 31px;
    border: 1px solid var(--site-border);
    border-radius: 9px;
    background: var(--site-panel-2);
    color: var(--site-dim);
}

body .support-ticket-modal .support-ticket-head .icon-btn:hover {
    background: var(--site-hover);
    color: var(--site-text);
}

body .support-ticket-modal .ticket-chat-box {
    gap: 8px;
    min-height: 380px;
    padding: 14px;
    background:
        linear-gradient(rgba(255, 255, 255, .008) 1px, transparent 1px),
        var(--site-bg);
    background-size: 100% 32px;
}

body .support-ticket-modal .chat-msg {
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--site-border);
    border-radius: 11px;
    background: var(--site-panel);
}

body .support-ticket-modal .chat-msg.admin {
    border-color: rgba(239, 68, 68, .13);
    background:
        linear-gradient(90deg, rgba(239, 68, 68, .025), transparent 30%),
        var(--site-panel);
}

body .support-ticket-modal .chat-msg.staff {
    border-color: rgba(56, 189, 248, .13);
}

body .support-ticket-modal .chat-avatar {
    width: 30px;
    height: 30px;
    margin: 0;
    border: 1px solid var(--site-border-strong);
    border-radius: 8px;
}

body .support-ticket-modal .chat-content {
    min-width: 0;
}

body .support-ticket-modal .chat-header {
    gap: 6px;
    min-height: 20px;
    margin-bottom: 4px;
}

body .support-ticket-modal .chat-username {
    color: var(--site-text);
    font-size: 11px;
    font-weight: 680;
}

body .support-ticket-modal .role-badge {
    padding: 2px 5px;
    border-radius: 6px;
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .045em;
}

body .support-ticket-modal .chat-time {
    margin-left: auto;
    color: var(--site-dim);
    font-size: 8px;
    opacity: 1;
}

body .support-ticket-modal .chat-bubble,
body .support-ticket-modal .chat-msg.admin .chat-bubble,
body .support-ticket-modal .chat-msg.staff .chat-bubble {
    max-width: 100% !important;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--site-muted);
    font-size: 12px;
    line-height: 1.6;
}

body .support-ticket-modal .support-attach-preview,
body .support-ticket-modal .support-attach-file {
    margin-top: 8px;
    border-color: var(--site-border);
    border-radius: 9px;
    background: var(--site-bg);
}

body .support-modal .support-create-actions,
body .support-modal .support-modal-actions,
body .support-modal .support-reply-row {
    border-top: 1px solid var(--site-border);
    background: var(--site-panel);
}

body .support-ticket-modal .support-reply-row {
    gap: 7px;
    padding: 10px;
}

body .support-ticket-modal .support-reply-row .input-field {
    min-height: 38px;
    border-radius: 9px;
    background: var(--site-bg);
    font-size: 11px;
}

body .support-ticket-modal .support-attach-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--site-border);
    border-radius: 9px;
    background: var(--site-bg);
}

body .support-ticket-modal .support-send-btn {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 10px;
}

body .friend-picker-panel {
    padding: 8px;
}

body .friend-picker-search-wrap {
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-bg);
}

body .friend-picker-option {
    border-radius: 9px;
}

body .friend-picker-option:hover,
body .friend-picker-option.is-selected {
    background: var(--site-hover);
}

body .settings-check,
body .settings-check-block {
    border-color: var(--site-border);
    border-radius: 11px;
    background: var(--site-panel);
}

body .custom-checkbox {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 19px;
    margin: 0;
    appearance: none;
    border: 1px solid var(--site-border-strong);
    border-radius: 999px;
    background: var(--site-bg);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

body .custom-checkbox::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: var(--site-dim);
    transform: none;
    transition: left .15s ease, background .15s ease;
}

body .custom-checkbox:hover {
    border-color: rgba(255, 128, 225, .3);
}

body .custom-checkbox:checked {
    border-color: rgba(255, 128, 225, .38);
    background: rgba(255, 128, 225, .13);
}

body .custom-checkbox:checked::after {
    top: 3px;
    left: 18px;
    width: 11px;
    height: 11px;
    border: 0;
    background: var(--site-green);
    transform: none;
}

body .custom-checkbox:focus-visible {
    outline: 2px solid rgba(255, 128, 225, .3);
    outline-offset: 2px;
}

body .settings-tab-content .settings-check-list {
    gap: 4px;
}

body .settings-tab-content .settings-check {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 51px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--site-bg);
}

body .settings-tab-content .settings-check > .custom-checkbox {
    grid-column: 2;
    grid-row: 1;
}

body .settings-tab-content .settings-check > span {
    grid-column: 1;
    grid-row: 1;
}

body .settings-tab-content .settings-check:hover {
    border-color: var(--site-border);
    background: var(--site-hover);
}

body .settings-check-strong {
    display: block;
    color: var(--site-text);
    font-size: 11px;
    font-weight: 650;
}

body .settings-tab-content .settings-check > span .settings-hint {
    margin: 1px 0 0;
    padding: 0;
}

body #tab-notifications .settings-form > .btn[type="submit"] {
    align-self: flex-end;
    width: auto;
    min-width: 120px;
}

/* Profile settings */
body .settings-page {
    gap: 18px;
}

body .settings-profile-panel {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--site-border-strong);
    border-radius: 16px;
    background: var(--site-sidebar);
}

body .settings-profile-banner {
    height: 150px;
    border-bottom: 0;
    background-color: var(--site-bg);
}

body .settings-profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--site-sidebar), rgba(9, 9, 11, .08) 65%);
}

body .settings-profile-panel.has-accent .settings-profile-banner {
    border-bottom: 0;
}

body .settings-profile-body {
    gap: 15px;
    padding: 0 16px 16px;
}

body .settings-profile-avatar-wrap {
    z-index: 2;
    margin-top: -39px;
}

body .settings-profile-avatar {
    width: 82px;
    height: 82px;
    border: 4px solid var(--site-sidebar);
    border-radius: 15px;
    background: var(--site-panel);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}

body .settings-profile-info {
    gap: 8px;
    padding-top: 12px;
}

body .settings-profile-topline {
    gap: 7px;
}

body .settings-profile-name {
    margin-right: 4px;
    font-size: 19px;
    letter-spacing: -.03em;
}

body .settings-profile-uid,
body .settings-profile-role,
body .settings-profile-views {
    min-height: 25px;
    padding: 4px 7px;
    border: 1px solid var(--site-border);
    border-radius: 7px;
    background: var(--site-panel);
    color: var(--site-dim);
    font-size: 9px;
}

body .settings-profile-uid:hover {
    border-color: var(--site-border-strong);
    color: var(--site-text);
}

body .settings-profile-badges {
    gap: 5px;
}

body .settings-profile-meta {
    gap: 5px;
}

body .settings-profile-meta > span,
body .settings-profile-meta > a,
body .settings-profile-dob {
    min-height: 25px;
    padding: 4px 7px;
    border: 1px solid var(--site-border);
    border-radius: 7px;
    background: var(--site-bg);
    color: var(--site-muted);
    font-size: 9px;
}

body .settings-profile-meta > a:hover {
    border-color: var(--site-border-strong);
    color: var(--site-text);
}

body #tab-profile {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body #tab-profile:not([style*="display: none"]) {
    display: flex !important;
}

body .settings-integration-panel {
    margin: 0;
}

body .settings-integration-panel .settings-panel-body {
    padding: 9px;
}

body .settings-integration-panel .settings-row {
    min-height: 58px;
    padding: 9px 10px;
    border: 0;
    background: transparent;
}

body .settings-profile-editor {
    margin-top: 2px;
}

body .settings-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    padding: 16px;
}

body .settings-profile-form > * {
    grid-column: 1 / -1;
}

body .settings-profile-form > .settings-half-field {
    grid-column: span 1;
}

body .settings-profile-form .support-field {
    gap: 7px;
    margin: 0;
}

body .settings-profile-form .support-field > span {
    color: var(--site-muted);
    font-size: 10px;
    font-weight: 650;
}

body .settings-profile-form .input-field {
    min-height: 39px;
    font-size: 11px;
}

body .settings-profile-form textarea.input-field {
    min-height: 96px;
}

body .settings-accent-bar {
    min-height: 50px;
    padding: 8px 10px;
    border-color: var(--site-border);
    border-radius: 10px;
    background: var(--site-bg);
}

body .settings-accent-swatch {
    width: 24px;
    height: 24px;
    border: 2px solid var(--site-panel-2);
    border-radius: 7px;
}

body .settings-accent-swatch:hover {
    transform: translateY(-1px);
}

body .settings-accent-custom {
    border-color: var(--site-border);
    border-radius: 8px;
    background: var(--site-panel);
    font-size: 10px;
}

body .settings-profile-form .settings-check-block {
    gap: 5px;
    padding: 10px 11px;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-bg);
}

body .settings-profile-form .settings-check-list {
    gap: 6px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--site-border);
    border-radius: 9px;
    background: var(--site-bg);
}

body .settings-profile-form .settings-check {
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 10px;
}

body .settings-page .settings-profile-form .upload-drop-zone {
    min-height: 105px;
    padding: 18px 12px;
    border-color: var(--site-border-strong);
    border-radius: 10px;
    background: var(--site-bg);
}

body .settings-page .settings-profile-form .upload-drop-zone:hover,
body .settings-page .settings-profile-form .upload-drop-zone.dragging {
    border-color: rgba(255, 128, 225, .3);
    background: rgba(255, 128, 225, .025);
}

body .settings-page .settings-profile-form .upload-drop-zone i {
    color: var(--site-green);
    font-size: 18px;
}

body .settings-page .settings-profile-form .upload-drop-zone > div {
    color: var(--site-muted);
    font-size: 10px;
}

body .settings-profile-form > .btn[type="submit"] {
    justify-self: end;
    min-width: 130px;
}

/* User profile */
body .profile-page {
    width: min(100% - 36px, 1120px);
    margin: 28px auto 48px;
}

body .profile-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body .profile-banner {
    overflow: hidden;
    height: 205px;
    border: 1px solid var(--site-border-strong);
    border-radius: 16px;
    background-color: var(--site-bg);
}

body .profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 9, 11, .04), rgba(9, 9, 11, .68)),
        linear-gradient(90deg, rgba(9, 9, 11, .18), transparent 55%);
}

body .profile-banner-fade {
    z-index: 1;
    height: 70px;
    background: linear-gradient(to top, rgba(9, 9, 11, .78), transparent);
}

body .profile-shell.has-accent .profile-banner {
    border-bottom: 0;
}

body .profile-body {
    padding: 0 14px 14px;
}

body .profile-head {
    align-items: flex-start;
    gap: 18px;
    margin-top: -50px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body .profile-avatar-wrap {
    z-index: 2;
}

body .profile-avatar {
    width: 100px;
    height: 100px;
    border: 4px solid #09090b;
    border-radius: 16px;
    background: var(--site-panel);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .48);
}

body .profile-online-dot {
    right: 5px;
    bottom: 5px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--site-sidebar);
    box-shadow: none;
}

body .profile-head-main {
    gap: 8px;
    padding: 43px 0 2px;
}

body .profile-name {
    margin-bottom: 5px;
    color: var(--site-text);
    font-size: 26px;
    font-weight: 720;
    letter-spacing: -.04em;
}

body .profile-flag {
    border: 1px solid var(--site-border-strong);
    border-radius: 4px;
}

body .profile-subline {
    gap: 7px;
    color: var(--site-dim);
    font-size: 10px;
}

body .profile-dot-sep {
    color: var(--site-border-strong);
}

body .profile-actions {
    gap: 7px;
}

body .profile-action-btn {
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--site-border-strong);
    border-radius: 9px;
    background: var(--site-panel);
    color: var(--site-muted);
    font-size: 11px;
    font-weight: 650;
}

body .profile-action-btn:hover {
    border-color: rgba(255, 255, 255, .18);
    background: var(--site-hover);
    color: var(--site-text);
}

body .profile-action-btn.is-following {
    border-color: rgba(255, 128, 225, .22);
    background: rgba(255, 128, 225, .07);
    color: #ffc4f0;
}

body .profile-action-primary {
    border-color: var(--site-text);
    background: var(--site-text);
    color: var(--site-bg);
}

body .profile-action-primary:hover {
    border-color: #fff;
    background: #fff;
    color: #09090b;
}

body .profile-badges {
    gap: 5px;
}

body .profile-detail-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

body .profile-badge,
body .settings-badge-chip {
    border-color: var(--site-border);
    border-radius: 999px;
    background: var(--site-panel-2);
}

body .profile-badge {
    width: 27px;
    height: 27px;
    border-radius: 8px;
}

body .profile-stats {
    gap: 10px;
    padding-top: 0;
}

body .profile-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 20px;
    padding: 0 10px 0 0;
    border: 0;
    border-right: 1px solid var(--site-border);
    border-radius: 0;
    background: transparent;
    color: var(--site-dim);
    font-size: 10px;
}

body .profile-stat:last-child {
    padding-right: 0;
    border-right: 0;
}

body .profile-stat strong {
    margin: 0;
    color: var(--site-text);
    font-size: 11px;
}

body .profile-split {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .85fr);
    gap: 12px;
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
}

body .profile-about,
body .profile-subs,
body .profile-spotify {
    padding: 14px;
    border: 1px solid var(--site-border);
    border-radius: 13px;
    background: var(--site-panel);
}

body .profile-about {
    grid-column: 1;
    grid-row: 1 / span 2;
}

body .profile-about:only-child {
    grid-column: 1 / -1;
}

body .profile-subs,
body .profile-spotify {
    grid-column: 2;
}

body .profile-spotify {
    margin: 0;
}

body .profile-section-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--site-dim);
    font-size: 9px;
    font-weight: 720;
    letter-spacing: .085em;
}

body .profile-section-label > i {
    color: var(--site-green);
    font-size: 9px;
}

body .profile-subline > span:first-child {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--site-muted) !important;
    font-size: 10px;
    font-weight: 600;
}

body .profile-bio {
    min-height: 45px;
    margin-bottom: 16px;
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.65;
}

body .profile-bio.is-empty,
body .profile-empty {
    color: var(--site-dim);
}

body .profile-meta-row {
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid var(--site-border);
}

body .profile-meta-row > span,
body .profile-meta-row > a {
    min-height: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--site-muted);
    font-size: 10px;
}

body .profile-meta-row a:hover {
    color: var(--site-text);
}

body .profile-sub-list {
    gap: 5px;
}

body .profile-sub-item {
    min-height: 40px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--site-border);
    border-radius: 0;
    background: transparent;
}

body .profile-sub-item:last-child {
    border-bottom: 0;
}

body .profile-sub-name {
    color: var(--site-text);
    font-size: 11px;
}

body .profile-sub-status {
    color: #ffc4f0;
    font-size: 9px;
}

body .profile-spotify-card {
    padding: 10px;
    border-color: rgba(255, 128, 225, .15);
    border-radius: 10px;
    background: rgba(255, 128, 225, .035);
}

body .profile-comments {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--site-border);
    border-radius: 13px;
    background: var(--site-panel);
}

body .profile-comment-compose {
    gap: 9px;
    margin: 0 0 8px;
    padding: 9px;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-bg);
}

body .profile-comment-compose img {
    width: 30px;
    height: 30px;
    border: 1px solid var(--site-border);
    border-radius: 8px;
}

body .profile-comment-compose textarea {
    color: var(--site-text);
    font-size: 12px;
}

body .profile-comment-compose textarea::placeholder {
    color: var(--site-dim);
}

body .profile-comment-send {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 1px solid var(--site-border-strong);
    border-radius: 8px;
    background: var(--site-panel-2);
    color: var(--site-muted);
}

body .profile-comment-send:hover {
    background: var(--site-hover);
    color: var(--site-text);
}

body .profile-comments .comment-item {
    margin-top: 6px;
    padding: 10px;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-bg);
}

body .profile-comments .comment-empty {
    padding: 22px 8px 8px;
    color: var(--site-dim);
    text-align: center;
}

body .profile-locked {
    padding: 70px 24px;
    border: 1px solid var(--site-border-strong);
    border-radius: 16px;
    background: var(--site-panel);
}

body .download-btn {
    min-height: 42px;
}

@media (max-width: 980px) {
    body .navbar {
        padding: 0 18px;
    }
    body .nav-links {
        border: 0;
        background: var(--site-panel);
    }
    body .download-release {
        grid-template-columns: 1fr;
    }
    body .download-release-action {
        padding: 14px 22px 20px 96px;
        border-top: 1px solid var(--site-border);
        border-left: 0;
    }
    body .profile-split {
        grid-template-columns: 1fr;
    }
    body .profile-about,
    body .profile-subs,
    body .profile-spotify {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 720px) {
    body .container,
    body .dash,
    body .profile-page,
    body .store-container,
    body .dm-page {
        width: min(100% - 24px, 1240px);
    }
    body .auth-container {
        padding-top: 38px;
    }
    body .auth-card {
        padding: 22px;
    }
    body .dash-shout-messages {
        flex-basis: 320px;
        height: 320px !important;
    }
    body .modal-overlay,
    body .store-product-overlay,
    body .confirm-overlay {
        padding: 10px;
    }
    body .modal-card,
    body .store-product-dialog {
        max-height: 94vh;
    }
    body .store-product-overlay {
        padding: 12px;
        place-items: center !important;
    }
    body .store-product-dialog {
        top: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border: 1px solid var(--site-border-strong);
        border-radius: 16px;
    }
    body .store-product-header {
        min-height: 68px;
        padding: 10px 50px 10px 11px;
    }
    body .store-product-thumb {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }
    body .store-product-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    body .store-product-main {
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--site-border);
    }
    body .store-product-side {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 210px;
    }
    body .store-product-side-label {
        margin-bottom: 0;
    }
    body .store-product-quick-prices {
        width: 100%;
    }
    body .store-product-side > .btn {
        width: 100%;
    }
    body .store-feature-grid {
        grid-template-columns: 1fr;
    }
    body .store-feature-points {
        grid-template-columns: 1fr;
    }
    body .toast {
        min-width: 0;
        width: calc(100vw - 24px);
    }
    body .dash-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
    body .dash-hero-actions {
        width: 100%;
    }
    body .dash-hero-actions .btn {
        flex: 1;
    }
    body .dash-licenses-list {
        display: grid;
        grid-template-columns: 1fr;
    }
    body .dash-license-chip {
        width: 100%;
    }
    body .product-grid {
        grid-template-columns: 1fr;
    }
    body .store-hero {
        align-items: flex-start;
        flex-direction: column;
    }
    body .support-faq {
        grid-template-columns: 1fr;
    }
    body .support-faq .faq-item,
    body .support-faq .faq-item:nth-child(odd),
    body .support-faq .faq-item:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--site-border);
    }
    body .support-faq .faq-item:last-child {
        border-bottom: 0;
    }
    body .download-release-main {
        align-items: flex-start;
        padding: 17px;
    }
    body .download-release-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 16px;
    }
    body .download-release-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
    body .download-release-action {
        padding: 14px 17px 17px;
    }
    body .download-btn {
        width: 100%;
    }
    body .download-notes li {
        grid-template-columns: 30px minmax(0, 1fr);
    }
    body .download-note-text {
        grid-column: 2;
    }
    body .profile-page {
        width: min(100% - 24px, 1120px);
        margin-top: 18px;
    }
    body .profile-shell {
        border-radius: 14px;
    }
    body .profile-banner {
        height: 140px;
    }
    body .profile-body {
        padding: 0 13px 13px;
    }
    body .profile-head {
        gap: 10px;
        margin-top: -38px;
    }
    body .profile-avatar {
        width: 82px;
        height: 82px;
        border-radius: 14px;
    }
    body .profile-head-main {
        gap: 10px;
        padding-top: 0;
    }
    body .profile-head-top {
        gap: 12px;
    }
    body .profile-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    body .profile-action-btn {
        flex: 1;
        justify-content: center;
    }
    body .profile-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body .profile-stat {
        justify-content: center;
        padding-right: 0;
        border-right: 0;
    }
    body .profile-split {
        gap: 8px;
        margin-top: 14px;
        padding-top: 0;
    }
    body .profile-about,
    body .profile-subs,
    body .profile-spotify,
    body .profile-comments {
        padding: 13px;
        border-radius: 11px;
    }
    body .profile-meta-row > span,
    body .profile-meta-row > a {
        width: 100%;
    }
    body .settings-profile-banner {
        height: 115px;
    }
    body .settings-profile-body {
        gap: 9px;
        padding: 0 12px 12px;
    }
    body .settings-profile-avatar {
        width: 70px;
        height: 70px;
        border-radius: 13px;
    }
    body .settings-profile-topline {
        align-items: center;
    }
    body .settings-profile-views {
        width: auto;
        margin-left: 0;
    }
    body .settings-profile-meta > span,
    body .settings-profile-meta > a {
        width: 100%;
    }
    body .settings-profile-form {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    body .settings-profile-form > .settings-half-field {
        grid-column: 1;
    }
    body .settings-profile-form > .btn[type="submit"] {
        width: 100%;
        justify-self: stretch;
    }
    body .support-ticket-modal {
        max-height: calc(100vh - 20px);
    }
    body .support-ticket-modal .ticket-chat-box {
        min-height: 260px;
        padding: 9px;
    }
    body .support-ticket-modal .chat-msg {
        padding: 9px;
    }
    body .support-ticket-modal .chat-header {
        flex-wrap: wrap;
    }
    body .support-ticket-modal .chat-time {
        width: 100%;
        margin-left: 0;
    }
    body .support-ticket-modal .support-send-btn {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .modal-overlay.active .modal-card,
    body .confirm-overlay.is-open .confirm-card,
    body .store-product-overlay.active .store-product-dialog,
    body .store-product-overlay:not([hidden]) .store-product-dialog {
        animation: none;
    }
}
