
/* =========================================================
   FREEMANWV SCRAPBOOK
   CLEAN MASTER STYLESHEET
   ========================================================= */
/* =========================================================
   SECTION: SCRAPBOOK LANDING PAGE
   ========================================================= */

.scrapbook-landing-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 20px 92px;
    background:
        radial-gradient(circle at 14% 22%, rgba(31,95,58,0.08), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(212,160,23,0.10), transparent 20%),
        linear-gradient(to bottom, #f6faf7 0%, #ffffff 100%);
}

.scrapbook-hero-shape {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.scrapbook-hero-shape-1 {
    left: -140px;
    top: 20px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(31,95,58,0.06) 0%, rgba(31,95,58,0.01) 50%, rgba(31,95,58,0) 72%);
}

.scrapbook-hero-shape-2 {
    right: -120px;
    bottom: 10px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(106,174,214,0.08) 0%, rgba(106,174,214,0.02) 48%, rgba(106,174,214,0) 74%);
}

.scrapbook-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

.scrapbook-hero-copy {
    flex: 0 1 580px;
}

.scrapbook-kicker,
.section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(31,95,58,0.08);
    color: #1f5f3a;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.scrapbook-hero-copy h1 {
    margin: 0 0 16px;
    font-size: 3.9rem;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #1f5f3a;
    max-width: 680px;
}

.scrapbook-hero-copy p {
    margin: 0 0 26px;
    max-width: 620px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #56645c;
}

.scrapbook-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.scrapbook-hero-preview {
    flex: 0 1 460px;
    display: flex;
    justify-content: center;
}

.book-mockup-stack {
    position: relative;
    width: 360px;
    height: 420px;
}

.book-mockup {
    position: absolute;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(19, 37, 28, 0.12);
}

.book-mockup-back {
    inset: 24px 24px 24px 24px;
    background: linear-gradient(180deg, #dce8e1 0%, #eef4f0 100%);
    transform: rotate(-8deg);
    opacity: 0.7;
}

.book-mockup-middle {
    inset: 14px 14px 14px 14px;
    background: linear-gradient(180deg, #f4ebd5 0%, #fbf6ea 100%);
    transform: rotate(5deg);
    opacity: 0.9;
}

.book-mockup-front {
    inset: 0;
    background: #ffffff;
    border: 1px solid #e7ede9;
    overflow: hidden;
}

.book-cover {
    padding: 20px;
    border-bottom: 1px solid #edf2ef;
}

.book-cover-image {
    height: 130px;
    border-radius: 16px;
    margin-bottom: 16px;
    background:
        linear-gradient(135deg, rgba(31,95,58,0.18), rgba(106,174,214,0.20)),
        linear-gradient(to bottom right, #d7e7dd, #eef6f1);
}

.book-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a867f;
}

.book-cover-text h3 {
    margin: 0 0 8px;
    font-size: 1.55rem;
    color: #1f5f3a;
}

.book-cover-text p {
    margin: 0;
    color: #5d6b63;
    line-height: 1.6;
    font-size: 0.95rem;
}

.book-page-preview {
    padding: 20px;
}

.page-photo {
    height: 120px;
    border-radius: 16px;
    margin-bottom: 16px;
    background:
        linear-gradient(135deg, rgba(212,160,23,0.18), rgba(106,174,214,0.18)),
        linear-gradient(to bottom right, #f1ead8, #edf3f8);
}

.page-lines {
    display: grid;
    gap: 10px;
}

.page-lines span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #e5ece8;
}

.page-lines span:nth-child(1) {
    width: 92%;
}

.page-lines span:nth-child(2) {
    width: 84%;
}

.page-lines span:nth-child(3) {
    width: 68%;
}

.scrapbook-use-cases,
.scrapbook-how-it-works,
.scrapbook-demo-section,
.scrapbook-pricing,
.scrapbook-final-cta {
    padding: 82px 20px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: 2.6rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #1f5f3a;
}

.section-heading p {
    margin: 0;
    color: #5c6a62;
    font-size: 1.05rem;
    line-height: 1.7;
}

.use-case-grid,
.steps-grid,
.pricing-grid {
    display: grid;
    gap: 22px;
}

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

.use-case-card,
.step-card,
.pricing-card,
.final-cta-card,
.demo-panel {
    background: #ffffff;
    border: 1px solid #e5ece8;
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(19, 37, 28, 0.05);
}

.use-case-card {
    padding: 24px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
}

.use-case-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eef5f1 0%, #e5efe9 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.use-case-icon-label {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1f5f3a;
}

.use-case-icon {
    width: 24px;
    height: 24px;
    stroke: #1f5f3a;
    stroke-width: 1.8;
    fill: none;
}

.use-case-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #1f5f3a;
}

.use-case-card p {
    margin: 0;
    color: #58665e;
    line-height: 1.65;
}

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

.step-card {
    padding: 26px 24px;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5f1;
    color: #1f5f3a;
    font-weight: 800;
}

.step-card h3 {
    margin: 0 0 10px;
    color: #1f5f3a;
    font-size: 1.24rem;
}

.step-card p {
    margin: 0;
    color: #59675f;
    line-height: 1.65;
}

.demo-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 34px;
    background:
        radial-gradient(circle at 85% 15%, rgba(106,174,214,0.10), transparent 24%),
        linear-gradient(to bottom, #ffffff 0%, #fbfcfb 100%);
}

.demo-panel-copy {
    flex: 0 1 540px;
}

.demo-panel-copy h2 {
    margin: 0 0 12px;
    font-size: 2.25rem;
    line-height: 1.08;
    color: #1f5f3a;
}

.demo-panel-copy p {
    margin: 0 0 22px;
    color: #58665e;
    line-height: 1.72;
}

.demo-panel-preview {
    position: relative;
    flex: 0 1 360px;
    min-height: 250px;
}

.demo-page {
    position: absolute;
    border-radius: 22px;
    border: 1px solid #e6ece8;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(19, 37, 28, 0.07);
}

.demo-page-one {
    width: 280px;
    height: 220px;
    right: 0;
    top: 0;
    padding: 18px;
}

.demo-page-two {
    width: 220px;
    height: 180px;
    left: 16px;
    bottom: 0;
    background: linear-gradient(135deg, #edf4f1, #f8fbfa);
    transform: rotate(-8deg);
}

.demo-page-image {
    height: 110px;
    border-radius: 14px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #dce8e1, #eef4f8);
}

.demo-page-text {
    display: grid;
    gap: 10px;
}

.demo-page-text span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #e6ece8;
}

.demo-page-text span:nth-child(1) {
    width: 100%;
}

.demo-page-text span:nth-child(2) {
    width: 85%;
}

.demo-page-text span:nth-child(3) {
    width: 65%;
}

.scrapbook-pricing {
    background: linear-gradient(to bottom, #fbfcfb 0%, #ffffff 100%);
}

.pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 880px;
    margin: 0 auto;
}

.pricing-card {
    padding: 28px 26px;
}

.pricing-card-featured {
    position: relative;
    border-color: #dfe9e3;
    box-shadow: 0 20px 42px rgba(19, 37, 28, 0.08);
}

.pricing-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef5f1;
    color: #1f5f3a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pricing-card h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: #1f5f3a;
}

.pricing-price {
    margin: 0 0 18px;
    font-size: 2.5rem;
    line-height: 1;
    color: #1f5f3a;
    font-weight: 800;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 600;
    color: #627067;
}

.pricing-list {
    margin: 0 0 24px;
    padding-left: 18px;
    color: #5a675f;
    line-height: 1.8;
}

.final-cta-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 42px 34px;
    text-align: center;
    background:
        radial-gradient(circle at 18% 20%, rgba(31,95,58,0.06), transparent 24%),
        radial-gradient(circle at 80% 22%, rgba(212,160,23,0.07), transparent 20%),
        linear-gradient(to bottom, #ffffff 0%, #fbfcfb 100%);
}

