:root {
    --primary: #703909;
    --primary-dark: #4f2806;
    --primary-light: #f6f3ee;
    --secondary: #4f2806;
    --accent: #c47a3a;
    --text-dark: #170f0d;
    --text-medium: #6b5d52;
    --text-muted: #6b5d52;
    --text-light: #8a7b6e;
    --bg: #f6f3ee;
    --card-bg: #ffffff;
    --border: #e4ddd3;
    --border-light: #faf8f4;
    --success: #15803d;
    --shadow-sm: 0 1px 2px rgba(112, 57, 9, 0.05);
    --shadow-md: 0 4px 16px rgba(112, 57, 9, 0.08);
    --shadow-lg: 0 12px 40px rgba(112, 57, 9, 0.1);
    --radius: 8px;
    --radius-sm: 8px;
    --heading-font: "Space Grotesk", "Manrope", system-ui, sans-serif;
    --body-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis-weight: none;
}

body.categories-page {
    font-family: var(--body-font) !important;
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.categories-page .bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.categories-page .bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: float 20s infinite ease-in-out;
}

.categories-page .shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #703909, #a45c2a);
    top: -200px;
    right: -150px;
    animation-delay: 0s;
}

.categories-page .shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #a66b2f, #e4ddd3);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.categories-page .shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4f2806, #703909);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.08);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* ===== TOP NAVBAR ===== */
.top-nav {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 5px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(112, 57, 9, 0.18);
}

.nav-brand h3 {
    font-family: var(--heading-font) !important;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.5px;
}

.nav-brand h3 span {
    font-family: var(--heading-font) !important;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    line-height: 1;
    margin-top: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    padding: 7px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-medium);
}

.nav-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.nav-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(112, 57, 9, 0.18);
}

.nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(112, 57, 9, 0.22);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    border: 0;
    font-family: inherit;
}

.nav-dropdown-chevron {
    font-size: 10px;
    transition: transform .2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e4ddd3;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: #6b5d52;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-dropdown-menu a:hover {
    color: #703909;
    background: #f7f4ef;
    transform: translateX(3px);
}

.nav-dropdown-menu i {
    width: 18px;
    text-align: center;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 50px 40px 30px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(112, 57, 9, 0.08), rgba(112, 57, 9, 0.08));
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.hero-badge .pulse {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    position: relative;
}

.hero-badge .pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--success);
    animation: pulseDot 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulseDot {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-section h1 {
    font-family: var(--heading-font) !important;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-section h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Stats Row */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat .num {
    font-family: serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.hero-stats .stat .label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ===== SEARCH BAR ===== */
.search-section {
    position: relative;
    z-index: 1;
    padding: 0 40px 30px;
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 54px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(112, 57, 9, 0.08), var(--shadow-md);
}

.search-box input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* ===== CATEGORIES GRID ===== */
.categories-container {
    position: relative;
    z-index: 1;
    padding: 0 40px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Compact Horizontal Card */
.category-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.25s;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.category-card:hover::before {
    opacity: 1;
}

/* Card Icon */
.card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    transition: all 0.25s;
}

.category-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: scale(1.1);
}

/* Card Content */
.card-content {
    flex: 1;
    min-width: 0;
}

.card-content h4,
.card-content .category-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Arrow */
.card-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 13px;
    transition: all 0.25s;
}

.category-card:hover .card-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(2px);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 16px;
}

.empty-state h3,
.empty-state .empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.page-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 40px;
    border-top: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.6);
}

.page-footer p {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-footer i {
    color: var(--success);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .top-nav {
        padding: 14px 24px;
    }

    .categories-container {
        padding: 0 24px 40px;
    }

    .hero-section {
        padding: 40px 24px 25px;
    }

    .search-section {
        padding: 0 24px 25px;
    }
}

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

    .hero-section h1 {
        font-size: 26px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stats .stat .num {
        font-size: 22px;
    }

    .top-nav {
        padding: 12px 16px;
    }

    .nav-brand h3 {
        font-size: 18px;
    }

    .nav-btn span {
        display: none;
    }

    .categories-container {
        padding: 0 16px 30px;
    }

    .hero-section {
        padding: 30px 16px 20px;
    }

    .search-section {
        padding: 0 16px 20px;
    }

    .category-card {
        padding: 12px 14px;
    }
}

/* ===== ICON FONT FIX ===== */
.categories-page .fa,
.categories-page .fas,
.categories-page .far,
.categories-page .fal,
.categories-page .fat,
.categories-page .fad,
.categories-page .fa-solid,
.categories-page .fa-regular,
.categories-page .fa-light,
.categories-page .fa-thin,
.categories-page .fa-duotone,
.fa,
.fas,
.far,
.fal,
.fat,
.fad,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone {
    font-family: "Font Awesome 6 Free" !important;
}

.categories-page .fas,
.categories-page .fa-solid,
.fas,
.fa-solid {
    font-weight: 900 !important;
}

.categories-page .far,
.categories-page .fa-regular,
.far,
.fa-regular {
    font-weight: 400 !important;
}

.categories-page .fab,
.categories-page .fa-brands,
.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}



body.category-page {
    font-family: var(--heading-font) !important;
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.category-page .bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.category-page .bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: float 20s infinite ease-in-out;
}

.category-page .shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #703909, #a45c2a);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.category-page .shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #a66b2f, #e4ddd3);
    bottom: -100px;
    left: -80px;
    animation-delay: -5s;
}

.category-page .shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4f2806, #703909);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.08);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}


/* ===== MAIN CONTAINER ===== */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

/* ===== CATEGORY BADGE ===== */
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(112, 57, 9, 0.08), rgba(112, 57, 9, 0.08));
    border: 1px solid rgba(112, 57, 9, 0.12);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.cat-badge i {
    font-size: 14px;
}

.cat-badge .cat-name {
    color: var(--text-dark);
    font-weight: 700;
}

.cat-badge .change-btn {
    margin-left: 6px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    padding: 4px 10px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.cat-badge .change-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-family: var(--heading-font) !important;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.page-header h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 24px;
}

.form-textarea {
    width: 100%;
    min-height: 180px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(112, 57, 9, 0.08);
}

.form-textarea::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(112, 57, 9, 0.08);
}

.form-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.form-error {
    color: var(--error);
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== BUTTONS ===== */
.btn-submit {
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-submit:hover::before {
    transform: translateX(100%);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(112, 57, 9, 0.3);
}

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

.btn-submit i {
    font-size: 14px;
    transition: transform 0.2s;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

.btn-retry {
    padding: 12px 28px;
    background: white;
    border: 2px solid var(--error);
    color: var(--error);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-retry:hover {
    background: var(--error);
    color: white;
}

.btn-confirm {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* ===== INFO BANNER ===== */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(112, 57, 9, 0.06), rgba(112, 57, 9, 0.06));
    border: 1px solid rgba(112, 57, 9, 0.1);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.info-banner i {
    font-size: 24px;
    color: var(--primary);
    margin-top: 2px;
}

.info-banner h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.info-banner p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== LOADER ===== */
.loader-section {
    text-align: center;
    padding: 60px 20px;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

.loader-text {
    font-family: var(--heading-font) !important;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.loader-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

.loader-subtext {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== ERROR STATE ===== */
.error-state {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.error-state i {
    font-size: 48px;
    color: var(--error);
    margin-bottom: 16px;
}

.error-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.error-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== TITLES SECTION ===== */
.titles-section {
    display: none;
}

.titles-header {
    margin-bottom: 28px;
}

.titles-header .category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(112, 57, 9, 0.08), rgba(112, 57, 9, 0.08));
    border: 1px solid rgba(112, 57, 9, 0.12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.titles-header h1 {
    font-family: var(--heading-font) !important;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.titles-header p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Title Cards Grid */
.titles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.title-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.title-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.25s;
}

.title-card:hover {
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.title-card:hover::before {
    opacity: 1;
}

.title-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(112, 57, 9, 0.04), rgba(112, 57, 9, 0.04));
    box-shadow: var(--shadow-md);
}

.title-card.selected::before {
    opacity: 1;
}

.title-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.25s;
}

.title-card:hover .title-number,
.title-card.selected .title-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.title-content {
    flex: 1;
    min-width: 0;
}

.title-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.title-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.title-select {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 13px;
    transition: all 0.25s;
    border: 2px solid var(--border);
}

.title-card:hover .title-select {
    border-color: var(--primary);
    color: var(--primary);
}

.title-card.selected .title-select {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
}

/* Selected Form */
.selected-form {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: none;
    animation: slideUp 0.4s ease;
}

.selected-form.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.selected-form h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-form h3 i {
    color: var(--primary);
}

.selected-form .form-group {
    margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.page-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 40px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    margin-top: 40px;
}

.page-footer p {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-footer i {
    color: var(--success);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-nav {
        padding: 12px 20px;
    }

    .nav-brand h3 {
        font-size: 18px;
    }

    .nav-btn span {
        display: none;
    }

    .main-container {
        padding: 24px 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .title-card {
        padding: 16px 18px;
    }

    .loader-text {
        font-size: 20px;
    }
}

.hero-carousel-content .hero-carousel-title {
    margin: 0;
    max-width: 700px;
    color: #170f0d;
    font-family: var(--heading-font) !important;
    font-size: clamp(42px, 5.5vw, 78px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: 0;
}

.abg-studio-card .abg-card-title,
.abg-workflow-step .abg-card-title,
.abg-audience-card .abg-card-title,
.abg-editor-document .abg-editor-title {
    color: var(--abg-ink, #170f0d);
    font-weight: 900;
}

.abg-studio-card .abg-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.abg-workflow-step .abg-card-title {
    margin: 14px 0 0;
    font-size: 18px;
    line-height: 1.2;
}

.abg-audience-card .abg-card-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.abg-editor-document .abg-editor-title {
    margin: 0;
    color: #170f0d;
    font-size: 24px;
    line-height: 1.2;
}




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

body.generate-page {
    font-family: var(--heading-font) !important;
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.generate-page .bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.generate-page .bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: float 20s infinite ease-in-out;
}

.generate-page .shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #703909, #a45c2a);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.generate-page .shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #a66b2f, #e4ddd3);
    bottom: -100px;
    left: -80px;
    animation-delay: -5s;
}

.generate-page .shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4f2806, #703909);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.08);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}



/* ===== MAIN CONTAINER ===== */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

/* ===== BOOK PREVIEW CARD ===== */
.book-preview-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.book-cover {
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(112, 57, 9, 0.2);
}

.book-info {
    flex: 1;
}

.book-info h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.book-info .book-title {
    font-family: var(--heading-font) !important;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.book-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.book-meta span {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-meta span i {
    font-size: 12px;
    color: var(--primary);
}

/* ===== LOADER SECTION ===== */
.loader-section {
    text-align: center;
    padding: 20px 0 40px;
}

.book-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    position: relative;
}

.book-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    animation: spin 1.2s linear infinite;
}

.book-loader::after {
    content: '??';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
}

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

.loader-title {
    font-family: var(--heading-font) !important;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.loader-title .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ===== PROGRESS STEPS ===== */
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.step.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
}

.step.active::before {
    opacity: 1;
}

.step.completed {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(16, 185, 129, 0.02));
}

.step.completed::before {
    opacity: 1;
    background: var(--success);
}

.step-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--bg);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-light);
    transition: all 0.3s;
    border: 2px solid var(--border);
}

.step.active .step-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(112, 57, 9, 0.2);
}

.step.completed .step-icon {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.step-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin: 24px 0 32px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

/* ===== ERROR STATE ===== */
.error-state {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.error-state i {
    font-size: 56px;
    color: var(--error);
    margin-bottom: 20px;
}

.error-state h3 {
    font-family: var(--heading-font) !important;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.error-state p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-retry {
    padding: 14px 32px;
    background: white;
    border: 2px solid var(--error);
    color: var(--error);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-retry:hover {
    background: var(--error);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

/* ===== FOOTER ===== */
.page-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 40px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    margin-top: 40px;
}

.page-footer p {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-footer i {
    color: var(--success);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-nav {
        padding: 12px 20px;
    }

    .nav-brand h3 {
        font-size: 18px;
    }

    .main-container {
        padding: 24px 20px;
    }

    .loader-title {
        font-size: 26px;
    }

    .book-preview-card {
        flex-direction: column;
        text-align: center;
    }

    .book-meta {
        justify-content: center;
    }

    .step {
        padding: 16px 18px;
    }
}


.categories-page1 {
    padding: 1rem 4rem;
}

/* ?? Card ?? */
.package-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 14px;
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: unset;
}

.packages-header {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 15px;
}

.packages-title {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    margin-bottom: 10px;
    font-family: var(--heading-font) !important;
}

.packages-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 14px;
    font-family: var(--heading-font) !important;
}

.packages-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #703909;
    background: rgba(112, 57, 9, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
}

/* ?? Mobile Responsive */
@media (max-width: 768px) {
    .packages-title {
        font-size: 22px;
    }

    .categories-page1 {
        padding: 1rem 1rem;
    }

    .packages-desc {
        font-size: 13px;
    }

    .packages-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
}

.packages-tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #703909;
    background: rgba(112, 57, 9, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
}

.package-card:hover {
    border-color: rgba(112, 57, 9, 0.25);
    box-shadow: 0 6px 24px rgba(112, 57, 9, 0.08);
}

.package-card.featured {
    border: 2px solid #703909;
    box-shadow: 0 6px 28px rgba(112, 57, 9, 0.12);
}

.package-top-summary {
    justify-content: center;
}

.package-top-summary div {
    min-width: 160px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #faf8f4;
    border: 1px solid rgba(112, 57, 9, 0.14);
}

.package-top-summary strong {
    display: block;
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 4px;
}

.package-top-summary p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.package-guest-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px auto 0;
    padding: 12px 18px;
    border-radius: 999px;
    background: #f5f1ea;
    color: #703909;
    border: 1px solid #e8d5b5;
    font-weight: 700;
    max-width: 520px;
}

.package-guest-hint i {
    font-size: 14px;
}

@media (max-width: 767px) {
    .package-top-summary {
        flex-direction: column;
    }
}

/* ?? Badge ?? */
.package-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #703909;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ?? Icons ?? */
.package-top {
    text-align: center;
    margin-bottom: 0.75rem;
}

.package-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 18px;
}

.package-icon.starter {
    background: #f6f3ee;
    color: #703909;
}

.package-icon.pro {
    background: #703909;
    color: #ffffff;
}

.package-icon.premium {
    background: #4f2806;
    color: #f6f3ee;
}

/* ?? Title / Subtitle ?? */
.package-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 3px;
}

.package-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* ?? Price ?? */
.package-price {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #111;
    line-height: 1;
    margin: 0.75rem 0 0.2rem;
}

.package-price sup {
    font-size: 16px;
    vertical-align: super;
    color: #6b7280;
    font-weight: 500;
}

.package-price span {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 4px;
    font-weight: 400;
}

/* ?? Credits Box ?? */
.credits-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fdf3f2;
    border: 1px solid rgba(112, 57, 9, 0.12);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin: 0.6rem 0 0.8rem;
}

.credits-box span {
    font-size: 18px;
    font-weight: 700;
    color: #703909;
}

.credits-box small {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ?? Features ?? */
.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #4b5563;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li .fa-check-circle {
    color: #703909;
    font-size: 13px;
    flex-shrink: 0;
}

/* ?? Button ?? */
.btn-buy-package {
    width: 100%;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #ffffff;
    color: #703909;
    border: 1.5px solid #703909;
    transition: background 0.15s, color 0.15s;
}

.btn-buy-package:hover {
    background: #703909;
    color: #ffffff;
}

/* Featured card ? solid button */
.package-card.featured .btn-buy-package {
    background: #703909;
    color: #ffffff;
    border-color: #703909;
}

.package-card.featured .btn-buy-package:hover {
    background: #8a1000;
    border-color: #8a1000;
}


.legal-page {
    max-width: 980px;
    width: min(980px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(32px, 5vw, 48px) 0 48px;
    color: #243044;
}

.legal-hero {
    margin-bottom: 34px;
}

.legal-kicker {
    color: #703909;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
}

.legal-hero h1 {
    font-weight: 800;
    margin-bottom: 12px;
    color: #170f0d;
}

.legal-hero p,
.legal-section p,
.legal-section li {
    color: #536173;
    line-height: 1.8;
    font-size: 16px;
}

.legal-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
    padding: 30px;
    margin-bottom: 22px;
}

.legal-section h2 {
    color: #170f0d;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.legal-section ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.legal-note {
    background: #f5f1ea;
    border: 1px solid #e8d5b5;
    color: #9a3412;
    border-radius: 14px;
    padding: 16px 18px;
    margin-top: 22px;
}

@media (max-width: 640px) {
    .legal-page {
        padding: 24px 16px 40px;
    }

    .legal-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .legal-section h2 {
        font-size: 20px;
    }
}




.contact-page {
    width: min(1220px, calc(100% - 36px));
    max-width: none;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 48px) 0 48px;
}

.contact-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.contact-kicker {
    color: #703909;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-heading h1 {
    color: #170f0d;
    font-weight: 700;
    line-height: 1.06;
    font-family: var(--heading-font) !important;
    margin-bottom: 14px;
}

.contact-heading p {
    color: #5b6778;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.contact-map {
    min-height: 640px;
    background: #faf8f4;
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 640px;
    border: 0;
    display: block;
}

.map-overlay {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
    backdrop-filter: blur(8px);
}

.map-overlay h2 {
    color: #170f0d;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px;
}

.map-overlay p {
    color: #6b5d52;
    margin: 0 0 14px;
}

.map-overlay a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #703909;
    font-weight: 800;
    text-decoration: none;
}

.contact-card {
    padding: 34px;
}

.contact-card h2 {
    color: #170f0d;
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 6px;
    font-family: var(--heading-font) !important;
}

.contact-card>p {
    color: #6b5d52;
    margin-bottom: 22px;
    line-height: 1.7;
}

.support-email-link {
    color: #703909;
    font-weight: 800;
    text-decoration: none;
    word-break: break-word;
}

.support-email-link:hover {
    text-decoration: underline;
}

.legal-section .support-email-link {
    font-weight: 800;
}

.contact-field {
    margin-bottom: 16px;
}

.contact-field label {
    display: block;
    font-weight: 750;
    color: #6b5d52;
    margin-bottom: 8px;
    font-family: var(--heading-font) !important;

}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    padding: 13px 14px;
    color: #170f0d;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.contact-field textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #703909;
    box-shadow: 0 0 0 4px rgba(112, 57, 9, .08);
}

.contact-error {
    color: #b91c1c;
    font-size: 13px;
    margin-top: 6px;
}

.contact-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: #703909;
    color: #fff;
    font-weight: 700;
    padding: 14px 18px;
    box-shadow: 0 16px 32px rgba(112, 57, 9, .22);
}

.contact-alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.contact-alert.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.contact-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #e8dcd3;
}

@media (max-width: 900px) {
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .contact-map,
    .contact-map iframe {
        min-height: 320px;
    }

    .contact-card {
        padding: 26px;
    }
}

@media (max-width: 640px) {
    .contact-page {
        width: min(1220px, calc(100% - 24px));
        padding: 24px 0 40px;
    }

    .contact-map,
    .contact-map iframe {
        min-height: 280px;
    }

    .contact-card {
        padding: 22px 18px;
    }
}

.nav-logo {
    height: 60px;
    width: auto;
    display: block;
}

.nav-credit-offer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    border-radius: 10px;
    background: #f5f1ea;
    color: #703909;
    border: 1px solid #e8d5b5;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(112, 57, 9, .08);
}

.nav-credit-offer:hover {
    color: #fff;
    background: #703909;
    border-color: #703909;
    transform: translateY(-2px);
}

.email-verify-banner {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #e4ddd3;
    background: #703909;
    padding: 12px 16px;
    box-shadow: none;
}

.email-verify-copy,
.email-verify-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.email-verify-copy i {
    color: #ffffff;
    font-size: 18px;
}

.email-verify-copy span {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
}

.email-verify-actions a,
.email-verify-actions button,
.email-verify-btn {
    min-height: 34px;
    border-radius: 8px;
    padding: 0 14px;
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #703909 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.email-verify-actions form {
    margin: 0;
}

.email-verify-actions button,
.email-verify-btn-secondary {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
}

.email-verify-actions a:hover,
.email-verify-btn:hover {
    background: #f6f3ee !important;
    border-color: #f6f3ee !important;
    color: #4f2806 !important;
}

.email-verify-actions button:hover,
.email-verify-btn-secondary:hover {
    background: #4f2806 !important;
    border-color: #4f2806 !important;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .email-verify-banner {
        display: block;
        margin: 10px 12px 0;
    }

    .email-verify-actions {
        margin-top: 10px;
    }
}

.authors-page {
    min-height: auto;
    background: #f6f3ee;
    padding: 0 0 48px;
}

.authors-container {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
}

.authors-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: end;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    margin-bottom: 24px;
}

.authors-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #703909;
    background: #f3efe8;
    border: 1px solid #ddd5c9;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 14px;
}

.authors-hero h1 {
    color: #101827;
    line-height: 1.04;
    margin: 0 0 10px;
    font-weight: 900;
    font-family: var(--heading-font) !important;
}

.authors-hero p {
    color: #6b5d52;
    max-width: 720px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.authors-search {
    display: flex;
    gap: 10px;
    min-width: min(390px, 100%);
}

.authors-search input {
    min-height: 46px;
    flex: 1;
    border: 1px solid #e4ddd3;
    border-radius: 10px;
    padding: 0 13px;
    color: #170f0d;
    outline: none;
}

.authors-search input:focus {
    border-color: #703909;
    box-shadow: 0 0 0 4px rgba(112, 57, 9, .1);
}

.authors-search button {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: #703909;
    color: #fff;
    font-weight: 900;
    padding: 0 18px;
    cursor: pointer;
}

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

/* —— Professional author profile cards —— */
.ap-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8dfd2;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(112, 57, 9, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ap-card:hover {
    transform: translateY(-4px);
    border-color: #d8c7b0;
    box-shadow: 0 18px 40px rgba(112, 57, 9, .14);
}

.ap-card__banner {
    height: 72px;
    background: #703909;    
}

.ap-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px 16px;
    flex: 1;
}

.ap-card__avatar-wrap {
    position: relative;
    margin-top: -36px;
    margin-bottom: 12px;
}

.ap-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(23, 15, 13, .18);
    background: #e4ddd3;
    display: block;
}

.ap-card__avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #703909;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .04em;
    font-family: var(--heading-font), system-ui, sans-serif;
}

.ap-card__verified-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, .35);
}

.ap-card__identity {
    width: 100%;
    margin-bottom: 8px;
}

.ap-card__name {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 4px;
    color: #170f0d;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    font-family: var(--heading-font), system-ui, sans-serif;
}

.ap-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ap-card__handle {
    margin: 0;
    color: #8a7463;
    font-size: 12px;
    font-weight: 600;
}

.ap-card__bio {
    margin: 0 0 14px;
    color: #5c4a3d;
    font-size: 13px;
    line-height: 1.5;
    min-height: 39px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ap-card__stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    background: #faf8f4;
    border: 1px solid #efe7db;
    border-radius: 12px;
    padding: 10px 8px;
    margin-bottom: 14px;
}

.ap-card__stat {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
}

.ap-card__stat strong {
    display: block;
    color: #170f0d;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.ap-card__stat span {
    display: block;
    margin-top: 2px;
    color: #8a7463;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ap-card__stat-divider {
    width: 1px;
    background: #e4ddd3;
    align-self: stretch;
}

.ap-card__actions {
    width: 100%;
    margin-top: auto;
}

.ap-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .15s ease;
}

.ap-card__btn--primary {
    background: #703909;
    color: #fff !important;
    border: 1px solid #703909;
    box-shadow: 0 8px 18px rgba(112, 57, 9, .2);
}

.ap-card__btn--primary:hover {
    background: #4f2806;
    border-color: #4f2806;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.authors-empty {
    background: #fff;
    border: 1px solid #e4ddd3;
    border-radius: 14px;
    padding: 42px 24px;
    text-align: center;
    color: #6b5d52;
}

.authors-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.authors-pagination-wrap .pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.authors-pagination-wrap .page-item {
    margin: 0;
}

.authors-pagination-wrap .page-link {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    border: 1px solid #e4ddd3;
    background: #fff;
    color: #703909;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(112, 57, 9, .05);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.authors-pagination-wrap .page-item:first-child .page-link,
.authors-pagination-wrap .page-item:last-child .page-link {
    border-radius: 10px !important;
}

.authors-pagination-wrap .page-item.active .page-link {
    background: #703909;
    border-color: #703909;
    color: #fff;
    box-shadow: 0 8px 18px rgba(112, 57, 9, .22);
}

.authors-pagination-wrap .page-item.disabled .page-link {
    opacity: .45;
    background: #faf8f4;
    color: #8a7463;
}

.authors-pagination-wrap .page-link:hover {
    background: #f3efe8;
    color: #4f2806;
    border-color: #d4c4ae;
}

.authors-pagination-wrap .page-item.active .page-link:hover {
    background: #4f2806;
    border-color: #4f2806;
    color: #fff;
}

@media (max-width: 1100px) {
    .authors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .authors-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .authors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .authors-search {
        flex-direction: column;
    }

    .ap-card__banner {
        height: 64px;
    }

    .ap-card__avatar {
        width: 64px;
        height: 64px;
    }

    .ap-card__avatar-wrap {
        margin-top: -32px;
    }
}

@media (max-width: 420px) {
    .authors-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-inline: auto;
    }
}




.author-page {
    background: #f6f3ee;
    min-height: 100vh;
    padding: 28px 0 56px;
}

.author-container {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

.author-hero {
    background: #fff;
    border: 1px solid #e8dfd2;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(112, 57, 9, .06);
    margin-bottom: 28px;
}

.author-hero__top {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.author-hero .author-avatar,
.author-hero .author-avatar-fallback {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(23, 15, 13, .12);
    background: #f6f3ee;
}

.author-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #703909, #8f4a12);
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .04em;
    font-family: var(--heading-font), Georgia, serif;
}

.author-hero__info {
    min-width: 0;
    flex: 1;
}

.author-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #703909;
    background: #f3efe8;
    border: 1px solid #ddd5c9;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.author-hero h1 {
    margin: 0 0 6px;
    color: #170f0d;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
    font-weight: 800;
    font-family: var(--heading-font), Georgia, serif;
}

