/* ============================================================
   ABCerotica — Stylesheet
   A luxury art-gallery aesthetic for sensual content
   ============================================================ */

/* ---------- Design Tokens (Light) ---------- */
:root {
    /* Palette */
    --rose-50:  #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-300: #fda4af;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --plum-50:  #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --gold-100: #fef9c3;
    --gold-200: #fef08a;
    --gold-300: #fde047;
    --gold-400: #facc15;
    --gold-500: #c9a227;

    /* Semantic */
    --bg:         #fefcfb;
    --bg-alt:     #faf5f3;
    --bg-card:    #ffffff;
    --text:       #2d1b30;
    --text-soft:  #6b5570;
    --text-muted: #a08da5;
    --border:     #ede4e8;
    --border-soft:#f5eff2;

    /* Accent gradient */
    --gradient-primary: linear-gradient(135deg, #f9a8d4 0%, #c084fc 50%, #fbbf24 100%);
    --gradient-hero:    linear-gradient(160deg, #fdf2f8 0%, #faf5ff 40%, #fffbeb 100%);
    --gradient-glass:   linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.3));

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(45,27,48,.06);
    --shadow-md:  0 4px 16px rgba(45,27,48,.08);
    --shadow-lg:  0 12px 40px rgba(45,27,48,.10);
    --shadow-glow:0 0 30px rgba(168,85,247,.15);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: .25rem;
    --space-sm: .5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --duration: 300ms;

    /* Nav */
    --nav-height: 72px;
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
    --bg:         #0f0a12;
    --bg-alt:     #1a1220;
    --bg-card:    #1e1528;
    --text:       #f5f0f7;
    --text-soft:  #c4b5cc;
    --text-muted: #7d6b85;
    --border:     #2d2035;
    --border-soft:#241a2c;
    --gradient-hero: linear-gradient(160deg, #1a0f20 0%, #150d1c 40%, #1a1508 100%);
    --gradient-glass: linear-gradient(135deg, rgba(30,21,40,.7), rgba(30,21,40,.3));
    --shadow-sm:  0 1px 3px rgba(0,0,0,.2);
    --shadow-md:  0 4px 16px rgba(0,0,0,.3);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container--narrow { max-width: 800px; }
.text-center { text-align: center; }

/* ---------- Section ---------- */
.section {
    padding: var(--space-xl) 0;
}
.section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-lg);
}
.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.section__link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--plum-400);
    transition: color var(--duration) var(--ease);
}
.section__link:hover { color: var(--plum-500); }

/* ============================================================
   AGE GATE
   ============================================================ */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.age-gate__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,10,18,.92);
    backdrop-filter: blur(20px);
}
.age-gate__dialog {
    position: relative;
    text-align: center;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 90%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.age-gate__logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}
.age-gate__logo span { color: var(--plum-400); }
.age-gate__icon {
    color: var(--plum-300);
    margin-bottom: 1rem;
}
.age-gate__dialog h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: .75rem;
}
.age-gate__dialog p {
    color: var(--text-soft);
    margin-bottom: 2rem;
    font-size: .95rem;
    line-height: 1.6;
}
.age-gate__buttons {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(254,252,251,.85);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-soft);
    transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
[data-theme="dark"] .nav {
    background: rgba(15,10,18,.85);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.nav__logo span { color: var(--plum-400); }

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1001;
}
.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav__link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-soft);
    position: relative;
    padding: .25rem 0;
    transition: color var(--duration) var(--ease);
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width var(--duration) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: 1rem;
}

/* Theme toggle */
.nav__theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: all var(--duration) var(--ease);
}
.nav__theme-toggle:hover { border-color: var(--plum-300); color: var(--plum-400); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* Cart */
.nav__cart {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-soft);
}
.nav__cart:hover { color: var(--text); }
.nav__cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rose-500);
    color: white;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User dropdown */
.nav__user-menu { position: relative; }
.nav__user-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-soft);
    padding: .25rem;
}
.nav__user-btn:hover { color: var(--text); }
.nav__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--duration) var(--ease);
}
.nav__user-menu:hover .nav__dropdown,
.nav__user-menu:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav__dropdown a {
    display: block;
    padding: .5rem .75rem;
    font-size: .875rem;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    transition: all var(--duration) var(--ease);
}
.nav__dropdown a:hover {
    background: var(--bg-alt);
    color: var(--text);
}