.final-cta-card h2 {
    margin: 0 0 14px;
    font-size: 2.4rem;
    line-height: 1.08;
    color: #1f5f3a;
}

.final-cta-card p {
    max-width: 700px;
    margin: 0 auto 24px;
    color: #5a675f;
    line-height: 1.72;
    font-size: 1.03rem;
}
/* =========================================================
   SECTION: BASE UTILITIES
   ========================================================= */

.is-hidden {
    display: none !important;
}

.scrapbook-visibility-badge {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(120, 94, 58, 0.10);
    color: #5f4d3f;
    font-size: 0.9rem;
    font-weight: 700;
}

/* =========================================================
   SECTION: AUTH / FORMS / GENERAL APP UI
   ========================================================= */

.scrapbook-auth-section {
    padding: 70px 20px 90px;
    background:
        radial-gradient(circle at 15% 20%, rgba(31,95,58,0.06), transparent 22%),
        radial-gradient(circle at 85% 18%, rgba(212,160,23,0.08), transparent 20%),
        linear-gradient(to bottom, #f5f9f7 0%, #ffffff 100%);
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5ece8;
    border-radius: 22px;
    padding: 34px 30px;
    box-shadow: 0 18px 40px rgba(19, 37, 28, 0.08);
}

.auth-card-wide {
    max-width: 760px;
}

.auth-card-header {
    margin-bottom: 24px;
    text-align: center;
}

.auth-card-header h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.1;
    color: #1f5f3a;
}

.auth-card-header p {
    margin: 0;
    color: #5a675f;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    font-weight: 700;
    color: #213028;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d8e2dc;
    border-radius: 14px;
    background: #fff;
    color: #213028;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: #1f5f3a;
    box-shadow: 0 0 0 4px rgba(31,95,58,0.10);
}

.form-help {
    display: block;
    margin-top: 6px;
    color: #6a766f;
    font-size: 0.9rem;
}

.form-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.96rem;
}

.form-alert-error {
    background: #fff3f2;
    border: 1px solid #f2c7c2;
    color: #8a2d23;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.btn-full {
    width: 100%;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d8e2dc;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.radio-option input {
    margin: 0;
}

.auth-switch {
    margin: 22px 0 0;
    text-align: center;
    color: #5a675f;
}

.auth-switch a {
    color: #1f5f3a;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* =========================================================
   SECTION: SCRAPBOOK CARD GRID / DASHBOARD
   ========================================================= */

.dashboard-list-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-list-header h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    color: #1f5f3a;
}

.scrapbook-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.scrapbook-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e5ece8;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(19, 37, 28, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scrapbook-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(19, 37, 28, 0.10);
}

.scrapbook-card-image-wrap {
    position: relative;
    height: 220px;
    background: #f3f7f4;
}

.scrapbook-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scrapbook-card-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(31,95,58,0.10), rgba(106,174,214,0.12)),
        linear-gradient(to bottom right, #dfe9e3, #eff5f1);
}

.scrapbook-card-visibility {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(31,95,58,0.08);
    color: #1f5f3a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.scrapbook-card-body {
    padding: 18px 18px 20px;
}

.scrapbook-card-body h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #1f5f3a;
}

.scrapbook-card-body p {
    margin: 0 0 12px;
    color: #58665e;
    line-height: 1.6;
}

.scrapbook-card-meta {
    font-size: 0.88rem;
    color: #78857d;
}

/* =========================================================
   SECTION: BOOK EDIT PAGE
   ========================================================= */

.book-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}

.book-edit-main,
.book-edit-sidebar {
    min-width: 0;
}

.page-list {
    display: grid;
    gap: 14px;
}

.page-list-item {
    border: 1px solid #e5ece8;
    border-radius: 18px;
    padding: 16px 16px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
    box-shadow: 0 8px 22px rgba(19, 37, 28, 0.04);
}

.page-list-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.page-order {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef5f1;
    color: #1f5f3a;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-layout {
    font-size: 0.82rem;
    color: #75827a;
    text-transform: capitalize;
}

.page-list-item h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #1f5f3a;
}

.page-list-item p {
    margin: 0;
    color: #58665e;
    line-height: 1.6;
    font-size: 0.95rem;
}

.page-preview-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.inline-action-form,
.inline-delete-form {
    margin: 0;
}

.inline-action-form .btn,
.inline-delete-form .btn {
    width: 100%;
}

.page-preview-actions .btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* =========================================================
   SECTION: BOOK READER WRAPPER
   ========================================================= */

.scrapbook-book-reader {
    padding-bottom: 3rem;
}

.scrapbook-book-controls {
    padding: 0 0 1.25rem;
}

.scrapbook-book-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(140, 115, 82, 0.12);
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.scrapbook-book-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5c4a3c;
    font-weight: 700;
}

.scrapbook-book-status-label,
.scrapbook-book-status-sep {
    color: #7a6858;
    font-weight: 600;
}

.scrapbook-book-status-number,
.scrapbook-book-status-total {
    min-width: 1.5ch;
    text-align: center;
}

.scrapbook-book-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.scrapbook-book-stage {
    padding: 0.25rem 0 2rem;
}

.scrapbook-book-pages {
    max-width: 1000px;
    margin: 0 auto;
}

.scrapbook-page-card[data-page-index] {
    display: none;
}

.scrapbook-page-card[data-page-index].is-active {
    display: block;
    animation: scrapbookPageFade 0.28s ease;
}

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

/* =========================================================
   SECTION: SCRAPBOOK COVER PAGE
   ========================================================= */

.scrapbook-cover-page {
    padding: 3.5rem 0 2.75rem;
}

.scrapbook-book-reader .scrapbook-cover-page .container {
    max-width: 1180px;
}

.scrapbook-cover-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 3.25rem;
    align-items: stretch;
    padding: 2.8rem;
    border-radius: 32px;
    border: 1px solid rgba(120, 94, 58, 0.14);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.10),
        0 6px 16px rgba(0, 0, 0, 0.05);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.88), rgba(255,255,255,0) 34%),
        linear-gradient(to bottom right, #fffaf2, #f5f2eb);
    overflow: hidden;
}

.scrapbook-cover-shell::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 24px;
    border: 1px dashed rgba(140, 115, 82, 0.18);
    pointer-events: none;
}

.scrapbook-cover-shell::after {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: calc(420px + 1.5rem);
    width: 10px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(120, 94, 58, 0.10),
        rgba(255,255,255,0.35),
        rgba(120, 94, 58, 0.14)
    );
    opacity: 0.70;
    pointer-events: none;
}

.scrapbook-cover-image-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.scrapbook-cover-frame {
    width: 100%;
    max-width: 380px;
    padding: 18px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, #f9efcc 0%, #dcc17b 100%);
    box-shadow:
        inset 0 0 0 2px rgba(120, 96, 40, 0.18),
        inset 0 0 0 8px rgba(255,255,255,0.18),
        0 18px 34px rgba(0, 0, 0, 0.14);
    position: relative;
}

.scrapbook-cover-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 18px;
    border: 1px solid rgba(120, 96, 40, 0.18);
    pointer-events: none;
}

.scrapbook-cover-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    border: 10px solid #fffdf8;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

.scrapbook-cover-image-placeholder {
    min-height: 420px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 3px dashed rgba(120, 96, 40, 0.26);
    background: rgba(255,255,255,0.72);
    color: #6b7280;
    text-align: center;
    padding: 1.25rem;
    font-weight: 600;
}

.scrapbook-cover-text-panel {
    position: relative;
    z-index: 1;
    max-width: 760px;
    min-width: 0;
    padding: 1rem 0 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.scrapbook-cover-kicker {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 1.15rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(120, 94, 58, 0.10);
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8b7a52;
    font-weight: 700;
}

.scrapbook-cover-title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(3.3rem, 5.8vw, 5.9rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
    color: #2f241c;
    text-shadow: 0 1px 0 rgba(255,255,255,0.45);
    max-width: 9ch;
    text-wrap: balance;
    position: relative;
}

.scrapbook-cover-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    margin-top: 1.15rem;
    border-radius: 999px;
    background: linear-gradient(to right, rgba(120,94,58,0.55), rgba(120,94,58,0.08));
}

