/* ==================================================================
   MODERN MOLLIE-COMPLIANT DONATION PAGE
   Clean, minimal design following Mollie's 2024 design guidelines
================================================================== */

/* Import Cairo font for Arabic text */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

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

:root {
    /* MODERN CLEAN COLORS - MOLLIE INSPIRED */
    --mollie-blue: #1e293b;
    --mollie-light-blue: #3b82f6;
    --mollie-green: #10b981;
    --mollie-orange: #f97316;
    --mollie-red: #ef4444;
    
    /* NEUTRAL PALETTE */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-muted: #cbd5e1;
    
    /* CLEAN BACKGROUNDS */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    
    /* BORDERS */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-focus: #3b82f6;
    
    /* SHADOWS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* SPACING */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* RADIUS */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* TYPOGRAPHY */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-family-arabic: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: #1e3c93;
    font-size: var(--font-size-base);
}

/* Arabic font styling - comprehensive application */
html[lang="ar"],
html[lang="ar"] *,
body[dir="rtl"],
body[dir="rtl"] *,
.arabic-text,
.arabic-text * {
    font-family: var(--font-family-arabic) !important;
}

/* Ensure Cairo font loads properly with fallback */
@font-face {
    font-family: 'Cairo Fallback';
    src: local('Tahoma'), local('Arial Unicode MS'), local('Lucida Grande');
    font-weight: 300 700;
    font-display: swap;
}

/* Additional Arabic text support */
html[lang="ar"] body,
html[lang="ar"] .org-info h1,
html[lang="ar"] .org-subtitle,
html[lang="ar"] .campaign-title,
html[lang="ar"] .campaign-description,
html[lang="ar"] .donation-header h2,
html[lang="ar"] .donation-subtitle,
html[lang="ar"] .section-title,
html[lang="ar"] .amount-value,
html[lang="ar"] .amount-description,
html[lang="ar"] .amount-tag,
html[lang="ar"] .form-label,
html[lang="ar"] .form-input,
html[lang="ar"] .payment-method-name,
html[lang="ar"] .summary-title,
html[lang="ar"] .summary-label,
html[lang="ar"] .summary-value,
html[lang="ar"] .trust-badge,
html[lang="ar"] .language-option,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
    font-family: var(--font-family-arabic) !important;
    font-weight: 400;
}

/* Stronger weights for headings in Arabic */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .campaign-title,
html[lang="ar"] .section-title {
    font-weight: 600 !important;
}

/* Test Mode Switch Styles */
.test-mode-switch {
    margin-right: var(--spacing-lg);
    display: flex;
    align-items: center;
}



/* ==================================================================
   HEADER - CLEAN AND MINIMAL
================================================================== */

.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.org-info h1 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.org-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.trust-badge i {
    color: var(--mollie-green);
}

/* ==================================================================
   MAIN CONTENT - MODERN LAYOUT
================================================================== */

.main-content {
    max-width: 800px;
    margin: var(--spacing-2xl) auto;
    padding: 0 var(--spacing-lg);
}

/* Hero Section Styles */
.hero-section {
    margin-bottom: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-content-simple {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
}

.hero-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.8) 0%,
        rgba(30, 41, 59, 0.6) 50%,
        rgba(30, 41, 59, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    color: var(--text-primary);
}

.hero-description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Responsive hero section */
@media (max-width: 768px) {
    .hero-image {
        height: 300px;
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-overlay {
        padding: var(--spacing-lg);
    }
}

.campaign-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.campaign-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-align: center !important;
}

.campaign-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center !important;
}

/* Campaign Separator Styles */
.campaign-separator {
    margin: var(--spacing-2xl) 0;
    position: relative;
}

.campaign-separator .separator-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mollie-blue), transparent);
    border-radius: 1px;
    margin: 0 var(--spacing-lg);
}

.campaign-separator .separator-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

/* Enhanced Campaign Banner with Floating Effect */
.campaign-separator .separator-content {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Add subtle particles effect behind the tag */
.campaign-tag-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 71, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(255, 107, 107, 0.08) 0%, transparent 50%);
    animation: particlesFloat 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes particlesFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.6;
    }
}

/* Special hover effect for the entire tag */
.campaign-tag-overlay:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.campaign-tag-overlay:hover .hashtag-symbol {
    animation-duration: 1s;
}

.campaign-tag-overlay:hover .campaign-urgency {
    animation-duration: 1s;
}

/* Add sparkle effect */
.hashtag-text::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -20px;
    font-size: 1.5rem;
    animation: sparkle 3s ease-in-out infinite;
    z-index: 10;
}

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

/* Overlay for better text readability */
.campaign-separator .separator-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.campaign-separator .separator-text {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

.campaign-separator .trend-word {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #ff6348);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: trendWordGlow 2s ease-in-out infinite alternate;
    position: relative;
}

.campaign-separator .trend-word::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(238, 90, 36, 0.3));
    border-radius: 10px;
    z-index: -1;
    filter: blur(10px);
}

@keyframes trendWordGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.5)) drop-shadow(0 0 10px rgba(238, 90, 36, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.8)) drop-shadow(0 0 20px rgba(238, 90, 36, 0.6));
    }
}

/* RTL Support for campaign separator */
[dir="rtl"] .campaign-separator .separator-content {
    flex-direction: row-reverse;
}

/* Mobile responsiveness for campaign separator */
@media (max-width: 768px) {
    .campaign-separator .separator-content {
        flex-direction: column;
        padding: var(--spacing-lg);
        min-height: 100px;
    }
    
    .campaign-separator .separator-text {
        font-size: var(--font-size-base);
        flex-direction: column;
    }
    
    .campaign-separator .trend-word {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .campaign-separator .trend-word {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }
}

/* ==================================================================
   DONATION FORM - MOLLIE COMPONENTS READY
================================================================== */

.donation-container {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: visible; /* Changed from hidden to visible to allow currency dropdown to show */
}

.donation-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 3rem 2rem;
    border-bottom: 3px solid var(--mollie-green);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donation-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mollie-green), var(--mollie-light-blue), var(--mollie-green));
}

.donation-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.donation-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.donation-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.donation-form {
    padding: 3rem 2rem;
    overflow: visible;
    background: var(--bg-white);
    position: relative;
}