.author-bio {
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.55;
    max-width: 640px;
    margin: 0;
}

.author-badges,
.author-social-links,
.author-specialties,
.author-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.author-badges {
    margin-top: 14px;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f8f4ed;
    border: 1px solid #e4ddd3;
    color: #703909;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.author-badge--gold { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.author-badge--red { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.author-badge--blue { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.author-badge--purple { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; }
.author-badge--pink { color: #be185d; background: #fdf2f8; border-color: #fbcfe8; }
.author-badge--green { color: #166534; background: #ecfdf3; border-color: #bbf7d0; }

.author-social-links {
    margin-top: 14px;
}

.author-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e4ddd3;
    background: #fff;
    color: #703909;
    text-decoration: none;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.author-social-links a:hover {
    transform: translateY(-2px);
    color: #4f2806;
    border-color: #d8c7b0;
    box-shadow: 0 10px 22px rgba(112, 57, 9, .12);
}

.author-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #efe7db;
}

.author-specialties {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #efe7db;
}

.author-specialties span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #faf8f4;
    border: 1px solid #e8dfd2;
    color: #6b3a0f;
    font-size: 12px;
    font-weight: 800;
}

.author-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 88px;
    padding: 8px 14px;
    background: #faf8f4;
    border: 1px solid #e8dfd2;
    border-radius: 10px;
}

.author-stat strong {
    color: #170f0d;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.author-stat span {
    color: #8a7463;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.follow-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: #faf8f4;
    border: 1px solid #e8dfd2;
}

.follow-box__copy {
    min-width: 190px;
}

.follow-box__copy strong,
.follow-box__copy span {
    display: block;
}

.follow-box__copy strong {
    color: #170f0d;
    font-size: 14px;
    font-weight: 850;
}

.follow-box__copy span {
    margin-top: 2px;
    color: #8a7463;
    font-size: 12px;
    font-weight: 650;
}

.follow-form {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

.author-featured-book {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid #e8dfd2;
    background:
        radial-gradient(circle at 92% 8%, rgba(112, 57, 9, .12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #faf8f4 100%);
    box-shadow: 0 14px 34px rgba(112, 57, 9, .07);
}

.author-featured-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 2 / 3;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #2b1813, #703909);
    color: #fff;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(23, 15, 13, .16);
}

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

.author-featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.author-featured-copy h2 {
    margin: 8px 0 10px;
    color: #170f0d;
    font-family: var(--heading-font), Georgia, serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
}

.author-featured-copy p {
    max-width: 680px;
    margin: 0;
    color: #6b5d52;
    font-size: 15px;
    line-height: 1.65;
}

.author-featured-meta {
    margin-top: 16px;
}

.author-featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e8dfd2;
    color: #6b3a0f;
    font-size: 12px;
    font-weight: 800;
}

.author-featured-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 42px;
    margin-top: 20px;
    padding: 0 16px;
    border-radius: 10px;
    background: #703909;
    color: #fff !important;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.author-featured-btn:hover {
    background: #5c2f07;
    transform: translateY(-1px);
}

.follow-form input {
    flex: 1 1 140px;
    min-height: 40px;
    border: 1px solid #e4ddd3;
    border-radius: 10px;
    padding: 0 12px;
    color: #170f0d;
    font-size: 14px;
    background: #fff;
    outline: none;
}

.follow-form input:focus {
    border-color: #703909;
    box-shadow: 0 0 0 3px rgba(112, 57, 9, .1);
}

.follow-form button {
    flex: 0 0 auto;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: #703909;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 0 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .18s ease;
}

.follow-form button:hover {
    background: #5c2f07;
}

.follow-error {
    color: #b91c1c;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
}

.follow-message {
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-books-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title {
    color: #170f0d;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    font-family: var(--heading-font), Georgia, serif;
}

.author-books-count {
    color: #8a7463;
    font-size: 13px;
    font-weight: 600;
}

.author-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px dashed #d8c7b0;
    border-radius: 14px;
    color: #6b5d52;
}

.author-empty i {
    font-size: 28px;
    color: #703909;
    opacity: .5;
    margin-bottom: 12px;
}

.author-empty h3 {
    color: #170f0d;
    font-size: 18px;
    margin: 0 0 6px;
}

.author-empty p {
    margin: 0;
    font-size: 14px;
}

.public-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px;
}

.public-book-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8dfd2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(112, 57, 9, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.public-book-card:hover {
    transform: translateY(-3px);
    border-color: #d8c7b0;
    box-shadow: 0 10px 24px rgba(112, 57, 9, .1);
}

.public-cover {
    display: block;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #2b1813, #703909);
    overflow: hidden;
    text-decoration: none;
}

.public-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.public-book-card:hover .public-cover img {
    transform: scale(1.04);
}

.public-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.public-book-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px;
    gap: 8px;
}

.public-book-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.public-book-title a {
    color: #170f0d;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.public-book-title a:hover {
    color: #703909;
}

.public-book-meta {
    color: #8a7463;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.public-book-rating {
    color: #b45309;
}

.public-book-rating i {
    font-size: 10px;
}

.read-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    width: 100%;
    min-height: 34px;
    border-radius: 8px;
    background: #703909;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease;
}

.read-link:hover {
    background: #5c2f07;
    color: #fff;
    text-decoration: none;
}

.author-pagination {
    margin-top: 24px;
}

@media (min-width: 900px) {
    .public-books-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .author-page {
        padding: 16px 0 40px;
    }

    .author-container {
        width: calc(100% - 24px);
    }

    .author-hero {
        padding: 18px 16px;
    }

    .author-hero__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-bio {
        max-width: none;
    }

    .author-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 10px;
    }

    .author-stat {
        min-width: 0;
        width: 100%;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        padding: 8px 10px;
        text-align: center;
    }

    .author-stat span {
        font-size: 10px;
        line-height: 1.2;
    }

    .author-badges,
    .author-social-links,
    .author-specialties {
        justify-content: center;
    }

    .follow-box {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px;
    }

    .follow-form {
        flex-direction: column;
        gap: 10px;
    }

    .follow-form input,
    .follow-form button {
        width: 100%;
    }

    .author-page .follow-form input {
        flex: 0 0 auto;
        min-height: 46px;
        height: 46px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 14px;
        line-height: 46px;
    }

    .author-page .follow-form button {
        min-height: 44px;
        height: 44px;
    }

    .public-books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .author-featured-book {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .author-featured-cover {
        width: min(220px, 100%);
        min-height: 0;
        margin: 0 auto;
    }

    .author-featured-copy {
        align-items: center;
        text-align: center;
    }

    .author-featured-meta {
        justify-content: center;
    }

    .author-featured-btn {
        width: 100%;
    }
}



.free-credit-hero-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: #f5f1ea;
    color: #703909;
    border: 1px solid #e8d5b5;
    box-shadow: 0 18px 40px rgba(112, 57, 9, .12);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-credit-cta {
    max-width: 780px;
    margin: 26px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    background: #fff;
    border: 1px solid #e8d5b5;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .09);
}

.hero-credit-cta strong {
    display: block;
    color: #170f0d;
    font-size: 18px;
    margin-bottom: 4px;
}

.hero-credit-cta span {
    display: block;
    color: #6b5d52;
    line-height: 1.5;
}

.hero-credit-cta a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    background: #703909;
    text-decoration: none;
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(112, 57, 9, .24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-credit-cta a:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(112, 57, 9, .3);
}

.credit-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(8px);
}

.credit-popup-backdrop.show {
    display: flex;
    animation: popupFade .2s ease-out;
}

.credit-popup {
    width: min(100%, 480px);
    position: relative;
    text-align: center;
    background: #fff;
    border-radius: 24px;
    padding: 34px 30px 30px;
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
    overflow: hidden;
    animation: popupRise .28s ease-out;
}

.credit-popup::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, #703909, #a66b2f, #facc15);
}

.credit-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #faf8f4;
    color: #6b5d52;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.credit-popup-close:hover {
    color: #fff;
    background: #703909;
}

.credit-popup-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f1ea;
    color: #703909;
    font-size: 32px;
    box-shadow: inset 0 0 0 1px #e8d5b5;
}

.credit-popup-kicker {
    color: #703909;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.credit-popup h2,
.credit-popup .credit-popup-title {
    color: #170f0d;
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 12px;
}

.credit-popup p {
    color: #6b5d52;
    line-height: 1.7;
    margin-bottom: 24px;
}

.credit-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.credit-popup-primary,
.credit-popup-secondary {
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
}

.credit-popup-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #703909;
    color: #fff;
    box-shadow: 0 16px 30px rgba(112, 57, 9, .24);
}

.credit-popup-primary:hover {
    color: #fff;
    transform: translateY(-2px);
}

.credit-popup-secondary {
    background: #f6f3ee;
    color: #6b5d52;
}

@keyframes popupFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

@media (max-width: 720px) {
    .hero-credit-cta {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .hero-credit-cta a {
        justify-content: center;
    }
}




.btn-ai-description {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    background: #703909;
    color: #fff;
    padding: 7px 20px;
    min-width: 190px;
    box-shadow: 0 16px 30px rgba(112, 57, 9, .22);
}

.btn-ai-description:disabled {
    opacity: .7;
    cursor: wait;
}

.ai-description-status {
    min-height: 22px;
    color: #6b5d52;
    font-size: 14px;
    margin: -4px 0 10px;
}

.ai-description-status.error {
    color: #b91c1c;
}

.book-style-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.book-style-field label {
    display: block;
    margin-bottom: 7px;
    color: #6b5d52;
    font-size: 14px;
    font-weight: 700;
}

.book-style-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e4ddd3;
    border-radius: 10px;
    background: #fff;
    color: #170f0d;
    font-size: 15px;
    padding: 0 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.book-style-field select:focus {
    border-color: #703909;
    box-shadow: 0 0 0 4px rgba(112, 57, 9, .1);
}

@media (max-width: 760px) {
    .btn-ai-description {
        width: 100%;
    }

    .book-style-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .book-style-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.public-author-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 6px;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid transparent;
}

.author-badge-gold {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.author-badge-red {
    color: #991b1b;
    background: #fee2e2;
    border-color: #e8dcd3;
}

.author-badge-blue {
    color: #703909;
    background: #f6f3ee;
    border-color: #e4ddd3;
}

.author-badge-purple {
    color: #4f2806;
    background: #f4f0e9;
    border-color: #d4cbc0;
}

.author-badge-pink {
    color: #703909;
    background: #faf8f4;
    border-color: #e4ddd3;
}

.author-badge-green {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.popular-books-page {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.popular-books-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.popular-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #703909;
    background: #f7f4ef;
    border: 1px solid #e8e1d6;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.popular-books-hero h1 {
    color: #170f0d;
    font-size: clamp(38px, 6vw, 68px);
    font-family: var(--heading-font) !important;
    line-height: .98;
    margin: 0 0 12px;
}

.popular-books-hero p {
    color: #6b5d52;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    max-width: 680px;
}

.popular-search {
    min-height: 58px;
    display: grid;
    grid-template-columns: auto 1fr minmax(160px, 220px) auto;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e4ddd3;
    border-radius: 16px;
    padding: 8px 8px 8px 16px;
    box-shadow: none;
}

.popular-search i {
    color: #703909;
}

.popular-search input {
    min-width: 0;
    border: 0;
    outline: none;
    color: #170f0d;
    font-size: 15px;
}

.popular-search select {
    min-height: 42px;
    border: 1px solid #e4ddd3;
    border-radius: 12px;
    background: #faf8f4;
    color: #6b5d52;
    font-size: 14px;
    font-weight: 800;
    padding: 0 12px;
    outline: none;
}

.popular-search button {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    color: #fff;
    background: #703909;
    font-weight: 900;
}

.popular-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 7px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4ddd3;
    box-shadow: none;
    margin: 0 0 20px;
}

.popular-tabs a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 0 16px;
    color: #6b5d52;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    transition: .2s ease;
}

.popular-tabs a:hover {
    color: #703909;
    background: #f7f4ef;
}

.popular-tabs a.active {
    color: #fff;
    background: #703909;
    box-shadow: 0 12px 22px rgba(112, 57, 9, .18);
}

.popular-series-list {
    display: grid;
    gap: 16px;
}

.popular-series-card {
    border-radius: 16px;
    background: #fff;
    border: 1px solid #edf0f5;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.popular-series-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f5;
    background: linear-gradient(180deg, #fff, #faf8f6);
}

.popular-series-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #703909;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.popular-series-head h2 {
    color: #170f0d;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.25;
    margin: 0 0 6px;
}

.popular-series-head p {
    color: #6b5d52;
    margin: 0;
    line-height: 1.6;
}

.popular-series-head > strong {
    white-space: nowrap;
    border-radius: 999px;
    padding: 8px 12px;
    color: #703909;
    background: #f7f4ef;
    font-size: 12px;
    font-weight: 900;
}

.popular-series-books {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #edf0f5;
}

.series-book-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: .2s ease;
}

.series-book-row:hover {
    background: #f7f4ef;
}

.series-book-cover {
    width: 86px;
    height: 104px;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #170f0d, #703909);
}

.series-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-book-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
}

.series-book-part {
    color: #703909;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.series-book-part span {
    margin-left: 6px;
    color: #6b5d52;
    text-transform: none;
    letter-spacing: 0;
}

.series-book-body h3 {
    color: #170f0d;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.series-book-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.series-book-stats span {
    border-radius: 999px;
    padding: 4px 7px;
    color: #703909;
    background: #f7f4ef;
    font-size: 10px;
    font-weight: 900;
}

.popular-books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.popular-book-card,
.popular-empty {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.popular-book-card {
    display: flex;
    flex-direction: row;
    min-height: 132px;
    border-radius: 12px;
}

.popular-cover {
    display: block;
    width: 112px;
    min-width: 112px;
    height: auto;
    background: linear-gradient(135deg, #170f0d, #703909);
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}

.popular-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.popular-book-card:hover .popular-cover img {
    transform: scale(1.04);
}

.popular-cover div {
    height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popular-cover span {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .78;
}

.popular-cover strong {
    font-size: 13px;
    line-height: 1.2;
}

.popular-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.popular-card-meta,
.popular-score-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.popular-card-meta span,
.popular-score-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #faf8f4;
    color: #6b5d52;
    padding: 4px 7px;
    font-size: 10px;
    font-weight: 900;
}

.popular-score-row span {
    color: #703909;
    background: #f7f4ef;
}

.popular-card-body h2 {
    color: #170f0d;
    font-size: 14px;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-card-body p {
    color: #6b5d52;
    margin: 0;
    font-size: 11px;
}

.popular-read-link {
    margin-top: auto;
    min-height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    background: #703909;
    font-weight: 900;
    font-size: 12px;
    text-decoration: none;
    width: fit-content;
    padding: 0 10px;
}

.popular-read-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

.popular-empty {
    padding: 54px 24px;
    text-align: center;
}

.popular-empty i {
    color: #703909;
    font-size: 42px;
    margin-bottom: 14px;
}

.popular-empty h2 {
    color: #170f0d;
    font-weight: 900;
}

.popular-empty p {
    color: #6b5d52;
}

.popular-pagination {
    margin-top: 26px;
}

@media (max-width: 1000px) {
    .popular-books-hero,
    .popular-books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .popular-books-hero {
        align-items: stretch;
    }

    .popular-books-hero > div {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .popular-books-page {
        width: min(1220px, calc(100% - 24px));
    }

    .popular-books-hero,
    .popular-books-grid {
        grid-template-columns: 1fr;
    }

    .popular-book-card {
        flex-direction: column;
    }

    .popular-cover {
        width: 100%;
        min-width: 0;
        height: 220px;
    }

    .popular-read-link {
        width: 100%;
    }

    .popular-tabs {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .popular-tabs a {
        justify-content: center;
    }

    .popular-series-head {
        display: block;
    }

    .popular-series-head > strong {
        display: inline-flex;
        margin-top: 12px;
    }

    .popular-series-books {
        grid-template-columns: 1fr;
    }

    .popular-search {
        grid-template-columns: auto 1fr;
    }

    .popular-search select {
        grid-column: 1 / -1;
    }

    .popular-search button {
        grid-column: 1 / -1;
    }
}

/* ===== USER THEME CONSISTENCY OVERRIDES ===== */
.top-nav {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e4ddd3;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.nav-btn,
.nav-btn.primary,
.nav-dropdown-toggle,
.btn-ai-description,
.btn-submit,
.popular-read-link,
.credit-popup-primary,
.hero-credit-cta a {
    border-radius: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.nav-btn {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #703909, #4f2806);
    color: #fff;
    box-shadow: 0 10px 24px rgba(112, 57, 9, 0.18);
}

.nav-btn:hover,
.nav-btn.primary:hover,
.nav-dropdown-toggle:hover,
.btn-ai-description:hover,
.btn-submit:hover,
.popular-read-link:hover,
.credit-popup-primary:hover,
.hero-credit-cta a:hover {
    background: linear-gradient(135deg, #8f1100, #651005) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.nav-btn i,
.nav-btn.primary i,
.btn-ai-description i,
.btn-submit i {
    color: inherit;
}

.nav-btn.primary,
.nav-dropdown-toggle,
.btn-ai-description,
.btn-submit,
.popular-read-link,
.credit-popup-primary,
.hero-credit-cta a {
    background: linear-gradient(135deg, #703909, #4f2806) !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(112, 57, 9, 0.20) !important;
}

.btn-ai-description {
    /* min-height: 56px; */
    padding: 10 24px;
}



.book-style-field select,
.form-input,
.form-textarea,
.popular-search,
.popular-search select {
    border-color: #e4ddd3 !important;
}

.book-style-field select:focus,
.form-input:focus,
.form-textarea:focus,
.popular-search select:focus {
    border-color: #703909!important;
    box-shadow: 0 0 0 4px rgba(112, 57, 9, 0.10) !important;
}

.hero-badge,
.cat-badge,
.popular-kicker,
.free-credit-hero-badge {
    background: #f3efe8 !important;
    border-color: #e8d5b5 !important;
    color: #703909!important;
}

.nav-dropdown-menu a:hover,
.popular-tabs a:hover,
.series-book-row:hover {
    background: #f7f4ef !important;
    color: #703909!important;
}

.popular-tabs a.active {
    background: #703909 !important;
    box-shadow: none;
}

/* ===== NEW LANDING REDESIGN ===== */
.landing-cinematic-hero,
.landing-proof-strip,
.landing-discovery,
.landing-categories-wrap,
.landing-editorial-band {
    width: min(1220px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.landing-cinematic-hero {
    min-height: 74vh;
    border-radius: 32px;
    overflow: hidden;
    margin-top: 26px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 30px 70px rgba(15, 23, 42, .18);
    animation: landingHeroReveal .8s ease both;
}

.landing-cinematic-backdrop,
.landing-cinematic-overlay {
    position: absolute;
    inset: 0;
}

.landing-cinematic-backdrop {
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.landing-cinematic-overlay {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .84) 0%, rgba(17, 24, 39, .62) 36%, rgba(17, 24, 39, .2) 100%),
        linear-gradient(180deg, rgba(17, 24, 39, .12) 0%, rgba(17, 24, 39, .68) 100%);
}

.landing-cinematic-content {
    position: relative;
    z-index: 2;
    padding: 54px 56px;
    max-width: 680px;
}

.landing-cinematic-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.landing-cinematic-content h1 {
    margin: 18px 0 12px;
    color: #fff;
    font-size: clamp(46px, 7vw, 84px);
    line-height: .94;
    font-family: var(--heading-font) !important;
    letter-spacing: -0.05em;
}

.landing-cinematic-content p {
    color: rgba(255,255,255,.86);
    font-size: 17px;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 0 24px;
}

.landing-cinematic-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.landing-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #703909, #4f2806);
    box-shadow: 0 16px 34px rgba(112, 57, 9, .28);
}

.landing-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
}

.landing-btn-ghost {
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
}

.landing-btn-ghost:hover {
    color: #fff;
    background: rgba(255,255,255,.14);
    transform: translateY(-2px);
}

.landing-btn-outline {
    color: #170f0d;
    background: #fff;
    border: 1px solid #e4ddd3;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.landing-btn-outline:hover {
    color: #703909;
    border-color: #f6f3ee;
    background: #f7f4ef;
    transform: translateY(-2px);
}

.landing-cinematic-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.landing-cinematic-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 800;
}

.landing-cinematic-points i {
    color: #fbbf24;
}

.landing-proof-strip {
    margin-top: -46px;
    margin-bottom: 18px;
}

.landing-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0 20px;
}

.landing-proof-grid .stat {
    background: rgba(255,255,255,.94);
    border: 1px solid #e4ddd3;
    border-radius: 22px;
    padding: 20px 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    text-align: center;
    animation: landingRise .7s ease both;
}

.landing-proof-grid .num {
    color: #170f0d;
    font-size: 30px;
}

.landing-proof-grid .label {
    color: #6b5d52;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-discovery {
    margin-top: 26px;
    margin-bottom: 16px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255,255,255,.94);
    border: 1px solid #e4ddd3;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .08);
    animation: landingRise .75s ease both;
}

.landing-discovery-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.landing-section-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: #f3efe8;
    border: 1px solid #e8d5b5;
    color: #703909;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.landing-discovery-head h2,
.landing-editorial-card h2 {
    color: #170f0d;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.02;
    margin: 12px 0 0;
    font-family: var(--heading-font) !important;
    font-weight: 700;
}

.landing-discovery-head p,
.landing-editorial-card p {
    max-width: 430px;
    color: #6b5d52;
    line-height: 1.75;
    margin: 0;
}

.landing-discovery-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.landing-quick-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.landing-quick-tags span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #f7f4ef;
    color: #703909;
    border: 1px solid #e2dbd0;
    font-size: 12px;
    font-weight: 800;
}

.landing-categories-wrap {
    margin-bottom: 10px;
}

.categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    min-height: 74px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    border: 1px solid #e4ddd3;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    animation: landingRise .8s ease both;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #efb7a8;
    box-shadow: 0 22px 34px rgba(112, 57, 9, .1);
}

.card-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 12px;
    color: #703909;
    background: #f3efe8;
}

.card-content h4 {
    font-size: 13px;
    margin-bottom: 1px;
    font-family: var(--heading-font) !important;
    font-weight: 700;
    color: #142033;
}

.card-content p {
    font-size: 10px;
    line-height: 1.35;
    white-space: normal;
}

.card-arrow {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 9px;
    font-size: 10px;
}

.card-icon svg,
.card-icon i {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.2 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

.landing-editorial-band {
    padding: 28px 0 6px;
}

.landing-editorial-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, .12), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f6f3ee 100%);
    border: 1px solid #e4ddd3;
    box-shadow: 0 24px 52px rgba(15, 23, 42, .08);
    animation: landingRise .85s ease both;
}

@keyframes landingHeroReveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.985);
    }

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

@keyframes landingRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@media (prefers-reduced-motion: reduce) {
    .landing-cinematic-hero,
    .landing-discovery,
    .landing-proof-grid .stat,
    .category-card,
    .landing-editorial-card {
        animation: none;
    }
}

@media (max-width: 1100px) {
    .landing-discovery-head,
    .landing-editorial-card {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .landing-discovery-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .landing-cinematic-hero,
    .landing-proof-strip,
    .landing-discovery,
    .landing-categories-wrap,
    .landing-editorial-band {
        width: min(100% - 24px, 1220px);
    }

    .landing-cinematic-hero {
        min-height: 68vh;
    }

    .landing-cinematic-content {
        padding: 30px 22px 24px;
    }
}

@media (max-width: 576px) {
    .landing-cinematic-content h1 {
        font-size: 38px;
    }

    .landing-cinematic-actions,
    .landing-cinematic-points {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-btn {
        width: 100%;
    }

    .landing-proof-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .landing-discovery,
    .landing-editorial-card {
        padding: 18px;
    }
}

/* ===== LANDING PAGE MODERN UPGRADE ===== */
.categories-page {
    position: relative;
}

.landing-shell,
.search-section,
.categories-container,
.landing-bottom-band {
    width: min(1180px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

.landing-shell {
    position: relative;
    z-index: 1;
    padding: 34px 0 18px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 430px);
    gap: 24px;
    align-items: stretch;
}

.landing-copy,
.landing-visual,
.landing-stats,
.search-section,
.landing-bottom-card,
.category-card {
    animation: landingRise .7s ease both;
}

.landing-chip,
.landing-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f3efe8;
    color: #703909;
    border: 1px solid #e8d5b5;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 7px rgba(16, 185, 129, .14);
}

.landing-copy h1 {
    margin: 20px 0 14px;
    color: #170f0d;
    font-family: var(--heading-font) !important;
    font-size: clamp(38px, 6vw, 68px);
    line-height: .98;
    letter-spacing: -0.04em;
}

.landing-copy h1 .gradient-text {
    background: linear-gradient(135deg, #703909 0%, #a66b2f 58%, #facc15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-copy p {
    max-width: 660px;
    color: #6b5d52;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.landing-btn-primary {
    background: linear-gradient(135deg, #703909, #4f2806);
    color: #fff;
    box-shadow: 0 14px 28px rgba(112, 57, 9, .2);
}

.landing-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
}

.landing-btn-secondary {
    background: rgba(255,255,255,.92);
    color: #170f0d;
    border: 1px solid #e4ddd3;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.landing-btn-secondary:hover {
    color: #703909;
    border-color: #e8d5b5;
    background: #f7f4ef;
    transform: translateY(-2px);
}

.landing-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.landing-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b5d52;
    font-size: 13px;
    font-weight: 800;
}

.landing-points i {
    color: #703909;
}

.landing-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.landing-panel {
    background: rgba(255,255,255,.95);
    border: 1px solid #e6edf7;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.landing-panel-main {
    border-radius: 24px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, .14), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
}

.landing-panel-kicker {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3efe8;
    color: #703909;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.landing-panel-main h3 {
    color: #170f0d;
    font-size: 27px;
    line-height: 1.15;
    margin: 0 0 10px;
}

.landing-panel-main p {
    color: #6b5d52;
    line-height: 1.75;
    margin: 0 0 20px;
}

.landing-steps {
    display: grid;
    gap: 10px;
}

.landing-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 15px;
    background: rgba(255,255,255,.84);
    border: 1px solid #e4ddd3;
}

