/* =========================================================
   READER PROFILE — THE PURPLE LIBRARY
========================================================= */

:root{
    --profile-bg:#160b31;
    --profile-panel:rgba(37,19,66,.76);
    --profile-panel-strong:#2a154e;
    --profile-lavender:#cfa9ff;
    --profile-accent:#ff4fa0;
    --profile-border:rgba(255,255,255,.12);
    --profile-muted:#d8c8ef;
    --profile-paper:#fbfaff;
    --profile-text:#171224;
    --profile-shadow:0 28px 90px rgba(0,0,0,.32);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    min-height:100vh;
    font-family:Inter,sans-serif;
    color:white;
    background:
        radial-gradient(circle at top,#6c3aa0 0%,#241246 46%,#12091f 100%);
}

a{
    color:inherit;
}

/* HEADER */

.profile-header-nav{
    position:sticky;
    top:0;
    z-index:20;

    min-height:76px;

    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:28px;

    padding:0 42px;

    background:#2d1658;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.16);
}

.profile-brand{
    display:flex;
    align-items:center;
    gap:14px;

    color:white;
    text-decoration:none;
}

.profile-brand-dot{
    width:18px;
    height:18px;

    border-radius:50%;

    background:var(--profile-accent);
    box-shadow:0 0 18px rgba(255,79,160,.45);
}

.profile-brand span:last-child{
    display:grid;
    gap:2px;
}

.profile-brand strong{
    color:white;

    font-size:27px;
    font-weight:900;
    letter-spacing:-.04em;
    line-height:1;
}

.profile-brand small{
    color:#d8c8ef;

    font-size:11px;
    font-weight:800;
}

.profile-main-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:28px;
}

.profile-main-nav a{
    color:white;
    text-decoration:none;

    font-size:15px;
    font-weight:900;
}

.profile-main-nav a:hover,
.profile-main-nav a.active{
    color:var(--profile-accent);
}

.profile-add-link{
    min-height:44px;

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

    padding:0 22px;

    border:1px solid rgba(207,169,255,.42);
    border-radius:999px;

    background:rgba(255,255,255,.06);
    color:var(--profile-accent) !important;
}

.profile-auth{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:18px;
}

.profile-auth a{
    color:white;
    text-decoration:none;

    font-size:15px;
    font-weight:900;
}

.profile-signup{
    min-height:48px;

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

    padding:0 26px;

    border-radius:999px;

    background:var(--profile-accent);
    box-shadow:0 12px 28px rgba(255,79,160,.24);
}

/* PAGE */

.reader-profile-shell{
    width:min(1320px,100%);
    margin:0 auto;
    padding:52px 32px 120px;
}

/* HERO */

.reader-hero{
    margin-bottom:28px;
}

.reader-banner{
    position:relative;

    height:260px;

    overflow:hidden;

    border:1px solid var(--profile-border);
    border-radius:34px 34px 0 0;

    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(255,79,160,.20),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 30%,
            rgba(207,169,255,.20),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #32175d 0%,
            #241246 48%,
            #160b31 100%
        );

    box-shadow:
        var(--profile-shadow);
}

.reader-banner::before{
    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(255,255,255,.035) 45%,
            transparent 70%
        );

    pointer-events:none;
}


.reader-banner::after{
    content:"THE PURPLE LIBRARY";

    position:absolute;

    right:34px;
    bottom:26px;

    color:
        rgba(255,255,255,.07);

    font-size:32px;
    font-weight:900;

    letter-spacing:.08em;

    pointer-events:none;
}

.reader-banner img{
    position:relative;
    z-index:1;

    width:100%;
    height:100%;

    display:block;

    object-fit:cover;

    opacity:.9;
}


.reader-banner img[hidden]{
    display:none !important;
}

.reader-identity-card{
    position:relative;

    display:grid;
    grid-template-columns:170px minmax(0,1fr) 300px;
    gap:28px;
    align-items:end;

    padding:0 34px 34px;

    border:1px solid var(--profile-border);
    border-top:0;
    border-radius:0 0 34px 34px;

    background:var(--profile-panel);
    box-shadow:var(--profile-shadow);
}

.reader-avatar-wrap{
    position:relative;

    width:150px;
    height:150px;

    transform:translateY(-42px);

    padding:7px;

    overflow:hidden;

    border-radius:34px;

    background:
        linear-gradient(
            135deg,
            #ff4fa0,
            #cfa9ff
        );

    box-shadow:
        0 18px 44px
        rgba(0,0,0,.32);
}

.reader-avatar-wrap img{
    position:absolute;

    inset:7px;

    width:calc(100% - 14px);
    height:calc(100% - 14px);

    display:block;

    object-fit:cover;

    border-radius:28px;
}

.reader-identity-main{
    padding-top:28px;
}

.reader-kicker-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;

    margin-bottom:14px;
}

.reader-kicker-row span{
    min-height:28px;

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

    padding:0 10px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:10px;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.reader-identity-main h1{
    color:white;

    font-family:Georgia,"Times New Roman",serif;
    font-size:72px;
    line-height:.92;
    letter-spacing:-.055em;
}

.reader-handle{
    margin-top:8px;

    color:var(--profile-lavender);

    font-size:17px;
    font-weight:900;
}

.reader-bio{
    max-width:720px;

    margin-top:14px;

    color:#e9ddff;

    font-size:16px;
    line-height:1.65;
}

.reader-profile-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;

    margin-top:22px;
}

.reader-profile-actions a{
    min-height:42px;

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    padding:0 15px;

    border-radius:999px;

    background:#ff4fa0;
    color:white;
    text-decoration:none;

    font-size:13px;
    font-weight:900;
}

.reader-profile-actions a:last-child{
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.12);
}

.reader-profile-actions svg{
    width:17px;
    height:17px;
}

.reader-personality-card{
    padding:22px;

    border:1px solid rgba(255,255,255,.12);
    border-radius:24px;

    background:rgba(255,255,255,.08);
}

.reader-personality-card span{
    display:block;

    color:var(--profile-lavender);

    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.reader-personality-card strong{
    display:block;

    margin-top:8px;

    color:white;

    font-family:Georgia,"Times New Roman",serif;
    font-size:29px;
    line-height:1;
}

.reader-personality-card p{
    margin-top:10px;

    color:#d8c8ef;

    font-size:14px;
    line-height:1.55;
}

/* STATS */

.reader-stat-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;

    margin-bottom:28px;
}

.reader-stat-card{
    padding:22px;

    border:1px solid var(--profile-border);
    border-radius:26px;

    background:var(--profile-panel);
    box-shadow:0 20px 70px rgba(0,0,0,.18);
}

.reader-stat-card span{
    width:44px;
    height:44px;

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

    margin-bottom:16px;

    border-radius:16px;

    background:#ff4fa0;
    color:white;

    box-shadow:0 12px 28px rgba(255,79,160,.24);
}

.reader-stat-card svg{
    width:21px;
    height:21px;
}

.reader-stat-card strong{
    display:block;

    color:white;

    font-family:Georgia,"Times New Roman",serif;
    font-size:42px;
    line-height:1;
    letter-spacing:-.04em;
}

.reader-stat-card p{
    margin-top:8px;

    color:#d8c8ef;

    font-size:13px;
    font-weight:800;
}

/* MAIN LAYOUT */

.reader-profile-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    gap:28px;
    align-items:start;
}

.reader-profile-main{
    display:grid;
    gap:22px;
}

.reader-section-card,
.reader-sidebar-card{
    border:1px solid var(--profile-border);
    border-radius:30px;

    background:var(--profile-panel);
    box-shadow:0 20px 70px rgba(0,0,0,.2);
}

.reader-section-card{
    padding:28px;
}

.reader-section-heading{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;

    margin-bottom:20px;
}

