:root {
    --desk-wood-1: #231709;
    --desk-wood-2: #140d05;
    --leather-cover: #4a2810;
    --leather-edge: #2e1607;
    --leather-gold: #d4af37;
    --paper-cream: #fbf7ec;
    --paper-aging: rgba(165, 125, 75, 0.12);
    --paper-shadow: rgba(0, 0, 0, 0.35);
    --ruled-line: rgba(72, 118, 178, 0.26);
    --margin-line: rgba(220, 80, 80, 0.42);

    /* Deep Black Ink & Patrick Hand 20px */
    --active-ink: #111111;
    --active-font: 'Patrick Hand', cursive;
    --active-font-size: 20px;
    --line-height-px: 36px;

    /* Dynamic Stack Thickness Variables */
    --left-stack-width: 1.5px;
    --right-stack-width: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    overflow: hidden;
}

body {
    background: radial-gradient(circle at 50% 25%, #382414 0%, #1e1108 55%, #0d0603 100%);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
}

/* Desk Texture & Ambient Lights */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 50% 10%, rgba(255, 214, 148, 0.2) 0%, transparent 60%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
    z-index: 0;
}

/* Subtle Corner Status Indicator Dot */
.corner-sync-dot {
    position: fixed;
    top: 14px;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
    z-index: 50;
    transition: all 0.3s ease;
    opacity: 0.85;
    pointer-events: none;
}

.corner-sync-dot.syncing {
    background-color: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
    animation: pulseSync 0.9s infinite alternate;
}

.corner-sync-dot.error {
    background-color: #f87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
}

@keyframes pulseSync {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Desk Center Stage */
.desk-container {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 10;
    perspective: 2600px;
    overflow: hidden;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.desk-container.locked {
    filter: blur(14px) brightness(0.65);
    pointer-events: none;
    transform: scale(0.97);
}

/* Realistic 3D Notebook Structure */
.notebook-wrapper {
    position: relative;
    width: min(1080px, 94vw);
    height: min(90vh, 700px);
    max-height: 720px;
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2600px;
    transform-style: preserve-3d;
}

/* Leather Journal Outer Cover with Tactile Grain */
.journal-cover {
    position: absolute;
    inset: -14px -16px -16px -16px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 70%),
        linear-gradient(135deg, #48240c 0%, #2a1304 40%, #170902 100%);
    border-radius: 16px;
    box-shadow:
        0 30px 65px rgba(0, 0, 0, 0.9),
        0 14px 28px rgba(0, 0, 0, 0.7),
        inset 0 0 0 2px rgba(212, 175, 55, 0.25),
        inset 0 0 22px rgba(0, 0, 0, 0.85);
    z-index: 1;
    overflow: hidden;
}

.journal-cover::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1.5px dashed rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    pointer-events: none;
}

/* Metal Corner Protectors */
.corner-ornament {
    position: absolute;
    width: 28px;
    height: 28px;
    border-style: solid;
    border-color: #d4af37;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.corner-tl {
    top: 0;
    left: 0;
    border-width: 4px 0 0 4px;
    border-top-left-radius: 14px;
}

.corner-tr {
    top: 0;
    right: 0;
    border-width: 4px 4px 0 0;
    border-top-right-radius: 14px;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 4px 4px;
    border-bottom-left-radius: 14px;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 4px 4px 0;
    border-bottom-right-radius: 14px;
}

/* Silk Bookmark Ribbon */
.bookmark-ribbon {
    position: absolute;
    top: -20px;
    left: calc(50% - 10px);
    width: 20px;
    height: 106%;
    background: linear-gradient(90deg, #8a1414, #c92a2a 50%, #700f0f 100%);
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 2px 2px 0 0;
    z-index: 25;
    pointer-events: none;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.bookmark-ribbon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #8a1414;
}

/* Two-Page Spread Book Body */
.book-spread {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 5;
    perspective: 2600px;
    transform-style: preserve-3d;
}

/* Central Spine Shadow & Crease */
.spine-crease {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 38px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.32) 0%,
            rgba(0, 0, 0, 0.65) 44%,
            rgba(18, 9, 4, 0.9) 50%,
            rgba(0, 0, 0, 0.65) 56%,
            rgba(0, 0, 0, 0.32) 100%);
    z-index: 20;
    pointer-events: none;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
}

