/* =========================================================
   SNOVEL APPLICATION UI
   Desktop + Tablet + Mobile
   Header + Homepage + Genre Scroller
   ========================================================= */


/* =========================================================
   GLOBAL RESET
   ========================================================= */

.sn-body {
    margin: 0;
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: #080b16;
    color: #f8fafc;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.sn-body a {
    color: inherit;
    text-decoration: none;
}

.sn-body button,
.sn-body input {
    font: inherit;
}

.sn-body img {
    max-width: 100%;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.sn-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* =========================================================
   GLOBAL SHELL
   ========================================================= */

.sn-shell {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {

    .sn-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

}

@media (min-width: 1024px) {

    .sn-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }

}


/* =========================================================
   AMBIENT BACKGROUND
   ========================================================= */

.sn-ambient {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}

.sn-ambient-orb {
    position: absolute;
    display: block;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(80px);
}

.sn-ambient-orb-1 {
    width: 20rem;
    height: 20rem;
    left: -10rem;
    top: -10rem;
    background: rgb(99 102 241 / .08);
}

.sn-ambient-orb-2 {
    width: 24rem;
    height: 24rem;
    right: -12rem;
    top: 8rem;
    background: rgb(139 92 246 / .07);
}

.sn-ambient-orb-3 {
    width: 18rem;
    height: 18rem;
    left: 30%;
    bottom: -10rem;
    background: rgb(59 130 246 / .04);
}


/* =========================================================
   HEADER
   ========================================================= */

.sn-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid rgb(255 255 255 / .06);
    background: rgb(8 11 22 / .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sn-header-inner {
    min-height: 4rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}


/* =========================================================
   BRAND
   ========================================================= */

.sn-header-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}

.sn-brand-mark {
    position: relative;
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgb(129 140 248 / .22);
    border-radius: .9rem;
    background:
        linear-gradient(
            145deg,
            rgb(99 102 241 / .22),
            rgb(99 102 241 / .06)
        );
    box-shadow:
        0 8px 25px rgb(99 102 241 / .10);
}

.sn-brand-s {
    position: relative;
    z-index: 2;
    color: #c4b5fd;
    font-family: Georgia, serif;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
}

.sn-brand-star {
    position: absolute;
    right: .25rem;
    top: .12rem;
    z-index: 3;
    color: #ddd6fe;
    font-size: .55rem;
    line-height: 1;
}

.sn-brand-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .18em;
}

@media (max-width: 639px) {

    .sn-brand-name {
        display: none;
    }

}


/* =========================================================
   DESKTOP NAV
   ========================================================= */

.sn-desktop-nav {
    display: none;
    align-items: center;
    gap: .2rem;
}

.sn-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.5rem;
    border-radius: .7rem;
    padding: .5rem .75rem;
    color: #94a3b8;
    font-size: .82rem;
    font-weight: 600;
    transition:
        background .2s ease,
        color .2s ease;
}

.sn-nav-link:hover {
    background: rgb(255 255 255 / .05);
    color: #fff;
}

.sn-nav-link.is-active {
    background: rgb(255 255 255 / .07);
    color: #fff;
}

.sn-nav-icon {
    color: #818cf8;
    font-size: .95rem;
}


/* =========================================================
   HEADER SEARCH
   ========================================================= */

.sn-header-search {
    position: relative;
    display: none;
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
}

.sn-header-search-icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    color: #64748b;
    transform: translateY(-50%);
    pointer-events: none;
}

.sn-header-search-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sn-header-search input {
    display: block;
    width: 100%;
    height: 2.65rem;
    border: 1px solid rgb(255 255 255 / .09);
    border-radius: .75rem;
    outline: none;
    background: rgb(255 255 255 / .04);
    padding: 0 4rem 0 2.55rem;
    color: #fff;
    font-size: .8rem;
}

.sn-header-search input::placeholder {
    color: #475569;
}

.sn-header-search input:focus {
    border-color: rgb(129 140 248 / .45);
    background: rgb(255 255 255 / .06);
    box-shadow:
        0 0 0 3px rgb(99 102 241 / .08);
}

.sn-header-search kbd {
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgb(255 255 255 / .08);
    border-radius: .35rem;
    background: rgb(255 255 255 / .04);
    padding: .15rem .35rem;
    color: #475569;
    font-size: .58rem;
}


/* =========================================================
   ACCOUNT
   ========================================================= */

.sn-account-desktop {
    position: relative;
    display: none;
    align-items: center;
    gap: .6rem;
    margin-left: .5rem;
}

.sn-write-button {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-height: 2.6rem;
    border-radius: .75rem;
    background: #6366f1;
    padding: 0 1rem;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgb(99 102 241 / .18);
    transition: background .2s ease, transform .2s ease;
}

.sn-write-button:hover {
    background: #818cf8;
    transform: translateY(-1px);
}

.sn-profile-wrap {
    position: relative;
}

.sn-profile-button {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.6rem;
    border: 1px solid rgb(255 255 255 / .08);
    border-radius: .75rem;
    background: rgb(255 255 255 / .03);
    padding: .25rem .55rem;
    color: #fff;
    cursor: pointer;
}

.sn-profile-button:hover {
    background: rgb(255 255 255 / .06);
}

.sn-profile-button img,
.sn-avatar-fallback {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 9999px;
}

.sn-profile-button img {
    display: block;
    object-fit: cover;
}

.sn-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(99 102 241 / .18);
    color: #c4b5fd;
    font-size: .8rem;
    font-weight: 800;
}

.sn-profile-button .sn-profile-name {
    max-width: 7rem;
    overflow: hidden;
    color: #e2e8f0;
    font-size: .78rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-profile-arrow {
    color: #64748b;
    font-size: .7rem;
}


/* =========================================================
   PROFILE DROPDOWN
   ========================================================= */

.sn-profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + .6rem);
    z-index: 200;
    width: 16rem;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / .09);
    border-radius: 1rem;
    background: #11182b;
    box-shadow:
        0 25px 60px rgb(0 0 0 / .4);
}

.sn-profile-menu[hidden] {
    display: none;
}

.sn-profile-menu-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid rgb(255 255 255 / .05);
    padding: 1rem;
}

.sn-profile-menu-user img,
.sn-avatar-large {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 9999px;
    object-fit: cover;
}

.sn-profile-menu-user > div {
    min-width: 0;
}

.sn-profile-menu-user strong,
.sn-profile-menu-user span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-profile-menu-user strong {
    color: #fff;
    font-size: .8rem;
}

.sn-profile-menu-user span {
    margin-top: .15rem;
    color: #64748b;
    font-size: .68rem;
}

.sn-profile-menu-links {
    padding: .5rem;
}

.sn-profile-menu-links a {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 2.7rem;
    border-radius: .65rem;
    padding: .55rem .7rem;
    color: #cbd5e1;
    font-size: .78rem;
    font-weight: 500;
}

.sn-profile-menu-links a:hover {
    background: rgb(255 255 255 / .05);
    color: #fff;
}

.sn-profile-menu-links a > span {
    width: 1.2rem;
    color: #818cf8;
    text-align: center;
}

.sn-menu-divider {
    height: 1px;
    margin: .4rem 0;
    background: rgb(255 255 255 / .05);
}

.sn-profile-menu-links a.sn-menu-logout {
    color: #f87171;
}

.sn-profile-menu-links a.sn-menu-logout > span {
    color: #f87171;
}


/* =========================================================
   GUEST
   ========================================================= */

.sn-guest-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.sn-login-button {
    padding: .55rem .75rem;
    color: #cbd5e1;
    font-size: .8rem;
    font-weight: 600;
}

.sn-login-button:hover {
    color: #fff;
}

.sn-signup-button {
    border-radius: .75rem;
    background: #6366f1;
    padding: .65rem .9rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}


/* =========================================================
   MOBILE HEADER
   ========================================================= */

.sn-mobile-menu-btn,
.sn-mobile-search-button,
.sn-mobile-avatar {
    display: flex;
}

.sn-mobile-menu-btn {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    border: 1px solid rgb(255 255 255 / .07);
    border-radius: .85rem;
    background: rgb(255 255 255 / .025);
    cursor: pointer;
}

.sn-mobile-menu-btn span {
    display: block;
    width: 1.35rem;
    height: 2px;
    border-radius: 9999px;
    background: #94a3b8;
    transition: transform .2s ease;
}

.sn-mobile-search-button {
    width: 2.5rem;
    height: 2.5rem;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.sn-mobile-search-button svg {
    width: 1.35rem;
    height: 1.35rem;
}

.sn-mobile-avatar {
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9999px;
}

.sn-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-mobile-avatar span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: rgb(99 102 241 / .18);
    color: #c4b5fd;
    font-size: .75rem;
    font-weight: 800;
}


/* =========================================================
   MOBILE DRAWER
   ========================================================= */

.sn-mobile-nav {
    border-top: 1px solid rgb(255 255 255 / .05);
    background: #080b16;
}

.sn-mobile-nav[hidden] {
    display: none;
}

.sn-mobile-nav-inner {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
}

.sn-mobile-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    border: 1px solid rgb(255 255 255 / .06);
    border-radius: 1rem;
    background: rgb(255 255 255 / .025);
    padding: .75rem;
}

.sn-mobile-user img,
.sn-mobile-user > span {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 9999px;
}

.sn-mobile-user img {
    object-fit: cover;
}

.sn-mobile-user > span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(99 102 241 / .18);
    color: #c4b5fd;
    font-weight: 800;
}

.sn-mobile-user strong,
.sn-mobile-user small {
    display: block;
}

.sn-mobile-user strong {
    color: #fff;
    font-size: .85rem;
}

.sn-mobile-user small {
    margin-top: .15rem;
    color: #64748b;
    font-size: .68rem;
}


/* =========================================================
   MOBILE SEARCH
   ========================================================= */

.sn-mobile-search {
    margin-bottom: .85rem;
}

.sn-mobile-search > div {
    position: relative;
}

.sn-mobile-search svg {
    position: absolute;
    left: .9rem;
    top: 50%;
    width: 1.05rem;
    height: 1.05rem;
    color: #64748b;
    transform: translateY(-50%);
    pointer-events: none;
}

.sn-mobile-search input {
    width: 100%;
    height: 3rem;
    border: 1px solid rgb(255 255 255 / .09);
    border-radius: .8rem;
    outline: none;
    background: rgb(255 255 255 / .04);
    padding: 0 1rem 0 2.7rem;
    color: #fff;
    font-size: .8rem;
}

.sn-mobile-search input:focus {
    border-color: rgb(129 140 248 / .45);
}


/* =========================================================
   MOBILE LINKS
   ========================================================= */

.sn-mobile-links {
    display: grid;
    gap: .25rem;
}

.sn-mobile-links a {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 3rem;
    border-radius: .75rem;
    padding: .65rem .8rem;
    color: #cbd5e1;
    font-size: .82rem;
    font-weight: 600;
}

.sn-mobile-links a:hover,
.sn-mobile-links a.is-active {
    background: rgb(99 102 241 / .10);
    color: #a5b4fc;
}

.sn-mobile-links a > span {
    width: 1.35rem;
    color: #818cf8;
    text-align: center;
}

.sn-mobile-links a.is-danger {
    color: #f87171;
}

.sn-mobile-links a.is-danger > span {
    color: #f87171;
}

.sn-mobile-divider {
    height: 1px;
    margin: .45rem 0;
    background: rgb(255 255 255 / .05);
}

.sn-mobile-links .sn-mobile-join {
    justify-content: center;
    margin-top: .25rem;
    background: #6366f1;
    color: #fff;
}


/* =========================================================
   TOASTS
   ========================================================= */

.sn-toast-container {
    position: fixed;
    right: 1rem;
    top: 5rem;
    z-index: 500;
    display: flex;
    width: calc(100% - 2rem);
    max-width: 24rem;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
}

.sn-toast {
    display: flex;
    align-items: center;
    gap: .65rem;
    border: 1px solid rgb(255 255 255 / .08);
    border-radius: .8rem;
    padding: .75rem;
    background: rgb(17 24 43 / .94);
    box-shadow: 0 15px 40px rgb(0 0 0 / .3);
    backdrop-filter: blur(15px);
    pointer-events: auto;
    font-size: .78rem;
}

.sn-toast-success {
    border-color: rgb(16 185 129 / .20);
}

.sn-toast-error {
    border-color: rgb(239 68 68 / .20);
}

.sn-toast-dot {
    width: .45rem;
    height: .45rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #34d399;
}

.sn-toast-error .sn-toast-dot {
    background: #f87171;
}

.sn-toast-message {
    flex: 1;
    color: #cbd5e1;
}

.sn-toast-close {
    border: 0;
    background: transparent;
    padding: .15rem;
    color: #64748b;
    cursor: pointer;
    font-size: 1.1rem;
}

.sn-toast-close:hover {
    color: #fff;
}


/* =========================================================
   PAGE
   ========================================================= */

.sn-page {
    width: 100%;
    min-height: calc(100vh - 4rem);
}


/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

.sn-home-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgb(255 255 255 / .06);
    background:
        radial-gradient(
            circle at 15% 25%,
            rgb(99 102 241 / .13),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 45%,
            rgb(129 140 248 / .08),
            transparent 32%
        ),
        #080b16;
}

.sn-home-hero::before {
    content: "";
    position: absolute;
    width: 30rem;
    height: 30rem;
    left: -18rem;
    top: -15rem;
    border-radius: 9999px;
    background: rgb(99 102 241 / .08);
    filter: blur(80px);
    pointer-events: none;
}

.sn-home-hero::after {
    content: "";
    position: absolute;
    width: 24rem;
    height: 24rem;
    right: -14rem;
    bottom: -14rem;
    border-radius: 9999px;
    background: rgb(129 140 248 / .07);
    filter: blur(70px);
    pointer-events: none;
}

.sn-home-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 32rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.sn-home-hero-content {
    min-width: 0;
}

.sn-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: #a5b4fc;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sn-home-eyebrow-dot {
    width: .45rem;
    height: .45rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #818cf8;
    box-shadow: 0 0 12px rgb(129 140 248 / .65);
}

.sn-home-title {
    max-width: 46rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.055em;
}

.sn-home-title span {
    display: block;
    background:
        linear-gradient(
            100deg,
            #a5b4fc,
            #818cf8 45%,
            #c4b5fd
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sn-home-description {
    max-width: 39rem;
    margin: 1.5rem 0 0;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.8;
}


/* =========================================================
   HERO SEARCH
   ========================================================= */

.sn-home-search {
    display: flex;
    width: 100%;
    max-width: 43rem;
    gap: .625rem;
    margin-top: 1.75rem;
}

.sn-home-search-field {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
}

.sn-home-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 1.15rem;
    height: 1.15rem;
    color: #64748b;
    transform: translateY(-50%);
    pointer-events: none;
}

.sn-home-search-icon svg {
    width: 100%;
    height: 100%;
}

.sn-home-search-field input {
    display: block;
    width: 100%;
    height: 3.25rem;
    border: 1px solid rgb(255 255 255 / .10);
    border-radius: .9rem;
    outline: none;
    background: rgb(255 255 255 / .045);
    padding: 0 1rem 0 2.9rem;
    color: #fff;
}

.sn-home-search-button {
    flex-shrink: 0;
    height: 3.25rem;
    border: 0;
    border-radius: .9rem;
    background: #6366f1;
    padding: 0 1.25rem;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.sn-home-visual {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
}

.sn-home-visual-glow {
    position: absolute;
    width: 19rem;
    height: 19rem;
    border-radius: 9999px;
    background: rgb(99 102 241 / .13);
    filter: blur(65px);
}

.sn-home-preview {
    position: relative;
    width: min(100%, 25rem);
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / .10);
    border-radius: 1.5rem;
    background:
        linear-gradient(
            145deg,
            rgb(255 255 255 / .065),
            rgb(255 255 255 / .025)
        );
    padding: 1.25rem;
    box-shadow: 0 30px 70px rgb(0 0 0 / .38);
    transform: rotate(2deg);
}


/* =========================================================
   DISCOVER
   ========================================================= */

.sn-home-main {
    width: 100%;
    background: #080b16;
}

.sn-home-main > .sn-shell {
    padding-top: 2.25rem;
    padding-bottom: 4rem;
}

.sn-discover-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.sn-section-kicker {
    display: block;
    margin-bottom: .35rem;
    color: #818cf8;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sn-discover-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
}

.sn-discover-heading p {
    margin: .35rem 0 0;
    color: #64748b;
    font-size: .875rem;
}


/* =========================================================
   GENRE SCROLLER
   ========================================================= */

/*
   IMPORTANT:
   This is deliberately NOT a wrapping grid.

   On phones the genre buttons stay on ONE horizontal
   line and the user can swipe them left/right.
*/

.sn-genres-section {
    width: 100%;
    margin-top: 1.5rem;
    min-width: 0;
}

.sn-genres-scroll {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    gap: .55rem;

    overflow-x: auto;
    overflow-y: hidden;

    padding: .15rem .05rem .65rem;

    scrollbar-width: none;
    -ms-overflow-style: none;

    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    touch-action: pan-x;
    scroll-behavior: smooth;
}

.sn-genres-scroll::-webkit-scrollbar {
    display: none;
}

.sn-genre-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: max-content;
    min-height: 2.35rem;

    flex: 0 0 auto;

    border: 1px solid #27324a;
    border-radius: 9999px;

    background: #11182b;

    padding: .45rem .9rem;

    color: #94a3b8;

    font-size: .75rem;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.sn-genre-pill:hover {
    border-color: rgb(129 140 248 / .4);
    background: #151e34;
    color: #fff;
}

.sn-genre-pill.is-active {
    border-color: rgb(99 102 241 / .65);
    background: rgb(99 102 241 / .12);
    color: #a5b4fc;
}


/* =========================================================
   NOVEL GRID
   ========================================================= */

.sn-novels-section {
    width: 100%;
    margin-top: 1.5rem;
}

.sn-novel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem .75rem;
}

.sn-novel-item {
    min-width: 0;
}

.sn-novel-cover {
    display: block;
    width: 100%;
}

.sn-novel-cover-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgb(255 255 255 / .07);
    border-radius: .75rem;
    background: #11182b;
    box-shadow: 0 10px 25px rgb(0 0 0 / .16);
}

.sn-novel-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-novel-cover-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    background:
        linear-gradient(
            145deg,
            #1e1b4b,
            #11182b
        );
    color: #c4b5fd;
    font-size: .8rem;
    font-weight: 800;
}

.sn-novel-cover-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgb(0 0 0 / .7),
            transparent 50%
        );
    opacity: 0;
}

.sn-novel-read-label {
    position: absolute;
    left: .65rem;
    right: .65rem;
    bottom: .65rem;
    display: flex;
    min-height: 2.1rem;
    align-items: center;
    justify-content: center;
    border-radius: .6rem;
    background: rgb(8 11 22 / .8);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    opacity: 0;
}


/* =========================================================
   NOVEL INFORMATION
   ========================================================= */

.sn-novel-info {
    min-width: 0;
    padding-top: .65rem;
}

.sn-novel-title {
    display: -webkit-box;
    overflow: hidden;
    color: #f8fafc;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sn-novel-author {
    display: block;
    margin-top: .25rem;
    overflow: hidden;
    color: #64748b;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-novel-meta {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .3rem;
    overflow: hidden;
    color: #475569;
    font-size: .62rem;
    white-space: nowrap;
}