/* Mobile nav */
@media (max-width: 900px) {
    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--nav-height) + 1rem) 1.5rem 2rem;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform var(--duration) var(--ease);
        gap: .5rem;
    }
    .nav__menu.open { transform: translateX(0); }
    .nav__link {
        font-size: 1rem;
        padding: .75rem 0;
        width: 100%;
    }
    .nav__actions {
        flex-wrap: wrap;
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
        width: 100%;
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 500;
    font-size: .875rem;
    padding: .65rem 1.5rem;
    border-radius: var(--radius-full);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn--sm { padding: .45rem 1rem; font-size: .8rem; }
.btn--xs { padding: .25rem .65rem; font-size: .72rem; border-radius: var(--radius-sm); }
.btn--lg { padding: .85rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn--ghost {
    color: var(--text-soft);
    border-color: var(--border);
    background: transparent;
}
.btn--ghost:hover {
    border-color: var(--plum-300);
    color: var(--plum-400);
    background: var(--plum-50);
}
[data-theme="dark"] .btn--ghost:hover {
    background: rgba(168,85,247,.1);
}

.btn--glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    border-color: rgba(255,255,255,.3);
    color: var(--text);
}
.btn--glass:hover {
    background: rgba(255,255,255,.5);
}
[data-theme="dark"] .btn--glass {
    border-color: rgba(255,255,255,.1);
}

.btn--premium {
    background: linear-gradient(135deg, #c9a227, #f5d442, #c9a227);
    color: #1a1200;
    font-weight: 600;
    border-color: transparent;
}
.btn--premium:hover {
    box-shadow: 0 0 20px rgba(201,162,39,.3);
    transform: translateY(-1px);
}

.btn--success { background: #10b981; color: white; }
.btn--danger { background: #ef4444; color: white; }
.btn--danger:hover { background: #dc2626; }

/* Admin toolbar on story cards */
.story-card__admin {
    display: flex;
    gap: .5rem;
    padding-top: .75rem;
    margin-top: .75rem;
    border-top: 1px solid var(--border);
}
.btn--glow { animation: glow-pulse 2s ease-in-out infinite; }

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(168,85,247,.15); }
    50%      { box-shadow: 0 0 30px rgba(168,85,247,.3); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('/assets/images/hero-bg.jpg') center/cover no-repeat;
}
.hero__gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: .85;
}
.hero__gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,.08) 0%, transparent 70%);
    animation: float-orb 15s ease-in-out infinite;
}
.hero__gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,168,212,.08) 0%, transparent 70%);
    animation: float-orb 18s ease-in-out infinite reverse;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(30px, -20px); }
    66%      { transform: translate(-20px, 15px); }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--plum-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="dark"] .hero__title {
    background: linear-gradient(135deg, #f5f0f7 0%, var(--plum-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}
.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero__scroll-hint {
    margin-top: 3rem;
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* Page hero (smaller, for inner pages) */
.page-hero {
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
    background: var(--gradient-hero);
    text-align: center;
}
.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
}
.page-hero__subtitle {
    color: var(--text-soft);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
   ANIMATIONS (fade-up on scroll simulation via CSS)
   ============================================================ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .8s var(--ease) forwards;
}
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

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

/* ============================================================
   STORY CARDS
   ============================================================ */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}
.story-grid--full {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.story-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.story-card__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.story-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration) var(--ease);
}
.story-card:hover .story-card__image img {
    transform: scale(1.05);
}
.story-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--plum-50), var(--rose-50), var(--gold-100));
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .story-card__placeholder {
    background: linear-gradient(135deg, #1e1528, #2d1b30, #1a1508);
}
.story-card__placeholder-inner {
    color: var(--text-muted);
    opacity: .4;
}

.story-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.story-card__category {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--plum-400);
    margin-bottom: .5rem;
}
.story-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: .5rem;
}
.story-card__title a:hover { color: var(--plum-400); }
.story-card__excerpt {
    font-size: .875rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: .75rem;
}
.story-card__meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--text-muted);
}
.story-card__author { font-weight: 500; color: var(--text-soft); }
.story-card__dot { opacity: .5; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: var(--radius-full);
}
.badge--premium {
    background: linear-gradient(135deg, #c9a227, #f5d442);
    color: #1a1200;
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
}
.badge--ai {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    color: white;
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
}
.badge--inline { position: static; }
.badge--sold {
    background: var(--text-muted);
    color: white;
}
.badge--lg { font-size: .8rem; padding: .35rem .9rem; }
.badge--approved { background: #10b981; color: white; }
.badge--pending  { background: #f59e0b; color: #1a1200; }
.badge--rejected { background: #ef4444; color: white; }
.badge--user    { background: var(--border); color: var(--text-soft); }
.badge--premium:not([class*="absolute"]) { position: static; background: linear-gradient(135deg, #c9a227, #f5d442); color: #1a1200; }
.badge--admin   { background: var(--plum-500); color: white; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
}
.filter-chip {
    padding: .45rem 1.1rem;
    font-size: .8rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: all var(--duration) var(--ease);
}
.filter-chip:hover {
    border-color: var(--plum-300);
    color: var(--plum-400);
}
.filter-chip--active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ============================================================
   ART CARDS / MASONRY
   ============================================================ */
.art-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.art-masonry--full {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.art-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.art-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.art-card__image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}
.art-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.art-card__image--blurred .art-card__placeholder {
    filter: blur(0);
    transition: filter var(--duration) var(--ease);
}
.art-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--plum-50), var(--rose-50), var(--gold-100));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}
[data-theme="dark"] .art-card__placeholder {
    background: linear-gradient(135deg, #1e1528, #2d1b30, #1a1508);
}
.art-card__placeholder-inner {
    color: var(--text-muted);
    opacity: .35;
}
.art-card__placeholder-text {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .75rem;
    line-height: 1.5;
    opacity: .6;
}
.art-card__placeholder--large {
    aspect-ratio: auto;
    min-height: 400px;
}
.art-card__placeholder--small {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
}

/* Blur overlay for NSFW preview */
.art-card__blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,10,18,.5);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: white;
    font-size: .8rem;
    font-weight: 500;
    opacity: 1;
    transition: opacity var(--duration) var(--ease);
}
.art-card:hover .art-card__blur-overlay {
    opacity: 0;
}
.art-card__blur-overlay--detail {
    border-radius: var(--radius-md);
}

.art-card__info {
    padding: 1rem 1.25rem 1.25rem;
}
.art-card__info h3, .art-card__info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .25rem;
}
.art-card__info h3 a:hover, .art-card__info h4 a:hover { color: var(--plum-400); }
.art-card__desc {
    font-size: .8rem;
    color: var(--text-soft);
    margin-bottom: .75rem;
}
.art-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.art-card__artist {
    font-size: .75rem;
    color: var(--text-muted);
}
.art-card__price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-500);
}
.art-card__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Art detail page */
.art-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .art-detail { grid-template-columns: 1fr; }
}
.art-detail__image { border-radius: var(--radius-md); overflow: hidden; }
.art-detail__info h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: .5rem;
}
.art-detail__artist {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}
.art-detail__desc {
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.art-detail__purchase {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
}
.art-detail__price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-500);
}
.art-detail__meta {
    display: flex;
    gap: 2rem;
    font-size: .85rem;
    color: var(--text-muted);
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}
.blog-grid--full {
    grid-template-columns: 1fr;
    max-width: 800px;
}
.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.blog-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration) var(--ease);
}
.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}
.blog-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--plum-50), var(--rose-50));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: .4;
}
[data-theme="dark"] .blog-card__placeholder {
    background: linear-gradient(135deg, #1e1528, #2d1b30);
}
.blog-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.blog-card__body h2, .blog-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: .5rem;
}
.blog-card__body h2 a:hover, .blog-card__body h3 a:hover { color: var(--plum-400); }
.blog-card__body p {
    font-size: .875rem;
    color: var(--text-soft);
    margin-bottom: .75rem;
}
.blog-card__date {
    font-size: .75rem;
    color: var(--text-muted);
}
.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: var(--text-muted);
}

