:root {
    --bg: #050b14;
    --panel: rgba(15, 27, 44, 0.86);
    --panel-soft: rgba(21, 36, 58, 0.82);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #99a7ba;
    --blue: #6d7bff;
    --violet: #642ee8;
    --green: #22c55e;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% -8%, rgba(89, 113, 255, 0.22), transparent 28rem),
        radial-gradient(circle at 82% 2%, rgba(139, 64, 232, 0.17), transparent 31rem),
        linear-gradient(135deg, #06111f 0%, #050b14 48%, #071724 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
    border: 0;
    cursor: pointer;
}

img {
    display: block;
    object-fit: cover;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(19, 33, 52, 0.9), rgba(9, 17, 29, 0.9));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 280px minmax(280px, 470px) 1fr auto;
    gap: 22px;
    align-items: center;
    min-height: 78px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(5, 11, 20, 0.82);
    backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 31px;
    font-weight: 900;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 0 28px rgba(101, 75, 255, 0.3);
    transform: skew(-8deg);
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
}

.search input,
.composer input,
.comment-form input,
.chat input {
    width: 100%;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
}

.topnav {
    justify-self: end;
    display: flex;
    gap: 14px;
}

.topnav a,
.nav-popover summary {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.topnav a.active,
.nav-popover[open] summary {
    box-shadow: inset 0 -3px 0 var(--blue);
}

.topnav b,
.nav-popover b {
    position: absolute;
    top: -8px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-size: 12px;
    line-height: 21px;
    text-align: center;
}

.nav-popover {
    position: relative;
    z-index: 90;
}

.nav-popover summary {
    list-style: none;
    cursor: pointer;
}

.nav-popover summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 999;
    width: 360px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0b1524;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 18px;
    width: 12px;
    height: 12px;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    background: #0b1524;
    transform: rotate(45deg);
}

.nav-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
}

.nav-dropdown-head strong {
    font-size: 17px;
}

.nav-dropdown-head a {
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    color: #b3a5ff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: none;
}

.nav-list-item {
    display: grid !important;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    min-height: 62px;
    height: auto !important;
    padding: 9px 8px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    color: var(--text);
    box-shadow: none !important;
}

.nav-list-item:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

.nav-list-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.nav-list-item span {
    min-width: 0;
}

.nav-list-item strong,
.nav-list-item small {
    display: block;
}