.landing-step strong {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #703909, #a66b2f);
    color: #fff;
    font-size: 12px;
}

.landing-step span {
    color: #6b5d52;
    font-weight: 800;
    font-size: 14px;
}

.landing-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.landing-panel-mini {
    border-radius: 18px;
    padding: 16px 18px;
}

.landing-panel-mini small {
    display: block;
    color: #6b5d52;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.landing-panel-mini strong {
    color: #170f0d;
    font-size: 24px;
    line-height: 1.15;
}

.landing-stats {
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    border: 1px solid #edf2f9;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.landing-stats .stat {
    flex: 1 1 140px;
}

.landing-stats .num {
    font-size: 28px;
}

.search-section {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    margin-bottom: 14px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    border: 1px solid #e6edf7;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

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

.landing-section-head h2 {
    color: #170f0d;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.05;
    margin: 10px 0 0;
}

.landing-section-head p {
    max-width: 420px;
    color: #6b5d52;
    line-height: 1.7;
    margin: 0;
}

.categories-container {
    padding-top: 6px;
}

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

.category-card {
    min-height: 88px;
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255,255,255,.95);
    border: 1px solid #e4ddd3;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.category-card::before {
    width: 4px;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #f6f3ee;
    box-shadow: 0 20px 34px rgba(112, 57, 9, .1);
}

.card-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
}

.card-content h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.card-content p {
    font-size: 11px;
    line-height: 1.45;
    white-space: normal;
}

.card-arrow {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 10px;
    font-size: 11px;
}

.landing-bottom-band {
    position: relative;
    z-index: 1;
    padding: 26px 0 8px;
}

.landing-bottom-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, .12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8f5f0 100%);
    border: 1px solid #e4ddd3;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .08);
}

.landing-bottom-card h2 {
    color: #170f0d;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.05;
    margin: 10px 0 10px;
}

.landing-bottom-card p {
    max-width: 700px;
    color: #6b5d52;
    line-height: 1.75;
    margin: 0;
}

@keyframes landingRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-copy,
    .landing-visual,
    .landing-stats,
    .search-section,
    .landing-bottom-card,
    .category-card {
        animation: none;
    }
}

@media (max-width: 1100px) {
    .landing-hero,
    .landing-section-head,
    .landing-bottom-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 800px) {
    .landing-shell,
    .search-section,
    .categories-container,
    .landing-bottom-band {
        width: min(100% - 24px, 1180px);
    }

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

    .landing-mini-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .landing-copy h1 {
        font-size: 34px;
    }

    .landing-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .landing-btn {
        width: 100%;
    }

    .landing-stats {
        padding: 16px;
    }

    .search-section,
    .landing-bottom-card {
        padding: 18px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CATEGORY REAL AI COVER CARDS ===== */
.landing-categories-wrap .categories-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: 24px 18px;
}

.landing-categories-wrap .category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px;
    min-height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6dfd6;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
    text-align: center;
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.landing-categories-wrap .category-card:hover {
    transform: translateY(-6px) !important;
    background: #ffffff;
    border-color: rgba(112, 57, 9, .24);
    box-shadow: 0 20px 42px rgba(15, 23, 42, .11);
}

.landing-categories-wrap .category-card::before,
.landing-categories-wrap .card-icon {
    display: none;
}

.category-cover-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 6px 4px 2px;
    min-height: 0;
    background: linear-gradient(180deg, #f6f3ee, #ffffff);
    border: 1px solid #ebe5db;
    border-radius: 12px;
}

.category-book-cover {
    position: relative;
    width: min(126px, 100%);
    aspect-ratio: 2.75 / 4;
    border-radius: 10px 6px 6px 10px;
    overflow: hidden;
    background: #170f0d;
    transform: perspective(850px) rotateY(-6deg);
    transform-origin: left center;
    box-shadow:
        5px 5px 0 -3px #ffffff,
        10px 10px 0 -6px #e5e7eb,
        14px 18px 24px rgba(15, 23, 42, .24);
    transition: transform .25s ease, box-shadow .25s ease;
}

.landing-categories-wrap .category-card:hover .category-book-cover {
    transform: perspective(850px) rotateY(-2deg) translateY(-5px);
    box-shadow:
        5px 5px 0 -3px #ffffff,
        10px 10px 0 -6px #e5e7eb,
        18px 24px 30px rgba(112, 57, 9, .2);
}

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

.category-book-spine,
.category-book-pages,
.category-book-gloss {
    position: absolute;
    pointer-events: none;
}

.category-book-spine {
    inset: 0 auto 0 0;
    width: 14px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(255, 255, 255, .08), transparent);
    mix-blend-mode: multiply;
}

.category-book-pages {
    top: 7%;
    right: 0;
    width: 7px;
    height: 86%;
    border-radius: 0 8px 8px 0;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .9) 0 2px, rgba(226, 232, 240, .95) 2px 4px);
}

.category-book-gloss {
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, .2), transparent 40%, rgba(255, 255, 255, .16) 62%, transparent);
    opacity: .75;
}

.landing-categories-wrap .card-content {
    width: 100%;
    padding: 0 2px;
}

.landing-categories-wrap .card-content h4,
.landing-categories-wrap .card-content .category-name {
    font-family: var(--heading-font) !important;
    font-size: 16px;
    line-height: 1.15;
    color: #170f0d;
    margin: 0;
}

.category-card-label {
    display: block;
    margin-top: 5px;
    color: #703909;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-categories-wrap .card-content p {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.landing-categories-wrap .card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: auto;
    color: #703909;
    background: #f7f4ef;
    border: 1px solid #f2d6cf;
    border-radius: 999px;
    font-size: 12px;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.landing-categories-wrap .category-card:hover .card-arrow {
    color: #ffffff;
    background: #703909;
    transform: translateX(3px);
}

@media (max-width: 1180px) {
    .landing-categories-wrap .categories-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .landing-categories-wrap .categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .landing-categories-wrap .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .category-book-cover {
        width: min(126px, 100%);
    }

    .landing-categories-wrap .card-content h4,
    .landing-categories-wrap .card-content .category-name {
        font-size: 15px;
    }
}

@media (max-width: 420px) {
    .landing-categories-wrap .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HOMEPAGE PREMIUM HERO CAROUSEL ===== */
.homepage-hero-carousel {
    position: relative;
    width: 100%;
    min-height: clamp(520px, 70vh, 760px);
    overflow: hidden;
    background: #f6f3ee;
    border-bottom: 1px solid #e4ddd3;
}

.hero-carousel-track {
    position: absolute;
    inset: 0;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: clamp(48px, 7vw, 96px) clamp(22px, 6vw, 92px);
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity .85s ease, visibility .85s ease, transform 1.6s ease;
}

.hero-carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(246, 243, 238, .2);
    pointer-events: none;
}

.hero-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.hero-carousel-content {
    position: relative;
    z-index: 3;
    width: min(600px, 100%);
    animation: heroContentReveal .7s ease both;
}

.hero-carousel-slide:not(.is-active) .hero-carousel-content {
    animation: none;
}

.hero-carousel-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    margin-bottom: 18px;
    color: #703909;
    background: rgba(255, 255, 255, .88);
    border: 1px solid #e4ddd3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(112, 57, 9, .08);
}

