/* Bellie iWedding Studio - Luxury Interactive Wedding Website Editor */
:root {
    --bw-primary: #a63f58;
    --bw-primary-hover: #8f3248;
    --bw-primary-light: #fff0f3;
    --bw-wine: #7c2d42;
    --bw-blush: #fdf5f6;
    --bw-gold: #c59b4c;
    --bw-ink: #1f2937;
    --bw-muted: #6b7280;
    --bw-border: #e5e7eb;
    --bw-surface: #ffffff;
    --bw-canvas-bg: #e2e5e9;
    --bw-blue: #2563eb;
    --bw-blue-hover: #1d4ed8;
    --bw-red: #d84a56;
    --bw-red-hover: #c23844;
    --bw-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --bw-serif: 'Cormorant Garamond', Georgia, serif;
    --bw-script: 'Great Vibes', cursive, 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--bw-sans);
    color: var(--bw-ink);
    background: var(--bw-canvas-bg);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
}

/* TOP NAVIGATION BAR */
.bw-topbar {
    height: 56px;
    background: var(--bw-surface);
    border-bottom: 1px solid var(--bw-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: relative;
    z-index: 100;
}

.bw-brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bw-brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--bw-ink);
}
.bw-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff0f3 0%, #fad2dc 100%);
    display: grid;
    place-items: center;
    color: var(--bw-primary);
}
.bw-brand-icon svg { width: 19px; height: 19px; }
.bw-brand-text {
    display: flex;
    flex-direction: column;
}
.bw-brand-title {
    font-family: var(--bw-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
    color: var(--bw-wine);
}
.bw-brand-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--bw-gold);
    text-transform: uppercase;
}
.bw-save-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    background: #ecfdf5;
    padding: 3px 9px;
    border-radius: 12px;
    margin-left: 6px;
}
.bw-save-pill.saving {
    color: #f59e0b;
    background: #fffbeb;
}

