/* Landing Page Styles */

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

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
}

.landing-main {
    min-height: 100vh;
    background: #ffffff;
}

/* Hero Section */
.referral-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background-attachment: fixed;
}

.referral-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.95;
}

.referral-hero.bg-gradient-blue::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.referral-hero.bg-gradient-primary::before {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #00d4ff 100%);
}

.referral-hero.bg-gradient-green::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
}

.referral-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.referral-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.referral-hero-image {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

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

.influencer-label {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.referral-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.referral-hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.referral-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.referral-cta-buttons .btn {
    padding: 16px 40px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-cta-buttons .btn-light {
    background: white;
    color: #667eea;
}

.referral-cta-buttons .btn-light:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    background: #f8f9fa;
}

.referral-cta-buttons .btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.referral-cta-buttons .btn-outline-light:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* Description Section */
.referral-description {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0f4f8 0%, #e8f0f7 100%);
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
}

.referral-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.referral-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.referral-description h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
}

.referral-description .description-content {
    font-size: 1.2rem;
    color: #495057;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto;
}

.referral-description .description-content p {
    margin-bottom: 1.5rem;
}

.referral-description .description-content strong {
    color: #667eea;
    font-weight: 600;
}

/* Plans Section */
.referral-plans {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(40, 167, 69, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(32, 201, 151, 0.03) 0%, transparent 50%);
}

.referral-plans::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.referral-plans::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

/* Coupon Message Banner */
.coupon-message-banner {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coupon-message-banner.coupon-message-applied {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.coupon-message-banner.coupon-message-will-apply {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    color: #856404;
}

.coupon-message-banner.coupon-message-not-available {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    border: 2px solid #6c757d;
    color: #383d41;
}

.coupon-message-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

.coupon-message-content strong {
    font-weight: 700;
}

/* Discount badge on plan cards */
.plan-card-landing .discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Original price crossed out */
.plan-card-landing .original-price-crossed {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    text-decoration: line-through;
    text-decoration-color: #dc3545;
    text-decoration-thickness: 3px;
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Savings badge */
.plan-card-landing .savings-info {
    margin: 15px 0 10px;
    text-align: center
}

.plan-card-landing .save-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Discount warning message */
.plan-card-landing .discount-warning {
    font-size: 0.9rem;
    color: #856404;
    background: #fff3cd;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #ffc107;
    text-align: center;
    font-weight: 500;
}

.referral-plans::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.referral-plans h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
    text-align: center;
    color: #2c3e50;
    font-weight: 700;
}

/* Center single plan card */
.referral-plans .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* When there's only one plan, center it */
.referral-plans .row > div:only-child {
    flex: 0 0 auto;
    max-width: 400px;
    width: 100%;
}

/* Ensure proper spacing for single plan */
.referral-plans .row > div:only-child .plan-card-landing {
    margin: 0 auto;
}

.plan-card-landing {
    background: white;
    border-radius: 24px;
    padding: 50px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.plan-card-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.plan-card-landing:hover::before {
    transform: scaleX(1);
}

.plan-card-landing:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.plan-card-landing.popular {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
    box-shadow: 0 15px 50px rgba(40, 167, 69, 0.2);
}

.plan-card-landing.popular::before {
    background: linear-gradient(90deg, #28a745, #20c997);
    transform: scaleX(1);
}

.plan-card-landing.popular::after {
    content: "⭐ Most Popular";
    position: absolute;
    top: 20px;
    right: -55px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.plan-card-landing h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.plan-card-landing .plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 25px 0;
    line-height: 1;
}

.plan-card-landing.popular .plan-price {
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-card-landing .plan-price .currency {
    font-size: 1.8rem;
    vertical-align: top;
}

.plan-card-landing .plan-price .period {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
    text-align: end;
}

.plan-card-landing .plan-description {
    color: #6c757d;
    margin-bottom: 30px;
    flex-grow: 1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.plan-card-landing .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.plan-card-landing .plan-features li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: #495057;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.plan-card-landing .plan-features li:hover {
    transform: translateX(5px);
}

.plan-card-landing .plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.4rem;
    background: #f0fff4;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.plan-card-landing .btn-cta {
    width: 100%;
    padding: 18px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transition: all 0.3s ease;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.plan-card-landing .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.plan-card-landing.popular .btn-cta {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.plan-card-landing.popular .btn-cta:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .referral-hero {
        min-height: 90vh;
        padding: 100px 0 40px;
    }

    .referral-hero-image {
        margin-top: 2rem;
    }

    .referral-cta-buttons {
        flex-direction: column;
    }

    .referral-cta-buttons .btn {
        width: 100%;
    }

    .referral-description,
    .referral-plans {
        padding: 60px 0;
    }

    .plan-card-landing {
        margin-bottom: 2rem;
        padding: 35px 25px;
    }

    .plan-card-landing.popular::after {
        top: 15px;
        right: -30px;
        padding: 6px 40px;
        font-size: 0.75rem;
    }

    .plan-card-landing .original-price-crossed {
        font-size: 1.2rem;
    }

    .plan-card-landing .save-badge {
        font-size: 0.85rem;
        padding: 6px 15px;
    }

    .plan-card-landing .discount-warning {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .coupon-message-banner {
        padding: 15px 20px;
        margin-bottom: 2rem;
    }

    .coupon-message-content {
        font-size: 1rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Landing Header with Language Selector */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

/* Language Selector Button */
.language-selector-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    color: #2c3e50;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.language-selector-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.language-selector-btn img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    margin-right: 0.5rem;
    flex-shrink: 0;
    border-radius: 2px;
}

[dir="rtl"] .language-selector-btn img {
    margin-right: 0;
    margin-left: 0.5rem;
}

.language-selector-btn span {
    font-size: 0.95rem;
}

/* Language Option Styles (for modal) */
.language-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
}

.language-option * {
    pointer-events: none;
}

.language-option:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.language-option.active {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 500;
}

.language-option.active:hover {
    background-color: rgba(102, 126, 234, 0.15);
}

/* Language Modal Styles */
.modal-backdrop {
    z-index: 1040 !important;
}

#languageModal {
    z-index: 1060 !important;
    position: fixed !important;
}

#languageModal.show {
    z-index: 1060 !important;
    display: block !important;
}

#languageModal .modal-dialog {
    max-width: 400px;
    margin: 1.75rem auto;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

#languageModal .modal-content {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#languageModal .list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#languageModal .list-group-item:last-child {
    border-bottom: none;
}

#languageModal .list-group-item:hover {
    background-color: #f8f9fa;
}

#languageModal .language-flag {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

#languageModal .list-group-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

#languageModal .list-group-item .text-muted {
    font-size: 0.85rem;
}

#languageModal .list-group-item .fa-check {
    font-size: 1rem;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-header {
        padding: 0.75rem 0;
    }
    
    .language-selector-btn {
        padding: 0.5rem;
    }
    
    .language-selector-btn span {
        font-size: 0.85rem;
    }
    
    #languageModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    #languageModal .list-group-item {
        padding: 1rem;
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    font-size: 14px;
    background-color: #654193;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 50px;
    padding: 50px 0;
}

.footer .footer-info .logo {
    line-height: 0;
    margin-bottom: 25px;
}

.footer .footer-info .logo span {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer .footer-info p {
    font-size: 14px;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus {
    color: #fff;
    text-decoration: underline;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 10px;
    transition: 0.3s;
}

.footer .social-links a:hover {
    color: #fff;
    border-color: #fff;
}

.footer h4 {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px;
    color: #fff;
}

.footer .footer-links {
    margin-bottom: 30px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links ul i {
    padding-right: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 0;
}

.footer .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.footer .footer-links ul li:first-child {
    padding-top: 0;
}

.footer .footer-links ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    display: inline-block;
    line-height: 1;
}

.footer .footer-links ul a:hover {
    color: #fff;
}

.footer .footer-contact p {
    line-height: 26px;
}

.footer .copyright {
    text-align: center;
}

.footer .copyright p {
    margin-bottom: 0;
}



.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-policy-link {
    color: #f1c40f;
    text-decoration: underline;
}

.cookie-policy-link:hover {
    color: #e1b607;
}

.cookie-button {
    background-color: #f1c40f;
    color: #333;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

.cookie-button:hover {
    background-color: #e1b607;
}