:root {
    --primary-color: #331a5c;
    --primary-light: #4a2a7f;
    --secondary-color: #f0f0f0;
    --text-color: #333;
    --light-text: #777;
    --message-bg: #f5f5f5;
    --message-user-bg: #e1d8f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 1000px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 85vh;
    justify-self: center;
}

/* Header Styles */ 
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 7vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}
.animation{
    width: 50px;
    height: 50px;
    background-position: center;
    
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon, .menu-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: var(--primary-light);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: var(--shadow);
    border-radius: 5px;
    z-index: 10000;
    margin-top: 5px;
    overflow-y: auto;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}



.nav-container {
    background-color: #ffffff;
    height: 50px;
    padding: 5px 5px;
    overflow-x: none;
    position: relative;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.nav-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.nav-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


.nav-tabs {
    display: flex;
    gap: 0;
    width: 100%;
    justify-content: space-around;
    padding: 5px;
}

.tab {
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    padding: 0px 10px 0px 10px;
    margin: 0px 10px 0px 10px; ;
    background-color: #ffffff;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    color: #331a5c;
    transition: all 0.3s ease;
    font-weight: 700;
    border: 1px solid #6f5697;


}

.tab:hover {
    background-color: #182229;
    color: #d1d7db;
}

.tab.active {
    background-color: #cdd5db;
}

/* .badge {
    background-color: #00a884;
    color: #111b21;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
} */


/* Messages Container */
.messages-container {
    padding: 10px;
    overflow-y: auto;
    background-color: #EFEFEF;
}

.message-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    width: 100%;
}

.message-row:hover .share-btn {
    opacity: 1;
}

.message-profile {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 50px); /* Adjusted to prevent overflow */
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 10px;
    flex-wrap: wrap;
}
.chitchat{
    display: flex;
    align-items: center;
    gap: 3px;
}
.message-sender {
    font-weight: bold;
    font-size: 0.55rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--light-text);
}

.message-content {
    background: var(--white);
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    width: 100%;
    word-break: break-word;
}

.message-text {
    margin-bottom: 5px;
    line-height: 1.4;
    font-size: 0.95rem;
    color: #333;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 5px;
    display: inline-block;
}

.hidden-text {
    display: none;
}

.comments-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.comment-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
    /* background-color: #e7dff3; */
    background-color: #EFEFEF;
    padding: 5px;
    border-radius: 10px;
}
.badge {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 600;
}

.share-btn {
    opacity: 0.7;
    background: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: opacity 0.2s;
    align-self: center;
    flex-shrink: 0;
    color: #666;
}
.share-btn:hover {
    opacity: 1;
    background: #f5f5f5;
}

.reactions-wrapper {
    position: relative;
    width: 100%;
}

.reactions-container {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    position: relative;
    width: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.reactions-container::-webkit-scrollbar {
    display: none;
}

.reaction-item {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 18px;
    padding: 5px 10px;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reaction-item:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.reaction-item.active {
    background: #e1d8f1;
    border-color: #8a2be2;
}

/* Tunnel effect - fade gradient on the right side */
.tunnel-effect {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #EFEFEF 100%);
    pointer-events: none;
    border-radius: 0 10px 10px 0;
    display: none;
}

/* Input Area */
form{
    position: fixed;
    bottom: 0;
    z-index: 1000;
    margin-top: 10px;
    /* height: 8vh; */
    width: 100%;
    max-width: 1000px;
    justify-self: center;
    
}
.input-container {
    padding: 15px 20px;
    background: var(--white);
    border-top: 1px solid #eee;
    align-items: center;
    gap: 10px;
}

.input-actions {
    display: flex;
    gap: 15px;
}

.input-actions i {
    font-size: 1.2rem;
    color: var(--light-text);
    cursor: pointer;
}

.message-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.message-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
    background: var(--secondary-color);
    padding-right: 50px;
}

.send-btn, .voice-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    transition: all 0.3s;
}

.send-btn {
    opacity: 0;
    transform: scale(0);
}

.voice-btn {
    opacity: 1;
    transform: scale(1);
}