/* Dynamic 3D Page Stack Thickness Edges */
.stack-edge-left {
    position: absolute;
    top: 3px;
    bottom: 3px;
    right: 100%;
    width: var(--left-stack-width);
    background: repeating-linear-gradient(0deg,
            #f6ede0 0px,
            #e6d6be 1px,
            #cbb698 2px,
            #ded0b7 3px);
    border-radius: 4px 0 0 4px;
    box-shadow:
        -3px 0 6px rgba(0, 0, 0, 0.45),
        inset 1px 0 2px rgba(255, 255, 255, 0.5),
        inset -1px 0 2px rgba(0, 0, 0, 0.3);
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    z-index: 4;
    pointer-events: none;
}

.stack-edge-right {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 100%;
    width: var(--right-stack-width);
    background: repeating-linear-gradient(0deg,
            #f6ede0 0px,
            #e6d6be 1px,
            #cbb698 2px,
            #ded0b7 3px);
    border-radius: 0 4px 4px 0;
    box-shadow:
        3px 0 6px rgba(0, 0, 0, 0.45),
        inset -1px 0 2px rgba(255, 255, 255, 0.5),
        inset 1px 0 2px rgba(0, 0, 0, 0.3);
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    z-index: 4;
    pointer-events: none;
}

/* Individual Page with Parchment Grain & Edge Aging */
.notebook-page {
    position: relative;
    flex: 1;
    height: 100%;
    background-color: var(--paper-cream);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

/* Micro-Textured Cotton Paper & Aging Vignette Overlay */
.parchment-texture-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0.85;
    background-image:
        /* Edge aging patina / tea stain vignette */
        radial-gradient(ellipse at 50% 50%, transparent 68%, rgba(150, 110, 60, 0.12) 92%, rgba(120, 80, 40, 0.22) 100%),
        /* Organic paper fiber grain noise */
        radial-gradient(rgba(100, 70, 30, 0.04) 1px, transparent 1px),
        radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 8px 8px, 5px 5px;
    background-position: 0 0, 0 0, 2px 2px;
}

.notebook-page.left {
    border-radius: 8px 0 0 8px;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow:
        -4px 0 12px rgba(0, 0, 0, 0.2),
        inset 14px 0 24px rgba(0, 0, 0, 0.06),
        inset -14px 0 20px rgba(0, 0, 0, 0.15);
}

.notebook-page.right {
    border-radius: 0 8px 8px 0;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow:
        4px 0 12px rgba(0, 0, 0, 0.2),
        inset -14px 0 24px rgba(0, 0, 0, 0.06),
        inset 14px 0 20px rgba(0, 0, 0, 0.15);
}

/* Page Header */
.page-header {
    height: 42px;
    padding: 8px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--margin-line);
    margin-bottom: 4px;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.page-header-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--active-font);
    color: var(--active-ink);
    font-size: 19px;
    width: 48%;
    opacity: 0.9;
}

.page-number-tag {
    font-family: var(--active-font);
    color: #8c7d70;
    font-size: 17px;
    font-weight: 600;
}

/* Ruled Paper Layout */
.page-content-area {
    flex: 1;
    min-height: 0;
    position: relative;
    padding: 0 20px 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pattern-ruled .page-content-area::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 1.5px;
    background-color: var(--margin-line);
    pointer-events: none;
    z-index: 2;
}

.pattern-ruled {
    background-image:
        linear-gradient(var(--ruled-line) 1px, transparent 1px);
    background-size: 100% var(--line-height-px);
    background-position: 0 6px;
}

/* Handwriting Area with Rich Ink Bleed */
.handwriting-editor {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: var(--active-font);
    font-size: var(--active-font-size);
    line-height: var(--line-height-px);
    color: var(--active-ink);
    padding: 4px 4px 4px 34px;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    letter-spacing: 0.4px;
    cursor: text;
    user-select: text;
    text-shadow: 0.2px 0.2px 0.5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
}

/* ==========================================================
   HYPER-REALISTIC 3D DUAL-SIDED PAGE TURN ENGINE
   ========================================================== */
.flipping-leaf-3d {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 35;
    transform-style: preserve-3d;
    pointer-events: none;
    will-change: transform;
}

/* Forward Flip: Anchored at Left Edge (Spine) */
.flipping-leaf-3d.flip-forward {
    right: 0;
    transform-origin: left center;
    animation: realisticFlipForward 0.72s cubic-bezier(0.28, 0.05, 0.22, 0.99) forwards;
}

/* Backward Flip: Anchored at Right Edge (Spine) */
.flipping-leaf-3d.flip-backward {
    left: 0;
    transform-origin: right center;
    animation: realisticFlipBackward 0.72s cubic-bezier(0.28, 0.05, 0.22, 0.99) forwards;
}

