/* =================================================================
   TIKTOK WEDDING INVITATION - PREMIUM UPGRADED STYLESHEET
   ================================================================= */

:root {
    --tiktok-red: #FE2C55;
    --tiktok-blue: #25F4EE;
    --accent-gold: #D4A574;
    --accent-rose: #E8A0BF;
    --font-family: 'Poppins', sans-serif;
    --script-family: 'Dancing Script', cursive;
    --app-height: 100vh;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

/* --- Basic Reset & Body Style --- */
html,
body {
    width: 100%;
    overflow-x: hidden;
    height: 100vh;
    height: var(--app-height);
    overflow-y: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-y: hidden;
}

/* --- Main Container for TikTok Feed --- */
.tiktok-container {
    height: var(--app-height);
    overflow-y: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.video {
    width: 100%;
    height: var(--app-height);
    position: relative;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

/* =================================================================
   UPGRADE 1: Floating Petal Particles
   ================================================================= */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -20px;
    opacity: 0;
    animation: petalFall linear infinite;
    pointer-events: none;
}

@keyframes petalFall {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) translateX(0);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) translateX(80px);
    }
}

/* =================================================================
   UPGRADE 2: Scroll Reveal Animations
   ================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

.reveal-delay-4 {
    transition-delay: 0.6s;
}

/* =================================================================
   UPGRADE 7: Visual Polish - Gradient Text & Pulse Animation
   ================================================================= */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-rose) 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(254, 44, 85, 0.3);
    }

    50% {
        box-shadow: 0 4px 30px rgba(254, 44, 85, 0.6), 0 0 60px rgba(254, 44, 85, 0.15);
    }
}

/* --- Section 1: Cover --- */
.cover-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

#cover-video .particles-container {
    z-index: 3;
}

.cover-content {
    text-align: center;
    color: white;
    padding: 20px;
    z-index: 10;
    margin-bottom: 50px;
    position: relative;
}

.cover-content p {
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.cover-content .dancing-script {
    font-family: var(--script-family);
    font-size: 2.8rem;
    margin: 10px 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.guest-wrapper {
    margin-top: 25px;
}

.guest-wrapper p {
    font-size: 0.85rem;
    opacity: 0.9;
}

#guest-name {
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

#open-invitation-btn {
    background: linear-gradient(135deg, var(--tiktok-red) 0%, #ff6b81 100%);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-glow 2s ease-in-out infinite;
    letter-spacing: 0.5px;
}

#open-invitation-btn:hover {
    transform: scale(1.08);
}

#open-invitation-btn i {
    margin-right: 8px;
}

/* =================================================================
   Section 2: Profile (UPGRADE 3: Glassmorphism)
   ================================================================= */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    gap: 15px;
}

.profile-card {
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
    overflow: hidden;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.6);
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 5px 25px rgba(254, 44, 85, 0.2), 0 0 15px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.profile-image:hover {
    box-shadow: 0 5px 30px rgba(254, 44, 85, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.profile-card h3 {
    font-size: 1.5rem;
    font-family: var(--script-family);
    margin: 0;
}

.profile-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 5px 0 10px 0;
}

.social-link {
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.3), rgba(254, 44, 85, 0.1));
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.75rem;
    transition: background 0.3s, transform 0.2s;
    border: 1px solid rgba(254, 44, 85, 0.3);
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.5), rgba(254, 44, 85, 0.2));
    transform: scale(1.05);
}

.social-link i {
    margin-right: 5px;
}

.profile-separator {
    font-family: var(--script-family);
    font-size: 2.8rem;
    align-self: center;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =================================================================
   Section 3: Ayat Al-Quran
   ================================================================= */
.quran-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 30px 25px;
    position: absolute;
    top: 0;
    left: 0;
}

