/* ============================================================
   NOVEL ARCHIVE — USER DASHBOARD
   Premium Editorial Reading Space
   ============================================================ */

:root {
    --burgundy: #711d3c;
    --burgundy-dark: #431022;
    --burgundy-deep: #2b0b18;
    --burgundy-soft: #f3e5e9;
    --ivory: #f7f0e5;
    --paper: #fffdf9;
    --paper-soft: #f1e8dc;
    --charcoal: #292525;
    --muted: #766d67;
    --muted-light: #a49a92;
    --gold: #b18a52;
    --gold-light: #d2b47c;
    --border: #ddd2c4;
    --border-light: #eee6db;
    --white: #ffffff;

    --sidebar-bg: #292525;
    --sidebar-text: #ffffff;
    --sidebar-text-soft: #c5bdb8;
    --sidebar-text-muted: #8f8782;
    --sidebar-border: rgba(255, 255, 255, 0.10);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
    --sidebar-active-bg: #6f1d3a;
    --sidebar-active-border: #b18a52;

    --shadow-small:
        0 7px 24px rgba(67, 16, 34, 0.06);

    --shadow:
        0 15px 40px rgba(67, 16, 34, 0.09);

    --shadow-large:
        0 25px 60px rgba(67, 16, 34, 0.15);
}


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

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--ivory);
    color: var(--charcoal);
    font-family: "Inter", sans-serif;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}


/* ============================================================
   LAYOUT
   ============================================================ */

.user-layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(177, 138, 82, 0.09),
            transparent 25%
        ),
        var(--ivory);
}


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

.user-sidebar {
    width: 265px;
    min-width: 265px;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 18px;
    position: relative;
    overflow: hidden;

    background: var(--sidebar-bg);

    color: var(--sidebar-text);

    box-shadow:
        10px 0 35px rgba(37, 9, 20, 0.12);

    z-index: 10;
}

.user-sidebar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;

    background:
        linear-gradient(
            to bottom,
            var(--gold),
            transparent 45%,
            var(--gold)
        );

    opacity: 0.7;
}

.user-sidebar::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -160px;
    bottom: -100px;

    border:
        1px solid rgba(177, 138, 82, 0.15);

    border-radius: 50%;
}


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

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 10px 25px;

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