.hero-carousel-content h1,
.hero-carousel-content h2 {
    margin: 0;
    max-width: 700px;
    color: #170f0d;
    font-family: var(--heading-font) !important;
    font-size: clamp(42px, 5.5vw, 78px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-carousel-content p {
    max-width: 570px;
    margin: 22px 0 0;
    color: #6b5d52;
    font-size: clamp(16px, 1.45vw, 20px);
    line-height: 1.65;
    font-weight: 600;
}

.hero-carousel-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.hero-carousel-btn-primary {
    color: #ffffff;
    background: #703909;
    border: 1px solid #703909;
    box-shadow: 0 16px 34px rgba(112, 57, 9, .22);
}

.hero-carousel-btn-primary:hover {
    color: #ffffff;
    background: #4f2806;
    border-color: #4f2806;
    transform: translateY(-3px);
}

.hero-carousel-btn-secondary {
    color: #703909;
    background: rgba(255, 255, 255, .86);
    border: 1px solid #e4ddd3;
    box-shadow: 0 14px 30px rgba(17, 15, 13, .08);
}

.hero-carousel-btn-secondary:hover {
    color: #ffffff;
    background: #703909;
    border-color: #703909;
    transform: translateY(-3px);
}

.hero-carousel-dots {
    position: absolute;
    left: clamp(22px, 6vw, 92px);
    bottom: clamp(24px, 4vw, 44px);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-carousel-dots button {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(112, 57, 9, .22);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.hero-carousel-dots button.is-active {
    width: 54px;
    background: #703909;
}

@keyframes heroContentReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@media (max-width: 991px) {
    .homepage-hero-carousel {
        min-height: 620px;
    }

    .hero-carousel-slide {
        align-items: flex-end;
        padding-bottom: 88px;
        background-position: center right;
    }

    .hero-carousel-slide::before {
        background: rgba(246, 243, 238, .62);
    }

    .hero-carousel-content {
        width: min(620px, 100%);
    }
}

@media (max-width: 640px) {
    .homepage-hero-carousel {
        min-height: 600px;
    }

    .hero-carousel-slide {
        padding: 38px 18px 82px;
        background-position: center right;
    }

    .hero-carousel-slide::before {
        background: rgba(246, 243, 238, .72);
    }

    .hero-carousel-content h1,
    .hero-carousel-content h2 {
        font-size: 36px;
        line-height: 1.04;
    }

    .hero-carousel-content p {
        font-size: 15px;
        line-height: 1.55;
    }

    .hero-carousel-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .hero-carousel-btn {
        width: 100%;
        min-height: 46px;
    }

    .hero-carousel-dots {
        left: 18px;
        bottom: 28px;
    }
}

/* ===== HOMEPAGE HERO FIXED PREMIUM LAYOUT ===== */
.homepage-hero-carousel {
    min-height: clamp(560px, 66vh, 680px) !important;
    margin: 0 !important;
    border-bottom: 1px solid #e4ddd3;
}

.hero-carousel-slide {
    align-items: center;
    padding: 58px clamp(20px, 6vw, 96px) 74px !important;
    background-color: #f6f3ee;
    background-image: none !important;
}

.hero-carousel-slide::before {
    display: none !important;
}

.hero-carousel-slide::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(44vw, 760px);
    display: block !important;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: .82;
    z-index: 1;
    pointer-events: none;
}

.hero-carousel-content {
    width: min(520px, 100%);
    padding: 0;
    z-index: 3;
}

.hero-carousel-content h1,
.hero-carousel-content h2 {
    max-width: 520px;
    font-size: clamp(30px, 3vw, 44px) !important;
    line-height: 1.12 !important;
    white-space: normal;
}

.hero-carousel-content p {
    max-width: 460px;
    margin-top: 16px;
    font-size: 16px !important;
    line-height: 1.55 !important;
}

.hero-carousel-actions {
    margin-top: 24px;
}

.hero-carousel-dots {
    bottom: 34px;
    align-items: center;
}

.hero-carousel-dots button {
    width: 48px !important;
    min-width: 48px !important;
    height: 7px !important;
    min-height: 7px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #ddd5c9 !important;
    box-shadow: none !important;
}

.hero-carousel-dots button.is-active {
    width: 78px !important;
    min-width: 78px !important;
    background: #703909!important;
}

.landing-proof-strip {
    margin-top: 28px !important;
    margin-bottom: 34px !important;
    z-index: 4;
}

.landing-proof-grid {
    gap: 16px !important;
    padding: 0 !important;
}

.landing-proof-grid .stat {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    min-height: 132px;
    align-content: center;
    border-radius: 18px;
    padding: 24px 18px;
    background: #ffffff !important;
    border: 1px solid #e4ddd3 !important;
    box-shadow: 0 18px 42px rgba(55, 28, 22, .08) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.landing-proof-grid .stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 4px;
    background: #703909;
    border-radius: 0 0 999px 999px;
}

.landing-proof-grid .stat::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -28px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(112, 57, 9, .07);
    pointer-events: none;
}

.landing-proof-grid .stat:hover {
    transform: translateY(-5px);
    border-color: #efb7a8 !important;
    box-shadow: 0 24px 48px rgba(112, 57, 9, .12) !important;
}

.landing-proof-grid .num {
    position: relative;
    z-index: 1;
    color: #170f0d !important;
    font-family: var(--heading-font) !important;
    font-size: clamp(34px, 3vw, 46px) !important;
    line-height: 1;
    font-weight: 900;
}

.landing-proof-grid .label {
    position: relative;
    z-index: 1;
    color: #6b5d52 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .hero-carousel-slide::after {
        width: 42%;
        opacity: .55;
    }

    .homepage-hero-carousel {
        min-height: 520px !important;
    }

    .hero-carousel-slide {
        align-items: center;
        padding-bottom: 78px !important;
    }
}

@media (max-width: 640px) {
    .homepage-hero-carousel {
        min-height: 520px !important;
    }

    .hero-carousel-slide {
        padding: 34px 18px 86px !important;
    }

    .hero-carousel-slide::after {
        width: 100%;
        opacity: .18;
    }

    .hero-carousel-content h1,
    .hero-carousel-content h2 {
        font-size: 30px;
    }

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

/* ===== PROFESSIONAL HOMEPAGE SECTIONS ===== */
.landing-results-head,
.landing-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.landing-results-head h2,
.landing-section-head h2 {
    margin: 12px 0 0;
    color: #170f0d;
    font-family: var(--heading-font) !important;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.08;
}

.landing-results-head p,
.landing-section-head p {
    max-width: 430px;
    margin: 0;
    color: #6d5852;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 650;
}

.landing-discovery {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
    gap: 24px 36px;
    align-items: end;
    margin-top: 34px !important;
    margin-bottom: 26px !important;
    padding: 34px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid #e4ddd3 !important;
    box-shadow: 0 22px 50px rgba(55, 28, 22, .08) !important;
}

.landing-discovery-head {
    display: block !important;
    margin: 0 !important;
}

.landing-discovery-head h2 {
    max-width: 720px;
    color: #170f0d;
    font-size: clamp(32px, 4.2vw, 56px) !important;
    line-height: 1.02 !important;
    margin-top: 14px !important;
}

.landing-discovery-head p {
    max-width: 560px !important;
    margin-top: 18px !important;
    color: #6d5852 !important;
    font-size: 16px;
    line-height: 1.7 !important;
    font-weight: 600;
}

.landing-discovery-toolbar {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px !important;
    align-items: center;
    padding-top: 6px;
}

.landing-discovery .search-box {
    height: 58px;
    border-radius: 12px;
    border-color: #ead6d1;
    background: #fcfbf9;
    box-shadow: none;
}

.landing-discovery .search-box i {
    color: #703909;
}

.landing-discovery .search-box input {
    color: #170f0d;
    font-weight: 650;
}

.landing-quick-tags span {
    min-height: 40px !important;
    padding: 0 15px !important;
    background: #f6f3ee !important;
    color: #703909!important;
    border-color: #d4cbc0 !important;
    border-radius: 999px !important;
}

.landing-discovery-steps {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.landing-discovery-steps div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: center;
    min-height: 92px;
    padding: 16px;
    background: #f6f3ee;
    border: 1px solid #e4ddd3;
    border-radius: 12px;
}

.landing-discovery-steps i {
    display: none !important;
}

.landing-discovery-steps strong {
    color: #170f0d;
    font-size: 14px;
    font-weight: 900;
}

.landing-discovery-steps span {
    color: #745f59;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}

.landing-workflow-section {
    width: min(1220px, calc(100% - 36px));
    margin: 38px auto 34px;
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
}

.landing-workflow-copy,
.workflow-card {
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(55, 28, 22, .07);
}

.landing-workflow-copy {
    padding: 30px;
}

.landing-workflow-copy h2 {
    margin: 14px 0 0;
    color: #170f0d;
    font-family: var(--heading-font) !important;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.05;
}

.landing-workflow-copy p {
    margin: 18px 0 0;
    color: #6d5852;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 650;
}

.landing-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.workflow-card {
    position: relative;
    padding: 24px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.workflow-card:hover {
    transform: translateY(-5px);
    border-color: #efb7a8;
    box-shadow: 0 24px 46px rgba(112, 57, 9, .1);
}

.workflow-card span {
    color: #703909;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
}

.workflow-card i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 18px 0 20px;
    color: #ffffff;
    background: #703909;
    border-radius: 12px;
}

.workflow-card h3 {
    margin: 0;
    color: #170f0d;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}

.workflow-card p {
    margin: 10px 0 0;
    color: #6b5d52;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 650;
}

.landing-tools-section,
.landing-store-section {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 34px;
}

.landing-tools-section {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(55, 28, 22, .07);
}

.landing-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tool-card {
    padding: 22px;
    background: #f6f3ee;
    border: 1px solid #e4ddd3;
    border-radius: 14px;
}

.tool-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: #703909;
    border-radius: 11px;
    margin-bottom: 16px;
}

.tool-card h3,
.store-feature h3 {
    margin: 0;
    color: #170f0d;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}

.tool-card p,
.store-feature p {
    margin: 10px 0 0;
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 650;
}

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

.store-feature {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 24px;
    background: #170f0d;
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(23, 15, 13, .12);
}

.store-feature i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #170f0d;
    background: #ffffff;
    border-radius: 12px;
}

.store-feature h3,
.store-feature p {
    color: #ffffff;
}

.store-feature p {
    color: rgba(255, 255, 255, .78);
}

@media (max-width: 991px) {
    .landing-discovery,
    .landing-workflow-section {
        grid-template-columns: 1fr;
    }

    .landing-discovery-toolbar {
        grid-template-columns: 1fr;
    }

    .landing-workflow-grid {
        grid-template-columns: 1fr;
    }

    .landing-results-head,
    .landing-section-head {
        display: block;
    }

    .landing-results-head p,
    .landing-section-head p {
        margin-top: 14px;
    }

    .landing-tools-grid,
    .landing-store-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .landing-discovery,
    .landing-workflow-copy,
    .workflow-card,
    .landing-tools-section,
    .tool-card,
    .store-feature {
        padding: 22px !important;
    }

    .landing-quick-tags {
        gap: 8px;
    }
}

/* ===== HOMEPAGE DESIGN SYSTEM REFINEMENT ===== */
:root {
    --book-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --book-red: #703909;
    --book-red-dark: #4f2806;
    --book-ink: #170f0d;
    --book-muted: #6b5d52;
    --book-bg: #f6f3ee;
    --book-border: #e4ddd3;
    --book-soft: #faf8f4;
}

body.categories-page,
.categories-page,
.categories-page * {
    font-family: var(--book-font) !important;
}

body.categories-page {
    background: var(--book-bg) !important;
}

.categories-page .bg-shapes {
    display: none !important;
}

.homepage-hero-carousel {
    min-height: clamp(520px, 62vh, 640px) !important;
    background: var(--book-bg) !important;
}

.hero-carousel-content {
    width: min(500px, 100%);
}

.hero-carousel-content h1,
.hero-carousel-content h2 {
    max-width: 500px;
    color: var(--book-ink);
    font-size: clamp(30px, 3.2vw, 46px) !important;
    line-height: 1.12 !important;
    font-weight: 800;
}

.hero-carousel-content p {
    max-width: 470px;
    color: var(--book-muted);
    font-size: 16px !important;
    line-height: 1.58 !important;
    font-weight: 600;
}

.hero-carousel-btn,
.landing-btn,
.nav-btn,
.nav-credit-offer,
.credit-popup-primary {
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.hero-carousel-btn-primary,
.landing-btn-primary,
.nav-btn.primary {
    background: var(--book-red) !important;
    border-color: var(--book-red) !important;
}

.hero-carousel-btn-primary:hover,
.landing-btn-primary:hover,
.nav-btn.primary:hover {
    background: var(--book-red-dark) !important;
    border-color: var(--book-red-dark) !important;
}

.landing-proof-grid .stat,
.landing-discovery,
.landing-workflow-copy,
.workflow-card,
.landing-tools-section,
.tool-card,
.store-feature,
.landing-editorial-card,
.landing-categories-wrap .category-card {
    border-radius: 8px !important;
}

.landing-discovery {
    margin-top: 28px !important;
    padding: 28px !important;
}

.landing-discovery-head h2,
.landing-results-head h2,
.landing-section-head h2,
.landing-workflow-copy h2,
.landing-editorial-card h2 {
    color: var(--book-ink) !important;
    font-size: clamp(24px, 2.35vw, 32px) !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.landing-discovery-head p,
.landing-results-head p,
.landing-section-head p,
.landing-workflow-copy p,
.landing-editorial-card p,
.tool-card p,
.workflow-card p,
.store-feature p {
    color: var(--book-muted) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.landing-categories-wrap {
    padding-top: 8px;
}

.landing-workflow-section,
.landing-tools-section,
.landing-store-section,
.landing-editorial-band {
    margin-top: 34px !important;
}

.workflow-card i,
.tool-card i,
.landing-discovery-steps i {
    border-radius: 8px !important;
    background: var(--book-red) !important;
}

.store-feature {
    background: var(--book-ink) !important;
}

.store-feature h3,
.store-feature p {
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .hero-carousel-content h1,
    .hero-carousel-content h2 {
        font-size: 30px !important;
        white-space: normal;
    }

    .hero-carousel-content p {
        font-size: 15px !important;
    }
}

.hero-carousel-btn i,
.landing-btn i,
.nav-btn i,
.nav-credit-offer i,
.credit-popup-primary i,
.category-card .card-arrow i,
.credit-popup-icon i {
    display: none !important;
}

.hero-carousel-btn-primary::after,
.landing-btn-primary::after,
.credit-popup-primary::after {
    content: "?";
    font-size: 16px;
    line-height: 1;
}

.hero-carousel-btn-secondary::after,
.landing-btn-ghost::after,
.landing-btn-outline::after {
    content: "?";
    font-size: 18px;
    line-height: 1;
}

.landing-categories-wrap .card-arrow::before {
    content: "?";
    color: inherit;
    font-size: 13px;
}

.credit-popup-icon::before {
    content: "?";
    color: #703909;
    font-size: 26px;
    line-height: 1;
}

.workflow-card i,
.tool-card i,
.landing-discovery-steps i,
.store-feature i {
    display: none !important;
}

.workflow-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    color: #ffffff !important;
    background: #703909;
    border-radius: 8px;
    letter-spacing: 0 !important;
}

.landing-discovery-steps div {
    grid-template-columns: minmax(0, 1fr) !important;
}

.store-feature {
    grid-template-columns: 1fr !important;
}

.credit-popup-close i {
    display: none !important;
}

.credit-popup-close::before {
    content: "?";
    font-size: 22px;
    line-height: 1;
    color: #6b5d52;
}

.landing-discovery-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.landing-discovery-steps div {
    grid-template-columns: 1fr !important;
}

.landing-generator-section {
    width: min(1220px, calc(100% - 36px));
    margin: 34px auto;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
    gap: 18px;
    align-items: stretch;
}

.generator-panel,
.generator-preview {
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(55, 28, 22, .07);
}

.generator-panel {
    padding: 30px;
}

.generator-panel h2 {
    margin: 14px 0 0;
    color: #170f0d;
    font-size: clamp(24px, 2.35vw, 32px);
    line-height: 1.12;
    white-space: nowrap;
}

.generator-panel p {
    max-width: 520px;
    margin: 16px 0 0;
    color: #6b5d52;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 650;
}

.generator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.generator-preview {
    padding: 20px;
    background: #170f0d;
}

.generator-input {
    padding: 16px 18px;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.45;
}

.generator-output {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.generator-output strong,
.generator-output span {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
}

.generator-output strong {
    grid-column: 1 / -1;
    color: #170f0d;
    background: #ffffff;
    font-size: 18px;
}

.generator-output span {
    color: #ffffff;
    background: #703909;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .landing-generator-section,
    .landing-discovery-steps {
        grid-template-columns: 1fr !important;
    }

    .generator-panel h2 {
        white-space: normal;
    }
}

/* ===== REBUILT HEADER ===== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
    padding: 8px clamp(18px, 4vw, 56px) !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e4ddd3 !important;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .07) !important;
    backdrop-filter: none;
}

.nav-brand {
    min-width: 150px;
}

.nav-logo {
    height: 62px;
    width: auto;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn,
.nav-btn.primary,
.nav-dropdown-toggle,
.nav-credit-offer {
    min-height: 42px;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 700 !important;
    line-height: 1;
    letter-spacing: 0 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-btn,
.nav-btn.primary,
.nav-dropdown-toggle {
    background: #703909!important;
    color: #ffffff !important;
    border: 1px solid #703909!important;
    box-shadow: 0 12px 24px rgba(112, 57, 9, .18) !important;
}

.nav-btn:hover,
.nav-btn.primary:hover,
.nav-dropdown-toggle:hover {
    background: #170f0d !important;
    color: #ffffff !important;
    border-color: #170f0d !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(17, 24, 39, .18) !important;
}

.nav-credit-offer {
    background: #f6f3ee !important;
    color: #703909!important;
    border: 1px solid #e4ddd3 !important;
    box-shadow: 0 12px 24px rgba(112, 57, 9, .08) !important;
}

.nav-credit-offer:hover {
    background: #703909!important;
    color: #ffffff !important;
    border-color: #703909!important;
    transform: translateY(-2px);
}

.nav-btn i,
.nav-btn.primary i,
.nav-credit-offer i,
.nav-dropdown-toggle i {
    color: inherit !important;
    font-size: 15px;
}

.nav-dropdown-menu {
    top: calc(100% + 12px);
    min-width: 230px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e6dfd6;
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(17, 24, 39, .16);
}

.nav-dropdown-menu a {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 7px;
    color: #374151;
    font-weight: 750;
}

.nav-dropdown-menu a:hover {
    background: #f7f4ef !important;
    color: #703909!important;
}

@media (max-width: 991px) {
    .top-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .top-nav {
        padding: 12px 14px !important;
        gap: 14px;
    }

    .nav-logo {
        height: 52px;
    }

    .nav-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-btn,
    .nav-btn.primary,
    .nav-dropdown-toggle,
    .nav-credit-offer {
        width: 100%;
        min-height: 42px;
        padding: 0 10px !important;
        font-size: 14px;
    }

    .nav-btn span {
        display: inline;
    }

    .nav-dropdown-menu {
        left: 0;
        right: auto;
        width: min(230px, 92vw);
    }
}

/* Final cascade guard: never let global typography override Font Awesome icons. */
.categories-page i.fa,
.categories-page i.fas,
.categories-page i.far,
.categories-page i.fal,
.categories-page i.fat,
.categories-page i.fad,
.categories-page i.fa-solid,
.categories-page i.fa-regular,
.categories-page i.fa-light,
.categories-page i.fa-thin,
.categories-page i.fa-duotone,
i.fa,
i.fas,
i.far,
i.fal,
i.fat,
i.fad,
i.fa-solid,
i.fa-regular,
i.fa-light,
i.fa-thin,
i.fa-duotone {
    font-family: "Font Awesome 6 Free" !important;
}

.categories-page i.fas,
.categories-page i.fa-solid,
i.fas,
i.fa-solid {
    font-weight: 900 !important;
}

.categories-page i.far,
.categories-page i.fa-regular,
i.far,
i.fa-regular {
    font-weight: 400 !important;
}

.categories-page i.fab,
.categories-page i.fa-brands,
i.fab,
i.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* ===== FINAL HOMEPAGE REPAIR: NATURAL HERO, ICONS, WRAPPING ===== */
.homepage-hero-carousel {
    background: #f6f3ee !important;
}

.hero-carousel-slide {
    background-image:
        linear-gradient(90deg, rgba(246, 243, 238, .92) 0%, rgba(246, 243, 238, .78) 34%, rgba(246, 243, 238, .28) 62%, rgba(246, 243, 238, .08) 100%),
        var(--hero-image) !important;
    background-size: 100% 100%, cover !important;
    background-position: center, center right !important;
    background-repeat: no-repeat !important;
}

.hero-carousel-slide::before,
.hero-carousel-slide::after {
    content: none !important;
    display: none !important;
}

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

.hero-carousel-content h1,
.hero-carousel-content h2,
.landing-discovery-head h2,
.landing-results-head h2,
.landing-section-head h2,
.landing-workflow-copy h2,
.landing-editorial-card h2,
.generator-panel h2 {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
}

.hero-carousel-kicker,
.hero-carousel-content p,
.landing-discovery-head p,
.landing-results-head p,
.landing-section-head p,
.landing-workflow-copy p,
.landing-editorial-card p,
.tool-card p,
.workflow-card p,
.store-feature p,
.landing-categories-wrap .card-content h4,
.category-card-label,
.footer-lead,
.footer-col a,
.footer-contact-col p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}

.landing-discovery-steps,
.landing-workflow-grid,
.landing-tools-grid,
.landing-store-section,
.landing-proof-grid,
.categories-grid {
    min-width: 0;
}

.landing-discovery-steps div,
.workflow-card,
.tool-card,
.store-feature,
.landing-categories-wrap .category-card,
.landing-proof-grid .stat,
.footer-col,
.footer-brand-col {
    min-width: 0;
}

.hero-carousel-btn i,
.landing-btn i,
.nav-btn i,
.nav-credit-offer i,
.nav-dropdown-toggle i,
.credit-popup-primary i,
.category-card .card-arrow i,
.credit-popup-icon i,
.workflow-card i,
.tool-card i,
.landing-discovery-steps i,
.store-feature i,
.credit-popup-close i,
.footer-social i,
.footer-col .footer-social a i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.hero-carousel-btn i,
.landing-btn i,
.nav-btn i,
.nav-credit-offer i,
.nav-dropdown-toggle i,
.credit-popup-primary i {
    width: 1em;
    min-width: 1em;
    line-height: 1;
}

.credit-popup-icon i {
    font-size: 26px;
}

.credit-popup-close i {
    font-size: 16px;
}

.category-card .card-arrow i {
    font-size: 12px;
    line-height: 1;
}

.workflow-card i,
.tool-card i {
    display: inline-flex !important;
}

.store-feature {
    grid-template-columns: 46px minmax(0, 1fr) !important;
}

.landing-discovery-steps div {
    grid-template-columns: auto minmax(0, 1fr) !important;
}

.hero-carousel-btn-primary::after,
.landing-btn-primary::after,
.credit-popup-primary::after,
.hero-carousel-btn-secondary::after,
.landing-btn-ghost::after,
.landing-btn-outline::after,
.landing-categories-wrap .card-arrow::before,
.credit-popup-icon::before,
.credit-popup-close::before {
    content: none !important;
    display: none !important;
}

.categories-page i.fa,
.categories-page i.fas,
.categories-page i.far,
.categories-page i.fal,
.categories-page i.fat,
.categories-page i.fad,
.categories-page i.fa-solid,
.categories-page i.fa-regular,
.categories-page i.fa-light,
.categories-page i.fa-thin,
.categories-page i.fa-duotone,
i.fa,
i.fas,
i.far,
i.fal,
i.fat,
i.fad,
i.fa-solid,
i.fa-regular,
i.fa-light,
i.fa-thin,
i.fa-duotone {
    font-family: "Font Awesome 6 Free" !important;
}

.categories-page i.fas,
.categories-page i.fa-solid,
i.fas,
i.fa-solid {
    font-weight: 900 !important;
}

.categories-page i.far,
.categories-page i.fa-regular,
i.far,
i.fa-regular {
    font-weight: 400 !important;
}

.categories-page i.fab,
.categories-page i.fa-brands,
i.fab,
i.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

@media (max-width: 991px) {
    .hero-carousel-slide {
        background-image:
            linear-gradient(90deg, rgba(246, 243, 238, .94) 0%, rgba(246, 243, 238, .78) 54%, rgba(246, 243, 238, .38) 100%),
            var(--hero-image) !important;
        background-position: center, center right !important;
    }
}

@media (max-width: 640px) {
    .hero-carousel-slide {
        background-image:
            linear-gradient(180deg, rgba(246, 243, 238, .9) 0%, rgba(246, 243, 238, .82) 58%, rgba(246, 243, 238, .58) 100%),
            var(--hero-image) !important;
        background-position: center, center right !important;
    }
}

/* ===== FINAL CARD CLEANUP: 2-CARD SECTIONS + WHITE ICONS ===== */
.landing-discovery-steps,
.landing-workflow-grid,
.landing-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.landing-discovery-steps div {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 16px !important;
    row-gap: 4px !important;
    align-items: center !important;
    min-height: 118px !important;
    padding: 22px !important;
}

.landing-discovery-steps i {
    grid-row: 1 / 3;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: var(--book-red) !important;
    border-radius: 12px !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.workflow-card i,
.tool-card i,
.store-feature i {
    color: #ffffff !important;
    background: var(--book-red) !important;
}

.workflow-card span {
    color: #ffffff !important;
    background: var(--book-red) !important;
}

.workflow-card {
    min-height: 260px;
}

.tool-card {
    min-height: 210px;
}

@media (max-width: 767px) {
    .landing-discovery-steps,
    .landing-workflow-grid,
    .landing-tools-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== COMPACT HOMEPAGE CARDS + MODERN HEADING FONT ===== */
:root {
    --heading-font: "Space Grotesk", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.hero-carousel-content h1,
.hero-carousel-content h2,
.landing-discovery-head h2,
.landing-results-head h2,
.landing-section-head h2,
.landing-workflow-copy h2,
.landing-editorial-card h2,
.generator-panel h2,
.workflow-card h3,
.tool-card h3,
.store-feature h3,
.landing-categories-wrap .card-content h4 {
    font-family: var(--heading-font) !important;
    letter-spacing: -0.015em !important;
}

.landing-discovery {
    padding: 22px !important;
    margin-top: 22px !important;
    margin-bottom: 18px !important;
}

.landing-discovery-steps {
    gap: 12px !important;
}

.landing-discovery-steps div {
    min-height: 88px !important;
    padding: 14px 18px !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    column-gap: 14px !important;
}

.landing-discovery-steps i {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 10px !important;
    font-size: 17px !important;
}

.landing-discovery-steps strong {
    font-family: var(--heading-font) !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.landing-discovery-steps span {
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}

.landing-results-head {
    align-items: start !important;
    margin-top: 22px !important;
    margin-bottom: 18px !important;
}

.landing-results-head p,
.landing-section-head p {
    max-width: 640px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
}

.workflow-card,
.tool-card {
    min-height: unset !important;
    padding: 18px !important;
}

/* ===== RESPONSIVE HEADER DRAWER ===== */
.nav-toggle,
.nav-drawer-head,
.nav-drawer-backdrop {
    display: none;
}

@media (max-width: 1100px) {
    .top-nav {
        position: sticky;
        top: 0;
        z-index: 1000;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        min-height: 72px;
        padding: 8px 18px !important;
    }

    .nav-brand {
        min-width: 0 !important;
        flex: 1;
    }

    .nav-logo {
        height: 54px !important;
        max-width: 150px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        border: 1px solid rgba(112, 57, 9, .2);
        border-radius: 12px;
        color: #703909;
        background: #fff;
        box-shadow: 0 8px 20px rgba(112, 57, 9, .12);
        cursor: pointer;
        transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .nav-toggle:hover {
        background: #faf8f4;
        border-color: #703909;
        box-shadow: 0 10px 24px rgba(112, 57, 9, .16);
        transform: translateY(-1px);
    }

    .nav-toggle:active {
        transform: translateY(0);
    }

    .nav-hamburger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 18px;
        height: 14px;
    }

    .nav-hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: #703909;
        transform-origin: center;
        transition: transform .22s ease, opacity .22s ease, width .22s ease;
    }

    .nav-hamburger span:nth-child(2) {
        width: 72%;
    }

    .nav-toggle[aria-expanded="true"] .nav-hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-hamburger span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-toggle i {
        color: inherit !important;
        font-size: 17px;
        line-height: 1;
    }

    .nav-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        background: rgba(17, 24, 39, .42);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .nav-actions {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1002;
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: min(330px, 86vw) !important;
        max-width: 86vw;
        padding: 18px !important;
        background: #ffffff;
        border-right: 1px solid #e4ddd3;
        box-shadow: 24px 0 60px rgba(17, 24, 39, .18);
        overflow-y: auto;
        transform: translate3d(-110%, 0, 0);
        -webkit-transform: translate3d(-110%, 0, 0);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform .28s ease, opacity .2s ease, visibility .2s ease;
    }

    body.nav-drawer-open {
        overflow: hidden;
    }

    body.nav-drawer-open .nav-actions {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-drawer-open .nav-drawer-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding-bottom: 14px;
        margin-bottom: 4px;
        border-bottom: 1px solid #e4ddd3;
    }

    .nav-drawer-logo {
        width: 132px;
        height: auto;
        display: block;
    }

    .nav-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        min-width: 38px;
        border: 1px solid #e4ddd3;
        border-radius: 10px;
        color: #703909;
        background: #f6f3ee;
        cursor: pointer;
    }

    .nav-drawer-close i {
        color: inherit !important;
        font-size: 15px;
    }

    .nav-actions .nav-btn,
    .nav-actions .nav-btn.primary,
    .nav-actions .nav-dropdown-toggle,
    .nav-actions .nav-credit-offer {
        width: 100% !important;
        justify-content: flex-start !important;
        min-height: 42px !important;
        padding: 0 13px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        box-shadow: none !important;
        background: #faf8f4 !important;
        background-image: none !important;
        border: 1px solid #ece6dc !important;
        color: #4b3732 !important;
        text-decoration: none !important;
    }

    .nav-actions .nav-btn span,
    .nav-actions .nav-credit-offer span,
    .nav-actions .nav-dropdown-toggle span {
        display: inline !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .nav-dropdown {
        width: 100% !important;
    }

    .nav-dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 8px;
        padding: 8px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        background: #f6f3ee !important;
    }

    .nav-dropdown.is-open > .nav-dropdown-menu {
        display: block !important;
    }

    .nav-dropdown-menu a {
        min-height: 38px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    .nav-dropdown-chevron {
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .top-nav {
        min-height: 64px;
        padding: 7px 14px !important;
    }

    .nav-logo {
        height: 48px !important;
        max-width: 132px;
    }

    .nav-toggle {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 9px;
    }

    .nav-actions {
        width: min(300px, 88vw) !important;
        max-width: 88vw;
        padding: 16px !important;
    }

    .nav-drawer-logo {
        width: 118px;
    }
}

/* ===== PROGRESSIVE BOOK LISTING EXPERIENCE ===== */
.landing-categories-wrap .category-card {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    will-change: transform, opacity;
}

.landing-categories-wrap .category-card.is-visible {
    opacity: 1;
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    transition:
        opacity .52s ease,
        transform .52s cubic-bezier(.2, .75, .2, 1),
        border-color .25s ease,
        box-shadow .25s ease;
}

.landing-categories-wrap .category-card.is-loading-row {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(.985);
}

.landing-categories-wrap .category-card.is-visible:hover {
    transform: translate3d(0, calc(var(--parallax-y, 0px) - 6px), 0) !important;
}

.category-book-cover img {
    opacity: 0;
    transition: opacity .45s ease, filter .45s ease;
    filter: saturate(.9);
}

.category-book-cover img.is-loaded,
.category-book-cover img:not([data-src]) {
    opacity: 1;
    filter: saturate(1);
}

.category-row-loader {
    display: flex;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    min-height: 64px;
    margin: 34px auto 24px;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(55, 28, 22, .14);
    transform: translateY(10px) scale(.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.category-row-loader.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.category-row-loader span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #ddd5c9;
    border-top-color: #703909;
    animation: categoryLoaderSpin .6s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .landing-categories-wrap .category-card,
    .landing-categories-wrap .category-card.is-visible,
    .category-book-cover img,
    .category-row-loader span {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* ===== PREMIUM CATEGORY DETAIL PAGE ===== */
.category-detail-page {
    background: #f6f3ee;
}

.category-detail-page .category-detail-container {
    padding: 28px 0 54px;
}

.category-detail-shell {
    align-items: stretch;
}

.category-detail-cover-panel,
.category-detail-form-panel {
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(61, 28, 20, .08);
}

.category-detail-cover-panel {
    position: sticky;
    top: 98px;
    align-self: start;
    min-height: 700px;
    padding: 24px;
    overflow: hidden;
}

.category-detail-cover-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 10%, rgba(112, 57, 9, .1), transparent 34%),
        linear-gradient(180deg, #f6f3ee 0%, #ffffff 62%);
    pointer-events: none;
}

.category-detail-back,
.selected-book-stage,
.selected-category-summary {
    position: relative;
    z-index: 1;
}

.category-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    color: #703909;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(112, 57, 9, .08);
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.category-detail-back:hover {
    color: #703909;
    background: #f3efe8;
    border-color: #8dd4ca;
    transform: translateY(-2px);
}

.selected-book-stage {
    display: flex;
    justify-content: center;
    padding: 30px 0 24px;
    perspective: 1200px;
}

.selected-book-cover {
    position: relative;
    width: min(250px, 74vw);
    aspect-ratio: 2 / 3;
    border-radius: 15px 9px 9px 15px;
    box-shadow:
        0 28px 42px rgba(15, 23, 42, .18),
        13px 18px 0 rgba(15, 23, 42, .08);
    transform: rotateY(-8deg) rotateZ(-1deg);
    transform-origin: left center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.category-detail-cover-panel:hover .selected-book-cover {
    transform: rotateY(-4deg) rotateZ(0deg) translateY(-4px);
    box-shadow:
        0 34px 54px rgba(15, 23, 42, .2),
        14px 20px 0 rgba(15, 23, 42, .08);
}

.selected-book-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.selected-book-spine {
    position: absolute;
    inset: 0 auto 0 0;
    width: 18px;
    border-radius: 15px 0 0 15px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(255, 255, 255, .08), transparent);
    pointer-events: none;
}

.selected-book-pages {
    position: absolute;
    top: 13px;
    right: -10px;
    width: 17px;
    height: calc(100% - 26px);
    border-radius: 0 8px 8px 0;
    background: repeating-linear-gradient(90deg, #ffffff 0 3px, #e8edf3 3px 5px);
    box-shadow: 5px 8px 18px rgba(15, 23, 42, .12);
    z-index: -1;
}

.selected-book-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255,255,255,.32), transparent 34%, transparent 70%, rgba(255,255,255,.12));
    pointer-events: none;
}

.selected-category-summary {
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid #e4ddd3;
}

.selected-label,
.detail-kicker,
.description-panel-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #703909;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.selected-category-summary h2,
.selected-category-summary .selected-category-title {
    margin: 10px 0 8px;
    color: #170f0d;
    font-family: var(--heading-font) !important;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.03em;
}

.selected-category-summary p {
    margin: 0;
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.7;
}

.category-detail-form-panel {
    padding: 34px 40px;
}

.category-detail-header {
    max-width: 820px;
    margin-bottom: 26px;
}

.detail-kicker {
    min-height: 34px;
    padding: 0 13px;
    background: #f3efe8;
    border: 1px solid #e4ddd3;
    border-radius: 999px;
}

.category-detail-header h1 {
    margin: 16px 0 10px;
    color: #170f0d;
    font-family: var(--heading-font) !important;
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.045em;
}

.category-detail-header p {
    margin: 0;
    color: #6b5d52;
    font-size: 16px;
    line-height: 1.75;
}

.category-brief-form {
    display: grid;
    gap: 22px;
}

.category-detail-page .book-style-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.category-detail-page .book-style-field {
    min-width: 0;
}

.category-detail-page .book-style-field label {
    display: block;
    margin: 0 0 8px;
    color: #170f0d;
    font-size: 13px;
    font-weight: 900;
}

.category-detail-page .book-style-field select,
.category-detail-page .form-textarea {
    width: 100%;
    color: #170f0d;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    font-family: var(--heading-font) !important;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.category-detail-page .book-style-field select {
    min-height: 54px;
    padding: 0 16px;
}

.category-detail-page .book-style-field select:focus,
.category-detail-page .form-textarea:focus {
    border-color: #703909;
    box-shadow: 0 0 0 4px rgba(112, 57, 9, .08);
}

.description-panel {
    padding: 20px;
    background: #faf8f4;
    border: 1px solid #e4ddd3;
    border-radius: 18px;
}

.description-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.description-panel-head strong {
    display: block;
    margin-top: 5px;
    color: #170f0d;
    font-size: 17px;
    line-height: 1.3;
}

.category-detail-page .btn-ai-description {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    color: #ffffff;
    background: #703909;
    border: 1px solid #703909;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(112, 57, 9, .16);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.category-detail-page .btn-ai-description:hover {
    color: #ffffff;
    background: #4f2806;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(112, 57, 9, .2);
}

.category-detail-page .form-textarea {
    min-height: 190px;
    resize: vertical;
    padding: 18px;
    line-height: 1.7;
}

.category-detail-page .category-detail-submit {
    width: fit-content;
    min-height: 52px;
    padding: 0 24px;
    color: #ffffff;
    background: #703909;
    border: 1px solid #703909;
    border-radius: 13px;
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(112, 57, 9, .18);
}

.category-detail-page .category-detail-submit:hover {
    color: #ffffff;
    background: #4f2806;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .category-detail-cover-panel {
        position: relative;
        top: auto;
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
        gap: 24px;
        align-items: center;
    }

    .category-detail-back {
        grid-column: 1 / -1;
    }

    .selected-book-stage {
        padding: 0;
    }
}

@media (max-width: 720px) {
    .category-detail-page .category-detail-container {
        padding-top: 24px;
    }

    .category-detail-cover-panel,
    .category-detail-form-panel {
        border-radius: 18px;
    }

    .category-detail-cover-panel {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .selected-book-cover {
        width: min(220px, 70vw);
    }

    .category-detail-form-panel {
        padding: 22px;
    }

    .category-detail-page .book-style-grid {
        grid-template-columns: 1fr;
    }

    .description-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .category-detail-page .btn-ai-description,
    .category-detail-page .category-detail-submit {
        width: 100%;
    }
}

/* ===== WEBSITE BUTTON SIZE SYSTEM (DASHBOARD EXCLUDED) ===== */
body.categories-page :is(
    .nav-btn,
    .nav-credit-offer,
    .landing-btn,
    .hero-carousel-btn,
    .btn-ai-description,
    .btn-submit,
    .btn-retry,
    .btn-confirm,
    .btn-buy-package,
    .popular-read-link,
    .credit-popup-primary,
    .credit-popup-secondary,
    .hero-credit-cta a,
    .category-detail-back,
    .popular-search button,
    .authors-search button,
    .follow-form button
) {
    min-height: 36px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    border: 1px solid #703909!important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    color: #ffffff !important;
    background: #703909!important;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease !important;
}

body.categories-page :is(
    .nav-btn,
    .nav-credit-offer,
    .landing-btn,
    .hero-carousel-btn,
    .btn-ai-description,
    .btn-submit,
    .btn-retry,
    .btn-confirm,
    .btn-buy-package,
    .popular-read-link,
    .credit-popup-primary,
    .credit-popup-secondary,
    .hero-credit-cta a,
    .category-detail-back,
    .popular-search button,
    .authors-search button,
    .follow-form button
):hover {
    color: #ffffff !important;
    background: #4f2806 !important;
    border-color: #4f2806 !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(112, 57, 9, .2) !important;
}

body.categories-page :is(
    .landing-btn-outline,
    .landing-btn-secondary,
    .hero-carousel-btn-secondary,
    .credit-popup-secondary
) {
    color: #703909!important;
    background: #ffffff !important;
    border-color: #e4ddd3 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
}

body.categories-page :is(
    .landing-btn-outline,
    .landing-btn-secondary,
    .hero-carousel-btn-secondary,
    .credit-popup-secondary
):hover {
    color: #ffffff !important;
    background: #703909!important;
    border-color: #703909!important;
}

body.categories-page :is(
    .nav-btn i,
    .nav-credit-offer i,
    .landing-btn i,
    .hero-carousel-btn i,
    .btn-ai-description i,
    .btn-submit i,
    .btn-retry i,
    .btn-confirm i,
    .btn-buy-package i,
    .category-detail-back i
) {
    flex: 0 0 auto;
    color: currentColor !important;
    font-size: 14px !important;
}

@media (max-width: 576px) {
    body.categories-page :is(
        .landing-btn,
        .hero-carousel-btn,
        .btn-ai-description,
        .btn-submit,
        .btn-buy-package,
        .credit-popup-primary,
        .credit-popup-secondary,
        .popular-search button,
        .authors-search button
    ) {
        width: 100% !important;
        white-space: normal !important;
        min-height: 46px !important;
        padding: 10px 14px !important;
    }
}

/* ===== PREMIUM TITLE CHOICE PAGE ===== */
.title-choice-page {
    background: #f6f3ee;
}

.title-choice-container {
    padding: 34px 0 70px;
}

.title-choice-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 24px;
    align-items: start;
}

.title-choice-sidebar,
.title-choice-page .titles-section,
.title-choice-page .loader-section,
.title-choice-page .error-state {
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(61, 28, 20, .08);
}

.title-choice-sidebar {
    position: sticky;
    top: 98px;
    min-height: 680px;
    padding: 24px;
    overflow: hidden;
}

.title-choice-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 0%, rgba(112, 57, 9, .1), transparent 34%),
        linear-gradient(180deg, #f6f3ee 0%, #ffffff 64%);
    pointer-events: none;
}

.title-choice-sidebar > * {
    position: relative;
    z-index: 1;
}

.title-choice-back {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: #703909;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(112, 57, 9, .08);
}

.title-choice-cover {
    position: relative;
    width: min(230px, 72%);
    aspect-ratio: 2 / 3;
    margin: 34px auto 28px;
    border-radius: 15px 9px 9px 15px;
    box-shadow:
        0 28px 42px rgba(15, 23, 42, .18),
        12px 18px 0 rgba(15, 23, 42, .08);
    transform: rotateY(-7deg) rotateZ(-1deg);
    transform-origin: left center;
}

.title-choice-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.title-choice-cover span {
    position: absolute;
    top: 13px;
    right: -10px;
    width: 16px;
    height: calc(100% - 26px);
    border-radius: 0 8px 8px 0;
    background: repeating-linear-gradient(90deg, #ffffff 0 3px, #e8edf3 3px 5px);
    box-shadow: 5px 8px 18px rgba(15, 23, 42, .12);
    z-index: -1;
}

.title-choice-brief {
    padding: 20px;
    border: 1px solid #e4ddd3;
    border-radius: 18px;
    background: rgba(255, 255, 255, .84);
}

.title-choice-brief span {
    display: inline-flex;
    color: #703909;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.title-choice-brief h2 {
    margin: 9px 0 8px;
    color: #170f0d;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.03em;
}

.title-choice-brief p {
    margin: 0;
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.65;
}

.title-choice-steps {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.title-choice-steps div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    color: #6b5d52;
    background: #faf8f4;
    border: 1px solid #e4ddd3;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
}

.title-choice-steps i {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #703909;
    background: #f3efe8;
    border-radius: 999px;
    font-size: 11px;
}

.title-choice-steps .is-active {
    color: #170f0d;
    border-color: #703909;
}

.title-choice-page .loader-section,
.title-choice-page .error-state {
    grid-column: 2;
    min-height: 420px;
    padding: 54px 28px;
}

.title-choice-page .titles-section {
    padding: 34px;
}

.title-choice-page .titles-header {
    margin-bottom: 24px;
}

.title-choice-page .titles-header .category-tag {
    min-height: 34px;
    padding: 0 13px;
    color: #703909;
    background: #f3efe8;
    border: 1px solid #e4ddd3;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.title-choice-page .titles-header h1 {
    max-width: 820px;
    margin: 16px 0 10px;
    color: #170f0d;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.045em;
}

.title-choice-page .titles-header p {
    max-width: 760px;
    color: #6b5d52;
    font-size: 16px;
    line-height: 1.7;
}

.title-choice-page .titles-grid {
    gap: 14px;
    margin-bottom: 24px;
}

.title-choice-page .title-card {
    min-height: 96px;
    padding: 18px 20px;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.title-choice-page .title-card:hover {
    border-color: #8dd4ca;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(61, 28, 20, .1);
}

.title-choice-page .title-card.selected {
    border-color: #703909;
    background: #faf8f4;
    box-shadow: 0 18px 40px rgba(112, 57, 9, .12);
}

.title-choice-page .title-card::before {
    width: 5px;
    background: #703909;
}

.title-choice-page .title-number {
    width: 42px;
    height: 42px;
    min-width: 42px;
    color: #703909;
    background: #f3efe8;
    border-radius: 12px;
    font-weight: 900;
}

.title-choice-page .title-card:hover .title-number,
.title-choice-page .title-card.selected .title-number {
    color: #ffffff;
    background: #703909;
}

.title-choice-page .title-content h3 {
    color: #170f0d;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.title-choice-page .title-content p {
    margin-top: 5px;
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.45;
}

.title-choice-page .title-select {
    width: 42px;
    height: 42px;
    min-width: 42px;
    color: #8a7b6e;
    background: #faf8f4;
    border: 2px solid #e4ddd3;
}

.title-choice-page .title-card.selected .title-select {
    color: #ffffff;
    background: #703909;
    border-color: #703909;
}

.title-choice-page .selected-form {
    padding: 24px;
    border: 1px solid #e4ddd3;
    border-radius: 18px;
    background: #faf8f4;
    box-shadow: 0 18px 44px rgba(61, 28, 20, .07);
}

.title-choice-page .selected-form h3 {
    color: #170f0d;
    font-size: 22px;
    font-weight: 900;
}

.title-choice-page .selected-form .form-input {
    min-height: 54px;
    border-radius: 14px;
    border-color: #dbe4ef;
    font-size: 15px;
}

@media (max-width: 991px) {
    .title-choice-layout {
        grid-template-columns: 1fr;
    }

    .title-choice-sidebar {
        position: relative;
        top: auto;
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
        gap: 20px;
    }

    .title-choice-back,
    .title-choice-steps {
        grid-column: 1 / -1;
    }

    .title-choice-cover {
        width: min(210px, 100%);
        margin: 0 auto;
    }

    .title-choice-page .loader-section,
    .title-choice-page .error-state {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .title-choice-container {
        padding: 22px 0 48px;
    }

    .title-choice-sidebar,
    .title-choice-page .titles-section {
        border-radius: 18px;
        padding: 20px;
    }

    .title-choice-sidebar {
        grid-template-columns: 1fr;
    }

    .title-choice-page .titles-header h1 {
        font-size: 34px;
    }

    .title-choice-page .title-card {
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .title-choice-page .title-select {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
}

/* Header link/button adjustment */
.top-nav .nav-link-item,
.top-nav .nav-dropdown-toggle.nav-link-item {
    min-height: 36px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #4b3732 !important;
    box-shadow: none !important;
    font-family: var(--heading-font, "Manrope", system-ui, sans-serif) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.top-nav .nav-link-item:hover,
.top-nav .nav-dropdown-toggle.nav-link-item:hover,
.top-nav .nav-dropdown:focus-within > .nav-link-item {
    color: #703909 !important;
    background: #f6f3ee !important;
}

.top-nav .nav-link-item i {
    color: inherit !important;
    font-size: 13px !important;
}

.top-nav .nav-pdf-download-btn,
.top-nav .nav-auth-btn {
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    gap: 7px !important;
    line-height: 1 !important;
}

@media (max-width: 1100px) {
    .top-nav .nav-actions .nav-link-item,
    .top-nav .nav-actions .nav-dropdown-toggle.nav-link-item,
    .top-nav .nav-actions .nav-pdf-download-btn,
    .top-nav .nav-actions .nav-auth-btn {
        width: 100% !important;
        justify-content: flex-start !important;
        min-height: 40px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }
}

/* Compact website buttons */
body.categories-page :is(
    .btn,
    button,
    .nav-btn,
    .landing-btn,
    .hero-carousel-btn,
    .btn-submit,
    .btn-ai-description,
    .btn-buy-package,
    .popular-read-link,
    .read-link,
    .book-page-btn,
    .favorite-btn,
    .review-submit,
    .contact-submit,
    .credit-popup-primary
) {
    min-height: 36px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.categories-page :is(.nav-toggle, .nav-drawer-close, .icon-btn, .back-to-top) {
    padding: 0 !important;
}

.top-nav .nav-toggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.top-nav .nav-drawer-close {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

/* Keep Font Awesome icons visible after compact button/font overrides. */
.categories-page :is(.fa, .fas, .far, .fal, .fat, .fad, .fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone),
:is(.fa, .fas, .far, .fal, .fat, .fad, .fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone) {
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal !important;
    font-variant: normal !important;
    line-height: 1 !important;
}

.categories-page :is(.fas, .fa-solid),
:is(.fas, .fa-solid) {
    font-weight: 900 !important;
}

.categories-page :is(.far, .fa-regular),
:is(.far, .fa-regular) {
    font-weight: 400 !important;
}

.categories-page :is(.fab, .fa-brands),
:is(.fab, .fa-brands) {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Keep carousel navigation as thin underline indicators, not full buttons. */
body.categories-page .hero-carousel-dots {
    align-items: center !important;
    gap: 12px !important;
}

body.categories-page .hero-carousel-dots button {
    display: block !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 2px !important;
    min-height: 2px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(112, 57, 9, .24) !important;
    box-shadow: none !important;
    line-height: 0 !important;
}

body.categories-page .hero-carousel-dots button.is-active {
    width: 64px !important;
    min-width: 64px !important;
    height: 2px !important;
    min-height: 2px !important;
    background: #703909 !important;
}

/* Complete homepage rebuild below the hero */
.home-proof-ribbon,
.home-library-stage,
.home-studio-story,
.home-pathway-section,
.home-reader-market,
.home-publish-banner,
.home-final-invite {
    width: min(1220px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

.home-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .75, .2, 1);
    will-change: opacity, transform;
}

.home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-proof-ribbon {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 30px;
    margin-bottom: 30px;
    border-top: 1px solid #e4ddd3;
    border-bottom: 1px solid #e4ddd3;
    background: rgba(255, 255, 255, .58);
}

.home-proof-ribbon div {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
    border-right: 1px solid #e4ddd3;
}

.home-proof-ribbon div:last-child {
    border-right: 0;
}

.home-proof-ribbon strong {
    color: #170f0d;
    font-family: var(--heading-font) !important;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
    font-weight: 900;
}

.home-proof-ribbon span {
    margin-top: 8px;
    color: #6b5d52;
    font-size: 13px;
    font-weight: 800;
}

.home-library-stage {
    margin-top: 0 !important;
    margin-bottom: 46px !important;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #e4ddd3;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(246, 243, 238, .92)),
        url("../images/hero-carousel/bookstore-discovery.webp") center top / cover no-repeat;
    box-shadow: 0 24px 62px rgba(55, 28, 22, .08);
}

.home-library-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.home-library-hero h2,
.home-story-copy h2,
.home-pathway-head h2,
.home-reader-copy h2,
.home-publish-copy h2,
.home-final-copy h2 {
    margin: 12px 0 0;
    color: #170f0d;
    font-family: var(--heading-font) !important;
    font-size: clamp(32px, 4.4vw, 60px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.home-library-hero p,
.home-story-copy p,
.home-reader-copy p,
.home-publish-copy p,
.home-final-copy p {
    max-width: 620px;
    margin: 16px 0 0;
    color: #6b5d52;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 600;
}

.home-library-search {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(228, 221, 211, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(10px);
}

.home-library-stage .categories-grid {
    position: relative;
    z-index: 1;
}

.home-studio-story,
.home-reader-market,
.home-publish-banner,
.home-final-invite {
    position: relative;
    overflow: hidden;
    border: 1px solid #e4ddd3;
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(55, 28, 22, .1);
}

.home-studio-story {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
    gap: 24px;
    align-items: center;
    min-height: 520px;
    margin-bottom: 44px;
    padding: clamp(28px, 5vw, 58px);
    background:
        linear-gradient(90deg, rgba(246, 243, 238, .98), rgba(246, 243, 238, .72)),
        url("../images/hero-carousel/ai-editing-suite.webp") center right / cover no-repeat;
}

.home-story-actions,
.home-reader-actions,
.home-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.home-studio-visual {
    position: relative;
    min-height: 360px;
    transform: translate3d(0, var(--home-parallax-y, 0px), 0);
    transition: transform .2s linear;
}

.studio-book-cover {
    position: absolute;
    right: clamp(40px, 7vw, 90px);
    top: 20px;
    width: min(230px, 48%);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px 7px 7px 12px;
    box-shadow: 0 34px 56px rgba(23, 15, 13, .24);
    transform: rotate(-5deg);
}

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

.studio-manuscript-card {
    position: absolute;
    left: 0;
    bottom: 24px;
    width: min(330px, 72%);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 24px 52px rgba(55, 28, 22, .16);
    backdrop-filter: blur(12px);
}

.studio-manuscript-card span {
    color: #703909;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.studio-manuscript-card strong {
    display: block;
    margin-top: 8px;
    color: #170f0d;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.studio-manuscript-card small {
    display: block;
    margin-top: 10px;
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.home-pathway-section {
    margin-bottom: 44px;
}

.home-pathway-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.home-pathway-head h2 {
    max-width: 760px;
    font-size: clamp(30px, 3.8vw, 52px);
}

.home-pathway-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e4ddd3;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.home-pathway-grid div {
    min-height: 248px;
    padding: 26px;
    border-right: 1px solid #e4ddd3;
    transition: background .25s ease, transform .25s ease;
}

.home-pathway-grid div:last-child {
    border-right: 0;
}

.home-pathway-grid div:hover {
    background: #f6f3ee;
    transform: translateY(-4px);
}

.home-pathway-grid span {
    color: #703909;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
}

.home-pathway-grid h3 {
    margin: 42px 0 0;
    color: #170f0d;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
}

.home-pathway-grid p {
    margin: 10px 0 0;
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.62;
    font-weight: 600;
}

.home-reader-market {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1fr);
    align-items: stretch;
    margin-bottom: 44px;
    background: #170f0d;
}

.home-reader-art {
    min-height: 450px;
    transform: translate3d(0, var(--home-parallax-y, 0px), 0) scale(1.04);
    transition: transform .2s linear;
}

.home-reader-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-reader-copy {
    padding: clamp(30px, 5vw, 58px);
}

.home-reader-copy .landing-section-label,
.home-publish-copy .landing-section-label {
    color: #e6dfd5;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
}

.home-reader-copy h2,
.home-reader-copy p,
.home-publish-copy h2,
.home-publish-copy p {
    color: #ffffff;
}

.home-reader-copy p,
.home-publish-copy p {
    color: rgba(255, 255, 255, .76);
}

.home-publish-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
    gap: 28px;
    align-items: center;
    min-height: 430px;
    margin-bottom: 44px;
    padding: clamp(30px, 5vw, 58px);
    background:
        linear-gradient(135deg, rgba(112, 57, 9, .95), rgba(23, 15, 13, .92)),
        url("../images/hero-carousel/publishing-launch.webp") center / cover no-repeat;
}

.home-publish-points {
    display: grid;
    gap: 12px;
}

.home-publish-points span {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    font-size: 15px;
    font-weight: 700;
}

.home-publish-points i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #703909;
    background: #ffffff;
    border-radius: 999px;
}

.home-final-invite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
    padding: clamp(28px, 4vw, 46px);
    background:
        linear-gradient(90deg, rgba(246, 243, 238, .98), rgba(246, 243, 238, .78)),
        url("../images/landing-hero-v2.webp") center right / cover no-repeat;
}

.home-final-copy h2 {
    max-width: 760px;
    font-size: clamp(30px, 3.6vw, 50px);
}

.home-final-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-top: 0;
}

@media (max-width: 1100px) {
    .home-library-hero,
    .home-studio-story,
    .home-reader-market,
    .home-publish-banner {
        grid-template-columns: 1fr;
    }

    .home-pathway-head,
    .home-final-invite {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .home-pathway-grid div:nth-child(2) {
        border-right: 0;
    }

    .home-final-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .home-proof-ribbon,
    .home-library-stage,
    .home-studio-story,
    .home-pathway-section,
    .home-reader-market,
    .home-publish-banner,
    .home-final-invite {
        width: min(100% - 24px, 1220px);
    }

    .home-proof-ribbon,
    .home-pathway-grid {
        grid-template-columns: 1fr;
    }

    .home-proof-ribbon div,
    .home-pathway-grid div {
        border-right: 0;
        border-bottom: 1px solid #e4ddd3;
    }

    .home-proof-ribbon div:last-child,
    .home-pathway-grid div:last-child {
        border-bottom: 0;
    }

    .home-reader-art {
        min-height: 270px;
    }

    .home-story-actions,
    .home-reader-actions,
    .home-final-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== LANDING REDEVELOPMENT 2026: PREMIUM HEADER / BOOKS / SECTIONS ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .28s ease, background .28s ease, backdrop-filter .28s ease;
}

.site-header .top-nav {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    min-height: 74px;
    padding: 10px clamp(18px, 4vw, 56px) !important;
    background: rgba(255, 255, 255, .78) !important;
    border-bottom: 1px solid rgba(228, 221, 211, .7) !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    transition: background .28s ease, border-color .28s ease, box-shadow .28s ease, min-height .28s ease;
}

.site-header.is-scrolled .top-nav {
    min-height: 66px;
    background: rgba(255, 255, 255, .92) !important;
    border-bottom-color: #e4ddd3 !important;
    box-shadow: 0 18px 40px rgba(23, 15, 13, .08) !important;
}

.site-header .nav-logo {
    height: 58px;
    transition: height .28s ease, transform .28s ease;
}

.site-header.is-scrolled .nav-logo {
    height: 50px;
}

.site-header .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.site-header .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.site-header .nav-cta-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 14px;
    border-left: 1px solid #e4ddd3;
}

.site-header .nav-link-item,
.site-header .nav-dropdown-toggle.nav-link-item {
    position: relative;
    min-height: 38px !important;
    padding: 0 12px !important;
    color: #4b3732 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 750 !important;
}

.site-header .nav-link-item::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: #703909;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s cubic-bezier(.2, .75, .2, 1);
}

.site-header .nav-link-item:hover::after,
.site-header .nav-dropdown:focus-within > .nav-link-item::after {
    transform: scaleX(1);
}

.site-header .nav-link-accent {
    color: #703909 !important;
}

.site-header .nav-dropdown-chevron {
    margin-left: 4px;
    font-size: 10px !important;
    opacity: .7;
}

.site-header .nav-auth-ghost {
    color: #703909 !important;
    background: #ffffff !important;
    border: 1px solid #e4ddd3 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05) !important;
}

.site-header .nav-auth-ghost:hover {
    color: #ffffff !important;
    background: #703909 !important;
    border-color: #703909 !important;
}

body.categories-page .site-header .nav-auth-ghost {
    color: #703909 !important;
    background: #ffffff !important;
    border-color: #e4ddd3 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05) !important;
}

body.categories-page .site-header .nav-auth-ghost:hover {
    color: #ffffff !important;
    background: #703909 !important;
    border-color: #703909 !important;
}

@media (max-width: 1100px) {
    .site-header .nav-cta-group {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .site-header .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .site-header .nav-link-item::after {
        display: none;
    }
}

/* Realistic bookstore shelf cards ? frontal covers with right page edge */
.landing-categories-wrap .category-card.category-book-shelf,
.landing-categories-wrap .category-card {
    position: relative;
    gap: 14px !important;
    padding: 8px 6px 12px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.landing-categories-wrap .category-card.category-book-shelf:hover,
.landing-categories-wrap .category-card:hover {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.landing-categories-wrap .category-cover-wrap {
    position: relative;
    padding: 10px 14px 18px 8px !important;
    min-height: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    perspective: 1200px;
}

.landing-categories-wrap .category-book-cover {
    width: min(148px, 88%) !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 4px !important;
    transform: perspective(1200px) rotateY(-8deg);
    transform-origin: left center;
    box-shadow:
        0 18px 34px rgba(23, 15, 13, .22),
        0 4px 10px rgba(23, 15, 13, .12) !important;
    transition: transform .35s cubic-bezier(.2, .75, .2, 1), box-shadow .35s ease !important;
    will-change: transform;
    overflow: visible !important;
    background: #170f0d;
}

.landing-categories-wrap .category-book-cover img {
    border-radius: 4px;
}

.landing-categories-wrap .category-card:hover .category-book-cover,
.landing-categories-wrap .category-card.is-visible:hover .category-book-cover {
    transform: perspective(1200px) rotateY(-2deg) translateY(-8px) !important;
    box-shadow:
        0 28px 48px rgba(112, 57, 9, .24),
        0 8px 16px rgba(23, 15, 13, .14) !important;
}

.category-book-edge {
    position: absolute;
    top: 3%;
    bottom: 3%;
    right: -11px;
    width: 12px;
    border-radius: 0 3px 3px 0;
    background:
        repeating-linear-gradient(
            180deg,
            #faf8f4 0 1px,
            #e5e7eb 1px 2px,
            #ffffff 2px 3px
        );
    box-shadow:
        2px 0 0 rgba(15, 23, 42, .06),
        6px 8px 18px rgba(15, 23, 42, .12);
    pointer-events: none;
    z-index: 2;
}

.landing-categories-wrap .category-book-spine {
    width: 10px !important;
    background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .08), transparent) !important;
    mix-blend-mode: multiply;
}

.landing-categories-wrap .category-book-pages {
    display: none !important;
}

.category-book-shadow {
    position: absolute;
    left: 18%;
    right: 10%;
    bottom: 4px;
    height: 16px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(23, 15, 13, .28), transparent 70%);
    filter: blur(2px);
    opacity: .75;
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}

.landing-categories-wrap .category-card:hover .category-book-shadow {
    opacity: .45;
    transform: translateY(4px) scaleX(1.05);
}

.landing-categories-wrap .card-content h4,
.landing-categories-wrap .card-content .category-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
}

.landing-categories-wrap .card-arrow {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .28s ease, transform .28s ease, background .25s ease, color .25s ease !important;
}

.landing-categories-wrap .category-card:hover .card-arrow {
    opacity: 1;
    transform: translateY(0) translateX(2px);
}

.landing-categories-wrap .category-card.is-visible:hover {
    transform: none !important;
}

.landing-quick-tags button,
.landing-quick-tags span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #f7f4ef;
    color: #703909;
    border: 1px solid #e2dbd0;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.landing-quick-tags button:hover,
.landing-quick-tags span:hover {
    color: #ffffff;
    background: #703909;
    border-color: #703909;
    transform: translateY(-1px);
}

body.categories-page .landing-quick-tags button {
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    color: #703909 !important;
    background: #f7f4ef !important;
    border: 1px solid #e2dbd0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

body.categories-page .landing-quick-tags button:hover {
    color: #ffffff !important;
    background: #703909 !important;
    border-color: #703909 !important;
}

/* New premium sections */
.home-kids-banner,
.home-benefits,
.home-how-it-works,
.home-community,
.home-cta-finale {
    width: min(1220px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

.home-kids-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
    align-items: stretch;
    min-height: 520px;
    margin-bottom: 56px;
    overflow: hidden;
    border: 1px solid #e4ddd3;
    border-radius: 18px;
    background: #170f0d;
    box-shadow: 0 28px 70px rgba(55, 28, 22, .12);
}

.home-kids-media {
    position: absolute;
    inset: 0;
    transform: translate3d(0, var(--home-parallax-y, 0px), 0) scale(1.04);
    transition: transform .2s linear;
}

.home-kids-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
}

.home-kids-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(23, 15, 13, .88) 0%, rgba(23, 15, 13, .62) 42%, rgba(23, 15, 13, .18) 72%, rgba(23, 15, 13, .05) 100%);
    pointer-events: none;
}

.home-kids-copy {
    position: relative;
    z-index: 2;
    grid-column: 1;
    padding: clamp(34px, 5vw, 64px);
    max-width: 560px;
}

.home-kids-copy .landing-section-label {
    color: #e6dfd5;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}

.home-kids-copy h2 {
    margin: 14px 0 0;
    color: #ffffff;
    font-family: var(--heading-font) !important;
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.04em;
}

.home-kids-copy p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 600;
}

.home-kids-actions,
.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-kids-actions .landing-btn-outline,
body.categories-page .home-kids-actions .landing-btn-outline {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .12) !important;
    border-color: rgba(255, 255, 255, .42) !important;
    box-shadow: none !important;
}

.home-kids-actions .landing-btn-outline:hover,
body.categories-page .home-kids-actions .landing-btn-outline:hover {
    color: #170f0d !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
}

.home-benefits {
    margin-bottom: 56px;
}

.home-benefits-head,
.home-how-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.home-benefits-head h2,
.home-how-head h2,
.home-community-copy h2,
.home-cta-copy h2 {
    margin: 12px 0 0;
    color: #170f0d;
    font-family: var(--heading-font) !important;
    font-size: clamp(30px, 3.8vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.04em;
}

.home-benefits-head p,
.home-community-copy p,
.home-cta-copy p {
    margin: 16px 0 0;
    color: #6b5d52;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 600;
}

.home-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-benefit-card {
    position: relative;
    min-height: 220px;
    padding: 26px 24px;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(55, 28, 22, .06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .75, .2, 1), border-color .25s ease, box-shadow .25s ease;
}

.home-benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #703909, #c47a3a);
    opacity: .85;
}

.home-benefit-card.is-in {
    opacity: 1;
    transform: translateY(0);
}

.home-benefit-card:hover {
    border-color: #efb7a8;
    box-shadow: 0 24px 52px rgba(112, 57, 9, .12);
    transform: translateY(-6px);
}

.home-benefit-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #ffffff;
    background: #703909;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(112, 57, 9, .2);
}

.home-benefit-icon i {
    color: inherit !important;
    font-size: 18px !important;
}

.home-benefit-card h3 {
    margin: 0;
    color: #170f0d;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.home-benefit-card p {
    margin: 12px 0 0;
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;
}

.home-how-it-works {
    margin-bottom: 56px;
}

.home-how-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e4ddd3;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 22px 54px rgba(55, 28, 22, .07);
}

.home-how-step {
    position: relative;
    min-height: 260px;
    padding: 28px 24px;
    border-right: 1px solid #e4ddd3;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .75, .2, 1), background .25s ease;
}

.home-how-step:last-child {
    border-right: 0;
}

.home-how-step.is-in {
    opacity: 1;
    transform: translateY(0);
}

.home-how-step:hover {
    background: #f6f3ee;
}

.home-how-num {
    display: inline-flex;
    color: #703909;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .16em;
}

.home-how-step h3 {
    margin: 48px 0 0;
    color: #170f0d;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 900;
}

.home-how-step p {
    margin: 12px 0 0;
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;
}

.home-community {
    margin-bottom: 56px;
}

.home-community-stage {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid #e4ddd3;
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 18%, rgba(112, 57, 9, .1), transparent 34%),
        linear-gradient(180deg, #ffffff, #f6f3ee);
    box-shadow: 0 26px 64px rgba(55, 28, 22, .08);
}

.home-orbit-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .55;
}

.home-community-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-bottom: 28px;
}

.home-testimonial-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-testimonial {
    margin: 0;
    padding: 24px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid #e4ddd3;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(55, 28, 22, .06);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .75, .2, 1), box-shadow .25s ease;
}

.home-testimonial.is-in {
    opacity: 1;
    transform: translateY(0);
}

.home-testimonial:hover {
    box-shadow: 0 22px 44px rgba(112, 57, 9, .12);
    transform: translateY(-4px);
}

.home-testimonial p {
    margin: 0;
    color: #3f2c27;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 650;
}

.home-testimonial footer {
    display: grid;
    gap: 2px;
    margin-top: 18px;
}

.home-testimonial strong {
    color: #170f0d;
    font-size: 15px;
    font-weight: 900;
}

.home-testimonial span {
    color: #703909;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-cta-finale {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: clamp(34px, 5vw, 58px);
    border: 1px solid #e4ddd3;
    border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(246, 243, 238, .96), rgba(246, 243, 238, .78)),
        url("../images/hero-carousel/publishing-launch.webp") center right / cover no-repeat;
    box-shadow: 0 28px 70px rgba(55, 28, 22, .1);
}

.home-cta-copy {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .2, 1);
}

.home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .home-kids-banner,
    .home-benefits-grid,
    .home-how-grid,
    .home-testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-kids-banner {
        grid-template-columns: 1fr;
        min-height: 460px;
    }

    .home-how-step:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 700px) {
    .home-kids-banner,
    .home-benefits,
    .home-how-it-works,
    .home-community,
    .home-cta-finale {
        width: min(100% - 24px, 1220px);
    }

    .home-benefits-grid,
    .home-how-grid,
    .home-testimonial-grid {
        grid-template-columns: 1fr;
    }

    .home-how-step {
        border-right: 0;
        border-bottom: 1px solid #e4ddd3;
        min-height: 0;
    }

    .home-how-step:last-child {
        border-bottom: 0;
    }

    .home-kids-copy,
    .home-cta-finale,
    .home-community-stage {
        padding: 28px 20px;
    }

    .home-kids-actions,
    .home-cta-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .landing-categories-wrap .category-book-cover {
        width: min(140px, 86%) !important;
        transform: perspective(980px) rotateY(-10deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-reveal,
    .home-benefit-card,
    .home-how-step,
    .home-testimonial,
    .landing-categories-wrap .category-book-cover {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .home-orbit-canvas {
        display: none !important;
    }
}

/* ===== AI BOOK GENERATOR LANDING REBUILD ===== */
.abg-landing {
    --abg-ink: #170f0d;
    --abg-muted: #6b5d52;
    --abg-red: #703909;
    --abg-soft: #f6f3ee;
    --abg-border: #e4ddd3;
    --abg-surface: #ffffff;
}

.abg-landing .home-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2, .75, .2, 1);
}

.abg-landing .home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.abg-landing [data-stagger] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .75, .2, 1);
}

.abg-landing [data-stagger].is-in {
    opacity: 1;
    transform: translateY(0);
}

.abg-section-intro {
    max-width: 720px;
    margin-bottom: 34px;
}

.abg-section-intro-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.abg-section-intro h2,
.abg-promise-copy h2,
.abg-finale-inner h2 {
    margin: 12px 0 0;
    color: var(--abg-ink);
    font-family: var(--heading-font) !important;
    font-size: clamp(30px, 3.8vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.04em;
}

.abg-section-intro p,
.abg-promise-copy p,
.abg-finale-inner p {
    margin: 16px 0 0;
    color: var(--abg-muted);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 600;
}

.abg-inline-actions,
.abg-finale-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Metrics */
.abg-metrics {
    width: min(1220px, calc(100% - 36px));
    margin: 28px auto 48px;
}

.abg-metrics-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--abg-border);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #faf8f4);
    box-shadow: 0 22px 50px rgba(55, 28, 22, .07);
}

.abg-metric {
    min-height: 118px;
    padding: 24px;
    border-right: 1px solid var(--abg-border);
}

.abg-metric:last-child {
    border-right: 0;
}

.abg-metric strong,
.abg-metric-value {
    display: block;
    color: var(--abg-ink);
    font-family: var(--heading-font) !important;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    font-weight: 900;
}

.abg-metric span {
    display: block;
    margin-top: 10px;
    color: var(--abg-muted);
    font-size: 13px;
    font-weight: 750;
}

/* Promise */
.abg-promise {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 36px;
    align-items: center;
}

.abg-promise-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.abg-promise-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--abg-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.abg-promise-list i {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: #fff !important;
    background: var(--abg-red);
    border-radius: 999px;
    font-size: 12px !important;
}

.abg-promise-visual {
    position: relative;
    min-height: 420px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--abg-border);
    box-shadow: 0 30px 70px rgba(55, 28, 22, .12);
    transform: translate3d(0, var(--home-parallax-y, 0px), 0);
    transition: transform .2s linear;
}

.abg-promise-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 420px;
}