.quran-ornament {
    font-size: 2.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.quran-arabic {
    font-size: 1.3rem;
    line-height: 2.2;
    direction: rtl;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.quran-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 20px 0;
    border-radius: 2px;
}

.quran-translation {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 380px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.quran-reference {
    margin-top: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Main Video Content Overlay --- */
.video-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- Sidebar for Actions --- */
.sidebar {
    position: absolute;
    right: 15px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
}

.action-item:active {
    transform: scale(0.9);
}

.action-item i {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: color 0.2s;
}

.action-item:hover i {
    color: var(--tiktok-red);
}

.action-item span {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}

/* --- Footer for User Info & Caption --- */
.video-footer {
    width: calc(100% - 70px);
}

.footer-text h3 {
    font-size: 1rem;
    font-weight: 700;
}

.footer-text .caption {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 5px;
}

.music-disc {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #222;
    border: 3px solid #444;
    cursor: pointer;
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.music-disc.spinning {
    animation-play-state: running;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =================================================================
   Section 4: Detail Acara (UPGRADE 3: Glassmorphism)
   ================================================================= */
.centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
}

.section-title {
    font-family: var(--script-family);
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.event-details {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.event-card,
.location-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.event-card:hover,
.location-card:hover {
    transform: translateY(-3px);
    border-color: rgba(254, 44, 85, 0.3);
}

.event-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--tiktok-red);
}

.event-card p,
.location-card p {
    font-size: 0.85rem;
    margin: 5px 0;
}

.map-button,
.calendar-button {
    display: inline-block;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.15), rgba(254, 44, 85, 0.05));
    border: 1px solid rgba(254, 44, 85, 0.4);
    color: white;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.map-button:hover,
.calendar-button:hover {
    background: var(--tiktok-red);
    border-color: var(--tiktok-red);
    transform: scale(1.05);
}

/* UPGRADE 7: Enhanced Countdown */
#countdown {
    display: flex;
    gap: 12px;
    margin: 25px 0;
}

#countdown div {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 12px;
    width: 60px;
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

#countdown div:hover {
    transform: scale(1.1);
}

#countdown span {
    font-size: 1.2rem;
    display: block;
    background: linear-gradient(135deg, #fff, var(--accent-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#countdown div::after {
    content: attr(data-text);
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* =================================================================
   Section: Dresscode
   ================================================================= */
.dresscode-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
    position: absolute;
    top: 0;
    left: 0;
}

.dresscode-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 340px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.dresscode-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 25px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 45px);
    gap: 20px 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.color-swatch::after {
    content: attr(data-name);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.color-swatch:hover::after {
    opacity: 1;
}

.dresscode-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.dresscode-note i {
    margin-right: 5px;
    color: var(--accent-gold);
}

/* --- Section 5: Video --- */
.video-slide-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play/Pause Overlay */
.play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.play-pause-overlay.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- Section 6: Gallery --- */
#gallery-section {
    overflow: hidden;
}

.gallery-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.7 !important;
}

.swiper-pagination-bullet-active {
    background: var(--tiktok-red) !important;
    opacity: 1 !important;
}

/* =================================================================
   UPGRADE 5: RSVP Section
   ================================================================= */
.rsvp-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
    position: absolute;
    top: 0;
    left: 0;
}

.rsvp-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px 25px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.rsvp-card h2 {
    font-family: var(--script-family);
    font-size: 2rem;
    margin-bottom: 5px;
}

.rsvp-card .rsvp-subtitle {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 20px;
}

.rsvp-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.rsvp-toggle label {
    flex: 1;
    padding: 12px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.rsvp-toggle input[type="radio"] {
    display: none;
}

.rsvp-toggle input[type="radio"]:checked+label {
    background: linear-gradient(135deg, var(--tiktok-red), #ff6b81);
    border-color: var(--tiktok-red);
    box-shadow: 0 4px 20px rgba(254, 44, 85, 0.3);
}

.rsvp-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.rsvp-input-group input,
.rsvp-input-group select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.rsvp-input-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.rsvp-input-group input:focus,
.rsvp-input-group select:focus {
    outline: none;
    border-color: var(--tiktok-red);
}

.rsvp-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tiktok-red), #ff6b81);
    color: white;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    letter-spacing: 0.5px;
}

