/* ============================================
   Send Message Page - Christmas Theme
   Complete redesign with festive styling

   TABLE OF CONTENTS:
   1. CSS Variables & Base
   2. Animations
   3. Layout - Top Bar
   4. Layout - Main Content
   5. Components - Loading State
   6. Components - Step Header
   7. Components - Tree Preview
   8. Components - Gift Grid
   9. Components - Message Card V2
   10. Components - Message Card (Legacy)
   11. Components - Toggle
   12. Components - Buttons
   13. Components - Success State
   14. Components - Already Sent State
   15. Components - Error State
   16. Components - Download Steps
   17. Components - Toast
   18. Components - Report Modal
   19. Layout - Footer
   20. Responsive - Mobile First
   21. Responsive - Safe Area
   ============================================ */

/* ============================================
   1. CSS Variables & Base
   ============================================ */
:root {
    /* 🎨 Base Color Palette - Dark Theme */

    /* Primary Colors - Pure Black Base */
    --primary-navy: #000000;
    --primary-purple: #0a0a0a;
    --primary-slate: #111111;

    /* Default Theme Colors (will be overridden by theme classes) */
    --theme-primary: #FF1493;
    --theme-secondary: #FF6B35;
    --theme-tertiary: #FF8C00;
    --theme-glow: rgba(255, 20, 147, 0.4);
    --theme-glow-secondary: rgba(255, 107, 53, 0.3);

    /* Neutral Colors */
    --neutral-white: #FFFFFF;
    --neutral-gray-50: #1a1a1a;
    --neutral-gray-100: #222222;
    --neutral-gray-200: #333333;
    --neutral-gray-700: #888888;
    --neutral-gray-900: #ffffff;

    /* Gradients */
    --gradient-main: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #111111 100%);
    --gradient-card: linear-gradient(145deg, rgba(128, 128, 128, 0.08) 0%, rgba(128, 128, 128, 0.04) 100%);
    --gradient-button: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 50%, var(--theme-tertiary) 100%);
    --gradient-success: linear-gradient(135deg, #00ff88 0%, #00ffff 100%);

    /* Glassmorphism */
    --glass-bg: rgba(128, 128, 128, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px var(--theme-glow);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ============================================
   THEME: Valentine's Day - Pink & Red Romance
   ============================================ */
.theme-valentine {
    --theme-primary: #FF1493;       /* Deep Pink */
    --theme-secondary: #E91E63;     /* Pink */
    --theme-tertiary: #C2185B;      /* Dark Pink */
    --theme-glow: rgba(255, 20, 147, 0.45);
    --theme-glow-secondary: rgba(233, 30, 99, 0.35);
    --gradient-button: linear-gradient(135deg, #FF1493 0%, #E91E63 50%, #C2185B 100%);
}

/* ============================================
   THEME: Christmas - Red & Green Festive
   ============================================ */
.theme-christmas {
    --theme-primary: #D32F2F;       /* Christmas Red */
    --theme-secondary: #388E3C;     /* Christmas Green */
    --theme-tertiary: #FFD700;      /* Gold */
    --theme-glow: rgba(211, 47, 47, 0.45);
    --theme-glow-secondary: rgba(56, 142, 60, 0.35);
    --gradient-button: linear-gradient(135deg, #D32F2F 0%, #B71C1C 50%, #388E3C 100%);
}

/* ============================================
   THEME: Birthday - Colorful Party Vibes
   ============================================ */
.theme-birthday {
    --theme-primary: #9C27B0;       /* Purple */
    --theme-secondary: #FF9800;     /* Orange */
    --theme-tertiary: #00BCD4;      /* Cyan */
    --theme-glow: rgba(156, 39, 176, 0.45);
    --theme-glow-secondary: rgba(255, 152, 0, 0.35);
    --gradient-button: linear-gradient(135deg, #9C27B0 0%, #FF9800 50%, #00BCD4 100%);
}

/* ============================================
   THEME: NGL/Anonymous - Neon Dark
   ============================================ */
.theme-ngl,
.theme-anonymous {
    --theme-primary: #00FFFF;       /* Neon Cyan */
    --theme-secondary: #FF00FF;     /* Magenta */
    --theme-tertiary: #00FF88;      /* Neon Green */
    --theme-glow: rgba(0, 255, 255, 0.4);
    --theme-glow-secondary: rgba(255, 0, 255, 0.3);
    --gradient-button: linear-gradient(135deg, #00FFFF 0%, #FF00FF 50%, #00FF88 100%);
}

.send-message-page {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: #000000;
    padding: 0;
    margin: 0;
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.send-message-page * {
    box-sizing: border-box;
}

/* ============================================
   2. Animations
   ============================================ */

/* Snowfall */
@keyframes snowfall {
    0% { transform: translateY(-20px) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tree Bounce */
@keyframes treeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Spin */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Christmas Gradient */
@keyframes christmasGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Success Pop */
@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Confetti Fall */
@keyframes confettiFall {
    0% {
        top: 50%;
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        top: 150%;
        opacity: 0;
        transform: translateY(0) rotate(720deg);
    }
}

/* Christmas Glow */
@keyframes christmasGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(196, 30, 58, 0.3), 0 0 40px rgba(196, 30, 58, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(34, 139, 34, 0.3), 0 0 60px rgba(34, 139, 34, 0.1);
    }
}

/* Input Shake */
@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* Card Shake */
@keyframes cardShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px); }
    30% { transform: translateX(10px); }
    50% { transform: translateX(-8px); }
    70% { transform: translateX(8px); }
    90% { transform: translateX(-4px); }
}

/* Modal Slide In */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Slide Up Button - Fixed bottom CTA */
@keyframes slideUpButton {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Snowfall Effect
   ============================================ */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* ============================================
   3. Layout - Top Bar - Glassmorphism Design
   ============================================ */
.send-message-page .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left: Logo (Clickable) - Glassmorphism like Report Button */
.send-message-page .logo-mini {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0.85rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.send-message-page .logo-mini:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
}

.send-message-page .logo-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

/* Center: Report Problem */
.send-message-page .top-bar-center {
    display: flex;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

/* Right: Social Media Icons - Modern Design */
.send-message-page .social-icons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.send-message-page .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.send-message-page .social-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.send-message-page .social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.send-message-page .social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.send-message-page .social-icon:hover::before {
    opacity: 0.3;
}

.send-message-page .social-icon:active {
    transform: translateY(-1px) scale(1.02);
}

/* Report Button Styling - Modern Pill Design */
.send-message-page .report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.send-message-page .report-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.send-message-page .report-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.send-message-page .report-btn svg {
    opacity: 1;
    transition: transform 0.3s ease;
}

.send-message-page .report-btn:hover svg {
    transform: rotate(-10deg) scale(1.15);
}

/* ============================================
   4. Layout - Main Content
   ============================================ */
.send-message-page .main-content {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 95px 16px 24px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Step Sections */
.step-section {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.step-section.active {
    display: block;
}

/* ============================================
   5. Components - Loading State - Modern Design
   ============================================ */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: var(--spacing-lg);
}

.loading-tree {
    font-size: 96px;
    animation: treeBounce 1.2s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(42, 157, 143, 0.4));
    position: relative;
}

@keyframes treeBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid transparent;
    border-radius: 50%;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-main) border-box;
    animation: spin 1s linear infinite, pulseGlow 2s ease-in-out infinite;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-main);
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   6. Components - Step Header
   ============================================ */
.step-header-container {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.step-indicator-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    border-color: #c41e3a;
    color: #fff;
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.4);
}

.step-dot.completed {
    background: linear-gradient(135deg, #228b22, #006400);
    border-color: #228b22;
    color: #fff;
}

.step-line {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.step-line.active,
.step-line.completed {
    background: linear-gradient(90deg, #228b22, #c41e3a);
}

.back-step-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-step-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
    font-family: 'Nunito', 'Inter', sans-serif;
}

.section-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   7. Components - Tree Preview
   ============================================ */
.tree-preview-container {
    margin-bottom: 10px;
}

.tree-preview-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: christmasGlow 4s ease-in-out infinite;
}

.tree-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a, #ffd700, #228b22, #c41e3a);
    background-size: 300% 100%;
    animation: christmasGradient 3s ease infinite;
}

.tree-preview-card.small {
    padding: 10px;
}

.tree-preview-card.small .tree-preview-image {
    max-height: 100px;
}

.tree-preview-card.small .tree-topper-image {
    width: 32px;
    height: 32px;
    margin-bottom: -26px;
}

.tree-preview-card.small .tree-owner-name {
    font-size: 13px;
    margin-top: 6px;
}

.tree-with-topper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4px;
}

.tree-topper-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
    position: relative;
    z-index: 10;
    margin-bottom: -28px;
    filter: drop-shadow(0 2px 12px rgba(255, 215, 0, 0.6));
}

.tree-preview-image {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.tree-owner-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-top: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tree-owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   8. Components - Gift Grid
   ============================================ */
.gift-selection-container {
    margin-bottom: 12px;
}

/* Tap hint for gift selection */
.tap-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    border: 1px dashed rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    animation: tapHintPulse 2s ease-in-out infinite;
}

.tap-hint-icon {
    font-size: 20px;
    animation: tapBounce 1s ease-in-out infinite;
}

.tap-hint-text {
    color: #ffd700;
    font-size: 14px;
    font-weight: 600;
}

@keyframes tapHintPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

@keyframes tapBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Hide hint when gift is selected */
.tap-hint.hidden {
    display: none;
}

/* First gift pulse animation */
.gift-card.pulse-hint {
    animation: giftPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
}

@keyframes giftPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4-column grid */
    gap: 8px;
    max-height: none;
    overflow-y: visible;
    padding: 4px;
    padding-bottom: 180px; /* Extra space for fixed bottom button */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Gift category headers */
.gift-category-header {
    grid-column: 1 / -1;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 4px 4px;
    margin-top: 8px;
    text-align: center;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(230, 57, 70, 0.1));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gift-category-header.pro {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.gift-grid::-webkit-scrollbar {
    width: 6px;
}

.gift-grid::-webkit-scrollbar-track {
    background: transparent;
}

.gift-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.gift-card {
    aspect-ratio: 1;
    /* 🎁 NGL Style Gift Card - Dark Background */
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3px 3px 18px 3px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 20, 147, 0.1);
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Pro gift styling - Theme premium feel */
.gift-card[data-is-pro="true"] {
    background: rgba(128, 128, 128, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px var(--theme-glow-secondary);
}

.gift-card[data-is-pro="true"]:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 0 25px var(--theme-glow);
    transform: scale(1.05);
}

.gift-card:hover {
    /* ✨ Hover - Theme Highlight */
    background: rgba(128, 128, 128, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.gift-card.selected {
    /* ✨ Selected Gift - Theme Gradient Glow */
    background: rgba(128, 128, 128, 0.15);
    border-color: var(--theme-primary);
    border-width: 3px;
    box-shadow: 0 0 30px var(--theme-glow), 0 8px 25px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.gift-card.selected[data-is-pro="true"] {
    background: rgba(128, 128, 128, 0.18);
    border-color: var(--theme-secondary);
    box-shadow: 0 0 30px var(--theme-glow-secondary), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gift-card img {
    width: 100%;
    flex: 1;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
}

.gift-card .gift-name {
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    font-family: 'Nunito', 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    padding: 2px 6px;
    border-radius: 6px;
}

.gift-list .gift-card .gift-name {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    background: none;
    padding: 0;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.gift-selected-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 14px;
    height: 14px;
    background: #c41e3a;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.gift-selected-badge svg {
    width: 10px;
    height: 10px;
}

.gift-card.selected .gift-selected-badge {
    display: flex;
}

/* ============================================
   9. Components - Message Card V2 (Frontend Style)
   ============================================ */
.message-card-container {
    margin-bottom: 12px;
    margin-left: -4px;
    margin-right: -4px;
}

.message-card-v2 {
    position: relative;
    padding-top: 60px;
}

.message-card-v2.shake {
    animation: cardShake 0.5s ease;
}

.card-gift-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2A9D8F 0%, #1a7a6f 100%);
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(42, 157, 143, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.card-gift-circle img {
    width: 140%;
    height: 140%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.message-card-v2:hover .card-gift-circle {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 12px 40px rgba(42, 157, 143, 0.5);
}

.message-card-v2:hover .card-gift-circle img {
    transform: scale(1.05) rotate(5deg);
}

.card-body {
    /* 🎨 Liquid Glass Effect */
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    padding: 80px 20px 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.card-body > * {
    position: relative;
    z-index: 1;
}

/* Decorative strip at top of card - Hidden */
.decorative-strip-top {
    display: none;
}

.card-from-section {
    margin-bottom: 0;
}

.card-label {
    display: inline;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Required field indicator */
.field-required {
    font-size: 10px;
    color: #f87171;
    margin-left: 6px;
    font-weight: 500;
    animation: requiredPulse 2s ease-in-out infinite;
}

@keyframes requiredPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Message label row */
.message-label-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.card-from-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-profile-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.card-profile-icon svg {
    width: 12px;
    height: 12px;
}

.card-from-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Nunito', 'Inter', sans-serif;
    color: #ffffff !important;
    padding: 14px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-text-fill-color: #ffffff !important;
}

.card-from-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.card-from-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.4);
}

.card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 16px 0;
}

.card-message-section {
    margin-bottom: 8px;
}

.card-message-input {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 16px;
    font-family: 'Nunito', 'Inter', sans-serif;
    color: #ffffff !important;
    resize: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
    -webkit-text-fill-color: #ffffff !important;
}

.card-message-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.card-message-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.4);
}

.card-char-count {
    display: block;
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}

.card-sent-section {
    margin-bottom: 16px;
}

.card-sent-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 6px;
}

.card-sent-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.card-sent-date svg {
    color: #9ca3af;
}

.card-send-btn {
    width: 100%;
    background: linear-gradient(135deg, #E63946 0%, #F4A261 100%) !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border: none;
    border-radius: 14px;
    padding: 18px 24px;
    font-size: 1.15rem;
    font-weight: 800;
    font-family: 'Fredoka', 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    margin-top: 16px;
}

.card-send-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-send-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.5);
    filter: brightness(1.1);
}

.card-send-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.card-send-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.card-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto !important;
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

.card-send-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   10. Components - Message Card (Legacy)
   ============================================ */
.message-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 245, 0.95));
    border-radius: 24px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #c41e3a, #ffd700, #228b22);
}