/* DEVICE SWITCHER (CENTER) */
.bw-device-switcher {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.bw-device-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--bw-muted);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all .15s ease;
}
.bw-device-btn svg { width: 16px; height: 16px; }
.bw-device-btn.active {
    background: #ffffff;
    color: var(--bw-wine);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* TOP RIGHT ACTIONS */
.bw-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.bw-btn-ghost {
    background: transparent;
    color: var(--bw-muted);
    border: 1px solid var(--bw-border);
}
.bw-btn-ghost:hover {
    background: #f9fafb;
    color: var(--bw-ink);
}
.bw-btn-preview {
    background: var(--bw-red);
    color: #ffffff;
}
.bw-btn-preview:hover {
    background: var(--bw-red-hover);
    box-shadow: 0 2px 8px rgba(216, 74, 86, 0.35);
}
.bw-btn-share {
    background: var(--bw-blue);
    color: #ffffff;
}
.bw-btn-share:hover {
    background: var(--bw-blue-hover);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.bw-btn-save {
    background: var(--bw-wine);
    color: #ffffff;
}
.bw-btn-save:hover {
    background: #642335;
}

/* MAIN LAYOUT SHELL */
.bw-editor-shell {
    display: flex;
    height: calc(100vh - 56px);
    position: relative;
    overflow: hidden;
}

/* LEFT SIDEBAR NAVIGATION */
.bw-sidebar-nav {
    width: 250px;
    min-width: 250px;
    background: var(--bw-surface);
    border-right: 1px solid var(--bw-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 40;
}
.bw-nav-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}
.bw-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #374151;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f9fafb;
    transition: all .15s ease;
    user-select: none;
}
.bw-nav-item svg {
    width: 17px;
    height: 17px;
    color: #6b7280;
    flex-shrink: 0;
    transition: color .15s ease;
}
.bw-nav-item:hover {
    background: #fdf2f4;
    color: var(--bw-primary);
}
.bw-nav-item:hover svg {
    color: var(--bw-primary);
}
.bw-nav-item.active {
    background: #fff0f3;
    color: var(--bw-primary);
    border-left-color: var(--bw-primary);
    font-weight: 700;
}
.bw-nav-item.active svg {
    color: var(--bw-primary);
}
.bw-nav-item.bw-nav-back {
    color: #4b5563;
    font-weight: 600;
    background: #f9fafb;
    border-bottom: 1px solid var(--bw-border);
    margin-bottom: 4px;
}
.bw-nav-item.bw-nav-back:hover {
    background: #f3f4f6;
    color: var(--bw-ink);
}

/* SLIDE-OUT CONFIGURATION DRAWER */
.bw-drawer {
    position: absolute;
    top: 0;
    left: 250px;
    width: 390px;
    height: 100%;
    background: var(--bw-surface);
    border-right: 1px solid var(--bw-border);
    box-shadow: 8px 0 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), opacity .2s ease;
}
.bw-drawer.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}
.bw-drawer-header {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--bw-border);
    background: #fafafa;
}
.bw-drawer-title {
    font-family: var(--bw-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--bw-wine);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bw-drawer-close {
    border: none;
    background: transparent;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--bw-muted);
    font-size: 18px;
    transition: all .15s ease;
}
.bw-drawer-close:hover {
    background: #f3f4f6;
    color: var(--bw-ink);
}
.bw-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.bw-drawer-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--bw-border);
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* FORM CONTROLS INSIDE DRAWER */
.bw-form-group {
    margin-bottom: 18px;
}
.bw-form-group:last-child {
    margin-bottom: 0;
}
.bw-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bw-input, .bw-select, .bw-textarea {
    width: 100%;
    border: 1px solid var(--bw-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-family: var(--bw-sans);
    color: var(--bw-ink);
    background: #ffffff;
    transition: all .15s ease;
}
.bw-input:focus, .bw-select:focus, .bw-textarea:focus {
    outline: none;
    border-color: var(--bw-primary);
    box-shadow: 0 0 0 3px rgba(166, 63, 88, 0.15);
}
.bw-textarea {
    resize: vertical;
    min-height: 85px;
    line-height: 1.5;
}
.bw-hint {
    font-size: 11.5px;
    color: var(--bw-muted);
    margin-top: 5px;
    line-height: 1.4;
}
.bw-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.bw-card-section {
    background: #fdf8f9;
    border: 1px solid #fae3e7;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}
.bw-card-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--bw-wine);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* PHOTO UPLOAD / URL ROW */
.bw-photo-uploader {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.bw-photo-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--bw-border);
    background: #f3f4f6;
    flex-shrink: 0;
}
.bw-photo-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* TEMPLATE PICKER CARDS */
.bw-template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}
.bw-template-card {
    border: 2px solid var(--bw-border);
    border-radius: 10px;
    padding: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
}
.bw-template-card:hover {
    border-color: #f3b1c1;
    transform: translateY(-2px);
}
.bw-template-card.active {
    border-color: var(--bw-primary);
    background: #fff5f7;
    box-shadow: 0 4px 12px rgba(166, 63, 88, 0.15);
}
.bw-template-preview-box {
    height: 70px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: grid;
    place-items: center;
    font-family: var(--bw-serif);
    font-size: 15px;
    font-weight: 700;
}
.bw-template-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--bw-ink);
}
.bw-template-plan {
    font-size: 11px;
    color: var(--bw-gold);
    font-weight: 600;
}

/* TOGGLE SWITCH */
.bw-switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    padding: 8px 0;
    cursor: pointer;
}
.bw-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.bw-switch input { opacity: 0; width: 0; height: 0; }
.bw-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d1d5db;
    transition: .3s;
    border-radius: 24px;
}
.bw-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.bw-switch input:checked + .bw-slider {
    background-color: var(--bw-primary);
}
.bw-switch input:checked + .bw-slider:before {
    transform: translateX(20px);
}