.brand-symbol {
    width: 45px;
    height: 45px;
    flex-shrink: 0;

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

    border:
        1px solid rgba(210, 180, 125, 0.75);

    color: var(--gold-light);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-text h2 {
    margin: 0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 25px;
    font-weight: 600;
    line-height: 1;
}

.brand-text p {
    margin: 5px 0 0;

    color: #9d928d;

    font-size: 8px;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}


/* ============================================================
   SIDEBAR LABEL
   ============================================================ */

.sidebar-label {
    margin: 27px 12px 9px;

    color: #8f8580;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.account-label {
    margin-top: 29px;
}


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

.user-navigation {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.navigation-link {
    min-height: 45px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 13px;

    border-left:
        3px solid transparent;

    color: var(--sidebar-text-soft);
    text-decoration: none;

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

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        padding-left 0.25s ease;
}

.navigation-link:hover {
    padding-left: 18px;

    background: var(--sidebar-hover-bg);

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

.navigation-link.active {
    padding-left: 18px;

    border-left-color: var(--sidebar-active-border);

    background: var(--sidebar-active-bg);

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

.nav-icon {
    width: 17px;

    color: currentColor;

    font-size: 15px;
    text-align: center;
}


/* ============================================================
   SIDEBAR USER
   ============================================================ */

.sidebar-bottom {
    position: relative;
    z-index: 2;
}

.sidebar-user {
    display: flex;
    max-height: 100vh;
    align-items: center;
    gap: 10px;

    padding: 17px 7px;

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

.sidebar-avatar {
    width: 39px;
    height: 39px;
    flex-shrink: 0;

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

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
        );

    color: var(--burgundy-dark);

    font-family:
        "Cormorant Garamond",
        serif;

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

.sidebar-user-info {
    min-width: 0;
}

.sidebar-user-name {
    margin: 0;

    overflow: hidden;

    color: white;

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

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role {
    margin: 3px 0 0;

    color: #918681;

    font-size: 8px;
}


/* ============================================================
   LOGOUT
   ============================================================ */

.logout-button {
    width: 100%;
    min-height: 40px;

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

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

    background:
        rgba(255, 255, 255, 0.025);

    color: #c7bfbb;

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

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.logout-button:hover {
    border-color:
        rgba(177, 138, 82, 0.65);

    background:
        rgba(177, 138, 82, 0.10);

    color: white;
}


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

.user-main {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow-y: auto;
}


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

.dashboard-hero {
    min-height: 315px;

    position: relative;

    display: flex;
    justify-content: space-between;

    overflow: hidden;

    padding: 52px 58px 45px;

    border-bottom:
        1px solid var(--border);

    background:
        linear-gradient(
            115deg,
            #fffdf9 0%,
            #fbf5ec 57%,
            #eee1d1 100%
        );
}

.hero-content {
    position: relative;
    z-index: 3;

    max-width: 680px;
}

.hero-kicker {
    margin-bottom: 12px;

    color: var(--gold);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    margin: 0;

    color: var(--burgundy-dark);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 55px;
    font-weight: 600;
    line-height: 0.95;
}

.dashboard-hero p {
    max-width: 610px;

    margin: 15px 0 0;

    color: var(--muted);

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


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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 23px;
}

.primary-action,
.secondary-action {
    min-height: 42px;

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

    padding: 0 18px;

    text-decoration: none;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.primary-action {
    background: var(--burgundy);
    color: white;
}

.primary-action:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
}

.secondary-action {
    border:
        1px solid var(--border);

    background:
        rgba(255,255,255,0.45);

    color: var(--burgundy-dark);
}

.secondary-action:hover {
    border-color: var(--gold);
    background: white;
}


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

.hero-art {
    width: 350px;

    position: relative;

    flex-shrink: 0;
}

.hero-circle {
    position: absolute;

    border:
        1px solid rgba(177, 138, 82, 0.20);

    border-radius: 50%;
}

.hero-circle-one {
    width: 330px;
    height: 330px;

    right: -90px;
    top: -80px;
}

.hero-circle-two {
    width: 230px;
    height: 230px;

    right: -20px;
    top: -30px;

    border-color:
        rgba(113, 29, 60, 0.10);
}


/* ============================================================
   BOOK ILLUSTRATION
   ============================================================ */

.hero-book {
    position: absolute;

    width: 135px;
    height: 175px;

    right: 125px;
    top: 50px;

    transform:
        rotate(-8deg);

    filter:
        drop-shadow(
            12px 18px 18px rgba(69, 17, 37, 0.18)
        );
}

.book-cover {
    width: 112px;
    height: 160px;

    position: absolute;
    left: 0;
    top: 0;

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

    border:
        1px solid #8b6471;

    background:
        linear-gradient(
            145deg,
            #6c1b3a,
            #3b0d20
        );

    color: var(--gold-light);
}

.book-cover::before {
    content: "";

    position: absolute;

    inset: 8px;

    border:
        1px solid rgba(210, 180, 125, 0.42);
}

.book-cover span {
    position: relative;

    font-family:
        "Cormorant Garamond",
        serif;

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

.book-cover small {
    position: relative;

    margin-top: 8px;

    font-size: 6px;
    line-height: 1.5;
    letter-spacing: 1px;
    text-align: center;
}

.book-page {
    width: 25px;
    height: 157px;

    position: absolute;

    right: 0;
    top: 3px;

    background:
        linear-gradient(
            90deg,
            #e8dfd3,
            #fffdf8
        );

    border:
        1px solid #d3c5b5;
}


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

.hero-note {
    position: absolute;

    right: 35px;
    bottom: 42px;

    color: var(--burgundy);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 20px;
    font-weight: 600;
    line-height: 0.9;
    text-align: right;

    opacity: 0.72;
}

.hero-note span {
    display: block;

    margin-bottom: 4px;

    color: var(--gold);

    font-family:
        "Inter",
        sans-serif;

    font-size: 7px;
    letter-spacing: 2px;
}


/* ============================================================
   CONTENT
   ============================================================ */

.dashboard-content {
    width: 100%;
    max-width: 1480px;

    margin: 0 auto;

    padding: 38px 58px 60px;
}


/* ============================================================
   SEARCH SECTION
   ============================================================ */

.search-section {
    display: grid;

    grid-template-columns:
        0.55fr 1.45fr;

    align-items: end;

    gap: 35px;

    margin-bottom: 30px;
}

.search-heading span {
    color: var(--gold);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.search-heading h2 {
    margin: 6px 0 0;

    color: var(--burgundy-dark);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 29px;
    font-weight: 600;
}


/* ============================================================
   SEARCH BOX
   ============================================================ */

.dashboard-search {
    position: relative;
}

.search-icon {
    position: absolute;

    left: 17px;
    top: 50%;

    transform:
        translateY(-50%);

    color: var(--gold);

    font-size: 22px;

    z-index: 2;
}

.dashboard-search input {
    width: 100%;
    height: 53px;

    padding:
        0 18px 0 47px;

    border:
        1px solid var(--border);

    outline: none;

    background: var(--paper);
    color: var(--charcoal);

    font-size: 10px;

    box-shadow:
        var(--shadow-small);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.dashboard-search input::placeholder {
    color: #a09891;
}

.dashboard-search input:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 4px rgba(177, 138, 82, 0.08),
        var(--shadow-small);
}


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

.dashboard-stats {
    display: grid;

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

    gap: 15px;

    margin-bottom: 45px;
}

.stat-card {
    min-height: 132px;

    position: relative;

    padding: 20px 21px;

    overflow: hidden;

    border:
        1px solid var(--border);

    background: var(--paper);

    box-shadow:
        var(--shadow-small);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.stat-card::after {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    right: -44px;
    bottom: -45px;

    border:
        1px solid rgba(177, 138, 82, 0.18);

    border-radius: 50%;
}

.stat-card:hover {
    transform: translateY(-5px);

    border-color: #d1c1b1;

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

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 34px;
    height: 34px;

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

    border:
        1px solid var(--border);

    color: var(--gold);

    font-size: 15px;
}


/* ============================================================
   STAT NUMBER — UPDATED
   ============================================================ */

.stat-number {
    color: var(--burgundy-dark);

    /*
       Clean editorial numeral style.
       Georgia keeps the numbers classic and natural
       without the overly stylized AI-dashboard look.
    */
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 36px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: -0.5px;

    font-variant-numeric:
        oldstyle-nums proportional-nums;
}

.stat-info {
    margin-top: 14px;
}

.stat-info span {
    display: block;

    color: var(--charcoal);

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

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.stat-info small {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 8px;
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 8px;
}

.section-kicker {
    display: block;

    margin-bottom: 6px;

    color: var(--gold);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 0;

    color: var(--burgundy-dark);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 35px;
    font-weight: 600;

    line-height: 1;
}

.section-line {
    flex: 1;

    height: 1px;

    margin-bottom: 7px;

    background:
        linear-gradient(
            90deg,
            var(--border),
            transparent
        );
}

.section-description {
    margin: 0 0 20px;

    color: var(--muted);

    font-size: 9px;
}


/* ============================================================
   CONTINUE READING
   ============================================================ */

.journey-section {
    margin-bottom: 48px;
}

.continue-reading {
    min-height: 175px;

    position: relative;

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

    gap: 30px;

    padding: 30px 35px;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #3d0d20 0%,
            #631934 60%,
            #7b2647 100%
        );

    color: white;

    box-shadow:
        0 20px 45px rgba(67, 16, 34, 0.15);
}

.continue-reading::before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -115px;
    top: -135px;

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

    border-radius: 50%;
}

.continue-decoration {
    position: absolute;

    right: 125px;
    bottom: -56px;

    color: rgba(255,255,255,0.045);

    font-family:
        "Cormorant Garamond",
        serif;

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

.journey-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 18px;
}

.journey-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

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

    border:
        1px solid rgba(210,180,125,0.55);

    color: var(--gold-light);

    font-size: 21px;
}

.journey-label {
    color: var(--gold-light);

    font-size: 7px;
    font-weight: 700;
    letter-spacing: 2px;
}

.continue-reading h3 {
    margin: 6px 0 0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 29px;
    font-weight: 600;

    line-height: 1;
}

.continue-reading p {
    margin: 7px 0 0;

    color: rgba(255,255,255,0.66);

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

.journey-button {
    position: relative;
    z-index: 3;

    flex-shrink: 0;

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

    gap: 15px;

    padding: 12px 18px;

    border:
        1px solid var(--gold-light);

    color: white;

    text-decoration: none;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.7px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.journey-button:hover {
    background: var(--gold-light);
    color: var(--burgundy-dark);
}


/* ============================================================
   COLLECTION
   ============================================================ */

.collection-section {
    margin-top: 0;
}

.view-all {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--burgundy);

    text-decoration: none;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;

    transition:
        color 0.2s ease;
}

.view-all:hover {
    color: var(--gold);
}


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

.novel-grid {
    display: grid;

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

    gap: 18px;
}

.dashboard-novel-card {
    min-width: 0;

    overflow: hidden;

    border:
        1px solid var(--border);

    background: var(--paper);

    box-shadow:
        0 7px 23px rgba(69, 17, 37, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.dashboard-novel-card:hover {
    transform: translateY(-7px);

    border-color: #ccbbaa;

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

.dashboard-novel-cover {
    width: 100%;

    aspect-ratio: 2 / 3;

    display: block;

    object-fit: cover;

    background:
        linear-gradient(
            135deg,
            #e8ddd0,
            #d4c4b4
        );

    transition:
        transform 0.45s ease;
}

.dashboard-novel-card:hover
.dashboard-novel-cover {
    transform: scale(1.035);
}

.dashboard-novel-info {
    padding: 14px;
}

.dashboard-novel-title {
    min-height: 43px;

    margin: 0;

    overflow: hidden;

    color: var(--burgundy-dark);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.08;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboard-novel-author {
    margin: 5px 0 0;

    overflow: hidden;

    color: var(--muted);

    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-novel-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 4px;

    margin-top: 10px;
}

.dashboard-novel-meta span {
    padding: 4px 6px;

    background: var(--burgundy-soft);
    color: var(--burgundy);

    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.dashboard-read-button {
    width: 100%;

    margin-top: 11px;

    padding: 9px 7px;

    border:
        1px solid var(--burgundy);

    background: transparent;
    color: var(--burgundy);

    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.8px;

    text-transform: uppercase;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.dashboard-read-button:hover {
    background: var(--burgundy);
    color: white;
}


/* ============================================================
   LOADING
   ============================================================ */

.loading-state {
    grid-column: 1 / -1;

    min-height: 170px;

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

    border:
        1px dashed var(--border);

    background:
        rgba(255, 253, 249, 0.65);

    color: var(--muted);

    font-size: 10px;
}


/* ============================================================
   SEARCH RESULTS
   ============================================================ */

.search-results-section {
    margin-top: 48px;
}


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

.user-footer {
    min-height: 65px;

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

    padding: 0 58px;

    border-top:
        1px solid var(--border);

    background: var(--paper);

    color: var(--muted);
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 9px;
}

.footer-brand strong {
    color: var(--burgundy);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 15px;
}

.footer-brand span {
    font-size: 7px;
}

.footer-mark {
    color: var(--gold);

    font-family:
        "Cormorant Garamond",
        serif;

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


/* ============================================================
   1200px
   ============================================================ */

@media (max-width: 1200px) {

    .user-sidebar {
        width: 235px;
        min-width: 235px;
    }

    .dashboard-content {
        padding-left: 38px;
        padding-right: 38px;
    }

    .dashboard-hero {
        padding-left: 38px;
        padding-right: 38px;
    }

    .user-footer {
        padding-left: 38px;
        padding-right: 38px;
    }

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

    .hero-art {
        width: 300px;
    }
}


/* ============================================================
   1050px
   ============================================================ */

@media (max-width: 1050px) {

    .user-sidebar {
        width: 220px;
        min-width: 220px;
    }

    .dashboard-hero {
        padding: 35px 30px;
    }

    .dashboard-hero h1 {
        font-size: 46px;
    }

    .dashboard-content {
        padding: 30px;
    }

    .search-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

    .hero-art {
        width: 260px;
    }

    .hero-book {
        right: 85px;
    }
}


/* ============================================================
   820px
   ============================================================ */

@media (max-width: 820px) {

    .hero-art {
        display: none;
    }

    .dashboard-hero {
        min-height: auto;

        padding: 35px 25px;
    }

    .dashboard-hero h1 {
        font-size: 42px;
    }

    .dashboard-content {
        padding: 27px 25px 45px;
    }

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


/* ============================================================
   600px — MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .user-layout {
        display: block;
    }


    /* SIDEBAR BECOMES TOP BAR */

    .user-sidebar {
        width: 100%;
        min-width: 0;
        min-height: auto;

        display: block;

        padding: 13px 12px 11px;

        box-shadow:
            0 7px 25px rgba(39, 9, 19, 0.16);
    }

    .user-sidebar::before {
        width: 100%;
        height: 2px;

        top: 0;
        left: 0;
    }

    .sidebar-brand {
        padding:
            2px 3px 12px;
    }

    .brand-symbol {
        width: 35px;
        height: 35px;

        font-size: 15px;
    }

    .brand-text h2 {
        font-size: 21px;
    }

    .brand-text p {
        font-size: 6px;
    }

    .sidebar-label {
        display: none;
    }

    .user-navigation {
        flex-direction: row;

        gap: 3px;

        margin-top: 10px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .user-navigation::-webkit-scrollbar {
        display: none;
    }

    .navigation-link {
        min-height: 35px;

        flex-shrink: 0;

        gap: 5px;

        padding: 0 10px;

        border-left: 0;

        border-bottom:
            2px solid transparent;

        font-size: 8px;
    }

    .navigation-link:hover,
    .navigation-link.active {
        padding-left: 10px;

        border-left: 0;

        border-bottom-color:
            var(--gold);
    }

    .nav-icon {
        font-size: 12px;
    }

    .sidebar-bottom {
        display: flex;
        align-items: center;

        gap: 8px;

        margin-top: 9px;

        padding-top: 9px;

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

    .sidebar-user {
        flex: 1;

        min-width: 0;

        padding: 0;

        border: 0;
    }

    .sidebar-avatar {
        width: 29px;
        height: 29px;

        font-size: 15px;
    }

    .sidebar-user-name {
        font-size: 9px;
    }

    .sidebar-user-role {
        font-size: 7px;
    }

    .logout-button {
        width: auto;

        min-height: 32px;

        padding: 0 10px;

        font-size: 7px;
    }


    /* HERO */

    .dashboard-hero {
        padding:
            25px 16px 23px;
    }

    .hero-kicker {
        margin-bottom: 8px;

        font-size: 7px;
        letter-spacing: 1.9px;
    }

    .dashboard-hero h1 {
        font-size: 34px;
    }

    .dashboard-hero p {
        margin-top: 8px;

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

    .hero-actions {
        margin-top: 16px;
    }

    .primary-action,
    .secondary-action {
        min-height: 37px;

        padding: 0 12px;

        font-size: 7px;
    }


    /* CONTENT */

    .dashboard-content {
        padding:
            20px 13px 35px;
    }


    /* SEARCH */

    .search-section {
        gap: 11px;

        margin-bottom: 21px;
    }

    .search-heading span {
        font-size: 6px;
    }

    .search-heading h2 {
        margin-top: 4px;

        font-size: 25px;
    }

    .dashboard-search input {
        height: 44px;

        padding-left: 40px;

        font-size: 8px;
    }

    .search-icon {
        left: 13px;

        font-size: 18px;
    }


    /* STATS */

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

        gap: 8px;

        margin-bottom: 31px;
    }

    .stat-card {
        min-height: 99px;

        padding: 13px;
    }

    .stat-icon {
        width: 28px;
        height: 28px;

        font-size: 12px;
    }

    .stat-number {
        font-family:
            Georgia,
            "Times New Roman",
            serif;

        font-size: 29px;
        font-weight: 700;

        letter-spacing: -0.4px;

        font-variant-numeric:
            oldstyle-nums proportional-nums;
    }

    .stat-info {
        margin-top: 9px;
    }

    .stat-info span {
        font-size: 6px;
    }

    .stat-info small {
        margin-top: 3px;

        font-size: 6px;
    }


    /* SECTIONS */

    .section-heading {
        gap: 10px;

        margin-bottom: 7px;
    }

    .section-kicker {
        margin-bottom: 4px;

        font-size: 6px;
        letter-spacing: 1.5px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .section-description {
        margin-bottom: 13px;

        font-size: 7px;
    }

    .view-all {
        font-size: 7px;
    }


    /* JOURNEY */

    .journey-section {
        margin-bottom: 34px;
    }

    .continue-reading {
        min-height: auto;

        display: block;

        padding: 19px;
    }

    .journey-content {
        align-items: flex-start;

        gap: 12px;
    }

    .journey-icon {
        width: 37px;
        height: 37px;

        font-size: 16px;
    }

    .journey-label {
        font-size: 6px;
    }

    .continue-reading h3 {
        margin-top: 5px;

        font-size: 22px;
    }

    .continue-reading p {
        margin-top: 5px;

        font-size: 7px;
    }

    .journey-button {
        margin-top: 14px;

        padding: 9px 12px;

        font-size: 6px;
    }


    /* NOVELS */

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

        gap: 9px;
    }

    .dashboard-novel-info {
        padding: 9px;
    }

    .dashboard-novel-title {
        min-height: 34px;

        font-size: 15px;
    }

    .dashboard-novel-author {
        margin-top: 4px;

        font-size: 6px;
    }

    .dashboard-novel-meta {
        margin-top: 7px;
    }

    .dashboard-novel-meta span {
        padding: 3px 4px;

        font-size: 5px;
    }

    .dashboard-read-button {
        margin-top: 8px;

        padding: 7px 4px;

        font-size: 5.5px;
    }


    /* FOOTER */

    .user-footer {
        min-height: 52px;

        padding:
            0 13px;
    }

    .footer-brand strong {
        font-size: 12px;
    }

    .footer-brand span {
        font-size: 6px;
    }

    .footer-mark {
        font-size: 12px;
    }
}


/* ============================================================
   450px
   ============================================================ */

@media (max-width: 450px) {

    .navigation-link {
        padding-left: 8px;
        padding-right: 8px;

        font-size: 7px;
    }

    .navigation-link:hover,
    .navigation-link.active {
        padding-left: 8px;
    }

    .dashboard-hero h1 {
        font-size: 31px;
    }

    .dashboard-content {
        padding-left: 11px;
        padding-right: 11px;
    }

    .stat-card {
        padding: 11px;
    }

    .stat-number {
        font-family:
            Georgia,
            "Times New Roman",
            serif;

        font-size: 27px;
        font-weight: 700;

        letter-spacing: -0.3px;
    }

    .novel-grid {
        gap: 7px;
    }

    .dashboard-novel-info {
        padding: 8px;
    }

    .dashboard-novel-title {
        font-size: 14px;
    }
}


/* ============================================================
   360px
   ============================================================ */

@media (max-width: 360px) {

    .brand-text h2 {
        font-size: 19px;
    }

    .navigation-link {
        padding-left: 7px;
        padding-right: 7px;

        font-size: 6.5px;
    }

    .navigation-link:hover,
    .navigation-link.active {
        padding-left: 7px;
    }

    .dashboard-hero h1 {
        font-size: 28px;
    }

    .dashboard-hero p {
        font-size: 8px;
    }

    .search-heading h2 {
        font-size: 23px;
    }

    .stat-number {
        font-family:
            Georgia,
            "Times New Roman",
            serif;

        font-size: 25px;
        font-weight: 700;

        letter-spacing: -0.2px;
    }

    .dashboard-novel-title {
        font-size: 13px;
    }

    .logout-button {
        padding-left: 8px;
        padding-right: 8px;
    }
}


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

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration:
            0.01ms !important;
    }
}