.message-card-gift {
    width: 80px;
    height: 80px;
    margin: -30px auto 0;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    border-radius: 50%;
    padding: 12px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    border: 4px solid #fff;
}

.message-card-gift img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.message-card-content {
    padding: 20px 24px 24px;
}

.message-field {
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.field-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
    transition: all 0.2s ease;
}

.field-input:focus {
    outline: none;
    border-color: #c41e3a;
    background: #fff;
}

.field-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.field-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
    resize: vertical;
    transition: all 0.2s ease;
}

.field-textarea:focus {
    outline: none;
    border-color: #c41e3a;
    background: #fff;
}

.field-textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    margin-top: 6px;
}

.message-timestamp {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.timestamp-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timestamp-date {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
}

/* ============================================
   11. Components - Toggle
   ============================================ */
.toggle-option {
    margin-bottom: 12px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-label input {
    display: none;
}

.toggle-slider {
    width: 40px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.toggle-label input:checked + .toggle-slider {
    background: var(--gradient-button);
}

.toggle-label input:checked + .toggle-slider::after {
    left: 19px;
}

.toggle-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ============================================
   12. Components - Buttons - Modern Style
   ============================================ */
.primary-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-button);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Nunito', 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px var(--theme-glow);
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--theme-glow), 0 0 30px var(--theme-glow-secondary);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-btn.send-btn {
    background: var(--gradient-button);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.primary-btn.send-btn:hover:not(:disabled) {
    box-shadow: var(--shadow-lg), 0 0 35px rgba(59, 130, 246, 0.5);
}

.btn-loading {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   13. Components - Success State - Modern Design
   ============================================ */
.success-container {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.success-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
}

.success-icon {
    font-size: 80px;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 8px 30px rgba(230, 57, 70, 0.4));
}

@keyframes successPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    animation: confettiFall 2.5s ease-out forwards;
}

.confetti:nth-child(1) { background: #E63946; left: 20%; animation-delay: 0s; }
.confetti:nth-child(2) { background: #2A9D8F; left: 40%; animation-delay: 0.1s; }
.confetti:nth-child(3) { background: #F4A261; left: 60%; animation-delay: 0.2s; }
.confetti:nth-child(4) { background: #E63946; left: 80%; animation-delay: 0.3s; }
.confetti:nth-child(5) { background: #2A9D8F; left: 50%; animation-delay: 0.15s; }

.success-title {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #E63946 0%, #F4A261 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 var(--spacing-sm);
    font-family: 'Nunito', 'Inter', sans-serif;
    letter-spacing: -0.5px;
    text-shadow: none;
}

.success-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 var(--spacing-lg);
    font-weight: 500;
}

.success-summary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.summary-value {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

/* Tree Code Copy Section */
.tree-code-copy-section {
    margin-bottom: 20px;
}

.copy-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-align: center;
}

.tree-code-copy-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
}

.tree-code-display {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #2A9D8F;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    text-align: center;
    text-shadow: 0 0 10px rgba(42, 157, 143, 0.4);
}

.copy-tree-code-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #E63946 0%, #F4A261 100%);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-tree-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.copy-tree-code-btn:active {
    transform: translateY(0);
}

.copy-tree-code-btn svg {
    flex-shrink: 0;
}

.create-tree-cta {
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}

.create-tree-cta h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.create-tree-cta p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================
   14. Components - Already Sent State
   ============================================ */
.already-sent-container {
    text-align: center;
    padding: 10px 0;
}

.already-sent-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.already-sent-title {
    font-size: 20px;
    font-weight: 700;
    color: #2A9D8F;
    margin: 0 0 4px;
    text-shadow: 0 0 20px rgba(42, 157, 143, 0.5);
}

.already-sent-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px;
}

.already-sent-info {
    background: rgba(42, 157, 143, 0.1);
    border: 1px solid rgba(42, 157, 143, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.already-sent-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

/* Live Counter Section */
.live-counter-section {
    text-align: center;
    margin: 24px 0;
}

.counter-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.counter-number {
    font-size: 2rem;
    font-weight: 900;
    color: #F4A261;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    text-shadow: 0 4px 12px rgba(244, 162, 97, 0.5);
    animation: counterPulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes counterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Get Messages Button */
.get-messages-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 18px 32px;
    background: linear-gradient(135deg, #E63946 0%, #F4A261 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.4);
}

.get-messages-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(230, 57, 70, 0.5);
    filter: brightness(1.1);
}

.get-messages-btn:active {
    transform: translateY(-1px);
}

.get-messages-btn svg {
    flex-shrink: 0;
    stroke: #FFFFFF;
}

/* ============================================
   15. Components - Error State
   ============================================ */
.error-container {
    text-align: center;
    padding: 40px 16px;
}

.error-icon {
    font-size: 56px;
    margin-bottom: 14px;
}

.error-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.error-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px;
    line-height: 1.4;
}

/* ============================================
   16. Components - Download Steps
   ============================================ */
.download-steps {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
}

.download-steps.compact {
    padding: 14px;
}

.download-steps h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    text-align: center;
}

.download-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px;
    text-align: center;
}

.download-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.download-step-number {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: linear-gradient(135deg, #228b22, #006400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.download-step-content {
    flex: 1;
    padding-top: 2px;
}

.download-step-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.download-step-desc {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

.store-buttons-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-block;
    transition: all 0.2s ease;
}

.store-btn:hover {
    transform: scale(1.05);
}

.store-btn img {
    height: 36px;
    width: auto;
}

/* ============================================
   17. Components - Toast
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 30, 30, 0.98);
    padding: 14px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
}

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

.toast-error {
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(60, 20, 20, 0.95));
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Input Validation */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    animation: inputShake 0.4s ease;
}

.input-error::placeholder {
    color: rgba(239, 68, 68, 0.6);
}

/* ============================================
   18. Components - Report Modal
   ============================================ */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.report-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

.report-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a2a3a, #0f1a28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.report-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.report-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.report-modal-body {
    padding: 20px;
}

