:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Landing Page */
.landing-screen {
    min-height: 100vh;
}

.landing-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.language-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(37, 99, 235, 0.1);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.header-nav a:hover {
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: white;
}

/* Hero section specific outline button - white border on dark background */
.hero-section .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    transition: all 0.3s ease;
}

.hero-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

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

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

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

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

/* FX Rates Section */
.fx-rates-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.fx-rates-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.fx-rates-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.fx-rates-header .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.fx-rates-header .section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.fx-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.fx-rate-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fx-rate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

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

.fx-rate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.fx-rate-card.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.fx-rate-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.fx-rate-flag {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.fx-rate-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fx-rate-country {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.fx-rate-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.fx-rate-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.fx-rate-trend {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.fx-rate-trend.up {
    color: var(--success-color);
}

.fx-rate-trend.down {
    color: var(--danger-color);
}

.fx-rates-footer {
    text-align: center;
    position: relative;
    z-index: 1;
}

.fx-rates-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Features Section */
.features-section {
    padding: 100px 20px;
    background: var(--bg-primary);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Countries Section */
.countries-section {
    padding: 100px 20px;
    background: var(--bg-primary);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.country-card {
    background: var(--bg-secondary);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s;
}

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

.country-flag {
    font-size: 4rem;
    margin-bottom: 15px;
}

.country-card h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.country-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Footer */
.landing-footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.125rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-modal-content {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.auth-modal-close:hover {
    color: var(--text-primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 25px;
    font-size: 1.75rem;
    font-weight: 600;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 25px;
    font-size: 1.75rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* App Screen */
.app-screen {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

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

.header-content h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: var(--bg-secondary);
}

/* Navigation */
.app-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.nav-btn {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
}

.view h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.balance-card h2 {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.balance-currencies {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.wallet-status {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.action-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-btn .icon {
    font-size: 2rem;
}

.add-funds-section {
    margin-bottom: 30px;
}

.recent-transactions-section h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Forms */
.form-card {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.form-help {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Transaction Summary */
.transaction-summary {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.highlight {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.exchange-rate-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.currency-rate-display {
    margin-top: 10px;
    padding: 12px;
    background: rgba(37, 99, 235, 0.08);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.currency-rate-display strong {
    color: var(--text-primary);
}

/* Recipient Info */
.recipient-info {
    margin-top: 10px;
    padding: 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    color: var(--success-color);
    font-size: 0.875rem;
}

/* Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: 600;
    margin-bottom: 5px;
}

.transaction-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-size: 1.25rem;
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--danger-color);
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Requests */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.request-item {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

/* Card Display */
.card-display {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.virtual-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
}

.card-number {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

/* QR Code */
.qr-code-display {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 20px;
    text-align: center;
}

.qr-code {
    width: 250px;
    height: 250px;
    margin: 20px auto;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 15px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Pending Requests */
.pending-requests-section {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .header-nav {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .header-nav a {
        display: none;
    }

    .header-nav a:nth-child(-n+4) {
        display: none; /* Hide navigation links on mobile */
    }

    .language-switcher {
        order: -1;
    }

    .hero-section {
        padding: 60px 20px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }

    .hero-stats {
        gap: 20px;
        flex-direction: column;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .fx-rates-section {
        padding: 60px 20px;
    }

    .fx-rates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rate-comparison-widget {
        padding: 25px 20px;
        margin-top: 40px;
    }

    .comparison-table {
        grid-template-columns: 1fr;
    }

    .comparison-row.header {
        display: none;
    }

    .comparison-row.remitfi-row,
    .comparison-row.competitor-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }

    .comparison-cell {
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .comparison-cell:first-child {
        font-weight: 700;
        border-bottom: none;
    }

    .features-section {
        padding: 60px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px;
    }

    .how-it-works-section {
        padding: 60px 20px;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .countries-section {
        padding: 60px 20px;
    }

    .countries-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .savings-calculator-section {
        padding: 60px 20px;
    }

    .calculator-input {
        padding: 20px;
    }

    .calculator-comparison {
        flex-direction: column;
        gap: 20px;
    }

    .comparison-card {
        min-width: 100%;
    }

    .comparison-vs {
        padding: 15px 0;
        transform: rotate(90deg);
        width: 50px;
        margin: 0 auto;
    }

    .calculator-savings {
        padding: 25px;
    }

    .savings-amount {
        font-size: 2rem;
    }

    .speed-comparison-section {
        padding: 60px 20px;
    }

    .speed-comparison-container {
        flex-direction: column;
        gap: 20px;
    }

    .speed-card {
        min-width: 100%;
        padding: 25px;
    }

    .testimonials-section {
        padding: 60px 20px;
    }

    .testimonials-carousel {
        max-width: 100%;
    }

    .testimonial-card {
        padding: 25px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .money-map-section {
        padding: 60px 20px;
    }

    .map-countries {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .map-country-card {
        padding: 25px;
    }

    .country-flag-large {
        font-size: 3rem;
    }

    .map-info {
        padding: 25px;
        min-height: auto;
    }

    .map-rate {
        font-size: 2rem;
    }

    .virtual-card-section {
        padding: 60px 20px;
    }

    .virtual-card-container {
        flex-direction: column;
        gap: 40px;
    }

    .card-mockup-wrapper {
        min-width: 100%;
    }

    .virtual-card-mockup {
        max-width: 100%;
        padding: 25px;
    }

    .card-number {
        font-size: 1.25rem;
        gap: 10px;
        margin-bottom: 30px;
    }

    .card-number-group {
        font-size: 1.25rem;
    }

    .virtual-card-features {
        min-width: 100%;
        max-width: 100%;
    }

    .virtual-card-features .card-feature {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .landing-footer {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .auth-modal-content {
        padding: 25px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .balance-amount {
        font-size: 2rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .app-nav {
        flex-wrap: nowrap;
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 0.875rem;
    }

    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .landing-header {
        padding: 15px 20px;
    }

    .header-container {
        flex-direction: column;
        align-items: stretch;
    }

    .logo h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .header-nav {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .header-nav button {
        width: 100%;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

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

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .card-number {
        font-size: 0.875rem;
        gap: 6px;
        letter-spacing: 2px;
    }

    .card-number-group {
        font-size: 0.875rem;
    }

    .card-logo {
        font-size: 1rem;
        top: 20px;
        right: 20px;
    }

    .card-chip {
        width: 50px;
        height: 38px;
    }

    .virtual-card-mockup {
        padding: 20px;
    }

    .calculator-input input,
    .calculator-input select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        min-height: 44px; /* iOS touch target minimum */
        padding: 12px 24px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .fx-rate-card {
        padding: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .country-card {
        padding: 20px;
    }

    .map-country-card {
        padding: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .comparison-card {
        padding: 20px;
    }

    .speed-card {
        padding: 20px;
    }
}

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

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.5); }
    50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.8); }
}

.view.active {
    animation: fadeIn 0.3s ease;
}

/* Blockchain Canvas */
.blockchain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

/* Floating Particles */
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: float 10s infinite ease-in-out;
}

/* Transaction Notifications */
.transaction-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 320px;
    border: 1px solid var(--border-color);
}

.transaction-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-flag {
    font-size: 1.5rem;
}

.notification-text {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Savings Calculator */
.savings-calculator-section {
    padding: 100px 20px;
    background: var(--bg-primary);
}

.calculator-container {
    max-width: 900px;
    margin: 0 auto;
}

.calculator-input {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.calculator-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.calculator-input input,
.calculator-input select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.calculator-input input:focus,
.calculator-input select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calculator-comparison {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.comparison-card {
    flex: 1;
    min-width: 250px;
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.comparison-card.remitfi {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.comparison-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.comparison-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.comparison-badge.competitor-badge {
    background: var(--text-secondary);
}

.comparison-fee,
.comparison-total {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
    color: var(--text-primary);
}

.comparison-fee.competitor-fee,
.comparison-total.competitor-total {
    color: var(--text-secondary);
}

.comparison-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.comparison-vs {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0 20px;
}

.calculator-savings {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    color: white;
}

.savings-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.savings-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Speed Comparison */
.speed-comparison-section {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.speed-comparison-container {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.speed-card {
    flex: 1;
    min-width: 300px;
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.speed-card.remitfi-speed {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.speed-header {
    margin-bottom: 30px;
}

.speed-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.speed-timeline {
    background: var(--bg-secondary);
    height: 60px;
    border-radius: 8px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.timeline-bar {
    background: var(--text-secondary);
    height: 100%;
    border-radius: 8px;
    position: relative;
    transition: width 1s ease;
    width: 100%;
}

.timeline-bar.instant {
    background: var(--success-color);
    width: 100% !important;
}

.timeline-days {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.timeline-days.instant {
    color: white;
    left: 50%;
}

.speed-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.speed-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

/* Testimonials */
.testimonials-section {
    padding: 100px 20px;
    background: var(--bg-primary);
}

.testimonials-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.testimonial-rating {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.testimonial-nav-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Interactive Map */
.money-map-section {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-countries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.map-country-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.map-country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-country-card:hover::before {
    opacity: 1;
}

.map-country-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.map-country-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
}

.country-flag-large {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.map-country-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.country-currency {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.country-rate-placeholder {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.map-country-card.active .country-rate-placeholder {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-style: normal;
}

.map-info {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-info-content {
    max-width: 500px;
}

.map-info-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.map-rate {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.map-info-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Rate Comparison Widget */
.rate-comparison-widget {
    margin-top: 60px;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 15px;
}

.rate-comparison-widget h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.comparison-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-row {
    display: contents;
}

.comparison-row.header {
    background: var(--bg-primary);
}

.comparison-row.header .comparison-cell {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
}

.comparison-cell {
    padding: 20px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comparison-row.remitfi-row .comparison-cell {
    background: rgba(37, 99, 235, 0.05);
}

.best-badge {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 600;
}

.comparison-cell.competitor {
    color: var(--text-secondary);
}

/* Feature Card Animations */
.feature-card.animate-in {
    animation: fadeIn 0.6s ease forwards;
}

.feature-icon {
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Virtual Card Section */
.virtual-card-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.virtual-card-container {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.card-mockup-wrapper {
    flex: 1;
    min-width: 400px;
    perspective: 1000px;
}

.virtual-card-mockup {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1.586 / 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.virtual-card-mockup:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

.card-chip {
    width: 60px;
    height: 45px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 8px;
    position: relative;
    margin-bottom: 30px;
}

.card-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.card-logo {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

.card-number {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: white;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
}

.card-number-group {
    font-size: 1.5rem;
}

.card-details {
    margin-bottom: 20px;
}

.card-holder {
    color: white;
}

.card-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.card-value {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-visa-logo {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: auto;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.virtual-card-features {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.virtual-card-features .card-feature {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.virtual-card-features .feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.virtual-card-features .card-feature h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: white;
}

.virtual-card-features .card-feature p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