.reader-section-heading span{
    display:inline-flex;

    margin-bottom:9px;

    color:var(--profile-lavender);

    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.reader-section-heading h2,
.reader-sidebar-card h2{
    color:white;

    font-family:Georgia,"Times New Roman",serif;
    font-size:34px;
    line-height:1;
    letter-spacing:-.035em;
}

.reader-section-heading p{
    margin-top:7px;

    color:#d8c8ef;

    font-size:14px;
    line-height:1.5;
}

.reader-section-heading a{
    min-height:38px;

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

    padding:0 13px;

    border-radius:999px;

    background:rgba(255,255,255,.1);
    color:white;
    text-decoration:none;

    font-size:12px;
    font-weight:900;
}

/* STORY CARDS */

.reader-story-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.reader-story-card{
    overflow:hidden;

    border-radius:24px;

    background:
        linear-gradient(180deg,rgba(255,255,255,.98),rgba(244,234,255,.98));

    color:var(--profile-text);
    box-shadow:0 18px 44px rgba(0,0,0,.16);
}

.reader-story-card img{
    width:100%;
    height:190px;

    display:block;

    object-fit:cover;
}

.reader-story-card div{
    padding:16px;
}

.reader-status-pill{
    min-height:25px;

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

    margin-bottom:12px;
    padding:0 9px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:10px;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.reader-status-pill.reading{
    background:#ffe4f1;
    color:#9f2f68;
}

.reader-status-pill.waiting{
    background:#e0f2fe;
    color:#075985;
}

.reader-status-pill.new{
    background:#dcfce7;
    color:#166534;
}

.reader-status-pill.tbr{
    background:#fff1d8;
    color:#8a5a12;
}

.reader-story-card h3{
    color:var(--profile-text);

    font-family:Georgia,"Times New Roman",serif;
    font-size:23px;
    line-height:1.06;
}

.reader-story-card p{
    margin-top:8px;

    color:#6f617f;

    font-size:13px;
    font-weight:800;
    line-height:1.45;
}

/* UPDATES */

.reader-update-list{
    display:grid;
    gap:12px;
}

.reader-update-card{
    display:grid;
    grid-template-columns:76px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;

    padding:14px;

    border-radius:22px;

    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
}

.reader-update-card img{
    width:76px;
    height:76px;

    border-radius:18px;

    object-fit:cover;
}

.reader-update-card h3{
    color:white;

    font-family:Georgia,"Times New Roman",serif;
    font-size:24px;
    line-height:1;
}

.reader-update-card p{
    margin-top:7px;

    color:#d8c8ef;

    font-size:13px;
    line-height:1.45;
}

.reader-update-card > span{
    min-height:30px;

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

    padding:0 10px;

    border-radius:999px;

    background:#e0f2fe;
    color:#075985;

    font-size:10px;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
}

/* SHELVES */

.reader-shelf-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.reader-shelf-card{
    min-height:220px;

    display:flex;
    flex-direction:column;

    padding:22px;

    border-radius:24px;

    background:
        linear-gradient(180deg,rgba(255,255,255,.98),rgba(244,234,255,.98));

    color:var(--profile-text);
}

.reader-shelf-card span{
    width:max-content;

    min-height:26px;

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

    padding:0 9px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:10px;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.reader-shelf-card h3{
    margin-top:18px;

    color:var(--profile-text);

    font-family:Georgia,"Times New Roman",serif;
    font-size:31px;
    line-height:1;
}

.reader-shelf-card p{
    margin-top:10px;

    color:#6f617f;

    font-size:14px;
    line-height:1.55;
}

.reader-shelf-card strong{
    margin-top:auto;

    color:#9f2f68;

    font-size:13px;
    font-weight:900;
}

/* HOSTED EVENTS */

.profile-hosted-events{
    margin-top:0;
}

.hosted-events-empty{
    color:#d8c8ef;

    font-size:14px;
    line-height:1.5;
}

.hosted-events-empty[hidden]{
    display:none;
}

.hosted-events-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:16px;

    margin-top:18px;
}

.hosted-event-card{
    min-height:230px;

    display:flex;
    flex-direction:column;

    padding:18px;

    border-radius:22px;

    background:
        linear-gradient(180deg,rgba(255,255,255,.98),rgba(244,234,255,.98));

    color:#171224;
    box-shadow:0 18px 44px rgba(0,0,0,.18);
}

.hosted-event-top{
    display:flex;
    justify-content:space-between;
    gap:8px;

    margin-bottom:14px;
}

.hosted-event-top span{
    min-height:25px;

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

    padding:0 9px;

    border-radius:999px;

    background:#ffe4f1;
    color:#9f2f68;

    font-size:10px;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.hosted-event-card h3{
    color:#171224;

    font-family:Georgia,"Times New Roman",serif;
    font-size:27px;
    line-height:1.03;
}

.hosted-event-card p{
    margin-top:9px;

    color:#6f617f;

    font-size:14px;
    line-height:1.45;
}

.hosted-event-meta{
    display:flex;
    flex-wrap:wrap;
    gap:7px;

    margin-top:14px;
}

.hosted-event-meta span{
    min-height:25px;

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

    padding:0 9px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:10px;
    font-weight:900;
}

.hosted-event-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;

    margin-top:auto;
    padding-top:16px;
}

.hosted-event-actions a{
    min-height:36px;

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

    padding:0 13px;

    border-radius:999px;

    background:#ff4fa0;
    color:white;
    text-decoration:none;

    font-size:12px;
    font-weight:900;
}

.hosted-event-actions a:last-child{
    background:#f0e3ff;
    color:#6b3c93;
}

/* SIDEBAR */

.reader-profile-sidebar{
    position:sticky;
    top:100px;

    display:grid;
    gap:18px;
}

.reader-sidebar-card{
    padding:24px;
}

.reader-detail-list{
    display:grid;
    gap:16px;

    margin-top:18px;
}

.reader-detail-list div{
    padding-bottom:15px;
    border-bottom:1px solid rgba(255,255,255,.1);
}

.reader-detail-list div:last-child{
    padding-bottom:0;
    border-bottom:0;
}

.reader-detail-list dt{
    color:var(--profile-lavender);

    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.reader-detail-list dd{
    margin-top:6px;

    color:white;

    font-size:14px;
    font-weight:800;
    line-height:1.5;
}

.reader-tag-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;

    margin-top:18px;
}

.reader-tag-list span{
    min-height:28px;

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

    padding:0 10px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:11px;
    font-weight:900;
}

.reader-achievement-list{
    display:grid;
    gap:12px;

    margin-top:18px;
}

.reader-achievement-list article{
    display:flex;
    gap:12px;

    padding:14px;

    border-radius:18px;

    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.1);
}

.reader-achievement-list article > span{
    width:38px;
    height:38px;

    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;

    border-radius:14px;

    background:rgba(255,255,255,.1);
}

.reader-achievement-list h3{
    color:white;

    font-size:14px;
    font-weight:900;
}

.reader-achievement-list p{
    margin-top:4px;

    color:#d8c8ef;

    font-size:12px;
    line-height:1.45;
}

/* RESPONSIVE */

@media (max-width:1100px){
    .profile-header-nav{
        grid-template-columns:1fr;
        gap:18px;

        padding:18px 22px;
    }

    .profile-main-nav{
        justify-content:flex-start;
        gap:18px;

        overflow-x:auto;
        padding-bottom:4px;
    }

    .profile-auth{
        justify-content:flex-start;
    }

    .reader-identity-card{
        grid-template-columns:130px minmax(0,1fr);
    }

    .reader-personality-card{
        grid-column:1 / -1;
    }

    .reader-profile-layout{
        grid-template-columns:1fr;
    }

    .reader-profile-sidebar{
        position:static;
    }
}

@media (max-width:820px){
    .reader-stat-grid,
    .reader-story-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .reader-identity-card{
        grid-template-columns:1fr;
    }

    .reader-avatar-wrap{
        transform:translateY(-34px);
    }

    .reader-identity-main{
        padding-top:0;
    }

    .reader-update-card{
        grid-template-columns:64px minmax(0,1fr);
    }

    .reader-update-card > span{
        grid-column:2;
        width:max-content;
    }
}

@media (max-width:620px){
    .reader-profile-shell{
        padding:38px 18px 90px;
    }

    .reader-banner{
        height:190px;
    }

    .reader-identity-card{
        padding:0 22px 26px;
    }

    .reader-identity-main h1{
        font-size:52px;
    }

    .reader-stat-grid,
    .reader-story-grid,
    .reader-shelf-grid{
        grid-template-columns:1fr;
    }

    .reader-section-heading{
        flex-direction:column;
    }

    .reader-story-card img{
        height:230px;
    }
}

/* =========================================================
   REAL MY LIBRARY CONTENT
========================================================= */

.reader-avatar-fallback{
    position:absolute;

    inset:7px;

    width:calc(100% - 14px);
    height:calc(100% - 14px);

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

    border-radius:28px;

    background:
        linear-gradient(
            135deg,
            #2d1658,
            #6c3aa0
        );

    color:white;

    font-size:38px;
    font-weight:900;
}


.reader-avatar-fallback[hidden],
.reader-avatar-wrap img[hidden]{
    display:none !important;
}


.reader-avatar-fallback[hidden],
.reader-banner img[hidden]{
    display:none !important;
}


.reader-empty-state{
    padding:24px;

    border:1px dashed rgba(207,169,255,.35);
    border-radius:20px;

    color:#d8c8ef;

    font-size:14px;
    line-height:1.5;

    text-align:center;
}


.reader-empty-state[hidden]{
    display:none !important;
}


/* =========================================================
   LIBRARY STORY CARDS
========================================================= */

.reader-library-story-grid{
    display:grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px,1fr)
        );

    gap:16px;
}


.reader-library-story-card{
    overflow:hidden;

    border-radius:24px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.98),
            rgba(244,234,255,.98)
        );

    color:#171224;

    box-shadow:
        0 18px 44px
        rgba(0,0,0,.16);
}


