/* ==================== Base Styles ==================== */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --bg-light: #f7fafc;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== Page Transition ==================== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

.page-transition.active {
    transform: scaleY(1);
    transform-origin: top;
}

/* ==================== Home Section ==================== */
.home-section {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-light);
}

.hero {
    position: relative;
    height: auto;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 1rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 100%;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.title-main {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.2rem;
    animation: fadeIn 1s ease 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ==================== Mood Grid ==================== */
.mood-grid {
    padding: 5rem 2rem;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mood-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mood-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.mood-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mood-btn:hover::before {
    opacity: 0.05;
}

.mood-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.mood-btn:active {
    transform: translateY(-4px) scale(0.98);
}

.mood-icon {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}

.mood-btn:hover .mood-icon {
    transform: scale(1.2) rotate(5deg);
}

.mood-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.mood-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* ==================== Gallery Section (Fullscreen) ==================== */
.gallery-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: block;
    opacity: 1;
}

.fullscreen-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==================== Carousel Slides (Fade In/Out) ==================== */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Top Header Bar ==================== */
.carousel-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mood-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.current-mood-icon {
    font-size: 1.5rem;
}

.current-mood-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
}

.slide-counter {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn svg {
    width: 18px;
    height: 18px;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.refresh-btn svg {
    width: 18px;
    height: 18px;
}

.refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(76, 175, 80, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(76, 175, 80, 0.4);
    transform: scale(1.1);
}

.download-btn:active {
    transform: scale(0.95);
}

.download-btn:disabled {
    background: rgba(150, 150, 150, 0.2);
    cursor: not-allowed;
    transform: none;
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

/* ==================== Navigation Buttons ==================== */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-left {
    left: 1rem;
}

.carousel-nav-right {
    right: 1rem;
}

/* ==================== Thumbnail Dots ==================== */
.thumbnail-dots {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 100;
    padding: 0 1rem;
    max-width: 100%;
    overflow: hidden;
    justify-content: center;
}

.thumbnail-dots::-webkit-scrollbar {
    display: none;
}

.thumbnail-dots {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
}

.thumbnail-dot.active {
    width: 24px;
    min-width: 24px;
    border-radius: 4px;
    background: var(--white);
}

/* ==================== Thumbnail Bar ==================== */
.thumbnail-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    overflow-x: auto;
    z-index: 99;
}

.thumbnail-bar::-webkit-scrollbar {
    height: 0;
    display: none;
}

.thumbnail-bar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-item {
    flex: 0 0 50px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    opacity: 0.7;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--white);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Music Control ==================== */
.music-control {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.music-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.volume-slider {
    width: 80px;
}

.volume-slider input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
}

.volume-slider input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    border: none;
}

/* ==================== Loading State ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 3000;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* ==================== Error Message ==================== */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.retry-btn {
    padding: 0.75rem 2rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.retry-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ==================== Footer ==================== */
.footer {
    text-align: center;
    padding: 2rem;
    padding-bottom: 5rem;
    background: var(--white);
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.footer-legal a {
    color: #999;
}

.footer-legal a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-legal span {
    color: #ddd;
}

/* ==================== Content Section for SEO ==================== */
.content-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 50vh;
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .mood-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }

    .mood-btn {
        padding: 1rem 0.5rem;
        min-height: 120px;
    }

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

    .mood-name {
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }

    .mood-desc {
        display: none;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-nav-left {
        left: 0.5rem;
    }

    .carousel-nav-right {
        right: 0.5rem;
    }

    .carousel-header {
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-left {
        order: 1;
    }

    .slide-counter {
        display: block;
        order: 3;
        width: 100%;
        text-align: center;
        font-size: 0.75rem;
    }

    .header-actions {
        order: 2;
        gap: 0.25rem;
    }

    .current-mood-icon {
        font-size: 1rem;
    }

    .current-mood-name {
        font-size: 0.75rem;
    }

    .back-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    .refresh-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    .download-btn {
        width: 32px;
        height: 32px;
    }

    .download-btn svg {
        width: 14px;
        height: 14px;
    }

    .thumbnail-dots {
        bottom: 70px;
    }

    .thumbnail-bar {
        height: 50px;
    }

    .thumbnail-item {
        flex: 0 0 40px;
        height: 30px;
    }

    .modal-content {
        max-width: 320px;
        padding: 1rem;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .footer {
        padding: 1.5rem 1rem;
        padding-bottom: 4.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .subtitle {
        font-size: 0.85rem;
    }

    .mood-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .mood-btn {
        padding: 0.75rem 0.5rem;
        min-height: 100px;
    }

    .mood-icon {
        font-size: 1.75rem;
    }

    .mood-name {
        font-size: 0.8rem;
    }

    .premium-badge,
    .free-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .thumbnail-bar {
        height: 45px;
    }

    .thumbnail-item {
        flex: 0 0 35px;
        height: 28px;
    }

    .pricing-card .price .amount {
        font-size: 1.75rem;
    }

    .features li {
        font-size: 0.75rem;
    }

/* Subscription Modal Mobile Fix */
    #subscriptionModal .modal-content,
    #subscriptionModal.modal-content {
        max-width: 98vw !important;
        width: 320px !important;
        padding: 1rem !important;
        margin: 0 auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    #subscriptionModal .pricing-card {
        padding: 0.5rem;
        text-align: center;
    }

    #subscriptionModal .pricing-card .price {
        display: flex !important;
        align-items: baseline !important;
        justify-content: center !important;
        gap: 4px !important;
        margin: 15px 0 !important;
        flex-wrap: wrap;
    }

    #subscriptionModal .pricing-card .currency {
        font-size: 1.2rem !important;
        font-weight: 600;
    }

    #subscriptionModal .pricing-card .amount {
        font-size: 2rem !important;
    }

    #subscriptionModal .pricing-card .period {
        font-size: 0.9rem !important;
    }

    #subscriptionModal .pricing-card .features {
        margin: 10px 0 !important;
        padding-left: 20px !important;
        text-align: left;
    }

    #subscriptionModal .pricing-card .features li {
        padding: 5px 0;
        font-size: 0.85rem;
    }

    #paypal-button-container {
        min-width: unset !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    #paypal-button-container > * {
        max-width: 100% !important;
    }

    .modal-header h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.3rem;
    }

    .modal-header p {
        font-size: 0.85rem;
        margin: 0;
    }
}