/* Horizontal blog card (for blog listing) */
.blog-card--horizontal {
    display: grid;
    grid-template-columns: 260px 1fr;
}
@media (max-width: 600px) {
    .blog-card--horizontal { grid-template-columns: 1fr; }
}

/* ============================================================
   STORY PAGE (single)
   ============================================================ */
.story-page__cover {
    position: relative;
    width: 100%;
    margin-top: var(--nav-height);
}
.story-page__cover img {
    width: 100%;
    height: auto;
    display: block;
}
.story-page__cover-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm) 0 0 0;
}
.story-page__cover-credit a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}
.story-page:has(.story-page__cover) .story-page__header {
    padding-top: 2rem;
}
.story-page__header {
    padding: calc(var(--nav-height) + 3rem) 0 2rem;
    background: var(--gradient-hero);
    text-align: center;
}
.story-page__category {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--plum-400);
    margin-bottom: .75rem;
}
.story-page__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.story-page__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .85rem;
    color: var(--text-muted);
}
.story-page__author { font-weight: 500; }

.story-page__content {
    padding: 3rem 0;
}

/* Prose styling */
.prose p {
    margin-bottom: 1.5em;
    line-height: 1.85;
    font-size: 1.05rem;
}
.prose em { font-style: italic; }
.prose strong { font-weight: 600; }
.prose h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 2em 0 1em;
}
.prose blockquote {
    border-left: 3px solid var(--plum-300);
    padding-left: 1.5rem;
    margin: 2em 0;
    font-style: italic;
    color: var(--text-soft);
}