.reader-library-story-cover{
    height:180px;

    overflow:hidden;

    background:#2a154e;
}


.reader-library-story-cover img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;
}


.reader-story-cover-fallback{
    width:100%;
    height:100%;

    display:flex;
    flex-direction:column;

    align-items:center;
    justify-content:center;

    gap:9px;

    background:
        radial-gradient(
            circle at top,
            #6f398f,
            #32185b 55%,
            #241246
        );

    color:#f7efff;
}


.reader-story-cover-fallback svg{
    width:34px;
    height:34px;

    color:#ff4fa0;
}


.reader-story-cover-fallback span{
    color:#d8c8ef;

    font-size:10px;
    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;
}


.reader-library-story-body{
    padding:17px;
}


.reader-library-story-top{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;

    gap:7px;

    margin-bottom:12px;
}


.reader-library-story-top span{
    min-height:24px;

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

    padding:0 8px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:9px;
    font-weight:900;

    letter-spacing:.05em;

    text-transform:uppercase;
}


.reader-library-story-card h3{
    color:#171224;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:25px;
    line-height:1.04;
}


.reader-library-story-author{
    margin-top:6px;

    color:#7d489e;

    font-size:12px;
    font-weight:900;
}


.reader-library-story-chips{
    display:flex;
    flex-wrap:wrap;

    gap:6px;

    margin-top:14px;
}


.reader-library-story-chips span{
    padding:5px 8px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:9px;
    font-weight:900;
}


.reader-library-story-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:10px;

    margin-top:18px;
    padding-top:14px;

    border-top:
        1px solid
        rgba(23,18,36,.1);
}


.reader-library-story-footer small{
    color:#8a7b99;

    font-size:10px;
    font-weight:800;
}


.reader-library-story-footer a{
    min-height:34px;

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

    padding:0 13px;

    border-radius:999px;

    background:#ff4fa0;
    color:white;

    text-decoration:none;

    font-size:11px;
    font-weight:900;
}


/* =========================================================
   SHELF LINKS
========================================================= */

.reader-shelf-card{
    text-decoration:none;
}


/* =========================================================
   APPRECIATIONS
========================================================= */

.reader-appreciation-grid{
    display:grid;
    gap:14px;
}


.reader-profile-appreciation-card{
    padding:20px;

    border-radius:22px;

    background:
        rgba(255,255,255,.08);

    border:
        1px solid
        rgba(255,255,255,.12);
}


.reader-profile-appreciation-top{
    display:flex;
    justify-content:space-between;

    gap:16px;
}


.reader-profile-appreciation-top span{
    color:#cfa9ff;

    font-size:10px;
    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;
}


.reader-profile-appreciation-top h3{
    margin-top:5px;

    color:white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:25px;
}


.reader-profile-appreciation-top small{
    color:#d8c8ef;

    font-size:10px;
    font-weight:800;
}


.reader-profile-appreciation-chips{
    display:flex;
    flex-wrap:wrap;

    gap:7px;

    margin-top:14px;
}


.reader-profile-appreciation-chips span{
    padding:6px 9px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:10px;
    font-weight:900;
}


.reader-profile-appreciation-card > p{
    margin-top:14px;

    color:#eee4ff;

    font-size:14px;
    line-height:1.6;
}


.reader-profile-appreciation-card > a{
    width:max-content;

    min-height:34px;

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

    margin-top:15px;
    padding:0 13px;

    border-radius:999px;

    background:#ff4fa0;
    color:white;

    text-decoration:none;

    font-size:11px;
    font-weight:900;
}


/* =========================================================
   PRIVACY NOTE
========================================================= */

.reader-library-note{
    display:grid;

    gap:12px;

    margin-top:18px;
}


.reader-library-note p{
    padding:12px 14px;

    border-radius:16px;

    background:
        rgba(255,255,255,.07);

    color:#d8c8ef;

    font-size:13px;
    line-height:1.5;
}

/* =========================================================
   READING TRACKER
========================================================= */

.reader-tracker-grid{
    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px,1fr)
        );

    gap:16px;
}


.reader-tracker-card{
    overflow:hidden;

    border-radius:24px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.98),
            rgba(244,234,255,.98)
        );

    color:#171224;

    box-shadow:
        0 18px 44px
        rgba(0,0,0,.16);
}


.reader-tracker-cover{
    height:180px;

    overflow:hidden;

    background:#2a154e;
}


.reader-tracker-cover img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;
}


.reader-tracker-cover-fallback{
    width:100%;
    height:100%;

    display:flex;
    flex-direction:column;

    align-items:center;
    justify-content:center;

    gap:10px;

    background:
        radial-gradient(
            circle at top,
            #6f398f,
            #32185b 55%,
            #241246
        );

    color:white;
}


.reader-tracker-cover-fallback svg{
    width:34px;
    height:34px;

    color:#ff4fa0;
}


.reader-tracker-cover-fallback span{
    color:#d8c8ef;

    font-size:10px;
    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;
}


.reader-tracker-card-body{
    padding:18px;
}


.reader-tracker-card-top{
    display:flex;
    flex-wrap:wrap;

    gap:7px;

    margin-bottom:12px;
}


.reader-tracker-status,
.reader-tracker-following{
    min-height:25px;

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

    padding:0 9px;

    border-radius:999px;

    font-size:9px;
    font-weight:900;

    letter-spacing:.05em;

    text-transform:uppercase;
}


.reader-tracker-status{
    background:#f0e3ff;
    color:#6b3c93;
}


.reader-tracker-following{
    background:#ffe4f1;
    color:#9f2f68;
}


.reader-tracker-card h3{
    color:#171224;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:26px;
    line-height:1.04;
}


.reader-tracker-author{
    margin-top:6px;

    color:#7d489e;

    font-size:12px;
    font-weight:900;
}


.reader-tracker-progress-text{
    margin-top:16px;

    color:#5f536c;

    font-size:13px;
    font-weight:800;
}


.reader-tracker-progress-bar{
    height:8px;

    overflow:hidden;

    margin-top:10px;

    border-radius:999px;

    background:#eadcff;
}


.reader-tracker-progress-bar span{
    height:100%;

    display:block;

    border-radius:inherit;

    background:
        linear-gradient(
            90deg,
            #ff4fa0,
            #8b5cf6
        );
}


.reader-tracker-percent{
    display:block;

    margin-top:6px;

    color:#8a7b99;

    font-size:10px;
    font-weight:800;
}


.reader-tracker-card-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:12px;

    margin-top:18px;
    padding-top:14px;

    border-top:
        1px solid
        rgba(23,18,36,.1);
}


.reader-tracker-card-footer small{
    color:#8a7b99;

    font-size:10px;
    font-weight:800;
}


.reader-tracker-card-footer a{
    min-height:34px;

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

    padding:0 13px;

    border-radius:999px;

    background:#ff4fa0;
    color:white;

    text-decoration:none;

    font-size:10px;
    font-weight:900;
}

/* =========================================================
   READING JOURNEY
========================================================= */

.reader-journey-section{
    margin-bottom:28px;
    padding:26px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius:28px;

    background:
        rgba(36,18,70,.78);

    box-shadow:
        0 20px 70px
        rgba(0,0,0,.18);
}


.reader-journey-section
.reader-section-heading{
    margin-bottom:20px;
}


.reader-journey-grid{
    display:grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap:16px;
}


.reader-journey-card{
    min-height:150px;

    padding:22px;

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius:24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.035)
        );
}


.reader-journey-icon{
    width:44px;
    height:44px;

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

    margin-bottom:18px;

    border-radius:15px;

    background:#ff4fa0;
    color:white;

    box-shadow:
        0 12px 28px
        rgba(255,79,160,.24);
}


.reader-journey-icon svg{
    width:20px;
    height:20px;
}


.reader-journey-card strong{
    display:block;

    color:white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:34px;
    line-height:1;
}


.reader-journey-card p{
    margin-top:9px;

    color:#d8c8ef;

    font-size:12px;
    font-weight:800;
}


@media (max-width:760px){

    .reader-journey-grid{
        grid-template-columns:1fr;
    }

}

/* =========================================================
   READING MILESTONES
========================================================= */

.reader-milestones-section{
    margin-bottom:28px;
    padding:26px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius:28px;

    background:
        rgba(36,18,70,.78);

    box-shadow:
        0 20px 70px
        rgba(0,0,0,.18);
}


.reader-milestone-summary{
    min-height:36px;

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

    padding:0 14px;

    border-radius:999px;

    background:
        rgba(255,255,255,.09);

    color:#f4eaff;

    font-size:11px;
    font-weight:900;
}


.reader-milestone-grid{
    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px,1fr)
        );

    gap:16px;
}