.report-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px;
}

.report-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.report-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.report-option input {
    display: none;
}

.report-option-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: transparent;
}

.report-option-check::after {
    content: '';
    width: 12px;
    height: 12px;
    background: transparent;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.report-option input:checked + .report-option-check {
    border-color: #22c55e;
    background: #22c55e;
}

.report-option input:checked + .report-option-check::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
}

.report-option input:checked ~ span:last-child {
    color: #fff;
}

.report-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.report-cancel-btn {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.report-submit-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.report-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

/* Report button as button element */
button.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

button.report-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

button.report-btn svg {
    opacity: 0.8;
}

/* ============================================
   19. Layout - Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 16px;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ============================================
   20. Responsive - Mobile First
   ============================================ */

/* Extra Small (400px+) */
@media (min-width: 400px) {
    .send-message-page .main-content {
        padding: 70px 16px 30px;
    }

    .section-title {
        font-size: 18px;
    }

    .tree-preview-image {
        max-height: 120px;
    }

    .tree-topper-image {
        width: 34px;
        height: 34px;
        margin-bottom: -26px;
    }

    .gift-grid {
        grid-template-columns: repeat(4, 1fr); /* 4-column on medium screens */
        gap: 8px;
        padding-bottom: 180px; /* Extra space for fixed bottom button */
    }

    .card-gift-circle {
        width: 110px;
        height: 110px;
        padding: 15px;
        border: 4px solid #ffffff;
    }

    .message-card-v2 {
        padding-top: 60px;
    }

    .card-body {
        padding: 85px 14px 18px; /* Adjusted for lower gift circle */
    }
}

/* Small (480px+) */
@media (min-width: 480px) {
    .send-message-page .main-content {
        padding: 80px 20px 36px;
    }

    .send-message-page .logo-text {
        display: inline;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .gift-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding-bottom: 180px; /* Extra space for fixed bottom button */
    }

    .tree-preview-image {
        max-height: 150px;
    }

    .tree-topper-image {
        width: 38px;
        height: 38px;
        margin-bottom: -28px;
    }

    .card-gift-circle {
        width: 130px;
        height: 130px;
        padding: 18px;
        border: 5px solid #ffffff;
    }

    .message-card-v2 {
        padding-top: 70px;
    }

    .card-body {
        padding: 95px 16px 20px; /* Adjusted for lower gift circle */
    }

    .card-message-input {
        min-height: 70px;
        font-size: 14px;
    }

    .store-btn img {
        height: 40px;
    }
}

/* Medium (768px+) */
@media (min-width: 768px) {
    .send-message-page .main-content {
        padding: 90px 28px 44px;
        max-width: 540px;
    }

    .send-message-page .top-bar {
        height: 64px;
        padding: 0 28px;
    }

    .send-message-page .report-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Large (1024px+) */
@media (min-width: 1024px) {
    .section-title {
        font-size: 22px;
    }

    .gift-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding-bottom: 180px; /* Extra space for fixed bottom button */
    }

    .tree-preview-image {
        max-height: 180px;
    }

    .tree-topper-image {
        width: 40px;
        height: 40px;
        margin-bottom: -30px;
    }

    .store-btn img {
        height: 44px;
    }
}

/* Medium-Small Mobile (380px - 480px) - Header Optimization */
@media (max-width: 480px) {
    .send-message-page .top-bar {
        padding: 0 0.6rem;
        height: 65px;
    }

    .send-message-page .logo-mini {
        padding: 0.45rem 0.7rem;
    }

    .send-message-page .logo-text {
        font-size: 0.7rem;
    }

    .send-message-page .report-btn {
        font-size: 0.7rem;
        padding: 0.45rem 0.7rem;
        gap: 0.35rem;
    }

    .send-message-page .report-btn svg {
        width: 13px;
        height: 13px;
    }

    .send-message-page .social-icon {
        width: 36px;
        height: 36px;
    }

    .send-message-page .social-icon svg {
        width: 17px;
        height: 17px;
    }
}

/* Small Mobile (< 380px) */
@media (max-width: 379px) {
    .send-message-page .main-content {
        padding: 60px 10px 20px;
    }

    .section-title {
        font-size: 15px;
    }

    .section-subtitle {
        font-size: 11px;
    }

    .gift-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        padding-bottom: 160px; /* Extra space for fixed bottom button (smaller on mobile) */
    }

    /* Mobile: Reduce bottom spacing to save screen space */
    .gift-next-container {
        bottom: 10px; /* Very close to bottom - into the empty space */
        bottom: calc(10px + env(safe-area-inset-bottom)); /* iOS safe area support */
        padding: 0.75rem 0.5rem;
        background: transparent; /* Keep clean background on mobile */
    }

    .gift-next-btn {
        padding: 0.75rem 1.5rem; /* Even smaller on mobile */
        font-size: 0.875rem; /* Smaller text on mobile */
        gap: 0.4rem;
    }

    .gift-card {
        padding: 4px;
        border-radius: 8px;
    }

    .tree-preview-image {
        max-height: 80px;
    }

    .tree-topper-image {
        width: 28px;
        height: 28px;
        margin-bottom: -24px;
    }

    .tree-preview-card {
        padding: 8px;
    }

    .tree-owner-name {
        font-size: 11px;
    }

    .card-gift-circle {
        width: 100px;
        height: 100px;
        padding: 14px;
        border: 4px solid #ffffff;
    }

    .message-card-v2 {
        padding-top: 55px;
    }

    .card-body {
        padding: 80px 12px 16px; /* Adjusted for lower gift circle */
    }

    .card-from-input {
        font-size: 13px;
    }

    .card-message-input {
        min-height: 50px;
        font-size: 12px;
        padding: 6px 8px;
    }

    .primary-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .card-send-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .success-title {
        font-size: 18px;
    }

    .store-btn img {
        height: 32px;
    }

    .step-dot {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .step-line {
        width: 16px;
    }

    .download-step-number {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: 10px;
    }

    .download-step-title {
        font-size: 11px;
    }

    .download-step-desc {
        font-size: 10px;
    }

    .send-message-page .top-bar {
        padding: 0 0.5rem;
        gap: 0.3rem;
        height: 60px;
    }

    .send-message-page .logo-mini {
        padding: 0.4rem 0.6rem;
    }

    .send-message-page .logo-text {
        font-size: 0.65rem;
    }

    .send-message-page .report-btn {
        font-size: 0.65rem;
        padding: 0.4rem 0.6rem;
        gap: 0.3rem;
    }

    .send-message-page .report-btn svg {
        width: 12px;
        height: 12px;
    }

    .send-message-page .social-icon {
        width: 34px;
        height: 34px;
    }

    .send-message-page .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   21. Responsive - Safe Area (iPhone X+)
   ============================================ */
@supports (padding-top: env(safe-area-inset-top)) {
    .send-message-page .top-bar {
        padding-top: env(safe-area-inset-top);
        height: calc(60px + env(safe-area-inset-top));
    }

    .send-message-page .main-content {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   22. New Design - Tree Display View
   ============================================ */

/* Tree Display View (Step 1) */
.tree-display-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1.5rem;
}

.tree-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 500px;
}

.tree-glow-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tree-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.5) 0%, rgba(42, 157, 143, 0.3) 40%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.tree-showcase .tree-with-topper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-showcase-image {
    width: 350px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(42, 157, 143, 0.6)) drop-shadow(0 0 60px rgba(230, 57, 70, 0.3));
    animation: treeGlow 3s ease-in-out infinite;
}