/* 3D Leaf Faces (Front & Back) */
.leaf-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--paper-cream);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.leaf-face-front {
    border-radius: 0 8px 8px 0;
    z-index: 2;
}

.leaf-face-back {
    border-radius: 8px 0 0 8px;
    transform: rotateY(180deg);
    z-index: 1;
}

/* Dynamic Lighting & Gradient Shadows across the curved sheet */
.leaf-lighting-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 25;
    transition: opacity 0.2s ease;
}

.leaf-face-front .leaf-lighting-overlay {
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.08) 25%,
            transparent 60%,
            rgba(0, 0, 0, 0.12) 100%);
    animation: frontLightingAnim 0.72s forwards ease;
}

.leaf-face-back .leaf-lighting-overlay {
    background: linear-gradient(-90deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.08) 25%,
            transparent 60%,
            rgba(255, 255, 255, 0.15) 100%);
    animation: backLightingAnim 0.72s forwards ease;
}

/* Dynamic Drop Shadow Cast onto Underlying Bed */
.book-bed-shadow {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 22;
}

.book-bed-shadow.shadow-left {
    left: 0;
    background: linear-gradient(90deg,
            transparent 40%,
            rgba(0, 0, 0, 0.08) 75%,
            rgba(0, 0, 0, 0.35) 100%);
    animation: shadowLeftFade 0.72s forwards ease;
}

.book-bed-shadow.shadow-right {
    right: 0;
    background: linear-gradient(-90deg,
            transparent 40%,
            rgba(0, 0, 0, 0.08) 75%,
            rgba(0, 0, 0, 0.35) 100%);
    animation: shadowRightFade 0.72s forwards ease;
}

/* Forward Flip Keyframes */
@keyframes realisticFlipForward {
    0% {
        transform: rotateY(0deg) skewY(0deg) scaleX(1);
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
    }
    35% {
        transform: rotateY(-65deg) skewY(-2.2deg) scaleX(0.96) translateZ(18px);
        box-shadow: -18px 0 35px rgba(0, 0, 0, 0.55);
    }
    65% {
        transform: rotateY(-125deg) skewY(1.8deg) scaleX(0.97) translateZ(22px);
        box-shadow: 20px 0 40px rgba(0, 0, 0, 0.55);
    }
    100% {
        transform: rotateY(-180deg) skewY(0deg) scaleX(1) translateZ(0px);
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.18);
    }
}

/* Backward Flip Keyframes */
@keyframes realisticFlipBackward {
    0% {
        transform: rotateY(0deg) skewY(0deg) scaleX(1);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    }
    35% {
        transform: rotateY(65deg) skewY(2.2deg) scaleX(0.96) translateZ(18px);
        box-shadow: 18px 0 35px rgba(0, 0, 0, 0.55);
    }
    65% {
        transform: rotateY(125deg) skewY(-1.8deg) scaleX(0.97) translateZ(22px);
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.55);
    }
    100% {
        transform: rotateY(180deg) skewY(0deg) scaleX(1) translateZ(0px);
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.18);
    }
}

/* Front & Back Lighting Sweep */
@keyframes frontLightingAnim {
    0% { opacity: 0.2; }
    45% { opacity: 0.75; }
    100% { opacity: 1; }
}

@keyframes backLightingAnim {
    0% { opacity: 1; }
    55% { opacity: 0.7; }
    100% { opacity: 0.15; }
}

@keyframes shadowLeftFade {
    0% { opacity: 0; }
    40% { opacity: 0.7; }
    100% { opacity: 0; }
}

@keyframes shadowRightFade {
    0% { opacity: 0; }
    40% { opacity: 0.7; }
    100% { opacity: 0; }
}

/* Page Curl Interactive Corner Zones */
.page-curl-zone {
    position: absolute;
    bottom: 0;
    width: 46px;
    height: 46px;
    z-index: 18;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-curl-left {
    left: 0;
    background: radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 50%, transparent 70%);
    border-radius: 0 20px 0 0;
}

.page-curl-right {
    right: 0;
    background: radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 50%, transparent 70%);
    border-radius: 20px 0 0 0;
}

.page-curl-left:hover {
    transform: scale(1.25) rotate(-3deg);
    background: radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.3) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 80%);
    box-shadow: 3px -3px 8px rgba(0, 0, 0, 0.25);
}