.abg-float-chip {
    position: absolute;
    z-index: 2;
    padding: 10px 14px;
    color: var(--abg-ink);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(228, 221, 211, .95);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(23, 15, 13, .12);
    backdrop-filter: blur(8px);
    animation: abgFloat 4.8s ease-in-out infinite;
}

.abg-float-chip-a { top: 18%; left: 8%; animation-delay: 0s; }
.abg-float-chip-b { top: 48%; right: 8%; animation-delay: .8s; }
.abg-float-chip-c { bottom: 14%; left: 18%; animation-delay: 1.4s; }

@keyframes abgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Studio capabilities */
.abg-studio {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 64px;
}

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

.abg-studio-card {
    padding: 26px 22px;
    border: 1px solid var(--abg-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #faf8f4);
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.abg-studio-card:hover {
    border-color: #d4cbc0;
    background: #fff;
    transform: translateY(-4px);
}

.abg-studio-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #fff;
    background: var(--abg-red);
    border-radius: 14px;
    font-size: 16px;
}

.abg-studio-card h3 {
    margin: 0;
    color: var(--abg-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.abg-studio-card p {
    margin: 12px 0 0;
    color: var(--abg-muted);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.abg-editor-control {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid var(--abg-border);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(250,248,244,.96)), #fff;
    box-shadow: 0 24px 70px rgba(61, 28, 20, .08);
}

.abg-editor-preview {
    display: grid;
    grid-template-columns: .78fr 1.35fr .82fr;
    gap: 10px;
    min-height: 340px;
    padding: 14px;
    border: 1px solid #e4ddd3;
    border-radius: 14px;
    background: #f6f3ee;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 22px 54px rgba(112, 57, 9, .12);
}

.abg-editor-panel {
    min-width: 0;
    border: 1px solid #e4ddd3;
    border-radius: 10px;
    background: #fff;
    padding: 16px;
}

.abg-editor-panel span {
    display: block;
    margin-bottom: 14px;
    color: #715a54;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.abg-editor-sidebar,
.abg-editor-ai {
    display: grid;
    align-content: start;
    gap: 10px;
}

.abg-editor-sidebar strong {
    display: block;
    padding: 12px;
    border-radius: 8px;
    color: #170f0d;
    background: #faf8f4;
    font-size: 13px;
}

.abg-editor-document h3 {
    margin: 0;
    color: #170f0d;
    font-size: 24px;
    font-weight: 900;
}

.abg-editor-document p {
    margin: 12px 0 18px;
    color: #6b5d52;
    line-height: 1.65;
}

.abg-editor-lines {
    display: grid;
    gap: 9px;
}

.abg-editor-lines i {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #efe8df;
}

.abg-editor-lines i:nth-child(2) {
    width: 82%;
}

.abg-editor-lines i:nth-child(3) {
    width: 92%;
}

.abg-editor-lines i:nth-child(4) {
    width: 64%;
}

.abg-editor-ai button {
    width: 100%;
    min-height: 42px;
    border: 1px solid #e4ddd3;
    border-radius: 8px;
    color: #703909;
    background: #faf8f4;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* Mid-page conversion banner */
.abg-banner {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 64px;
}

.abg-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--abg-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 12%, rgba(112, 57, 9, .1), transparent 36%),
        linear-gradient(135deg, #faf8f4 0%, #ffffff 48%, #f6f3ee 100%);
    overflow: hidden;
}

.abg-banner-copy h2 {
    margin: 12px 0 0;
    color: var(--abg-ink);
    font-family: var(--heading-font) !important;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.03em;
}

.abg-banner-copy p {
    margin: 14px 0 0;
    max-width: 520px;
    color: var(--abg-muted);
    font-size: 15px;
    line-height: 1.65;
    font-weight: 600;
}

.abg-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.abg-banner-visual {
    position: relative;
    min-height: 240px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--abg-border);
    background: #170f0d;
}

.abg-banner-visual img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
    opacity: .92;
}

.abg-banner-chip {
    position: absolute;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(23, 15, 13, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .02em;
    backdrop-filter: blur(8px);
    animation: abgFloat 4.5s ease-in-out infinite;
}

.abg-banner-chip-a {
    top: 16%;
    left: 10%;
}

.abg-banner-chip-b {
    right: 10%;
    bottom: 18%;
    animation-delay: .9s;
}

/* Audience lanes */
.abg-audience {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 64px;
}

.abg-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.abg-audience-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border: 1px solid var(--abg-border);
    border-radius: 18px;
    background: #fff;
    transition: border-color .25s ease, transform .25s ease;
}

.abg-audience-card:hover {
    border-color: #d4cbc0;
    transform: translateY(-3px);
}

.abg-audience-tag {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 6px 10px;
    border: 1px solid var(--abg-border);
    border-radius: 999px;
    background: #f7f4ef;
    color: var(--abg-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.abg-audience-card h3 {
    margin: 0;
    color: var(--abg-ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.abg-audience-card p {
    margin: 12px 0 0;
    color: var(--abg-muted);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;
    flex: 1;
}

.abg-audience-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--abg-red) !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.abg-audience-link:hover {
    color: #4f2806 !important;
}

.abg-audience-link i {
    font-size: 12px;
    transition: transform .2s ease;
}

.abg-audience-link:hover i {
    transform: translateX(3px);
}

/* Workflow */
.abg-workflow {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 64px;
}

.abg-workflow-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.abg-workflow-step {
    padding: 22px 18px;
    border: 1px solid var(--abg-border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
}

.abg-workflow-step:hover,
.abg-workflow-step.is-active {
    border-color: #efb7a8;
    background: #faf8f4;
    box-shadow: 0 18px 40px rgba(112, 57, 9, .1);
    transform: translateY(-4px);
}

.abg-workflow-num {
    display: inline-flex;
    color: var(--abg-red);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
}

.abg-workflow-step h3 {
    margin: 14px 0 0;
    color: var(--abg-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.abg-workflow-step p {
    margin: 10px 0 0;
    color: var(--abg-muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}

.abg-workflow-stage {
    position: relative;
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--abg-border);
    background: #170f0d;
    box-shadow: 0 28px 64px rgba(55, 28, 22, .14);
}

.abg-workflow-panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(0, 1.1fr);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity .45s ease, visibility .45s ease, transform .6s ease;
}

.abg-workflow-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.abg-workflow-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
    opacity: .88;
}

.abg-workflow-panel > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 32px;
    background: linear-gradient(90deg, rgba(23, 15, 13, .2), rgba(23, 15, 13, .92));
}

.abg-workflow-panel strong {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.abg-workflow-panel p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}

/* Capabilities */
.abg-capabilities {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 64px;
}

.abg-cap-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.abg-cap {
    padding: 24px;
    border: 1px solid var(--abg-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(55, 28, 22, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.abg-cap:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(112, 57, 9, .12);
}

.abg-cap-hero {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    padding: 0;
    overflow: hidden;
    background: #170f0d;
}

.abg-cap-media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    opacity: .55;
}

.abg-cap-hero {
    position: relative;
}

.abg-cap-media img {
    width: min(120px, 28%);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .35);
    transform: rotate(-6deg);
}

.abg-cap-media img:nth-child(2) {
    transform: rotate(2deg) translateY(-12px);
    z-index: 1;
}

.abg-cap-media img:nth-child(3) {
    transform: rotate(7deg);
}

.abg-cap-copy {
    position: relative;
    z-index: 2;
    padding: 28px;
    background: linear-gradient(180deg, transparent, rgba(23, 15, 13, .92) 28%);
}

.abg-cap-copy h3,
.abg-cap-copy p {
    color: #fff;
}

.abg-cap-copy p {
    color: rgba(255, 255, 255, .78);
}

.abg-cap i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fff !important;
    background: var(--abg-red);
    border-radius: 12px;
    font-size: 16px !important;
}

.abg-cap h3,
.abg-cap-copy h3 {
    margin: 0;
    color: var(--abg-ink);
    font-size: 20px;
    font-weight: 900;
}

.abg-cap p,
.abg-cap-copy p {
    margin: 10px 0 0;
    color: var(--abg-muted);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

/* Use cases */
.abg-usecases {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 64px;
}

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

.abg-usecase {
    padding: 18px;
    border: 1px solid var(--abg-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(55, 28, 22, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.abg-usecase:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(112, 57, 9, .12);
}

.abg-usecase img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 14px 28px rgba(23, 15, 13, .16);
}

.abg-usecase h3 {
    margin: 0;
    color: var(--abg-ink);
    font-size: 18px;
    font-weight: 900;
}

.abg-usecase p {
    margin: 8px 0 0;
    color: var(--abg-muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}

/* Library framing */
.abg-library.home-library-stage {
    margin-top: 8px !important;
    margin-bottom: 56px !important;
}

.abg-promise-compact {
    margin-bottom: 48px;
}

.abg-promise-compact .abg-promise-visual {
    min-height: 340px;
}

.abg-promise-compact .abg-promise-visual img {
    min-height: 340px;
}

.abg-workflow-compact {
    margin-bottom: 40px;
}

.abg-workflow-compact .abg-workflow-step {
    min-height: 0;
}

.abg-workflow-compact .abg-workflow-step p {
    margin-top: 8px;
}

/* Fixed library viewport ? prevents page height jump while books load */
.abg-library-viewport {
    position: relative;
    height: min(68vh, 740px);
    min-height: 560px;
    max-height: 780px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    border: 1px solid #e4ddd3;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 243, 238, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    padding: 18px 16px 28px;
    contain: layout paint style;
}

.abg-library-viewport::-webkit-scrollbar {
    width: 8px;
}

.abg-library-viewport::-webkit-scrollbar-thumb {
    background: #ddd5c9;
    border-radius: 999px;
}

.abg-library-viewport::-webkit-scrollbar-track {
    background: transparent;
}

.abg-library-viewport .categories-grid {
    position: relative;
    z-index: 1;
}

.abg-library-viewport .category-row-loader {
    margin: 18px auto 8px;
}

.abg-library-skeletons {
    position: absolute;
    inset: 18px 16px auto;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px 18px;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.abg-library-skeletons.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.abg-book-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.abg-book-skeleton-cover {
    width: min(126px, 88%);
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    background: linear-gradient(110deg, #efeae3 20%, #f7f4ef 40%, #efeae3 60%);
    background-size: 200% 100%;
    animation: abgSkeletonShine 1.2s linear infinite;
    box-shadow: 0 14px 28px rgba(55, 28, 22, .08);
}

.abg-book-skeleton-line {
    width: 72%;
    height: 10px;
    border-radius: 999px;
    background: #e4ddd3;
}

.abg-book-skeleton-line.short {
    width: 46%;
    height: 8px;
    opacity: .7;
}

@keyframes abgSkeletonShine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Kill card parallax translate that fought stable scrolling */
.landing-categories-wrap .category-card.is-visible {
    transform: none !important;
}

.landing-categories-wrap .category-card.is-visible:hover {
    transform: none !important;
}

@media (max-width: 1180px) {
    .abg-library-skeletons {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .abg-library-skeletons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .abg-library-viewport {
        height: min(70vh, 640px);
        min-height: 480px;
        padding: 14px 10px 22px;
    }

    .abg-library-skeletons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .abg-promise-compact {
        grid-template-columns: 1fr;
    }
}


/* Author proof */
.abg-proof {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 64px;
}

.abg-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.abg-proof-card {
    margin: 0;
    padding: 26px 24px;
    border: 1px solid var(--abg-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #faf8f4);
    transition: border-color .25s ease, transform .25s ease;
}

.abg-proof-card:hover {
    border-color: #d4cbc0;
    transform: translateY(-3px);
}

.abg-proof-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    color: #a66b2f;
    font-size: 12px;
}

.abg-proof-card p {
    margin: 0;
    color: #3f2c27;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 650;
}

.abg-proof-card footer {
    display: grid;
    gap: 2px;
    margin-top: 20px;
}

.abg-proof-card strong {
    color: var(--abg-ink);
    font-size: 15px;
    font-weight: 900;
}

.abg-proof-card span {
    color: var(--abg-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* FAQ */
.abg-faq {
    width: min(900px, calc(100% - 36px));
    margin: 0 auto 64px;
}

.abg-faq-list {
    display: grid;
    gap: 12px;
}

.abg-faq-item {
    border: 1px solid var(--abg-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease;
}

.abg-faq-item:hover,
.abg-faq-item[open] {
    border-color: #d4cbc0;
}

.abg-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 56px 18px 20px;
    color: var(--abg-ink);
    font-family: var(--heading-font, var(--app-heading-font)) !important;
    font-size: 16px;
    font-weight: 700;
    position: relative;
}

.abg-faq-item summary::-webkit-details-marker {
    display: none;
}

.abg-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--abg-red);
    background: #f7f4ef;
    border: 1px solid var(--abg-border);
    border-radius: 999px;
    font-family: var(--heading-font, var(--app-heading-font)) !important;
    font-size: 18px;
    font-weight: 700;
}

.abg-faq-item[open] summary::after {
    content: "−";
}

.abg-faq-item p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--abg-muted);
    font-family: var(--app-font, "Manrope", sans-serif) !important;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 600;
}

.abg-faq-more {
    margin-top: 28px;
    text-align: center;
}

.abg-faq-more .landing-btn {
    min-width: 200px;
}

/* Finale CTA */
.abg-finale {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 36px;
}

.abg-finale-inner {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 5vw, 64px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    background:
        linear-gradient(120deg, rgba(23, 15, 13, .92), rgba(112, 57, 9, .88)),
        url("../images/hero-carousel/publishing-launch.webp") center / cover no-repeat;
    text-align: center;
}

.abg-finale-inner::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 55%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 68%);
    pointer-events: none;
}

.abg-finale-inner .landing-section-label {
    position: relative;
    z-index: 1;
    color: #e6dfd5;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
}

.abg-finale-inner h2,
.abg-finale-inner p,
.abg-finale-inner small,
.abg-finale-actions {
    position: relative;
    z-index: 1;
}

.abg-finale-inner h2,
.abg-finale-inner p,
.abg-finale-inner small {
    color: #fff;
    margin-left: auto;
    margin-right: auto;
}

.abg-finale-inner p {
    max-width: 640px;
    color: rgba(255, 255, 255, .8);
}

.abg-finale-actions {
    justify-content: center;
}

.abg-finale-inner small {
    display: block;
    margin-top: 20px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 650;
}

body.categories-page .abg-finale .landing-btn-outline {
    color: #fff !important;
    background: rgba(255, 255, 255, .1) !important;
    border-color: rgba(255, 255, 255, .35) !important;
}

body.categories-page .abg-finale .landing-btn-outline:hover {
    color: var(--abg-ink) !important;
    background: #fff !important;
    border-color: #fff !important;
}

/* Publish & export — full-width classic showcase */
.abg-publish-stage {
    position: relative;
    width: 100%;
    margin: 0 0 64px;
    padding: clamp(72px, 9vw, 120px) 0;
    overflow: hidden;
    background:
        linear-gradient(135deg, #faf8f4 0%, #f6f3ee 42%, #efe8de 100%);
    border-top: 1px solid var(--abg-border);
    border-bottom: 1px solid var(--abg-border);
}

.abg-publish-stage-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 92% 18%, rgba(112, 57, 9, .07), transparent 62%),
        radial-gradient(ellipse 40% 35% at 8% 82%, rgba(196, 165, 116, .12), transparent 58%);
    animation: abgPublishVeil 14s ease-in-out infinite alternate;
}

.abg-publish-stage-inner {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1.02fr);
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}

.abg-publish-copy h2 {
    margin: 12px 0 0;
    color: var(--abg-ink);
    font-family: var(--heading-font) !important;
    font-size: clamp(30px, 3.8vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.04em;
}

.abg-publish-copy > p {
    margin: 16px 0 0;
    max-width: 520px;
    color: var(--abg-muted);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 600;
}

.abg-publish-points {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.abg-publish-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--abg-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.abg-publish-points i {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: #fff !important;
    background: var(--abg-red);
    border-radius: 999px;
    font-size: 12px !important;
}

.abg-publish-actions {
    margin-top: 28px;
}

.abg-publish-showcase {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
}

.abg-publish-glow {
    position: absolute;
    inset: 12% 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 57, 9, .12), transparent 68%);
    filter: blur(28px);
    animation: abgPublishGlow 5.5s ease-in-out infinite alternate;
    pointer-events: none;
}

.abg-publish-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(28px, 4vw, 40px);
    border: 1px solid var(--abg-border);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 248, 244, .94));
    box-shadow:
        0 28px 64px rgba(55, 28, 22, .1),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    animation: abgPublishPanelFloat 7s ease-in-out infinite;
}

.abg-publish-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.abg-publish-panel-label {
    color: var(--abg-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.abg-publish-panel-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(112, 57, 9, .35), rgba(112, 57, 9, .08));
    transform-origin: left center;
    animation: abgPublishLineDraw 1.4s cubic-bezier(.22, 1, .36, 1) both;
}

.abg-publish-stage.is-visible .abg-publish-panel-line {
    animation-play-state: running;
}

.abg-publish-formats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.abg-publish-format {
    position: relative;
    padding: 26px 16px 22px;
    text-align: center;
    border: 1px solid var(--abg-border);
    border-radius: 16px;
    background: #fff;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.abg-publish-format::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(112, 57, 9, .04), transparent 55%);
    opacity: 0;
    transition: opacity .35s ease;
}

.abg-publish-format:hover {
    transform: translateY(-8px);
    border-color: #d4cbc0;
    box-shadow: 0 22px 44px rgba(112, 57, 9, .12);
}

.abg-publish-format:hover::before {
    opacity: 1;
}

.abg-publish-format-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #703909, #a45c2a);
    box-shadow: 0 14px 28px rgba(112, 57, 9, .22);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}