.reader-milestone-card{
    display:flex;

    gap:16px;

    padding:20px;

    border:
        1px solid
        rgba(207,169,255,.22);

    border-radius:22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.09),
            rgba(255,255,255,.035)
        );
}


.reader-milestone-icon{
    width:50px;
    height:50px;

    flex:0 0 50px;

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

    border-radius:17px;

    background:
        linear-gradient(
            135deg,
            #ff4fa0,
            #9d5cff
        );

    color:white;

    box-shadow:
        0 12px 30px
        rgba(255,79,160,.22);
}


.reader-milestone-icon svg{
    width:23px;
    height:23px;
}


.reader-milestone-content{
    min-width:0;
}


.reader-milestone-content > span{
    color:#cfa9ff;

    font-size:9px;
    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;
}


.reader-milestone-content h3{
    margin-top:4px;

    color:white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:23px;
}


.reader-milestone-content > p{
    margin-top:7px;

    color:#d8c8ef;

    font-size:12px;
    line-height:1.5;
}


.reader-milestone-footer{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;

    gap:8px;

    margin-top:15px;
    padding-top:12px;

    border-top:
        1px solid
        rgba(255,255,255,.1);
}


.reader-milestone-footer strong{
    color:#ff86bd;

    font-size:11px;
}


.reader-milestone-footer small{
    color:#ad9bbc;

    font-size:10px;
    font-weight:700;
}

/* =========================================================
   READER DETAILS / PREFERENCES
========================================================= */

.reader-preferences-section{
    margin-bottom:28px;
    padding:26px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius:28px;

    background:
        rgba(36,18,70,.78);

    box-shadow:
        0 20px 70px
        rgba(0,0,0,.18);
}


/* =========================================================
   EDIT BUTTON
========================================================= */

.reader-preferences-edit{
    min-height:38px;

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

    padding:0 15px;

    border:0;
    border-radius:999px;

    background:
        rgba(255,255,255,.10);

    color:white;

    font-family:Inter,sans-serif;
    font-size:11px;
    font-weight:900;

    cursor:pointer;

    transition:
        transform .18s ease,
        background .18s ease;
}


.reader-preferences-edit:hover{
    transform:translateY(-1px);

    background:
        rgba(255,255,255,.16);
}


/* =========================================================
   DETAILS GRID
========================================================= */

.reader-preferences-grid{
    display:grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap:16px;
}


.reader-preference-card{
    min-height:140px;

    padding:20px;

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius:22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.035)
        );
}


.reader-preference-card > span{
    display:block;

    margin-bottom:14px;

    color:#cfa9ff;

    font-size:10px;
    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;
}


/* =========================================================
   PREFERENCE CHIPS
========================================================= */

.reader-preference-chips{
    display:flex;
    flex-wrap:wrap;

    gap:8px;
}


.reader-preference-chips > span{
    display:inline-flex;
    align-items:center;

    min-height:28px;

    padding:0 10px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:10px;
    font-weight:900;
}


.reader-preference-empty{
    margin:0;

    color:#bba9d3;

    font-size:12px;
    line-height:1.5;
}


/* =========================================================
   READING STYLE DETAILS
========================================================= */

.reader-preference-details{
    display:grid;

    gap:13px;

    margin:0;
}


.reader-preference-details > div{
    display:grid;

    gap:4px;

    padding-bottom:12px;

    border-bottom:
        1px solid
        rgba(255,255,255,.08);
}


.reader-preference-details > div:last-child{
    padding-bottom:0;
    border-bottom:0;
}


.reader-preference-details dt{
    color:#ad96c7;

    font-size:9px;
    font-weight:900;

    letter-spacing:.07em;

    text-transform:uppercase;
}


.reader-preference-details dd{
    margin:0;

    color:white;

    font-size:13px;
    font-weight:800;
}


/* =========================================================
   PREFERENCES MODAL OVERLAY
========================================================= */

.reader-preferences-overlay{
    position:fixed;
    inset:0;

    z-index:850;

    display:none;
    align-items:center;
    justify-content:center;

    padding:24px;

    background:
        rgba(9,4,24,.76);

    backdrop-filter:
        blur(12px);
}


.reader-preferences-overlay.open{
    display:flex;
}


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

.reader-preferences-modal{
    width:min(720px,100%);
    max-height:calc(100vh - 48px);

    display:flex;
    flex-direction:column;

    overflow:hidden;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius:28px;

    background:#fbfaff;
    color:#171224;

    box-shadow:
        0 35px 120px
        rgba(0,0,0,.48);
}


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

.reader-preferences-modal-header{
    flex:0 0 auto;

    display:flex;
    align-items:flex-start;
    justify-content:space-between;

    gap:20px;

    padding:24px 26px;

    background:
        linear-gradient(
            135deg,
            #32175d,
            #241246
        );

    color:white;
}


.reader-preferences-modal-header span{
    color:#cfa9ff;

    font-size:10px;
    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;
}


.reader-preferences-modal-header h2{
    margin:5px 0 0;

    color:white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:31px;
    line-height:1.05;
}


.reader-preferences-modal-header button{
    width:38px;
    height:38px;

    flex:0 0 38px;

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

    border:0;
    border-radius:50%;

    background:
        rgba(255,255,255,.1);

    color:white;

    font-size:24px;
    line-height:1;

    cursor:pointer;
}


.reader-preferences-modal-header button:hover{
    background:
        rgba(255,255,255,.17);
}


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

.reader-preferences-modal-body{
    flex:1 1 auto;

    display:grid;
    gap:22px;

    padding:26px;

    overflow-y:auto;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.reader-preference-field{
    display:grid;
    gap:8px;
}


.reader-preference-field > span,
.reader-preference-fieldset legend{
    color:#5e2a7e;

    font-size:11px;
    font-weight:900;

    letter-spacing:.07em;

    text-transform:uppercase;
}


.reader-preference-field input,
.reader-preference-field select{
    width:100%;

    min-height:48px;

    padding:0 14px;

    border:
        1px solid
        #e7d8fa;

    border-radius:15px;

    background:white;
    color:#171224;

    font-family:Inter,sans-serif;
    font-size:14px;

    outline:none;
}


.reader-preference-field input:focus,
.reader-preference-field select:focus{
    border-color:#ff4fa0;

    box-shadow:
        0 0 0 4px
        rgba(255,79,160,.11);
}


.reader-preference-field small{
    color:#8b7c99;

    font-size:11px;
    line-height:1.45;
}


/* =========================================================
   FIELDSETS
========================================================= */

.reader-preference-fieldset{
    margin:0;
    padding:0;

    border:0;
}


.reader-preference-fieldset legend{
    margin-bottom:10px;
}


/* =========================================================
   CHECKBOX OPTIONS
========================================================= */

.reader-checkbox-grid{
    display:grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap:10px;
}


.reader-checkbox-grid label{
    min-height:46px;

    display:flex;
    align-items:center;

    gap:10px;

    padding:10px 13px;

    border:
        1px solid
        #e7d8fa;

    border-radius:14px;

    background:#f8f2ff;
    color:#38214c;

    font-size:12px;
    font-weight:800;

    cursor:pointer;

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


.reader-checkbox-grid label:hover{
    border-color:#d7b6f5;

    background:#f3e8ff;
}


.reader-checkbox-grid input{
    width:16px;
    height:16px;

    flex:0 0 16px;

    accent-color:#ff4fa0;

    cursor:pointer;
}


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

.reader-preferences-modal-footer{
    flex:0 0 auto;

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

    gap:10px;

    padding:18px 26px;

    border-top:
        1px solid
        #eadcff;

    background:white;
}


.reader-preferences-modal-footer button{
    min-height:42px;

    padding:0 17px;

    border:0;
    border-radius:999px;

    font-family:Inter,sans-serif;
    font-size:11px;
    font-weight:900;

    cursor:pointer;
}


#cancelReaderPreferences{
    background:#eee5f7;
    color:#5e2a7e;
}


#saveReaderPreferences{
    background:#ff4fa0;
    color:white;

    box-shadow:
        0 10px 24px
        rgba(255,79,160,.22);
}


#saveReaderPreferences:disabled{
    opacity:.55;
    cursor:wait;
}


/* =========================================================
   HIDDEN SAFETY
========================================================= */

.reader-preferences-overlay[aria-hidden="true"]{
    pointer-events:none;
}


.reader-preferences-overlay.open[aria-hidden="false"]{
    pointer-events:auto;
}


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

@media (max-width:760px){

    .reader-preferences-section{
        padding:20px;
    }


    .reader-preferences-grid{
        grid-template-columns:1fr;
    }


    .reader-checkbox-grid{
        grid-template-columns:1fr;
    }


    .reader-preferences-overlay{
        padding:14px;
    }


    .reader-preferences-modal{
        max-height:calc(100vh - 28px);

        border-radius:22px;
    }


    .reader-preferences-modal-header{
        padding:20px;
    }


    .reader-preferences-modal-body{
        padding:20px;
    }


    .reader-preferences-modal-footer{
        padding:16px 20px;
    }


    .reader-preferences-modal-footer button{
        flex:1;
    }

}