.scrapbook-cover-description {
    margin-top: 1.35rem;
    margin-bottom: 1.7rem;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #4f4338;
    max-width: 40ch;
}

.scrapbook-cover-description.is-empty {
    font-style: italic;
    color: #7b6f65;
}

.scrapbook-cover-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
    padding-top: 0.4rem;
}

/* =========================================================
   SECTION: COVER THEMES
   ========================================================= */

.cover-theme-classic .scrapbook-cover-shell {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.88), rgba(255,255,255,0) 34%),
        linear-gradient(to bottom right, #fffaf2, #f5f2eb);
}

.cover-theme-classic .scrapbook-cover-frame {
    background: linear-gradient(to bottom, #f9efcc, #dcc17b);
}

.cover-theme-classic .scrapbook-cover-kicker {
    color: #8b7a52;
}

.cover-theme-pink .scrapbook-cover-shell {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.90), rgba(255,255,255,0) 34%),
        linear-gradient(to bottom right, #fff3f7, #fbe7ee);
}

.cover-theme-pink .scrapbook-cover-frame {
    background: linear-gradient(to bottom, #f8d4e2, #e4adc2);
}

.cover-theme-pink .scrapbook-cover-kicker {
    color: #b56b88;
}

.cover-theme-blue .scrapbook-cover-shell {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.90), rgba(255,255,255,0) 34%),
        linear-gradient(to bottom right, #f2f7ff, #e5eef9);
}

.cover-theme-blue .scrapbook-cover-frame {
    background: linear-gradient(to bottom, #d7e4f7, #b3cbe8);
}

.cover-theme-blue .scrapbook-cover-kicker {
    color: #6584b1;
}

.cover-theme-sage .scrapbook-cover-shell {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.90), rgba(255,255,255,0) 34%),
        linear-gradient(to bottom right, #f4faf3, #e7f0e3);
}

.cover-theme-sage .scrapbook-cover-frame {
    background: linear-gradient(to bottom, #d6e4d0, #b6cab0);
}

.cover-theme-sage .scrapbook-cover-kicker {
    color: #6e8b68;
}

/* =========================================================
   SECTION: INTERIOR PAGE SHEETS
   ========================================================= */

.scrapbook-pages-stack {
    max-width: 1000px;
    margin: 0 auto;
}

.scrapbook-sheet {
    position: relative;
    margin: 0 auto 42px;
    padding: 18px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,236,0.98));
    box-shadow:
        0 18px 40px rgba(0,0,0,0.10),
        0 3px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(120, 94, 58, 0.12);
}

.scrapbook-sheet::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 20px;
    pointer-events: none;
    border: 1px dashed rgba(140, 115, 82, 0.18);
}

.scrapbook-sheet::after {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 26px;
    width: 8px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(120, 94, 58, 0.10),
        rgba(255,255,255,0.35),
        rgba(120, 94, 58, 0.12)
    );
    opacity: 0.7;
    pointer-events: none;
}

.scrapbook-sheet-inner {
    position: relative;
    z-index: 1;
    min-height: 420px;
    padding: 28px 28px 28px 42px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.65), transparent 35%),
        repeating-linear-gradient(
            0deg,
            rgba(120, 90, 60, 0.018) 0px,
            rgba(120, 90, 60, 0.018) 1px,
            transparent 1px,
            transparent 22px
        ),
        linear-gradient(180deg, #fffdf8 0%, #f8f2e8 100%);
}

.scrapbook-sheet-topbar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 0.9rem;
}

.scrapbook-sheet-title {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: #4e3727;
}

.scrapbook-sheet-layout {
    display: grid;
    gap: 24px;
}

.scrapbook-layout-text-image {
    grid-template-columns: 1.05fr 0.95fr;
}

.scrapbook-layout-text-only,
.scrapbook-layout-full-image,
.scrapbook-layout-gallery {
    grid-template-columns: 1fr;
}

.scrapbook-paper-card,
.scrapbook-text-panel,
.scrapbook-caption-card,
.scrapbook-journal-card {
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(140, 115, 82, 0.12);
    box-shadow:
        0 10px 24px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.scrapbook-journal-card {
    max-width: 760px;
    margin: 0 auto;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,246,239,0.94));
}

.scrapbook-page-content {
    font-size: 1.03rem;
    line-height: 1.8;
    color: #4b3b2f;
}

.scrapbook-page-content.empty {
    color: #7a736c;
    font-style: italic;
}

.scrapbook-page-title {
    margin-bottom: 18px;
}

/* =========================================================
   SECTION: IMAGES / POLAROID / GALLERY
   ========================================================= */

.scrapbook-polaroid {
    position: relative;
    padding: 10px 10px 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow:
  
        0 20px 40px rgba(0,0,0,0.18),
        0 6px 14px rgba(0,0,0,0.08);
}

.scrapbook-polaroid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.scrapbook-polaroid::before,
.scrapbook-polaroid::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 18px;
    top: -8px;
    background: rgba(225, 210, 170, 0.65);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.scrapbook-polaroid::before {
    left: 18px;
    transform: rotate(-5deg);
}

.scrapbook-polaroid::after {
    right: 18px;
    transform: rotate(6deg);
}

.scrapbook-photo-feature img {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: contain;
    border-radius: 14px;
    border: 10px solid #fff;
    background: #fff;
    box-shadow:
        0 16px 32px rgba(0,0,0,0.14),
        0 4px 10px rgba(0,0,0,0.06);
}

.scrapbook-image-caption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6b5b4d;
    text-align: center;
}

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

.scrapbook-image-placeholder {
    min-height: 260px;
    display: grid;
    place-items: center;
    border: 2px dashed #d2c7b6;
    border-radius: 16px;
    color: #7a736c;
    background: rgba(255,255,255,0.66);
    text-align: center;
    padding: 1rem;
}

/* =========================================================
   SECTION: TILT EFFECTS
   ========================================================= */

.tilt-right {
    transform: rotate(1.6deg);
}

.tilt-left {
    transform: rotate(-1.6deg);
}

/* =========================================================
   SECTION: LAYOUT VARIATIONS
   ========================================================= */

