:root {
    --bg: #f2fbff;
    --bg-soft: #fbfeff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-border: rgba(255, 255, 255, 0.58);
    --primary-blue: #041b2d;
    --primary-blue-soft: #0b3b5a;
    --accent-teal: #22d3c5;
    --accent-gold: #d9b56d;
    --accent-rose: #ffccb4;
    --text-dark: #061625;
    --text-muted: #4f6479;
    --page-bg: #f7fbff;
    --shadow-soft: 0 22px 70px rgba(4, 27, 45, 0.12);
    --shadow-strong: 0 36px 110px rgba(4, 27, 45, 0.18);
    --glow-teal: 0 0 0 6px rgba(34, 211, 197, 0.12);
    --glow-blue: 0 0 0 6px rgba(56, 189, 248, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 32px 0 128px;
    background:
        radial-gradient(circle at 18% 10%, rgba(34, 211, 197, 0.28), transparent 34%),
        radial-gradient(circle at 88% 16%, rgba(56, 189, 248, 0.22), transparent 34%),
        radial-gradient(circle at 50% 110%, rgba(4, 27, 45, 0.16), transparent 48%),
        linear-gradient(180deg, #fbfeff 0%, #f2fbff 42%, #eef7ff 100%);
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(20px);
    z-index: -2;
}

body::before {
    width: 320px;
    height: 320px;
    top: 80px;
    right: -80px;
    background: rgba(34, 211, 197, 0.16);
}

body::after {
    width: 280px;
    height: 280px;
    bottom: 80px;
    left: -90px;
    background: rgba(56, 189, 248, 0.14);
}

h1,
h2,
h3,
.serif-text {
    font-family: 'Playfair Display', serif;
}

.fade-in {
    opacity: 1;
}

.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.46), transparent 44%),
        radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.34), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.blob {
    position: absolute;
    filter: blur(95px);
    border-radius: 50%;
    opacity: 0.8;
}

.color-1 {
    width: 44vw;
    height: 44vw;
    min-width: 260px;
    min-height: 260px;
    background: rgba(56, 189, 248, 0.42);
    top: -8%;
    left: -8%;
}

.color-2 {
    width: 36vw;
    height: 36vw;
    min-width: 220px;
    min-height: 220px;
    background: rgba(34, 211, 197, 0.34);
    bottom: -8%;
    right: -6%;
}

.color-3 {
    width: 34vw;
    height: 34vw;
    min-width: 220px;
    min-height: 220px;
    background: rgba(255, 204, 180, 0.32);
    top: 38%;
    left: 34%;
}

.ocean-waves {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -70px;
    height: 280px;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.95;
    filter: drop-shadow(0 -18px 40px rgba(4, 27, 45, 0.08));
}

.wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    background-repeat: repeat-x;
    background-size: 1200px 220px;
    transform: translate3d(0, 0, 0);
    will-change: background-position;
}

.wave-1 {
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0 130c120 50 240 50 360 0s240-50 360 0 240 50 360 0v90H0Z' fill='%230b3b5a'/%3E%3C/svg%3E");
    animation: waveMove 22s linear infinite;
}

.wave-2 {
    opacity: 0.18;
    bottom: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0 140c140 46 260 46 360 0s220-46 360 0 220 46 360 0v80H0Z' fill='%2322d3c5'/%3E%3C/svg%3E");
    animation: waveMoveReverse 30s linear infinite;
}

@keyframes waveMove {
    from { background-position: 0 0; }
    to { background-position: -1200px 0; }
}

@keyframes waveMoveReverse {
    from { background-position: -1200px 0; }
    to { background-position: 0 0; }
}

.hero-section,
.flipbook-wrapper {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.hero-section {
    text-align: center;
    padding-top: 18px;
    margin-bottom: 28px;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    padding: 34px 28px 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(217, 181, 109, 0.16), transparent 30%),
        linear-gradient(120deg, rgba(16, 33, 62, 0.03), transparent 55%);
    pointer-events: none;
}

.hero-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(34, 211, 197, 0.42), rgba(56, 189, 248, 0.32), rgba(217, 181, 109, 0.22));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.88;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(4, 27, 45, 0.06);
    border: 1px solid rgba(4, 27, 45, 0.08);
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-badge i {
    color: var(--accent-gold);
}