@keyframes treeGlow {
    0%, 100% {
        filter: drop-shadow(0 10px 40px rgba(42, 157, 143, 0.6)) drop-shadow(0 0 60px rgba(230, 57, 70, 0.3));
    }
    50% {
        filter: drop-shadow(0 10px 50px rgba(42, 157, 143, 0.8)) drop-shadow(0 0 80px rgba(230, 57, 70, 0.5));
    }
}

.tree-owner-name-large {
    font-size: 3rem;
    font-weight: 900;
    color: #FFFFFF;
    text-align: center;
    margin: 1.5rem 0;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 20px var(--theme-glow),
        0 0 40px var(--theme-glow-secondary);
    font-family: 'Nunito', 'Inter', sans-serif;
    letter-spacing: 1px;
}

/* Name glow animation removed for cleaner look */

.send-gift-btn {
    padding: 1.25rem 3rem;
    background: var(--gradient-button);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 40px var(--theme-glow),
                0 0 30px var(--theme-glow-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.send-gift-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 50px var(--theme-glow),
                0 0 50px var(--theme-glow-secondary);
    background-position: 100% 50%;
}

.send-gift-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Gift List View - Modern Card Design */
.gift-list-view {
    padding: var(--spacing-lg) var(--spacing-md);
}

.gift-list-container {
    margin-top: var(--spacing-lg);
}

.gift-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .gift-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
}