/* Amount Selection - Modern Cards */
.amount-section {
    margin-bottom: var(--spacing-2xl);
    overflow: visible;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--mollie-green), var(--mollie-light-blue));
    border-radius: 2px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.amount-option {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.amount-option:hover {
    border-color: var(--mollie-light-blue);
    box-shadow: var(--shadow-md);
}

.amount-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: var(--shadow-md);
}

.amount-option.selected::after {
    content: '✓';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: #3b82f6;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.amount-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.amount-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

.amount-tags {
    margin-top: var(--spacing-sm);
}

.amount-tag {
    display: inline-block;
    background: var(--mollie-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Custom Amount Input */
.custom-amount {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.custom-amount-label {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: block;
}

.custom-amount-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    font-weight: 500;
    background: var(--bg-white);
    transition: all 0.2s ease;
    text-align: center;
}

.custom-amount-input:focus {
    outline: none;
    border-color: var(--mollie-light-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.custom-amount-input:valid {
    border-color: var(--mollie-green);
    background: rgba(16, 185, 129, 0.05);
}

.custom-amount-input::placeholder {
    color: var(--text-light);
    font-weight: normal;
}

/* Remove confirmation button styles since it's no longer used */

/* Donor Information */
.donor-section {
    margin-bottom: var(--spacing-2xl);
}

.anonymous-toggle {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Hide the checkbox visually but keep it accessible */
.toggle-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-medium);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toggle-switch.active {
    background: var(--mollie-light-blue);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

.toggle-label {
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

.donor-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    transition: opacity 0.3s ease;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.form-input {
    padding: var(--spacing-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    background: var(--bg-white);
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--mollie-light-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: var(--mollie-red);
}

.form-input.success {
    border-color: var(--mollie-green);
}

/* ==================================================================
   MOLLIE COMPONENTS INTEGRATION
================================================================== */

.payment-section {
    margin-bottom: var(--spacing-2xl);
}

.mollie-components-container {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.payment-method {
    padding: var(--spacing-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

.payment-method:hover {
    border-color: var(--mollie-light-blue);
    box-shadow: var(--shadow-sm);
}

.payment-method.selected {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
    transform: translateY(-1px);
}

.payment-method-icon {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    min-width: 32px !important;
}

.payment-method-icon img {
    max-width: 32px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    display: block !important;
}

.payment-method-icon i {
    font-size: 24px !important;
}

.payment-method-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-top: var(--spacing-xs) !important;
}

/* Mollie Components Styling */
.mollie-component {
    margin-bottom: var(--spacing-lg);
}

.mollie-component-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* The actual Mollie components will be styled by Mollie.js */
.mollie-component-input {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    background: var(--bg-white);
    transition: border-color 0.2s ease;
}

/* Mollie Components focus states */
.mollie-component-input.mollie-valid {
    border-color: var(--mollie-green);
}

.mollie-component-input.mollie-invalid {
    border-color: var(--mollie-red);
}

/* ==================================================================
   10. DONATION SUMMARY - ENHANCED DESIGN
================================================================== */

.donation-summary {
    background-color: #f8fafc; /* Light background for the whole component */
    border: 1px solid #e2e8f0;
    border-radius: 12px; /* Softer corners */
    padding: 0; /* Padding will be handled by inner containers */
    overflow: hidden; /* Ensures child borders don't poke out */
    transition: all 0.3s ease;
}

.donation-summary .summary-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donation-summary .summary-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.summary-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Quick summary bar at the top */
.summary-quick {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-quick .summary-amount,
.summary-quick .summary-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.summary-quick .amount-label,
.summary-quick .method-label {
    color: #475569;
    font-weight: 500;
}

.summary-quick .amount-value,
.summary-quick .method-value {
    font-weight: 600;
    color: #1e293b;
}

.summary-quick .method-value {
    color: #10b981; /* Green for the selected method */
}

/* Detailed breakdown rows */
.summary-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: #475569;
}

.summary-row span:last-child {
    font-weight: 500;
    color: #334155;
}

/* Total amount row */
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    margin-top: 0.5rem;
    border-top: 2px solid #e2e8f0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

/* Your Impact section */
.impact-display {
    background-color: #f0fdf4; /* Light green background */
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    color: #166534;
}

.impact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.impact-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* Trust indicators at the bottom */
.summary-trust {
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.trust-item i {
    color: #10b981; /* Green checkmark style */
    font-size: 1.1rem;
}

/* ==================================================================
   ACTION BUTTONS
================================================================== */

.donate-button {
    width: 100%;
    background: var(--mollie-light-blue);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.donate-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.donate-button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.donate-button.btn-disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.donate-button.btn-ready {
    background: var(--mollie-light-blue);
    cursor: pointer;
    transform: none;
    opacity: 1;
    animation: pulse-ready 2s infinite;
}

@keyframes pulse-ready {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    animation: fadeIn 0.2s ease-in-out;
}

.btn-primary.loading {
    background: linear-gradient(90deg, var(--mollie-blue) 0%, var(--mollie-light-blue) 50%, var(--mollie-blue) 100%);
    background-size: 200% 100%;
    animation: loading-gradient 1.5s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes loading-gradient {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mollie Branding */
.mollie-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.mollie-logo {
    width: 60px;
    height: 20px;
    opacity: 0.7;
}

/* ==================================================================
   RESPONSIVE DESIGN
================================================================== */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .main-content {
        padding: 0 var(--spacing-md);
        margin: var(--spacing-lg) auto;
    }
    
    .campaign-title {
        font-size: var(--font-size-2xl);
    }
    
    .donation-form {
        padding: var(--spacing-lg);
    }
    
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donor-fields {
        grid-template-columns: 1fr;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .amount-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    

}

/* ==================================================================
   ACCESSIBILITY
================================================================== */

/* Focus states for keyboard navigation */
button:focus,
input:focus,
select:focus,
.amount-option:focus,
.payment-method:focus {
    outline: 2px solid var(--mollie-light-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-light: #000000;
        --text-secondary: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 

/* ==================================================================
   LANGUAGE SWITCHER STYLES - DISABLED
   All language switcher styles moved to language-switcher-consolidated.css
================================================================== */

/* DISABLED - Language switcher styles now handled in consolidated CSS
.language-switcher {
    position: relative;
    margin-right: var(--spacing-md);
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.language-toggle:hover {
    border-color: var(--mollie-light-blue);
    box-shadow: var(--shadow-sm);
}

.language-option .flag {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}
*/

/* ==================================================================
   RTL SUPPORT FOR ARABIC
================================================================== */

/* RTL Text Direction */
[dir="rtl"] {
    text-align: right;
}

/* ==================================================================
   MODERN PAYMENT METHOD ICONS - REMOVED (back to original icons)
================================================================== */

/* .modern-payment-icon {
    position: relative;
    width: 40px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.modern-payment-icon .icon-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modern-payment-icon i,
.modern-payment-icon .brand-text {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    line-height: 1;
}

.modern-payment-icon i {
    font-size: 16px;
}

.modern-payment-icon .icon-chip {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 6px;
    background: #ffd700;
    border-radius: 1px;
    z-index: 3;
}

/* Credit Card Icon */
.credit-card-icon .icon-background {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

/* iDEAL Icon */
.ideal-icon .icon-background {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* PayPal Icon */
.paypal-icon .icon-background {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

/* Bancontact Icon */
.bancontact-icon .icon-background {
    background: linear-gradient(135deg, #ea580c, #f97316);
}

/* SOFORT Icon */
.sofort-icon .icon-background {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* EPS Icon */
.eps-icon .icon-background {
    background: linear-gradient(135deg, #059669, #10b981);
}

/* Giropay Icon */
.giropay-icon .icon-background {
    background: linear-gradient(135deg, #ea580c, #f97316);
}

/* KBC Icon */
.kbc-icon .icon-background {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

/* Belfius Icon */
.belfius-icon .icon-background {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

/* Bank Transfer Icon */
.bank-transfer-icon .icon-background {
    background: linear-gradient(135deg, #059669, #10b981);
}

/* Hover Effects */
.payment-method:hover .modern-payment-icon {
    transform: scale(1.1);
}

.payment-method:hover .modern-payment-icon .icon-background {
    filter: brightness(1.1);
}

/* Selected State */
.payment-method.selected .modern-payment-icon {
    transform: scale(1.05);
}

.payment-method.selected .modern-payment-icon .icon-background {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
} */

/* ==================================================================
   MOLLIE BADGES STYLING
================================================================== */

/* Mollie Badge in Trust Indicators */
.trust-item.mollie-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.trust-item.mollie-badge:hover {
    border-color: var(--mollie-light-blue);
    box-shadow: var(--shadow-sm);
}

.trust-item.mollie-badge img {
    max-height: 24px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.2s ease;
}

.trust-item.mollie-badge:hover img {
    filter: brightness(1);
}

/* Mollie Powered Badge in Footer */
.mollie-powered-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
}

.mollie-powered-badge img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.mollie-powered-badge:hover img {
    opacity: 1;
}

/* Mobile Responsive for Mollie Badges */
@media (max-width: 768px) {
    .trust-item.mollie-badge {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .trust-item.mollie-badge img {
        max-height: 20px;
    }
    
    .mollie-powered-badge img {
        max-height: 28px;
    }
}

[dir="rtl"] .header-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo-section {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
    margin-right: 0;
    margin-left: var(--spacing-md);
}

/* RTL language dropdown styles moved to language-switcher-consolidated.css */

[dir="rtl"] .campaign-header {
    text-align: right;
}

[dir="rtl"] .section-title {
    text-align: right;
}

[dir="rtl"] .amount-grid {
    direction: rtl;
}

[dir="rtl"] .amount-option {
    text-align: right;
}



[dir="rtl"] .toggle-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .donor-fields {
    direction: rtl;
}

[dir="rtl"] .form-group {
    text-align: right;
}

[dir="rtl"] .form-label {
    text-align: right;
}

[dir="rtl"] .payment-methods-grid {
    direction: rtl;
}

[dir="rtl"] .payment-method {
    text-align: right;
}

[dir="rtl"] .mollie-components-container {
    direction: rtl;
}

[dir="rtl"] .mollie-component-label {
    text-align: right;
}

[dir="rtl"] .summary-section {
    direction: rtl;
}

[dir="rtl"] .summary-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .trust-indicators {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .mollie-branding {
    direction: rtl;
    text-align: right;
}

/* RTL Specific Font for Arabic */
[dir="rtl"] body {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Helvetica Neue', sans-serif;
}

/* Fix input alignment for RTL */
[dir="rtl"] .form-input,
[dir="rtl"] .custom-amount-input {
    text-align: right;
}

[dir="rtl"] .form-input[type="email"],
[dir="rtl"] .form-input[type="tel"] {
    direction: ltr;
    text-align: left;
}

/* Adjust toggle switch for RTL */
[dir="rtl"] .toggle-switch::after {
    left: auto;
    right: 2px;
}

[dir="rtl"] .toggle-switch.active::after {
    transform: translateX(-20px);
}

/* Payment method icons stay LTR */
[dir="rtl"] .payment-method-icon {
    direction: ltr;
}

/* Card components direction fix */
[dir="rtl"] .mollie-component-input {
    direction: ltr;
    text-align: left;
}

/* Ensure custom amount input is always interactive */
.custom-amount {
    opacity: 1;
    pointer-events: auto !important;
}

.custom-amount .custom-amount-input {
    pointer-events: auto !important;
    background-color: white !important;
}

/* Legacy disabled state - kept for compatibility but overridden */
.custom-amount.disabled {
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: opacity 0.3s ease;
}

.custom-amount.disabled .custom-amount-label {
    color: inherit !important;
}



/* Styles for disabled preset amount buttons */
.amount-grid.disabled {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.amount-grid.disabled .amount-option {
    background-color: #f3f4f6; /* Grey out background */
    cursor: not-allowed;
}

/* =============================
   RTL ICON FIX - COMPREHENSIVE
============================= */

/* Ensure all FontAwesome icons display properly in RTL */
[dir="rtl"] .fas,
[dir="rtl"] .far,
[dir="rtl"] .fab,
[dir="rtl"] .fal,
[dir="rtl"] .fad,
[dir="rtl"] .fa {
    display: inline-block !important;
    direction: ltr !important;
}

/* Specific icon fixes for donation page */
[dir="rtl"] .payment-method i,
[dir="rtl"] .amount-btn i,
[dir="rtl"] .secure-indicators i,
[dir="rtl"] .step i,
[dir="rtl"] .contact-item i,
[dir="rtl"] .success-icon i,
[dir="rtl"] .language-switcher i {
    display: inline-block !important;
    direction: ltr !important;
    vertical-align: middle;
}

/* Fix chevron icons that should flip for RTL */
[dir="rtl"] .fa-chevron-right::before {
    content: "\f053"; /* fa-chevron-left */
}

[dir="rtl"] .fa-chevron-left::before {
    content: "\f054"; /* fa-chevron-right */
}

[dir="rtl"] .fa-arrow-right::before {
    content: "\f060"; /* fa-arrow-left */
}

[dir="rtl"] .fa-arrow-left::before {
    content: "\f061"; /* fa-arrow-right */
}

/* Ensure icons don't inherit RTL text direction */
html[lang="ar"] .fas,
html[lang="ar"] .far,
html[lang="ar"] .fab,
html[lang="ar"] .fal,
html[lang="ar"] .fad,
html[lang="ar"] .fa,
.arabic-text .fas,
.arabic-text .far,
.arabic-text .fab {
    direction: ltr !important;
    display: inline-block !important;
}

/* ==================================================================
   RESPONSIVE LANGUAGE SWITCHER
================================================================== */

@media (max-width: 768px) {
    /* Hide desktop language switcher on mobile */
    .language-switcher-container,
    .language-switcher,
    #languageSwitcher,
    #languageDropdown {
        display: none !important;
    }
    
    [dir="rtl"] .language-switcher {
        margin-left: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Language dropdown mobile styles moved to language-switcher-consolidated.css */
}

@media (max-width: 480px) {
    .language-toggle {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }
    
    .language-option {
        padding: var(--spacing-sm);
        font-size: 0.8rem;
    }
} 

/* ==================================================================
   HEADER STYLES - PROFESSIONAL DESIGN
================================================================== */

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    color: #1e293b;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center; /* Center by default for mobile */
    gap: 1rem;
    position: relative; /* Add relative positioning for proper layout */
}

/* Logo Section - Mobile First */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center; /* Center on mobile by default */
    text-align: center;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid rgba(16, 185, 129, 0.1);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.org-info {
    flex: 1;
}

.org-info h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.org-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
    color: #64748b;
}

/* Header Actions - Mobile First */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}



/* Language Switcher - Professional Design */
.language-switcher {
    position: relative;
}

.language-toggle {
    background: rgba(248, 250, 252, 0.95);
    border: 2px solid rgba(226, 232, 240, 0.6);
    color: #1e293b;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    min-width: 100px; /* Ensure minimum width on mobile */
}

.language-toggle:hover {
    background: white;
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.language-toggle i {
    font-size: 1rem;
    color: #10b981;
}

#currentLanguage {
    font-weight: 700;
    font-size: 0.85rem;
}

/* Language dropdown styles moved to language-switcher-consolidated.css */

/* Language option styles moved to language-switcher-consolidated.css */

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(16, 185, 129, 0.05);
    color: #10b981;
}

.language-option .flag {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.trust-badge {
    display: none; /* Hidden on mobile */
    align-items: center;
    gap: 0.5rem;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    color: #64748b;
}

.trust-badge i {
    color: #10b981;
}

/* Tablet Responsive Design (768px and up) */
@media (min-width: 768px) {
    .header {
        padding: 1.5rem 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(226, 232, 240, 0.6);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .header-container {
        padding: 0 2rem;
        flex-direction: row;
        position: relative !important;
        display: flex;
        align-items: center;
        justify-content: space-between; /* Space elements evenly */
        min-height: 80px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Show test mode switch on tablet and desktop */
    .test-mode-switch {
        display: block;
    }
    
    /* Logo section - inline layout */
    .logo-section {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        flex: none;
        order: 0;
        position: relative !important; /* Change to relative for inline layout */
        z-index: 1;
    }
    
    .logo {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #f8fafc, #e2e8f0);
        border: 2px solid rgba(16, 185, 129, 0.1);
        margin: 0 auto !important; /* Center the logo */
        display: block !important;
    }
    
    .org-info h1 {
        font-size: 1.5rem;
        color: #1e293b;
        text-align: left; /* Left align for inline layout */
        margin: 0;
    }
    
    .org-subtitle {
        font-size: 1rem;
        color: #64748b;
        text-align: left; /* Left align for inline layout */
        margin: 0;
    }
    
    /* Ensure campaign title is centered on desktop */
    .campaign-title {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 800px !important;
        display: block !important;
        width: 100% !important;
    }
    
    .campaign-description {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 600px !important;
    }
    
    /* Header actions - inline layout */
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        flex-wrap: nowrap !important;
        order: 2;
    }
    
    /* Ensure campaign header is properly centered */
    .campaign-header {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 1200px !important;
        padding: 0 2rem !important;
    }
    
    /* Language toggle less prominent on desktop */
    .language-toggle {
        min-width: 110px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        background: #ffffff !important; /* Pure white background */
        border: 2px solid #e5e7eb !important;
        color: #374151 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.2s ease !important;
    }
    
    .language-toggle:hover {
        background: #ffffff !important;
        border-color: #10b981 !important;
        color: #10b981 !important;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
    }
    
    /* Show trust badge on desktop */
    .trust-badge {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        background: rgba(248, 250, 252, 0.9) !important;
        border: 1px solid rgba(226, 232, 240, 0.6) !important;
        color: #64748b !important;
        padding: 0.5rem 1rem !important;
        border-radius: 0.5rem !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
    }

    /* Hide mobile language switcher on desktop */
    .mobile-language-switcher-container {
        display: none !important;
    }

    /* Ensure desktop language switcher dropdown is on top */
    .language-switcher-container {
        position: relative !important;
        z-index: 2000 !important;
    }
    .language-switcher-container .language-dropdown {
        /* Let the consolidated CSS handle dropdown styling */
        z-index: 2001 !important;
        overflow: visible !important; /* Changed from hidden to visible to show all language options */
        max-height: 400px !important; /* Ensure enough height for all languages */
        overflow-y: auto !important; /* Add scroll if needed */
    }
    
    .language-switcher-container .language-option {
        padding: 0.75rem 1rem !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        transition: background-color 0.2s ease !important;
    }
    
    .language-switcher-container .language-option:last-child {
        border-bottom: none !important;
    }
    
    .language-switcher-container .language-option:hover {
        background: #f8fafc !important;
    }
    
    .language-switcher-container .language-option .flag {
        font-size: 1.1rem !important;
        width: 1.5rem !important;
        text-align: center !important;
    }
}

/* Desktop Responsive Design (1024px and up) */
@media (min-width: 1024px) {
    .header-container {
        padding: 0 3rem;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .org-info h1 {
        font-size: 1.75rem;
    }
    
    .org-subtitle {
        font-size: 1.1rem;
    }
    
    .header-actions {
        gap: 1.5rem;
    }
}

/* RTL Support for Modern Payment Icons */
[dir="rtl"] .modern-payment-icon {
    direction: ltr; /* Keep icons LTR for consistency */
}

[dir="rtl"] .modern-payment-icon .brand-text {
    direction: ltr;
    text-align: center;
}

/* RTL Support for Header */
html[dir="rtl"] .header-container {
    direction: rtl;
}

html[dir="rtl"] .logo-section {
    direction: rtl;
}

html[dir="rtl"] .header-actions {
    right: auto;
    left: 1rem;
}

@media (min-width: 768px) {
    html[dir="rtl"] .header-actions {
        position: static;
    }
}

html[dir="rtl"] .language-toggle {
    direction: ltr; /* Keep language codes LTR */
}

 

/* ==================================================================
   REDESIGNED PRIVACY SELECTION CARDS
   ================================================================== */

.privacy-selection-section {
    margin: 25px 0;
    padding: 0;
}

.privacy-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    text-align: center;
}

.privacy-section-description {
    font-size: 0.95rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.privacy-options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.privacy-option-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.privacy-option-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.privacy-option-card.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.privacy-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.privacy-option-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.privacy-option-radio {
    position: relative;
    width: 24px;
    height: 24px;
}

.privacy-option-radio input[type="radio"] {
    display: none;
}

.radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.privacy-option-card.selected .radio-checkmark {
    border-color: #3b82f6;
    background: #3b82f6;
}

.privacy-option-card.selected .radio-checkmark:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
}

.privacy-option-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.privacy-option-content p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.privacy-option-card.selected .privacy-option-content h5 {
    color: #1d4ed8;
}

.privacy-option-card.selected .privacy-option-content p {
    color: #3b82f6;
}

/* Mobile responsiveness for privacy cards */
@media (max-width: 768px) {
    .privacy-selection-section {
        margin: 20px 0;
    }
    
    .privacy-section-title {
        font-size: 1.1rem;
    }
    
    .privacy-section-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .privacy-option-card {
        padding: 16px;
    }
    
    .privacy-option-icon {
        font-size: 1.6rem;
    }
    
    .privacy-option-content h5 {
        font-size: 1rem;
    }
    
    .privacy-option-content p {
        font-size: 0.85rem;
    }
}

/* RTL support for privacy cards */
[dir="rtl"] .privacy-selection-section {
    text-align: right;
}

[dir="rtl"] .privacy-option-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .privacy-option-content {
    text-align: right;
}

/* Enhanced custom amount field active state */
.custom-amount.active {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.custom-amount.active .custom-amount-label {
    color: #047857;
    font-weight: 600;
}

.custom-amount.active .custom-amount-input {
    border-color: #10b981;
    background: white;
}

.custom-amount.active .custom-amount-input:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* FIXED: Ensure custom amount reverts to normal state when not active */
.custom-amount:not(.active) {
    border: 1px solid #e5e7eb;
    background: transparent;
    padding: 10px;
    transition: all 0.3s ease;
}

.custom-amount:not(.active) .custom-amount-label {
    color: #374151;
    font-weight: normal;
}

.custom-amount:not(.active) .custom-amount-input {
    border-color: #d1d5db;
    background: white;
}

/* Enhanced amount option selection states */
.amount-option {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: white;
}

.amount-option:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.amount-option.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.amount-option.selected .amount-value {
    color: #047857;
    font-weight: bold;
}

.amount-option.selected .amount-description {
    color: #059669;
}

/* Privacy option cards - ensure mutual exclusivity */
.privacy-option-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.privacy-option-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.privacy-option-card.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

/* FIXED: Ensure only one privacy option appears selected */
.privacy-option-card:not(.selected) {
    border-color: #e5e7eb;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.privacy-option-card:not(.selected) .privacy-option-content h5 {
    color: #1f2937;
}

.privacy-option-card:not(.selected) .privacy-option-content p {
    color: #6b7280;
}

.privacy-option-card:not(.selected) .radio-checkmark {
    border-color: #d1d5db;
    background: white;
}

.privacy-option-card.selected .privacy-option-content h5 {
    color: #047857;
}

.privacy-option-card.selected .privacy-option-content p {
    color: #059669;
}

.privacy-option-card.selected .radio-checkmark {
    border-color: #10b981;
    background: #10b981;
}

.privacy-option-card.selected .radio-checkmark:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
}

/* Selection state management - prevent multiple active states */
.amount-grid:has(.amount-option.selected) ~ .custom-amount.active {
    /* If a preset amount is selected, don't show custom as active */
    border-color: #e5e7eb !important;
    background: transparent !important;
}

.custom-amount.active ~ .amount-grid .amount-option.selected {
    /* If custom amount is active, don't show preset as selected */
    border-color: #e5e7eb !important;
    background: white !important;
}

/* Visual feedback for selection conflicts */
.selection-conflict {
    animation: conflictPulse 0.6s ease-in-out;
}

@keyframes conflictPulse {
    0%, 100% { border-color: #e5e7eb; }
    50% { border-color: #f59e0b; }
}

/* Hide old toggle elements */
.anonymous-toggle,
.toggle-container,
.anonymous-choice-group {
    display: none !important;
}

/* Section Separator Styles */
.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-medium), transparent);
}

.separator-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
}

.separator-text i {
    color: var(--mollie-blue);
    font-size: 1rem;
}

/* Desktop spacing for Emergency title */
@media (min-width: 768px) {
    .campaign-header {
        margin-bottom: 3rem;
    }
    
    .campaign-title {
        margin-bottom: 1.5rem;
    }
    
    .campaign-description {
        margin-bottom: 2rem;
    }
}

/* Mobile adjustments for separator */
@media (max-width: 768px) {
    .section-separator {
        margin: 1.5rem 0;
        gap: 0.5rem;
    }
    
    .separator-text {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .separator-text i {
        font-size: 0.875rem;
    }
} 

/* Currency Switcher Styles */
.currency-switcher-container {
    position: relative;
    margin-bottom: 1rem;
    text-align: center; /* Center align the currency switcher */
}

.currency-switcher {
    display: inline-block; /* Make it inline-block to center properly */
    position: relative;
    text-align: left; /* Reset text align for inner content */
}

.currency-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.currency-toggle:hover {
    border-color: var(--mollie-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.currency-toggle i {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 0.25rem;
    min-width: 200px;
}

.currency-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* Force visibility for currency dropdown with active class */
.currency-switcher .currency-dropdown.active,
.currency-switcher-container .currency-dropdown.active,
.donation-container .currency-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 999999 !important;
}

/* Ultra-specific selector to override any other CSS */
body .donation-container .currency-switcher-container .currency-switcher .currency-dropdown.active,
html body .donation-container .currency-switcher-container .currency-switcher .currency-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 999999 !important;
    transform: translateY(0) !important;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: var(--bg-secondary);
}

.currency-option.selected {
    background: var(--mollie-blue);
    color: white;
}

.currency-option.selected .currency-flag,
.currency-option.selected .currency-name,
.currency-option.selected .currency-code {
    color: white;
}

.currency-flag {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.currency-name {
    flex: 1;
    font-weight: 500;
}

.currency-code {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 600;
}

.current-currency-flag {
    font-size: 1.125rem;
}

.current-currency-code {
    font-weight: 600;
    color: var(--text-primary);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .currency-switcher-container {
        margin-bottom: 1rem;
    }
    
    .currency-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .currency-dropdown {
        min-width: 180px;
    }
    
    .currency-option {
        padding: 0.5rem 0.75rem;
    }
    
    .currency-flag {
        font-size: 1rem;
    }
    
    .currency-name {
        font-size: 0.875rem;
    }
    
    .currency-code {
        font-size: 0.75rem;
    }
}

/* RTL Support for currency switcher */
[dir="rtl"] .currency-toggle {
    flex-direction: row-reverse;
}

[dir="rtl"] .currency-option {
    flex-direction: row-reverse;
}

[dir="rtl"] .currency-name {
    text-align: right;
}

/* Currency switcher integration with amount section */
.amount-section .currency-switcher-container {
    margin-bottom: 1rem;
}

/* Enhanced currency switcher for better UX */
.currency-switcher {
    --currency-switcher-bg: var(--bg-white);
    --currency-switcher-border: var(--border-medium);
    --currency-switcher-shadow: var(--shadow-sm);
    --currency-switcher-hover-shadow: var(--shadow-md);
    --currency-switcher-active-bg: var(--mollie-blue);
    --currency-switcher-active-color: white;
}

.currency-switcher:hover {
    --currency-switcher-border: var(--mollie-blue);
}

/* Animation for currency changes */
.amount-value {
    transition: all 0.3s ease;
}

.amount-value.updating {
    animation: currency-update 0.6s ease;
}

@keyframes currency-update {
    0% {
        transform: scale(1);
        color: var(--text-primary);
    }
    50% {
        transform: scale(1.05);
        color: var(--mollie-blue);
    }
    100% {
        transform: scale(1);
        color: var(--text-primary);
    }
}

/* Currency switcher focus states for accessibility */
.currency-toggle:focus {
    outline: 2px solid var(--mollie-blue);
    outline-offset: 2px;
}

.currency-option:focus {
    outline: 2px solid var(--mollie-blue);
    outline-offset: -2px;
}

/* Currency switcher loading state */
.currency-switcher.loading .currency-toggle {
    opacity: 0.7;
    pointer-events: none;
}

.currency-switcher.loading .currency-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.5rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid var(--mollie-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

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

/* Keep language codes LTR */
html[lang="ar"] .language-code {
    direction: ltr; /* Keep language codes LTR */
}



/* Force phone numbers and contact values to display LTR in RTL layouts */
html[lang="ar"] .contact-value,
html[lang="ar"] .phone-number,
html[lang="ar"] .transaction-id,
html[lang="ar"] .donation-reference,
html[lang="ar"] .email-value,
html[lang="ar"] .reference-number,
.rtl-override {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
}

/* Ensure phone numbers are always readable regardless of RTL */
.contact-value:contains('+'),
.contact-value[href^="tel:"],
a[href^="tel:"],
.phone-display,
.phone-number {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
}

/* Fix specific contact grid items in RTL */
html[lang="ar"] .contact-grid .contact-value {
    direction: ltr !important;
    text-align: left !important;
    font-family: monospace, Arial, sans-serif; /* Better for numbers */
}

/* Transaction IDs and reference numbers should always be LTR */
html[lang="ar"] #transactionId,
html[lang="ar"] .transaction-reference,
html[lang="ar"] .payment-reference {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
    font-family: monospace, Arial, sans-serif;
}

/* Enhanced RTL support for contact section */
html[lang="ar"] .contact-section {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .contact-grid {
    direction: rtl;
}

html[lang="ar"] .contact-item {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .contact-details {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .contact-label {
    direction: rtl;
    text-align: right;
    font-weight: bold;
}

/* Keep contact values LTR for better readability */
html[lang="ar"] .contact-value {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
    font-family: monospace, Arial, sans-serif;
}

/* Enhanced email section RTL support */
html[lang="ar"] .email-section {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .email-section h3 {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .email-section p {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .btn-group {
    direction: rtl;
    text-align: center;
}

html[lang="ar"] .form-group {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .form-group label {
    direction: rtl;
    text-align: right;
}

/* Email input should be LTR */
html[lang="ar"] .form-input[type="email"] {
    direction: ltr !important;
    text-align: left !important;
}

/* Success messages RTL */
html[lang="ar"] .success-message {
    direction: rtl;
    text-align: right;
}

/* Donation details section RTL */
html[lang="ar"] .donation-details {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .detail-row {
    direction: rtl;
    text-align: right;
    justify-content: flex-end;
}

html[lang="ar"] .detail-label {
    direction: rtl;
    text-align: right;
}

/* Keep amounts and IDs LTR even in RTL */
html[lang="ar"] .detail-value {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
    font-family: monospace, Arial, sans-serif;
}

/* Exception for cause/reason - should be RTL */
html[lang="ar"] .detail-row:last-child .detail-value {
    direction: rtl !important;
    text-align: right !important;
    font-family: var(--font-family-arabic) !important;
}

/* Next steps section RTL */
html[lang="ar"] .next-steps {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .steps-grid {
    direction: rtl;
}

html[lang="ar"] .step-card {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .step-title {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .step-description {
    direction: rtl;
    text-align: right;
}

/* ENHANCED: Arabic RTL alignment fixes for success page */
html[lang="ar"] .contact-section {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .contact-grid {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .contact-item {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .contact-details {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .contact-label {
    direction: rtl !important;
    text-align: right !important;
    font-weight: 600;
}

/* CRITICAL: Keep phone numbers in LTR for readability */
html[lang="ar"] .contact-value {
    direction: rtl !important;
    text-align: right !important;
}

/* ENHANCED: Keep specific contact values in LTR for better readability */
html[lang="ar"] .contact-value,
html[lang="ar"] .phone-number,
html[lang="ar"] .transaction-id,
html[lang="ar"] .donation-reference,
html[lang="ar"] .email-value,
html[lang="ar"] .reference-number,
html[lang="ar"] .kvk-number,
html[lang="ar"] .website-url {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
    font-family: monospace, Arial, sans-serif;
    display: inline-block;
    width: auto;
}

/* ENHANCED: Ensure icons stay on correct side in RTL */
html[lang="ar"] .contact-grid .contact-value {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Start from left for LTR content */
    direction: ltr !important;
    text-align: left !important;
}

/* ENHANCED: Transaction ID and reference styling for Arabic */
html[lang="ar"] #transactionId,
html[lang="ar"] .transaction-reference,
html[lang="ar"] .payment-reference {
    direction: ltr !important;
    text-align: left !important;
    font-family: monospace, 'Courier New', monospace;
    letter-spacing: 1px;
    word-break: break-all;
}

/* ENHANCED: Email section RTL alignment */
html[lang="ar"] .email-section {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .email-section h3 {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .email-section p {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .btn-group {
    direction: rtl !important;
    justify-content: flex-end;
}

html[lang="ar"] .form-group {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .form-group label {
    direction: rtl !important;
    text-align: right !important;
    display: block;
}

/* ENHANCED: Keep email input LTR but align form RTL */
html[lang="ar"] .form-input[type="email"] {
    direction: ltr !important;
    text-align: left !important;
    width: 100%;
}

/* ENHANCED: Success message RTL alignment */
html[lang="ar"] .success-message {
    direction: rtl !important;
    text-align: right !important;
}

/* ENHANCED: Donation details RTL alignment */
html[lang="ar"] .donation-details {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .detail-row {
    direction: rtl !important;
    justify-content: space-between;
    flex-direction: row-reverse; /* Reverse order for RTL */
}

html[lang="ar"] .detail-label {
    direction: rtl !important;
    text-align: right !important;
    order: 2; /* Put label on right in RTL */
}

html[lang="ar"] .detail-value {
    direction: ltr !important; /* Keep values LTR for numbers/amounts */
    text-align: left !important;
    order: 1; /* Put value on left in RTL */
    font-family: monospace, Arial, sans-serif;
}

/* ENHANCED: Last row special styling for RTL */
html[lang="ar"] .detail-row:last-child .detail-value {
    font-weight: 700;
    color: var(--primary-color, #10b981);
}

/* ENHANCED: Next steps section RTL alignment */
html[lang="ar"] .next-steps {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .steps-grid {
    direction: rtl !important;
}

html[lang="ar"] .step-card {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .step-title {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .step-description {
    direction: rtl !important;
    text-align: right !important;
}

/* ENHANCED: Header and organization info RTL */
html[lang="ar"] .header-container {
    direction: rtl !important;
}

html[lang="ar"] .org-info {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .org-info h1 {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="ar"] .org-subtitle {
    direction: rtl !important;
    text-align: right !important;
}

/* ==================================================================
   DESKTOP FLAG VISIBILITY FIX
================================================================== */

/* Ensure desktop language switcher flags are always visible */
@media (min-width: 769px) {
    .language-switcher-container {
        display: inline-block !important;
        position: relative !important;
    }
    
    .language-switcher {
        display: flex !important;
    }
    
    .language-toggle {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .language-toggle .flag {
        display: inline-block !important;
        font-size: 1.2rem !important;
        width: auto !important;
        text-align: left !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .language-toggle .lang-code {
        display: inline-block !important;
        font-weight: 600 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Currency switcher flags always visible on desktop */
    .currency-switcher-container {
        display: block !important;
    }
    
    .currency-toggle {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .current-currency-flag {
        display: inline-block !important;
        font-size: 1.125rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
    }
    
    .current-currency-code {
        display: inline-block !important;
        font-weight: 600 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Force visibility for flags in all contexts */
.flag,
.current-currency-flag,
.currency-flag {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Twemoji Mozilla", "Android Emoji", sans-serif !important;
    font-size: inherit !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-feature-settings: "liga" !important;
    font-feature-settings: "liga" !important;
}

/* Specific styling for different flag contexts */
.language-toggle .flag {
    font-size: 1.2rem !important;
    margin-right: 0.5rem !important;
}

.current-currency-flag {
    font-size: 1.125rem !important;
    margin-right: 0.5rem !important;
}

.currency-flag {
    font-size: 1.125rem !important;
    margin-right: 0.75rem !important;
}

/* CSS-based flag fallbacks (if emojis fail) */
.flag-us, .flag-en {
    background: linear-gradient(to bottom, #b22234 0%, #b22234 7.69%, #ffffff 7.69%, #ffffff 15.38%, #b22234 15.38%);
    background-size: 100% 13px;
    width: 20px;
    height: 13px;
    position: relative;
}

.flag-us::before, .flag-en::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.8%;
    background: #3c3b6e;
}

.flag-sy, .flag-ar {
    background: linear-gradient(to bottom, #ce1126 33.33%, #ffffff 33.33%, #ffffff 66.66%, #000000 66.66%);
    width: 20px;
    height: 13px;
}

.flag-nl {
    background: linear-gradient(to bottom, #ae1c28 33.33%, #ffffff 33.33%, #ffffff 66.66%, #21468b 66.66%);
    width: 20px;
    height: 13px;
}

.flag-de {
    background: linear-gradient(to bottom, #000000 33.33%, #dd0000 33.33%, #dd0000 66.66%, #ffce00 66.66%);
    width: 20px;
    height: 13px;
}

.flag-fr {
    background: linear-gradient(to right, #002395 33.33%, #ffffff 33.33%, #ffffff 66.66%, #ed2939 66.66%);
    width: 20px;
    height: 13px;
}

.flag-fi {
    background: linear-gradient(to bottom, #ffffff 37.5%, #003580 37.5%, #003580 62.5%, #ffffff 62.5%);
    width: 20px;
    height: 13px;
    position: relative;
}

.flag-fi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 31.25%;
    width: 12.5%;
    height: 100%;
    background: #003580;
}

.flag-eu {
    background: #003399;
    width: 20px;
    height: 13px;
    position: relative;
}

.flag-eu::before {
    content: '★★★★★★★★★★★★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffcc00;
    font-size: 6px;
    letter-spacing: -1px;
}

.flag-gb {
    background: #012169;
    width: 20px;
    height: 13px;
    position: relative;
}

.flag-ca {
    background: linear-gradient(to right, #ff0000 25%, #ffffff 25%, #ffffff 75%, #ff0000 75%);
    width: 20px;
    height: 13px;
    position: relative;
}

.flag-ca::before {
    content: '🍁';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff0000;
    font-size: 8px;
}

.flag-au {
    background: #00008b;
    width: 20px;
    height: 13px;
    position: relative;
}

/* Text fallback styling */
.flag[style*="background: #f0f0f0"] {
    border: 1px solid #ccc;
    font-weight: bold;
    color: #666;
}

/* Force emoji font loading for better emoji support */
@font-face {
    font-family: "Emoji Fallback";
    src: local("Apple Color Emoji"), local("Segoe UI Emoji"), local("Noto Color Emoji"), local("Android Emoji"), local("Twemoji Mozilla");
    unicode-range: U+1F1E6-1F1FF; /* Flag emoji range */
}

/* #Save_Al_Swaida Campaign Tag Overlay */
.campaign-tag-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    animation: campaignPulse 3s ease-in-out infinite;
}

.campaign-hashtag {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.hashtag-symbol {
    font-size: 3rem;
    font-weight: 900;
    color: #ff4757;
    text-shadow: 
        0 0 10px rgba(255, 71, 87, 0.8),
        0 0 20px rgba(255, 71, 87, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: hashtagGlow 2s ease-in-out infinite alternate;
}

.hashtag-text {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        2px 2px 6px rgba(0, 0, 0, 0.9),
        4px 4px 12px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #ffffff, #f1f3f4, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hashtag-text::before {
    content: attr(data-i18n);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #ff4757);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: -1;
    filter: blur(1px);
}

.campaign-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 71, 87, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 15px rgba(255, 71, 87, 0.4),
        0 0 25px rgba(255, 71, 87, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: urgencyPulse 2s ease-in-out infinite;
}

.campaign-urgency i {
    font-size: 1.3rem;
    color: #ffffff;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes campaignPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes hashtagGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(255, 71, 87, 0.8),
            0 0 20px rgba(255, 71, 87, 0.6),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    100% {
        text-shadow: 
            0 0 20px rgba(255, 71, 87, 1),
            0 0 30px rgba(255, 71, 87, 0.8),
            0 0 40px rgba(255, 71, 87, 0.6),
            2px 2px 6px rgba(0, 0, 0, 0.9);
    }
}

@keyframes urgencyPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 4px 15px rgba(255, 71, 87, 0.4),
            0 0 25px rgba(255, 71, 87, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 6px 20px rgba(255, 71, 87, 0.6),
            0 0 35px rgba(255, 71, 87, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.15);
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .campaign-tag-overlay {
        padding: 1.5rem 1rem;
        gap: 0.75rem;
    }
    
    .hashtag-symbol {
        font-size: 2.2rem;
    }
    
    .hashtag-text {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .campaign-urgency {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
        letter-spacing: 0.5px;
    }
    
    .campaign-urgency i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .campaign-tag-overlay {
        padding: 1rem 0.5rem;
    }
    
    .hashtag-symbol {
        font-size: 1.8rem;
    }
    
    .hashtag-text {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    .campaign-urgency {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .campaign-hashtag {
    flex-direction: row-reverse;
}

[dir="rtl"] .campaign-urgency {
    flex-direction: row-reverse;
}

/* Mobile Campaign Banner Enhancements */
@media (max-width: 768px) {
    .campaign-separator .separator-content {
        background-attachment: scroll; /* Better performance on mobile */
        min-height: 200px;
    }
    
    .hashtag-text::after {
        font-size: 1.2rem;
        top: -8px;
        right: -15px;
    }
}

@media (max-width: 480px) {
    .campaign-separator .separator-content {
        min-height: 180px;
        background-image: 
            linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
            url('../images/banner.jpg');
    }
    
    .hashtag-text::after {
        display: none; /* Hide sparkle on very small screens for clarity */
    }
}

/* ULTRA-SPECIFIC CURRENCY DROPDOWN FIX - MUST OVERRIDE ALL OTHER CSS */
html body .donation-container .currency-switcher-container .currency-switcher .currency-dropdown.active,
html body .donation-container .currency-switcher-container .currency-switcher .currency-dropdown.active:not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]),
html body .donation-container .currency-switcher-container .currency-switcher .currency-dropdown.active:not([hidden]):not([aria-hidden="true"]) {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 999999 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    width: auto !important;
    min-width: 120px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 !important;
    margin-top: 4px !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}

/* Force visibility even if parent elements have hidden styles */
html body .donation-container .currency-switcher-container .currency-switcher .currency-dropdown.active *,
html body .donation-container .currency-switcher-container .currency-switcher .currency-dropdown.active .currency-option {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
}