.abg-publish-format:hover .abg-publish-format-icon {
    transform: scale(1.06);
    box-shadow: 0 18px 34px rgba(112, 57, 9, .28);
}

.abg-publish-format-icon i {
    font-size: 22px !important;
}

.abg-publish-format strong,
.abg-publish-format-name {
    display: block;
    color: var(--abg-ink);
    font-family: var(--heading-font) !important;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .06em;
}

.abg-publish-format span {
    display: block;
    margin-top: 6px;
    color: var(--abg-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.abg-publish-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--abg-border);
}

.abg-publish-platforms span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--abg-border);
    border-radius: 999px;
    color: var(--abg-ink);
    background: rgba(246, 243, 238, .8);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.abg-publish-platforms span:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: #d4cbc0;
}

@keyframes abgPublishVeil {
    from { opacity: .75; transform: translate3d(0, 0, 0); }
    to { opacity: 1; transform: translate3d(0, -12px, 0); }
}

@keyframes abgPublishGlow {
    from { opacity: .55; transform: scale(.96); }
    to { opacity: .9; transform: scale(1.04); }
}

@keyframes abgPublishPanelFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes abgPublishLineDraw {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 1100px) {
    .abg-metrics-inner,
    .abg-workflow-track,
    .abg-usecase-row,
    .abg-studio-grid,
    .abg-proof-grid,
    .abg-audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .abg-metric:nth-child(2),
    .abg-workflow-step:nth-child(2) {
        border-right: 0;
    }

    .abg-promise,
    .abg-editor-control,
    .abg-banner-inner,
    .abg-cap-layout,
    .abg-workflow-panel,
    .abg-publish-stage-inner {
        grid-template-columns: 1fr;
    }

    .abg-publish-showcase {
        min-height: 0;
    }

    .abg-cap-hero {
        grid-row: auto;
        min-height: 360px;
    }

    .abg-workflow-panel > div {
        background: rgba(23, 15, 13, .88);
    }

    .abg-banner-visual {
        min-height: 220px;
    }
}

@media (max-width: 700px) {
    .abg-metrics,
    .abg-promise,
    .abg-studio,
    .abg-editor-control,
    .abg-banner,
    .abg-audience,
    .abg-workflow,
    .abg-capabilities,
    .abg-usecases,
    .abg-proof,
    .abg-faq,
    .abg-finale {
        width: min(100% - 24px, 1220px);
    }

    .abg-metrics-inner,
    .abg-workflow-track,
    .abg-usecase-row,
    .abg-studio-grid,
    .abg-proof-grid,
    .abg-audience-grid {
        grid-template-columns: 1fr;
    }

    .abg-metric,
    .abg-workflow-step {
        border-right: 0;
        border-bottom: 1px solid var(--abg-border);
    }

    .abg-metric:last-child,
    .abg-workflow-step:last-child {
        border-bottom: 0;
    }

    .abg-float-chip,
    .abg-banner-chip {
        display: none;
    }

    .abg-inline-actions,
    .abg-banner-actions,
    .abg-finale-actions,
    .abg-publish-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .abg-publish-formats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .abg-editor-control {
        padding: 22px;
    }

    .abg-editor-preview {
        grid-template-columns: 1fr;
        min-height: 0;
    }

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

    .abg-editor-ai span {
        grid-column: 1 / -1;
    }

    .abg-publish-format {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 4px 14px;
        text-align: left;
        padding: 18px;
    }

    .abg-publish-format-icon {
        grid-row: 1 / 3;
        margin: 0;
        width: 52px;
        height: 52px;
    }

    .abg-publish-format strong,
.abg-publish-format-name {
        align-self: end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .abg-landing .home-reveal,
    .abg-landing [data-stagger],
    .abg-float-chip,
    .abg-banner-chip,
    .abg-publish-panel,
    .abg-publish-glow,
    .abg-publish-stage-veil,
    .abg-publish-panel-line {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}




/* ===== MOBILE HEADER + FOOTER HARD FIX ===== */
.site-header,
.site-header .top-nav {
    max-width: 100%;
    overflow: visible;
}

.site-header .top-nav {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center !important;
}

@media (max-width: 1100px) {
    .site-header .top-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        min-height: 68px;
        padding: 8px 16px !important;
    }

    .site-header .nav-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header .nav-logo {
        height: 48px !important;
        max-width: 140px;
    }

    .site-header .nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative;
        z-index: 1003;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid rgba(112, 57, 9, .22) !important;
        border-radius: 12px !important;
        color: #703909 !important;
        background: #ffffff !important;
        box-shadow: 0 8px 20px rgba(112, 57, 9, .12) !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: 1 !important;
        white-space: nowrap;
    }

    /* Keep drawer OFF-CANVAS until opened ? override later site-header flex rules */
    .site-header .nav-actions,
    .site-header #siteNavActions,
    body.categories-page .site-header .nav-actions {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: auto !important;
        z-index: 1002 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        width: min(320px, 86vw) !important;
        max-width: 86vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 18px !important;
        background: #ffffff !important;
        border-right: 1px solid #e4ddd3 !important;
        box-shadow: 24px 0 60px rgba(17, 24, 39, .18) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transform: translate3d(-110%, 0, 0) !important;
        -webkit-transform: translate3d(-110%, 0, 0) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform .28s ease, opacity .2s ease, visibility .2s ease !important;
    }

    body.nav-drawer-open .site-header .nav-actions,
    body.nav-drawer-open .site-header #siteNavActions {
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .site-header .nav-drawer-backdrop {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1001 !important;
        display: block !important;
        background: rgba(17, 24, 39, .42) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.nav-drawer-open .site-header .nav-drawer-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header .nav-drawer-head {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding-bottom: 14px;
        margin-bottom: 6px;
        border-bottom: 1px solid #e4ddd3;
    }

    .site-header .nav-drawer-close {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 72px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 14px !important;
        border: 1px solid #e4ddd3 !important;
        border-radius: 10px !important;
        color: #703909 !important;
        background: #f6f3ee !important;
        box-shadow: none !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        white-space: nowrap;
    }

    .site-header .nav-links,
    .site-header .nav-cta-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        gap: 8px !important;
    }

    .site-header .nav-actions .nav-link-item,
    .site-header .nav-actions .nav-btn,
    .site-header .nav-actions .nav-auth-btn {
        width: 100% !important;
        justify-content: flex-start !important;
        min-height: 42px !important;
    }
}

@media (max-width: 576px) {
    .site-header .top-nav {
        padding: 8px 12px !important;
    }

    .site-header .nav-logo {
        height: 44px !important;
        max-width: 124px;
    }

    .site-header .nav-toggle {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        font-size: inherit !important;
    }

    .site-header .nav-drawer-close {
        min-width: 64px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }
}