.sn-novel-meta i {
    color: #334155;
    font-style: normal;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.sn-empty-state {
    display: flex;
    min-height: 20rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    border: 1px solid rgb(255 255 255 / .06);
    border-radius: 1.25rem;
    background: #11182b;
    padding: 2rem 1.25rem;
    text-align: center;
}

.sn-empty-icon {
    display: flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgb(99 102 241 / .08);
    color: #818cf8;
}

.sn-empty-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.sn-empty-state h3 {
    margin: 1rem 0 0;
    color: #fff;
    font-size: 1.05rem;
}

.sn-empty-state p {
    margin: .4rem 0 1.25rem;
    color: #64748b;
    font-size: .8rem;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    .sn-mobile-menu-btn,
    .sn-mobile-search-button,
    .sn-mobile-avatar {
        display: none;
    }

    .sn-desktop-nav {
        display: flex;
    }

    .sn-account-desktop {
        display: flex;
    }

    .sn-header-search {
        display: block;
    }

    .sn-home-hero-grid {
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(18rem, .85fr);

        gap: 3rem;
    }

    .sn-home-visual {
        display: flex;
    }

    .sn-novel-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 2.25rem 1.25rem;
    }

}

@media (min-width: 1024px) {

    .sn-home-hero-grid {
        min-height: 39rem;
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(23rem, .8fr);

        gap: 5rem;
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .sn-home-title {
        font-size: clamp(4rem, 5vw, 5.25rem);
    }

}

@media (min-width: 1280px) {

    .sn-novel-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        gap: 2.5rem 1.35rem;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .sn-header-inner {
        gap: .55rem;
    }

    .sn-home-hero-grid {
        min-height: auto;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .sn-home-title {
        font-size: clamp(
            2.45rem,
            12vw,
            3.35rem
        );
        letter-spacing: -.065em;
    }

    .sn-home-description {
        margin-top: 1.1rem;
        font-size: .9rem;
        line-height: 1.7;
    }

    .sn-home-search {
        flex-direction: column;
        gap: .55rem;
        margin-top: 1.35rem;
    }

    .sn-home-search-field input {
        height: 3rem;
    }

    .sn-home-search-button {
        width: 100%;
        height: 3rem;
    }

    .sn-home-quick-links {
        display: none;
    }

    .sn-home-main > .sn-shell {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .sn-discover-head {
        align-items: flex-start;
        flex-direction: column;
        gap: .8rem;
    }

    .sn-discover-heading h2 {
        font-size: 1.35rem;
    }

    /*
       IMPORTANT:
       Genre buttons remain horizontal.
       They NEVER wrap into a second row.
    */

    .sn-genres-scroll {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        overflow-x: auto;
    }

    .sn-novels-section {
        margin-top: 1.25rem;
    }

    .sn-novel-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 1.75rem .75rem;
    }

    .sn-novel-read-label {
        display: none;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .sn-shell {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .sn-brand-mark {
        width: 2.6rem;
        height: 2.6rem;
    }

    .sn-mobile-menu-btn {
        width: 2.6rem;
        height: 2.6rem;
    }

    .sn-home-title {
        font-size: 2.3rem;
    }

    .sn-novel-grid {
        gap: 1.5rem .6rem;
    }

}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

    .sn-genre-pill:hover {
        border-color: #27324a;
        background: #11182b;
        color: #94a3b8;
    }

    .sn-novel-cover-overlay,
    .sn-novel-read-label {
        opacity: 0;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sn-genres-scroll {
        scroll-behavior: auto;
    }

}

/* =========================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================= */

.sn-bottom-nav {
    display: none;
}

.sn-bottom-nav-inner {
    width: 100%;
}


/* =========================================================
   DESKTOP FOOTER
   ========================================================= */

.sn-footer {
    width: 100%;
    border-top: 1px solid rgb(255 255 255 / .06);
    background: #080b16;
}

.sn-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 7rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.sn-footer-brand {
    display: inline-block;
    color: #fff;
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .2em;
    text-decoration: none;
}

.sn-footer-brand:hover {
    color: #a5b4fc;
}

.sn-footer-branding p {
    margin: .4rem 0 0;
    color: #475569;
    font-size: .75rem;
}

.sn-footer-meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #475569;
    font-size: .7rem;
}

.sn-footer-dot {
    color: #334155;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /*
     * Fixed bottom navigation.
     * It stays above the phone/browser safe area.
     */

    .sn-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: block;
        width: 100%;
        border-top: 1px solid rgb(255 255 255 / .08);
        background: rgb(8 11 22 / .94);
        box-shadow:
            0 -12px 35px rgb(0 0 0 / .28);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sn-bottom-nav-inner {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        min-height: 4.15rem;
        max-width: 32rem;
        margin: 0 auto;
        padding: .35rem .35rem .25rem;
    }


    /*
     * Navigation item
     */

    .sn-bottom-nav a {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 3.65rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .18rem;
        border-radius: .8rem;
        color: #64748b;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .sn-bottom-nav a:active {
        background: rgb(255 255 255 / .04);
    }


    /*
     * Icons
     */

    .sn-bottom-icon {
        display: flex;
        width: 1.35rem;
        height: 1.35rem;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        line-height: 1;
    }

    .sn-bottom-label {
        max-width: 100%;
        overflow: hidden;
        font-size: .6rem;
        font-weight: 600;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /*
     * Active item
     */

    .sn-bottom-nav a.is-active {
        color: #a5b4fc;
        background: rgb(99 102 241 / .08);
    }

    .sn-bottom-nav a.is-active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 1.5rem;
        height: .15rem;
        border-radius: 9999px;
        background: #818cf8;
        transform: translateX(-50%);
        box-shadow:
            0 0 10px rgb(129 140 248 / .45);
    }


    /*
     * Write button
     */

    .sn-bottom-write {
        gap: .12rem !important;
    }

    .sn-bottom-write-button {
        display: flex;
        width: 2.75rem;
        height: 2.75rem;
        align-items: center;
        justify-content: center;
        margin-top: -.85rem;
        border: 4px solid #080b16;
        border-radius: 9999px;
        background: #6366f1;
        color: #fff;
        font-size: 1.35rem;
        font-weight: 400;
        box-shadow:
            0 8px 22px rgb(99 102 241 / .32);
    }

    .sn-bottom-write.is-active
    .sn-bottom-write-button {
        background: #818cf8;
        box-shadow:
            0 8px 28px rgb(99 102 241 / .42);
    }


    /*
     * Profile avatar
     */

    .sn-bottom-avatar {
        display: block;
        width: 1.45rem;
        height: 1.45rem;
        border-radius: 9999px;
        object-fit: cover;
    }

    .sn-bottom-avatar-initial {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgb(99 102 241 / .20);
        color: #a5b4fc;
        font-size: .65rem;
        font-weight: 800;
    }


    /*
     * Give the page enough room so fixed nav
     * never covers the last content.
     */

    body {
        padding-bottom: 4.75rem;
    }


    /*
     * Footer is still visible on mobile,
     * but kept compact.
     */

    .sn-footer {
        padding-bottom: 1rem;
    }

    .sn-footer-inner {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .sn-footer-meta {
        font-size: .65rem;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .sn-bottom-nav-inner {
        min-height: 4rem;
        padding-left: .15rem;
        padding-right: .15rem;
    }

    .sn-bottom-nav a {
        min-height: 3.5rem;
    }

    .sn-bottom-label {
        font-size: .56rem;
    }

    .sn-bottom-write-button {
        width: 2.55rem;
        height: 2.55rem;
    }

}

 /* =========================================================
   SNOVEL AUTH — LOGIN / REGISTER
   ========================================================= */

.sn-auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.25rem;
    position: relative;
}

.sn-auth-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.sn-auth-card {
    width: 100%;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(17,24,43,.96),
            rgba(11,16,32,.98)
        );
    box-shadow:
        0 30px 80px rgba(0,0,0,.38),
        0 0 0 1px rgba(124,58,237,.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ---------------------------------------------------------
   BRAND
   --------------------------------------------------------- */

.sn-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 2rem;
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.sn-auth-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #6d28d9
        );

    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;

    box-shadow:
        0 10px 30px rgba(109,40,217,.35),
        inset 0 1px 0 rgba(255,255,255,.18);
}

/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.sn-auth-heading {
    margin-bottom: 1.75rem;
}

.sn-auth-kicker {
    display: block;
    margin-bottom: .55rem;

    color: #a78bfa;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sn-auth-heading h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(1.8rem, 5vw, 2.25rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.035em;
}

.sn-auth-heading p {
    margin: .9rem 0 0;
    color: #94a3b8;
    font-size: .95rem;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   ERROR
   --------------------------------------------------------- */

.sn-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;

    margin-bottom: 1.25rem;
    padding: .85rem 1rem;

    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.5;
}

.sn-auth-alert-error {
    color: #fecaca;
    border: 1px solid rgba(248,113,113,.18);
    background: rgba(127,29,29,.18);
}

.sn-auth-alert-icon {
    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(248,113,113,.15);
    color: #f87171;

    font-size: .75rem;
    font-weight: 900;
}

/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */

.sn-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sn-auth-field {
    width: 100%;
}

.sn-auth-field label {
    display: block;
    margin-bottom: .5rem;

    color: #e2e8f0;
    font-size: .84rem;
    font-weight: 700;
}

.sn-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sn-auth-input-wrap {
    position: relative;
    width: 100%;
}

.sn-auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;

    transform: translateY(-50%);

    color: #64748b;
    font-size: .9rem;
    font-weight: 700;

    pointer-events: none;
}

.sn-auth-input-wrap input {
    width: 100%;
    min-height: 52px;

    padding: .8rem 1rem .8rem 2.75rem;

    border: 1px solid #27324a;
    border-radius: 13px;

    outline: none;

    background: #0b1020;
    color: #f8fafc;

    font: inherit;
    font-size: .92rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.sn-auth-input-wrap input::placeholder {
    color: #64748b;
}

.sn-auth-input-wrap input:hover {
    border-color: #35415d;
}

.sn-auth-input-wrap input:focus {
    border-color: #8b5cf6;

    background: #0d1325;

    box-shadow:
        0 0 0 3px rgba(139,92,246,.13);
}

/* ---------------------------------------------------------
   PASSWORD TOGGLE
   --------------------------------------------------------- */

.sn-auth-password-toggle {
    position: absolute;
    right: .8rem;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: #a78bfa;

    font: inherit;
    font-size: .78rem;
    font-weight: 800;

    cursor: pointer;
    padding: .35rem .4rem;
}

.sn-auth-password-toggle:hover {
    color: #c4b5fd;
}

.sn-auth-password-toggle:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
    border-radius: 5px;
}

/* Give password field enough room for Show/Hide */
.sn-auth-input-wrap input[type="password"],
.sn-auth-input-wrap input#password {
    padding-right: 4.5rem;
}

/* ---------------------------------------------------------
   SUBMIT
   --------------------------------------------------------- */

.sn-auth-submit {
    width: 100%;
    min-height: 54px;

    margin-top: .35rem;
    padding: .85rem 1.1rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    border: 0;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #6d28d9
        );

    color: #fff;

    font: inherit;
    font-size: .92rem;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 14px 30px rgba(109,40,217,.24),
        inset 0 1px 0 rgba(255,255,255,.14);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.sn-auth-submit:hover {
    transform: translateY(-1px);

    filter: brightness(1.06);

    box-shadow:
        0 18px 36px rgba(109,40,217,.32),
        inset 0 1px 0 rgba(255,255,255,.16);
}

.sn-auth-submit:active {
    transform: translateY(0);
}

.sn-auth-submit:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 3px;
}

.sn-auth-submit-arrow {
    font-size: 1.1rem;
    transition: transform .2s ease;
}

.sn-auth-submit:hover .sn-auth-submit-arrow {
    transform: translateX(3px);
}

/* ---------------------------------------------------------
   REGISTER SWITCH
   --------------------------------------------------------- */

.sn-auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .3rem;

    margin-top: 1.5rem;

    color: #64748b;
    font-size: .84rem;
    line-height: 1.5;
    text-align: center;
}

.sn-auth-switch a {
    color: #a78bfa;
    font-weight: 800;
    text-decoration: none;
}

.sn-auth-switch a:hover {
    color: #c4b5fd;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   BACK HOME
   --------------------------------------------------------- */

.sn-auth-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;

    margin-top: 1.5rem;

    color: #64748b;

    font-size: .82rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

.sn-auth-home:hover {
    color: #cbd5e1;
    transform: translateX(-2px);
}

/* =========================================================
   AUTH RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {

    .sn-auth-page {
        min-height: calc(100vh - 64px);
        padding: 2rem 1rem 5.5rem;
        align-items: flex-start;
    }

    .sn-auth-shell {
        max-width: 100%;
        margin-top: .75rem;
    }

    .sn-auth-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .sn-auth-brand {
        margin-bottom: 1.5rem;
    }

    .sn-auth-heading {
        margin-bottom: 1.5rem;
    }

    .sn-auth-heading h1 {
        font-size: 1.8rem;
    }

    .sn-auth-heading p {
        font-size: .9rem;
    }

    .sn-auth-input-wrap input {
        min-height: 50px;
    }

    .sn-auth-submit {
        min-height: 52px;
    }
}

@media (max-width: 380px) {

    .sn-auth-page {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .sn-auth-card {
        padding: 1.25rem;
    }

    .sn-auth-heading h1 {
        font-size: 1.65rem;
    }
}

/* =========================================================
   AUTH REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sn-auth-submit,
    .sn-auth-submit-arrow,
    .sn-auth-home,
    .sn-auth-input-wrap input {
        transition: none;
    }
}

/* =========================================================
   SNOVEL AUTHOR DASHBOARD
   ========================================================= */

.sn-dashboard {
    position: relative;
    min-height: calc(100vh - 5rem);
    padding: 3.5rem 0 5rem;
}

.sn-dashboard .sn-shell {
    position: relative;
    z-index: 2;
}


/* ---------------------------------------------------------
   Dashboard Header
   --------------------------------------------------------- */

.sn-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.sn-dashboard-heading {
    min-width: 0;
}

.sn-dashboard-heading .sn-section-kicker {
    display: inline-flex;
    margin-bottom: 1rem;
}

.sn-dashboard-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: #f8fafc;
}

.sn-dashboard-heading p {
    margin: 1rem 0 0;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Create Button
   --------------------------------------------------------- */

.sn-dashboard-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-shrink: 0;

    min-height: 2.9rem;
    padding: 0.7rem 1rem;

    border: 1px solid rgba(99, 102, 241, 0.55);
    border-radius: 0.85rem;

    background:
        linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.95),
            rgba(79, 70, 229, 0.9)
        );

    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;

    box-shadow:
        0 0.75rem 2rem rgba(79, 70, 229, 0.18);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.sn-dashboard-create span {
    font-size: 1.2rem;
    line-height: 1;
}

.sn-dashboard-create:hover {
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(129, 140, 248, 0.8);
    box-shadow:
        0 1rem 2.5rem rgba(79, 70, 229, 0.28);
}


/* ---------------------------------------------------------
   Statistics
   --------------------------------------------------------- */

.sn-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.sn-dashboard-stat {
    position: relative;
    overflow: hidden;

    min-width: 0;
    padding: 1.15rem;

    border: 1px solid rgba(39, 50, 74, 0.85);
    border-radius: 1rem;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 43, 0.96),
            rgba(11, 16, 32, 0.96)
        );

    box-shadow:
        0 1rem 2.5rem rgba(0, 0, 0, 0.12);
}

.sn-dashboard-stat::after {
    content: "";
    position: absolute;
    width: 5rem;
    height: 5rem;
    right: -2rem;
    top: -2rem;

    border-radius: 999px;

    background: rgba(99, 102, 241, 0.09);
    filter: blur(1px);
}

.sn-dashboard-stat-label {
    position: relative;
    z-index: 1;

    display: block;
    margin-bottom: 0.4rem;

    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sn-dashboard-stat strong {
    position: relative;
    z-index: 1;

    display: block;

    color: #f8fafc;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 800;
}


/* ---------------------------------------------------------
   Novel List
   --------------------------------------------------------- */

.sn-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sn-dashboard-novel {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(39, 50, 74, 0.85);
    border-radius: 1.15rem;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 43, 0.96),
            rgba(11, 16, 32, 0.98)
        );

    box-shadow:
        0 1.25rem 3rem rgba(0, 0, 0, 0.14);
}

.sn-dashboard-novel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    padding: 1.35rem;
}

.sn-dashboard-novel-title {
    min-width: 0;
}

.sn-dashboard-novel-title h2 {
    margin: 0;

    color: #f8fafc;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 750;

    overflow-wrap: anywhere;
}

.sn-dashboard-novel-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;

    margin-top: 0.55rem;

    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.5;
}

.sn-dashboard-novel-meta i {
    color: #475569;
    font-style: normal;
}

.sn-dashboard-novel-meta .is-published {
    color: #86efac;
}

.sn-dashboard-novel-meta .is-draft {
    color: #fbbf24;
}


/* ---------------------------------------------------------
   Novel Actions
   --------------------------------------------------------- */

.sn-dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;

    flex-shrink: 0;
}

.sn-dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 2.35rem;
    padding: 0.5rem 0.8rem;

    border-radius: 0.7rem;

    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.sn-dashboard-action:hover {
    transform: translateY(-1px);
}

.sn-dashboard-action.secondary {
    border: 1px solid #27324a;
    background: rgba(21, 30, 52, 0.65);
    color: #cbd5e1;
}

.sn-dashboard-action.secondary:hover {
    border-color: #46536f;
    background: rgba(30, 41, 59, 0.9);
    color: #ffffff;
}

.sn-dashboard-action.primary {
    border: 1px solid rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
}

.sn-dashboard-action.primary:hover {
    border-color: rgba(129, 140, 248, 0.75);
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
}


/* ---------------------------------------------------------
   Chapters
   --------------------------------------------------------- */

.sn-dashboard-chapters {
    border-top: 1px solid rgba(39, 50, 74, 0.75);
}

.sn-dashboard-chapters-head {
    padding: 0.85rem 1.35rem;

    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    background: rgba(11, 16, 32, 0.38);
}

.sn-dashboard-chapter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 0.85rem 1.35rem;

    border-top: 1px solid rgba(39, 50, 74, 0.5);
}

.sn-dashboard-chapter-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;

    min-width: 0;
}

.sn-dashboard-chapter-number {
    flex-shrink: 0;

    color: #818cf8;
    font-size: 0.78rem;
    font-weight: 700;
}

.sn-dashboard-chapter-title {
    min-width: 0;

    color: #cbd5e1;
    font-size: 0.86rem;

    overflow-wrap: anywhere;
}

.sn-dashboard-chapter-status {
    display: inline-flex;
    align-items: center;

    padding: 0.2rem 0.45rem;

    border-radius: 999px;

    font-size: 0.65rem;
    font-weight: 700;
    text-transform: capitalize;
}

.sn-dashboard-chapter-status.is-published {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
}