.rsvp-submit-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(254, 44, 85, 0.4);
}

.rsvp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rsvp-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.rsvp-success.show {
    display: block;
}

.rsvp-success i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 10px;
    display: block;
}

.rsvp-success p {
    font-size: 0.95rem;
    color: #ccc;
}

/* --- Section 7: Closing --- */
.closing-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    width: 100%;
    height: 100%;
    padding: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.closing-content p {
    font-size: 0.9rem;
    max-width: 400px;
}

.closing-content h2 {
    font-family: var(--script-family);
    font-size: 1.5rem;
    margin: 15px 0;
}

.closing-content h1 {
    font-family: var(--script-family);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.closing-content .family {
    font-weight: 600;
}



/* =================================================================
   UPGRADE 6: Share Button
   ================================================================= */
.action-item .fa-share {
    font-size: 1.8rem;
}

/* --- Marquee --- */
.music-info-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    width: 65%;
}

.music-info-container .fa-music {
    margin-right: 8px;
    font-size: 0.8rem;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    flex-grow: 1;
}

.marquee p {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 12s linear infinite;
    font-size: 0.85rem;
    font-weight: 500;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Modals / Bottom Sheets --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background-color: #1c1c1c;
    width: 100%;
    max-width: 480px;
    max-height: 70vh;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #333;
    position: relative;
}

.modal-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.close-modal-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Comment Modal */
.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tiktok-red), #ff6b81);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.comment-content .name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #ccc;
}

.comment-content .text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.no-comments {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

.modal-footer {
    padding: 10px;
    border-top: 1px solid #333;
}

#greeting-form {
    display: flex;
    gap: 10px;
}

#greeting-form input,
#greeting-form textarea {
    width: 100%;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-family: var(--font-family);
    transition: border-color 0.3s;
}

#greeting-form input:focus,
#greeting-form textarea:focus {
    outline: none;
    border-color: var(--tiktok-red);
}

#greeting-form input {
    flex-basis: 30%;
}

#greeting-form textarea {
    flex-basis: 70%;
    resize: none;
    height: 42px;
}

#submit-greeting-btn {
    background: none;
    border: none;
    color: var(--tiktok-red);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

#submit-greeting-btn:hover {
    transform: scale(1.15);
}

/* Gift Modal */
.gift-intro {
    font-size: 0.85rem;
    color: #ccc;
    text-align: center;
    margin-bottom: 20px;
}

.bank-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.bank-card:hover {
    border-color: rgba(254, 44, 85, 0.3);
}

.bank-card img {
    height: 30px;
    margin-right: 15px;
    object-fit: contain;
}

.bank-info {
    flex-grow: 1;
}

.bank-info p {
    font-size: 0.75rem;
    color: #aaa;
}

.bank-info strong {
    font-size: 1rem;
    color: white;
}

.bank-info span {
    font-size: 0.75rem;
    color: #ccc;
    display: block;
}

.copy-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background-color: var(--tiktok-red);
    border-color: var(--tiktok-red);
}

#copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--tiktok-red);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#copy-notification.show {
    opacity: 1;
}

/* Love Story Modal */
.timeline {
    position: relative;
    padding-left: 25px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--tiktok-red), var(--accent-rose));
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--tiktok-red);
    transition: transform 0.3s, background-color 0.3s;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    background-color: var(--tiktok-red);
}

.timeline-item h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

.timeline-item p {
    font-size: 0.85rem;
    color: #ccc;
}

/* =================================================================
   RESPONSIVE: Mobile Adjustments
   ================================================================= */
#profile-section {
    background-size: cover !important;
    background-position: center !important;
}

@media (max-width: 480px) {
    .profile-container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .profile-card {
        padding: 20px 15px;
        width: 100%;
        max-width: 280px;
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }

    .profile-card h3 {
        font-size: 1.2rem;
    }

    .profile-card p {
        font-size: 0.78rem;
    }

    .profile-separator {
        font-size: 2rem;
    }

    .social-link {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}