/* =========================================================
   READER DETAILS — SIDEBAR
========================================================= */

.reader-details-sidebar{
    display:grid;
    gap:0;
}


.reader-details-sidebar-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;

    gap:12px;

    margin-bottom:4px;
}


.reader-details-sidebar-header > div > span{
    display:block;

    margin-bottom:5px;

    color:#cfa9ff;

    font-size:9px;
    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;
}


.reader-details-sidebar-header h2{
    margin:0;

    color:white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:28px;
    line-height:1;
}


.reader-details-sidebar
.reader-preferences-edit{
    min-height:32px;

    padding:0 11px;

    flex:0 0 auto;

    font-size:9px;
}


/* =========================================================
   INDIVIDUAL PREFERENCE GROUP
========================================================= */

.reader-sidebar-preference{
    padding:16px 0;

    border-bottom:
        1px solid
        rgba(255,255,255,.09);
}


.reader-sidebar-preference:last-child{
    padding-bottom:0;
    border-bottom:0;
}


.reader-sidebar-preference > strong{
    display:block;

    margin-bottom:9px;

    color:#ad96c7;

    font-size:9px;
    font-weight:900;

    letter-spacing:.07em;

    text-transform:uppercase;
}


/* =========================================================
   SIDEBAR CHIPS
========================================================= */

.reader-details-sidebar
.reader-preference-chips{
    gap:6px;
}


.reader-details-sidebar
.reader-preference-chips > span{
    min-height:24px;

    padding:0 8px;

    font-size:8px;
}


.reader-details-sidebar
.reader-preference-empty{
    color:#bba9d3;

    font-size:11px;
}


/* =========================================================
   READING STYLE
========================================================= */

.reader-details-sidebar
.reader-preference-details{
    gap:10px;
}


.reader-details-sidebar
.reader-preference-details > div{
    padding-bottom:9px;
}


.reader-details-sidebar
.reader-preference-details dt{
    font-size:8px;
}


.reader-details-sidebar
.reader-preference-details dd{
    font-size:11px;
}

/* =========================================================
   READING PERSONALITY
========================================================= */

.reader-personality-traits{
    display:flex;
    flex-wrap:wrap;

    gap:6px;

    margin-top:14px;
}


.reader-personality-traits span{
    padding:5px 8px;

    border-radius:999px;

    background:
        rgba(255,255,255,.10);

    color:#f3e8ff;

    font-size:8px;
    font-weight:900;
}


.reader-personality-confidence{
    display:block;

    margin-top:12px;

    color:#cfa9ff;

    font-size:8px;
    font-weight:900;

    letter-spacing:.04em;

    text-transform:uppercase;
}

/* =========================================================
   READING PERSONALITY — HERO SIZE BALANCE
========================================================= */

.reader-identity-card{
    grid-template-columns:
        150px
        minmax(0,1fr)
        minmax(360px,430px);

    align-items:center;
}


.reader-personality-card{
    width:100%;
    min-height:150px;

    align-self:center;

    margin-top:18px;

    padding:24px 26px;

    border-radius:24px;

    display:flex;
    flex-direction:column;
    justify-content:center;
}


.reader-personality-card > span{
    font-size:9px;
    letter-spacing:.09em;
}


.reader-personality-card > strong{
    display:block;

    margin-top:6px;

    font-size:28px;
    line-height:1.05;
}


.reader-personality-card > p{
    margin-top:9px;

    max-width:360px;

    font-size:11px;
    line-height:1.5;
}


.reader-personality-traits{
    display:flex;
    flex-wrap:wrap;

    gap:6px;

    margin-top:12px;
}


.reader-personality-traits span{
    padding:5px 8px;

    font-size:8px;
}


.reader-personality-confidence{
    margin-top:10px;

    font-size:8px;
}

/* =========================================================
   READING HISTORY
========================================================= */

.reader-history-section{
    margin-bottom:28px;
    padding:26px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius:28px;

    background:
        rgba(36,18,70,.78);

    box-shadow:
        0 20px 70px
        rgba(0,0,0,.18);
}


.reader-history-summary{
    min-height:36px;

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

    padding:0 14px;

    border-radius:999px;

    background:
        rgba(255,255,255,.09);

    color:#f4eaff;

    font-size:10px;
    font-weight:900;
}


.reader-history-list{
    display:grid;

    gap:12px;
}


.reader-history-item{
    display:grid;

    grid-template-columns:
        48px
        minmax(0,1fr)
        auto;

    gap:14px;
    align-items:center;

    padding:16px 18px;

    border:
        1px solid
        rgba(255,255,255,.1);

    border-radius:20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.03)
        );
}


.reader-history-icon{
    width:48px;
    height:48px;

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

    border-radius:16px;

    background:#ff4fa0;
    color:white;

    box-shadow:
        0 10px 24px
        rgba(255,79,160,.22);
}


.reader-history-icon svg{
    width:21px;
    height:21px;
}


.reader-history-main{
    min-width:0;
}


.reader-history-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;

    gap:14px;
}


.reader-history-top span{
    color:#cfa9ff;

    font-size:8px;
    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;
}


.reader-history-top h3{
    margin-top:3px;

    color:white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:21px;
    line-height:1.05;
}


.reader-history-top time{
    flex:0 0 auto;

    color:#ad9bbc;

    font-size:9px;
    font-weight:800;
}


.reader-history-metrics{
    display:flex;
    flex-wrap:wrap;

    gap:8px;

    margin-top:10px;
}


.reader-history-metrics span{
    min-height:27px;

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

    gap:5px;

    padding:0 9px;

    border-radius:999px;

    background:
        rgba(255,255,255,.08);

    color:#e9ddff;

    font-size:9px;
    font-weight:800;
}


.reader-history-metrics svg{
    width:12px;
    height:12px;

    color:#ff86bd;
}


.reader-history-story-link{
    min-height:34px;

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

    gap:6px;

    padding:0 12px;

    border-radius:999px;

    background:
        rgba(255,255,255,.1);

    color:white;

    text-decoration:none;

    font-size:9px;
    font-weight:900;
}


.reader-history-story-link:hover{
    background:#ff4fa0;
}


.reader-history-story-link svg{
    width:12px;
    height:12px;
}


@media (max-width:720px){

    .reader-history-item{
        grid-template-columns:
            44px
            minmax(0,1fr);
    }


    .reader-history-story-link{
        grid-column:
            1 / -1;

        width:max-content;

        margin-left:58px;
    }


    .reader-history-top{
        display:block;
    }


    .reader-history-top time{
        display:block;

        margin-top:5px;
    }

}

/* =========================================================
   READING JOURNEY PERIOD FILTER
========================================================= */

.reader-journey-toolbar{
    display:flex;
    justify-content:flex-end;

    margin:
        -8px 0
        18px;
}


.reader-journey-ranges{
    display:inline-flex;

    gap:4px;

    padding:4px;

    border-radius:999px;

    background:
        rgba(255,255,255,.07);

    border:
        1px solid
        rgba(255,255,255,.08);
}


.reader-journey-ranges button{
    min-height:32px;

    padding:
        0 12px;

    border:0;
    border-radius:999px;

    background:transparent;
    color:#cdbce0;

    font-family:Inter,sans-serif;
    font-size:9px;
    font-weight:900;

    cursor:pointer;

    transition:
        background .16s ease,
        color .16s ease;
}


.reader-journey-ranges button:hover{
    color:white;
}


.reader-journey-ranges button.active{
    background:#ff4fa0;
    color:white;

    box-shadow:
        0 7px 18px
        rgba(255,79,160,.2);
}


/* PERIOD SUMMARY */

.reader-journey-period-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:18px;

    margin-top:16px;
    padding-top:15px;

    border-top:
        1px solid
        rgba(255,255,255,.09);
}


.reader-journey-period-summary span{
    color:#ad96c7;

    font-size:9px;
    font-weight:900;

    letter-spacing:.07em;
    text-transform:uppercase;
}


.reader-journey-period-summary strong{
    color:#f4eaff;

    font-size:11px;
    font-weight:900;
}


@media (max-width:640px){

    .reader-journey-toolbar{
        justify-content:flex-start;

        margin-top:12px;
    }


    .reader-journey-period-summary{
        align-items:flex-start;
        flex-direction:column;

        gap:5px;
    }

}

/* =========================================================
   READING GOALS
========================================================= */

.reader-goals-section{
    margin-bottom:28px;
    padding:26px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius:28px;

    background:
        rgba(36,18,70,.78);

    box-shadow:
        0 20px 70px
        rgba(0,0,0,.18);
}