.page-curl-right:hover {
    transform: scale(1.25) rotate(3deg);
    background: radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.3) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 80%);
    box-shadow: -3px -3px 8px rgba(0, 0, 0, 0.25);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(36, 20, 10, 0.94);
    border: 1px solid #d4af37;
    color: #fef1db;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Desk Pen Accessory */
.desk-pen-accessory {
    position: absolute;
    right: -26px;
    top: 36px;
    width: 12px;
    height: 200px;
    background: linear-gradient(90deg, #b8860b, #ffd700, #996515);
    border-radius: 5px 5px 10px 10px;
    box-shadow: 6px 10px 16px rgba(0, 0, 0, 0.6);
    transform: rotate(5deg);
    cursor: pointer;
    z-index: 8;
    transition: transform 0.2s ease;
}

.desk-pen-accessory:hover {
    transform: rotate(2deg) translateY(-6px);
}

.desk-pen-accessory::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 1px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 12px solid #111;
}

/* Master Vault Lock Screen Modal */
.vault-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 6, 2, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.vault-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.vault-card {
    width: min(460px, 94vw);
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 70%),
        linear-gradient(145deg, #381c09 0%, #200f04 50%, #120701 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 30px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.vault-overlay.active .vault-card {
    transform: translateY(0) scale(1);
}

.vault-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    pointer-events: none;
}

.vault-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #573315 0%, #2a1405 100%);
    border: 2px solid var(--leather-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(212, 175, 55, 0.4);
    color: var(--leather-gold);
}

.vault-title {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    font-weight: 600;
    color: #f7edd6;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.vault-subtitle {
    font-size: 13px;
    color: #bfa990;
    line-height: 1.45;
    margin-bottom: 20px;
}

.vault-input-group {
    position: relative;
    margin-bottom: 14px;
    text-align: left;
}

.vault-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #cbb497;
    margin-bottom: 6px;
}

.vault-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.vault-input {
    width: 100%;
    background: rgba(14, 7, 2, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 11px 40px 11px 13px;
    color: #fff;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.vault-input:focus {
    border-color: var(--leather-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: rgba(14, 7, 2, 0.9);
}

.vault-toggle-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #a8947e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.vault-toggle-eye:hover {
    color: var(--leather-gold);
}

.vault-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
    color: #d1beaa;
}

.vault-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.vault-checkbox {
    accent-color: #d4af37;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.vault-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #aa8214 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: #1a0f05;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vault-btn-submit:hover {
    background: linear-gradient(135deg, #f0ca4d 0%, #c49618 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
}

.vault-error-msg {
    margin-top: 12px;
    font-size: 13px;
    color: #ff7878;
    min-height: 18px;
    font-weight: 500;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .notebook-wrapper {
        width: min(96vw, 980px);
        height: min(88vh, 640px);
    }
}

@media (max-width: 768px) {
    .desk-container {
        padding: 6px;
    }

    .notebook-wrapper {
        width: 95vw;
        height: 92dvh;
        height: 92vh;
        max-height: none;
        min-height: 380px;
    }

    .journal-cover {
        inset: -8px -8px -8px -8px;
        border-radius: 12px;
    }

    .corner-ornament {
        width: 20px;
        height: 20px;
    }

    .spine-crease,
    .bookmark-ribbon,
    .desk-pen-accessory,
    .stack-edge-left,
    .stack-edge-right {
        display: none;
    }

    .book-spread {
        position: relative;
    }

    .notebook-page {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 8px !important;
        display: none;
        box-shadow: inset 0 0 14px rgba(180, 150, 110, 0.15) !important;
    }

    .notebook-page.active-mobile-page {
        display: flex !important;
    }

    .page-header {
        height: 38px;
        padding: 6px 14px 0;
    }

    .page-header-input {
        font-size: 17px;
        width: 60%;
    }

    .page-number-tag {
        font-size: 15px;
    }

    .pattern-ruled .page-content-area::before {
        left: 34px;
    }

    .handwriting-editor {
        font-size: 19px;
        padding: 4px 4px 4px 26px;
    }

    .page-curl-zone {
        width: 48px;
        height: 48px;
    }

    .flipping-leaf-3d {
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --line-height-px: 33px;
        --active-font-size: 18px;
    }

    .notebook-wrapper {
        width: 96vw;
        height: 94dvh;
        height: 94vh;
    }

    .pattern-ruled .page-content-area::before {
        left: 28px;
    }

    .handwriting-editor {
        font-size: 18px;
        padding: 3px 3px 3px 22px;
    }

    .page-header {
        height: 34px;
        padding: 4px 10px 0;
    }

    .page-header-input {
        font-size: 16px;
    }
}