.gift-list .gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--gradient-card);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gift-list .gift-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-gold) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.gift-list .gift-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gift-list .gift-card:hover::before {
    opacity: 0.12;
}

.gift-list .gift-card.selected {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.25) 0%, rgba(244, 162, 97, 0.2) 100%);
    border-color: var(--primary-green);
    border-width: 3px;
    box-shadow: 0 6px 24px rgba(42, 157, 143, 0.5), 0 0 0 3px rgba(42, 157, 143, 0.2);
    transform: scale(1.05);
}

.gift-list .gift-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.gift-list .gift-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

.gift-list .gift-card.selected img {
    transform: scale(1.15);
}

.gift-list .gift-card .gift-name {
    display: none;
}

.gift-pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    font-size: 0.45rem;
    font-weight: 800;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.6), 0 0 8px rgba(255, 165, 0, 0.4);
    animation: proBadgePulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 215, 0, 0.8);
}

@keyframes proBadgePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 165, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 165, 0, 0.6);
        transform: scale(1.05);
    }
}

.gift-list .gift-card .gift-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gift-list .gift-card.selected .gift-check {
    background: #10b981;
    border-color: #10b981;
}

.gift-list .gift-card.selected .gift-check::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Gift Next Button - STICKY TO BOTTOM */
.gift-next-container {
    /* 🎯 UX BEST PRACTICE 2025: Fixed bottom button for always-visible CTA */
    position: fixed;
    bottom: 30px; /* Lower position - into the empty space */
    bottom: calc(30px + env(safe-area-inset-bottom)); /* iOS safe area support */
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem;
    padding-bottom: 0.5rem; /* Reduced padding */
    text-align: center;
    /* 🎁 Clean background - no blur, no gradient overlay */
    background: transparent;
    z-index: 100;
    /* Smooth entrance animation */
    animation: slideUpButton 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    /* 🎨 Modern Button Gradient */
    background: var(--gradient-button);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md),
                var(--shadow-glow),
                0 0 0 2px rgba(255, 255, 255, 0.08);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gift-next-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg),
                0 0 30px rgba(59, 130, 246, 0.5),
                0 0 0 4px rgba(255, 255, 255, 0.12);
    background-position: 100% 50%;
}