/* Neutralize older conflicting mobile nav rules */
@media (max-width: 991px) {
    body.categories-page .site-header .top-nav {
        flex-direction: row !important;
        align-items: center !important;
    }
}

@media (max-width: 576px) {
    body.categories-page .site-header .nav-actions {
        display: flex !important;
        grid-template-columns: none !important;
    }
}

/* Footer contact CTA: always centered text */
body.categories-page .footer-contact-cta,
.site-footer .footer-contact-cta,
.footer-col a.footer-contact-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 42px !important;
    padding: 0 22px !important;
    margin-left: 0 !important;
    color: #ffffff !important;
    background: #703909 !important;
    border: 1px solid #703909 !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 24px rgba(112, 57, 9, .16) !important;
    white-space: nowrap !important;
}

body.categories-page .footer-contact-cta:hover,
.site-footer .footer-contact-cta:hover {
    justify-content: center !important;
    text-align: center !important;
    color: #ffffff !important;
}

/* Prevent horizontal page overflow from header/footer */
body.categories-page,
.abg-landing,
.site-footer,
.footer-wrap,
.footer-main {
    max-width: 100%;
    overflow-x: clip;
}

@media (max-width: 640px) {
    .site-footer .footer-main {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   Popular Books ? bookstore shelf UI (pb-*)
   ========================================================= */
.popular-books-page.pb-library {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
    padding: 0 0 80px;
}

.pb-hero {
    position: relative;
    display: grid;
    gap: 22px;
    margin-bottom: 28px;
    padding: 28px 28px 26px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    overflow: hidden;
    box-shadow: none;
}

.pb-hero::before,
.pb-hero::after {
    content: none !important;
    display: none !important;
}

.pb-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.pb-hero .popular-kicker {
    margin-bottom: 12px;
    background: #f6f3ee !important;
    border: 1px solid #e4ddd3 !important;
    color: #703909 !important;
}

.pb-hero h1 {
    color: #170f0d;
    font-family: "Space Grotesk", var(--heading-font), sans-serif !important;
    font-size: clamp(36px, 5.5vw, 58px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin: 0 0 12px;
}

.pb-hero p {
    color: #6b5d52;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    max-width: 640px;
}

.pb-search.popular-search {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    min-height: 56px;
    grid-template-columns: auto 1fr minmax(140px, 200px) auto;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    border-radius: 12px;
    box-shadow: none !important;
    filter: none;
    backdrop-filter: none;
}

.pb-search.popular-search select {
    background: #f6f3ee;
    border-color: #e4ddd3;
    color: #170f0d;
}

.pb-tabs.popular-tabs {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 28px;
    padding: 6px;
    background: #f6f3ee;
    border: 1px solid #e4ddd3;
    border-radius: 14px;
    box-shadow: none;
}

.pb-tabs.popular-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    color: #6b5d52;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.pb-tabs.popular-tabs a:hover {
    color: #170f0d;
    background: rgba(255, 255, 255, .7);
}

.pb-tabs.popular-tabs a.active {
    color: #fff;
    background: #703909;
    box-shadow: 0 10px 22px rgba(112, 57, 9, .22);
}

/* ---- Book shelf grid: separated premium book pods ---- */
.pb-shelf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .pb-shelf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 18px;
    }
}

@media (max-width: 820px) {
    .pb-shelf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }
}

.pb-book {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.pb-book-pod {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 18px 18px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 255, 255, .95), transparent 60%),
        linear-gradient(180deg, #faf8f4 0%, #f4f0e9 48%, #f8ebe4 100%);
    border: 1px solid #edd0c6;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .8) inset,
        0 18px 40px rgba(23, 15, 13, .06);
    transition:
        transform .35s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease,
        border-color .35s ease;
}

.pb-book:hover .pb-book-pod {
    transform: translateY(-6px);
    border-color: #e0b8aa;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 28px 52px rgba(112, 57, 9, .14);
}

.pb-book-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 250px;
    padding: 12px 10px 28px;
    perspective: 1400px;
}

.pb-book-3d {
    position: relative;
    width: 148px;
    aspect-ratio: 2 / 3;
    transform-style: preserve-3d;
    transform: rotateY(-18deg) rotateX(4deg);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
    z-index: 2;
}

.pb-book:hover .pb-book-3d {
    transform: rotateY(-6deg) rotateX(1deg) translateY(-10px);
}

.pb-book-cover {
    position: absolute;
    inset: 0;
    border-radius: 3px 5px 5px 3px;
    overflow: hidden;
    background: #1a100c;
    transform: translateZ(14px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .18),
        8px 16px 28px rgba(23, 15, 13, .28);
    z-index: 3;
}

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

.pb-book-fallback {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 18px 14px;
    background: linear-gradient(160deg, #5c2e0a 0%, #8b4518 45%, #3d1e08 100%);
    color: #f6f3ee;
}

.pb-book-fallback span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .75;
}

.pb-book-fallback strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pb-book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .18) 45%, rgba(255, 255, 255, .1));
    pointer-events: none;
    z-index: 4;
}

.pb-book-gloss {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        118deg,
        rgba(255, 255, 255, .22) 0%,
        transparent 26%,
        transparent 58%,
        rgba(255, 255, 255, .05) 100%
    );
    pointer-events: none;
    z-index: 5;
}

.pb-book-pages {
    position: absolute;
    top: 2%;
    bottom: 2%;
    right: -11px;
    width: 14px;
    border-radius: 0 2px 2px 0;
    background:
        repeating-linear-gradient(
            180deg,
            #fbf9f4 0 1px,
            #efe6d8 1px 2px,
            #f7f1e6 2px 3px
        );
    box-shadow:
        1px 0 0 rgba(23, 15, 13, .1),
        4px 8px 16px rgba(23, 15, 13, .12);
    transform: translateZ(6px);
    z-index: 2;
}

.pb-book-back {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: linear-gradient(180deg, #3a2216, #24150f);
    transform: translateZ(0);
    box-shadow: 0 10px 24px rgba(23, 15, 13, .2);
    z-index: 1;
}

.pb-book-shadow {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 70%;
    height: 18px;
    transform: translateX(-46%);
    border-radius: 999px;
    background: radial-gradient(ellipse, rgba(23, 15, 13, .32), transparent 72%);
    filter: blur(3px);
    z-index: 0;
    transition: width .35s ease, opacity .35s ease, transform .35s ease;
}

.pb-book:hover .pb-book-shadow {
    width: 78%;
    opacity: .55;
    transform: translateX(-46%) translateY(4px);
}

.pb-book-shelf {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 6px;
    height: 10px;
    border-radius: 2px 2px 6px 6px;
    background:
        linear-gradient(180deg, #d7b4a4 0%, #c89984 55%, #b57f68 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .35) inset,
        0 6px 12px rgba(23, 15, 13, .12);
    z-index: 0;
}

.pb-part-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    background: rgba(23, 15, 13, .82);
    backdrop-filter: blur(6px);
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(23, 15, 13, .18);
}

.pb-book-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 6px 2px;
    margin-top: auto;
    border-top: 1px solid rgba(237, 208, 198, .7);
    text-align: left;
}

.pb-book-meta h2,
.pb-book-meta h3 {
    margin: 0;
    color: #170f0d;
    font-family: "Space Grotesk", var(--heading-font), sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pb-book-author {
    margin: 0;
    color: #6b5d52;
    font-size: 13px;
    font-weight: 600;
}

.pb-book-category {
    color: #8a7b6e;
    font-size: 12px;
    font-weight: 600;
}

.pb-book-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 6px;
    color: #6b5d52;
    font-size: 12px;
    font-weight: 700;
}

.pb-book-stats i {
    color: #703909;
    margin-right: 3px;
}

.pb-read-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #703909;
    font-size: 13px;
    font-weight: 800;
    opacity: .55;
    transform: translateY(2px);
    transition: opacity .25s ease, transform .25s ease;
}

.pb-book:hover .pb-read-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Series shelves ---- */
.pb-series-list {
    display: grid;
    gap: 28px;
}

.pb-series-shelf {
    padding: 22px 22px 14px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, #f6f3ee 0%, #ffffff 40%, #f4f0e9 100%);
    border: 1px solid #e4ddd3;
}

.pb-series-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.pb-series-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #703909;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pb-series-head h2 {
    margin: 0 0 6px;
    color: #170f0d;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.15;
}

.pb-series-head p {
    margin: 0;
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.5;
    max-width: 560px;
}

.pb-series-count {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4ddd3;
    color: #703909;
    font-size: 13px;
    font-weight: 800;
}

.pb-series-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 220px);
    gap: 20px;
    overflow-x: auto;
    padding: 4px 4px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.pb-series-rail::-webkit-scrollbar {
    height: 6px;
}

.pb-series-rail::-webkit-scrollbar-thumb {
    background: #d4cbc0;
    border-radius: 999px;
}

.pb-book-series {
    scroll-snap-align: start;
}

.pb-book-series .pb-book-pod {
    padding: 16px 14px 14px;
}

.pb-book-series .pb-book-stage {
    min-height: 220px;
    padding-bottom: 22px;
}

.pb-book-series .pb-book-3d {
    width: 128px;
}

.pb-book-series .pb-book-shelf {
    display: none;
}

/* ---- Empty + pagination ---- */
.pb-empty.popular-empty {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 10px;
    padding: 64px 24px;
    border-radius: 20px;
    background: #f6f3ee;
    border: 1px dashed #e4ddd3;
}

.pb-empty.popular-empty i {
    font-size: 36px;
    color: #703909;
    margin-bottom: 8px;
}

.pb-empty.popular-empty h2 {
    margin: 0;
    color: #170f0d;
    font-family: "Space Grotesk", sans-serif !important;
}

.pb-empty.popular-empty p {
    margin: 0;
    color: #6b5d52;
    max-width: 420px;
}

.pb-pagination.popular-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.pb-pagination .pagination {
    gap: 6px;
}

.pb-pagination .page-link {
    border-radius: 10px !important;
    border-color: #e4ddd3 !important;
    color: #703909 !important;
    font-weight: 700;
}

.pb-pagination .page-item.active .page-link {
    background: #703909 !important;
    border-color: #703909 !important;
    color: #fff !important;
}

@media (max-width: 900px) {
    .pb-search.popular-search {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .pb-search.popular-search select,
    .pb-search.popular-search button {
        grid-column: span 1;
    }

    .pb-search.popular-search select {
        grid-column: 1 / 2;
    }

    .pb-search.popular-search button {
        grid-column: 2 / 3;
    }
}

@media (max-width: 640px) {
    .popular-books-page.pb-library {
        width: min(100%, calc(100% - 24px));
        padding: 0 0 64px;
    }

    .page-hero-toolbar--search {
        padding: 16px 14px;
    }

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

    .pb-book-pod {
        padding: 14px 12px 14px;
        border-radius: 18px;
    }

    .pb-book-stage {
        min-height: 200px;
        padding: 8px 4px 22px;
    }

    .pb-book-3d {
        width: min(118px, 78%);
        transform: rotateY(-12deg) rotateX(3deg);
    }

    .pb-book:hover .pb-book-3d {
        transform: rotateY(-4deg) rotateX(1deg) translateY(-6px);
    }

    .pb-book-pages {
        width: 10px;
        right: -8px;
    }

    .pb-book-meta {
        padding-top: 12px;
    }

    .pb-book-meta h2,
    .pb-book-meta h3 {
        font-size: 14px;
    }

    .pb-read-cta {
        opacity: 1;
        transform: none;
    }

    .pb-series-head {
        flex-direction: column;
    }

    .pb-series-shelf {
        padding: 16px 14px 8px;
    }

    .pb-series-rail {
        grid-auto-columns: minmax(170px, 180px);
        gap: 12px;
    }

    .pb-tabs.popular-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .pb-tabs.popular-tabs a {
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }

    .pb-search.popular-search {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .pb-search.popular-search i {
        display: none;
    }

    .pb-search.popular-search select,
    .pb-search.popular-search button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-book-pod,
    .pb-book-3d,
    .pb-book-shadow,
    .pb-read-cta {
        transition: none !important;
    }

    .pb-book:hover .pb-book-pod {
        transform: none;
    }

    .pb-book:hover .pb-book-3d {
        transform: rotateY(-12deg) rotateX(3deg);
    }
}

/* =========================================================
   LAUNCH DESIGN SYSTEM ? single public UI language
   Parchment / brown / ink. Wins over leftover page styles.
   ========================================================= */
:root {
    --ds-cream: #f6f3ee;
    --ds-soft: #faf8f4;
    --ds-brown: #703909;
    --ds-brown-dark: #4f2806;
    --ds-ink: #170f0d;
    --ds-muted: #6b5d52;
    --ds-soft-text: #8a7b6e;
    --ds-border: #e4ddd3;
    --ds-border-strong: #d4cbc0;
    --ds-radius: 8px;
    --ds-radius-lg: 12px;
    --ds-shadow: 0 14px 34px rgba(112, 57, 9, .08);
    --ds-card-bg: #ffffff;
    --ds-card-border: #e4ddd3;
    --ds-card-radius: 12px;
    --ds-card-shadow: 0 14px 34px rgba(112, 57, 9, .08);
    --heading-font: "Space Grotesk", "Manrope", system-ui, sans-serif;
    --site-content-max: 1220px;
    --site-page-pad: 24px;
    --site-page-pad-md: 20px;
    --site-page-pad-sm: 16px;
    --site-gutter: 24px;
    --site-gutter-md: 20px;
    --site-gutter-sm: 16px;
    --site-content-width: min(var(--site-content-max), 100%);
}

/* One website card language */
body.categories-page .category-card,
body.categories-page .title-card,
body.categories-page .book-preview-card,
body.categories-page .author-card,
body.categories-page .pkg-card,
body.categories-page .pb-book,
body.categories-page .pb-shelf-card,
.popular-books-page .pb-book,
.packages-page .pkg-card,
.authors-page .author-card,
.authors-page .ap-card {
    background: var(--ds-card-bg) !important;
    border: 1px solid var(--ds-card-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(112, 57, 9, .07) !important;
}

.authors-page .author-card:hover,
.authors-page .ap-card:hover {
    border-color: #d8c7b0 !important;
    box-shadow: 0 18px 40px rgba(112, 57, 9, .14) !important;
}

body.categories-page .category-card:hover,
body.categories-page .title-card:hover,
body.categories-page .book-preview-card:hover,
body.categories-page .author-card:hover,
body.categories-page .pkg-card:hover,
.popular-books-page .pb-book:hover,
.packages-page .pkg-card:hover {
    box-shadow: var(--ds-card-shadow) !important;
    border-color: var(--ds-border-strong) !important;
}

body.categories-page,
body.auth-page {
    background: var(--ds-cream) !important;
    color: var(--ds-ink);
}

/* Text */
body.categories-page .text-muted,
body.categories-page .muted,
.popular-books-page > .pb-hero p,
.packages-hero p,
.authors-hero p,
.contact-hero p {
    color: var(--ds-muted);
}

body.categories-page h1,
body.categories-page h2,
body.categories-page h3,
body.categories-page h4,
body.categories-page h5,
body.categories-page h6 {
    color: var(--ds-ink);
    font-family: "Space Grotesk", "Manrope", system-ui, sans-serif !important;
}

body.categories-page .gen-hero h1 {
    font-family: "Space Grotesk", "Manrope", system-ui, sans-serif !important;
    font-weight: 700 !important;
    color: #fff !important;
}

/* Links */
body.categories-page a:not(.btn):not(.nav-btn):not(.nav-auth-btn):not(.nav-auth-ghost):not(.landing-btn-primary):not(.landing-btn-outline):not(.landing-btn-ghost):not(.landing-btn-secondary):not(.hero-carousel-btn):not(.pb-book):not(.category-card):not(.footer-contact-cta):not(.book-page-btn):not(.pkg-cta):not(.share-facebook):not(.share-linkedin):not(.share-whatsapp):not(.seo-tools-nav-link):not(.seo-btn):not(.seo-related-card):not(.seo-related-title) {
    color: var(--ds-brown);
}

body.categories-page a:not(.btn):not(.nav-btn):not(.nav-auth-btn):not(.nav-auth-ghost):not(.landing-btn-primary):not(.landing-btn-outline):not(.landing-btn-ghost):not(.landing-btn-secondary):not(.hero-carousel-btn):not(.pb-book):not(.category-card):not(.footer-contact-cta):not(.book-page-btn):not(.pkg-cta):not(.share-facebook):not(.share-linkedin):not(.share-whatsapp):not(.seo-tools-nav-link):not(.seo-btn):not(.seo-related-card):not(.seo-related-title):hover {
    color: var(--ds-brown-dark);
}

/* Primary buttons ? one recipe */
.btn-primary,
.btn-submit,
.nav-btn.primary,
.nav-auth-btn,
.btn-ai-description,
.btn-buy-package,
.contact-submit,
.referral-verify-btn,
.hero-carousel-btn-primary,
.landing-btn-primary,
.footer-contact-cta,
.pb-search button,
.popular-search button {
    background: var(--ds-brown) !important;
    border: 1px solid var(--ds-brown) !important;
    color: #ffffff !important;
    border-radius: var(--ds-radius) !important;
    box-shadow: none !important;
    background-image: none !important;
}

.btn-primary:hover,
.btn-submit:hover,
.nav-btn.primary:hover,
.nav-auth-btn:hover,
.btn-ai-description:hover,
.btn-buy-package:hover,
.contact-submit:hover,
.referral-verify-btn:hover,
.hero-carousel-btn-primary:hover,
.landing-btn-primary:hover,
.footer-contact-cta:hover,
.pb-search button:hover,
.popular-search button:hover {
    background: var(--ds-brown-dark) !important;
    border-color: var(--ds-brown-dark) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Outline / secondary buttons */
.btn-outline-primary,
.nav-auth-ghost,
.landing-btn-outline,
.landing-btn-secondary,
.hero-carousel-btn-secondary,
.btn-buy-more {
    color: var(--ds-brown) !important;
    background: #ffffff !important;
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius) !important;
    box-shadow: none !important;
    background-image: none !important;
}

.btn-outline-primary:hover,
.nav-auth-ghost:hover,
.landing-btn-outline:hover,
.landing-btn-secondary:hover,
.hero-carousel-btn-secondary:hover,
.btn-buy-more:hover {
    color: #ffffff !important;
    background: var(--ds-brown) !important;
    border-color: var(--ds-brown) !important;
    box-shadow: none !important;
}

/* Forms */
body.categories-page .form-control,
body.categories-page .form-select,
body.categories-page input[type="text"],
body.categories-page input[type="email"],
body.categories-page input[type="search"],
body.categories-page input[type="password"],
body.categories-page textarea,
body.categories-page select,
.form-control-custom,
.form-input,
.form-textarea,
.popular-search,
.pb-search.popular-search,
.popular-search select,
.pb-search select {
    border-color: var(--ds-border) !important;
    color: var(--ds-ink) !important;
    background-color: #ffffff !important;
    border-radius: var(--ds-radius) !important;
    box-shadow: none;
}

body.categories-page .form-control:focus,
body.categories-page .form-select:focus,
body.categories-page input:focus,
body.categories-page textarea:focus,
body.categories-page select:focus,
.form-control-custom:focus,
.form-input:focus,
.form-textarea:focus {
    border-color: var(--ds-brown) !important;
    box-shadow: 0 0 0 4px rgba(112, 57, 9, .12) !important;
    outline: none !important;
}

body.categories-page ::placeholder {
    color: var(--ds-soft-text) !important;
}

/* Cards / panels */
.app-section-card,
.package-card,
.author-card,
.ap-card,
.contact-card,
.history-header,
.packages-hero,
.popular-book-card,
.popular-series-card,
.landing-proof-grid .stat {
    background: #ffffff !important;
    border: 1px solid var(--ds-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--ds-shadow) !important;
}

/* Popular Books: flat hero, no decorative design / shadows */
.popular-books-page .pb-hero,
.popular-books-page.pb-library .pb-hero {
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 1px solid var(--ds-border) !important;
}

.popular-books-page .pb-hero::before,
.popular-books-page .pb-hero::after {
    display: none !important;
    content: none !important;
}

.popular-books-page .popular-search,
.popular-books-page .pb-search.popular-search,
.popular-books-page .popular-tabs,
.popular-books-page .pb-tabs.popular-tabs {
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

.popular-books-page .popular-kicker {
    background: var(--ds-cream) !important;
    border-color: var(--ds-border) !important;
    color: var(--ds-brown) !important;
}

/* Tabs */
.popular-tabs,
.pb-tabs.popular-tabs {
    background: var(--ds-cream) !important;
    border: 1px solid var(--ds-border) !important;
}

.popular-tabs a,
.pb-tabs.popular-tabs a {
    color: var(--ds-muted) !important;
}

.popular-tabs a.active,
.pb-tabs.popular-tabs a.active,
.popular-tabs a:hover,
.pb-tabs.popular-tabs a:hover {
    color: #ffffff !important;
    background: var(--ds-brown) !important;
}

body.categories-page a.email-verify-btn,
body.categories-page .email-verify-actions a,
body.categories-page .email-verify-actions a:hover,
body.categories-page .email-verify-actions a:not(.btn):hover {
    color: #703909 !important;
}

body.categories-page .email-verify-banner {
    background: #703909 !important;
    border-color: #e4ddd3 !important;
    box-shadow: none !important;
}

body.categories-page .email-verify-copy span,
body.categories-page .email-verify-copy i {
    color: #ffffff !important;
}

body.categories-page .email-verify-btn:not(.email-verify-btn-secondary),
body.categories-page .email-verify-actions a.email-verify-btn {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #703909 !important;
    box-shadow: none !important;
}

body.categories-page .email-verify-btn:not(.email-verify-btn-secondary):hover,
body.categories-page .email-verify-actions a.email-verify-btn:hover {
    background: #f6f3ee !important;
    border-color: #f6f3ee !important;
    color: #4f2806 !important;
}

body.categories-page .email-verify-btn-secondary,
body.categories-page .email-verify-actions button {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.categories-page .email-verify-btn-secondary:hover,
body.categories-page .email-verify-actions button:hover {
    background: #4f2806 !important;
    border-color: #4f2806 !important;
    color: #ffffff !important;
}

.btn-primary,
.btn-check:checked + .btn-primary,
.page-item.active .page-link {
    background-color: var(--ds-brown) !important;
    border-color: var(--ds-brown) !important;
}

.page-link {
    color: var(--ds-brown) !important;
    border-color: var(--ds-border) !important;
}

.page-link:hover {
    color: var(--ds-brown-dark) !important;
    background: var(--ds-cream) !important;
    border-color: var(--ds-border-strong) !important;
}

.text-primary {
    color: var(--ds-brown) !important;
}

.bg-primary {
    background-color: var(--ds-brown) !important;
}

/* Header polish */
.site-header .top-nav,
.top-nav {
    border-color: var(--ds-border) !important;
}

.site-header .nav-auth-ghost,
body.categories-page .site-header .nav-auth-ghost {
    border-color: var(--ds-border) !important;
}

.hero-carousel-kicker,
.hero-carousel-btn-secondary {
    border-color: var(--ds-border) !important;
}

/* Icons default to brand on interactive chrome */
.popular-search i,
.pb-search i,
.pb-book-stats i,
.contact-submit i,
.nav-link-accent i {
    color: var(--ds-brown) !important;
}

/* =========================================================
   Packages page ? modern pricing (pkg-*)
   ========================================================= */
.pkg-page {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
    padding: 0 0 88px;
}

.pkg-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 36px;
    padding: 32px;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(196, 165, 116, .28), transparent 55%),
        linear-gradient(160deg, #faf8f4 0%, #ffffff 52%, #f4f0e9 100%);
    border: 1px solid #e4ddd3;
}

.pkg-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #703909;
    background: rgba(255, 255, 255, .85);
    border: 1px solid #e4ddd3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pkg-hero-copy h1 {
    margin: 0 0 14px;
    color: #170f0d;
    font-family: "Space Grotesk", var(--heading-font), sans-serif !important;
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.08;
    max-width: 16ch;
}

.pkg-hero-copy p {
    margin: 0;
    max-width: 48ch;
    color: #6b5d52;
    font-size: 16px;
    line-height: 1.65;
}

.pkg-hero-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pkg-balance,
.pkg-bonus {
    padding: 18px 18px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    box-shadow: 0 12px 28px rgba(112, 57, 9, .06);
}

.pkg-balance-label,
.pkg-bonus span {
    display: block;
    color: #6b5d52;
    font-size: 13px;
    font-weight: 600;
}

.pkg-balance strong {
    display: block;
    margin: 4px 0 2px;
    color: #170f0d;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
}

.pkg-balance-meta {
    color: #8a7b6e;
    font-size: 12px;
    font-weight: 600;
}

.pkg-bonus strong {
    display: block;
    margin-bottom: 6px;
    color: #170f0d;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 22px;
    font-weight: 700;
}

.pkg-bonus a {
    display: inline-flex;
    margin-top: 12px;
    color: #703909;
    font-weight: 800;
    text-decoration: none;
}

.pkg-bonus a:hover {
    color: #4f2806;
}

.pkg-trust {
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    border: 1px dashed #d4cbc0;
}

.pkg-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: #6b5d52;
    font-size: 13px;
    font-weight: 650;
}

.pkg-trust i {
    width: 18px;
    color: #703909;
    text-align: center;
}

.pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
    margin-bottom: 40px;
}

.pkg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 22px 22px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e4ddd3;
    box-shadow: 0 16px 36px rgba(112, 57, 9, .06);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.pkg-card:hover {
    transform: translateY(-4px);
    border-color: #d4cbc0;
    box-shadow: 0 24px 48px rgba(112, 57, 9, .12);
}

.pkg-card.is-featured {
    background:
        linear-gradient(180deg, #f6f3ee 0%, #ffffff 42%, #faf8f4 100%);
    border-color: #703909;
    box-shadow: 0 22px 50px rgba(112, 57, 9, .14);
    transform: translateY(-8px);
}

.pkg-card.is-featured:hover {
    transform: translateY(-12px);
}

.pkg-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: #703909;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pkg-card-head p {
    margin: 8px 0 0;
    color: #6b5d52;
    font-size: 14px;
    line-height: 1.5;
}

.pkg-tier {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #170f0d;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 18px;
    font-weight: 700;
}

.pkg-tier i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 13px;
    background: #f6f3ee;
    color: #703909;
    border: 1px solid #e4ddd3;
}