.message-input:focus + .send-btn,
.message-input:not(:placeholder-shown) + .send-btn {
    opacity: 1;
    transform: scale(1);
}

.message-input:focus + .send-btn + .voice-btn,
.message-input:not(:placeholder-shown) + .send-btn + .voice-btn {
    opacity: 0;
    transform: scale(0);
}

/* Responsive Design */
@media (max-width: 900px) {
    .message-content-wrapper {
        max-width: 85%;
    }
}

@media (max-width: 600px) {
    .nav-container{
        height: 50px;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-content-wrapper {
        max-width: calc(100% - 45px);
    }

    .tunnel-effect{
        display: block;
    }
    
    header {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .message-row {
        gap: 10px;
    }
    
    .share-btn {
        opacity: 1;
    }
    
    .input-container {
        padding: 10px 15px;
    }
    .message-header {
        align-items: flex-start;
        gap: 5px;
    }
    
    .message-content {
        padding: 10px 12px;
    }
    
    .reaction-item {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .share-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .message-row {
        gap: 10px;
    }
    
    .message-content {
        padding: 8px 10px;
    }
    
    .message-text {
        font-size: 0.9rem;
    }
    
    .reactions-container {
        gap: 6px;
    }
    
    .reaction-item {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
}












.modal {
    /* Start as hidden but still in the render flow for transitions */
    display: block; /* Changed from 'none' */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    
    /* This is what we will transition */
    opacity: 0;
    
    /* Hide it from interaction while invisible */
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    /* Make it visible and interactive */
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

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

.modal-header {
    padding: 20px 25px;
    background: #331a5c;
    color: white;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close:hover {
    color: #EFEFEF;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding: 5px 3px; */
    background: #f5f7fa;
    border-radius: 12px;
    text-decoration: none;
    color: #331a5c;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.share-option:hover {
    background: white;
    border-color: #331a5c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-option i {
    font-size: 25px;
    margin-bottom: 10px;
}

.share-option span {
    font-weight: 600;
    font-size: 16px;
}

.download-option {
    grid-column: span 2;
    background: #4CAF50;
    color: white;
}

.download-option:hover {
    background: #3e8e41;
    border-color: #3e8e41;
    color: white;
}

@media (max-width: 600px) {
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .download-option {
        grid-column: span 1;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}

/* Hidden canvas for generating image */
.canvas-container {
    position: absolute;
    left: -9999px;
    top: -9999px;
}



.web-share-option {
    grid-column: span 2;
    background: #331a5c;
    color: white;
}

.web-share-option:hover {
    background: #4a2580;
    color: white;
}

/* Hide WhatsApp-specific option if Web Share is supported */
@media (min-width: 601px) {
    .web-share-supported .share-option[data-platform="whatsapp"] {
        display: none;
    }
}








.voice-modal {
    display: none;
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    z-index: 10000;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); }
    to { transform: translate(-50%, 0); }
}

.modal-header {
    background-color: #331a5c;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.filter-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    min-width: 160px;
}

.selected-filter {
    flex-grow: 1;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.recording-section {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mic-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.outer-circle, .inner-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #331a5c;
    opacity: 0.3;
}

.outer-circle {
    width: 100%;
    height: 100%;
    border-width: 3px;
}

.inner-circle {
    width: 80%;
    height: 80%;
    border-width: 2px;
}

.pulse {
    animation: pulse 2s infinite;
}

.pulse-delayed {
    animation: pulse 2s infinite 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.3; }
}

.mic-icon {
    background: #331a5c;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
}

.mic-icon:active {
    transform: scale(0.95);
}

.mic-icon.recording {
    background: #e74c3c;
    animation: recordingPulse 1s infinite;
}

@keyframes recordingPulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.visualization {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 10px;
}

.bar {
    width: 4px;
    background: #331a5c;
    border-radius: 2px;
    height: 20px;
    transition: height 0.1s;
}

.playback-section {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #EFEFEF;
}

.time-display {
    font-size: 0.9rem;
    color: #331a5c;
    font-weight: 500;
    min-width: 50px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-btn {
    background: #331a5c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.action-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.action-btn.playing {
    background: #e74c3c;
}

.vsend-btn {
    background: #331a5c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.send-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.send-btn:hover:not(:disabled) {
    background: #49257c;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 20px;
    background: white;
    width: calc(100% - 40px);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 2px 5px;
    border-bottom: 1px solid #EFEFEF;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.dropdown-item.selected {
    background: #EFEFEF;
    color: #331a5c;
    font-weight: 500;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.show {
    display: block;
}

.status-message {
    text-align: center;
    color: #331a5c;
    font-size: 0.9rem;
    margin-top: -10px;
    min-height: 20px;
}

.filter-processing {
    display: none;
    text-align: center;
    padding: 10px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #331a5c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



























/* Welcome Message Styles */
.welcome-features {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 1rem;
}

/* Success & CTA Styles */
.message-success-section {
    margin: 20px 0;
}

.success-card {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.success-message {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
}

.cta-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cta-features {
    margin: 20px 0;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
}

.cta-icon {
    font-size: 1.2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #4ECDC4;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    margin: 15px 0;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #44A08D;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}


.message-success-v2 {
    padding: 20px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 { width: 80px; height: 80px; top: 10%; left: 5%; animation-delay: 0s; }
.shape-2 { width: 120px; height: 120px; top: 60%; right: 10%; animation-delay: 2s; background: linear-gradient(45deg, #6C63FF, #FFE66D); }
.shape-3 { width: 60px; height: 60px; bottom: 20%; left: 15%; animation-delay: 4s; background: linear-gradient(45deg, #4ECDC4, #6C63FF); }
.shape-4 { width: 100px; height: 100px; top: 30%; right: 5%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Success Card */
.success-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

/* Animated Checkmark */
.checkmark-container {
    margin: 0 auto 25px;
    width: 80px;
    height: 80px;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4ECDC4;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
    stroke: white;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* Success Text */
.success-text-group {
    margin-bottom: 25px;
}

.success-headline {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.text-gradient {
    background: linear-gradient(135deg, #FFE66D, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emoji-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.success-subhead {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Viral CTA */
.viral-cta {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.cta-header {
    text-align: center;
    margin-bottom: 40px;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Preview Card */
.preview-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0;
    border: 2px solid #e9ecef;
}

.preview-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.preview-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    margin: 0 2px;
}

.preview-content {
    space-y: 10px;
}

.preview-message {
    margin-bottom: 10px;
}

.message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #333;
}

.preview-footer {
    text-align: center;
    margin-top: 15px;
}

.preview-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.benefit {
    text-align: center;
    padding: 25px 15px;
    background: #f8f9fa;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.benefit p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Mega CTA Button */
.mega-cta-button {
    display: block;
    background: linear-gradient(135deg, #FF6B6B, #6C63FF);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    padding: 25px 30px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.mega-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
    color: white;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.button-icon {
    font-size: 2rem;
}

.button-text {
    flex: 1;
    text-align: center;
}

.button-main {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.button-sub {
    font-size: 0.9rem;
    opacity: 0.9;
}

.button-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.mega-cta-button:hover .button-arrow {
    transform: translateX(5px);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.mega-cta-button:hover .button-glow {
    left: 100%;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.avatars-stack {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #6C63FF);
    border: 3px solid white;
    margin-left: -10px;
}

.avatar:nth-child(2) { background: linear-gradient(135deg, #4ECDC4, #44A08D); }
.avatar:nth-child(3) { background: linear-gradient(135deg, #FFE66D, #FFB347); }
.avatar:nth-child(4) { background: linear-gradient(135deg, #6C63FF, #8A84FF); }

.proof-text {
    color: #666;
    font-size: 0.9rem;
}

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(135deg, #FFE66D, #FFB347);
    color: #333;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.urgency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.urgency-icon {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .success-headline {
        font-size: 2rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .stats-bar {
        gap: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .button-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .social-proof {
        flex-direction: column;
        text-align: center;
    }
}



/* Messages Framework Styles */
.messages-wrapper {
    margin: 20px 0;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #6C63FF, #8A84FF);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #FFE66D, #FFB347);
    color: #333;
}