.layout-text_only .scrapbook-sheet-inner {
    background:
        repeating-linear-gradient(
            0deg,
            rgba(120, 90, 60, 0.025) 0px,
            rgba(120, 90, 60, 0.025) 1px,
            transparent 1px,
            transparent 28px
        ),
        linear-gradient(180deg, #fffdf8 0%, #f5efe3 100%);
}

.layout-full_image .scrapbook-sheet-inner {
    background:
        linear-gradient(180deg, #fdf9f2 0%, #f2eadb 100%);
}

.layout-gallery .scrapbook-sheet-inner {
    background:
        linear-gradient(180deg, #fffaf3 0%, #f3ebde 100%);
}

/* =========================================================
   SECTION: RESPONSIVE
   ========================================================= */

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

@media (max-width: 980px) {
    .scrapbook-cover-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }

    .scrapbook-cover-shell::after {
        display: none;
    }

    .scrapbook-cover-text-panel {
        max-width: none;
        padding: 0;
        align-items: center;
    }

    .scrapbook-cover-kicker {
        align-self: center;
    }

    .scrapbook-cover-title {
        max-width: none;
    }

    .scrapbook-cover-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .scrapbook-cover-description {
        max-width: 46ch;
    }

    .scrapbook-cover-meta {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .book-edit-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .scrapbook-book-controls-bar {
        justify-content: center;
        text-align: center;
    }

    .scrapbook-layout-text-image,
    .scrapbook-gallery-grid {
        grid-template-columns: 1fr;
    }

    .scrapbook-sheet::after {
        display: none;
    }

    .scrapbook-sheet-inner {
        padding: 20px;
    }
}

@media (max-width: 700px) {
    .dashboard-list-header {
        flex-direction: column;
        align-items: stretch;
    }

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

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .scrapbook-cover-page {
        padding: 2.25rem 0 2rem;
    }

    .scrapbook-cover-shell {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .scrapbook-cover-frame {
        max-width: 320px;
        padding: 12px;
    }

    .scrapbook-cover-image {
        max-height: 420px;
    }

    .scrapbook-cover-title {
        font-size: clamp(2.3rem, 10vw, 3.5rem);
    }

    .scrapbook-cover-description {
        font-size: 1rem;
        line-height: 1.75;
    }

    .scrapbook-gallery-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1100px) {
    .scrapbook-hero-inner,
    .demo-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .scrapbook-hero-preview {
        justify-content: center;
    }

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

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

@media (max-width: 760px) {
    .scrapbook-landing-hero,
    .scrapbook-use-cases,
    .scrapbook-how-it-works,
    .scrapbook-demo-section,
    .scrapbook-pricing,
    .scrapbook-final-cta {
        padding: 62px 20px;
    }

    .scrapbook-hero-copy h1 {
        font-size: 2.9rem;
    }

    .section-heading h2,
    .demo-panel-copy h2,
    .final-cta-card h2 {
        font-size: 2rem;
    }

    .book-mockup-stack {
        width: 300px;
        height: 380px;
    }

    .use-case-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .demo-panel {
        padding: 24px 20px;
    }

    .final-cta-card {
        padding: 30px 20px;
    }
}

@media (max-width: 520px) {
    .scrapbook-hero-copy h1 {
        font-size: 2.35rem;
    }

    .scrapbook-hero-copy p,
    .section-heading p,
    .final-cta-card p {
        font-size: 1rem;
    }

    .book-mockup-stack {
        width: 260px;
        height: 340px;
    }

    .book-cover-image {
        height: 100px;
    }

    .page-photo {
        height: 90px;
    }
}
/* =========================================================
   SCRAPBOOK EDIT PAGE CLEANUP
   ========================================================= */

.book-edit-shell,
.book-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 380px);
    gap: 28px;
    align-items: start;
}

.book-edit-main,
.book-edit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.book-edit-main .empty-state-card,
.book-edit-sidebar .empty-state-card {
    width: 100%;
    box-sizing: border-box;
}

/* Main editor card */
.book-edit-primary-card,
.book-edit-main > .empty-state-card {
    padding: 24px;
}

/* Form cleanup */
.scrapbook-editor-form,
.auth-form {
    width: 100%;
}

.book-edit-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.book-edit-form-span-2 {
    grid-column: 1 / -1;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-row input[type="text"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfd8d3;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

/* THIS is the big one causing the ugly giant box feeling */
.form-row textarea,
#page_content,
#scrapbook_description {
    min-height: 140px;
    height: auto;
    resize: vertical;
    line-height: 1.5;
}

/* Keep page content from becoming a monster */
#page_content {
    min-height: 180px;
    max-height: 340px;
}

/* Buttons */
.form-actions,
.page-preview-actions,
.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
}

/* Manage pages section */
.page-preview-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 8px;
}

.page-preview-card {
    background: #fff;
    border: 1px solid #d9e3dd;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.page-preview-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.page-layout {
    font-size: 0.92rem;
    color: #5f6f66;
}

.page-preview-image {
    margin: 14px 0 12px;
    max-width: 420px;
}

.page-preview-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

.page-preview-body {
    line-height: 1.6;
    color: #2c3a33;
}

/* Cover manager */
.scrapbook-cover-manager {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.scrapbook-cover-manager-preview {
    width: 100%;
}

.scrapbook-cover-manager-preview img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 16px;
}

.scrapbook-cover-placeholder {
    min-height: 180px;
    display: grid;
    place-items: center;
    border: 2px dashed #c7d3cc;
    border-radius: 16px;
    color: #6b7a72;
    background: #f7faf8;
}

/* Sidebar page list if still present */
.page-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-list-item {
    border: 1px solid #d9e3dd;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.page-list-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.page-order {
    font-weight: 700;
}

/* Hero cleanup */
.dashboard-hero {
    padding: 42px 0 24px;
}

.dashboard-hero-copy h1 {
    margin-bottom: 10px;
}

.dashboard-section {
    padding-top: 12px;
}

/* Mobile */
@media (max-width: 980px) {
    .book-edit-shell,
    .book-edit-layout,
    .book-edit-form-grid {
        grid-template-columns: 1fr;
    }

    .book-edit-form-span-2 {
        grid-column: auto;
    }

    .page-preview-image {
        max-width: 100%;
    }
}
/* =========================================================
   GUIDED SCRAPBOOK BUILDER
   ========================================================= */

.builder-section {
    border: 1px solid #dbe6df;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.builder-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.builder-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #1f6b4f;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 18px rgba(31, 107, 79, 0.22);
}

.builder-section-header h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: #18382a;
}

.builder-section-header p {
    margin: 0;
    color: #617368;
    font-size: 0.95rem;
}

.builder-section .form-row:last-child {
    margin-bottom: 0;
}
/* =========================================================
   SCRAPBOOK-STYLE PAGE PREVIEWS
   ========================================================= */