.reader-goal-create-button{
    min-height:38px;

    padding:0 15px;

    border:0;
    border-radius:999px;

    background:#ff4fa0;
    color:white;

    font-size:10px;
    font-weight:900;

    cursor:pointer;
}


.reader-goals-grid{
    display:grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap:14px;
}


.reader-goal-card{
    padding:20px;

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius:22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.085),
            rgba(255,255,255,.035)
        );
}


.reader-goal-card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;

    gap:16px;
}


.reader-goal-card-top span{
    color:#cfa9ff;

    font-size:8px;
    font-weight:900;

    letter-spacing:.08em;
    text-transform:uppercase;
}


.reader-goal-card-top h3{
    margin-top:4px;

    color:white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:22px;
}


.reader-goal-card-top > strong{
    color:#ff86bd;

    font-size:22px;
}


.reader-goal-progress{
    height:8px;

    margin-top:18px;

    overflow:hidden;

    border-radius:999px;

    background:
        rgba(255,255,255,.08);
}


.reader-goal-progress span{
    display:block;

    height:100%;

    border-radius:inherit;

    background:
        linear-gradient(
            90deg,
            #ff4fa0,
            #bd63ff
        );
}


.reader-goal-values{
    display:flex;
    align-items:baseline;

    gap:5px;

    margin-top:11px;
}


.reader-goal-values strong{
    color:white;

    font-size:18px;
}


.reader-goal-values span{
    color:#ad9bbc;

    font-size:10px;
}


.reader-goal-footer{
    display:flex;
    align-items:center;
    flex-wrap:wrap;

    gap:8px;

    margin-top:17px;
    padding-top:13px;

    border-top:
        1px solid
        rgba(255,255,255,.08);
}


.reader-goal-footer small{
    margin-right:auto;

    color:#ad9bbc;

    font-size:9px;
}


.reader-goal-recurring{
    display:inline-flex;
    align-items:center;

    gap:4px;

    color:#d9c5ef;

    font-size:8px;
    font-weight:800;
}


.reader-goal-recurring svg{
    width:11px;
    height:11px;
}


.reader-goal-footer button{
    border:0;

    background:transparent;
    color:#cfb9e6;

    font-size:8px;
    font-weight:900;

    cursor:pointer;
}


/* =========================================================
   READING GOAL MODAL
========================================================= */

.reader-goal-overlay{
    position:fixed;
    inset:0;

    z-index:900;

    display:none;
    align-items:center;
    justify-content:center;

    padding:24px;

    background:
        rgba(8,3,22,.78);

    backdrop-filter:
        blur(12px);
}


.reader-goal-overlay.open{
    display:flex;
}


.reader-goal-modal{
    width:min(620px,100%);
    max-height:calc(100vh - 48px);

    display:flex;
    flex-direction:column;

    overflow:hidden;

    border:
        1px solid
        rgba(255,255,255,.15);

    border-radius:28px;

    background:#fbfaff;
    color:#171224;

    box-shadow:
        0 35px 120px
        rgba(0,0,0,.5);
}


.reader-goal-modal-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;

    padding:24px 26px;

    background:
        linear-gradient(
            135deg,
            #32175d,
            #241246
        );

    color:white;
}


.reader-goal-modal-header span{
    color:#cfa9ff;

    font-size:9px;
    font-weight:900;

    letter-spacing:.08em;
    text-transform:uppercase;
}


.reader-goal-modal-header h2{
    margin-top:5px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:31px;
}


.reader-goal-modal-header button{
    width:38px;
    height:38px;

    border:0;
    border-radius:50%;

    background:
        rgba(255,255,255,.1);

    color:white;

    font-size:24px;

    cursor:pointer;
}


.reader-goal-modal-body{
    display:grid;
    gap:20px;

    padding:26px;

    overflow-y:auto;
}


.reader-goal-field{
    display:grid;
    gap:8px;
}


.reader-goal-field > span{
    color:#5e2a7e;

    font-size:10px;
    font-weight:900;

    letter-spacing:.07em;
    text-transform:uppercase;
}


.reader-goal-field input,
.reader-goal-field select{
    min-height:48px;

    padding:0 14px;

    border:
        1px solid
        #e4d3f7;

    border-radius:15px;

    background:white;
    color:#171224;

    font:inherit;
}


.reader-goal-custom-dates{
    display:grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap:12px;
}


.reader-goal-custom-dates[hidden]{
    display:none;
}


.reader-goal-check{
    display:flex;
    align-items:center;

    gap:10px;

    color:#43255e;

    font-size:12px;
    font-weight:800;
}


.reader-goal-check input{
    width:17px;
    height:17px;

    accent-color:#ff4fa0;
}


.reader-goal-modal-footer{
    display:flex;
    justify-content:flex-end;

    gap:10px;

    padding:18px 26px;

    border-top:
        1px solid
        #eadcff;

    background:white;
}


.reader-goal-modal-footer button{
    min-height:42px;

    padding:0 17px;

    border:0;
    border-radius:999px;

    font-size:10px;
    font-weight:900;

    cursor:pointer;
}


#cancelReadingGoal{
    background:#eee5f7;
    color:#5e2a7e;
}


#saveReadingGoal{
    background:#ff4fa0;
    color:white;
}


@media (max-width:700px){

    .reader-goals-grid{
        grid-template-columns:1fr;
    }


    .reader-goal-custom-dates{
        grid-template-columns:1fr;
    }

}

/* =========================================================
   COMPLETED READING GOAL
========================================================= */

.reader-goal-card.completed{
    border-color:
        rgba(255,79,160,.38);

    background:
        linear-gradient(
            145deg,
            rgba(255,79,160,.12),
            rgba(157,92,255,.08)
        );
}


.reader-goal-card.completed
.reader-goal-progress span{
    width:100% !important;
}


.reader-goal-complete-badge{
    min-height:30px;

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

    gap:5px;

    padding:0 10px;

    border-radius:999px;

    background:#ff4fa0;
    color:white;

    font-size:8px;
    font-weight:900;

    white-space:nowrap;
}


.reader-goal-complete-badge svg{
    width:11px;
    height:11px;
}

/* =========================================================
   READING GOAL HEADER ACTIONS
========================================================= */

.reader-goal-header-actions{
    display:flex;
    align-items:center;
    gap:10px;
}


.reader-goal-history-button{
    min-height:34px;

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

    gap:6px;

    padding:0 13px;

    border:1px solid rgba(255,255,255,.16);
    border-radius:999px;

    background:rgba(255,255,255,.07);
    color:#fff;

    font-size:10px;
    font-weight:800;

    cursor:pointer;
}


.reader-goal-history-button:hover{
    background:rgba(255,255,255,.12);
}


.reader-goal-history-button svg{
    width:13px;
    height:13px;
}


/* =========================================================
   GOAL HISTORY MODAL
========================================================= */

.reader-goal-history-modal{
    width:min(760px,calc(100vw - 32px));
    max-height:min(780px,calc(100vh - 60px));
}


.reader-goal-history-body{
    padding:24px;

    overflow-y:auto;

    background:#fbf9ff;
}


.reader-goal-history-summary{
    margin-bottom:14px;

    color:#72558f;

    font-size:11px;
    font-weight:800;
}


.reader-goal-history-list{
    display:grid;
    gap:12px;
}


/* =========================================================
   HISTORY ITEM
========================================================= */

.reader-goal-history-item{
    padding:18px;

    border:1px solid #eadcf8;
    border-radius:18px;

    background:#fff;
}


.reader-goal-history-item.completed{
    border-color:rgba(255,79,160,.28);
}


.reader-goal-history-item-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;

    gap:16px;
}


.reader-goal-history-period{
    display:block;

    margin-bottom:4px;

    color:#9a6eb8;

    font-size:9px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}


.reader-goal-history-item h3{
    margin:0;

    color:#2b153f;

    font-family:Georgia,serif;
    font-size:19px;
    line-height:1.15;
}


/* =========================================================
   STATUS
========================================================= */

.reader-goal-history-status{
    flex:none;

    min-height:28px;

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

    gap:5px;

    padding:0 9px;

    border-radius:999px;

    font-size:9px;
    font-weight:900;
}


.reader-goal-history-status.completed{
    background:#ff4fa0;
    color:#fff;
}


.reader-goal-history-status.archived{
    background:#eee6f5;
    color:#67417e;
}


.reader-goal-history-status svg{
    width:11px;
    height:11px;
}


/* =========================================================
   HISTORY PROGRESS
========================================================= */

.reader-goal-history-progress{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;

    gap:12px;

    margin-top:16px;
}


.reader-goal-history-progress > div{
    height:7px;

    overflow:hidden;

    border-radius:999px;

    background:#eee5f7;
}


.reader-goal-history-progress > div span{
    display:block;

    height:100%;

    border-radius:inherit;

    background:#ff4fa0;
}