/* Story actions (like button) */
.story-page__actions {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.like-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: .9rem;
    transition: all var(--duration) var(--ease);
}
.like-btn:hover {
    border-color: var(--rose-300);
    color: var(--rose-500);
}
.like-btn--liked {
    border-color: var(--rose-400);
    color: var(--rose-500);
    background: var(--rose-50);
}
[data-theme="dark"] .like-btn--liked {
    background: rgba(244,63,94,.1);
}

/* Author card */
.author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}
.author-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.author-card__info h4 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: .25rem;
}
.author-card__info p {
    font-size: .85rem;
    color: var(--text-soft);
}

/* ============================================================
   PAYWALL
   ============================================================ */
.paywall {
    position: relative;
    margin: -2rem 0 2rem;
    padding-top: 6rem;
    background: linear-gradient(to bottom, transparent, var(--bg) 30%);
}
.paywall__inner {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.paywall__inner svg { color: var(--gold-500); margin: 0 auto 1rem; }
.paywall__inner h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: .75rem;
}
.paywall__inner p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}
.paywall__login {
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--text-muted);
}
.paywall__login a { color: var(--plum-400); font-weight: 500; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
    background: var(--gradient-hero);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.auth-card__header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-card__logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
.auth-card__logo span { color: var(--plum-400); }
.auth-card__header h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
}
.auth-card__footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .85rem;
    color: var(--text-muted);
}
.auth-card__footer a { color: var(--plum-400); font-weight: 500; }

/* ============================================================
   FORMS
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__group { display: flex; flex-direction: column; gap: .4rem; }
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 500px) { .form__row { grid-template-columns: 1fr; } }

.form__label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: .02em;
}
.form__input, .form__select, .form__textarea {
    padding: .7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
    outline: none;
    border-color: var(--plum-300);
    box-shadow: 0 0 0 3px rgba(168,85,247,.1);
}
.form__textarea { resize: vertical; min-height: 100px; }
.form__textarea--tall { min-height: 300px; }
.form__select--sm { padding: .35rem .6rem; font-size: .8rem; }
.form__hint {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .25rem;
}
.form__radio-row {
    display: flex;
    gap: 1.5rem;
    font-size: .9rem;
    color: var(--text-soft);
}

/* ============================================================
   AI GENERATOR
   ============================================================ */
.ai-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 500px) { .ai-form__grid { grid-template-columns: 1fr; } }

.mood-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.mood-chip {
    cursor: pointer;
}
.mood-chip input { display: none; }
.mood-chip span {
    display: inline-block;
    padding: .4rem 1rem;
    font-size: .8rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: all var(--duration) var(--ease);
}
.mood-chip input:checked + span {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}
.mood-chip:hover span {
    border-color: var(--plum-300);
}

.ai-output {
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.ai-output__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
}
.ai-output__header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
}
.ai-output__actions { display: flex; gap: .5rem; }
.ai-output__content {
    padding: 1.5rem;
}

.ai-loading {
    text-align: center;
    padding: 3rem;
}
.ai-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--plum-400);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.payment-stub {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}
.payment-stub h4 {
    font-family: var(--font-display);
    margin-bottom: .5rem;
}
.payment-stub p {
    font-size: .85rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}