.gift-next-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
}

.gift-next-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    box-shadow: none;
}

.gift-next-btn svg {
    width: 16px; /* Smaller icon */
    height: 16px;
    transition: transform 0.3s ease;
}

.gift-next-btn:hover:not(:disabled) svg {
    transform: translateX(4px);
}

/* ============================================
   Tree Container with Gifts
   ============================================ */
.tree-container-with-gifts {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gifts-on-tree-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.gift-on-tree {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: giftBounceIn 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes giftBounceIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(0.2) rotate(-180deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -45%) scale(1.15) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

.gift-on-tree:hover {
    transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    filter: brightness(1.25);
}

.gift-on-tree img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 20px rgba(244, 162, 97, 0.4));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-on-tree:hover img {
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 35px rgba(244, 162, 97, 0.7))
            drop-shadow(0 0 50px rgba(230, 57, 70, 0.4));
    transform: scale(1.05);
}

.gift-sender-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    text-shadow:
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 6px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(42, 157, 143, 0.5);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 4px 8px;
    border-radius: 8px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Tree Pagination */
.tree-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-text {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    min-width: 80px;
    text-align: center;
}

@media (max-width: 768px) {
    .gift-on-tree img {
        width: 40px;
        height: 40px;
    }

    .gift-sender-name {
        font-size: 9px;
        max-width: 50px;
    }
}