.page-preview-card {
    position: relative;
    background: linear-gradient(180deg, #fffefb 0%, #f9f6ef 100%);
    border: 1px solid #e6dfd0;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}

.page-preview-meta strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #214f3d;
    color: #fff;
    font-size: 0.85rem;
}

.page-layout {
    color: #6a6f67;
    font-size: 0.88rem;
}

.page-preview-image {
    margin: 16px 0 12px;
    max-width: 340px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e2d8;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.page-preview-card[data-photo-style="tilt_left"] .page-preview-image {
    transform: rotate(-2deg);
}

.page-preview-card[data-photo-style="tilt_right"] .page-preview-image {
    transform: rotate(2deg);
}
/* =========================================================
   PAGE DECORATION PRESETS
   ========================================================= */
/* =========================================================
   PAGE DECORATION PRESETS (FIXED + WORKING)
   ========================================================= */

.scrapbook-page-card[class*="decoration-"] {
    position: relative;
    overflow: hidden;
}

/* CRITICAL FIX — lets decoration show through */
.scrapbook-page-card[class*="decoration-"] .scrapbook-sheet-inner {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* none */
.scrapbook-page-card.decoration-none::before,
.scrapbook-page-card.decoration-none::after {
    content: none;
}

/* classic memory */
.scrapbook-page-card.decoration-classic_memory {
    background: linear-gradient(180deg, #f8f2e8 0%, #efe4d3 100%) !important;
    border: 2px solid #d3b487 !important;
}

.scrapbook-page-card.decoration-classic_memory::before,
.scrapbook-page-card.decoration-classic_memory::after {
    content: "";
    position: absolute;
    font-size: 2rem;
    color: rgba(168, 120, 40, 0.25);
    pointer-events: none;
    z-index: 0;
}

.scrapbook-page-card.decoration-classic_memory::before {
    top: 14px;
    left: 18px;
}

.scrapbook-page-card.decoration-classic_memory::after {
    right: 18px;
    bottom: 14px;
}

/* baby boy */
.scrapbook-page-card.decoration-baby_boy {
    background: linear-gradient(180deg, #eef7ff 0%, #dcecff 100%) !important;
    border: 2px solid #9ec3ea !important;
}

.scrapbook-page-card.decoration-baby_boy::before,
.scrapbook-page-card.decoration-baby_boy::after {
    content: "";
    position: absolute;
    font-size: 1.1rem;
    letter-spacing: 6px;
    color: rgba(90, 150, 220, 0.28);
    pointer-events: none;
    z-index: 0;
}

.scrapbook-page-card.decoration-baby_boy::before {
    top: 16px;
    left: 18px;
}

.scrapbook-page-card.decoration-baby_boy::after {
    right: 18px;
    bottom: 16px;
}

/* baby girl */
.scrapbook-page-card.decoration-baby_girl {
    background: linear-gradient(180deg, #fff0f6 0%, #ffe0ed 100%) !important;
    border: 2px solid #e6a8c3 !important;
}

.scrapbook-page-card.decoration-baby_girl::before,
.scrapbook-page-card.decoration-baby_girl::after {
    content: "";
    position: absolute;
    font-size: 2rem;
    color: rgba(214, 102, 150, 0.24);
    pointer-events: none;
    z-index: 0;
}

.scrapbook-page-card.decoration-baby_girl::before {
    top: 12px;
    left: 18px;
}

.scrapbook-page-card.decoration-baby_girl::after {
    right: 18px;
    bottom: 12px;
}

/* floral */
.scrapbook-page-card.decoration-floral {
    background: linear-gradient(180deg, #fff8f4 0%, #f7ebe4 100%) !important;
    border: 2px solid #d8c0b3 !important;
}

.scrapbook-page-card.decoration-floral::before,
.scrapbook-page-card.decoration-floral::after {
    content: "";
    position: absolute;
    font-size: 2.2rem;
    color: rgba(183, 110, 140, 0.24);
    pointer-events: none;
    z-index: 0;
}

.scrapbook-page-card.decoration-floral::before {
    top: 10px;
    left: 16px;
}

.scrapbook-page-card.decoration-floral::after {
    right: 16px;
    bottom: 10px;
}

/* celebration */
.scrapbook-page-card.decoration-celebration {
    background: linear-gradient(180deg, #fff8df 0%, #ffeeb0 100%) !important;
    border: 2px solid #e1c55c !important;
}

.scrapbook-page-card.decoration-celebration::before,
.scrapbook-page-card.decoration-celebration::after {
    content: "";
    position: absolute;
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: rgba(214, 120, 40, 0.28);
    pointer-events: none;
    z-index: 0;
}

.scrapbook-page-card.decoration-celebration::before {
    top: 16px;
    left: 18px;
}

.scrapbook-page-card.decoration-celebration::after {
    right: 18px;
    bottom: 16px;
}
/* =========================================================
   PAGE DECORATION PRESETS (STRONGER VISIBLE VERSION)
   ========================================================= */

.scrapbook-page-card[class*="decoration-"] {
    position: relative;
    overflow: hidden;
}

/* lets decoration show through */
.scrapbook-page-card[class*="decoration-"] .scrapbook-sheet-inner {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* none */
.scrapbook-page-card.decoration-none::before,
.scrapbook-page-card.decoration-none::after {
    content: none;
}

/* classic memory */
.scrapbook-page-card.decoration-classic_memory {
    background: linear-gradient(180deg, #f3e4c7 0%, #e8d2aa 100%) !important;
    border: 3px solid #c8a46a !important;
    box-shadow: 0 16px 34px rgba(125, 92, 40, 0.16);
}

.scrapbook-page-card.decoration-classic_memory::before,
.scrapbook-page-card.decoration-classic_memory::after {
    content: "";
    position: absolute;
    font-size: 2.35rem;
    color: rgba(150, 102, 28, 0.42);
    pointer-events: none;
    z-index: 0;
}

.scrapbook-page-card.decoration-classic_memory::before {
    top: 12px;
    left: 16px;
}

.scrapbook-page-card.decoration-classic_memory::after {
    right: 16px;
    bottom: 12px;
}

/* baby boy */
.scrapbook-page-card.decoration-baby_boy {
    background: linear-gradient(180deg, #dff0ff 0%, #bfdfff 100%) !important;
    border: 3px solid #79acd9 !important;
    box-shadow: 0 16px 34px rgba(70, 120, 180, 0.14);
}

.scrapbook-page-card.decoration-baby_boy::before,
.scrapbook-page-card.decoration-baby_boy::after {
    content: "";
    position: absolute;
    font-size: 1.35rem;
    letter-spacing: 7px;
    color: rgba(65, 125, 195, 0.40);
    pointer-events: none;
    z-index: 0;
}

.scrapbook-page-card.decoration-baby_boy::before {
    top: 14px;
    left: 18px;
}

.scrapbook-page-card.decoration-baby_boy::after {
    right: 18px;
    bottom: 14px;
}

/* baby girl */
.scrapbook-page-card.decoration-baby_girl {
    background: linear-gradient(180deg, #ffe1ee 0%, #ffcddd 100%) !important;
    border: 3px solid #dc8fb0 !important;
    box-shadow: 0 16px 34px rgba(185, 100, 145, 0.14);
}

.scrapbook-page-card.decoration-baby_girl::before,
.scrapbook-page-card.decoration-baby_girl::after {
    content: "";
    position: absolute;
    font-size: 2.3rem;
    color: rgba(198, 72, 130, 0.38);
    pointer-events: none;
    z-index: 0;
}

.scrapbook-page-card.decoration-baby_girl::before {
    top: 10px;
    left: 16px;
}

.scrapbook-page-card.decoration-baby_girl::after {
    right: 16px;
    bottom: 10px;
}

/* floral */
.scrapbook-page-card.decoration-floral {
    background: linear-gradient(180deg, #fff1ea 0%, #f5ddd3 100%) !important;
    border: 3px solid #cfaa9d !important;
    box-shadow: 0 16px 34px rgba(160, 115, 95, 0.14);
}

.scrapbook-page-card.decoration-floral::before,
.scrapbook-page-card.decoration-floral::after {
    content: "";
    position: absolute;
    font-size: 2.5rem;
    color: rgba(170, 88, 126, 0.38);
    pointer-events: none;
    z-index: 0;
}

.scrapbook-page-card.decoration-floral::before {
    top: 8px;
    left: 14px;
}

.scrapbook-page-card.decoration-floral::after {
    right: 14px;
    bottom: 8px;
}

/* celebration */
.scrapbook-page-card.decoration-celebration {
    background: linear-gradient(180deg, #fff2b8 0%, #ffe184 100%) !important;
    border: 3px solid #d2aa2e !important;
    box-shadow: 0 16px 34px rgba(185, 140, 25, 0.18);
}

.scrapbook-page-card.decoration-celebration::before,
.scrapbook-page-card.decoration-celebration::after {
    content: "";
    position: absolute;
    font-size: 1.35rem;
    letter-spacing: 6px;
    color: rgba(194, 102, 24, 0.42);
    pointer-events: none;
    z-index: 0;
}

.scrapbook-page-card.decoration-celebration::before {
    top: 14px;
    left: 18px;
}

.scrapbook-page-card.decoration-celebration::after {
    right: 18px;
    bottom: 14px;
}
/* =========================================
   PHOTO TAPE EFFECT
   ========================================= */

.scrapbook-photo-wrapper {
    position: relative;
    display: inline-block;
}

.scrapbook-photo-wrapper::before,
.scrapbook-photo-wrapper::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 18px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transform: rotate(-6deg);
    z-index: 2;
}

/* top left tape */
.scrapbook-photo-wrapper::before {
    top: -10px;
    left: 10px;
}

/* top right tape */
.scrapbook-photo-wrapper::after {
    top: -10px;
    right: 10px;
    transform: rotate(6deg);
}
/* =========================================================
   SCRAPBOOK DEPTH / LAYERING UPGRADE
   ========================================================= */

.scrapbook-sheet {
    box-shadow:
        0 22px 44px rgba(0,0,0,0.12),
        0 6px 14px rgba(0,0,0,0.06);
}

.scrapbook-sheet-inner {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.scrapbook-paper-card,
.scrapbook-text-panel,
.scrapbook-caption-card,
.scrapbook-journal-card {
    position: relative;
    box-shadow:
        0 14px 28px rgba(0,0,0,0.08),
        0 3px 8px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.72);
}

.scrapbook-paper-card::before,
.scrapbook-text-panel::before,
.scrapbook-caption-card::before,
.scrapbook-journal-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 12px;
    border: 1px solid rgba(120, 94, 58, 0.08);
    pointer-events: none;
}

.scrapbook-layout-text-image .scrapbook-layout-text {
    position: relative;
    z-index: 1;
}

.scrapbook-layout-text-image .scrapbook-layout-media {
    position: relative;
    z-index: 2;
}

.scrapbook-layout-text-image .scrapbook-text-panel {
    transform: translateY(8px);
}

.scrapbook-layout-text-image .scrapbook-polaroid {
    transform-origin: center top;
}

.scrapbook-layout-text-image .scrapbook-polaroid.tilt-left {
    transform: rotate(-3.2deg);
}

.scrapbook-layout-text-image .scrapbook-polaroid.tilt-right {
    transform: rotate(3.2deg);
}

.scrapbook-layout-text-image .scrapbook-polaroid:not(.tilt-left):not(.tilt-right) {
    transform: rotate(1deg);
}

.scrapbook-polaroid {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.scrapbook-polaroid:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.16),
        0 5px 12px rgba(0,0,0,0.08);
}

.scrapbook-page-title {
    position: relative;
    display: inline-block;
    padding-right: 10px;
}

.scrapbook-page-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(to right, rgba(120,94,58,0.45), rgba(120,94,58,0.08));
}
.scrapbook-text-panel {
    background: linear-gradient(180deg, #fffdf9 0%, #f4eee3 100%);
    border: 1px solid rgba(120,94,58,0.12);
}
/* =========================================================
   LAYOUT PERSONALITY SYSTEM
   ========================================================= */

/* TEXT + IMAGE (default balanced scrapbook) */
.scrapbook-layout-text-image {
    align-items: center;
}

/* FULL IMAGE (hero photo page) */
.scrapbook-layout-full_image .scrapbook-polaroid {
    transform: rotate(0deg) scale(1.08);
}

.scrapbook-layout-full_image .scrapbook-layout-text {
    display: none;
}

/* TEXT ONLY (journal page) */
.scrapbook-layout-text_only .scrapbook-text-panel {
    max-width: 520px;
    margin: 40px auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* GALLERY (clean grid) */
.scrapbook-layout-gallery .scrapbook-layout-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* MONTAGE (messy scrapbook feel) */
.scrapbook-layout-montage .scrapbook-polaroid:nth-child(1) {
    transform: rotate(-6deg) translateY(4px);
}

.scrapbook-layout-montage .scrapbook-polaroid:nth-child(2) {
    transform: rotate(4deg) translateY(-2px);
}

.scrapbook-layout-montage .scrapbook-polaroid:nth-child(3) {
    transform: rotate(-2deg);
}
/* =========================================================
   FIX OVERSIZED MAIN PHOTO ON VIEW PAGE
   ========================================================= */

.scrapbook-layout-text-image {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: start;
}

.scrapbook-layout-text-image .scrapbook-layout-text,
.scrapbook-layout-text-image .scrapbook-layout-media {
    min-width: 0;
}

.scrapbook-layout-text-image .scrapbook-layout-media {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.scrapbook-layout-text-image .scrapbook-page-image.scrapbook-polaroid {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    box-sizing: border-box;
}

.scrapbook-layout-text-image .scrapbook-page-image.scrapbook-polaroid img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

@media (max-width: 860px) {
    .scrapbook-layout-text-image {
        grid-template-columns: 1fr;
    }

    .scrapbook-layout-text-image .scrapbook-page-image.scrapbook-polaroid {
        max-width: 100%;
    }

    .scrapbook-layout-text-image .scrapbook-page-image.scrapbook-polaroid img {
        max-height: none;
    }
}
/* =========================================================
   DRAGGABLE PHOTO
   ========================================================= */

/* =========================================================
   DRAGGABLE PHOTO
   ========================================================= */

.draggable-photo {
    cursor: grab;
    position: relative;
    transition: box-shadow 0.15s ease;
    touch-action: none;
    user-select: none;
}

.draggable-photo,
.draggable-photo * {
    user-select: none;
    -webkit-user-select: none;
}

.draggable-photo img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.draggable-photo:active {
    cursor: grabbing;
}

.draggable-photo.dragging {
    z-index: 20;
    box-shadow:
        0 24px 48px rgba(0,0,0,0.25),
        0 8px 16px rgba(0,0,0,0.12);
}
/* =========================================================
   DRAG WRAPPER SYSTEM
   ========================================================= */

.scrapbook-layout-text-image .scrapbook-layout-media {
    position: relative;
    min-height: 460px;
    display: block;
}

.draggable-photo-wrap {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.draggable-photo {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.draggable-photo,
.draggable-photo * {
    user-select: none;
    -webkit-user-select: none;
}

.draggable-photo img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.draggable-photo.dragging {
    cursor: grabbing;
}

.draggable-photo-wrap.dragging {
    z-index: 20;
}

@media (max-width: 860px) {
    .scrapbook-layout-text-image .scrapbook-layout-media {
        min-height: auto;
    }

    .draggable-photo-wrap {
        position: relative;
        left: 0 !important;
        top: 0 !important;
        margin: 0 auto;
        display: table;
    }
}
/* =========================================================
   DRAG WRAPPER SYSTEM
   ========================================================= */

.scrapbook-layout-text-image .scrapbook-layout-media,
.scrapbook-layout-full-image {
    position: relative;
}

.scrapbook-layout-text-image .scrapbook-layout-media {
    min-height: 460px;
    display: block;
}

.draggable-photo-wrap {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    transform: translate(0, 0);
}

.draggable-photo-wrap.dragging {
    z-index: 20;
}

.draggable-photo {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.draggable-photo.dragging {
    cursor: grabbing;
}

.draggable-photo,
.draggable-photo * {
    user-select: none;
    -webkit-user-select: none;
}

.draggable-photo img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

@media (max-width: 860px) {
    .scrapbook-layout-text-image .scrapbook-layout-media {
        min-height: auto;
    }

    .draggable-photo-wrap {
        position: relative;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        margin: 0 auto;
        display: table;
    }
}
/* =========================================================
   SIMPLE DRAG TEST
   ========================================================= */

.scrapbook-layout-text-image .scrapbook-layout-media {
    position: relative !important;
    min-height: 460px;
    display: block !important;
}

.drag-wrap {
    position: absolute !important;
    left: 0;
    top: 0;
    cursor: move;
    z-index: 3;
}

.drag-wrap img {
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.drag-wrap.dragging {
    z-index: 20;
}

@media (max-width: 860px) {
    .drag-wrap {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 auto;
        display: table;
    }
}
.scrapbook-draggable-area {
    position: relative;
    min-height: 420px;
}

/* THIS is the key fix */
.drag-wrap {
    position: absolute;
    cursor: grab;

    /* rotation now applies here */
    transform: rotate(var(--photo-rotation, 0deg));
    transform-origin: center center;
}

.drag-wrap.dragging {
    cursor: grabbing;
}

/* IMPORTANT: do NOT override transform here */
.scrapbook-polaroid {
    /* leave tilt classes alone */
}

/* buttons (already fine but clean version) */
.scrapbook-photo-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.photo-reset-btn,
.photo-rotate-btn {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fffaf2;
    border: 1px solid #c9b89a;
    cursor: pointer;
}
/* ===============================
   OWNER TOOLBAR
================================= */
.scrapbook-owner-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 20px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.scrapbook-owner-toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mode-indicator {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
}

.mode-indicator.is-edit {
    color: #7a4b00;
}

/* ===============================
   PAGE TOOLBAR
================================= */
.scrapbook-page-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.75);
    border: 1px dashed rgba(0,0,0,0.12);
    border-radius: 10px;
}

.page-tool-btn {
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
}

.page-tool-btn:hover {
    background: #f5f1e8;
}

.page-tool-btn.danger {
    color: #8b1e1e;
}

.page-tool-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
/* Edit mode page layout fix */
.scrapbook-book-reader.is-edit-mode .scrapbook-sheet-inner {
    justify-content: flex-start;
}

.scrapbook-book-reader.is-edit-mode .scrapbook-page-toolbar {
    margin-bottom: 14px;
}
.scrapbook-book-reader.is-edit-mode .scrapbook-sheet-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}
/* ===============================
   EDIT MODE PAGE STACK FIX
================================= */
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-sheet-inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 10px !important;
}

.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-page-toolbar {
    order: 0;
    margin: 0 0 10px 0 !important;
    flex: 0 0 auto;
}

.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-page-header,
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-page-title,
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-layout-grid,
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-layout-full-image,
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-layout-text-only,
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-layout-gallery,
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-layout-montage {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    flex: 0 0 auto;
}

/* catches any old auto-push rules */
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-page-header,
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-page-title,
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-sheet-layout {
    margin-top: 0 !important;
}
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-page-header,
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-sheet-title,
.scrapbook-book-reader.is-edit-mode .scrapbook-page-card .scrapbook-sheet-layout {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.drag-wrap {
    transform: rotate(var(--photo-rotation, 0deg)) scale(var(--photo-scale, 1));
    transform-origin: center center;
}

.scrapbook-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.page-decoration-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-decoration-picker span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b4b3d;
}

.page-decoration-picker select {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    font-size: 0.85rem;
}
.page-decoration-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-decoration-picker span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b4b3d;
}

.page-decoration-picker select {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    font-size: 0.85rem;
}
/* ========================================
   WEDDING DECORATION THEME
======================================== */
.decoration-wedding {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,244,238,0.96));
    border-color: rgba(191, 155, 48, 0.28);
    box-shadow:
        0 18px 38px rgba(90, 67, 38, 0.10),
        inset 0 0 0 1px rgba(255,255,255,0.55);
}

.decoration-wedding::before,
.decoration-wedding::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.decoration-wedding::before {
    inset: 14px;
    border: 1px solid rgba(191, 155, 48, 0.24);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.decoration-wedding::after {
    inset: 0;
    background:
        radial-gradient(circle at 10% 12%, rgba(255,255,255,0.75) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 16%, rgba(255,255,255,0.55) 0 2px, transparent 3px),
        radial-gradient(circle at 18% 85%, rgba(255,255,255,0.50) 0 2px, transparent 3px),
        radial-gradient(circle at 84% 82%, rgba(255,255,255,0.60) 0 2px, transparent 3px);
    opacity: 0.55;
    border-radius: inherit;
}

.decoration-wedding .scrapbook-sheet-inner {
    position: relative;
    z-index: 1;
}

.decoration-wedding .scrapbook-sheet-topbar {
    background: linear-gradient(90deg, rgba(255,248,240,0.95), rgba(255,255,255,0.92));
    border-bottom: 1px solid rgba(191, 155, 48, 0.22);
}

.decoration-wedding .scrapbook-sheet-title,
.decoration-wedding .scrapbook-page-title {
    color: #7b5a2a;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(255,255,255,0.75);
}

.decoration-wedding .scrapbook-paper-card,
.decoration-wedding .scrapbook-journal-card,
.decoration-wedding .scrapbook-caption-card {
    background: linear-gradient(180deg, rgba(255,252,248,0.98), rgba(249,242,235,0.96));
    border: 1px solid rgba(191, 155, 48, 0.16);
    box-shadow:
        0 10px 24px rgba(90, 67, 38, 0.08),
        inset 0 0 0 1px rgba(255,255,255,0.55);
}

.decoration-wedding .scrapbook-image-placeholder {
    background: linear-gradient(180deg, rgba(255,250,245,0.95), rgba(247,239,232,0.95));
    border: 1px dashed rgba(191, 155, 48, 0.30);
    color: #8a6a3c;
}

.decoration-wedding .scrapbook-polaroid {
    background: linear-gradient(180deg, #fffdfb, #f7efe7);
    border: 1px solid rgba(191, 155, 48, 0.18);
    box-shadow:
        0 16px 28px rgba(90, 67, 38, 0.12),
        0 4px 10px rgba(90, 67, 38, 0.08);
}

.decoration-wedding .scrapbook-image-caption {
    color: #7a6143;
}

.decoration-wedding .scrapbook-page-number,
.decoration-wedding .scrapbook-page-layout {
    color: #8d6d3d;
}

/* lace-like top corners */
.decoration-wedding .scrapbook-sheet-inner::before,
.decoration-wedding .scrapbook-sheet-inner::after {
    content: "";
    position: absolute;
    top: 16px;
    font-size: 1.1rem;
    color: rgba(191, 155, 48, 0.48);
    pointer-events: none;
}

.decoration-wedding .scrapbook-sheet-inner::before {
    left: 22px;
}

.decoration-wedding .scrapbook-sheet-inner::after {
    right: 22px;
}

/* small ring motif near bottom */
.decoration-wedding .scrapbook-sheet-layout::after {
    content: "??";
    position: absolute;
    right: 24px;
    bottom: 16px;
    font-size: 1rem;
    letter-spacing: -0.18em;
    color: rgba(191, 155, 48, 0.38);
    pointer-events: none;
}
/* ========================================
   CLASSIC MEMORY THEME
======================================== */
.decoration-classic_memory {
    position: relative;
    background:
        linear-gradient(180deg, rgba(246,236,214,0.96), rgba(236,222,196,0.98));
    border-color: rgba(125, 93, 52, 0.24);
    box-shadow:
        0 18px 38px rgba(74, 53, 28, 0.12),
        inset 0 0 0 1px rgba(255,255,255,0.20);
}

.decoration-classic_memory::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(120, 88, 44, 0.18);
    border-radius: 16px;
    pointer-events: none;
}

.decoration-classic_memory .scrapbook-sheet-topbar {
    background: linear-gradient(90deg, rgba(236,224,197,0.95), rgba(246,238,220,0.90));
    border-bottom: 1px solid rgba(120, 88, 44, 0.22);
}

.decoration-classic_memory .scrapbook-page-title,
.decoration-classic_memory .scrapbook-sheet-title {
    color: #6b4e2f;
}

.decoration-classic_memory .scrapbook-paper-card,
.decoration-classic_memory .scrapbook-journal-card,
.decoration-classic_memory .scrapbook-caption-card {
    background: linear-gradient(180deg, rgba(252,247,235,0.96), rgba(242,232,211,0.96));
    border: 1px solid rgba(120, 88, 44, 0.14);
}

.decoration-classic_memory .scrapbook-polaroid {
    background: linear-gradient(180deg, #fffefb, #f4ecdf);
    box-shadow:
        0 16px 28px rgba(74, 53, 28, 0.14),
        0 4px 10px rgba(74, 53, 28, 0.08);
}

.decoration-classic_memory .scrapbook-sheet-inner::before,
.decoration-classic_memory .scrapbook-sheet-inner::after {
    content: "";
    position: absolute;
    top: 16px;
    font-size: 0.95rem;
    color: rgba(120, 88, 44, 0.35);
    pointer-events: none;
}

.decoration-classic_memory .scrapbook-sheet-inner::before { left: 20px; }
.decoration-classic_memory .scrapbook-sheet-inner::after  { right: 20px; }

/* ========================================
   BABY BOY THEME
======================================== */
.decoration-baby_boy {
    position: relative;
    background:
        linear-gradient(180deg, rgba(233,244,252,0.97), rgba(214,232,245,0.98));
    border-color: rgba(91, 145, 184, 0.22);
    box-shadow:
        0 18px 38px rgba(62, 102, 132, 0.10),
        inset 0 0 0 1px rgba(255,255,255,0.40);
}

.decoration-baby_boy::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.35) 0 8px, transparent 9px),
        radial-gradient(circle at 82% 22%, rgba(255,255,255,0.30) 0 7px, transparent 8px),
        radial-gradient(circle at 18% 80%, rgba(255,255,255,0.26) 0 6px, transparent 7px),
        radial-gradient(circle at 86% 78%, rgba(255,255,255,0.22) 0 8px, transparent 9px);
    pointer-events: none;
}

.decoration-baby_boy .scrapbook-sheet-topbar {
    background: linear-gradient(90deg, rgba(219,236,248,0.95), rgba(240,248,253,0.94));
    border-bottom: 1px solid rgba(91, 145, 184, 0.20);
}

.decoration-baby_boy .scrapbook-page-title,
.decoration-baby_boy .scrapbook-sheet-title {
    color: #4d7392;
}

.decoration-baby_boy .scrapbook-paper-card,
.decoration-baby_boy .scrapbook-journal-card,
.decoration-baby_boy .scrapbook-caption-card {
    background: linear-gradient(180deg, rgba(247,252,255,0.96), rgba(230,241,248,0.96));
    border: 1px solid rgba(91, 145, 184, 0.12);
}

.decoration-baby_boy .scrapbook-image-placeholder {
    background: linear-gradient(180deg, rgba(244,250,254,0.96), rgba(225,238,247,0.96));
    border: 1px dashed rgba(91, 145, 184, 0.28);
    color: #6287a3;
}

.decoration-baby_boy .scrapbook-sheet-inner::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 18px;
    font-size: 1rem;
    color: rgba(91, 145, 184, 0.30);
    pointer-events: none;
}

/* ========================================
   BABY GIRL THEME
======================================== */
.decoration-baby_girl {
    position: relative;
    background:
        linear-gradient(180deg, rgba(252,236,243,0.97), rgba(246,219,231,0.98));
    border-color: rgba(196, 118, 154, 0.22);
    box-shadow:
        0 18px 38px rgba(145, 82, 109, 0.10),
        inset 0 0 0 1px rgba(255,255,255,0.40);
}

.decoration-baby_girl::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 14% 16%, rgba(255,255,255,0.34) 0 8px, transparent 9px),
        radial-gradient(circle at 84% 18%, rgba(255,255,255,0.28) 0 7px, transparent 8px),
        radial-gradient(circle at 20% 82%, rgba(255,255,255,0.22) 0 6px, transparent 7px),
        radial-gradient(circle at 84% 80%, rgba(255,255,255,0.28) 0 8px, transparent 9px);
    pointer-events: none;
}

.decoration-baby_girl .scrapbook-sheet-topbar {
    background: linear-gradient(90deg, rgba(248,225,235,0.95), rgba(253,241,246,0.94));
    border-bottom: 1px solid rgba(196, 118, 154, 0.20);
}

.decoration-baby_girl .scrapbook-page-title,
.decoration-baby_girl .scrapbook-sheet-title {
    color: #b05d84;
}

.decoration-baby_girl .scrapbook-paper-card,
.decoration-baby_girl .scrapbook-journal-card,
.decoration-baby_girl .scrapbook-caption-card {
    background: linear-gradient(180deg, rgba(255,248,251,0.96), rgba(249,229,238,0.96));
    border: 1px solid rgba(196, 118, 154, 0.12);
}

.decoration-baby_girl .scrapbook-image-placeholder {
    background: linear-gradient(180deg, rgba(255,248,251,0.96), rgba(247,227,236,0.96));
    border: 1px dashed rgba(196, 118, 154, 0.28);
    color: #b46d8e;
}

.decoration-baby_girl .scrapbook-sheet-inner::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 18px;
    font-size: 1rem;
    color: rgba(196, 118, 154, 0.28);
    pointer-events: none;
}

/* ========================================
   FLORAL THEME
======================================== */
.decoration-floral {
    position: relative;
    background:
        linear-gradient(180deg, rgba(244,249,241,0.97), rgba(231,240,225,0.98));
    border-color: rgba(120, 153, 106, 0.22);
    box-shadow:
        0 18px 38px rgba(72, 96, 66, 0.10),
        inset 0 0 0 1px rgba(255,255,255,0.35);
}

.decoration-floral::before,
.decoration-floral::after {
    position: absolute;
    pointer-events: none;
    color: rgba(136, 96, 122, 0.22);
    font-size: 1.15rem;
    line-height: 1;
}

.decoration-floral::before {
    content: "";
    top: 16px;
    left: 18px;
}

.decoration-floral::after {
    content: "";
    right: 18px;
    bottom: 16px;
}

.decoration-floral .scrapbook-sheet-topbar {
    background: linear-gradient(90deg, rgba(232,242,227,0.95), rgba(246,251,243,0.94));
    border-bottom: 1px solid rgba(120, 153, 106, 0.20);
}

.decoration-floral .scrapbook-page-title,
.decoration-floral .scrapbook-sheet-title {
    color: #617c54;
}

.decoration-floral .scrapbook-paper-card,
.decoration-floral .scrapbook-journal-card,
.decoration-floral .scrapbook-caption-card {
    background: linear-gradient(180deg, rgba(251,255,249,0.96), rgba(238,246,233,0.96));
    border: 1px solid rgba(120, 153, 106, 0.12);
}

.decoration-floral .scrapbook-polaroid {
    background: linear-gradient(180deg, #fffefc, #eef5ea);
}

/* ========================================
   CELEBRATION THEME
======================================== */
.decoration-celebration {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,246,225,0.97), rgba(255,234,193,0.98));
    border-color: rgba(212, 149, 42, 0.24);
    box-shadow:
        0 18px 38px rgba(128, 85, 25, 0.12),
        inset 0 0 0 1px rgba(255,255,255,0.30);
}

.decoration-celebration::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 10% 14%, rgba(255,255,255,0.34) 0 5px, transparent 6px),
        radial-gradient(circle at 24% 18%, rgba(224,120,120,0.25) 0 4px, transparent 5px),
        radial-gradient(circle at 78% 14%, rgba(120,170,220,0.25) 0 4px, transparent 5px),
        radial-gradient(circle at 88% 24%, rgba(242,194,92,0.28) 0 5px, transparent 6px),
        radial-gradient(circle at 18% 82%, rgba(148,197,122,0.26) 0 4px, transparent 5px),
        radial-gradient(circle at 82% 80%, rgba(215,131,184,0.24) 0 4px, transparent 5px);
    pointer-events: none;
}

.decoration-celebration .scrapbook-sheet-topbar {
    background: linear-gradient(90deg, rgba(255,237,196,0.95), rgba(255,249,231,0.94));
    border-bottom: 1px solid rgba(212, 149, 42, 0.22);
}

.decoration-celebration .scrapbook-page-title,
.decoration-celebration .scrapbook-sheet-title {
    color: #9a6113;
}

.decoration-celebration .scrapbook-paper-card,
.decoration-celebration .scrapbook-journal-card,
.decoration-celebration .scrapbook-caption-card {
    background: linear-gradient(180deg, rgba(255,251,241,0.96), rgba(255,240,211,0.96));
    border: 1px solid rgba(212, 149, 42, 0.14);
}

.decoration-celebration .scrapbook-image-placeholder {
    background: linear-gradient(180deg, rgba(255,250,239,0.96), rgba(255,239,208,0.96));
    border: 1px dashed rgba(212, 149, 42, 0.28);
    color: #a36b1e;
}

.decoration-celebration .scrapbook-sheet-inner::after {
    content: "? ?";
    position: absolute;
    right: 18px;
    top: 16px;
    font-size: 0.9rem;
    color: rgba(212, 149, 42, 0.38);
    pointer-events: none;
}

/* ========================================
   NONE THEME POLISH
======================================== */
.decoration-none {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,245,238,0.98));
}