.payment-stub__buttons {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ============================================================
   GUEST FORM
   ============================================================ */
.guest-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.guest-form-wrapper h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: .5rem;
}
.guest-form-wrapper > p {
    color: var(--text-soft);
    margin-bottom: 2rem;
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: calc(var(--nav-height) + 2rem) 0 2rem;
}
.profile-header__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-header__info h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: .25rem;
}
.profile-header__email {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.profile-header__bio {
    color: var(--text-soft);
    font-size: .9rem;
    margin-top: .5rem;
}

.upgrade-banner {
    padding: 2rem;
    background: linear-gradient(135deg, var(--gold-100), var(--gold-200));
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 1.5rem;
}
[data-theme="dark"] .upgrade-banner {
    background: linear-gradient(135deg, #2a2008, #3a2d10);
}
.upgrade-banner h3 {
    font-family: var(--font-display);
    margin-bottom: .5rem;
}
.upgrade-banner p {
    font-size: .9rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.profile-stories {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.profile-story-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}
.profile-story-row__info h4 {
    font-size: .95rem;
    margin-bottom: .15rem;
}
.profile-story-row__info h4 a:hover { color: var(--plum-400); }
.profile-story-row__cat {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.profile-story-row__meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .8rem;
    color: var(--text-muted);
}

/* ============================================================
   CART
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 1rem; opacity: .3; }
.empty-state p { margin-bottom: 1.5rem; }

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}
.cart-item__info {
    flex: 1;
}
.cart-item__info h4 { font-size: .95rem; }
.cart-item__price {
    font-family: var(--font-display);
    color: var(--gold-500);
    font-weight: 600;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
    border-top: 2px solid var(--border);
    font-size: 1.1rem;
    font-weight: 600;
}
.cart-total__amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold-500);
}
.cart-checkout {
    text-align: center;
    padding: 1.5rem 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.section--cta {
    padding: 0 0 var(--space-xl);
}
.cta-block {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--plum-50), var(--rose-50), var(--gold-100));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}
[data-theme="dark"] .cta-block {
    background: linear-gradient(135deg, #1e1528, #2d1b30, #1a1508);
}
.cta-block__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: .75rem;
}
.cta-block__text {
    color: var(--text-soft);
    max-width: 450px;
    margin: 0 auto 2rem;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    margin-bottom: 1.5rem;
}
.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
[data-theme="dark"] .alert--error {
    background: rgba(239,68,68,.1);
    border-color: rgba(239,68,68,.2);
    color: #fca5a5;
}
.alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
[data-theme="dark"] .alert--success {
    background: rgba(16,185,129,.1);
    border-color: rgba(16,185,129,.2);
    color: #6ee7b7;
}
.alert p { margin-bottom: .25rem; }
.alert p:last-child { margin-bottom: 0; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 2.5rem;
}
.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: all var(--duration) var(--ease);
}
.pagination__link:hover {
    border-color: var(--plum-300);
    color: var(--plum-400);
}
.pagination__link--active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-header {
    padding-top: calc(var(--nav-height) + 2rem);
    margin-bottom: 1.5rem;
}
.admin-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
}

.admin-nav {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .75rem;
}
.admin-nav__link {
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}
.admin-nav__link:hover { color: var(--text); background: var(--bg-alt); }
.admin-nav__link--active {
    color: var(--plum-400);
    background: rgba(168,85,247,.08);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.admin-stat {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    text-align: center;
}
.admin-stat--alert { border-color: var(--gold-300); }
.admin-stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .25rem;
}
.admin-stat__label {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.admin-table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    text-align: left;
    padding: .75rem 1rem;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: .75rem 1rem;
    font-size: .85rem;
    border-bottom: 1px solid var(--border-soft);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-alt); }

/* ============================================================
   AD PLACEHOLDERS
   ============================================================ */
.ad-banner, .footer__ad {
    margin: 2rem 0;
}
.ad-placeholder {
    text-align: center;
    padding: 1rem;
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    font-size: .75rem;
    color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-soft);
    padding: 4rem 0 2rem;
    margin-top: var(--space-xl);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; }
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: .5rem;
}
.footer__logo span { color: var(--plum-400); }
.footer__tagline {
    font-size: .9rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}
.footer__social {
    display: flex;
    gap: .75rem;
}
.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--duration) var(--ease);
}
.footer__social a:hover {
    border-color: var(--plum-300);
    color: var(--plum-400);
}

.footer__links h4 {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer__links a {
    display: block;
    font-size: .85rem;
    color: var(--text-soft);
    padding: .3rem 0;
    transition: color var(--duration) var(--ease);
}
.footer__links a:hover { color: var(--plum-400); }

.footer__premium h4 {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.footer__premium p {
    font-size: .85rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
    font-size: .75rem;
    color: var(--text-muted);
}
@media (max-width: 600px) {
    .footer__bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
.footer__affiliate a { color: var(--plum-400); }

/* ============================================================
   MAIN OFFSET (for fixed nav)
   ============================================================ */
.main {
    min-height: 60vh;
}

/* ============================================================
   LAZY LOAD IMAGES
   ============================================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity .4s var(--ease);
}
img[loading="lazy"].loaded,
img.loaded {
    opacity: 1;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 480px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    .art-masonry {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ERROR PAGES (404 / 500)
   ============================================================ */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
}
.error-page__icon {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.error-page__code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: .2;
    margin-bottom: .5rem;
}
.error-page__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
}
.error-page__text {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 450px;
    margin: 0 auto 2rem;
}
.error-page__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.error-page__ref {
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: .75rem;
}

/* ============================================================
   CREDITS DISPLAY (AI generator top bar)
   ============================================================ */
.credits-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}
.credits-display__balance {
    display: flex;
    align-items: baseline;
    gap: .5rem;
}
.credits-display__number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.credits-display__label {
    font-size: .85rem;
    color: var(--text-muted);
}