.couple-names {
    font-size: clamp(40px, 8vw, 68px);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.couple-names .amp {
    color: var(--accent-gold);
    font-style: italic;
    margin-inline: 6px;
}

.subtitle {
    font-size: 13px;
    color: var(--primary-blue-soft);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-bottom: 16px;
}

.hero-description {
    width: min(640px, 100%);
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

.hero-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 28px rgba(15, 28, 63, 0.08);
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 600;
}

.hero-pill i {
    color: var(--accent-teal);
}

.hero-collage {
    position: relative;
    height: 212px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.collage-item {
    position: absolute;
    left: 50%;
    width: 124px;
    height: 172px;
    background: #fff;
    padding: 6px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 28, 63, 0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.collage-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 30%);
    pointer-events: none;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.pos-1 {
    margin-left: -202px;
    transform: rotate(-14deg) translateY(14px);
    z-index: 1;
}

.pos-2 {
    margin-left: -104px;
    transform: rotate(-6deg) translateY(4px);
    z-index: 2;
}

.pos-3 {
    margin-left: -62px;
    transform: rotate(1deg) translateY(-10px);
    z-index: 3;
}

.pos-4 {
    margin-left: 22px;
    transform: rotate(8deg);
    z-index: 4;
}

.pos-5 {
    margin-left: 124px;
    transform: rotate(15deg) translateY(12px);
    z-index: 5;
}

.collage-item:hover {
    z-index: 10 !important;
    box-shadow: 0 30px 65px rgba(15, 28, 63, 0.24);
    transform: translateY(-16px) scale(1.08) !important;
}

.flipbook-wrapper {
    position: relative;
    margin-top: 6px;
    padding: 0 12px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 620px;
}

.book-stage {
    position: relative;
    width: min(100%, 1080px);
    padding: 34px 20px 22px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.book-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.34), rgba(34, 211, 197, 0.24), rgba(255, 204, 180, 0.18));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.78;
}

.book-stage::before {
    content: '';
    position: absolute;
    inset: auto 12% 18px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(16, 33, 62, 0.2), transparent 70%);
    filter: blur(16px);
}

.book-stage-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.book-stage-copy {
    text-align: left;
}

.book-stage-copy span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-blue-soft);
    margin-bottom: 8px;
}

.book-stage-copy h2 {
    font-size: clamp(26px, 4vw, 38px);
    color: var(--primary-blue);
}

.book-stage-copy p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 15px;
}

.book-stage-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(4, 27, 45, 0.94), rgba(11, 59, 90, 0.86));
    color: #f8f4ec;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 16px 34px rgba(16, 33, 62, 0.18);
}

.book-stage-chip i {
    color: var(--accent-gold);
}

#flipbook {
    display: block;
    margin-inline: auto;
    box-shadow: 0 28px 70px rgba(10, 20, 44, 0.22);
    border-radius: 14px;
}

.mobile-swiper {
    width: min(420px, 92vw);
    height: 590px;
    margin-inline: auto;
    border-radius: 18px;
    overflow: visible;
}

.mobile-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-swiper .swiper-pagination {
    position: static;
    margin-top: 12px;
    text-align: center;
}

.mobile-swiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: rgba(4, 27, 45, 0.22);
    opacity: 1;
}

.mobile-swiper .swiper-pagination-bullet-active {
    background: rgba(56, 189, 248, 0.9);
}

.mobile-swiper .page {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    box-shadow: 0 26px 76px rgba(4, 27, 45, 0.26);
}

@media (max-width: 420px) {
    .mobile-swiper {
        height: 540px;
    }
}

@media (max-width: 820px) {
    #flipbook {
        box-shadow: none;
        border-radius: 0;
    }

    .hero-shell,
    .book-stage {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.page {
    background-color: var(--page-bg);
    overflow: hidden;
}

.page-cover {
    background-color: var(--primary-blue);
    background-image:
        radial-gradient(circle at 16% 18%, rgba(34, 211, 197, 0.32) 0%, transparent 42%),
        radial-gradient(circle at 84% 30%, rgba(56, 189, 248, 0.26) 0%, transparent 44%),
        radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 0.55) 0%, transparent 55%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 46%),
        linear-gradient(180deg, rgba(4, 27, 45, 0.92), rgba(4, 27, 45, 0.72));
    display: flex;
    flex-direction: column;
    border-radius: 0 12px 12px 0;
    position: relative;
    box-shadow: inset -6px 0 24px rgba(0, 0, 0, 0.48);
}