.nav-list-item small {
    overflow: hidden;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nav-list-item time {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.empty-popover {
    margin: 0;
    padding: 18px 8px 10px;
    color: var(--muted);
    text-align: center;
}

.empty-state,
.empty-feed p {
    color: var(--muted);
}

.empty-state {
    margin: 10px 4px;
    line-height: 1.45;
}

.empty-state.wide {
    grid-column: 1 / -1;
    text-align: center;
}

.empty-feed {
    padding: 22px;
}

.empty-feed h2 {
    margin: 0 0 8px;
}

.empty-feed p {
    margin: 0 0 16px;
}

.empty-feed a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-weight: 900;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.profile-menu {
    position: relative;
    justify-self: end;
}

.profile-menu summary {
    list-style: none;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-pill:hover {
    background: rgba(255, 255, 255, 0.075);
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 50;
    width: 260px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(12, 22, 37, 0.98);
    box-shadow: var(--shadow);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    color: #e8edf6;
    font-weight: 650;
}

.profile-dropdown a:hover {
    background: rgba(255, 255, 255, 0.07);
}

.profile-dropdown .profile-dropdown-head {
    min-height: 58px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 12px 12px 4px 4px;
}

.profile-dropdown img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.profile-pill img,
.mini-profile img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.layout {
    display: grid;
    grid-template-columns: 280px minmax(480px, 680px) minmax(340px, 540px) 280px;
    gap: 22px;
    max-width: 1880px;
    margin: 20px auto 42px;
    padding: 0 22px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 98px;
    padding: 18px;
}

.mini-profile {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 6px 4px 20px;
}

.mini-profile strong span,
.post header strong span {
    color: #9d8cff;
    font-size: 12px;
}

small,
.metrics,
.event-row p,
.listing-row p,
.suggest-row p {
    color: var(--muted);
}

.side-menu {
    display: grid;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.side-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.side-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.side-menu .selected {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 0 28px rgba(101, 75, 255, 0.26);
}

.side-menu b {
    margin-left: auto;
    min-width: 23px;
    height: 23px;
    border-radius: 999px;
    background: #6d5bff;
    font-size: 12px;
    line-height: 23px;
    text-align: center;
}

.pages h2,
.section-head h2 {
    margin: 0;
    font-size: 18px;
}

.pages h2 {
    margin: 18px 4px 10px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}

.pages a,
.online-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 6px;
    border-radius: 12px;
}

.pages a:hover,
.online-user:hover {
    background: rgba(255, 255, 255, 0.055);
}

.pages img,
.online-user img,
.comment img,
.comment-form img,
.chat header img,
.suggest-row img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.pages strong,
.online-user strong,
.suggest-row h3 {
    display: block;
}

.pages button {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.feed,
.right-column {
    display: grid;
    gap: 16px;
}

.composer {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 15px;
    padding: 18px;
}

.composer > img,
.post header > img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.composer input {
    height: 52px;
    margin-bottom: 10px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
}

.composer-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.composer-actions button,
.post-actions button {
    min-height: 39px;
    border-radius: 12px;
    background: transparent;
    font-weight: 600;
    color: #d8dfec;
}

.composer-actions button[type="submit"] {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: white;
}

.post {
    padding: 18px;
}

.post header {
    display: flex;
    align-items: center;
    gap: 13px;
}

.post header button {
    margin-left: auto;
    background: transparent;
    color: var(--muted);
}

.post p {
    margin: 14px 0;
    line-height: 1.5;
}

.post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.metrics,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.metrics {
    padding: 13px 0;
    font-size: 14px;
}

.post-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.post-actions form,
.post-actions button {
    width: 100%;
}

.post-actions button:hover,
.composer-actions button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.post-actions .liked {
    color: #a79aff;
}

.comment {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.comment div {
    max-width: 410px;
    padding: 10px 14px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
}

.comment p {
    margin: 3px 0 4px;
}

.comment-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.comment-form input,
.chat label input {
    height: 44px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.04);
}

.right-column .panel {
    padding: 18px;
}

.section-head {
    margin-bottom: 14px;
}

.section-head a {
    color: #b3a5ff;
    font-size: 14px;
}

.story-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(62px, 1fr));
    gap: 12px;
}

.story {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.story img,
.story.create span {
    width: 76px;
    height: 76px;
    border: 2px solid #765dff;
    border-radius: 50%;
}

.story.create span {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    font-size: 34px;
}

.event-row,
.listing-row,
.suggest-row {
    display: grid;
    align-items: center;
    gap: 13px;
    margin-top: 13px;
}

.event-row {
    grid-template-columns: 66px 1fr 112px;
}

.event-row img {
    width: 112px;
    height: 62px;
    border-radius: 12px;
}

.date {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
}

.date span {
    display: block;
    padding: 5px 0;
    background: linear-gradient(135deg, #a41756, #5d2fc8);
    font-size: 12px;
    font-weight: 800;
}

.date strong {
    display: block;
    padding: 7px 0 9px;
    font-size: 28px;
}

.event-row h3,
.listing-row h3,
.suggest-row h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.event-row p,
.listing-row p,
.suggest-row p {
    margin: 0;
    line-height: 1.35;
}

.listing-row {
    grid-template-columns: 78px 1fr;
}

.listing-row img {
    width: 78px;
    height: 62px;
    border-radius: 12px;
}

.listing-row strong {
    color: var(--green);
}

.suggest-row {
    grid-template-columns: 44px 1fr 74px;
}

.suggest-row button {
    height: 39px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-weight: 800;
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
}

.online .section-head button {
    background: transparent;
    color: var(--muted);
}

.online-user i {
    position: absolute;
    left: 38px;
    bottom: 9px;
    width: 12px;
    height: 12px;
    border: 2px solid #132033;
    border-radius: 50%;
    background: #64748b;
}

.online-user i.online {
    background: var(--green);
}

.online-user i.away {
    background: #f59e0b;
}

.chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 15;
    width: 376px;
    overflow: hidden;
}

.chat header {
    display: grid;
    grid-template-columns: 44px 1fr 34px 34px 34px;
    gap: 8px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.chat header button {
    height: 34px;
    border-radius: 10px;
    background: transparent;
}

.messages {
    display: grid;
    gap: 12px;
    min-height: 300px;
    padding: 20px 16px;
}

.messages p {
    position: relative;
    max-width: 76%;
    margin: 0;
    padding: 12px 15px;
    border-radius: 16px;
    line-height: 1.38;
}

.incoming {
    justify-self: start;
    background: rgba(255, 255, 255, 0.07);
}

.outgoing {
    justify-self: end;
    background: linear-gradient(135deg, var(--blue), var(--violet));
}

.messages .wide {
    max-width: 84%;
}

.messages time {
    position: absolute;
    right: -51px;
    bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.chat label {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 9px;
    padding: 0 16px 16px;
}

.chat label button {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
}

@media (max-width: 1500px) {
    .layout {
        grid-template-columns: 260px minmax(460px, 680px) minmax(330px, 1fr);
    }

    .online {
        display: none;
    }
}

@media (max-width: 1120px) {
    .topbar {
        grid-template-columns: 1fr;
    }

    .topnav,
    .profile-pill {
        display: none;
    }

    .layout {
        grid-template-columns: minmax(0, 760px);
        justify-content: center;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .layout,
    .topbar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .composer,
    .event-row,
    .suggest-row {
        grid-template-columns: 1fr;
    }

    .composer > img,
    .event-row img {
        display: none;
    }

    .composer-actions {
        grid-template-columns: 1fr 1fr;
    }

    .story-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .chat {
        position: static;
        width: auto;
        margin: 0 12px 24px;
    }
}

.topbar.compact {
    grid-template-columns: auto 1fr;
}

.profile-page-nav {
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-page-nav a {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
}

.profile-page-nav a.active,
.primary-link,
.form-actions button {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 0 28px rgba(101, 75, 255, 0.28);
}

.profile-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 28px auto 60px;
}

.profile-shell.narrow {
    width: min(720px, calc(100% - 32px));
}

.notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    font-weight: 700;
}

.profile-hero {
    overflow: hidden;
}

.profile-cover {
    min-height: 220px;
    background:
        radial-gradient(circle at 20% 20%, rgba(109, 123, 255, 0.35), transparent 20rem),
        linear-gradient(135deg, rgba(20, 36, 58, 0.92), rgba(100, 46, 232, 0.65));
}

.profile-main {
    display: grid;
    grid-template-columns: 116px 1fr auto;
    gap: 18px;
    align-items: end;
    padding: 0 24px 24px;
    margin-top: -52px;
}

.profile-main img {
    width: 116px;
    height: 116px;
    border: 4px solid #0d1728;
    border-radius: 50%;
}

.profile-main h1,
.profile-card h1,
.profile-card h2 {
    margin: 0;
}

.profile-main p {
    margin: 6px 0 0;
    color: var(--muted);
}

.primary-link {
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 12px;
    font-weight: 800;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.profile-card {
    padding: 20px;
}

.profile-card dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.profile-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.profile-card dt {
    color: var(--muted);
}

.profile-card dd {
    margin: 0;
    font-weight: 800;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.stats-row span {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.stats-row strong {
    display: block;
    font-size: 28px;
}

.profile-posts {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.profile-posts article {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.profile-posts img {
    width: 120px;
    height: 76px;
    border-radius: 12px;
}

.profile-posts p {
    margin: 0 0 8px;
}

.profile-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.profile-form label {
    display: grid;
    gap: 8px;
    color: #d9e1ee;
    font-weight: 750;
}

.profile-form input,
.profile-form select {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
}

.profile-form select option {
    background: #0c1625;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.form-actions a,
.form-actions button {
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
}

.form-actions a {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

/* Stable profile dropdown override */
.topbar {
    overflow: visible;
}

.profile-menu {
    position: relative !important;
    z-index: 100;
    display: block;
    width: max-content;
}

.profile-menu .profile-pill {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 220px;
    max-width: 220px;
    min-width: 220px;
    height: 50px;
    user-select: none;
}

.profile-menu .profile-pill img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    border-radius: 50%;
}

.profile-menu .profile-pill span:nth-of-type(1) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-menu .profile-pill span:last-child {
    margin-left: auto;
    color: var(--muted);
}

.profile-menu .profile-dropdown {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 999;
    display: grid;
    width: 280px !important;
    max-width: 280px;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0b1524;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
}

.profile-menu .profile-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 28px;
    width: 12px;
    height: 12px;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    background: #0b1524;
    transform: rotate(45deg);
}

.profile-menu .profile-dropdown a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    color: #e8edf6;
    font-size: 14px;
    font-weight: 700;
}

.profile-menu .dropdown-form {
    margin: 0;
}

.profile-menu .dropdown-form button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: transparent;
    color: #fca5a5;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
}

.profile-menu .dropdown-form button:hover {
    background: rgba(248, 113, 113, 0.12);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(460px, 100%);
    padding: 28px;
}

.auth-brand {
    margin-bottom: 24px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.auth-card > p {
    margin: 0 0 20px;
    color: var(--muted);
}

.auth-submit {
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 0 28px rgba(101, 75, 255, 0.28);
    font-weight: 900;
}

.auth-switch {
    margin: 18px 0 0 !important;
    text-align: center;
}

.auth-switch a {
    color: #b3a5ff;
    font-weight: 900;
}

.notice.error {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.error-pre {
    overflow: auto;
    max-height: 220px;
    padding: 12px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
    color: #fecaca;
    white-space: pre-wrap;
}

.profile-menu .profile-dropdown a:hover {
    background: rgba(255, 255, 255, 0.07);
}

.profile-menu .profile-dropdown .profile-dropdown-head {
    min-height: 64px;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.profile-menu .profile-dropdown img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    max-width: 44px;
    border-radius: 50%;
}

.profile-menu .profile-dropdown small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
}