/* ============================================================
   SAMPLE PROMPT CARDS
   ============================================================ */
.sample-prompts {
    margin-bottom: 2.5rem;
}
.sample-prompts__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-soft);
}
.sample-prompts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.sample-prompt-card {
    all: unset;
    cursor: pointer;
    display: block;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.sample-prompt-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--plum-300);
}
.sample-prompt-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--text);
}
.sample-prompt-card p {
    font-size: .8rem;
    color: var(--text-soft);
    line-height: 1.5;
}

/* ============================================================
   LENGTH OPTION RADIO CARDS
   ============================================================ */
.length-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}
@media (max-width: 640px) {
    .length-options { grid-template-columns: repeat(2, 1fr); }
}
.length-option {
    cursor: pointer;
}
.length-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.length-option__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: 1rem .75rem;
    background: var(--bg-card);
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-md);
    text-align: center;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.length-option__card strong {
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--text);
}
.length-option__card span {
    font-size: .75rem;
    color: var(--text-muted);
}
.length-option__cost {
    font-weight: 600;
    color: var(--plum-400) !important;
}
.length-option input[type="radio"]:checked + .length-option__card {
    border-color: var(--plum-400);
    box-shadow: 0 0 0 1px var(--plum-400), var(--shadow-glow);
}
.length-option:hover .length-option__card {
    border-color: var(--plum-300);
}

/* ============================================================
   CREDITS BALANCE PAGE
   ============================================================ */
.credits-balance {
    text-align: center;
    padding: 2.5rem 1rem;
    margin-bottom: 2rem;
}
.credits-balance__number {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.credits-balance__label {
    display: block;
    margin-top: .5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Credit packages grid */
.credits-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.credits-package {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.credits-package:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.credits-package--popular {
    border-color: var(--plum-400);
    box-shadow: var(--shadow-glow);
    position: relative;
}
.credits-package__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .8rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.credits-package__amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}
.credits-package__label {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.credits-package__price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--plum-400);
    margin-bottom: 1rem;
}

/* Credit cost table */
.credits-cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: .9rem;
}
.credits-cost-table th,
.credits-cost-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.credits-cost-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Transaction badge colours */
.badge--bonus  { background: var(--gold-100); color: var(--gold-500); }
.badge--use    { background: var(--plum-100); color: var(--plum-500); }
.badge--purchase { background: #d1fae5; color: #065f46; }
.badge--refund { background: var(--rose-100); color: var(--rose-500); }

.text-success { color: #059669; }
.text-danger  { color: #e11d48; }

/* ============================================================
   ALERT BANNERS
   ============================================================ */
.alert {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: .9rem;
    margin-bottom: 1.5rem;
}
.alert--warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}
[data-theme="dark"] .alert--warning {
    background: #422006;
    border-color: #78350f;
    color: #fde68a;
}
.alert--success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
[data-theme="dark"] .alert--success {
    background: #064e3b;
    border-color: #065f46;
    color: #6ee7b7;
}
.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================
   EDIT STORY PAGE
   ============================================================ */
.edit-story-notice {
    padding: 1rem 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: var(--radius-md);
    font-size: .85rem;
    margin-bottom: 1.5rem;
}
[data-theme="dark"] .edit-story-notice {
    background: #1e1b4b;
    border-color: #312e81;
    color: #a5b4fc;
}
.form__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ============================================================
   PROFILE CREDITS
   ============================================================ */
.profile-credits {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}
.profile-credits__info {
    display: flex;
    align-items: baseline;
    gap: .5rem;
}
.profile-credits__number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.profile-credits__label {
    font-size: .85rem;
    color: var(--text-muted);
}

/* ============================================================
   NAV CREDITS BADGE
   ============================================================ */
.nav__credits-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 .35rem;
    margin-left: .35rem;
    font-size: .65rem;
    font-weight: 700;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-full);
    line-height: 1;
}

/* ============================================================
   AI CREDITS LINK
   ============================================================ */
.ai-credits-link {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: .9rem;
    color: var(--text-soft);
}
.ai-credits-link a {
    color: var(--plum-400);
    font-weight: 600;
}

/* ============================================================
   BTN XS SIZE
   ============================================================ */
.btn--xs {
    padding: .2rem .6rem;
    font-size: .7rem;
}

/* ============================================================
   PAGE HERO — CREDITS
   ============================================================ */
.page-hero--credits {
    background: var(--gradient-hero);
}