/* ============================================
   23. New Design - Tree Code Input
   ============================================ */

.tree-code-input-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}

.tree-code-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-family: 'Fredoka', 'Nunito', sans-serif;
}

.tree-code-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.tree-code-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tree-code-label {
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.tree-code-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.tree-code-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: none;
    letter-spacing: normal;
}

.tree-code-input:focus {
    outline: none;
    border-color: #2A9D8F;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.15);
}

.find-tree-btn {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.find-tree-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.find-tree-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.12);
}

.find-tree-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tree-code-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-align: left;
}

.tree-code-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.tree-code-hint span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.tree-code-error {
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ============================================
   24. New Design - Platform Selection Circular
   ============================================ */

.platform-selection-circular {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.platform-icon-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
}

.platform-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(42, 157, 143, 0.6);
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(42, 157, 143, 0.3);
}

.platform-icon-btn svg {
    opacity: 0.9;
}

.platform-icon-btn:active {
    transform: scale(0.98);
}

/* Legacy platform selection (kept for backwards compatibility) */
.platform-selection {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.platform-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    min-width: 120px;
}

.platform-choice-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(42, 157, 143, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(42, 157, 143, 0.2);
}

.platform-choice-btn svg {
    opacity: 0.9;
}

.platform-choice-btn span {
    font-size: 0.875rem;
    font-weight: 600;
}