.page-cover::after {
    content: '';
    position: absolute;
    inset: 12px 14px 12px 36px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(34, 211, 197, 0.28), rgba(56, 189, 248, 0.18), rgba(217, 181, 109, 0.12));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.95;
}

.page-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
    background-size: 260px 260px;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
    opacity: 0.28;
}

.page-cover--end {
    border-radius: 12px 0 0 12px;
    box-shadow: inset 6px 0 24px rgba(0, 0, 0, 0.48);
}

.page-cover--end::after {
    inset: 12px 36px 12px 14px;
}

.page-cover--end .cover-content {
    padding: 26px 42px 22px 20px;
}

.cover-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.68) 16%, rgba(255, 255, 255, 0.05) 52%, rgba(0, 0, 0, 0.72) 100%);
    border-right: 2px solid rgba(0, 0, 0, 0.82);
    z-index: 3;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.55);
}

.cover-spine--end {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

.cover-spine::after {
    content: '';
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 0;
    width: 100%;
    background-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.82) 1%, rgba(255, 255, 255, 0.08) 2%, transparent 3%);
    background-size: 100% 120px;
}

.cover-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 26px 20px 22px 42px;
    gap: 16px;
}

.cover-center-block {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.cover-badge i {
    color: rgba(34, 211, 197, 0.95);
}

.cover-badge--end i {
    color: rgba(217, 181, 109, 0.92);
}

.cover-badge--end {
    margin-left: auto;
}

.cover-kicker {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 10px;
    text-align: center;
}

.cover-kicker-amp {
    display: inline-block;
    margin-inline: 4px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: 0.08em;
    color: rgba(217, 181, 109, 0.92);
}

.cover-title {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(56, 189, 248, 0.92), rgba(34, 211, 197, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.36));
}

.cover-title--end {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(217, 181, 109, 0.92), rgba(56, 189, 248, 0.86));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cover-mark {
    width: 140px;
    margin-top: 18px;
    margin-bottom: 18px;
    opacity: 0.92;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
}

.cover-tagline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
}

.cover-bottom {
    margin-top: auto;
    text-align: center;
}