/* ============================================================
   PROMPT SUGGESTION BAR
   ============================================================ */
.prompt-suggestion {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}
.prompt-suggestion__use,
.prompt-suggestion__shuffle {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    font-size: .78rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.prompt-suggestion__use {
    background: var(--plum-100);
    color: var(--plum-500);
}
.prompt-suggestion__use:hover {
    background: var(--plum-200);
}
.prompt-suggestion__shuffle {
    background: var(--bg-alt);
    color: var(--text-soft);
}
.prompt-suggestion__shuffle:hover {
    background: var(--border);
    color: var(--text);
}
[data-theme="dark"] .prompt-suggestion__use {
    background: rgba(168,85,247,.15);
    color: var(--plum-300);
}
[data-theme="dark"] .prompt-suggestion__use:hover {
    background: rgba(168,85,247,.25);
}
[data-theme="dark"] .prompt-suggestion__shuffle {
    background: rgba(255,255,255,.06);
    color: var(--text-muted);
}
[data-theme="dark"] .prompt-suggestion__shuffle:hover {
    background: rgba(255,255,255,.1);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.page-hero--legal {
    background: var(--gradient-hero);
}
.page-hero--contact {
    background: var(--gradient-hero);
}
.legal-page {
    line-height: 1.8;
}
.legal-page h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: .75rem;
    color: var(--text);
}
.legal-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
    color: var(--text);
}
.legal-page p {
    margin-bottom: 1rem;
    color: var(--text-soft);
}
.legal-page ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.legal-page li {
    margin-bottom: .4rem;
    color: var(--text-soft);
}
.legal-page a {
    color: var(--plum-400);
    text-decoration: underline;
}
.legal-page a:hover {
    color: var(--plum-500);
}
.legal-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: .85rem;
}
.legal-cookie-table th,
.legal-cookie-table td {
    padding: .6rem .75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.legal-cookie-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.legal-cookie-table code {
    font-size: .8rem;
    background: var(--bg-alt);
    padding: .15rem .4rem;
    border-radius: var(--radius-sm);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-form {
    max-width: 600px;
}
.contact-info {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
    text-align: center;
    color: var(--text-soft);
    font-size: .9rem;
}
.contact-info a {
    color: var(--plum-400);
    font-weight: 600;
}

/* ============================================================
   DAILY CREDITS INFO (credits page)
   ============================================================ */
.daily-credits-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
}
.daily-credits-info__icon {
    flex-shrink: 0;
    color: var(--plum-400);
    margin-top: .1rem;
}
.daily-credits-info__text strong {
    display: block;
    font-size: .95rem;
    margin-bottom: .25rem;
}
.daily-credits-info__text p {
    font-size: .85rem;
    color: var(--text-soft);
    margin-bottom: .4rem;
}
.daily-credits-info__count {
    font-size: .85rem;
    font-weight: 600;
    color: var(--plum-400);
}

/* Daily display in AI generator */
.credits-display__daily {
    display: flex;
    align-items: baseline;
    gap: .35rem;
}
.credits-display__daily-count {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-400);
}
.credits-display__daily-label {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ============================================================
   ADMIN CREDITS PAGE
   ============================================================ */
.admin-credits-detail {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}
.admin-credits-detail h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: .5rem;
}
.admin-credits-detail h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.admin-credits-actions {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.admin-credits-form {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.form__input--sm {
    width: 120px;
    padding: .4rem .6rem;
    font-size: .85rem;
}
.admin-search {
    display: flex;
    gap: .75rem;
    align-items: center;
}
.admin-search .form__input {
    flex: 1;
    max-width: 400px;
}

/* Badge colours for new types */
.badge--daily_free  { background: #dbeafe; color: #1e40af; }
.badge--admin_grant { background: var(--gold-100); color: var(--gold-500); }
[data-theme="dark"] .badge--daily_free  { background: #1e3a5f; color: #93c5fd; }
[data-theme="dark"] .badge--admin_grant { background: #422006; color: #fde68a; }

/* Admin Settings */
.admin-settings-group {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-settings-group__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--plum-400);
}
.form__group--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border-soft);
}
.form__group--inline:last-child { border-bottom: none; }
.form__group--inline .form__label {
    margin: 0;
    font-size: .9rem;
}
.form__select--sm {
    padding: .4rem .6rem;
    font-size: .85rem;
    width: auto;
    min-width: 120px;
}

/* ============================================================
   BLOG TYPE BADGES
   ============================================================ */
.badge--guide    { background: var(--plum-100); color: var(--plum-500); }
.badge--advice   { background: var(--rose-100); color: var(--rose-500); }
.badge--editorial{ background: var(--gold-100); color: var(--gold-500); }
.badge--review   { background: #dbeafe; color: #1e40af; }
[data-theme="dark"] .badge--guide    { background: #2e1065; color: var(--plum-300); }
[data-theme="dark"] .badge--advice   { background: #4c0519; color: var(--rose-300); }
[data-theme="dark"] .badge--editorial{ background: #422006; color: var(--gold-300); }
[data-theme="dark"] .badge--review   { background: #1e3a5f; color: #93c5fd; }

/* ============================================================
   TAG CHIPS
   ============================================================ */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.tag-chip {
    display: inline-block;
    padding: .2rem .6rem;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: lowercase;
    color: var(--text-soft);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}
.tag-chip:hover {
    border-color: var(--plum-300);
    color: var(--plum-500);
    background: var(--plum-50);
}
[data-theme="dark"] .tag-chip:hover {
    background: var(--bg-card);
    border-color: var(--plum-400);
    color: var(--plum-300);
}
.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .5rem;
}
.blog-card__type {
    margin-bottom: .5rem;
}

/* ============================================================
   SERIES STYLES
   ============================================================ */
.series-header {
    background: var(--gradient-hero);
    padding: var(--space-xl) 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.series-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: .5rem;
}
.series-header__desc {
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}
.series-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}
.series-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.series-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.series-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.series-card__body {
    padding: 1.2rem;
}
.series-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: .5rem;
}
.series-card__title a {
    color: var(--text);
    text-decoration: none;
}
.series-card__title a:hover {
    color: var(--plum-500);
}
.series-card__desc {
    color: var(--text-soft);
    font-size: .85rem;
    line-height: 1.6;
    margin-bottom: .75rem;
}
.series-card__meta {
    font-size: .75rem;
    color: var(--text-muted);
}
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Series Navigation (prev/next chapter) */
.series-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.series-nav__link {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    flex: 1;
    max-width: 48%;
}
.series-nav__link:hover {
    border-color: var(--plum-300);
    box-shadow: var(--shadow-sm);
}
.series-nav__link--next {
    text-align: right;
    margin-left: auto;
}
.series-nav__label {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .25rem;
}
.series-nav__title {
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--text);
}

/* Series breadcrumb in blog post */
.series-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .9rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: .8rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}
.series-breadcrumb a {
    color: var(--plum-500);
    text-decoration: none;
}
.series-breadcrumb a:hover {
    text-decoration: underline;
}

/* Chapter list on series page */
.chapter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chapter-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
}
.chapter-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--plum-200);
}
.chapter-item__number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}
.chapter-item__body {
    flex: 1;
}
.chapter-item__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: .25rem;
}
.chapter-item__title a {
    color: var(--text);
    text-decoration: none;
}
.chapter-item__title a:hover {
    color: var(--plum-500);
}
.chapter-item__excerpt {
    font-size: .85rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* Featured series banner on blog page */
.featured-series {
    background: var(--gradient-hero);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.featured-series__content {
    flex: 1;
}
.featured-series__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--plum-500);
    font-weight: 600;
    margin-bottom: .5rem;
}
.featured-series__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: .5rem;
}
.featured-series__desc {
    color: var(--text-soft);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
@media (max-width: 640px) {
    .featured-series {
        flex-direction: column;
        text-align: center;
    }
    .series-nav {
        flex-direction: column;
    }
    .series-nav__link {
        max-width: 100%;
    }
    .series-nav__link--next {
        text-align: left;
    }
}

/* Related articles grid */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.related-articles__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}
.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

/* ============================================================
   STORY WORKSHOP
   ============================================================ */

/* Status banner */
.workshop-status {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--gold-100), var(--gold-200));
    border: 1px solid var(--gold-300);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: .9rem;
    color: var(--text);
}
[data-theme="dark"] .workshop-status {
    background: linear-gradient(135deg, rgba(250, 204, 21, .1), rgba(254, 240, 138, .08));
    border-color: rgba(250, 204, 21, .3);
    color: var(--text);
}

/* Cover section */
.workshop-cover {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.workshop-cover__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.workshop-cover__img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: .75rem;
}
.workshop-cover__placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: .75rem;
}
.workshop-cover__credit {
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}
.workshop-cover__credit a {
    color: var(--plum-500);
}
.workshop-cover__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* Success button variant */
.btn--success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
}
.btn--success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, .25);
}

/* Workshop button on profile */
.btn--workshop {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
    color: var(--text);
    border: none;
    font-weight: 600;
}
.btn--workshop:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .workshop-cover__actions {
        flex-direction: column;
        align-items: stretch;
    }
}