.reader-goal-history-progress strong{
    color:#6b3e87;

    font-size:11px;
}


.reader-goal-history-values{
    display:flex;
    align-items:baseline;

    gap:5px;

    margin-top:8px;

    color:#7b648d;

    font-size:10px;
}


.reader-goal-history-values strong{
    color:#2b153f;

    font-size:13px;
}


/* =========================================================
   HISTORY FOOTER
========================================================= */

.reader-goal-history-footer{
    display:flex;
    flex-wrap:wrap;

    gap:12px;

    margin-top:14px;
    padding-top:12px;

    border-top:1px solid #eee4f7;

    color:#876f98;

    font-size:9px;
    font-weight:700;
}


.reader-goal-history-footer span{
    display:inline-flex;
    align-items:center;

    gap:5px;
}


.reader-goal-history-footer svg{
    width:11px;
    height:11px;
}


.reader-goal-history-done{
    min-height:40px;

    padding:0 20px;

    border:0;
    border-radius:999px;

    background:#ff4fa0;
    color:#fff;

    font-weight:800;

    cursor:pointer;
}


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

@media (max-width:700px){

    .reader-goal-header-actions{
        width:100%;

        justify-content:flex-start;
        flex-wrap:wrap;
    }


    .reader-goal-history-modal{
        width:calc(100vw - 20px);
    }


    .reader-goal-history-item-top{
        flex-direction:column;
    }

}

/* =========================================================
   EDIT PROFILE BUTTON
========================================================= */

.reader-profile-edit-button{
    min-height:38px;

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

    gap:7px;

    padding:0 14px;

    border:1px solid rgba(255,255,255,.16);
    border-radius:999px;

    background:rgba(255,255,255,.08);
    color:#fff;

    font:inherit;
    font-size:11px;
    font-weight:800;

    cursor:pointer;
}

.reader-profile-edit-button:hover{
    background:rgba(255,255,255,.13);
}

.reader-profile-edit-button svg{
    width:13px;
    height:13px;
}


/* =========================================================
   EDIT PROFILE MODAL
========================================================= */

.reader-profile-edit-overlay{
    position:fixed;
    inset:0;
    z-index:950;

    display:none;
    align-items:center;
    justify-content:center;

    padding:24px;

    background:rgba(15,4,31,.78);
    backdrop-filter:blur(10px);
}

.reader-profile-edit-overlay.open{
    display:flex;
}


.reader-profile-edit-modal{
    width:min(640px,100%);
    max-height:calc(100vh - 48px);

    display:flex;
    flex-direction:column;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.28);
    border-radius:28px;

    background:#fbf9ff;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.34);
}


.reader-profile-edit-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;

    gap:20px;

    padding:28px;

    background:#35145f;
    color:#fff;
}


.reader-profile-edit-header span{
    color:#d8b9ff;

    font-size:10px;
    font-weight:900;

    letter-spacing:.08em;
}


.reader-profile-edit-header h2{
    margin:5px 0 2px;

    font-family:Georgia,serif;
    font-size:32px;
}


.reader-profile-edit-header p{
    margin:0;

    color:#ddd0eb;
    font-size:12px;
}


.reader-profile-edit-header > button{
    width:40px;
    height:40px;

    display:grid;
    place-items:center;

    flex:none;

    border:0;
    border-radius:50%;

    background:rgba(255,255,255,.12);
    color:#fff;

    cursor:pointer;
}


.reader-profile-edit-body{
    flex:1 1 auto;
    min-height:0;

    display:grid;
    gap:20px;

    padding:28px;

    overflow-y:auto;
    overscroll-behavior:contain;
}


.reader-profile-edit-field{
    display:grid;
    gap:8px;
}


.reader-profile-edit-field > span{
    color:#65358d;

    font-size:10px;
    font-weight:900;

    letter-spacing:.04em;
    text-transform:uppercase;
}


.reader-profile-edit-field input,
.reader-profile-edit-field textarea{
    width:100%;

    padding:14px 16px;

    border:1px solid #dfcdf3;
    border-radius:16px;

    background:#fff;
    color:#20102e;

    font:inherit;

    outline:none;
}


.reader-profile-edit-field textarea{
    resize:vertical;
    min-height:120px;
}


.reader-profile-edit-field input:focus,
.reader-profile-edit-field textarea:focus{
    border-color:#ff4fa0;

    box-shadow:
        0 0 0 3px
        rgba(255,79,160,.08);
}


.reader-profile-edit-field small{
    color:#8b719d;

    font-size:10px;
}


.reader-profile-handle-input{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;

    border:1px solid #dfcdf3;
    border-radius:16px;

    background:#fff;

    overflow:hidden;
}


.reader-profile-handle-input > span{
    padding-left:16px;

    color:#8d71a2;
    font-weight:800;
}


.reader-profile-handle-input input{
    border:0;
    border-radius:0;

    padding-left:4px;
}


.reader-profile-edit-footer{
    flex:0 0 auto;

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

    gap:10px;

    padding:18px 28px;

    border-top:1px solid #eadcf7;

    background:#fff;

    position:sticky;
    bottom:0;
    z-index:2;
}


.reader-profile-edit-cancel,
.reader-profile-edit-save{
    min-height:42px;

    padding:0 20px;

    border:0;
    border-radius:999px;

    font-weight:800;

    cursor:pointer;
}


.reader-profile-edit-cancel{
    background:#eee5f7;
    color:#633d7e;
}


.reader-profile-edit-save{
    background:#ff4fa0;
    color:#fff;
}


@media (max-width:700px){

    .reader-profile-edit-overlay{
        padding:12px;
    }


    .reader-profile-edit-header,
    .reader-profile-edit-body{
        padding:22px;
    }


    .reader-profile-edit-footer{
        padding:16px 22px;
    }

}
/* =========================================================
   EDIT PROFILE — AVATAR + BANNER
========================================================= */

.reader-profile-edit-media-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-bottom:18px;
}

.reader-profile-edit-media-card{
    padding:14px;
    border:1px solid #e2d5eb;
    border-radius:18px;
    background:#f9f5fc;
}