/* COLOR SWATCHES */
.bw-swatches {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.bw-swatch-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #d1d5db;
    cursor: pointer;
    transition: transform .15s ease;
}
.bw-swatch-btn:hover {
    transform: scale(1.15);
}
.bw-swatch-btn.active {
    box-shadow: 0 0 0 2px var(--bw-primary);
    transform: scale(1.1);
}

/* CENTER WORKSPACE CANVAS */
.bw-canvas-workspace {
    flex: 1;
    background: var(--bw-canvas-bg);
    background-image: 
        radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 30px 16px 60px;
    position: relative;
    scroll-behavior: smooth;
}

/* CANVAS CONTAINER (MOBILE OR DESKTOP) */
.bw-preview-container {
    background: #ffffff;
    position: relative;
    transition: width .3s cubic-bezier(0.16, 1, 0.3, 1), border-radius .3s ease;
}

/* MOBILE PHONE VIEWPORT */
.bw-preview-container.mode-mobile {
    width: 414px;
    min-height: 840px;
    border-radius: 38px;
    border: 10px solid #1a1a1a;
    box-shadow: 0 25px 60px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
}
.bw-phone-notch {
    position: sticky;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 22px;
    background: #1a1a1a;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 80;
    margin-bottom: -22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.bw-phone-speaker {
    width: 46px;
    height: 4px;
    background: #2e2e2e;
    border-radius: 2px;
}
.bw-phone-camera {
    width: 8px;
    height: 8px;
    background: #24293e;
    border-radius: 50%;
}

/* DESKTOP VIEWPORT */
.bw-preview-container.mode-desktop {
    width: 1050px;
    max-width: 95%;
    min-height: 850px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
}
.bw-desktop-chrome {
    height: 38px;
    background: #f1f3f5;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 12px;
}
.bw-chrome-dots {
    display: flex;
    gap: 6px;
}
.bw-chrome-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.bw-dot-red { background: #ef4444; }
.bw-dot-yellow { background: #f59e0b; }
.bw-dot-green { background: #10b981; }
.bw-chrome-bar {
    flex: 1;
    background: #ffffff;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 11px;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* LIVE INVITATION INSIDE PREVIEW CONTAINER */
.bw-invitation-view {
    position: relative;
    background: #ffffff;
    min-height: 100%;
}

/* HOVER / QUICK EDIT BADGES */
.bw-edit-badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bw-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    z-index: 60;
    transition: all .2s ease;
    white-space: nowrap;
}
.bw-edit-badge svg { width: 13px; height: 13px; }
.bw-edit-badge:hover {
    background: var(--bw-blue-hover);
    transform: translateX(-50%) scale(1.05);
}

/* FALLING SAKURA PETALS EFFECT */
.bw-petals-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 45;
}
.bw-petal {
    position: absolute;
    top: -40px;
    width: 14px;
    height: 18px;
    background: radial-gradient(circle at 40% 40%, #ffc2d1 0%, #ff85a1 80%, #f72585 100%);
    border-radius: 70% 30% 60% 40% / 60% 40% 70% 30%;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(255, 133, 161, 0.4));
    animation: bwPetalFall linear infinite;
}
@keyframes bwPetalFall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% { opacity: 0.9; }
    90% { opacity: 0.8; }
    100% {
        transform: translate3d(var(--x-drift, 80px), 850px, 0) rotate(360deg) scale(1.1);
        opacity: 0;
    }
}

/* TOP COUNTDOWN BANNER (BIIHAPPY STYLE FROM USER IMAGE) */
.bw-countdown-banner {
    padding: 30px 20px 15px;
    text-align: center;
    background: #ffffff;
    position: relative;
}
.bw-countdown-cluster {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}
.bw-countdown-digits {
    font-family: var(--bw-serif);
    font-size: 42px;
    font-weight: 300;
    color: #6b7280;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bw-countdown-digits span {
    display: block;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 2px;
    width: 48px;
}
.bw-countdown-digits span:last-child {
    border-bottom: none;
    padding-top: 2px;
}
.bw-countdown-label {
    text-align: left;
}
.bw-countdown-sub {
    font-size: 13px;
    color: #6b7280;
    display: block;
}
.bw-countdown-main {
    font-family: var(--bw-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--bw-wine);
}

/* HERO SECTION WITH ARTISTIC DIAGONAL SPLIT */
.bw-hero-section {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    padding: 10px 0 30px;
}
.bw-diagonal-art {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(125deg, #e5e7eb 48%, transparent 48.5%);
    pointer-events: none;
}
.bw-hero-photo-wrap {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.bw-hero-photo {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
.bw-hero-names-block {
    text-align: center;
    padding: 24px 20px 10px;
}
.bw-hero-script {
    font-family: var(--bw-script);
    font-size: 34px;
    color: var(--bw-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.bw-hero-couple {
    font-family: var(--bw-serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--bw-wine);
    letter-spacing: 0.5px;
}
.bw-hero-amp {
    font-family: var(--bw-script);
    font-size: 32px;
    color: var(--bw-gold);
    margin: 0 8px;
}
.bw-hero-date-stamp {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #4b5563;
    margin-top: 10px;
    text-transform: uppercase;
}

/* COUPLE PROFILE SECTION */
.bw-profile-section {
    padding: 40px 20px;
    background: #fdfaf8;
    text-align: center;
}
.bw-section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--bw-gold);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.bw-section-heading {
    font-family: var(--bw-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--bw-wine);
    margin-bottom: 24px;
}
.bw-couple-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
}
.bw-profile-card {
    background: #ffffff;
    border: 1px solid #fae8eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.bw-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid var(--bw-primary-light);
}
.bw-profile-name {
    font-family: var(--bw-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--bw-wine);
}
.bw-profile-nickname {
    font-size: 12px;
    color: var(--bw-primary);
    font-weight: 600;
    margin-bottom: 8px;
}
.bw-profile-bio {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

/* WEDDING EVENTS SECTION */
.bw-events-section {
    padding: 40px 20px;
    background: #ffffff;
}
.bw-event-card {
    background: #fff8f9;
    border: 1px solid #fae1e6;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}
.bw-event-tag {
    display: inline-block;
    background: var(--bw-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.bw-event-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--bw-wine);
    margin-bottom: 4px;
}
.bw-event-venue {
    font-family: var(--bw-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--bw-ink);
    margin-bottom: 6px;
}
.bw-event-address {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 12px;
}
.bw-event-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.bw-event-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: #ffffff;
    color: var(--bw-wine);
    border: 1px solid #ebd0d6;
    text-decoration: none;
    cursor: pointer;
}
.bw-event-btn:hover {
    background: #fff0f3;
}

/* LOVE STORY SECTION */
.bw-story-section {
    padding: 40px 20px;
    background: #faf7f5;
}
.bw-timeline {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    padding-left: 24px;
}
.bw-timeline:before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5d5d8;
}
.bw-timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.bw-timeline-dot {
    position: absolute;
    left: -24px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bw-primary);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px var(--bw-primary);
}
.bw-timeline-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--bw-gold);
    text-transform: uppercase;
}
.bw-timeline-title {
    font-family: var(--bw-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--bw-wine);
    margin: 2px 0 6px;
}
.bw-timeline-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

/* PHOTO ALBUM SECTION */
.bw-album-section {
    padding: 40px 20px;
    background: #ffffff;
}
.bw-album-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.bw-album-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .2s ease;
}
.bw-album-thumb:hover {
    transform: scale(1.02);
}

/* VIDEO BLOCK */
.bw-video-section {
    padding: 40px 20px;
    background: #fdfaf9;
    text-align: center;
}
.bw-video-frame {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* INVITATION LETTER */
.bw-letter-section {
    padding: 40px 24px;
    background: #fffbfa;
    text-align: center;
}
.bw-letter-quote {
    font-family: var(--bw-serif);
    font-size: 18px;
    font-style: italic;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
}
.bw-letter-sig {
    font-family: var(--bw-script);
    font-size: 34px;
    color: var(--bw-primary);
}

/* GUESTBOOK SECTION */
.bw-guestbook-section {
    padding: 40px 20px;
    background: #ffffff;
}
.bw-wish-card {
    background: #fdf2f4;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-left: 3px solid var(--bw-primary);
}
.bw-wish-author {
    font-size: 12px;
    font-weight: 700;
    color: var(--bw-wine);
}
.bw-wish-text {
    font-size: 13px;
    color: #374151;
    margin-top: 3px;
    line-height: 1.4;
}
.bw-wish-form {
    margin-top: 16px;
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e5e7eb;
}

/* LUCKY MONEY / BANKING QR SECTION */
.bw-gift-section {
    padding: 40px 20px;
    background: #fff8f9;
    text-align: center;
}
.bw-bank-cards-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 440px;
    margin: 0 auto;
}
.bw-bank-card {
    background: #ffffff;
    border: 1px solid #f7d6dd;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(166, 63, 88, 0.05);
}
.bw-bank-qr-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin: 8px auto 10px;
    border: 1px solid #f1f3f5;
    background: #ffffff;
}
.bw-bank-details {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}
.bw-bank-name {
    font-weight: 700;
    color: var(--bw-wine);
}
.bw-account-number {
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 4px 0;
}
.bw-copy-btn {
    border: 1px solid #e5d5d8;
    background: #fff0f3;
    color: var(--bw-wine);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 6px;
}