/* ==================== Locked Mood Button ==================== */
.mood-btn.locked {
    opacity: 1;
}

.mood-btn.paid-btn {
    position: relative;
    opacity: 1;
}

.mood-btn.paid-btn::after {
    content: '🔒';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.1rem;
}

.mood-btn.locked:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.mood-btn.locked:active {
    transform: translateY(-4px) scale(0.98);
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.premium-badge::before {
    content: '🔒';
    font-size: 0.65rem;
}

.free-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

.paid-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

.feedback-btn {
    background: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.feedback-btn:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.feedback-btn .mood-icon {
    font-size: 2.5rem;
}

/* ==================== Modal Styles ==================== */
.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex !important;
}
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 350px;
    width: 90%;
    position: relative;
    margin: auto;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 350px;
    width: 90%;
    position: relative !important;
    margin: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==================== Upgrade Float Button ==================== */
.upgrade-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.upgrade-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.timer-info {
    font-size: 0.85rem;
    opacity: 0.9;
}

.timer-info #timerDisplay {
    font-weight: 600;
}

.upgrade-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.paypal-form-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #0070ba;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.paypal-form-btn:hover {
    background: #005ea6;
}

.secure-note {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.75rem;
}

/* ==================== Pricing Card ==================== */
.pricing-card {
    text-align: center;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.period {
    font-size: 1rem;
    color: var(--text-light);
}

.features {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.paypal-container {
    margin: 1rem 0;
}

.paypal-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #0070ba;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.paypal-submit-btn:hover {
    background: #005ea6;
}

.paypal-submit-btn svg {
    width: 24px;
    height: 24px;
}

.test-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.test-btn:hover {
    background: #45a049;
}

.subscribe-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.success-animation {
    text-align: center;
    margin-bottom: 1rem;
}

.success-animation svg {
    width: 80px;
    height: 80px;
}

/* ==================== Footer ==================== */

.paypal-container {
    margin: 0.5rem 0;
    min-height: 40px;
    display: flex;
    justify-content: center;
}

.paypal-container iframe {
    max-width: 100% !important;
}

.test-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.test-btn:hover {
    background: #45a049;
}

.secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.secure-text svg {
    width: 16px;
    height: 16px;
}

/* ==================== Time Warning ==================== */
.time-remaining {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.time-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.time-circle span {
    font-size: 2.5rem;
    font-weight: 700;
}

.time-circle small {
    font-size: 0.875rem;
    opacity: 0.9;
}

.upgrade-cta {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ==================== Success Animation ==================== */
.success-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-animation svg {
    width: 80px;
    height: 80px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#successModal .modal-content h2 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

#successModal .modal-content p {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ==================== Hide PayPal Tagline ==================== */
.payment-form {
    position: relative;
    min-height: 50px;
}

/* Hide tagline text below PayPal button */
#paypal-button-container + div,
#paypal-button-container ~ div:not(#paypal-button-container) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