.platform-choice-btn:active {
    transform: translateY(-2px);
}

/* ============================================
   QR Code Container (hidden on mobile)
   ============================================ */

.qr-code-container {
    text-align: center;
    margin: 2rem 0 2.5rem;
}

.qr-code-container img {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 8px;
}

.qr-code-container p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Hide QR code on mobile */
@media (max-width: 768px) {
    .qr-code-container {
        display: none;
    }
}

/* ============================================
   Social Follow Section
   ============================================ */

.social-follow-section {
    text-align: center;
    margin: 2rem 0 2rem;
}

.social-follow-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-christmas);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.social-follow-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.social-follow-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-follow-btn {
    /* 🎄 Circular icon-only button with glassmorphism */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Hide text labels in icon-only buttons */
.social-follow-btn span {
    display: none;
}

.social-follow-btn svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.social-follow-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-follow-btn.instagram {
    background: rgba(255, 255, 255, 0.08);
}

.social-follow-btn.tiktok {
    background: rgba(255, 255, 255, 0.08);
}

.social-follow-btn.instagram:hover {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    border-color: transparent;
}

.social-follow-btn.tiktok:hover {
    background: linear-gradient(135deg, #00f2ea, #ff0050);
    border-color: transparent;
}

@media (max-width: 768px) {
    .social-follow-title {
        font-size: 1.5rem;
    }

    .social-follow-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .social-follow-buttons {
        gap: 1.25rem;
    }

    .social-follow-btn {
        width: 70px;
        height: 70px;
    }

    .social-follow-btn svg {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   Send Failed State
   ============================================ */

.send-failed-container {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.send-failed-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.send-failed-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.send-failed-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.error-details {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.error-message {
    color: #fca5a5;
    font-size: 0.875rem;
    margin: 0;
}

.send-failed-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.retry-send-btn,
.back-to-message-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.retry-send-btn {
    background: linear-gradient(135deg, #2A9D8F, #22c55e);
    color: white;
    box-shadow: 0 4px 16px rgba(42, 157, 143, 0.4);
}

.retry-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 157, 143, 0.5);
}

.back-to-message-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.back-to-message-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .send-failed-icon {
        font-size: 4rem;
    }

    .send-failed-title {
        font-size: 1.5rem;
    }

    .send-failed-subtitle {
        font-size: 1rem;
    }

    .retry-send-btn,
    .back-to-message-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   25. Card Color Picker
   ============================================ */

.card-color-picker {
    margin: 2rem 0 1.5rem;
}

.color-picker-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.color-options {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap; /* Single row - horizontal scroll */
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: hidden;
    padding: 0.5rem 0;
    /* Smooth scrolling */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.color-options::-webkit-scrollbar {
    height: 4px;
}

.color-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.color-options::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 2px;
}

.color-options::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    flex-shrink: 0; /* Prevent shrinking in horizontal scroll */
}

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

.color-option.selected {
    border-color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    position: relative;
}

.color-option.selected::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tree-showcase-image {
        width: 220px;
    }

    .tree-owner-name-large {
        font-size: 1.5rem;
    }

    .send-gift-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .tree-code-title {
        font-size: 1.5rem;
    }

    .platform-selection-circular {
        gap: 1.5rem;
    }

    .platform-icon-btn {
        width: 100px;
        height: 100px;
    }

    .platform-icon-btn svg {
        width: 48px;
        height: 48px;
    }

    .platform-selection {
        gap: 1rem;
    }

    .platform-choice-btn {
        padding: 1.25rem 1.5rem;
        min-width: 100px;
    }

    .platform-choice-btn svg {
        width: 40px;
        height: 40px;
    }

    .color-option {
        width: 44px;
        height: 44px;
    }
}
