/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #e6f3ff;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 375px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #4a5568;
}

.logo i {
    color: #667eea;
    font-size: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.currency-selector select {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #4a5568;
    outline: none;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero {
    padding: 100px 0 40px;
    text-align: center;
    color: #1a365d;
}

.country-flags {
    margin-bottom: 30px;
}

.country-flags h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 15px;
}

.flags-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 100%;
}

.flag {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    max-width: 12px;
    max-height: 12px;
}

.gift-cards-rate-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1a365d;
}

.flag-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    object-fit: cover;
    max-width: 8px;
    max-height: 8px;
}

.country-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #1a365d;
}

.country-code {
    color: #718096;
}

.calculate-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Download Buttons in Hero Section */
.hero .download-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero .download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
}

.hero .android-btn {
    background: #4CAF50;
    color: white;
}

.hero .android-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.hero .ios-btn {
    background: white;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.hero .ios-btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero .download-btn i {
    font-size: 16px;
}

/* News Section */
.news-section {
    background: white;
    padding: 30px 0;
    margin: 20px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.more-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.news-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.news-content p {
    font-size: 14px;
    opacity: 0.9;
}

.news-image {
    font-size: 40px;
    opacity: 0.8;
}

.gift-thumbnail {
    font-size: 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 8px;
    padding: 10px;
    display: inline-block;
}

/* Card Type Section */
.card-type-section {
    margin: 20px 0;
}

.card-type-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 15px;
}

.calculator-card {
    background: #1a365d;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
}

.calculator-icon {
    font-size: 24px;
    color: #e6f3ff;
}

.math-symbols {
    font-size: 20px;
    font-weight: 600;
    color: #e6f3ff;
}

.calculator-content span {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

/* Gift Cards Section */
.gift-cards-section {
    background: white;
    padding: 30px 0;
    margin: 20px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gift-cards-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.gift-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gift-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.gift-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.card-logo:nth-child(1) {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.card-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.rate {
    font-size: 14px;
    font-weight: 500;
}

.rate:contains("+") {
    color: #38a169;
}

.rate:contains("-") {
    color: #e53e3e;
}

.card-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.sell-btn {
    background: #2d3748;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sell-btn:hover {
    background: #4a5568;
    transform: scale(1.05);
}

/* Chart Section */
.chart-section {
    background: white;
    padding: 30px 0;
    margin: 20px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chart-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.chart-container {
    height: 200px;
    margin-bottom: 15px;
}

.chart-legend {
    display: flex;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
}

.legend-color {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 2px;
}

/* Referral Section */
.referral-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    margin: 20px 0;
    border-radius: 20px;
    color: white;
    text-align: center;
}

.referral-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.referral-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

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

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
}

.step p {
    font-size: 12px;
    opacity: 0.9;
}

.referral-code {
    margin-bottom: 20px;
}

.code-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.code {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
}

.copy-btn {
    background: #38a169;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.invite-btn {
    background: #38a169;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.invite-btn:hover {
    background: #2f855a;
    transform: translateY(-2px);
}

.credited-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.credited-amount span:first-child {
    font-size: 14px;
    opacity: 0.8;
}

.amount {
    font-size: 32px;
    font-weight: 700;
    color: #ffd700;
}

/* Download Section */
.download-section {
    background: white;
    padding: 40px 0;
    margin: 20px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.download-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.download-section p {
    color: #4a5568;
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn.android {
    background: #000;
}

.download-btn.ios {
    background: #000;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.download-btn i {
    font-size: 24px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-text span:first-child {
    font-size: 12px;
    opacity: 0.8;
}

.btn-text span:last-child {
    font-size: 16px;
    font-weight: 600;
}

/* Customer Service */
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1000;
}

.service-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.service-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Chat Modal */
.chat-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    height: 70vh;
    display: flex;
    flex-direction: column;
}

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

.chat-header {
    background: #667eea;
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.online-status {
    background: #38a169;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.message.agent {
    background: #f1f5f9;
    align-self: flex-start;
    color: #2d3748;
}

.message.user {
    background: #667eea;
    color: white;
    align-self: flex-end;
}

.message .time {
    font-size: 11px;
    opacity: 0.7;
    position: absolute;
    bottom: -20px;
    right: 0;
}

.chat-input {
    padding: 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e2e8f0;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.send-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a365d;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Pouchers Section */
.pouchers-section {
    background: white;
    padding: 40px 0;
    margin: 20px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pouchers-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 10px;
}

.pouchers-section p {
    color: #4a5568;
    margin-bottom: 30px;
}

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-screen {
    width: 200px;
    height: 300px;
    background: #f7fafc;
    border-radius: 20px;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #cbd5e0;
    border-radius: 2px;
}

.finance-interface {
    font-size: 60px;
    color: #38a169;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .referral-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .download-buttons {
        padding: 0 20px;
    }
}

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

.hero, .news-section, .calculator-section, .gift-cards-section, .chart-section, .referral-section, .download-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Download Buttons */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.android-btn {
    background: #4CAF50;
    color: white;
}

.android-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.ios-btn {
    background: white;
    color: #2d3748;
}

.ios-btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