.reader-profile-edit-media-card > span{
    display:block;
    margin-bottom:9px;
    color:#704e84;
    font-size:10px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.reader-profile-edit-avatar-preview{
    width:104px;
    height:104px;
    overflow:hidden;
    border-radius:24px;
    background:linear-gradient(135deg,#46266a,#24113f);
}

.reader-profile-edit-banner-preview{
    width:100%;
    height:104px;
    overflow:hidden;
    border-radius:16px;
    background:linear-gradient(135deg,#46266a,#24113f);
}

.reader-profile-edit-avatar-preview img,
.reader-profile-edit-banner-preview img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.reader-profile-edit-image-empty{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#d8c8ef;
    font-size:11px;
    font-weight:800;
}

.reader-profile-edit-media-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.reader-profile-edit-media-actions button{
    min-height:36px;
    padding:0 12px;
    border:0;
    border-radius:999px;
    background:#ff4fa0;
    color:white;
    font:inherit;
    font-size:10px;
    font-weight:900;
    cursor:pointer;
}

.reader-profile-edit-media-actions button:last-child{
    background:#eee5f5;
    color:#674378;
}

@media(max-width:700px){
    .reader-profile-edit-media-grid{ grid-template-columns:1fr; }
}


/* =========================================================
   VERIFIED RECCER BADGE
========================================================= */

.reader-kicker-row .reader-verification-badge {
    gap: 5px;
    background: linear-gradient(135deg, #ff4fa0, #9d5de8);
    color: white;
    box-shadow: 0 7px 18px rgba(255,79,160,.22);
}

.reader-kicker-row .reader-verification-badge svg {
    width: 13px;
    height: 13px;
}

.reader-profile-edit-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:10px;
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid rgba(91,42,132,.12);
}

.reader-profile-edit-cancel,
.reader-profile-edit-save{
    border:0;
    border-radius:999px;
    padding:10px 18px;
    font-family:Inter,sans-serif;
    font-size:12px;
    font-weight:900;
    cursor:pointer;
}

.reader-profile-edit-cancel{
    background:#eee8f4;
    color:#5a3c70;
}

.reader-profile-edit-save{
    background:#ff4fa0;
    color:#fff;
}

.reader-profile-edit-save:hover{
    filter:brightness(1.06);
}

.reader-profile-edit-save:disabled{
    opacity:.6;
    cursor:wait;
}

/* =========================================================
   ABFL RESPONSIVE PROFILE / NAV RECOMPOSITION — BETA FIX
   Appended 2026-11-12
========================================================= */

/* Prevent long profile content from forcing horizontal overflow. */
.reader-profile-shell,
.reader-hero,
.reader-identity-card,
.reader-identity-main,
.reader-personality-card,
.reader-profile-layout,
.reader-profile-main,
.reader-profile-sidebar {
    min-width: 0;
}

.reader-identity-main h1,
.reader-handle,
.reader-bio,
.reader-personality-card strong,
.reader-personality-card p,
.reader-detail-list dd {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* -------------------------
   WIDE DESKTOP / SMALL LAPTOP
------------------------- */

@media (max-width: 1280px) {

    .profile-header-nav {
        gap: 20px;
        padding-left: 26px;
        padding-right: 26px;
    }

    .profile-brand strong {
        font-size: 23px;
    }

    .profile-brand small {
        font-size: 10px;
    }

    .profile-main-nav {
        gap: 18px;
    }

    .profile-main-nav a {
        font-size: 13px;
    }

    .profile-add-link {
        min-height: 40px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .profile-auth {
        gap: 10px;
    }

    .reader-identity-card {
        grid-template-columns:
            145px
            minmax(0, 1fr)
            minmax(240px, 280px);

        gap: 22px;
        padding-left: 28px;
        padding-right: 28px;
    }

    .reader-avatar-wrap {
        width: 132px;
        height: 132px;
    }

    .reader-identity-main h1 {
        font-size: clamp(48px, 5vw, 64px);
    }

    .reader-personality-card {
        padding: 18px;
    }

    .reader-personality-card strong {
        font-size: 25px;
    }
}


/* -------------------------
   TABLET / COMPACT DESKTOP
------------------------- */

@media (max-width: 1040px) {

    .profile-header-nav {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        grid-template-areas:
            "brand auth"
            "nav nav";

        gap:
            12px
            18px;

        min-height: auto;

        padding:
            14px
            20px
            12px;
    }

    .profile-brand {
        grid-area: brand;
        min-width: 0;
    }

    .profile-main-nav {
        grid-area: nav;

        justify-content: flex-start;

        gap: 10px;

        overflow-x: auto;
        overscroll-behavior-inline: contain;

        padding:
            4px
            0
            2px;

        scrollbar-width: none;
    }

    .profile-main-nav::-webkit-scrollbar {
        display: none;
    }

    .profile-main-nav a {
        flex: 0 0 auto;
        white-space: nowrap;

        font-size: 12px;
    }

    .profile-add-link {
        min-height: 36px;
        padding:
            0
            13px;
    }

    .profile-auth {
        grid-area: auth;

        min-width: 0;

        justify-content: flex-end;
    }

    .reader-profile-shell {
        padding-top: 36px;
    }

    .reader-banner {
        height: 225px;
    }

    .reader-identity-card {
        grid-template-columns:
            126px
            minmax(0, 1fr);

        align-items: start;

        gap:
            0
            22px;

        padding:
            0
            26px
            28px;
    }

    .reader-avatar-wrap {
        width: 118px;
        height: 118px;

        transform: translateY(-34px);

        border-radius: 28px;
    }

    .reader-avatar-wrap img,
    .reader-avatar-fallback {
        border-radius: 22px;
    }

    .reader-identity-main {
        min-width: 0;

        padding-top: 22px;
    }

    .reader-identity-main h1 {
        font-size: clamp(42px, 6vw, 58px);
        line-height: .96;
    }

    .reader-handle {
        font-size: 15px;
    }

    .reader-bio {
        font-size: 14px;
    }

    .reader-personality-card {
        grid-column: 1 / -1;

        margin-top: 10px;

        display: grid;

        grid-template-columns:
            minmax(0, .8fr)
            minmax(0, 1.2fr);

        column-gap: 22px;
    }

    .reader-personality-card > span,
    .reader-personality-card > strong {
        grid-column: 1;
    }

    .reader-personality-card > p,
    .reader-personality-traits,
    .reader-personality-confidence {
        grid-column: 2;
    }

    .reader-personality-card > p {
        margin-top: 0;
    }
}


/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 700px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .profile-header-nav {
        position: sticky;

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

        grid-template-areas:
            "brand auth"
            "nav nav";

        gap:
            10px
            12px;

        padding:
            11px
            14px
            10px;
    }

    .profile-brand {
        gap: 9px;
    }

    .profile-brand-dot {
        width: 13px;
        height: 13px;
    }

    .profile-brand strong {
        font-size:
            clamp(
                17px,
                5vw,
                20px
            );

        letter-spacing: -.035em;
    }

    .profile-brand small {
        font-size: 8px;
    }

    .profile-main-nav {
        width: calc(100vw - 28px);

        gap: 7px;

        margin-left: 0;
        margin-right: 0;

        padding:
            3px
            0
            1px;
    }

    .profile-main-nav a {
        min-height: 32px;

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

        padding:
            0
            8px;

        border-radius: 999px;

        font-size: 10px;
    }

    .profile-add-link {
        min-height: 32px;

        padding:
            0
            10px;
    }

    .reader-profile-shell {
        padding:
            24px
            14px
            80px;
    }

    .reader-banner {
        height:
            clamp(
                145px,
                42vw,
                180px
            );

        border-radius:
            24px
            24px
            0
            0;
    }

    .reader-banner::after {
        right: 18px;
        bottom: 16px;

        font-size: 18px;
    }

    .reader-identity-card {
        display: grid;

        grid-template-columns: 1fr;

        gap: 0;

        padding:
            0
            18px
            22px;

        border-radius:
            0
            0
            24px
            24px;
    }

    .reader-avatar-wrap {
        width: 96px;
        height: 96px;

        margin-bottom: -20px;

        transform: translateY(-30px);

        padding: 5px;

        border-radius: 24px;
    }

    .reader-avatar-wrap img,
    .reader-avatar-fallback {
        inset: 5px;

        width: calc(100% - 10px);
        height: calc(100% - 10px);

        border-radius: 19px;
    }

    .reader-avatar-fallback {
        font-size: 27px;
    }

    .reader-identity-main {
        width: 100%;

        padding-top: 0;
    }

    .reader-kicker-row {
        gap: 6px;

        margin-bottom: 11px;
    }

    .reader-kicker-row span {
        min-height: 24px;

        padding:
            0
            8px;

        font-size: 8px;
    }

    .reader-identity-main h1 {
        max-width: 100%;

        font-size:
            clamp(
                34px,
                11vw,
                48px
            );

        line-height: .98;
        letter-spacing: -.045em;
    }

    .reader-handle {
        margin-top: 7px;

        font-size: 13px;
        line-height: 1.35;
    }

    .reader-bio {
        margin-top: 11px;

        font-size: 13px;
        line-height: 1.55;
    }

    .reader-profile-actions {
        width: 100%;

        gap: 8px;

        margin-top: 17px;
    }

    .reader-profile-actions a,
    .reader-profile-edit-button {
        min-height: 38px;

        flex: 1 1 auto;

        padding:
            0
            11px;

        font-size: 10px;
    }

    .reader-personality-card {
        grid-column: auto;

        margin-top: 20px;

        display: block;

        padding: 17px;

        border-radius: 19px;
    }

    .reader-personality-card strong {
        font-size: 23px;
        line-height: 1.05;
    }

    .reader-personality-card p {
        margin-top: 8px;

        font-size: 12px;
    }

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

        gap: 10px;
    }

    .reader-stat-card {
        min-width: 0;

        padding: 16px;

        border-radius: 20px;
    }

    .reader-stat-card span {
        width: 38px;
        height: 38px;

        margin-bottom: 12px;
    }

    .reader-stat-card strong {
        font-size: 32px;
    }

    .reader-stat-card p {
        font-size: 11px;
    }

    .reader-section-card,
    .reader-journey-section,
    .reader-goals-section,
    .reader-milestones-section,
    .reader-history-section,
    .reader-preferences-section {
        padding: 19px;

        border-radius: 23px;
    }

    .reader-section-heading h2,
    .reader-sidebar-card h2 {
        font-size: 28px;
    }

    .reader-section-heading p {
        font-size: 12px;
    }

    .reader-section-heading {
        gap: 12px;
    }

    .reader-profile-layout {
        gap: 18px;
    }

    .reader-profile-sidebar {
        gap: 14px;
    }

    .reader-sidebar-card {
        padding: 19px;

        border-radius: 23px;
    }
}


/* -------------------------
   SMALL PHONES
------------------------- */

@media (max-width: 430px) {

    .profile-header-nav {
        padding-left: 11px;
        padding-right: 11px;
    }

    .profile-main-nav {
        width: calc(100vw - 22px);
    }

    .profile-main-nav a {
        font-size: 9px;

        padding-left: 7px;
        padding-right: 7px;
    }

    .reader-profile-shell {
        padding-left: 11px;
        padding-right: 11px;
    }

    .reader-identity-card {
        padding-left: 15px;
        padding-right: 15px;
    }

    .reader-profile-actions {
        display: grid;

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

    .reader-profile-actions > * {
        width: 100%;
    }

    .reader-profile-actions > :last-child {
        grid-column:
            1 / -1;
    }

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