.cover-hint {
    color: rgba(255, 255, 255, 0.64);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.cover-subhint {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 22px;
}

.monogram .initial {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    line-height: 1;
    background: linear-gradient(to bottom, #f7e8bc 0%, #d9b56d 40%, #8f6a2b 62%, #f0dd9a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.8));
}

.monogram .ampersand {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--accent-gold);
    font-style: italic;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

.cover-ornament {
    margin-bottom: 26px;
    width: 100px;
    opacity: 0.82;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

.page-cover .legacy-cover-title {
    font-size: 24px;
    color: #f3e5ab;
    margin-bottom: 12px;
    letter-spacing: 0.32em;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.wedding-subtitle {
    color: var(--accent-gold);
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    text-align: center;
}

.swipe-hint {
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.03);
}

.photo-page {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), #fff),
        #fff;
}

.polaroid-wrapper {
    background: linear-gradient(180deg, #ffffff, #fefefe);
    padding: 12px 12px 28px;
    box-shadow: 0 14px 32px rgba(15, 28, 63, 0.08);
    border: 1px solid rgba(230, 233, 240, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
}

.polaroid-wrapper img {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.polaroid-caption {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    margin-top: 15px;
    color: var(--primary-blue);
    font-style: italic;
}

.note-page {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
        var(--page-bg);
    padding: 40px;
    border-left: 2px solid rgba(0, 0, 0, 0.02);
}

.note-text {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.95;
    color: var(--text-dark);
    text-align: center;
}

.note-author {
    margin-top: 35px;
    font-weight: 700;
    text-align: right;
    color: var(--accent-gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pro-bottom-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(94%, 480px);
    display: flex;
    gap: 14px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.62);
    padding: 12px;
    border-radius: 26px;
    box-shadow: 0 24px 55px rgba(15, 28, 63, 0.16);
}

.pro-btn {
    flex: 1;
    border: none;
    border-radius: 18px;
    padding: 16px 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pro-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 46%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
    opacity: 0.75;
}

.pro-btn:hover {
    transform: translateY(-2px);
}

.pro-btn:hover::before {
    transform: translateX(120%);
}

.pro-btn:active {
    transform: scale(0.97);
}

.btn-glass-blue {
    background: linear-gradient(135deg, #041b2d, #0b3b5a 45%, #0ea5e9);
    color: #fbf6ea;
    box-shadow: 0 16px 36px rgba(4, 27, 45, 0.24);
}

.btn-glass-white {
    background: rgba(255, 255, 255, 0.84);
    color: var(--primary-blue);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 22px rgba(15, 28, 63, 0.08);
}

.pro-modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
}

.pro-modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 35, 0.68);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
    width: 100%;
    max-width: 560px;
    padding: 38px 28px 30px;
    border-radius: 34px 34px 0 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 -24px 55px rgba(15, 28, 63, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: slideUpModal 0.32s ease-out forwards;
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-drag-handle {
    width: 44px;
    height: 5px;
    background: rgba(16, 33, 62, 0.12);
    border-radius: 5px;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 18px;
    font-size: 22px;
    color: #7b8598;
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.close-modal:hover {
    background: rgba(16, 33, 62, 0.06);
    color: var(--primary-blue);
}

.modal-title {
    margin-bottom: 8px;
    font-size: 28px;
    color: var(--primary-blue);
    text-align: center;
}

.modal-subtitle {
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(209, 219, 233, 0.9);
    background-color: rgba(248, 250, 255, 0.92);
    border-radius: 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(34, 211, 197, 0.8);
    background: #fff;
    box-shadow: var(--glow-teal);
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
    min-height: 72px;
    border-radius: 18px;
    background-color: rgba(248, 250, 255, 0.96);
    border: 1px dashed rgba(94, 107, 131, 0.36);
    overflow: hidden;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-design {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-weight: 600;
    font-size: 15px;
}

.info-text {
    font-size: 13px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.btn-submit {
    width: 100%;
    padding: 17px 18px;
    background: linear-gradient(135deg, #041b2d, #0b3b5a 45%, #0ea5e9);
    color: #f7f1df;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 40px rgba(4, 27, 45, 0.2);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 26px 52px rgba(4, 27, 45, 0.24);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.78;
    cursor: wait;
}

.empty-book-state {
    text-align: center;
    color: #7b8598;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.empty-book-state i {
    font-size: 40px;
    color: var(--accent-gold);
}

.swal2-popup {
    border-radius: 28px !important;
    padding: 1.6rem !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .wave-1,
    .wave-2 {
        animation: none;
    }

    .pro-btn,
    .collage-item,
    .btn-submit {
        transition: none;
    }

    .pro-btn::before {
        display: none;
    }
}

@media (max-width: 860px) {
    body {
        padding-top: 20px;
    }

    .hero-shell,
    .book-stage {
        border-radius: 28px;
    }

    .book-stage-header {
        justify-content: center;
        text-align: center;
    }

    .book-stage-copy {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-section,
    .flipbook-wrapper {
        width: min(100% - 20px, 100%);
    }

    .hero-shell {
        padding: 26px 18px 22px;
    }

    .hero-collage {
        height: 172px;
        max-width: 360px;
    }

    .collage-item {
        width: 86px;
        height: 124px;
        border-radius: 14px;
    }

    .collage-item img {
        border-radius: 10px;
    }

    .pos-1 {
        margin-left: -146px;
    }

    .pos-2 {
        margin-left: -82px;
    }

    .pos-3 {
        margin-left: -42px;
    }

    .pos-4 {
        margin-left: 10px;
    }

    .pos-5 {
        margin-left: 76px;
    }

    .book-stage {
        padding: 24px 10px 12px;
    }

    .flipbook-wrapper {
        min-height: 510px;
    }

    .page-content {
        padding: 18px;
    }

    .note-page {
        padding: 24px;
    }

    .note-text {
        font-size: 16px;
        line-height: 1.8;
    }

    .modal-content {
        padding-inline: 20px;
        border-radius: 28px 28px 0 0;
    }

    .modal-title {
        font-size: 24px;
    }

    .pro-bottom-bar {
        width: calc(100% - 16px);
        gap: 10px;
        padding: 10px;
        bottom: 14px;
    }

    .pro-btn {
        padding: 14px 10px;
        font-size: 14px;
    }

    .pro-btn .text {
        display: inline-block;
    }
}