.sn-dashboard-chapter-status.is-draft {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.sn-dashboard-chapter-edit {
    flex-shrink: 0;

    color: #818cf8;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.sn-dashboard-chapter-edit:hover {
    color: #a5b4fc;
}


/* ---------------------------------------------------------
   No Chapters
   --------------------------------------------------------- */

.sn-dashboard-no-chapters {
    padding: 1.2rem 1.35rem;

    border-top: 1px solid rgba(39, 50, 74, 0.5);

    color: #64748b;
    font-size: 0.82rem;
}


/* ---------------------------------------------------------
   Empty Dashboard
   --------------------------------------------------------- */

.sn-dashboard-empty {
    display: flex;
    align-items: center;
    flex-direction: column;

    padding: 4rem 1.5rem;

    border: 1px solid rgba(39, 50, 74, 0.85);
    border-radius: 1.15rem;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 43, 0.95),
            rgba(11, 16, 32, 0.98)
        );

    text-align: center;
}

.sn-dashboard-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;

    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 1rem;

    background: rgba(99, 102, 241, 0.1);

    color: #a5b4fc;
    font-size: 2rem;
}

.sn-dashboard-empty h2 {
    margin: 0;

    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 750;
}

.sn-dashboard-empty p {
    max-width: 30rem;
    margin: 0.65rem auto 1.4rem;

    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================================================
   DASHBOARD RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {

    .sn-dashboard {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .sn-dashboard-header {
        align-items: stretch;
        flex-direction: column;
        gap: 1.25rem;
        margin-bottom: 1.35rem;
    }

    .sn-dashboard-heading h1 {
        font-size: 2.35rem;
    }

    .sn-dashboard-heading p {
        margin-top: 0.7rem;
    }

    .sn-dashboard-create {
        width: 100%;
    }

    .sn-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin-bottom: 1.35rem;
    }

    .sn-dashboard-stat {
        padding: 0.95rem;
        border-radius: 0.85rem;
    }

    .sn-dashboard-stat strong {
        font-size: 1.45rem;
    }

    .sn-dashboard-novel-head {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
        padding: 1.05rem;
    }

    .sn-dashboard-actions {
        justify-content: stretch;
    }

    .sn-dashboard-action {
        flex: 1 1 auto;
    }

    .sn-dashboard-chapters-head {
        padding-left: 1.05rem;
        padding-right: 1.05rem;
    }

    .sn-dashboard-chapter {
        align-items: flex-start;
        padding: 0.8rem 1.05rem;
    }

    .sn-dashboard-chapter-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .sn-dashboard-empty {
        padding: 3rem 1rem;
    }
}


/* ---------------------------------------------------------
   Very small phones
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .sn-dashboard-heading h1 {
        font-size: 2rem;
    }

    .sn-dashboard-stats {
        gap: 0.5rem;
    }

    .sn-dashboard-stat {
        padding: 0.8rem;
    }

    .sn-dashboard-stat-label {
        font-size: 0.7rem;
    }

    .sn-dashboard-stat strong {
        font-size: 1.3rem;
    }

    .sn-dashboard-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sn-dashboard-action.primary {
        grid-column: 1 / -1;
    }
}


/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .sn-dashboard-create,
    .sn-dashboard-action {
        transition: none;
    }

    .sn-dashboard-create:hover,
    .sn-dashboard-action:hover {
        transform: none;
    }
}

/* =========================================================
   SNOVEL SOCIAL PROFILE
   ========================================================= */

.sn-profile-page {
    position: relative;
    min-height: calc(100vh - 5rem);
    padding: 2rem 0 5rem;
}

.sn-profile-page .sn-shell {
    position: relative;
    z-index: 2;
}


/* =========================================================
   PROFILE HERO
   ========================================================= */

.sn-profile-hero {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(39, 50, 74, 0.85);
    border-radius: 1.25rem;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 43, 0.98),
            rgba(11, 16, 32, 0.98)
        );

    box-shadow:
        0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.sn-profile-hero::before {
    content: "";
    position: absolute;

    width: 20rem;
    height: 20rem;

    top: -13rem;
    right: -5rem;

    border-radius: 999px;

    background: rgba(99, 102, 241, 0.12);

    filter: blur(2px);
    pointer-events: none;
}

.sn-profile-hero::after {
    content: "";
    position: absolute;

    width: 14rem;
    height: 14rem;

    bottom: -10rem;
    left: -4rem;

    border-radius: 999px;

    background: rgba(79, 70, 229, 0.08);

    pointer-events: none;
}


/* =========================================================
   PROFILE COVER
   ========================================================= */

.sn-profile-cover {
    position: relative;

    height: 8rem;

    overflow: hidden;

    border-bottom: 1px solid rgba(39, 50, 74, 0.7);

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(99, 102, 241, 0.28),
            transparent 35%
        ),
        radial-gradient(
            circle at 20% 90%,
            rgba(79, 70, 229, 0.2),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #11182b,
            #0b1020
        );
}

.sn-profile-cover::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(129, 140, 248, 0.04) 50%,
            transparent 100%
        );
}


/* =========================================================
   PROFILE MAIN
   ========================================================= */

.sn-profile-main {
    position: relative;

    display: flex;
    align-items: flex-end;

    gap: 1.25rem;

    padding: 0 1.5rem 1.5rem;
}

.sn-profile-avatar-wrap {
    position: relative;

    flex-shrink: 0;

    margin-top: -3.5rem;
}

.sn-profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 7rem;
    height: 7rem;

    overflow: hidden;

    border: 4px solid #0b1020;
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4338ca
        );

    color: #ffffff;

    font-size: 2.25rem;
    font-weight: 800;

    box-shadow:
        0 0.75rem 2rem rgba(0, 0, 0, 0.3);
}

.sn-profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   PROFILE IDENTITY
   ========================================================= */

.sn-profile-identity {
    min-width: 0;

    flex: 1;
    padding-top: 0.75rem;
}

.sn-profile-name {
    margin: 0;

    color: #f8fafc;

    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.025em;

    overflow-wrap: anywhere;
}

.sn-profile-username {
    margin-top: 0.25rem;

    color: #818cf8;

    font-size: 0.85rem;
    font-weight: 600;
}

.sn-profile-bio {
    max-width: 45rem;

    margin: 0.7rem 0 0;

    color: #94a3b8;

    font-size: 0.9rem;
    line-height: 1.65;

    overflow-wrap: anywhere;
}

.sn-profile-joined {
    display: flex;
    align-items: center;
    gap: 0.45rem;

    margin-top: 0.65rem;

    color: #64748b;

    font-size: 0.75rem;
}

.sn-profile-joined-icon {
    color: #818cf8;
}


/* =========================================================
   PROFILE ACTIONS
   ========================================================= */

.sn-profile-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;

    flex-shrink: 0;
}

.sn-profile-follow-button,
.sn-profile-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    min-height: 2.55rem;

    padding: 0.55rem 1rem;

    border-radius: 0.75rem;

    font-size: 0.8rem;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.sn-profile-follow-button {
    border: 1px solid rgba(99, 102, 241, 0.6);

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4f46e5
        );

    color: #ffffff;

    box-shadow:
        0 0.6rem 1.5rem rgba(79, 70, 229, 0.18);
}

.sn-profile-follow-button:hover {
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 0.8rem 1.8rem rgba(79, 70, 229, 0.28);
}

.sn-profile-follow-button.is-following {
    border-color: #334155;

    background: #151e34;

    color: #cbd5e1;
}

.sn-profile-edit-button {
    border: 1px solid #27324a;

    background: rgba(21, 30, 52, 0.75);

    color: #cbd5e1;
}

.sn-profile-edit-button:hover {
    border-color: #46536f;

    background: #151e34;

    color: #ffffff;
}


/* =========================================================
   PROFILE STATS
   ========================================================= */

.sn-profile-stats {
    display: flex;
    align-items: stretch;

    margin: 0 1.5rem;

    border-top: 1px solid rgba(39, 50, 74, 0.75);
}

.sn-profile-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    min-width: 7rem;

    padding: 1rem 1.25rem;

    color: #94a3b8;

    font-size: 0.8rem;

    text-decoration: none;

    transition:
        background 160ms ease,
        color 160ms ease;
}

.sn-profile-stat:hover {
    background: rgba(99, 102, 241, 0.05);
    color: #ffffff;
}

.sn-profile-stat strong {
    color: #f8fafc;

    font-size: 1rem;
    font-weight: 800;
}

.sn-profile-stat-label {
    color: #64748b;
}


/* =========================================================
   PROFILE NAVIGATION
   ========================================================= */

.sn-profile-tabs {
    display: flex;
    align-items: center;

    margin-top: 1rem;

    border-bottom: 1px solid rgba(39, 50, 74, 0.8);
}

.sn-profile-tab {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 3rem;

    padding: 0 1rem;

    color: #64748b;

    font-size: 0.82rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 160ms ease,
        background 160ms ease;
}

.sn-profile-tab:hover {
    color: #cbd5e1;
}

.sn-profile-tab.is-active {
    color: #a5b4fc;
}

.sn-profile-tab.is-active::after {
    content: "";

    position: absolute;

    left: 1rem;
    right: 1rem;
    bottom: -1px;

    height: 2px;

    border-radius: 999px;

    background: #818cf8;
}


/* =========================================================
   PROFILE CONTENT LAYOUT
   ========================================================= */

.sn-profile-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        18rem;

    gap: 1rem;

    margin-top: 1rem;
}


/* =========================================================
   NEWSFEED
   ========================================================= */

.sn-profile-feed {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 0.85rem;
}

.sn-profile-feed-post {
    position: relative;

    overflow: hidden;

    border: 1px solid rgba(39, 50, 74, 0.8);
    border-radius: 1rem;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 43, 0.96),
            rgba(11, 16, 32, 0.98)
        );

    transition:
        border-color 160ms ease,
        transform 160ms ease;
}

.sn-profile-feed-post:hover {
    border-color: rgba(71, 85, 105, 0.9);
}

.sn-profile-feed-head {
    display: flex;
    align-items: center;

    gap: 0.75rem;

    padding: 1rem 1rem 0;
}

.sn-profile-feed-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 2.5rem;
    height: 2.5rem;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 999px;

    background: #312e81;

    color: #c7d2fe;

    font-size: 0.85rem;
    font-weight: 800;
}

.sn-profile-feed-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.sn-profile-feed-author {
    min-width: 0;
}

.sn-profile-feed-author strong {
    display: block;

    color: #e2e8f0;

    font-size: 0.82rem;
    font-weight: 750;
}

.sn-profile-feed-time {
    display: block;

    margin-top: 0.15rem;

    color: #64748b;

    font-size: 0.7rem;
}

.sn-profile-feed-body {
    padding: 1rem;

    color: #cbd5e1;

    font-size: 0.9rem;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.sn-profile-feed-body p {
    margin: 0;
}

.sn-profile-feed-link {
    display: block;

    margin: 0 1rem 1rem;

    padding: 0.9rem;

    border: 1px solid rgba(39, 50, 74, 0.75);
    border-radius: 0.8rem;

    background: rgba(11, 16, 32, 0.55);

    color: #c7d2fe;

    text-decoration: none;
}

.sn-profile-feed-link:hover {
    border-color: rgba(99, 102, 241, 0.5);

    background: rgba(99, 102, 241, 0.07);
}

.sn-profile-feed-link-label {
    display: block;

    margin-bottom: 0.3rem;

    color: #818cf8;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.sn-profile-feed-link-title {
    color: #f1f5f9;

    font-size: 0.9rem;
    font-weight: 750;
}

.sn-profile-feed-actions {
    display: flex;
    align-items: center;

    border-top: 1px solid rgba(39, 50, 74, 0.55);
}

.sn-profile-feed-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 1;

    min-height: 2.8rem;

    color: #64748b;

    font-size: 0.75rem;
    font-weight: 650;

    text-decoration: none;

    transition:
        color 160ms ease,
        background 160ms ease;
}

.sn-profile-feed-action:hover {
    background: rgba(99, 102, 241, 0.05);

    color: #a5b4fc;
}


/* =========================================================
   PROFILE SIDEBAR
   ========================================================= */

.sn-profile-sidebar {
    display: flex;
    flex-direction: column;

    gap: 0.85rem;
}

.sn-profile-side-card {
    padding: 1rem;

    border: 1px solid rgba(39, 50, 74, 0.8);
    border-radius: 1rem;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 43, 0.96),
            rgba(11, 16, 32, 0.98)
        );
}

.sn-profile-side-title {
    margin: 0 0 0.85rem;

    color: #f1f5f9;

    font-size: 0.85rem;
    font-weight: 750;
}

.sn-profile-side-list {
    display: flex;
    flex-direction: column;

    gap: 0.65rem;
}

.sn-profile-side-item {
    display: flex;
    align-items: center;

    gap: 0.65rem;

    color: #94a3b8;

    font-size: 0.78rem;

    text-decoration: none;
}

.sn-profile-side-item:hover {
    color: #c7d2fe;
}


/* =========================================================
   PROFILE NOVELS
   ========================================================= */

.sn-profile-novels {
    display: flex;
    flex-direction: column;

    gap: 0.7rem;
}

.sn-profile-novel {
    display: flex;
    align-items: center;

    gap: 0.75rem;

    padding: 0.65rem;

    border: 1px solid rgba(39, 50, 74, 0.7);
    border-radius: 0.8rem;

    background: rgba(11, 16, 32, 0.45);

    text-decoration: none;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.sn-profile-novel:hover {
    border-color: rgba(99, 102, 241, 0.45);

    background: rgba(99, 102, 241, 0.05);

    transform: translateY(-1px);
}

.sn-profile-novel-cover {
    width: 3.25rem;
    height: 4.25rem;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 0.5rem;

    background: #151e34;
}

.sn-profile-novel-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.sn-profile-novel-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #6366f1;

    font-size: 1rem;
    font-weight: 800;
}

.sn-profile-novel-info {
    min-width: 0;
}

.sn-profile-novel-title {
    display: block;

    color: #e2e8f0;

    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.35;

    overflow-wrap: anywhere;
}

.sn-profile-novel-meta {
    display: block;

    margin-top: 0.3rem;

    color: #64748b;

    font-size: 0.68rem;
    line-height: 1.4;
}

.sn-profile-novel-genre {
    display: block;

    margin-top: 0.3rem;

    color: #818cf8;

    font-size: 0.65rem;
    font-weight: 650;
}


/* =========================================================
   PROFILE EMPTY STATES
   ========================================================= */

.sn-profile-empty {
    display: flex;
    align-items: center;
    flex-direction: column;

    padding: 3rem 1.5rem;

    border: 1px solid rgba(39, 50, 74, 0.8);
    border-radius: 1rem;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 43, 0.96),
            rgba(11, 16, 32, 0.98)
        );

    text-align: center;
}

.sn-profile-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 3.5rem;
    height: 3.5rem;

    margin-bottom: 0.9rem;

    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 1rem;

    background: rgba(99, 102, 241, 0.08);

    color: #818cf8;

    font-size: 1.5rem;
}

.sn-profile-empty h3 {
    margin: 0;

    color: #f1f5f9;

    font-size: 1rem;
    font-weight: 750;
}

.sn-profile-empty p {
    max-width: 28rem;

    margin: 0.5rem 0 0;

    color: #64748b;

    font-size: 0.8rem;
    line-height: 1.6;
}


/* =========================================================
   MOBILE PROFILE
   ========================================================= */

@media (max-width: 767px) {

    .sn-profile-page {
        padding-top: 1rem;
        padding-bottom: 2.5rem;
    }

    .sn-profile-hero {
        border-radius: 1rem;
    }

    .sn-profile-cover {
        height: 6.5rem;
    }

    .sn-profile-main {
        align-items: flex-start;
        flex-direction: column;

        gap: 0.8rem;

        padding:
            0
            1rem
            1rem;
    }

    .sn-profile-avatar-wrap {
        margin-top: -2.75rem;
    }

    .sn-profile-avatar {
        width: 5.5rem;
        height: 5.5rem;

        border-width: 3px;

        font-size: 1.7rem;
    }

    .sn-profile-identity {
        width: 100%;

        padding-top: 0;
    }

    .sn-profile-name {
        font-size: 1.55rem;
    }

    .sn-profile-bio {
        font-size: 0.82rem;
    }

    .sn-profile-actions {
        width: 100%;
    }

    .sn-profile-follow-button,
    .sn-profile-edit-button {
        flex: 1;
    }

    .sn-profile-stats {
        margin: 0;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .sn-profile-stats::-webkit-scrollbar {
        display: none;
    }

    .sn-profile-stat {
        flex: 1;

        min-width: 0;

        padding: 0.85rem 0.6rem;

        flex-direction: column;
        gap: 0.1rem;
    }

    .sn-profile-stat strong {
        font-size: 0.95rem;
    }

    .sn-profile-stat-label {
        font-size: 0.68rem;
    }

    .sn-profile-tabs {
        overflow-x: auto;

        scrollbar-width: none;
    }

    .sn-profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .sn-profile-tab {
        flex: 1;

        min-width: 5.5rem;

        padding: 0 0.7rem;
    }

    .sn-profile-content {
        grid-template-columns: 1fr;

        gap: 0.85rem;
    }

    .sn-profile-sidebar {
        order: 2;
    }

    .sn-profile-feed {
        order: 1;
    }

    .sn-profile-feed-post {
        border-radius: 0.85rem;
    }

    .sn-profile-feed-head {
        padding: 0.9rem 0.9rem 0;
    }

    .sn-profile-feed-body {
        padding: 0.9rem;

        font-size: 0.85rem;
    }

    .sn-profile-feed-link {
        margin-left: 0.9rem;
        margin-right: 0.9rem;
    }
}


/* =========================================================
   EXTRA SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .sn-profile-main {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .sn-profile-avatar {
        width: 5rem;
        height: 5rem;
    }

    .sn-profile-name {
        font-size: 1.4rem;
    }

    .sn-profile-stat {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .sn-profile-stat-label {
        font-size: 0.62rem;
    }

    .sn-profile-tab {
        min-width: 4.8rem;
        font-size: 0.72rem;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sn-profile-follow-button,
    .sn-profile-edit-button,
    .sn-profile-feed-post,
    .sn-profile-feed-action,
    .sn-profile-novel {
        transition: none;
    }

    .sn-profile-follow-button:hover,
    .sn-profile-edit-button:hover,
    .sn-profile-novel:hover {
        transform: none;
    }
}

 /* =========================================================
   PROFILE IMAGE UPLOADER
========================================================= */

.sn-profile-avatar-wrap {
    position: relative;
}

.sn-profile-avatar-edit {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 34px;
    height: 34px;
    border: 3px solid var(--color-snovel-panel, #11182b);
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    font-size: 15px;
    transition: transform .2s ease, opacity .2s ease;
}

.sn-profile-avatar-edit:hover {
    transform: scale(1.08);
}

.sn-profile-cover {
    position: relative;
}

.sn-profile-cover-edit {
    position: absolute;
    right: 20px;
    bottom: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(8,12,25,.78);
    backdrop-filter: blur(12px);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.sn-profile-cover-edit:hover {
    background: rgba(8,12,25,.94);
    transform: translateY(-1px);
}


/* =========================================================
   MODAL
========================================================= */

.sn-profile-image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sn-profile-image-modal[hidden] {
    display: none;
}

.sn-profile-image-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3,7,18,.78);
    backdrop-filter: blur(8px);
}

.sn-profile-image-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 500px);
    background: var(--color-snovel-panel, #11182b);
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0,0,0,.5);
    padding: 26px;
    animation: snProfileModalIn .22s ease;
}

@keyframes snProfileModalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sn-profile-image-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.sn-profile-image-close:hover {
    background: rgba(255,255,255,.13);
}