.pkg-tier--pro i {
    background: #703909;
    color: #fff;
    border-color: #703909;
}

.pkg-tier--premium i {
    background: #3d1e08;
    color: #e4ddd3;
    border-color: #3d1e08;
}

.pkg-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #170f0d;
}

.pkg-currency {
    font-size: 22px;
    font-weight: 700;
    color: #6b5d52;
}

.pkg-amount {
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: .9;
}

.pkg-unit {
    margin-left: 4px;
    color: #8a7b6e;
    font-size: 13px;
    font-weight: 700;
}

.pkg-credit-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f6f3ee;
    border: 1px solid #e4ddd3;
}

.pkg-credit-pill strong {
    color: #703909;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 22px;
    font-weight: 700;
}

.pkg-credit-pill span {
    color: #6b5d52;
    font-size: 13px;
    font-weight: 650;
}

.pkg-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    flex: 1;
}

.pkg-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #170f0d;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.pkg-features i {
    margin-top: 3px;
    color: #703909;
    font-size: 12px;
}

.pkg-cta-form {
    margin-top: auto;
}

.pkg-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.pkg-cta--outline {
    color: #703909 !important;
    background: #ffffff !important;
    border: 1px solid #e4ddd3 !important;
    box-shadow: none !important;
}

.pkg-cta--outline:hover {
    color: #ffffff !important;
    background: #703909 !important;
    border-color: #703909 !important;
    transform: translateY(-2px);
}

.pkg-cta--solid {
    color: #ffffff !important;
    background: #703909 !important;
    border: 1px solid #703909 !important;
    box-shadow: 0 14px 28px rgba(112, 57, 9, .2) !important;
}

.pkg-cta--solid:hover {
    background: #4f2806 !important;
    border-color: #4f2806 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.pkg-note {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 24px;
    padding: 28px;
    border-radius: 22px;
    background: #faf8f4;
    border: 1px solid #e4ddd3;
}

.pkg-note h2 {
    margin: 0 0 10px;
    color: #170f0d;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.pkg-note > div > p {
    margin: 0;
    color: #6b5d52;
    font-size: 15px;
    line-height: 1.65;
    max-width: 36ch;
}

.pkg-note-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pkg-note-steps > div {
    padding: 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e4ddd3;
}

.pkg-note-steps span {
    display: block;
    margin-bottom: 8px;
    color: #703909;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
}

.pkg-note-steps strong {
    display: block;
    margin-bottom: 6px;
    color: #170f0d;
    font-size: 15px;
}

.pkg-note-steps p {
    margin: 0;
    color: #6b5d52;
    font-size: 13px;
    line-height: 1.5;
}

.pkg-reviews {
    margin-top: 8px;
    padding: 28px;
    border-radius: 22px;
    background: #faf8f4;
    border: 1px solid #e4ddd3;
}

.pkg-reviews h2 {
    margin: 0 0 6px;
    color: #170f0d;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.pkg-reviews-avg {
    margin: 0 0 20px;
    color: #6b5d52;
    font-size: 15px;
}

.pkg-reviews-avg strong {
    color: #170f0d;
}

.pkg-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pkg-reviews-grid blockquote {
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e4ddd3;
}

.pkg-reviews-grid p {
    margin: 0 0 12px;
    color: #170f0d;
    font-size: 15px;
    line-height: 1.55;
}

.pkg-reviews-grid footer {
    color: #6b5d52;
    font-size: 13px;
}

.pkg-reviews-note {
    margin: 16px 0 0;
    color: #6b5d52;
    font-size: 13px;
    line-height: 1.5;
}

.pkg-reviews-note a {
    color: #703909;
    font-weight: 600;
}

@media (max-width: 980px) {
    .page-hero-toolbar--pricing,
    .pkg-hero,
    .pkg-note {
        grid-template-columns: 1fr;
    }

    .pkg-hero-copy h1 {
        max-width: none;
    }

    .pkg-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .pkg-card.is-featured {
        transform: none;
    }

    .pkg-card.is-featured:hover {
        transform: translateY(-4px);
    }

    .pkg-note-steps,
    .pkg-reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pkg-page {
        width: min(1220px, calc(100% - 24px));
        padding: 18px 0 72px;
    }

    .pkg-hero,
    .pkg-note,
    .pkg-reviews {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .pkg-amount {
        font-size: 48px;
    }
}

@media (min-width: 981px) and (max-width: 1100px) {
    .pkg-grid {
        gap: 16px;
    }

    .pkg-card {
        padding: 22px 18px 18px;
    }

    .pkg-amount {
        font-size: 48px;
    }
}

/* =========================================================
   Website UI consistency: buttons + loaders (no dashboard)
   ========================================================= */
:root {
    --ds-brown: #703909;
    --ds-brown-dark: #4f2806;
    --ds-cream: #f6f3ee;
    --ds-border: #e4ddd3;
    --ds-radius: 8px;
}

/* Never force link-brown onto solid CTAs */
body.categories-page a.book-page-btn.primary,
body.categories-page a.book-page-btn.primary *,
body.categories-page a.nav-btn.primary,
body.categories-page a.nav-auth-btn,
body.categories-page a.landing-btn-primary,
body.categories-page a.hero-carousel-btn-primary,
body.categories-page a.footer-contact-cta,
body.categories-page a.pkg-cta--solid,
body.categories-page .share-strip a.share-facebook,
body.categories-page .share-strip a.share-linkedin,
body.categories-page .share-strip a.share-whatsapp {
    color: #ffffff !important;
}

/* Unified primary button recipe */
body.categories-page .book-page-btn.primary,
body.categories-page .favorite-btn,
body.categories-page .public-follow-box button,
body.categories-page .review-submit,
body.categories-page .btn-primary,
body.categories-page .btn-submit,
body.categories-page .nav-btn.primary,
body.categories-page .nav-auth-btn,
body.categories-page .landing-btn-primary,
body.categories-page .hero-carousel-btn-primary,
body.categories-page .footer-contact-cta,
body.categories-page .pb-search button,
body.categories-page .popular-search button,
body.categories-page .pkg-cta--solid,
body.categories-page .pdf-format-primary,
body.categories-page .contact-submit {
    background: var(--ds-brown) !important;
    border: 1px solid var(--ds-brown) !important;
    color: #ffffff !important;
    border-radius: var(--ds-radius) !important;
    box-shadow: none !important;
    background-image: none !important;
    transition: background .2s ease, border-color .2s ease, color .2s ease !important;
}

body.categories-page .book-page-btn.primary:hover,
body.categories-page .favorite-btn:hover,
body.categories-page .public-follow-box button:hover,
body.categories-page .review-submit:hover,
body.categories-page .btn-primary:hover,
body.categories-page .btn-submit:hover,
body.categories-page .nav-btn.primary:hover,
body.categories-page .nav-auth-btn:hover,
body.categories-page .landing-btn-primary:hover,
body.categories-page .hero-carousel-btn-primary:hover,
body.categories-page .footer-contact-cta:hover,
body.categories-page .pb-search button:hover,
body.categories-page .popular-search button:hover,
body.categories-page .pkg-cta--solid:hover,
body.categories-page .pdf-format-primary:hover,
body.categories-page .contact-submit:hover,
body.categories-page .favorite-btn.is-liked {
    background: var(--ds-brown-dark) !important;
    border-color: var(--ds-brown-dark) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none;
}

/* Unified outline / secondary buttons */
body.categories-page .book-page-btn:not(.primary),
body.categories-page .nav-auth-ghost,
body.categories-page .landing-btn-outline,
body.categories-page .landing-btn-secondary,
body.categories-page .hero-carousel-btn-secondary,
body.categories-page .pkg-cta--outline,
body.categories-page .pdf-format-secondary,
body.categories-page .pdf-format-word,
body.categories-page .share-strip button,
body.categories-page .btn-outline-primary {
    background: #ffffff !important;
    border: 1px solid var(--ds-border) !important;
    color: var(--ds-brown) !important;
    border-radius: var(--ds-radius) !important;
    box-shadow: none !important;
    background-image: none !important;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

body.categories-page .book-page-btn:not(.primary):hover,
body.categories-page .nav-auth-ghost:hover,
body.categories-page .landing-btn-outline:hover,
body.categories-page .landing-btn-secondary:hover,
body.categories-page .hero-carousel-btn-secondary:hover,
body.categories-page .pkg-cta--outline:hover,
body.categories-page .pdf-format-secondary:hover,
body.categories-page .pdf-format-word:hover,
body.categories-page .share-strip button:hover,
body.categories-page .btn-outline-primary:hover {
    background: var(--ds-brown) !important;
    border-color: var(--ds-brown) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none;
}

/* Keep social brand fills, force readable white text */
body.categories-page .share-strip a.share-facebook {
    background: #1877f2 !important;
    border-color: #1877f2 !important;
    color: #ffffff !important;
}
body.categories-page .share-strip a.share-linkedin {
    background: #0a66c2 !important;
    border-color: #0a66c2 !important;
    color: #ffffff !important;
}
body.categories-page .share-strip a.share-whatsapp {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
}
body.categories-page .share-strip a.share-facebook:hover,
body.categories-page .share-strip a.share-linkedin:hover,
body.categories-page .share-strip a.share-whatsapp:hover {
    filter: brightness(.92);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Kill red-tinted button gradients / hover leftovers on public site */
body.categories-page .nav-btn.primary,
body.categories-page .btn-submit,
body.categories-page .landing-btn-primary,
body.categories-page .hero-carousel-btn-primary {
    background-image: none !important;
}

/* ===== Unified site loader / spinner ===== */
.site-spinner,
.category-row-loader span,
.pdf-preview-loading span,
.title-choice-page .loader-ring,
.loader-section .loader-ring {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 3px solid #e4ddd3 !important;
    border-top-color: #703909 !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: siteSpinnerSpin .7s linear infinite !important;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(23, 15, 13, .52);
    backdrop-filter: blur(8px);
}

.site-loader.is-active,
.site-loader:not([hidden]).is-active {
    display: flex;
}

.site-loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: min(280px, 100%);
    padding: 22px 24px;
    border-radius: 16px;
    background: #faf8f4;
    border: 1px solid #e4ddd3;
    box-shadow: 0 24px 60px rgba(112, 57, 9, .2);
    text-align: center;
}

.site-loader-card--progress {
    width: min(360px, 100%);
    gap: 10px;
    padding: 28px 28px 24px;
}

.site-loader-percent {
    margin: 0;
    color: #703909;
    font-family: "Space Grotesk", "Manrope", system-ui, sans-serif !important;
    font-size: clamp(42px, 8vw, 56px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

.site-loader-track {
    width: 100%;
    height: 10px;
    margin: 6px 0 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8e0d6;
}

.site-loader-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #703909 0%, #9a5a1a 55%, #c4a574 100%);
    transition: width .25s ease;
}

.site-loader-text {
    margin: 0;
    color: #170f0d;
    font-family: "Manrope", system-ui, sans-serif !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.site-loader-sub {
    margin: 0;
    color: #715a54;
    font-family: "Manrope", system-ui, sans-serif !important;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

body.site-loader-open {
    overflow: hidden;
}

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

.category-row-loader {
    border-color: #e4ddd3 !important;
}

.pdf-preview-loading {
    background: rgba(23, 15, 13, .5) !important;
    color: #f6f3ee !important;
    font-weight: 700 !important;
}

/* Book show CTA sizing consistency */
.book-show-page .hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.book-show-page .book-page-btn,
.book-show-page .favorite-btn,
.book-show-page .share-strip a,
.book-show-page .share-strip button {
    /* min-height: 42px !important; */
    padding: 0 16px !important;
    font-family: "Manrope", system-ui, sans-serif !important;
}

/* ===== SITEWIDE RESPONSIVE HARDENING (2026-07) ===== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
svg,
canvas {
    max-width: 100%;
}

@media (max-width: 1100px) {
    /* Menu must never sit above the open drawer / Close control */
    .site-header .nav-toggle,
    .nav-toggle {
        z-index: 1000 !important;
    }

    body.nav-drawer-open .site-header .nav-toggle,
    body.nav-drawer-open .nav-toggle {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.nav-drawer-open .site-header .nav-drawer-close,
    body.nav-drawer-open .nav-drawer-close {
        position: relative;
        z-index: 1004 !important;
    }

    .site-header .nav-actions,
    .site-header #siteNavActions {
        width: min(340px, 92vw) !important;
        max-width: 92vw !important;
    }
}

@media (max-width: 767px) {
    .site-header .nav-actions,
    .site-header #siteNavActions {
        width: min(100vw, 100%) !important;
        max-width: 100vw !important;
        border-right: 0 !important;
    }

    .homepage-hero-carousel {
        min-height: 480px !important;
    }

    .hero-carousel-slide {
        padding: 28px 16px 78px !important;
    }

    .hero-carousel-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-carousel-content h1,
    .hero-carousel-content h2 {
        font-size: clamp(26px, 8vw, 34px) !important;
        line-height: 1.12 !important;
        white-space: normal !important;
    }

    .hero-carousel-content p {
        font-size: 14px !important;
        max-width: 100% !important;
    }

    .hero-carousel-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .hero-carousel-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-carousel-slide::after {
        width: 100% !important;
        opacity: .14 !important;
    }

    .abg-promise,
    .abg-promise-compact,
    .abg-banner-inner {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .abg-promise-visual,
    .abg-banner-visual {
        width: 100% !important;
        max-width: 100% !important;
        order: -1;
    }

    .abg-float-chip,
    .abg-banner-chip {
        display: none !important;
    }

    .abg-metrics-inner,
    .abg-audience-grid,
    .abg-proof-grid,
    .landing-proof-grid {
        grid-template-columns: 1fr !important;
    }

    .home-library-search,
    .home-library-hero,
    .abg-section-intro,
    .abg-section-intro-center {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-library-search {
        padding: 12px !important;
    }

    .home-library-search .search-box {
        width: 100%;
        min-width: 0;
    }

    .home-library-search .search-box input {
        min-width: 0;
        text-overflow: ellipsis;
    }

    .home-library-search .landing-quick-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .landing-categories-wrap .categories-grid,
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .footer-wrap {
        width: min(100% - 28px, 560px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .footer-main {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .pkg-grid,
    .pkg-page .pkg-grid,
    .row.g-4 > [class*="col-"] {
        min-width: 0;
    }

    .package-card,
    .pkg-card,
    .history-header,
    .credit-balance-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    .history-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal,
    .modal-lg,
    .modal-overlay .modal {
        width: min(100% - 24px, 640px) !important;
        max-width: calc(100vw - 24px) !important;
        margin: 12px auto !important;
    }
}

@media (max-width: 420px) {
    .landing-categories-wrap .categories-grid,
    .categories-grid {
        grid-template-columns: 1fr !important;
    }

    .site-header .nav-logo {
        height: 40px !important;
        max-width: 112px !important;
    }
}

/* SEO landing page internal link grids (homepage + landing pages) */
.seo-related-links {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 72px;
}

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

.seo-related-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 188px;
    padding: 22px 20px 20px;
    border: 1px solid var(--abg-border, #e4ddd3);
    border-radius: 18px;
    background:
        linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(112, 57, 9, .05);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.seo-related-card:hover {
    transform: translateY(-4px);
    border-color: #d4cbc0;
    box-shadow: 0 20px 42px rgba(112, 57, 9, .12);
}

.seo-related-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f6f3ee;
    border: 1px solid #e4ddd3;
    color: #703909;
    font-size: 16px;
    flex-shrink: 0;
}

.seo-related-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.seo-related-card strong,
.seo-related-title {
    color: var(--abg-ink, #170f0d);
    font-family: var(--heading-font, var(--app-heading-font)) !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.seo-related-title {
    display: block;
    flex: 1;
    text-decoration: none !important;
    color: inherit;
}

.seo-related-title::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.seo-related-copy > span,
.seo-related-card > span:not(.seo-related-icon):not(.seo-related-arrow) {
    color: var(--abg-muted, #6b5d52);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
}

.seo-related-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #703909;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.seo-related-arrow i {
    font-size: 11px;
    transition: transform .25s ease;
}

.seo-related-card:hover .seo-related-arrow i {
    transform: translateX(3px);
}

.seo-related-links .abg-section-intro {
    margin-bottom: 28px;
}

.seo-related-links .abg-section-intro p {
    margin-top: 12px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: var(--abg-muted, #6b5d52);
    font-size: 16px;
    line-height: 1.65;
}

@media (max-width: 991px) {
    .seo-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .seo-related-card {
        min-height: 172px;
    }
}

@media (max-width: 640px) {
    .seo-related-links {
        width: min(1220px, calc(100% - 24px));
        margin-bottom: 56px;
    }

    .seo-related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .seo-related-card {
        min-height: 0;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 16px;
    }

    .seo-related-copy {
        flex: 1;
        min-width: 0;
    }

    .seo-related-arrow {
        display: none;
    }
}


/* =========================================================
   SITE CONTENT RAIL — global left/right page padding
   Heroes / full-bleed banners stay edge-to-edge.
   ========================================================= */
:root {
    --site-content-max: 1220px;
    --site-page-pad: 24px;
    --site-page-pad-md: 20px;
    --site-page-pad-sm: 16px;
}

/*
 * Shared public content shell.
 * Uses real padding-inline so gutters stay visible on every viewport,
 * including when the max-width rail is active.
 */
.site-container,
.authors-container,
.author-container,
.popular-books-page,
.popular-books-page.pb-library,
.pkg-page,
.contact-page,
.legal-page,
.seo-related-links,
.abg-publish-stage-inner,
.footer-wrap,
.landing-cinematic-hero,
.landing-proof-strip,
.landing-discovery,
.landing-categories-wrap,
.landing-editorial-band,
.landing-workflow-section,
.home-library-stage,
.abg-metrics,
.abg-promise,
.abg-studio,
.abg-editor-control,
.abg-banner,
.abg-audience,
.abg-workflow,
.abg-capabilities,
.abg-usecases,
.abg-proof,
.abg-faq,
.abg-finale,
.page-hero-toolbar,
.gen-hero-content {
    width: 100% !important;
    max-width: var(--site-content-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--site-page-pad) !important;
    padding-right: var(--site-page-pad) !important;
    box-sizing: border-box !important;
}

.legal-page {
    max-width: 980px !important;
}

/* Nested toolbars already live inside a padded shell */
.pkg-page > .page-hero-toolbar,
.popular-books-page > .page-hero-toolbar,
.authors-container > .page-hero-toolbar,
.authors-page .page-hero-toolbar {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: clamp(20px, 3vw, 28px) !important;
    padding-right: clamp(20px, 3vw, 28px) !important;
}

/* Keep full-bleed heroes/banners edge-to-edge (no side padding on the outer shell) */
.homepage-hero-carousel,
.gen-hero,
.gen-hero-bg,
.gen-hero-overlay,
.seo-finale,
.abg-publish-stage,
.seo-tool--ebook .ebk-hero,
.seo-tool--make .mk-hero {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

@media (max-width: 991px) {
    :root {
        --site-page-pad: var(--site-page-pad-md);
    }
}

@media (max-width: 640px) {
    :root {
        --site-page-pad: var(--site-page-pad-sm);
    }
}

/* ===== MOBILE NAV DRAWER (final authoritative rules) ===== */
@media (max-width: 1100px) {
    .nav-toggle {
        display: inline-flex !important;
    }

    body > .nav-drawer-backdrop,
    #navDrawerBackdrop {
        position: fixed !important;
        inset: 0 !important;
        z-index: 10040 !important;
        display: block !important;
        margin: 0 !important;
        background: rgba(17, 24, 39, .45) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .25s ease, visibility .25s ease !important;
    }

    body > .nav-drawer-backdrop.is-open,
    #navDrawerBackdrop.is-open,
    body.nav-drawer-open #navDrawerBackdrop {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body > .nav-actions#siteNavActions,
    #siteNavActions.nav-actions {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: auto !important;
        z-index: 10050 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 14px !important;
        width: min(340px, 92vw) !important;
        max-width: 92vw !important;
        height: 100% !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 16px 16px 24px !important;
        background: #ffffff !important;
        border-right: 1px solid #e4ddd3 !important;
        box-shadow: 24px 0 60px rgba(17, 24, 39, .2) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-105%) !important;
        -webkit-transform: translateX(-105%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: transform .28s ease, visibility .28s ease !important;
    }

    body > .nav-actions#siteNavActions.is-open,
    #siteNavActions.nav-actions.is-open,
    body.nav-drawer-open #siteNavActions.nav-actions {
        transform: translateX(0) !important;
        -webkit-transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body > .nav-actions#siteNavActions .nav-drawer-head,
    #siteNavActions .nav-drawer-head {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding-bottom: 14px;
        margin: 0 0 2px !important;
        border-bottom: 1px solid #e4ddd3;
        flex-shrink: 0;
    }

    body > .nav-actions#siteNavActions .nav-drawer-logo,
    #siteNavActions .nav-drawer-logo {
        width: 128px !important;
        height: auto !important;
        max-height: 42px !important;
        object-fit: contain;
    }

    #navDrawerClose,
    #siteNavActions .nav-drawer-close {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        min-width: 78px !important;
        height: 40px !important;
        padding: 0 12px !important;
        border: 1px solid #e4ddd3 !important;
        border-radius: 10px !important;
        background: #f6f3ee !important;
        color: #703909 !important;
        box-shadow: none !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        z-index: 10060 !important;
        position: relative !important;
    }

    #siteNavActions .nav-drawer-close i {
        color: inherit !important;
        font-size: 14px !important;
    }

    body.nav-drawer-open {
        overflow: hidden !important;
    }

    body.nav-drawer-open .site-header .nav-toggle,
    body.nav-drawer-open #navToggle {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body > .nav-actions#siteNavActions .nav-links,
    body > .nav-actions#siteNavActions .nav-cta-group,
    #siteNavActions .nav-links,
    #siteNavActions .nav-cta-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        gap: 8px !important;
        flex: 0 0 auto;
    }

    /* Same row style for every drawer item (links + Explore) */
    #siteNavActions .nav-link-item,
    #siteNavActions .nav-dropdown-toggle,
    #siteNavActions .nav-dropdown-toggle.nav-link-item,
    #siteNavActions a.nav-link-item {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 46px !important;
        margin: 0 !important;
        padding: 0 14px !important;
        border: 1px solid #ece6dc !important;
        border-radius: 12px !important;
        background: #faf8f4 !important;
        background-image: none !important;
        color: #4b3732 !important;
        box-shadow: none !important;
        font-family: var(--heading-font, "Manrope", system-ui, sans-serif) !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        line-height: 1.2 !important;
        text-align: left !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: background .2s ease, border-color .2s ease, color .2s ease !important;
    }

    #siteNavActions .nav-link-item::after,
    #siteNavActions .nav-dropdown-toggle::after {
        display: none !important;
        content: none !important;
    }

    #siteNavActions .nav-link-item:hover,
    #siteNavActions .nav-dropdown-toggle:hover,
    #siteNavActions .nav-dropdown-toggle.nav-link-item:hover,
    #siteNavActions a.nav-link-item:hover {
        background: #f1ebe2 !important;
        background-image: none !important;
        border-color: #d9d0c3 !important;
        color: #703909 !important;
        text-decoration: none !important;
    }

    #siteNavActions .nav-link-accent {
        color: #703909 !important;
        border-color: #e2d3bf !important;
        background: #fff8ef !important;
    }

    #siteNavActions .nav-dropdown {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    #siteNavActions .nav-dropdown-chevron {
        margin-left: auto !important;
        font-size: 12px !important;
        opacity: .75 !important;
        color: inherit !important;
        transition: transform .2s ease !important;
    }

    #siteNavActions .nav-dropdown.is-open .nav-dropdown-chevron {
        transform: rotate(180deg);
    }

    #siteNavActions .nav-dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 6px !important;
        border: 1px solid #ece6dc !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    #siteNavActions .nav-dropdown.is-open .nav-dropdown-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    #siteNavActions .nav-dropdown-menu a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 40px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        color: #4b3732 !important;
        background: transparent !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    #siteNavActions .nav-dropdown-menu a:hover {
        background: #f6f3ee !important;
        color: #703909 !important;
        text-decoration: none !important;
    }

    /* Auth / logout CTA */
    #siteNavActions .nav-btn,
    #siteNavActions .nav-auth-btn,
    #siteNavActions a.nav-btn,
    #siteNavActions a.nav-auth-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 16px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    #siteNavActions .nav-auth-ghost,
    #siteNavActions a.nav-auth-ghost {
        color: #703909 !important;
        background: #ffffff !important;
        background-image: none !important;
        border: 1px solid #e4ddd3 !important;
    }

    #siteNavActions .nav-auth-ghost:hover,
    #siteNavActions a.nav-auth-ghost:hover {
        color: #ffffff !important;
        background: #703909 !important;
        background-image: none !important;
        border-color: #703909 !important;
    }

    #siteNavActions .nav-auth-btn:not(.nav-auth-ghost),
    #siteNavActions .nav-btn.primary,
    #siteNavActions a.nav-auth-btn:not(.nav-auth-ghost) {
        color: #ffffff !important;
        background: #703909 !important;
        background-image: none !important;
        border: 1px solid #703909 !important;
    }

    #siteNavActions .nav-cta-group {
        margin-top: auto !important;
        padding-top: 10px !important;
    }
}

@media (max-width: 767px) {
    body > .nav-actions#siteNavActions,
    #siteNavActions.nav-actions {
        width: 100vw !important;
        max-width: 100vw !important;
        border-right: 0 !important;
    }
}

@media (min-width: 1101px) {
    .nav-toggle,
    .nav-drawer-head,
    .nav-drawer-backdrop,
    #navDrawerBackdrop {
        display: none !important;
    }

    body > .nav-actions#siteNavActions,
    #siteNavActions.nav-actions {
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        background: transparent !important;
        gap: 12px !important;
    }

    #siteNavActions .nav-links,
    #siteNavActions .nav-cta-group {
        flex-direction: row !important;
        width: auto !important;
        gap: inherit !important;
    }
}



