/* ================= RESET & BASE ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= PUBLIC THEME (UNTUK DIA) ================= */
.public-body {
    background: #120822;
    color: #f8fafc;
    min-height: 100vh;
    position: relative;
}

#confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
}

/* Cahaya Latar Ambient */
.ambient-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.42;
}

.orb-1 { width: 380px; height: 380px; background: #9d174d; top: -100px; left: -100px; }
.orb-2 { width: 440px; height: 440px; background: #4c1d95; bottom: 8%; right: -120px; }
.orb-3 { width: 320px; height: 320px; background: #be185d; top: 45%; left: 25%; opacity: 0.24; }

/* Tombol Musik Mengambang */
.music-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 80;
    background: rgba(24, 11, 46, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.music-fab:hover {
    transform: translateY(-2px);
    background: rgba(244, 63, 94, 0.35);
}

/* ================= LAYAR PEMBUKA ================= */
.opening-screen {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.gift-box {
    width: 112px;
    height: 112px;
    margin-bottom: 28px;
    position: relative;
    cursor: pointer;
    animation: floatBounce 2s infinite ease-in-out;
}

.gift-lid {
    width: 124px;
    height: 26px;
    background: #fb7185;
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: -6px;
    z-index: 2;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.gift-body {
    width: 112px;
    height: 88px;
    background: #e11d48;
    border-radius: 0 0 12px 12px;
    position: absolute;
    top: 24px;
    left: 0;
}

.gift-ribbon {
    width: 20px;
    height: 112px;
    background: #fcd34d;
    position: absolute;
    left: 46px;
    top: 0;
    z-index: 3;
}

.opening-subtitle {
    color: #fbcfe8;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.opening-name {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 28px;
    background: linear-gradient(90deg, #fff, #fbcfe8, #fde68a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.02rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.84rem;
    border-radius: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(244, 63, 94, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.48);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-outline-dark {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn-outline-dark:hover {
    background: #f8fafc;
}

.full-width {
    width: 100%;
}

/* ================= SECTIONS & HERO ================= */
.main-experience {
    position: relative;
    z-index: 10;
}

.section {
    padding: 76px 0;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 60px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-grid:has(.hero-text:only-child) {
    grid-template-columns: 1fr;
    text-align: center;
}

.hero-grid:has(.hero-text:only-child) .hero-cta {
    justify-content: center;
}

.pill-badge {
    display: inline-block;
    background: rgba(253, 224, 71, 0.15);
    border: 1px solid rgba(253, 224, 71, 0.38);
    color: #fde047;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.16;
    margin-bottom: 18px;
}

.gradient-text {
    background: linear-gradient(90deg, #fda4af, #f472b6, #fde047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.age-tag {
    display: inline-block;
    font-size: 0.46em;
    vertical-align: middle;
    background: #f43f5e;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    padding: 5px 14px;
    border-radius: 999px;
    margin-left: 8px;
}

.hero-desc {
    font-size: 1.12rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    max-width: 540px;
}

.hero-grid:has(.hero-text:only-child) .hero-desc {
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-photo-frame {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 28px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-photo-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #cbd5e1;
    opacity: 0.75;
    animation: pulseDown 2s infinite;
}

@keyframes pulseDown {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

/* ================= GLASS PANEL & CAKE ================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    padding: 48px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.center-box {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 42px;
}

.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f472b6;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}

.section-sub {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.65;
}

.cake-stage {
    width: 170px;
    margin: 36px auto 18px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

.cake-stage:hover {
    transform: scale(1.05);
}

.candles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: -2px;
}

.candle {
    width: 10px;
    height: 34px;
    background: repeating-linear-gradient(45deg, #fff, #fff 4px, #f43f5e 4px, #f43f5e 8px);
    border-radius: 3px;
    position: relative;
}

.flame {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 16px;
    background: radial-gradient(circle, #fef08a 20%, #f59e0b 75%, #ef4444 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 14px #fde047, 0 0 26px #f59e0b;
    animation: flicker 0.4s infinite alternate;
    transition: all 0.35s ease;
}

.flame.out {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-3deg); }
    100% { transform: translateX(-50%) scale(1.12) rotate(3deg); }
}

.cake-top {
    width: 126px;
    height: 38px;
    background: #fda4af;
    margin: 0 auto;
    border-radius: 12px 12px 0 0;
    border-top: 8px solid #fff1f2;
}

.cake-bottom {
    width: 158px;
    height: 46px;
    background: #f43f5e;
    margin: 0 auto;
    border-radius: 8px 8px 4px 4px;
    border-top: 8px solid #fde047;
}

.cake-plate {
    width: 184px;
    height: 8px;
    background: #e2e8f0;
    margin: 0 auto;
    border-radius: 999px;
}

.candle-status {
    color: #fbcfe8;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ================= SURAT / LETTER ================= */
.letter-card {
    max-width: 740px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 48px 44px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.letter-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 18px;
}

.letter-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #f1f5f9;
    margin-bottom: 28px;
}

.letter-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #fde047;
}

.letter-footer span {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.letter-footer strong {
    font-size: 1.15rem;
}

/* ================= GALERI FOTO ================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.photo-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-6px);
}

.photo-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.photo-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-card:hover .photo-img-box img {
    transform: scale(1.06);
}

.photo-caption {
    padding: 16px 18px;
}

.photo-date {
    display: inline-block;
    font-size: 0.78rem;
    color: #f472b6;
    font-weight: 600;
    margin-bottom: 4px;
}

.photo-caption p {
    font-size: 0.95rem;
    color: #f8fafc;
}

/* ================= KARTU INTERAKTIF (FLIP) ================= */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.flip-card {
    height: 220px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.flip-front {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(139, 92, 246, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.tap-hint {
    font-size: 0.78rem;
    color: #fbcfe8;
    margin-bottom: 10px;
}

.flip-front h3 {
    font-size: 1.25rem;
}

.flip-back {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(253, 224, 71, 0.45);
    transform: rotateY(180deg);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* ================= SHARE STORY SOSMED ================= */
.share-panel {
    max-width: 880px;
    margin: 0 auto;
}

.share-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.share-preview-box {
    width: 280px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    background: #fdf2f8;
}

#story-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.share-info .section-sub {
    margin-bottom: 26px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.render-status {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #fde047;
    min-height: 22px;
}

/* ================= FORM BALASAN DIA ================= */
.reply-box {
    max-width: 720px;
}

.reply-head {
    margin-bottom: 28px;
}

.mood-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.mood-option input {
    display: none;
}

.mood-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mood-option span:hover {
    background: rgba(255, 255, 255, 0.13);
}

.mood-option input:checked + span {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    border-color: #fda4af;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.35);
}

.public-reply-form .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.public-reply-form label {
    display: block;
    font-size: 0.9rem;
    color: #fbcfe8;
    margin-bottom: 8px;
    font-weight: 600;
}

.public-reply-form input,
.public-reply-form textarea {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 7, 30, 0.6);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.public-reply-form input:focus,
.public-reply-form textarea:focus {
    outline: none;
    border-color: #f472b6;
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.2);
}

.reply-success-box {
    text-align: center;
    padding: 28px 16px;
}

.success-check {
    font-size: 3.2rem;
    margin-bottom: 10px;
}

.reply-success-box h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.reply-success-box p {
    color: #e2e8f0;
    margin-bottom: 18px;
}

/* ================= LIGHTBOX & FOOTER ================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 4, 16, 0.92);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: 16px;
    margin-bottom: 14px;
}

.lightbox-caption {
    color: #f8fafc;
    font-size: 1rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
}

.public-footer {
    text-align: center;
    padding: 48px 0 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-wish {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.footer-credit {
    font-size: 0.88rem;
    color: #94a3b8;
}

/* ================= ANIMASI SCROLL REVEAL ================= */
.reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(36px);
}

.reveal-zoom {
    transform: scale(0.92);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ================= ADMIN CMS STYLES ================= */
.admin-body {
    background: #f1f5f9;
    color: #0f172a;
    min-height: 100vh;
}

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    margin-bottom: 6px;
}

.muted {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #64748b;
    font-size: 0.88rem;
    text-decoration: none;
}

.admin-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.admin-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
}

.admin-tab {
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 10px;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.admin-tab.active {
    background: #f43f5e;
    color: #ffffff;
}

.tab-badge {
    background: rgba(0, 0, 0, 0.16);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.admin-nav-actions {
    display: flex;
    gap: 10px;
}

.admin-container {
    max-width: 1180px;
    margin: 30px auto;
    padding: 0 24px 64px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.admin-right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.admin-card h3 {
    font-size: 1.12rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-form label,
.login-box label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 14px;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.login-box input[type="password"],
.admin-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-form input[type="file"] {
    display: block;
    margin-top: 6px;
    font-size: 0.88rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.upload-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

.current-media {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 12px;
}

.thumb-preview {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.admin-gallery-list,
.admin-card-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-gallery-item,
.admin-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.admin-gallery-item img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.item-info strong,
.admin-mini-item strong {
    display: block;
    font-size: 0.92rem;
}

.item-info small,
.admin-mini-item p {
    font-size: 0.82rem;
    color: #64748b;
}

/* ================= HALAMAN BALASAN DIA ================= */
.replies-header {
    margin-bottom: 22px;
}

.replies-header h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.replies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
}

.reply-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reply-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.mood-pill {
    display: inline-block;
    background: #ffe4e6;
    color: #be123c;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.reply-sender {
    display: block;
    font-size: 1.05rem;
    color: #0f172a;
}

.reply-time {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}

.reply-message {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 18px;
    white-space: pre-line;
}

.reply-card-footer {
    display: flex;
    justify-content: flex-end;
}

.empty-state {
    text-align: center;
    padding: 56px 24px;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ================= RESPONSIVE MOBILE ================= */
@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .hero-grid,
    .admin-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-section {
        text-align: center;
        padding-top: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-photo-frame {
        max-width: 290px;
        transform: rotate(0deg);
    }

    .section {
        padding: 56px 0;
    }

    .glass-panel,
    .letter-card {
        padding: 30px 22px;
    }

    .share-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .share-preview-box {
        width: 240px;
    }

    .share-buttons {
        justify-content: center;
    }

    .mood-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-topbar {
        padding: 14px 18px;
    }
}