/* =========================================================
   MODAL HEADER
========================================================= */

.sn-profile-image-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-right: 35px;
    margin-bottom: 22px;
}

.sn-profile-image-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background: rgba(99,102,241,.14);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sn-profile-image-header h2 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 750;
}

.sn-profile-image-header p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 13px;
}


/* =========================================================
   DROP / PREVIEW
========================================================= */

.sn-profile-image-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border: 1px dashed rgba(148,163,184,.35);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    background: rgba(255,255,255,.025);
    transition:
        border-color .2s ease,
        background .2s ease;
}

.sn-profile-image-drop:hover {
    border-color: #6366f1;
    background: rgba(99,102,241,.05);
}

.sn-profile-image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    border: 2px solid rgba(255,255,255,.08);
    color: #94a3b8;
    font-size: 38px;
    margin-bottom: 16px;
}

.sn-profile-image-preview.is-cover {
    width: 100%;
    height: 150px;
    border-radius: 15px;
}

.sn-profile-image-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sn-profile-image-drop-text {
    text-align: center;
}

.sn-profile-image-drop-text strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.sn-profile-image-drop-text span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}


/* =========================================================
   ERROR
========================================================= */

.sn-profile-image-error {
    margin-top: 13px;
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(239,68,68,.10);
    border: 1px solid rgba(239,68,68,.2);
    color: #fca5a5;
    font-size: 13px;
}

.sn-profile-image-error[hidden] {
    display: none;
}


/* =========================================================
   BUTTONS
========================================================= */

.sn-profile-image-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.sn-profile-image-cancel,
.sn-profile-image-upload {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 17px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sn-profile-image-cancel {
    border: 1px solid var(--color-snovel-border, #27324a);
    background: transparent;
    color: #cbd5e1;
}

.sn-profile-image-upload {
    border: 0;
    background: #6366f1;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sn-profile-image-upload:hover:not(:disabled) {
    background: #4f46e5;
}

.sn-profile-image-upload:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.sn-profile-image-upload.is-loading {
    pointer-events: none;
    opacity: .7;
}

.sn-profile-image-upload-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: snProfileSpin .7s linear infinite;
}

.sn-profile-image-upload.is-loading .sn-profile-image-upload-spinner {
    display: block;
}

@keyframes snProfileSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .sn-profile-image-modal {
        align-items: flex-end;
        padding: 0;
    }

    .sn-profile-image-dialog {
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
        animation: snProfileSheetIn .22s ease;
    }

    @keyframes snProfileSheetIn {
        from {
            opacity: 0;
            transform: translateY(100%);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .sn-profile-image-drop {
        min-height: 230px;
    }

    .sn-profile-image-preview {
        width: 130px;
        height: 130px;
    }

    .sn-profile-image-actions {
        display: grid;
        grid-template-columns: 1fr 1.3fr;
    }

    .sn-profile-image-cancel,
    .sn-profile-image-upload {
        width: 100%;
        justify-content: center;
    }

    .sn-profile-cover-edit {
        right: 12px;
        bottom: 12px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .sn-profile-cover-edit span:last-child {
        display: none;
    }

    .sn-profile-avatar-edit {
        width: 31px;
        height: 31px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sn-profile-image-dialog {
        animation: none;
    }

    .sn-profile-image-upload-spinner {
        animation: none;
    }
}

/* =========================================================
   NOVEL VIEW PAGE
========================================================= */

.sn-novel-page {
    width: 100%;
    padding-bottom: 70px;
}


/* =========================================================
   HERO
========================================================= */

.sn-novel-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-snovel-border, #27324a);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(99,102,241,.13),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(99,102,241,.08),
            transparent 35%
        );
}

.sn-novel-hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 50px;
    align-items: center;
}


/* =========================================================
   COVER
========================================================= */

.sn-novel-cover-large {
    width: 280px;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-snovel-panel, #11182b);
    border: 1px solid var(--color-snovel-border, #27324a);
    box-shadow:
        0 25px 70px rgba(0,0,0,.38);
}

.sn-novel-cover-large img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sn-novel-cover-large-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            #151e34,
            #0b1020
        );
    color: #64748b;
    font-size: 55px;
}


/* =========================================================
   INFO
========================================================= */

.sn-novel-info-main {
    min-width: 0;
}

.sn-novel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.sn-novel-genre-tag,
.sn-novel-status-tag {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.sn-novel-genre-tag {
    background: rgba(99,102,241,.12);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,.18);
}

.sn-novel-status-tag {
    background: rgba(255,255,255,.05);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,.08);
}

.sn-novel-status-tag.status-completed {
    color: #86efac;
    background: rgba(34,197,94,.08);
    border-color: rgba(34,197,94,.16);
}

.sn-novel-status-tag.status-hiatus {
    color: #fcd34d;
    background: rgba(234,179,8,.08);
    border-color: rgba(234,179,8,.16);
}


.sn-novel-page-title {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 800;
}


.sn-novel-author-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 13px;
    color: #64748b;
    font-size: 14px;
}

.sn-novel-author-line a {
    color: #a5b4fc;
    font-weight: 700;
    text-decoration: none;
}

.sn-novel-author-line a:hover {
    text-decoration: underline;
}