/* FOOTER SECTION */
.bw-footer-section {
    padding: 40px 20px 60px;
    background: #232226;
    color: #ffffff;
    text-align: center;
}
.bw-footer-sig {
    font-family: var(--bw-serif);
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 6px;
}
.bw-footer-thanks {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}
.bw-footer-brand {
    font-size: 11px;
    letter-spacing: 2px;
    color: #d1d5db;
    text-transform: uppercase;
}

/* FLOATING ACTION BUTTON (FAB - BOTTOM RIGHT) */
.bw-fab {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bw-red);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(216, 74, 86, 0.4);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 70;
    transition: transform .2s ease, background .2s ease;
}
.bw-fab svg { width: 22px; height: 22px; }
.bw-fab:hover {
    transform: scale(1.1);
    background: var(--bw-red-hover);
}

/* MODALS (PREVIEW & SHARE) */
.bw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 20px;
}
.bw-modal-backdrop.open {
    display: grid;
}
.bw-modal-box {
    background: #ffffff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    animation: bwModalPop .25s ease-out;
}
@keyframes bwModalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.bw-modal-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--bw-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}
.bw-modal-title {
    font-family: var(--bw-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--bw-wine);
}
.bw-modal-body {
    padding: 20px;
}

/* SHARE MODAL ELEMENTS */
.bw-share-link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.bw-share-qr-wrap {
    text-align: center;
    padding: 16px;
    background: #fdfafb;
    border-radius: 12px;
    border: 1px solid #fae3e7;
    margin-bottom: 20px;
}
.bw-share-qr-canvas {
    width: 180px;
    height: 180px;
    margin: 0 auto 10px;
    display: block;
}
.bw-social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.bw-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.bw-social-fb { background: #1877f2; }
.bw-social-zalo { background: #0068ff; }

/* TOAST NOTIFICATION */
.bw-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.bw-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
    .bw-sidebar-nav {
        width: 70px;
        min-width: 70px;
    }
    .bw-nav-item span {
        display: none;
    }
    .bw-nav-item {
        justify-content: center;
        padding: 14px 0;
    }
    .bw-drawer {
        left: 70px;
        width: calc(100vw - 70px);
    }
    .bw-device-switcher {
        display: none;
    }
    .bw-preview-container.mode-desktop {
        width: 100%;
    }
}