.sn-novel-description {
    max-width: 760px;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   ACTIONS
========================================================= */

.sn-novel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.sn-novel-start-button,
.sn-novel-favorite-button {
    min-height: 46px;
    border-radius: 13px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.sn-novel-start-button {
    background: #6366f1;
    color: #fff;
}

.sn-novel-start-button:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.sn-novel-favorite-button {
    border: 1px solid var(--color-snovel-border, #27324a);
    background: rgba(255,255,255,.035);
    color: #cbd5e1;
    cursor: pointer;
}

.sn-novel-favorite-button:hover {
    background: rgba(255,255,255,.07);
}

.sn-novel-favorite-button.is-favorited {
    color: #c4b5fd;
    border-color: rgba(99,102,241,.35);
    background: rgba(99,102,241,.10);
}

.sn-novel-favorite-icon {
    font-size: 18px;
}


/* =========================================================
   STATS
========================================================= */

.sn-novel-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(148,163,184,.12);
}

.sn-novel-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sn-novel-stat strong {
    color: #f8fafc;
    font-size: 19px;
    line-height: 1.1;
}

.sn-novel-stat span {
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}


/* =========================================================
   CHAPTERS
========================================================= */

.sn-novel-chapters-section {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 50px;
}

.sn-novel-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.sn-novel-section-head h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
}

.sn-novel-chapter-count {
    color: #64748b;
    font-size: 12px;
}


.sn-novel-chapter-list {
    overflow: hidden;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 18px;
    background: var(--color-snovel-panel, #11182b);
}


.sn-novel-chapter {
    min-height: 72px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(148,163,184,.09);
    transition:
        background .18s ease,
        padding-left .18s ease;
}

.sn-novel-chapter:last-child {
    border-bottom: 0;
}

.sn-novel-chapter:hover {
    background: rgba(99,102,241,.055);
    padding-left: 22px;
}


.sn-novel-chapter-number {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 12px;
    background: rgba(99,102,241,.10);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}


.sn-novel-chapter-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sn-novel-chapter-label {
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 750;
}

.sn-novel-chapter-info strong {
    overflow: hidden;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.sn-novel-chapter-arrow {
    color: #6366f1;
    font-size: 20px;
    transition: transform .18s ease;
}

.sn-novel-chapter:hover .sn-novel-chapter-arrow {
    transform: translateX(4px);
}


/* =========================================================
   EMPTY CHAPTER STATE
========================================================= */

.sn-novel-no-chapters {
    padding: 55px 25px;
    text-align: center;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 18px;
    background: var(--color-snovel-panel, #11182b);
}

.sn-novel-no-chapters-icon {
    margin-bottom: 13px;
    font-size: 32px;
}

.sn-novel-no-chapters h3 {
    margin: 0;
    color: #e2e8f0;
    font-size: 17px;
}

.sn-novel-no-chapters p {
    margin: 7px auto 0;
    max-width: 400px;
    color: #64748b;
    font-size: 13px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .sn-novel-hero-inner {
        width: min(100% - 28px, 600px);
        padding: 32px 0 38px;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .sn-novel-cover-large {
        width: 120px;
        border-radius: 14px;
    }

    .sn-novel-cover-large-placeholder {
        font-size: 35px;
    }

    .sn-novel-page-title {
        font-size: 27px;
        letter-spacing: -.025em;
    }

    .sn-novel-author-line {
        font-size: 12px;
    }

    .sn-novel-description {
        grid-column: 1 / -1;
        margin-top: 3px;
        font-size: 13px;
        line-height: 1.7;
    }

    .sn-novel-actions {
        grid-column: 1 / -1;
        margin-top: 18px;
    }

    .sn-novel-start-button,
    .sn-novel-favorite-button {
        flex: 1;
        min-width: 130px;
    }

    .sn-novel-stats {
        grid-column: 1 / -1;
        gap: 20px;
        margin-top: 5px;
        padding-top: 18px;
    }

    .sn-novel-stat strong {
        font-size: 16px;
    }

    .sn-novel-chapters-section {
        width: min(100% - 28px, 600px);
        padding-top: 35px;
    }

    .sn-novel-section-head h2 {
        font-size: 23px;
    }

    .sn-novel-chapter {
        min-height: 65px;
        padding: 10px 12px;
        gap: 11px;
    }

    .sn-novel-chapter:hover {
        padding-left: 12px;
    }

    .sn-novel-chapter-number {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
    }

    .sn-novel-chapter-info strong {
        font-size: 13px;
    }

    .sn-novel-chapter-arrow {
        font-size: 17px;
    }
}


@media (max-width: 430px) {

    .sn-novel-hero-inner {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 16px;
    }

    .sn-novel-cover-large {
        width: 100px;
    }

    .sn-novel-page-title {
        font-size: 23px;
    }

    .sn-novel-tags {
        gap: 5px;
        margin-bottom: 9px;
    }

    .sn-novel-genre-tag,
    .sn-novel-status-tag {
        min-height: 25px;
        padding: 0 8px;
        font-size: 10px;
    }

    .sn-novel-description {
        margin-top: 18px;
    }

    .sn-novel-actions {
        flex-direction: column;
    }

    .sn-novel-start-button,
    .sn-novel-favorite-button {
        width: 100%;
    }

    .sn-novel-stats {
        justify-content: space-between;
    }

    .sn-novel-stat span {
        font-size: 9px;
    }
}

/* =========================================================
   SNOVEL READER
========================================================= */

.sn-reader-page {
    min-height: 100vh;
    background: var(--color-snovel-bg, #0b1020);
    padding-bottom: 80px;
}


/* =========================================================
   READING PROGRESS
========================================================= */

.sn-reader-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 3px;
    background: rgba(15,23,42,.85);
}

.sn-reader-progress-bar {
    height: 100%;
    background: #6366f1;
    transition: width .12s linear;
}


/* =========================================================
   READER HEADER
========================================================= */

.sn-reader-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148,163,184,.08);
    background: rgba(11,16,32,.88);
    backdrop-filter: blur(16px);
}

.sn-reader-header-inner {
    width: min(900px, calc(100% - 32px));
    height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sn-reader-back {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.sn-reader-back:hover {
    color: #c7d2fe;
}

.sn-reader-back-arrow {
    color: #818cf8;
    font-size: 18px;
}

.sn-reader-back-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-reader-header-title {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}


/* =========================================================
   MAIN
========================================================= */

.sn-reader-main {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
}


/* =========================================================
   CHAPTER HEADING
========================================================= */

.sn-reader-heading {
    max-width: 760px;
    margin: 0 auto;
    padding: 58px 0 25px;
    text-align: center;
}

.sn-reader-kicker {
    color: #818cf8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.sn-reader-title {
    margin: 10px 0 0;
    color: #f8fafc;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 800;
}

.sn-reader-author {
    display: inline-block;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sn-reader-author:hover {
    color: #a5b4fc;
}


/* =========================================================
   CONTROLS
========================================================= */

.sn-reader-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px auto 42px;
}

.sn-reader-control {
    min-height: 38px;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 10px;
    padding: 0 12px;
    background: rgba(255,255,255,.025);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.sn-reader-control:hover {
    background: rgba(99,102,241,.08);
    border-color: rgba(99,102,241,.3);
    color: #c7d2fe;
}

.sn-reader-control small {
    font-size: 13px;
}

.sn-reader-bookmark.is-active {
    color: #a5b4fc;
    border-color: rgba(99,102,241,.35);
    background: rgba(99,102,241,.1);
}


/* =========================================================
   CONTENT
========================================================= */

.sn-reader-content {
    width: min(720px, 100%);
    margin: 0 auto;
    color: #dbe4f0;
    font-size: 18px;
    line-height: 1.95;
    font-family:
        Georgia,
        'Times New Roman',
        serif;
}

.sn-reader-content p {
    margin: 0 0 1.35em;
}

.sn-reader-content h2,
.sn-reader-content h3,
.sn-reader-content h4 {
    margin: 1.8em 0 .7em;
    color: #f8fafc;
    line-height: 1.3;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}

.sn-reader-content h2 {
    font-size: 27px;
}

.sn-reader-content h3 {
    font-size: 23px;
}

.sn-reader-content h4 {
    font-size: 20px;
}

.sn-reader-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 28px auto;
    border-radius: 12px;
}

.sn-reader-content blockquote {
    margin: 28px 0;
    padding: 15px 20px;
    border-left: 3px solid #6366f1;
    background: rgba(99,102,241,.06);
    color: #aebbd0;
    border-radius: 0 10px 10px 0;
}

.sn-reader-content a {
    color: #a5b4fc;
}

.sn-reader-content strong {
    color: #f1f5f9;
}


/* =========================================================
   CHAPTER NAVIGATION
========================================================= */

.sn-reader-navigation {
    width: min(760px, 100%);
    margin: 58px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(148,163,184,.12);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.sn-reader-navigation-item {
    min-width: 0;
}

.sn-reader-navigation-next {
    display: flex;
    justify-content: flex-end;
}

.sn-reader-nav-button {
    max-width: 230px;
    min-height: 58px;
    padding: 9px 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    transition: background .18s ease, border-color .18s ease;
}

.sn-reader-nav-button:hover {
    background: rgba(99,102,241,.07);
    border-color: rgba(99,102,241,.28);
}

.sn-reader-nav-direction {
    color: #818cf8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.sn-reader-nav-button strong {
    margin-top: 3px;
    overflow: hidden;
    color: #dbe4f0;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-reader-all-chapters {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #94a3b8;
    background: rgba(255,255,255,.02);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.sn-reader-all-chapters:hover {
    color: #c7d2fe;
    background: rgba(99,102,241,.06);
}


/* =========================================================
   SNOVEL NOVEL EDITOR
   ========================================================= */

.sn-editor-page {
    width: min(100% - 32px, 980px);
    margin: 0 auto;
    padding: 42px 0 80px;
}

.sn-editor-header {
    margin-bottom: 28px;
}

.sn-editor-header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.sn-editor-title {
    margin: 6px 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.sn-editor-description {
    max-width: 650px;
    margin: 0;
    color: #94a3b8;
    font-size: .98rem;
    line-height: 1.7;
}

.sn-editor-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 11px 16px;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 12px;
    background: rgba(17, 24, 43, .72);
    color: #cbd5e1;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 700;
    transition: .2s ease;
}

.sn-editor-back:hover {
    border-color: #6366f1;
    color: #fff;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   ALERT
   --------------------------------------------------------- */

.sn-editor-alert {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
    padding: 15px 17px;
    border: 1px solid rgba(248, 113, 113, .28);
    border-radius: 14px;
    background: rgba(127, 29, 29, .16);
    color: #fecaca;
}

.sn-editor-alert-icon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 50%;
    background: rgba(248, 113, 113, .16);
    color: #fca5a5;
    font-weight: 800;
}

.sn-editor-alert strong {
    color: #fca5a5;
}

.sn-editor-alert ul {
    margin: 6px 0 0;
    padding-left: 18px;
}


/* ---------------------------------------------------------
   FORM / CARDS
   --------------------------------------------------------- */

.sn-editor-form {
    display: grid;
    gap: 20px;
}

.sn-editor-card {
    overflow: hidden;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 43, .96),
            rgba(15, 23, 42, .90)
        );
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.sn-editor-card-header {
    padding: 24px 26px;
    border-bottom: 1px solid var(--color-snovel-border, #27324a);
}

.sn-editor-card-kicker {
    display: block;
    margin-bottom: 5px;
    color: #818cf8;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sn-editor-card-header h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.15rem;
    font-weight: 800;
}

.sn-editor-card-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: .86rem;
}

.sn-editor-fields {
    display: grid;
    gap: 22px;
    padding: 26px;
}

.sn-editor-field {
    display: grid;
    gap: 8px;
}

.sn-editor-label {
    color: #e2e8f0;
    font-size: .86rem;
    font-weight: 700;
}

.sn-editor-input,
.sn-editor-textarea,
.sn-editor-select {
    width: 100%;
    border: 1px solid #27324a;
    border-radius: 12px;
    background: #0b1020;
    color: #f8fafc;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sn-editor-input,
.sn-editor-select {
    min-height: 48px;
    padding: 0 14px;
}

.sn-editor-textarea {
    min-height: 170px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.7;
}

.sn-editor-input::placeholder,
.sn-editor-textarea::placeholder {
    color: #475569;
}

.sn-editor-input:focus,
.sn-editor-textarea:focus,
.sn-editor-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.sn-editor-help {
    color: #64748b;
    font-size: .76rem;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   COVER
   --------------------------------------------------------- */

.sn-editor-cover-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    align-items: center;
    padding: 26px;
}

.sn-editor-cover-preview {
    width: 150px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid #27324a;
    border-radius: 14px;
    background: #0b1020;
}

.sn-editor-cover-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-editor-cover-placeholder {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    color: #64748b;
    font-size: .78rem;
}

.sn-editor-cover-placeholder span {
    font-size: 2rem;
}

.sn-editor-cover-content {
    display: grid;
    gap: 9px;
}

.sn-editor-file input {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px dashed #334155;
    border-radius: 12px;
    background: #0b1020;
    color: #94a3b8;
    font-size: .82rem;
}


/* ---------------------------------------------------------
   PUBLISH SWITCH
   --------------------------------------------------------- */

.sn-editor-publish {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    cursor: pointer;
}

.sn-editor-publish-content {
    display: grid;
    gap: 5px;
}

.sn-editor-publish-content strong {
    color: #f8fafc;
    font-size: .95rem;
}

.sn-editor-publish-content small {
    max-width: 650px;
    color: #64748b;
    font-size: .8rem;
    line-height: 1.5;
}

.sn-editor-switch {
    position: relative;
    flex: 0 0 auto;
}

.sn-editor-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sn-editor-switch-track {
    display: block;
    position: relative;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: #27324a;
    transition: .2s ease;
}

.sn-editor-switch-track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #94a3b8;
    transition: .2s ease;
}

.sn-editor-switch input:checked + .sn-editor-switch-track {
    background: #6366f1;
}

.sn-editor-switch input:checked + .sn-editor-switch-track::after {
    transform: translateX(22px);
    background: #fff;
}


/* ---------------------------------------------------------
   ACTIONS
   --------------------------------------------------------- */

.sn-editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

.sn-editor-cancel,
.sn-editor-save {
    min-height: 46px;
    padding: 0 19px;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
    transition: .2s ease;
}

.sn-editor-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #27324a;
    background: #11182b;
    color: #94a3b8;
}

.sn-editor-cancel:hover {
    color: #fff;
    border-color: #475569;
}

.sn-editor-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(99, 102, 241, .22);
}

.sn-editor-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(99, 102, 241, .3);
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .sn-editor-page {
        width: min(100% - 20px, 980px);
        padding: 28px 0 60px;
    }

    .sn-editor-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .sn-editor-title {
        font-size: 2rem;
    }

    .sn-editor-back {
        width: 100%;
        justify-content: center;
    }

    .sn-editor-card {
        border-radius: 16px;
    }

    .sn-editor-card-header {
        padding: 20px;
    }

    .sn-editor-fields {
        padding: 20px;
        gap: 19px;
    }

    .sn-editor-cover-layout {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .sn-editor-cover-preview {
        width: 130px;
    }

    .sn-editor-publish {
        padding: 20px;
    }

    .sn-editor-actions {
        display: grid;
        grid-template-columns: 1fr 1.4fr;
    }

    .sn-editor-cancel,
    .sn-editor-save {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sn-editor-back,
    .sn-editor-save,
    .sn-editor-input,
    .sn-editor-textarea,
    .sn-editor-select,
    .sn-editor-switch-track,
    .sn-editor-switch-track::after {
        transition: none;
    }
}

/* =========================================================
   SNOVEL DISCOVER PAGE
   ========================================================= */

.sn-discover-page {
    position: relative;
    min-height: calc(100vh - 5rem);
    padding: 42px 0 80px;
}

.sn-discover-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.sn-discover-page-header h1 {
    margin: 6px 0 8px;
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.04em;
}

.sn-discover-page-header p {
    max-width: 650px;
    margin: 0;
    color: #94a3b8;
    font-size: .96rem;
    line-height: 1.7;
}

.sn-discover-search {
    margin-bottom: 24px;
}

.sn-discover-search .sn-home-search {
    max-width: 820px;
}

.sn-discover-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.sn-discover-filter-group,
.sn-discover-status-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sn-discover-filter,
.sn-discover-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #27324a;
    border-radius: 10px;
    background: rgba(17, 24, 43, .7);
    color: #94a3b8;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
    transition: .2s ease;
}

.sn-discover-filter:hover,
.sn-discover-status:hover {
    border-color: #475569;
    color: #f8fafc;
}

.sn-discover-filter.is-active,
.sn-discover-status.is-active {
    border-color: rgba(99, 102, 241, .65);
    background: rgba(99, 102, 241, .14);
    color: #a5b4fc;
}

@media (max-width: 700px) {

    .sn-discover-page {
        padding: 28px 0 60px;
    }

    .sn-discover-page-header {
        margin-bottom: 22px;
    }

    .sn-discover-page-header h1 {
        font-size: 2rem;
    }

    .sn-discover-page-header p {
        font-size: .9rem;
    }

    .sn-discover-filters {
        align-items: flex-start;
        flex-direction: column;
    }

    .sn-discover-filter-group,
    .sn-discover-status-group {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .sn-discover-filter-group::-webkit-scrollbar,
    .sn-discover-status-group::-webkit-scrollbar {
        display: none;
    }

    .sn-discover-filter,
    .sn-discover-status {
        flex: 0 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sn-discover-filter,
    .sn-discover-status {
        transition: none;
    }
}

/* =========================================================
   READER RESUME
========================================================= */

.sn-reader-resume {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    width: min(520px, calc(100% - 28px));
    transform: translateX(-50%);
    animation: snReaderResumeIn .28s ease;
}

.sn-reader-resume-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 18px;
    background: var(--color-snovel-panel, #11182b);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    backdrop-filter: blur(16px);
}

.sn-reader-resume-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sn-reader-resume-text strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.sn-reader-resume-text span {
    color: #94a3b8;
    font-size: 12px;
}

.sn-reader-resume-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sn-reader-resume-continue,
.sn-reader-resume-start {
    border: 0;
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
}

.sn-reader-resume-continue {
    padding: 10px 14px;
    border-radius: 10px;
    background: #6366f1;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, opacity .2s ease;
}

.sn-reader-resume-continue:hover {
    transform: translateY(-1px);
    opacity: .92;
}

.sn-reader-resume-start {
    padding: 8px 4px;
    background: transparent;
    color: #94a3b8;
    font-size: 11px;
}

.sn-reader-resume-start:hover {
    color: #fff;
}

@keyframes snReaderResumeIn {

    from {
        opacity: 0;
        transform:
            translate(-50%, 18px);
    }

    to {
        opacity: 1;
        transform:
            translate(-50%, 0);
    }
}

@media (max-width: 640px) {

    .sn-reader-resume {
        bottom: 14px;
        width: calc(100% - 20px);
    }

    .sn-reader-resume-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        padding: 15px;
    }

    .sn-reader-resume-actions {
        width: 100%;
        justify-content: space-between;
    }

    .sn-reader-resume-continue {
        flex: 1;
    }

    .sn-reader-resume-start {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* =========================================================
   PEOPLE YOU MAY KNOW
========================================================= */

.sn-people-section {
    width: 100%;
    margin: 28px 0;
    padding: 22px 0;
}

.sn-people-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    padding: 0 2px;
}

.sn-people-heading {
    min-width: 0;
}

.sn-people-heading h2 {
    margin: 3px 0 0;
    color: #f8fafc;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 750;
}

.sn-people-refresh {
    flex-shrink: 0;
    border: 0;
    padding: 4px 0;
    background: transparent;
    color: #a855f7;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    transition:
        opacity .2s ease,
        transform .2s ease;
}

.sn-people-refresh:hover {
    opacity: .8;
    transform: translateY(-1px);
}

.sn-people-refresh:disabled {
    cursor: wait;
    opacity: .55;
}

.sn-people-refresh.is-loading {
    opacity: .55;
}


/* =========================================================
   HORIZONTAL PEOPLE TRACK
========================================================= */

.sn-people-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 205px;
    gap: 14px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 2px 9px;

    scrollbar-width: none;

    overscroll-behavior-x: contain;

    scroll-snap-type: x proximity;

    -webkit-overflow-scrolling: touch;
}

.sn-people-track::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   PERSON CARD
========================================================= */

.sn-person-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid
        var(--color-snovel-border, #27324a);

    border-radius: 14px;

    background:
        var(--color-snovel-panel, #11182b);

    scroll-snap-align: start;
}


/* =========================================================
   COVER / IMAGE
========================================================= */

.sn-person-cover {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #1a2338;

    text-decoration: none;
}

.sn-person-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;
}

.sn-person-cover:hover img {
    transform: scale(1.035);
}

.sn-person-cover-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #1e293b;

    color: #c4b5fd;

    font-size: 52px;

    font-weight: 800;
}


/* =========================================================
   BODY
========================================================= */

.sn-person-body {
    padding: 12px;
}

.sn-person-name {
    display: block;

    overflow: hidden;

    color: #f8fafc;

    font-size: 16px;
    line-height: 1.25;

    font-weight: 750;

    text-decoration: none;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-person-name:hover {
    color: #c4b5fd;
}

.sn-person-username {
    overflow: hidden;

    margin-top: 3px;

    color: #64748b;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-person-meta {
    margin-top: 6px;

    color: #94a3b8;

    font-size: 11px;
}


/* =========================================================
   FOLLOW BUTTON
========================================================= */

.sn-person-follow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 39px;

    margin-top: 11px;

    border: 0;

    border-radius: 9px;

    background: #7c3aed;

    color: #fff;

    cursor: pointer;

    font: inherit;

    font-size: 13px;
    font-weight: 750;

    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.sn-person-follow:hover {
    background: #8b5cf6;

    transform:
        translateY(-1px);
}

.sn-person-follow:disabled {
    cursor: wait;

    opacity: .65;
}

.sn-person-follow.is-following {
    background: #27324a;

    color: #cbd5e1;
}

.sn-person-follow.is-following:hover {
    background: #334155;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .sn-people-section {
        margin: 20px 0;
        padding: 18px 0;
    }

    .sn-people-header {
        margin-bottom: 13px;
    }

    .sn-people-heading h2 {
        font-size: 19px;
    }

    .sn-people-refresh {
        font-size: 14px;
    }

    .sn-people-track {
        grid-auto-columns: 190px;

        gap: 12px;

        padding-left: 1px;
        padding-right: 14px;
    }

    .sn-person-body {
        padding: 11px;
    }

    .sn-person-name {
        font-size: 15px;
    }

    .sn-person-follow {
        min-height: 38px;
    }
}
/* =========================================================
   PEOPLE YOU MAY KNOW
========================================================= */

.sn-people-section {
    width: 100%;
    margin: 24px 0;
    padding: 18px 0;
}

.sn-people-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.sn-people-heading {
    min-width: 0;
}

.sn-people-heading h2 {
    margin: 3px 0 0;
    color: #f8fafc;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 750;
}

.sn-people-refresh {
    flex-shrink: 0;
    border: 0;
    padding: 4px 0;
    background: transparent;
    color: #a855f7;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   PEOPLE TRACK
========================================================= */

.sn-people-track {
    display: grid;
    grid-auto-flow: column;

    /*
     * Desktop:
     * 4 cards visible.
     */
    grid-auto-columns:
        calc((100% - 42px) / 4);

    gap: 14px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 2px 8px;

    scrollbar-width: none;

    scroll-snap-type: x proximity;

    -webkit-overflow-scrolling: touch;
}

.sn-people-track::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   PERSON CARD
========================================================= */

.sn-person-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid
        var(--color-snovel-border, #27324a);

    border-radius: 12px;

    background:
        var(--color-snovel-panel, #11182b);

    scroll-snap-align: start;
}


/* =========================================================
   IMAGE
========================================================= */

.sn-person-cover {
    position: relative;

    display: block;

    width: 100%;

    /*
     * Keep the image square.
     */
    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #1a2338;
}

.sn-person-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .25s ease;
}

.sn-person-cover:hover img {
    transform: scale(1.03);
}

.sn-person-cover-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #1e293b;

    color: #c4b5fd;

    font-size: 34px;

    font-weight: 800;
}


/* =========================================================
   CARD BODY
========================================================= */

.sn-person-body {
    padding: 8px;
}

.sn-person-name {
    display: block;

    overflow: hidden;

    color: #f8fafc;

    font-size: 13px;
    line-height: 1.25;

    font-weight: 700;

    text-decoration: none;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-person-name:hover {
    color: #c4b5fd;
}

.sn-person-username {
    overflow: hidden;

    margin-top: 2px;

    color: #64748b;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-person-meta {
    margin-top: 4px;

    color: #94a3b8;

    font-size: 9px;
}


/* =========================================================
   FOLLOW
========================================================= */

.sn-person-follow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 32px;

    margin-top: 7px;

    border: 0;

    border-radius: 7px;

    background: #7c3aed;

    color: #fff;

    cursor: pointer;

    font: inherit;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.sn-person-follow:hover {
    background: #8b5cf6;
}

.sn-person-follow:disabled {
    cursor: wait;
    opacity: .6;
}

.sn-person-follow.is-following {
    background: #27324a;
    color: #cbd5e1;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .sn-people-section {
        margin: 18px 0;
        padding: 15px 0;
    }

    .sn-people-heading h2 {
        font-size: 18px;
    }

    .sn-people-track {

        /*
         * EXACTLY 4 cards visible.
         *
         * 3 gaps × 7px = 21px
         *
         * The cards therefore occupy the
         * remaining width.
         */
        grid-auto-columns:
            calc((100% - 21px) / 4);

        gap: 7px;

        padding-left: 1px;
        padding-right: 10px;
    }

    .sn-person-card {
        border-radius: 9px;
    }

    .sn-person-body {
        padding: 7px;
    }

    .sn-person-name {
        font-size: 11px;
    }

    .sn-person-username {
        font-size: 8px;
    }

    .sn-person-meta {
        font-size: 8px;
    }

    .sn-person-follow {
        min-height: 29px;

        margin-top: 6px;

        border-radius: 6px;

        font-size: 10px;
    }
}

/* ==========================================================================
   SNOVEL COMMENTS SYSTEM
   Premium reader discussion UI
   ========================================================================== */

.sn-comments {
    width: 100%;
    max-width: 900px;
    margin: 70px auto 0;
    padding: 0 0 80px;
    color: var(--sn-text, #e8ecf7);
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.sn-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.sn-comments-title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--sn-text, #f4f6ff);
}

.sn-comments-count {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--sn-muted, #8d97ad);
}


/* ==========================================================================
   COMMENT COMPOSER
   ========================================================================== */

.sn-comment-form {
    margin-bottom: 30px;
}

.sn-comment-form {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    width: 100%;
    padding: 18px;
    border: 1px solid var(--snovel-border, #27324a);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(99, 102, 241, 0.08),
            rgba(17, 24, 43, 0.96)
        );
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.14);
}

.sn-comment-form-avatar,
.sn-comment-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            #6366f1,
            #8b5cf6
        );
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.10);
}

.sn-comment-form-avatar img,
.sn-comment-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-comment-form-avatar span,
.sn-comment-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sn-comment-form-main {
    min-width: 0;
    width: 100%;
}

.sn-comment-input {
    display: block;
    width: 100%;
    min-height: 92px;
    resize: vertical;
    padding: 13px 15px;
    border: 1px solid var(--snovel-border, #27324a);
    border-radius: 13px;
    outline: none;
    background: var(--snovel-panel-2, #151e34);
    color: var(--sn-text, #edf1ff);
    font: inherit;
    font-size: 0.94rem;
    line-height: 1.6;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.sn-comment-input::placeholder {
    color: var(--sn-muted, #7f899f);
}

.sn-comment-input:focus {
    border-color: rgba(99, 102, 241, 0.85);
    background: var(--snovel-panel, #11182b);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.12);
}

.sn-comment-mention-hint {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--sn-muted, #8993aa);
}

.sn-comment-mention-hint strong {
    color: #818cf8;
}

.sn-comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 12px;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */





.sn-comment-submit {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #6366f1,
            #7c3aed
        );
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow:
        0 7px 18px rgba(99, 102, 241, 0.18);
}

.sn-comment-submit:hover {
    box-shadow:
        0 10px 24px rgba(99, 102, 241, 0.28);
}




/* ==========================================================================
   LOGIN PROMPT
   ========================================================================== */

.sn-comments-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 30px;
    border: 1px solid var(--snovel-border, #27324a);
    border-radius: 16px;
    background: var(--snovel-panel, #11182b);
}

.sn-comments-login p {
    margin: 0;
    color: var(--sn-muted, #919bb0);
    font-size: 0.88rem;
}


/* ==========================================================================
   COMMENTS LIST
   ========================================================================== */

.sn-comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sn-comment {
    position: relative;
}

.sn-comment-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sn-comment-content {
    flex: 1;
    min-width: 0;
}

.sn-comment-bubble {
    width: fit-content;
    max-width: min(100%, 760px);
    padding: 12px 15px;
    border: 1px solid var(--snovel-border, #27324a);
    border-radius: 4px 16px 16px 16px;
    background: var(--snovel-panel, #11182b);
    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.08);
}

.sn-comment-author {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 5px;
}

.sn-comment-author strong {
    color: var(--sn-text, #f2f4ff);
    font-size: 0.87rem;
    font-weight: 800;
}

.sn-comment-author span {
    color: var(--sn-muted, #7f899f);
    font-size: 0.73rem;
}

.sn-comment-body {
    color: var(--sn-text, #d8deee);
    font-size: 0.9rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.sn-comment-mention {
    color: #818cf8;
    font-weight: 700;
}


/* ==========================================================================
   COMMENT ACTIONS
   ========================================================================== */

.sn-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
    padding-left: 3px;
}

.sn-comment-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--sn-muted, #818ba0);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.sn-comment-action:hover {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.08);
}

.sn-comment-action:active {
    transform: scale(0.96);
}

.sn-comment-action:disabled {
    opacity: 0.55;
    cursor: wait;
}

.sn-comment-action[data-comment-react] span:first-child {
    font-size: 0.86rem;
    transition:
        transform 0.18s ease,
        color 0.18s ease;
}

.sn-comment-action[data-comment-react]:hover span:first-child {
    transform: scale(1.12);
}

.sn-comment-action[data-comment-react].is-active {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.10);
}

.sn-comment-action[data-comment-react].is-active span:first-child {
    color: #8b5cf6;
}

.sn-comment-delete {
    color: #8c7180;
}

.sn-comment-delete:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
}


/* ==========================================================================
   REPLIES
   ========================================================================== */

.sn-comment-replies {
    position: relative;
    margin-top: 15px;
    margin-left: 54px;
    padding-left: 19px;
}

.sn-comment-replies::before {
    content: "";
    position: absolute;
    top: -8px;
    bottom: 8px;
    left: 0;
    width: 1px;
    background:
        linear-gradient(
            to bottom,
            rgba(99, 102, 241, 0.38),
            rgba(99, 102, 241, 0.06)
        );
}

.sn-comment-replies > .sn-comment + .sn-comment {
    margin-top: 17px;
}

.sn-comment-reply .sn-comment-avatar {
    width: 36px;
    height: 36px;
}

.sn-comment-reply .sn-comment-bubble {
    border-radius: 4px 14px 14px 14px;
    background:
        color-mix(
            in srgb,
            var(--snovel-panel, #11182b) 92%,
            #6366f1 8%
        );
}


/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.sn-comments-empty {
    padding: 50px 20px;
    text-align: center;
    border: 1px dashed var(--snovel-border, #27324a);
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.025);
}

.sn-comments-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.10);
    font-size: 1.35rem;
}

.sn-comments-empty h3 {
    margin: 0;
    color: var(--sn-text, #e9edfa);
    font-size: 1rem;
    font-weight: 800;
}

.sn-comments-empty p {
    max-width: 390px;
    margin: 8px auto 0;
    color: var(--sn-muted, #818ba0);
    font-size: 0.82rem;
    line-height: 1.55;
}


/* ==========================================================================
   TOAST
   ========================================================================== */

.sn-comment-toast {
    position: fixed;
    z-index: 99999;
    right: 22px;
    bottom: 22px;
    max-width: min(360px, calc(100vw - 44px));
    padding: 12px 16px;
    border: 1px solid var(--snovel-border, #27324a);
    border-radius: 11px;
    background: var(--snovel-panel, #11182b);
    color: var(--sn-text, #eef1ff);
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.25);
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.sn-comment-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sn-comment-toast-success {
    border-color: rgba(99, 102, 241, 0.4);
}

.sn-comment-toast-error {
    border-color: rgba(248, 113, 113, 0.4);
}



.sn-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.sn-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid rgba(129,140,248,.45);
    border-radius: 10px;
    background: linear-gradient(135deg,#6366f1,#7c3aed);
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(99,102,241,.18);
    transition: transform .18s ease,opacity .18s ease,box-shadow .18s ease;
}

.sn-comment-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(99,102,241,.28);
}

.sn-comment-submit:active { transform: translateY(0); }
.sn-comment-submit:disabled { opacity:.55; cursor:not-allowed; transform:none; }

.sn-comment-reaction-wrap { position:relative; display:inline-flex; }

.sn-comment-reaction-picker {
    position:absolute; z-index:50; left:0; bottom:calc(100% + 7px);
    display:flex; align-items:center; gap:3px; padding:6px;
    border:1px solid var(--snovel-border,#27324a); border-radius:12px;
    background:var(--snovel-panel,#11182b);
    box-shadow:0 14px 35px rgba(0,0,0,.25);
}

.sn-comment-reaction-picker[hidden],
.sn-comment-replying[hidden] { display:none !important; }

.sn-comment-reaction-picker button {
    display:inline-flex; align-items:center; justify-content:center;
    width:32px; height:32px; padding:0; border:0; border-radius:8px;
    background:transparent; font-size:1.05rem; line-height:1; cursor:pointer;
    transition:transform .15s ease,background .15s ease;
}

.sn-comment-reaction-picker button:hover { transform:scale(1.15); background:rgba(99,102,241,.10); }


/* ==========================================================================
   COMMENTS LIGHT MODE + RESPONSIVE
   ========================================================================== */

html:not(.dark) .sn-comments,
body:not(.dark) .sn-comments {
    --sn-text:#182033;
    --sn-muted:#687287;
    color:#182033;
}

html:not(.dark) .sn-comment-form,
body:not(.dark) .sn-comment-form {
    background:linear-gradient(145deg,rgba(99,102,241,.045),rgba(255,255,255,.98));
    box-shadow:0 10px 30px rgba(26,32,52,.07);
}

html:not(.dark) .sn-comment-input,
body:not(.dark) .sn-comment-input { background:#fff; color:#182033; }

html:not(.dark) .sn-comment-bubble,
body:not(.dark) .sn-comment-bubble { background:#fff; box-shadow:0 7px 22px rgba(26,32,52,.06); }

html:not(.dark) .sn-comments-login,
body:not(.dark) .sn-comments-login { background:#fff; }

html:not(.dark) .sn-comment-reply .sn-comment-bubble,
body:not(.dark) .sn-comment-reply .sn-comment-bubble { background:#fafaff; }

html:not(.dark) .sn-comment-reaction-picker,
body:not(.dark) .sn-comment-reaction-picker { background:#fff; box-shadow:0 14px 35px rgba(26,32,52,.14); }

@media (max-width:700px) {
    .sn-comments { width:calc(100% - 24px); margin-top:48px; padding-bottom:55px; }
    .sn-comments-header { align-items:center; gap:12px; margin-bottom:18px; }
    .sn-comments-title { font-size:1.25rem; }
    .sn-comments-count { font-size:.72rem; }

    .sn-comment-form {
        grid-template-columns:36px minmax(0,1fr);
        gap:10px; padding:14px; border-radius:15px;
    }
    .sn-comment-form-avatar,
    .sn-comment-avatar { flex-basis:36px; width:36px; height:36px; min-width:36px; }
    .sn-comment-input { min-height:82px; padding:11px 12px; font-size:.88rem; }
    .sn-comment-form-footer { align-items:flex-end; gap:8px; margin-top:9px; }
    .sn-comment-mention-hint { font-size:.68rem; }
    .sn-comment-submit { min-height:35px; padding:7px 13px; font-size:.76rem; }

    .sn-comments-login { align-items:flex-start; flex-direction:column; gap:11px; padding:15px; }
    .sn-comments-login a { width:100%; }
    .sn-comment-main { gap:9px; }
    .sn-comment-bubble { width:100%; padding:10px 12px; border-radius:4px 13px 13px 13px; }
    .sn-comment-body { font-size:.84rem; line-height:1.6; }
    .sn-comment-author strong { font-size:.82rem; }
    .sn-comment-author span, .sn-comment-author time { font-size:.66rem; }
    .sn-comment-actions { gap:1px; margin-top:3px; }
    .sn-comment-action { min-height:27px; padding:4px 7px; font-size:.69rem; }
    .sn-comment-replies { margin-left:30px; padding-left:12px; }
    .sn-comment-reply .sn-comment-avatar { flex-basis:32px; width:32px; height:32px; min-width:32px; }
    .sn-comment-reaction-picker { max-width:calc(100vw - 70px); overflow-x:auto; }
    .sn-comment-toast { right:12px; bottom:12px; max-width:calc(100vw - 24px); }
}

@media (max-width:400px) {
    .sn-comments { width:calc(100% - 20px); margin-top:40px; }
    .sn-comments-header { align-items:flex-start; }
    .sn-comments-count { padding-top:3px; }
    .sn-comment-form { grid-template-columns:32px minmax(0,1fr); gap:9px; padding:11px; }
    .sn-comment-form-avatar, .sn-comment-avatar { flex-basis:32px; width:32px; height:32px; min-width:32px; }
    .sn-comment-input { min-height:75px; padding:10px 11px; }
    .sn-comment-mention-hint { max-width:150px; }
    .sn-comment-replies { margin-left:21px; padding-left:10px; }
    .sn-comment-actions { flex-wrap:nowrap; }
    .sn-comment-action { padding-left:5px; padding-right:5px; }
}

@media (prefers-reduced-motion:reduce) {
    .sn-comments *, .sn-comments *::before, .sn-comments *::after {
        scroll-behavior:auto !important; transition:none !important; animation:none !important;
    }
}


/* =========================================================
   SNOVEL SETTINGS + PROFILE RINGS
   Merged into the main Snovel stylesheet.
   Purple-first • Desktop + Mobile • Dark/Light compatible
========================================================= */

/* ---------------------------------------------------------
   SETTINGS PAGE
--------------------------------------------------------- */

.sn-settings-page {
    width: 100%;
    padding: 32px 16px 60px;
    color: var(--sn-text, #e8ecf7);
}

.sn-settings-shell {
    width: min(900px, 100%);
    margin: 0 auto;
}

.sn-settings-header {
    margin: 12px 0 28px;
}

.sn-settings-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #a78bfa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.sn-settings-header h1 {
    margin: 5px 0 7px;
    color: var(--sn-text, #f8fafc);
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -.025em;
    font-weight: 800;
}

.sn-settings-header p {
    margin: 0;
    color: var(--sn-muted, #94a3b8);
    font-size: .88rem;
    line-height: 1.65;
}

.sn-settings-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #a78bfa;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.sn-settings-back:hover {
    color: #c4b5fd;
}

.sn-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sn-settings-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(124, 58, 237, .16);
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        rgba(124, 58, 237, .08),
        rgba(17, 24, 43, .72)
    );
    color: inherit;
    text-decoration: none;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.sn-settings-card:hover {
    border-color: rgba(124, 58, 237, .38);
    background: linear-gradient(
        145deg,
        rgba(124, 58, 237, .12),
        rgba(17, 24, 43, .82)
    );
    transform: translateY(-2px);
}

.sn-settings-card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(124, 58, 237, .2);
    border-radius: 12px;
    background: rgba(124, 58, 237, .10);
    color: #c4b5fd;
    font-size: 22px;
}

.sn-settings-card strong,
.sn-settings-card small {
    display: block;
}

.sn-settings-card strong {
    color: var(--sn-text, #f8fafc);
    font-size: .9rem;
    line-height: 1.35;
}

.sn-settings-card small {
    margin-top: 6px;
    color: var(--sn-muted, #94a3b8);
    font-size: .73rem;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   SETTINGS FORM
--------------------------------------------------------- */

.sn-settings-form {
    width: 100%;
    padding: 24px;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 20px;
    background: var(--color-snovel-panel, #11182b);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}

.sn-settings-field {
    margin-bottom: 20px;
}

.sn-settings-field:last-child {
    margin-bottom: 0;
}

.sn-settings-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--sn-text, #f1f5f9);
    font-size: .82rem;
    font-weight: 700;
}

.sn-settings-field input,
.sn-settings-field textarea,
.sn-settings-field select {
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, .035);
    color: var(--sn-text, #f8fafc);
    padding: 11px 14px;
    font: inherit;
    font-size: .82rem;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.sn-settings-field textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

.sn-settings-field select {
    cursor: pointer;
}

.sn-settings-field input::placeholder,
.sn-settings-field textarea::placeholder {
    color: #64748b;
}

.sn-settings-field input:focus,
.sn-settings-field textarea:focus,
.sn-settings-field select:focus {
    border-color: rgba(124, 58, 237, .65);
    background: rgba(124, 58, 237, .035);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .10);
}

.sn-settings-field small {
    display: block;
    margin-top: 6px;
    color: var(--sn-muted, #64748b);
    font-size: .7rem;
    line-height: 1.5;
}

.sn-settings-input-prefix {
    display: flex;
    align-items: center;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: #64748b;
}

.sn-settings-input-prefix:focus-within {
    border-color: rgba(124, 58, 237, .65);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .10);
}

.sn-settings-input-prefix > span {
    flex: 0 0 auto;
    padding-left: 14px;
    font-size: .8rem;
}

.sn-settings-input-prefix input {
    min-height: 42px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sn-settings-input-prefix input:focus {
    border: 0;
    box-shadow: none;
}

.sn-settings-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.sn-settings-primary,
.sn-settings-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    padding: 0 18px;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.sn-settings-primary {
    border: 1px solid #7c3aed;
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 10px 25px rgba(124, 58, 237, .18);
}

.sn-settings-primary:hover {
    border-color: #6d28d9;
    background: #6d28d9;
    transform: translateY(-1px);
}

.sn-settings-secondary {
    border: 1px solid var(--color-snovel-border, #27324a);
    background: transparent;
    color: #cbd5e1;
}

.sn-settings-secondary:hover {
    border-color: rgba(124, 58, 237, .42);
    background: rgba(124, 58, 237, .06);
    color: #fff;
}

.sn-settings-primary:disabled,
.sn-settings-secondary:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ---------------------------------------------------------
   SETTINGS TOGGLES
--------------------------------------------------------- */

.sn-settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .10);
}

.sn-settings-toggle:first-child {
    padding-top: 0;
}

.sn-settings-toggle:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sn-settings-toggle strong,
.sn-settings-toggle small {
    display: block;
}

.sn-settings-toggle strong {
    color: var(--sn-text, #f1f5f9);
    font-size: .82rem;
    font-weight: 700;
}

.sn-settings-toggle small {
    max-width: 620px;
    margin-top: 5px;
    color: var(--sn-muted, #64748b);
    font-size: .72rem;
    line-height: 1.5;
}

.sn-settings-toggle input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 0;
    accent-color: #7c3aed;
    cursor: pointer;
}

.sn-settings-message {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .78rem;
    line-height: 1.5;
}

.sn-settings-message.is-success {
    border-color: rgba(34, 197, 94, .20);
    background: rgba(34, 197, 94, .10);
    color: #86efac;
}

.sn-settings-message.is-error {
    border-color: rgba(239, 68, 68, .20);
    background: rgba(239, 68, 68, .10);
    color: #fca5a5;
}

/* ---------------------------------------------------------
   AVATAR RING PICKER
--------------------------------------------------------- */

.sn-avatar-ring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 18px;
}

.sn-avatar-ring-option {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--color-snovel-border, #27324a);
    border-radius: 16px;
    background: rgba(255, 255, 255, .02);
    color: var(--sn-text, #e8ecf7);
    cursor: pointer;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.sn-avatar-ring-option:hover {
    border-color: rgba(124, 58, 237, .38);
    background: rgba(124, 58, 237, .045);
    transform: translateY(-1px);
}

.sn-avatar-ring-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sn-avatar-ring-option:focus-within {
    border-color: rgba(124, 58, 237, .65);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .10);
}

.sn-avatar-ring-option:has(input:checked) {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, .08);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, .12);
}

.sn-avatar-ring-option strong {
    color: var(--sn-text, #f8fafc);
    font-size: .76rem;
    font-weight: 750;
    text-align: center;
}

.sn-avatar-ring-option small {
    color: var(--sn-muted, #64748b);
    font-size: .65rem;
    text-align: center;
}

.sn-avatar-ring-preview {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 4px solid #475569;
    border-radius: 50%;
    background: #11182b;
    color: #e9d5ff;
    font-size: 25px;
    font-weight: 800;
}

/* ---------------------------------------------------------
   PUBLIC PROFILE AVATAR RINGS
   These classes are also used by the profile page/feed.
--------------------------------------------------------- */

.sn-ring-default {
    border: 3px solid #475569;
    box-shadow: 0 0 0 2px rgba(71, 85, 105, .12);
}

.sn-ring-purple {
    border: 3px solid #7c3aed;
    box-shadow:
        0 0 0 2px rgba(124, 58, 237, .12),
        0 0 18px rgba(124, 58, 237, .55);
}

.sn-ring-gold {
    border: 3px solid #d4a72c;
    box-shadow:
        0 0 0 2px rgba(212, 167, 44, .10),
        0 0 18px rgba(212, 167, 44, .42);
}

.sn-ring-dragon {
    border: 3px solid #f97316;
    box-shadow:
        0 0 0 2px rgba(249, 115, 22, .10),
        0 0 20px rgba(249, 115, 22, .58);
}

.sn-ring-mystic {
    border: 3px solid #8b5cf6;
    box-shadow:
        0 0 0 2px rgba(139, 92, 246, .12),
        0 0 20px rgba(139, 92, 246, .65);
}

.sn-profile-online-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 650;
}

.sn-profile-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #64748b;
}

.sn-profile-online-status.is-online {
    color: #86efac;
}

.sn-profile-online-status.is-online .sn-profile-status-dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .10);
}

.sn-profile-online-status.is-offline .sn-profile-status-dot {
    background: #64748b;
}

/* Feed / compact avatars can reuse the same ring classes safely. */

.sn-feed-avatar.sn-ring-default,
.sn-feed-avatar.sn-ring-purple,
.sn-feed-avatar.sn-ring-gold,
.sn-feed-avatar.sn-ring-dragon,
.sn-feed-avatar.sn-ring-mystic,
.sn-comment-avatar.sn-ring-default,
.sn-comment-avatar.sn-ring-purple,
.sn-comment-avatar.sn-ring-gold,
.sn-comment-avatar.sn-ring-dragon,
.sn-comment-avatar.sn-ring-mystic {
    border-radius: 50%;
}

.sn-profile-private-notice {
    padding: 28px 20px;
    border: 1px dashed rgba(124, 58, 237, .30);
    border-radius: 18px;
    background: rgba(124, 58, 237, .045);
    color: #94a3b8;
    text-align: center;
}

.sn-profile-private-notice strong {
    display: block;
    margin-bottom: 6px;
    color: #e2e8f0;
    font-size: .9rem;
}

/* ---------------------------------------------------------
   LIGHT THEME OVERRIDES
   Supports a page-level data-theme="light" or common light
   body/html theme attributes without changing the dark base.
--------------------------------------------------------- */

[data-theme="light"] .sn-settings-card,
html.light .sn-settings-card,
body.light .sn-settings-card {
    background: rgba(124, 58, 237, .035);
}

[data-theme="light"] .sn-settings-form,
html.light .sn-settings-form,
body.light .sn-settings-form,
[data-theme="light"] .sn-avatar-ring-option,
html.light .sn-avatar-ring-option,
body.light .sn-avatar-ring-option {
    background: #fff;
}

[data-theme="light"] .sn-settings-field input,
[data-theme="light"] .sn-settings-field textarea,
[data-theme="light"] .sn-settings-field select,
html.light .sn-settings-field input,
html.light .sn-settings-field textarea,
html.light .sn-settings-field select,
body.light .sn-settings-field input,
body.light .sn-settings-field textarea,
body.light .sn-settings-field select {
    background: #fff;
    color: #0f172a;
    border-color: #dbe1ea;
}

[data-theme="light"] .sn-settings-toggle,
html.light .sn-settings-toggle,
body.light .sn-settings-toggle {
    border-bottom-color: #e5e7eb;
}

/* ---------------------------------------------------------
   SETTINGS / RING MOBILE
--------------------------------------------------------- */

@media (max-width: 700px) {

    .sn-settings-page {
        padding: 22px 12px 44px;
    }

    .sn-settings-header {
        margin-bottom: 22px;
    }

    .sn-settings-header h1 {
        font-size: 27px;
    }

    .sn-settings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sn-settings-card {
        padding: 17px;
    }

    .sn-settings-form {
        padding: 18px;
        border-radius: 16px;
    }

    .sn-settings-form-actions {
        justify-content: stretch;
    }

    .sn-settings-primary,
    .sn-settings-secondary {
        flex: 1;
    }

    .sn-settings-toggle {
        align-items: flex-start;
        gap: 14px;
        padding: 16px 0;
    }

    .sn-avatar-ring-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sn-avatar-ring-option {
        padding: 13px 10px;
    }

    .sn-avatar-ring-preview {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 380px) {

    .sn-settings-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sn-settings-form {
        padding: 15px;
    }

    .sn-settings-form-actions {
        flex-direction: column;
    }

    .sn-settings-primary,
    .sn-settings-secondary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sn-settings-card,
    .sn-settings-primary,
    .sn-settings-secondary,
    .sn-avatar-ring-option,
    .sn-profile-edit-button {
        transition: none;
    }

    .sn-settings-card:hover,
    .sn-settings-primary:hover,
    .sn-avatar-ring-option:hover,
    .sn-profile-edit-button:hover {
        transform: none;
    }
}

/* =========================================================
   SNOVEL AVATAR RINGS — ANIMATED GLOW
   Premium identity effects for profile avatars
   ========================================================= */

.sn-profile-avatar-wrap,
.sn-comment-avatar,
.sn-comment-form-avatar {
    --sn-ring-color: #7c3aed;
    --sn-ring-color-2: #a78bfa;
    --sn-ring-glow: rgba(124, 58, 237, .55);
}

/* Keep the avatar itself still; animate the aura around it. */
.sn-profile-avatar-wrap .sn-profile-avatar,
.sn-comment-avatar,
.sn-comment-form-avatar {
    position: relative;
    isolation: isolate;
}

.sn-profile-avatar-wrap .sn-profile-avatar::before,
.sn-profile-avatar-wrap .sn-profile-avatar::after,
.sn-comment-avatar::before,
.sn-comment-avatar::after,
.sn-comment-form-avatar::before,
.sn-comment-form-avatar::after {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

/* ---------------------------------------------------------
   DEFAULT
   --------------------------------------------------------- */

.sn-ring-default {
    box-shadow: 0 0 0 3px rgba(148, 163, 184, .18);
}

/* ---------------------------------------------------------
   PURPLE GLOW
   Slow breathing aura
   --------------------------------------------------------- */

.sn-ring-purple {
    border-color: #8b5cf6 !important;
    box-shadow:
        0 0 0 3px rgba(124, 58, 237, .20),
        0 0 12px rgba(124, 58, 237, .35),
        0 0 25px rgba(124, 58, 237, .18);
    animation: snRingPurplePulse 2.8s ease-in-out infinite;
}

@keyframes snRingPurplePulse {
    0%, 100% {
        box-shadow:
            0 0 0 3px rgba(124, 58, 237, .20),
            0 0 12px rgba(124, 58, 237, .30),
            0 0 25px rgba(124, 58, 237, .14);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(124, 58, 237, .32),
            0 0 20px rgba(124, 58, 237, .62),
            0 0 42px rgba(124, 58, 237, .25);
    }
}

/* ---------------------------------------------------------
   ROYAL GOLD
   Elegant warm pulse
   --------------------------------------------------------- */

.sn-ring-gold {
    border-color: #f5c542 !important;
    box-shadow:
        0 0 0 3px rgba(245, 197, 66, .20),
        0 0 13px rgba(245, 197, 66, .35),
        0 0 28px rgba(245, 197, 66, .15);
    animation: snRingGoldPulse 3s ease-in-out infinite;
}

@keyframes snRingGoldPulse {
    0%, 100% {
        box-shadow:
            0 0 0 3px rgba(245, 197, 66, .18),
            0 0 13px rgba(245, 197, 66, .28),
            0 0 28px rgba(245, 197, 66, .12);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(245, 197, 66, .34),
            0 0 21px rgba(245, 197, 66, .58),
            0 0 44px rgba(245, 197, 66, .22);
    }
}

/* ---------------------------------------------------------
   DRAGON FIRE
   Stronger premium aura with moving highlight
   --------------------------------------------------------- */

.sn-ring-dragon {
    border: 3px solid transparent !important;
    background:
        linear-gradient(var(--color-snovel-panel, #11182b), var(--color-snovel-panel, #11182b)) padding-box,
        conic-gradient(
            from 0deg,
            #7c3aed,
            #f97316,
            #ef4444,
            #facc15,
            #ef4444,
            #f97316,
            #7c3aed
        ) border-box;
    box-shadow:
        0 0 0 2px rgba(239, 68, 68, .16),
        0 0 14px rgba(249, 115, 22, .38),
        0 0 30px rgba(239, 68, 68, .20);
    animation: snDragonRing 4s linear infinite, snDragonGlow 1.9s ease-in-out infinite;
}

@keyframes snDragonRing {
    from {
        background:
            linear-gradient(var(--color-snovel-panel, #11182b), var(--color-snovel-panel, #11182b)) padding-box,
            conic-gradient(
                from 0deg,
                #7c3aed,
                #f97316,
                #ef4444,
                #facc15,
                #ef4444,
                #f97316,
                #7c3aed
            ) border-box;
    }
    to {
        background:
            linear-gradient(var(--color-snovel-panel, #11182b), var(--color-snovel-panel, #11182b)) padding-box,
            conic-gradient(
                from 360deg,
                #7c3aed,
                #f97316,
                #ef4444,
                #facc15,
                #ef4444,
                #f97316,
                #7c3aed
            ) border-box;
    }
}

@keyframes snDragonGlow {
    0%, 100% {
        box-shadow:
            0 0 0 2px rgba(239, 68, 68, .14),
            0 0 14px rgba(249, 115, 22, .32),
            0 0 30px rgba(239, 68, 68, .16);
    }
    50% {
        box-shadow:
            0 0 0 3px rgba(249, 115, 22, .28),
            0 0 22px rgba(249, 115, 22, .62),
            0 0 48px rgba(239, 68, 68, .28);
    }
}

/* ---------------------------------------------------------
   MYSTIC
   Purple/indigo aura with a gentle shimmer
   --------------------------------------------------------- */

.sn-ring-mystic {
    border: 3px solid transparent !important;
    background:
        linear-gradient(var(--color-snovel-panel, #11182b), var(--color-snovel-panel, #11182b)) padding-box,
        conic-gradient(
            from 0deg,
            #6366f1,
            #a855f7,
            #c084fc,
            #6366f1,
            #312e81,
            #a855f7,
            #6366f1
        ) border-box;
    box-shadow:
        0 0 0 2px rgba(139, 92, 246, .16),
        0 0 16px rgba(139, 92, 246, .34),
        0 0 34px rgba(99, 102, 241, .18);
    animation: snMysticRing 5s linear infinite, snMysticGlow 2.6s ease-in-out infinite;
}

@keyframes snMysticRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes snMysticGlow {
    0%, 100% {
        box-shadow:
            0 0 0 2px rgba(139, 92, 246, .14),
            0 0 14px rgba(139, 92, 246, .28),
            0 0 30px rgba(99, 102, 241, .14);
    }
    50% {
        box-shadow:
            0 0 0 3px rgba(168, 85, 247, .26),
            0 0 23px rgba(168, 85, 247, .55),
            0 0 46px rgba(99, 102, 241, .24);
    }
}

/* ---------------------------------------------------------
   HOVER BOOST
   --------------------------------------------------------- */

.sn-profile-avatar-wrap:hover .sn-ring-purple {
    animation-duration: 1.6s;
}

.sn-profile-avatar-wrap:hover .sn-ring-gold {
    animation-duration: 1.8s;
}

.sn-profile-avatar-wrap:hover .sn-ring-dragon {
    animation-duration: 2.3s, 1.1s;
}

.sn-profile-avatar-wrap:hover .sn-ring-mystic {
    animation-duration: 3.2s, 1.5s;
}

/* ---------------------------------------------------------
   SETTINGS RING PREVIEWS
   --------------------------------------------------------- */

.sn-avatar-ring-preview,
.sn-ring-preview,
.sn-settings-ring-preview {
    position: relative;
    isolation: isolate;
    border-radius: 50%;
}

.sn-avatar-ring-preview img,
.sn-ring-preview img,
.sn-settings-ring-preview img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ---------------------------------------------------------
   LIGHT THEME
   --------------------------------------------------------- */

[data-theme="light"] .sn-ring-dragon,
[data-theme="light"] .sn-ring-mystic {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(
            from 0deg,
            #7c3aed,
            #f97316,
            #ef4444,
            #facc15,
            #ef4444,
            #f97316,
            #7c3aed
        ) border-box;
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .sn-ring-purple,
    .sn-ring-gold,
    .sn-ring-dragon,
    .sn-ring-mystic {
        animation: none !important;
    }
}

/* ---------------------------------------------------------
   MOBILE — slightly softer aura
   --------------------------------------------------------- */

@media (max-width: 640px) {
    .sn-ring-purple,
    .sn-ring-gold,
    .sn-ring-dragon,
    .sn-ring-mystic {
        box-shadow:
            0 0 0 2px rgba(124, 58, 237, .18),
            0 0 12px rgba(124, 58, 237, .28),
            0 0 22px rgba(124, 58, 237, .12);
    }
}

/* Snovel Profile Preview / Ring Picker — additive namespace */
.sn-profile-preview-modal{position:fixed;inset:0;z-index:10020;display:flex;align-items:center;justify-content:center;padding:20px}.sn-profile-preview-modal[hidden]{display:none}.sn-profile-preview-backdrop{position:absolute;inset:0;background:rgba(3,7,18,.86);backdrop-filter:blur(14px)}.sn-profile-preview-dialog{position:relative;z-index:2;width:min(100%,720px);max-height:min(88vh,820px);overflow:auto;border:1px solid rgba(124,58,237,.3);border-radius:26px;background:linear-gradient(145deg,#11182b,#0b1020);box-shadow:0 35px 110px rgba(0,0,0,.62),0 0 70px rgba(124,58,237,.12);animation:snProfilePreviewIn .22s ease}.sn-profile-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 24px 16px}.sn-profile-preview-eyebrow{color:#a78bfa;font-size:10px;font-weight:800;letter-spacing:.13em}.sn-profile-preview-header h2{margin:5px 0 0;color:#f8fafc;font-size:21px;font-weight:800}.sn-profile-preview-header p{margin:5px 0 0;color:#64748b;font-size:12px}.sn-profile-preview-close{width:38px;height:38px;border:1px solid rgba(148,163,184,.14);border-radius:50%;background:rgba(255,255,255,.045);color:#cbd5e1;font-size:25px;line-height:1;cursor:pointer}.sn-profile-preview-close:hover{background:rgba(124,58,237,.14);color:#fff}.sn-profile-preview-body{padding:0 24px 24px}.sn-profile-preview-panel[hidden]{display:none}.sn-profile-preview-avatar-stage,.sn-profile-ring-live{display:flex;align-items:center;justify-content:center;min-height:390px;border:1px solid rgba(148,163,184,.09);border-radius:22px;background:radial-gradient(circle at center,rgba(124,58,237,.13),transparent 48%),rgba(4,8,20,.72)}.sn-profile-preview-avatar{width:250px;height:250px;position:relative;display:flex;align-items:center;justify-content:center;border-radius:50%;overflow:visible;background:#312e81;color:#ddd6fe;font-size:70px;font-weight:800;border:6px solid #11182b;isolation:isolate}.sn-profile-preview-avatar img{position:relative;z-index:2;width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}.sn-profile-preview-cover{min-height:390px;border:1px solid rgba(148,163,184,.1);border-radius:22px;background-position:center;background-size:cover;background-repeat:no-repeat;background-color:#11182b;box-shadow:inset 0 0 80px rgba(0,0,0,.22)}.sn-profile-preview-actions{display:flex;gap:10px;margin-top:14px}.sn-profile-preview-primary,.sn-profile-preview-secondary{min-height:44px;padding:0 17px;border-radius:13px;font-size:13px;font-weight:750;cursor:pointer}.sn-profile-preview-primary{border:0;background:#7c3aed;color:#fff}.sn-profile-preview-primary:hover{background:#6d28d9}.sn-profile-preview-secondary{border:1px solid rgba(124,58,237,.32);background:rgba(124,58,237,.08);color:#c4b5fd}.sn-profile-ring-copy{margin:18px 0 13px}.sn-profile-ring-copy strong{display:block;color:#f8fafc;font-size:15px}.sn-profile-ring-copy span{display:block;margin-top:4px;color:#64748b;font-size:12px}.sn-profile-ring-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.sn-profile-ring-option{position:relative;min-width:0;padding:13px 8px 11px;border:1px solid rgba(148,163,184,.1);border-radius:17px;background:rgba(255,255,255,.025);color:#cbd5e1;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}.sn-profile-ring-option:hover{transform:translateY(-2px);border-color:rgba(124,58,237,.38)}.sn-profile-ring-option.is-selected{border-color:#7c3aed;background:rgba(124,58,237,.1)}.sn-profile-ring-option:disabled{opacity:.55;cursor:wait;transform:none}.sn-profile-ring-option-avatar{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:0 auto 9px;border-radius:50%;border:3px solid #11182b;background:#312e81;overflow:visible;color:#ddd6fe;font-size:20px;font-weight:800}.sn-profile-ring-option-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.sn-profile-ring-option-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:750}.sn-profile-ring-check{position:absolute;top:7px;right:7px;width:20px;height:20px;border-radius:50%;background:#7c3aed;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px}.sn-profile-ring-loading,.sn-profile-ring-message{padding:13px;border-radius:13px;color:#94a3b8;background:rgba(255,255,255,.025);font-size:12px}.sn-profile-ring-message.is-error{color:#fca5a5;background:rgba(239,68,68,.08)}.sn-profile-ring-message.is-success{color:#c4b5fd;background:rgba(124,58,237,.09);margin-top:12px}.sn-profile-ring-edit{position:absolute;right:44px;bottom:2px;width:30px;height:30px;border:3px solid var(--color-snovel-panel,#11182b);border-radius:50%;background:#7c3aed;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:6;font-size:13px;box-shadow:0 0 15px rgba(124,58,237,.4);transition:transform .18s ease,box-shadow .18s ease}.sn-profile-ring-edit:hover{transform:scale(1.08);box-shadow:0 0 24px rgba(124,58,237,.7)}body.sn-profile-preview-open{overflow:hidden}@keyframes snProfilePreviewIn{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:700px){.sn-profile-preview-modal{align-items:flex-end;padding:0}.sn-profile-preview-dialog{width:100%;max-height:92vh;border-radius:24px 24px 0 0}.sn-profile-preview-header{padding:20px 17px 13px}.sn-profile-preview-body{padding:0 17px 18px}.sn-profile-preview-avatar-stage,.sn-profile-ring-live,.sn-profile-preview-cover{min-height:290px;border-radius:18px}.sn-profile-preview-avatar{width:190px;height:190px;font-size:55px}.sn-profile-ring-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sn-profile-ring-option-avatar{width:72px;height:72px}.sn-profile-ring-edit{right:40px}}
@media(max-width:380px){.sn-profile-preview-actions{flex-direction:column}.sn-profile-preview-primary,.sn-profile-preview-secondary{width:100%}}
@media(prefers-reduced-motion:reduce){.sn-profile-preview-dialog,.sn-profile-ring-option,.sn-profile-ring-edit{animation:none;transition:none}}

/*
|--------------------------------------------------------------------------
| Snovel Premium Newsfeed Spacing
|--------------------------------------------------------------------------
| Add this block at the END of assets/css/snovel.css.
*/

.sn-profile-content {
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.sn-profile-feed {
    gap: 1rem;
}

.sn-profile-feed-post {
    border-radius: 1.15rem;
}

.sn-profile-feed-head {
    gap: 0.85rem;
    padding: 1.05rem 1.1rem 0;
}

.sn-profile-feed-avatar {
    width: 2.7rem;
    height: 2.7rem;
}

.sn-profile-feed-author {
    line-height: 1.25;
}

.sn-profile-feed-author strong {
    font-size: 0.86rem;
    line-height: 1.3;
}

.sn-profile-feed-time {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.sn-profile-feed-body {
    padding: 1.05rem 1.1rem 0.95rem;
    font-size: 0.92rem;
    line-height: 1.65;
}

.sn-profile-feed-body p {
    margin: 0 0 0.9rem;
}

.sn-profile-feed-link {
    margin: 0;
    padding: 0.95rem;
    border-radius: 0.9rem;
}

.sn-profile-feed-link-label {
    margin-bottom: 0.35rem;
}

.sn-profile-feed-link-title {
    display: block;
    line-height: 1.4;
}

.sn-profile-feed-actions,
.sn-profile-feed-action {
    min-height: 2.9rem;
}

.sn-profile-feed-action {
    padding: 0 0.9rem;
}

@media (max-width: 768px) {
    .sn-profile-content {
        gap: 0.85rem;
        margin-top: 0.85rem;
    }

    .sn-profile-feed {
        gap: 0.8rem;
    }

    .sn-profile-feed-post {
        border-radius: 0.95rem;
    }

    .sn-profile-feed-head {
        gap: 0.7rem;
        padding: 0.9rem 0.9rem 0;
    }

    .sn-profile-feed-avatar {
        width: 2.45rem;
        height: 2.45rem;
    }

    .sn-profile-feed-body {
        padding: 0.9rem 0.9rem 0.85rem;
        font-size: 0.86rem;
    }

    .sn-profile-feed-link {
        padding: 0.85rem;
    }

    .sn-profile-feed-actions,
    .sn-profile-feed-action {
        min-height: 2.65rem;
    }
}
/* =========================================================
   SNOVEL V3 APPLICATION SHELL
========================================================= */
.sn-header-v3{z-index:5000;position:sticky;top:0;backdrop-filter:blur(20px);background:rgba(10,10,14,.84);border-bottom:1px solid rgba(255,255,255,.07)}
.sn-header-v3 .sn-header-inner{min-height:76px;gap:14px}
.sn-brand-v3{position:relative;min-width:150px;gap:9px;display:flex;align-items:center}
.sn-brand-dragon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-weight:1000;font-style:italic;font-size:24px;color:#fff;background:radial-gradient(circle at 30% 20%,#d8b4fe,#7c3aed 42%,#30106b);box-shadow:0 0 22px rgba(124,58,237,.45);animation:snovelLogoPulse 3s ease-in-out infinite}
.sn-brand-orbit{position:absolute;left:-3px;top:2px;width:45px;height:45px;border:1px solid rgba(167,139,250,.55);border-right-color:transparent;border-radius:50%;transform:rotate(-22deg);animation:snovelOrbit 6s linear infinite}
.sn-brand-name{display:flex;flex-direction:column;line-height:1}.sn-brand-name b{font-size:13px;letter-spacing:.22em}.sn-brand-name small{margin-top:5px;font-size:7px;color:#a78bfa;letter-spacing:.12em}
@keyframes snovelLogoPulse{50%{transform:translateY(-1px) rotate(-2deg);box-shadow:0 0 32px rgba(124,58,237,.68)}}
@keyframes snovelOrbit{to{transform:rotate(338deg)}}
.sn-header-search-expand{width:280px;transition:width .25s ease,box-shadow .25s ease}.sn-header-search-expand:focus-within{width:min(420px,42vw);box-shadow:0 0 0 2px rgba(124,58,237,.25),0 14px 45px rgba(0,0,0,.25)}
.sn-header-search-icon{cursor:pointer}.sn-header-actions{margin-left:auto;display:flex;align-items:center;gap:7px}.sn-icon-button{position:relative;width:40px;height:40px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.035);color:#cbd5e1;cursor:pointer}.sn-icon-button:hover{background:rgba(124,58,237,.13);color:#fff;border-color:rgba(124,58,237,.35)}.sn-icon-glyph{font-size:19px}.sn-unread-count{position:absolute;right:-2px;top:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#ef4444;color:#fff;font-size:9px;display:grid;place-items:center;border:2px solid #0a0a0e}
.sn-header-popover{position:absolute;right:120px;top:68px;width:min(390px,calc(100vw - 24px));border:1px solid rgba(255,255,255,.1);border-radius:17px;background:#111116;box-shadow:0 28px 80px rgba(0,0,0,.55);overflow:hidden}.sn-header-popover[hidden]{display:none}.sn-popover-head{padding:14px 15px;display:flex;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.07)}.sn-popover-head b{display:block}.sn-popover-head small{display:block;margin-top:3px;color:#71717a;font-size:10px}.sn-popover-head a{color:#a78bfa;font-size:10px;font-weight:800}.sn-popover-empty{padding:30px;text-align:center;color:#71717a;font-size:12px}
.sn-user-access-menu{width:280px;max-height:calc(100vh - 90px);overflow:auto}.sn-user-menu-section{padding:10px 15px 5px;color:#71717a;font-size:8px;font-weight:900;letter-spacing:.16em}.sn-profile-menu-links a{min-height:40px}
.sn-mobile-avatar-menu{border:0;cursor:pointer;background:transparent}.sn-bottom-profile-button{appearance:none;border:0;background:transparent;color:inherit;font:inherit;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:54px;cursor:pointer}.sn-bottom-icon-with-badge{position:relative}.sn-bottom-icon-with-badge b{position:absolute;right:-6px;top:-5px;min-width:13px;height:13px;border-radius:99px;background:#ef4444;color:#fff;font-size:8px;display:grid;place-items:center}.sn-bottom-icon-with-badge b[hidden]{display:none}
@media(max-width:900px){.sn-desktop-nav{display:none}.sn-header-search-expand{width:min(45vw,300px)}.sn-header-search-expand:focus-within{width:min(62vw,380px)}.sn-write-button,.sn-profile-name,.sn-profile-arrow{display:none}.sn-header-actions{gap:4px}.sn-header-actions .sn-icon-button{display:none}.sn-header-actions .sn-profile-wrap{display:none}.sn-mobile-avatar-menu{display:grid}.sn-header-popover{right:12px}}
@media(max-width:640px){.sn-header-v3 .sn-header-inner{min-height:64px;padding-inline:10px;gap:7px}.sn-brand-v3{min-width:auto}.sn-brand-name{display:none}.sn-brand-dragon{width:34px;height:34px;font-size:21px}.sn-brand-orbit{width:40px;height:40px}.sn-header-search-expand{flex:1;width:auto!important}.sn-header-search-expand kbd{display:none}.sn-header-search-expand input{font-size:14px}.sn-mobile-menu-btn{flex:0 0 38px}.sn-mobile-avatar-menu{width:38px;height:38px}.sn-header-actions{display:none}}

/* =========================================================
   HOME SECTION SYSTEM
========================================================= */
.sn-home-section{margin:0 0 42px}.sn-home-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:15px}.sn-home-section-head h2{margin:3px 0 0;font-size:1.25rem;letter-spacing:-.02em}.sn-home-section-head p{margin:5px 0 0;color:#737784;font-size:.78rem}.sn-see-all{display:inline-flex;align-items:center;gap:6px;color:#b79cff;font-size:.75rem;font-weight:800;white-space:nowrap}.sn-see-all:hover{color:#fff}.sn-home-novel-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.sn-home-novel-card{min-width:0}.sn-home-novel-cover{display:block;aspect-ratio:2/3;border-radius:13px;overflow:hidden;background:#17171d;border:1px solid rgba(255,255,255,.07);box-shadow:0 12px 28px rgba(0,0,0,.18);transition:transform .2s ease,border-color .2s ease}.sn-home-novel-cover:hover{transform:translateY(-4px);border-color:rgba(124,58,237,.45)}.sn-home-novel-cover img{width:100%;height:100%;object-fit:cover;display:block}.sn-home-novel-title{display:block;margin-top:9px;color:#f4f4f5;font-size:.8rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sn-home-novel-meta{margin-top:4px;color:#71717a;font-size:.68rem}.sn-home-author-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sn-home-author-card{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.025)}.sn-home-author-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:50%;overflow:hidden;background:#312e81;display:grid;place-items:center;font-weight:900}.sn-home-author-avatar img{width:100%;height:100%;object-fit:cover}.sn-home-author-info{min-width:0}.sn-home-author-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sn-home-author-info span{display:block;margin-top:3px;color:#71717a;font-size:.68rem}.sn-home-author-info small{display:block;margin-top:4px;color:#a78bfa;font-size:.65rem}
@media(max-width:900px){.sn-home-novel-row{grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden}.sn-home-author-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.sn-home-novel-row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px}.sn-home-novel-card{flex:0 0 142px;scroll-snap-align:start}.sn-home-author-row{display:flex;overflow-x:auto}.sn-home-author-card{flex:0 0 240px}.sn-home-section{margin-bottom:30px}}

/* =========================================================
   PEOPLE CARDS — clean follow interaction
========================================================= */
.sn-people-track{grid-template-columns:repeat(4,minmax(0,1fr))!important}.sn-person-card{min-width:0!important;border-radius:16px!important;overflow:hidden!important;background:rgba(255,255,255,.025)!important;border:1px solid rgba(255,255,255,.07)!important;box-shadow:0 14px 34px rgba(0,0,0,.16)}.sn-person-cover{height:105px!important}.sn-person-body{padding:12px!important}.sn-person-follow{width:100%;min-height:34px!important;margin-top:10px!important;border-radius:9px!important;font-size:.72rem!important}.sn-person-follow.is-following{background:rgba(124,58,237,.14)!important;color:#c4b5fd!important;border-color:rgba(124,58,237,.35)!important}@media(max-width:900px){.sn-people-track{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:620px){.sn-people-track{display:flex!important;overflow-x:auto!important}.sn-person-card{flex:0 0 220px!important}}

/* =========================================================
   COMMENT THREAD WATER-LINE
========================================================= */
.sn-comment-replies{padding-left:22px!important;margin-left:48px!important}.sn-comment-replies::before{width:2px!important;background:linear-gradient(to bottom,rgba(124,58,237,.12),rgba(99,102,241,.82),rgba(56,189,248,.28),rgba(124,58,237,.08))!important;box-shadow:0 0 10px rgba(99,102,241,.18);animation:snovelThreadFlow 2.8s linear infinite;background-size:100% 220px}.sn-comment-replies::after{content:"";position:absolute;left:-2px;top:0;width:6px;height:38px;border-radius:50%;background:radial-gradient(circle,rgba(167,139,250,.9),transparent 68%);filter:blur(.3px);animation:snovelThreadDrop 2.8s ease-in-out infinite}.sn-comment-replies .sn-comment-replies{margin-left:32px!important}.sn-comment-reply{position:relative}.sn-comment-reply::before{content:"";position:absolute;left:-22px;top:18px;width:22px;height:1px;background:linear-gradient(90deg,rgba(99,102,241,.62),rgba(124,58,237,.12))}.sn-comment-mention{background:rgba(124,58,237,.09);padding:1px 4px;border-radius:5px}@keyframes snovelThreadFlow{to{background-position:0 220px}}@keyframes snovelThreadDrop{0%,100%{top:0;opacity:.15}35%{opacity:.9}70%{top:calc(100% - 38px);opacity:.2}}@media(prefers-reduced-motion:reduce){.sn-brand-dragon,.sn-brand-orbit,.sn-comment-replies::before,.sn-comment-replies::after{animation:none}}
.sn-novel-rating{margin:16px 0 2px;padding:11px 13px;border:1px solid rgba(124,58,237,.18);border-radius:13px;background:rgba(124,58,237,.045);width:max-content;max-width:100%}.sn-rating-top{display:flex;align-items:baseline;gap:5px}.sn-rating-top strong{font-size:1.05rem}.sn-rating-top span{color:#71717a;font-size:.68rem}.sn-rating-stars{display:flex;gap:1px;margin-top:3px}.sn-rating-stars button{border:0;background:transparent;color:#71717a;font-size:1.05rem;padding:1px 3px;cursor:pointer}.sn-rating-stars button:hover,.sn-rating-stars button.is-active{color:#fbbf24;transform:translateY(-1px)}
.sn-achievement-toast{position:fixed;right:18px;top:82px;z-index:15000;display:flex;align-items:center;gap:11px;max-width:340px;padding:12px 15px;border:1px solid rgba(167,139,250,.35);border-radius:15px;background:rgba(18,18,25,.96);box-shadow:0 18px 55px rgba(0,0,0,.4);transform:translateY(-16px) scale(.97);opacity:0;transition:.28s ease}.sn-achievement-toast.is-visible{transform:none;opacity:1}.sn-achievement-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#7c3aed,#4c1d95);color:#fff;font-size:19px;box-shadow:0 0 22px rgba(124,58,237,.35)}.sn-achievement-toast b{display:block;color:#fff;font-size:12px}.sn-achievement-toast small{display:block;margin-top:3px;color:#a1a1aa;font-size:10px;line-height:1.35}@media(max-width:600px){.sn-achievement-toast{right:10px;left:10px;top:auto;bottom:76px;max-width:none}}
.sn-messages-page,.sn-notifications-page{padding:34px 0 70px}.sn-messages-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:18px}.sn-messages-head h1{margin:4px 0}.sn-messages-head p{margin:0;color:#71717a;font-size:.8rem}.sn-messages-grid{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:540px;border:1px solid rgba(255,255,255,.07);border-radius:18px;overflow:hidden;background:#0f0f14}.sn-message-list{border-right:1px solid rgba(255,255,255,.07);padding:12px;overflow:auto}.sn-message-new{display:flex;flex-direction:column;gap:7px;padding-bottom:12px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.07)}.sn-message-new input,.sn-message-new textarea{width:100%;padding:9px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:#15151b;color:#fff}.sn-message-new button{min-height:34px;border:0;border-radius:9px;background:#7c3aed;color:#fff;font-weight:800;font-size:.72rem}.sn-message-thread{display:flex;gap:9px;padding:10px;border-radius:11px}.sn-message-thread:hover,.sn-message-thread.is-active{background:rgba(124,58,237,.1)}.sn-message-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;overflow:hidden;background:#312e81;display:grid;place-items:center;font-weight:900}.sn-message-avatar img{width:100%;height:100%;object-fit:cover}.sn-message-thread strong,.sn-message-thread small{display:block}.sn-message-thread small{margin-top:3px;color:#71717a;font-size:.63rem}.sn-message-window{display:flex;flex-direction:column}.sn-message-window-head{padding:14px 17px;border-bottom:1px solid rgba(255,255,255,.07)}.sn-message-window-head strong{display:block}.sn-message-window-head small{color:#71717a;font-size:.65rem}.sn-message-list-body{padding:18px;display:flex;flex-direction:column;gap:9px;overflow:auto}.sn-message-bubble{max-width:75%;align-self:flex-start;padding:10px 12px;border-radius:13px 13px 13px 3px;background:#1a1a22;color:#e4e4e7;font-size:.78rem}.sn-message-bubble.is-mine{align-self:flex-end;border-radius:13px 13px 3px 13px;background:linear-gradient(135deg,#6d28d9,#7c3aed);color:#fff}.sn-message-bubble small{display:block;margin-top:5px;opacity:.55;font-size:.58rem}.sn-message-empty{margin:auto;padding:35px;text-align:center;color:#71717a;font-size:.8rem}.sn-notification-full-list{display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.07);border-radius:18px;overflow:hidden;background:#0f0f14}.sn-full-notification{display:flex;gap:12px;padding:15px 17px;border-bottom:1px solid rgba(255,255,255,.06)}.sn-full-notification.is-unread{background:rgba(124,58,237,.07)}.sn-full-notification-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:11px;background:rgba(124,58,237,.14);color:#c4b5fd;font-weight:900}.sn-full-notification strong,.sn-full-notification small,.sn-full-notification time{display:block}.sn-full-notification small{margin-top:4px;color:#a1a1aa;font-size:.7rem}.sn-full-notification time{margin-top:5px;color:#52525b;font-size:.58rem}@media(max-width:700px){.sn-messages-page,.sn-notifications-page{padding:20px 10px 55px}.sn-messages-grid{grid-template-columns:1fr;min-height:auto}.sn-message-list{border-right:0;border-bottom:1px solid rgba(255,255,255,.07);max-height:340px}.sn-message-window{min-height:340px}.sn-message-bubble{max-width:88%}}
.sn-mobile-account-popover{display:none}.sn-mobile-account-popover .sn-profile-menu-user{padding:14px 15px}.sn-mobile-user-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#312e81;color:#fff;font-weight:900}.sn-mobile-user-avatar img{width:100%;height:100%;object-fit:cover}.sn-mobile-account-popover .sn-profile-menu-links a{min-height:42px}@media(max-width:900px){.sn-mobile-account-popover{display:block;right:10px;top:66px;width:min(300px,calc(100vw - 20px))}}@media(min-width:901px){.sn-mobile-account-popover{display:none!important}}

/* =========================================================
   Snovel V3.1 repair layer — theme, responsive profile, popovers
   This layer intentionally sits last so future themes can override it.
========================================================= */
:root{
  --sn-accent:#7c3aed;--sn-accent-2:#a78bfa;--sn-bg:#090b12;--sn-surface:#111521;--sn-surface-2:#171b29;--sn-border:rgba(148,163,184,.16);--sn-text:#f8fafc;--sn-muted:#94a3b8;
}
body.sn-body{background:var(--sn-bg);color:var(--sn-text);transition:background .25s ease,color .25s ease}
body.sn-body.sn-mode-light{--sn-bg:#f5f7fb;--sn-surface:#fff;--sn-surface-2:#eef1f7;--sn-border:rgba(15,23,42,.12);--sn-text:#111827;--sn-muted:#64748b;background:var(--sn-bg);color:var(--sn-text)}
.sn-theme-toggle{width:38px;height:38px;border:1px solid var(--sn-border);border-radius:12px;background:rgba(255,255,255,.04);color:var(--sn-text);display:grid;place-items:center;cursor:pointer;font-size:16px;transition:.2s ease}.sn-theme-toggle:hover{transform:translateY(-1px);border-color:rgba(124,58,237,.45);background:rgba(124,58,237,.1)}
.sn-profile-menu,.sn-header-popover{border:1px solid var(--sn-border);background:color-mix(in srgb,var(--sn-surface) 94%,transparent);color:var(--sn-text);box-shadow:0 24px 70px rgba(0,0,0,.35);backdrop-filter:blur(22px)}
.sn-mode-light .sn-profile-menu,.sn-mode-light .sn-header-popover{box-shadow:0 24px 70px rgba(15,23,42,.16)}
.sn-mode-light .sn-header,.sn-mode-light .sn-footer{background:rgba(255,255,255,.86);border-color:var(--sn-border)}
.sn-mode-light .sn-profile-hero,.sn-mode-light .sn-profile-side-card,.sn-mode-light .sn-profile-reward-card{background:#fff;border-color:var(--sn-border);box-shadow:0 18px 50px rgba(15,23,42,.08)}
.sn-mode-light .sn-profile-name,.sn-mode-light .sn-profile-reward-card h3{color:#111827}.sn-mode-light .sn-profile-username{color:#6d28d9}.sn-mode-light .sn-profile-bio,.sn-mode-light .sn-profile-stat-label,.sn-mode-light .sn-profile-reward-card small{color:#64748b}

/* Larger profile cover / hero */
.sn-profile-hero{border-radius:24px;overflow:hidden}.sn-profile-cover{height:clamp(220px,28vw,340px);background-size:cover!important;background-position:center!important}.sn-profile-main{padding:0 28px 24px;gap:22px}.sn-profile-avatar-wrap{margin-top:-76px}.sn-profile-avatar{width:138px;height:138px;border-width:5px}.sn-profile-identity{padding-top:10px}.sn-profile-actions{margin-left:auto;align-self:flex-end}.sn-profile-stats{margin:0 28px 24px}.sn-profile-rewards{margin-top:22px}.sn-profile-reward-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}

/* Big image preview cards */
.sn-profile-preview-dialog{width:min(920px,calc(100vw - 32px));max-height:min(90vh,900px);padding:24px;border-radius:24px}.sn-profile-preview-avatar-stage{min-height:390px;padding:30px}.sn-profile-preview-avatar{width:280px;height:280px;font-size:72px}.sn-profile-preview-cover{height:420px;background-size:cover!important;background-position:center!important}.sn-profile-ring-live{min-height:390px}.sn-profile-ring-live .sn-profile-preview-avatar{width:240px;height:240px}.sn-profile-ring-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.sn-profile-ring-option-avatar{width:62px;height:62px}

/* Nested reply water-flow connector */
.sn-comment-replies{position:relative;margin-left:42px;padding-left:28px}.sn-comment-replies::before{content:"";position:absolute;left:8px;top:0;bottom:18px;width:2px;border-radius:99px;background:linear-gradient(180deg,rgba(124,58,237,.05),rgba(124,58,237,.8),rgba(167,139,250,.15));background-size:100% 180%;animation:snReplyWater 4.5s ease-in-out infinite}.sn-comment-replies>.sn-comment::before{content:"";position:absolute;left:-20px;top:31px;width:20px;height:2px;background:linear-gradient(90deg,rgba(124,58,237,.75),rgba(124,58,237,.12));border-radius:99px}.sn-comment-replies .sn-comment-replies{margin-left:26px;padding-left:24px}.sn-comment-replies .sn-comment-replies::before{left:7px;opacity:.8}@keyframes snReplyWater{0%,100%{background-position:0 0;opacity:.62}50%{background-position:0 100%;opacity:1}}
.sn-comment[data-depth="0"]{position:relative}.sn-comment[data-depth]:not([data-depth="0"]){position:relative}.sn-comment-mention{color:#8b5cf6;font-weight:750}
.sn-comment-mention-dropdown{z-index:1200}
.sn-achievement-toast{position:fixed;right:20px;bottom:90px;z-index:10050;display:flex;align-items:center;gap:11px;min-width:260px;max-width:min(390px,calc(100vw - 30px));padding:13px 15px;border:1px solid rgba(124,58,237,.3);border-radius:15px;background:rgba(16,18,30,.96);color:#fff;box-shadow:0 18px 55px rgba(0,0,0,.38);opacity:0;transform:translateY(18px) scale(.97);transition:.28s ease}.sn-achievement-toast.is-visible{opacity:1;transform:none}.sn-achievement-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#7c3aed,#a855f7);font-size:19px}.sn-achievement-toast b,.sn-achievement-toast small{display:block}.sn-achievement-toast b{font-size:12px}.sn-achievement-toast small{margin-top:3px;color:#cbd5e1;font-size:10px;line-height:1.4}
@media(max-width:767px){.sn-theme-toggle{width:34px;height:34px;border-radius:10px}.sn-profile-cover{height:190px}.sn-profile-main{padding:0 16px 18px}.sn-profile-avatar-wrap{margin-top:-55px}.sn-profile-avatar{width:104px;height:104px}.sn-profile-actions{width:100%;margin-left:0}.sn-profile-stats{margin:0 16px 18px}.sn-profile-reward-grid{grid-template-columns:1fr}.sn-profile-preview-dialog{width:100%;max-height:92vh;border-radius:22px 22px 0 0;padding:18px}.sn-profile-preview-avatar-stage{min-height:300px}.sn-profile-preview-avatar{width:220px;height:220px}.sn-profile-preview-cover{height:300px}.sn-profile-ring-live{min-height:300px}.sn-profile-ring-live .sn-profile-preview-avatar{width:190px;height:190px}.sn-profile-ring-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sn-comment-replies{margin-left:12px;padding-left:20px}.sn-comment-replies .sn-comment-replies{margin-left:10px;padding-left:18px}.sn-achievement-toast{right:12px;left:12px;bottom:76px;min-width:0}}
@media(prefers-reduced-motion:reduce){.sn-comment-replies::before,.sn-achievement-toast{animation:none;transition:none}}

\n/* Header notification items */\n.sn-notification-list{display:flex;flex-direction:column;max-height:390px;overflow:auto}.sn-notification-item{display:flex;gap:9px;padding:11px 12px;border-bottom:1px solid var(--sn-border);color:inherit}.sn-notification-item:hover{background:rgba(124,58,237,.06)}.sn-notification-item.is-unread{background:rgba(124,58,237,.08)}.sn-notification-dot{width:7px;height:7px;flex:0 0 7px;margin-top:6px;border-radius:50%;background:#64748b}.sn-notification-item.is-unread .sn-notification-dot{background:#7c3aed;box-shadow:0 0 10px rgba(124,58,237,.65)}.sn-notification-item b,.sn-notification-item small,.sn-notification-item time{display:block}.sn-notification-item b{font-size:11px}.sn-notification-item small{margin-top:3px;color:var(--sn-muted);font-size:10px;line-height:1.35}.sn-notification-item time{margin-top:4px;color:#64748b;font-size:9px}\n

/* ==========================================================================
   Snovel security / auth additions (V3.2)
   Forgot password link, hints, info/success alerts, honeypot field.
   ========================================================================== */

.sn-auth-forgot {
    font-size: .82rem;
    font-weight: 600;
    color: #a78bfa;
    text-decoration: none;
}

.sn-auth-forgot:hover,
.sn-auth-forgot:focus-visible {
    color: #c4b5fd;
    text-decoration: underline;
}

.sn-auth-hint {
    margin: .5rem 0 0;
    font-size: .78rem;
    line-height: 1.5;
    color: #94a3b8;
}

.sn-auth-alert-info {
    color: #ddd6fe;
    border: 1px solid rgba(167,139,250,.22);
    background: rgba(76,29,149,.20);
}

.sn-auth-alert-info .sn-auth-alert-icon {
    background: rgba(167,139,250,.18);
    color: #c4b5fd;
}

.sn-auth-alert-success {
    color: #bbf7d0;
    border: 1px solid rgba(74,222,128,.20);
    background: rgba(20,83,45,.22);
}

.sn-auth-alert-success .sn-auth-alert-icon {
    background: rgba(74,222,128,.16);
    color: #4ade80;
}

/* Bot trap: invisible to people, tempting to scripts. */
.sn-hp {
    position: absolute !important;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
