:root {
    --primary-color: #2B3A67;        /* Deep navy */
    --secondary-color: #496DDB;      /* Bright blue */
    --accent-color: #66C7F4;         /* Light blue */
    --text-color: #1A2333;           /* Dark blue-gray */
    --text-light: #4A5567;           /* Medium gray-blue */
    --background: #F8FAFC;           /* Off-white */
    --card-bg: #FFFFFF;              /* Pure white */
    --border-color: #E2E8F0;         /* Light gray */
    --hover-color: #496DDB;          /* Bright blue */
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(43, 58, 103, 0.05);
    --shadow-md: 0 4px 6px rgba(43, 58, 103, 0.1);
    --shadow-lg: 0 10px 15px rgba(43, 58, 103, 0.1);
    --primary-color-rgb: 43, 58, 103;    /* RGB values for #2B3A67 */
    --secondary-color-rgb: 73, 109, 219;  /* RGB values for #496DDB */
}

[data-theme="dark"] {
    /* Dark theme variables */
    --primary-color: #8B9FDB;
    --secondary-color: #496DDB;
    --accent-color: #66C7F4;
    --text-color: #E2E8F0;
    --text-light: #A0AEC0;
    --background: #0F172A;
    --card-bg: #1E293B;
    --border-color: #2D3748;
    --hover-color: #66C7F4;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --primary-color-rgb: 139, 159, 219;   /* RGB values for #8B9FDB */
    --secondary-color-rgb: 73, 109, 219;  /* RGB values for #496DDB */
}

/* Theme toggle button styles */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--background);
    color: var(--accent-color);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    transition: transform 0.3s ease;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: none;
}

/* Dark mode specific styles */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1E293B, #2D3748);
}

[data-theme="dark"] .crypto-payments {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .provider-button {
    background: var(--card-bg);
}

[data-theme="dark"] .region-card {
    background: var(--card-bg);
}

[data-theme="dark"] .shape {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .footer {
    background: var(--card-bg);
}

/* Performance optimizations for slow connections and reduced motion */
.slow-connection * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
}

.slow-connection .hero-animation,
.slow-connection .light-trail,
.slow-connection .shape {
    display: none !important;
}

.reduce-animations *,
@media (prefers-reduced-motion: reduce) {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

.reduce-animations .hero-animation,
.reduce-animations .light-trail,
.reduce-animations .shape,
@media (prefers-reduced-motion: reduce) {
    .hero-animation,
    .light-trail,
    .shape {
        display: none !important;
    }
}

/* Connection-specific optimizations */
.connection-slow-2g .backdrop-filter,
.connection-2g .backdrop-filter,
.slow-connection .backdrop-filter {
    backdrop-filter: none !important;
    background: var(--card-bg) !important;
}

.connection-slow-2g .complex-gradient,
.connection-2g .complex-gradient,
.slow-connection .complex-gradient {
    background: var(--background) !important;
}

/* Dark mode hover states */
[data-theme="dark"] .provider-button:hover {
    border-color: var(--accent-color);
    background: rgba(102, 199, 244, 0.1);
}

[data-theme="dark"] .region-card:hover {
    border-color: var(--accent-color);
    background: rgba(102, 199, 244, 0.05);
}

/* Update existing light trails for dark mode */
[data-theme="dark"] .light-trail {
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(102, 199, 244, 0.1),
        rgba(102, 199, 244, 0.15),
        rgba(102, 199, 244, 0.1),
        transparent
    );
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Header */
.header {
    padding: 1rem 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

/* Smooth logo transition approach */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.logo-image {
    height: 20px;
    width: auto;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo-light {
    opacity: 1;
}

.logo-dark {
    opacity: 0;
}

[data-theme="dark"] .logo-light {
    opacity: 0;
}

[data-theme="dark"] .logo-dark {
    opacity: 1;
}

/* Add a spacer to maintain layout */
.logo::after {
    content: '';
    display: block;
    height: 12px;
}

/* Optional: hover effect */
.logo-image:hover {
    filter: brightness(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 12px;
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links > a:not(.nav-button) {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
}

.nav-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

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

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

/* Make the button styles more specific */
.nav-links .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
}

.nav-links .nav-button-primary {
    background: var(--primary-color);
    color: #ffffff !important; /* Use !important if still getting overridden */
    border-color: var(--primary-color);
}

.nav-links .nav-button-primary:hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
    color: #ffffff !important;
}

/* Dark mode adjustments */
[data-theme="dark"] .nav-button {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .nav-button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

[data-theme="dark"] .nav-button-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--background);
}

[data-theme="dark"] .nav-button-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Update nav-links to accommodate buttons */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }

    .nav {
        padding: 0 1rem;
        position: relative;
    }

    .logo {
        flex: 0 0 auto;
    }

    /* Navigation links */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--card-bg);
        padding: 1rem;
        gap: 0.75rem;
        border-top: 1px solid var(--border-color);
        display: none;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > a:not(.nav-button) {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    .nav-links .nav-button {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .language-select,
    .theme-toggle {
        margin-top: 0.5rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 8rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 4rem;  /* Increased bottom margin from 3rem to 4rem */
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.6;
}

/* Hero background with floating gradients - show for all connections */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 35%, rgba(73, 109, 219, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 75% 44%, rgba(102, 199, 244, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(73, 109, 219, 0.3) 0%, transparent 40%);
    z-index: -1;
}

/* Animate the background for fast connections */
.fast-connection .hero::after {
    animation: pulse 10s ease-in-out infinite alternate;
}

/* Floating geometric shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

/* Show shapes for all connections */
.shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Position shapes */
.shape-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
}

.shape-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 15%;
}

.shape-3 {
    width: 75px;
    height: 75px;
    top: 30%;
    right: 25%;
}

.shape-4 {
    width: 50px;
    height: 50px;
    bottom: 25%;
    left: 25%;
}

.shape-5 {
    width: 125px;
    height: 125px;
    top: 15%;
    right: 45%;
}

/* Animate shapes only on fast connections */

.fast-connection .shape-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation: float 20s ease-in-out infinite;
}

.fast-connection .shape-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 15%;
    animation: float 15s ease-in-out infinite reverse;
}

.fast-connection .shape-3 {
    width: 75px;
    height: 75px;
    top: 30%;
    right: 25%;
    animation: float 17s ease-in-out infinite 2s;
}

.fast-connection .shape-4 {
    width: 50px;
    height: 50px;
    bottom: 25%;
    left: 25%;
    animation: float 13s ease-in-out infinite 1s;
}

.fast-connection .shape-5 {
    width: 125px;
    height: 125px;
    top: 15%;
    right: 45%;
    animation: float 18s ease-in-out infinite 3s;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -10px) rotate(2deg);
    }
    50% {
        transform: translate(-5px, 15px) rotate(-1deg);
    }
    75% {
        transform: translate(-15px, -7px) rotate(1deg);
    }
}

/* Light trails effect */
.fast-connection .light-trail {
    position: absolute;
    width: 1px;
    height: 150px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: trail 6s linear infinite;
    transform-origin: top;
}

/* More trail instances with different positions */
.fast-connection .trail-1 { left: 10%; animation-delay: 0s; }
.fast-connection .trail-2 { left: 25%; animation-delay: 1s; }
.fast-connection .trail-3 { left: 40%; animation-delay: 2s; }
.fast-connection .trail-4 { left: 55%; animation-delay: 0.5s; }
.fast-connection .trail-5 { left: 70%; animation-delay: 1.5s; }
.fast-connection .trail-6 { left: 85%; animation-delay: 2.5s; }
.fast-connection .trail-7 { left: 15%; animation-delay: 3s; }
.fast-connection .trail-8 { left: 45%; animation-delay: 2.7s; }
.fast-connection .trail-9 { left: 75%; animation-delay: 1.8s; }
.fast-connection .trail-10 { left: 90%; animation-delay: 0.3s; }

/* Diagonal trails */
.fast-connection .trail-diagonal {
    transform: rotate(45deg);
}
.fast-connection .trail-diagonal-reverse {
    transform: rotate(-45deg);
}

/* Different speeds for variety */
.fast-connection .trail-fast { animation-duration: 4s; }
.fast-connection .trail-slow { animation-duration: 8s; }

@keyframes trail {
    0% {
        transform: translateY(-100%) scaleY(0);
        opacity: 0;
    }
    10% {
        transform: translateY(-90%) scaleY(1);
        opacity: 1;
    }
    90% {
        transform: translateY(90%) scaleY(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100%) scaleY(0);
        opacity: 0;
    }
}

/* Optional: Add hover effects to shapes */
.shape:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

/* Crypto Payment Section */
.crypto-payments {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin: 0 auto;
    max-width: 1000px; /* Increased from 800px */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.crypto-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.crypto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
    width: 100%;
    text-align: center;
}

.crypto-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.crypto-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.crypto-icon:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.crypto-name {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Update translations object to include new cryptocurrencies */
@media (max-width: 768px) {
    .crypto-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .crypto-icon {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .crypto-name {
        font-size: 0.8125rem;
    }
}

/* Provider Selection */
.provider-select {
    padding: 2rem 0;
    background: var(--background);
    position: relative;
}

.provider-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        var(--border-color),
        transparent);
}

.service-types {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.service-type {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.service-type:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.service-type.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.provider-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.provider-button {
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.provider-button:hover {
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.provider-button.active {
    background: var(--background);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.provider-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Update spacing for the regions section that follows */
.regions-section {
    padding-top: 1rem;
    padding-bottom: 4rem; /* Add bottom padding */
}

.regions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.regions-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

.regions-count {
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.region-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.region-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.region-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.region-details {
    flex: 1;
}

.region-flag {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.region-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.region-location {
    font-size: 0.875rem;
    color: var(--text-light);
}

.region-features {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.region-feature {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--background);
    border-radius: 12px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.region-feature:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.region-price {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .regions-section {
        padding-bottom: 2rem;
    }
}

/* Language Select */
.language-select {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-select:hover {
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 2rem 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-copyright {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-separator {
    color: var(--border-color);
}

/* Focus States */
.service-type:focus,
.provider-button:focus,
.language-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Provider Groups */
.provider-group {
    display: none;
}

.provider-group.active {
    display: block;
}

/* RTL Support */
[dir="rtl"] {
    /* Flip shadows and gradients for RTL */
    .hero::before {
        transform: scaleX(-1);
    }
    
    /* Adjust padding and margins for RTL */
    .nav-links {
        flex-direction: row-reverse;
    }
    
    .provider-badge {
        left: -8px;
        right: auto;
    }
    
    .region-info {
        flex-direction: row-reverse;
    }
    
    .footer-links {
        flex-direction: row-reverse;
    }
}

/* Language-specific font adjustments */
.lang-zh {
    /* Use system Chinese fonts */
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

.lang-ar {
    /* Use system Arabic fonts */
    font-family: -apple-system, BlinkMacSystemFont, "Arabic UI", "Segoe UI", Tahoma, sans-serif;
}

.lang-ru {
    /* Use system Cyrillic fonts */
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* Adjust spacing for different languages */
[lang="ar"] .hero h1,
[lang="zh"] .hero h1 {
    line-height: 1.4;
}

/* Adjust button sizes for different languages */
[lang="ar"] .service-type,
[lang="ru"] .service-type {
    padding: 0.75rem 2rem;
}

[lang="ko"] {
    font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Adjust letter spacing for better readability */
    letter-spacing: -0.05em;
}

/* Adjust line height for Korean text */
[lang="ko"] .region-name {
    line-height: 1.6;
}

/* Proper word break rules for Korean */
[lang="ko"] {
    word-break: keep-all;
    overflow-wrap: break-word;
}

[lang="ja"] {
    font-family: "Hiragino Kaku Gothic Pro", "Yu Gothic", "Meiryo", sans-serif;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Adjust line height for Japanese text */
[lang="ja"] .region-name {
    line-height: 1.7;
}

[lang="tr"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial", sans-serif;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Proper text transform for Turkish characters */
[lang="tr"] {
    text-transform: none !important; /* Prevent improper capitalization of i/İ and ı/I */
}

/* Ensure proper line height for Turkish diacritics */
[lang="tr"] .region-name {
    line-height: 1.5;
}

[lang="pt-BR"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial", sans-serif;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure proper line height for Portuguese accents */
[lang="pt-BR"] .region-name {
    line-height: 1.5;
}

[lang="it"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial", sans-serif;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure proper line height for Italian accents */
[lang="it"] .region-name {
    line-height: 1.5;
}

/* Optional: Add proper quotation marks for Italian */
[lang="it"] q {
    quotes: "«" "»" '"' '"';
}

[lang="id"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial", sans-serif;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Indonesian text tends to be slightly longer, adjust spacing */
[lang="id"] .region-name {
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* Ensure proper wrapping for longer Indonesian phrases */
[lang="id"] {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

[lang="vi"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", 
                 "Roboto", "Arial", 
                 "Noto Sans", /* Good for Vietnamese diacritics */
                 sans-serif;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure proper line height for Vietnamese diacritics */
[lang="vi"] .region-name {
    line-height: 1.6;
    /* Additional space for diacritical marks */
    padding-top: 2px;
}

/* Proper word wrapping for Vietnamese */
[lang="vi"] {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Adjust font size for better diacritic display */
@media screen and (max-width: 768px) {
    [lang="vi"] {
        font-size: 0.95em; /* Slightly smaller on mobile for better rendering */
    }
}

[lang="pl"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", 
                 "Roboto", "Arial", 
                 sans-serif;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure proper line height for Polish characters */
[lang="pl"] .region-name {
    line-height: 1.5;
}

/* Proper word wrapping for Polish */
[lang="pl"] {
    word-break: keep-all;
    overflow-wrap: break-word;
    /* Support for longer compound words */
    hyphens: auto;
}

/* Adjust spacing for diacritical marks */
[lang="pl"] {
    letter-spacing: -0.01em;
}

/* Legal Pages Styling */
.legal-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-document {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.legal-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.875rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-section ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-section li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* RTL Support for Legal Pages */
[dir="rtl"] .legal-section ul {
    padding-left: 0;
    padding-right: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .service-types {
        flex-direction: column;
        padding: 0 1rem;
    }

    .service-type {
        text-align: center;
    }

    .provider-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }

    .provider-button {
        text-align: center;
    }

    .regions-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
    }

    .crypto-grid {
        gap: 1.5rem;
    }
}

/* Provider Descriptions */
.provider-descriptions {
    margin: 1rem auto; /* Reduced from 3rem to 1rem */
    max-width: 1200px;
    padding: 0 1rem;
}

.provider-description {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem; /* Reduced from 2rem to 1.5rem */
    margin: 1rem 0; /* Reduced from 2rem to 1rem */
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.provider-description.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.provider-description-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem; /* Reduced from 1.5rem to 1rem */
    padding-bottom: 1rem; /* Reduced from 1.5rem to 1rem */
    border-bottom: 1px solid var(--border-color);
}

.provider-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--border-radius);
    background: transparent;
    transition: transform 0.2s ease;
}

.provider-logo:hover {
    transform: scale(1.05);
}

.provider-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.provider-info {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Dark mode adjustments */
[data-theme="dark"] .provider-description {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .provider-logo {
    background: transparent;
}

/* RTL Support */
[dir="rtl"] .provider-description-header {
    flex-direction: row-reverse;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .provider-description {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .provider-description-header {
        gap: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .provider-logo {
        width: 40px;
        height: 40px;
    }

    .provider-name {
        font-size: 1.25rem;
    }

    .provider-info {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
}

/* Language-specific adjustments */
[lang="ar"] .provider-info,
[lang="he"] .provider-info {
    line-height: 1.8;
}

[lang="zh"] .provider-info,
[lang="ja"] .provider-info,
[lang="ko"] .provider-info {
    line-height: 1.8;
}

/* Improve text rendering for CJK languages */
[lang="zh"] .provider-name,
[lang="ja"] .provider-name,
[lang="ko"] .provider-name {
    letter-spacing: -0.02em;
}

/* Additional styles specific to affiliate page */
.earning-calculator {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
}

.calculator-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calculator-input input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background);
    color: var(--text-color);
}

.commission-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 1rem 0;
}

.commission-rate {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Affiliate Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.cta-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Calculator Section */
.calculator-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.input-group input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.result-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.result-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Resource Cards */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.resource-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

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

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resource-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-card li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

/* Payment Methods */
.payout-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.payout-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.payout-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.payout-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.payout-card p {
    color: var(--text-light);
}

/* Final CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .calculator-inputs,
    .calculator-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resources-grid,
    .faq-grid,
    .payout-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }
}


/* Section Headers */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* Section Subtitles */
.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Detail Headers */
.detail-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Detail Text */
.detail-item p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Payment Details Container */
.payout-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.detail-item {
    padding: 1rem;
}

/* Dark theme adjustments */
[data-theme="dark"] .section-title {
    color: #ffffff;
}

[data-theme="dark"] .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .detail-item h4 {
    color: #ffffff;
}

[data-theme="dark"] .detail-item p {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .detail-item h4 {
        font-size: 1.125rem;
    }
    
    .detail-item p {
        font-size: 1rem;
    }
    
    .payout-details {
        padding: 1.5rem;
        grid-template-columns: 1fr;
    }
}

/* Add/update these styles in your styles.css */

/* Section spacing */
.section {
    padding: 6rem 0; /* Increased from whatever it was before */
}

/* Special dark sections */
.section-dark {
    background: var(--background);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Section header container */
.section-header {
    margin-bottom: 4rem; /* Increased space below headers */
    text-align: center;
}

/* Section title adjustments */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    /* Add top margin if it follows another section */
    margin-top: 2rem;
}

/* Ensure proper spacing between major content blocks */
.feature-grid,
.resources-grid,
.payout-methods,
.faq-grid {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Adjust spacing for specific sections if needed */
#promotion {
    margin-top: 6rem;
}

#faq {
    margin-top: 6rem;
}

/* Final CTA section specific spacing */
.cta-section {
    padding: 8rem 0; /* More padding for the final CTA */
    margin-top: 6rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-top: 1.5rem;
    }
    
    .feature-grid,
    .resources-grid,
    .payout-methods,
    .faq-grid {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    
    .cta-section {
        padding: 6rem 0;
        margin-top: 4rem;
    }
}

/* Add/update these styles in your styles.css */

/* Center align all section headers and subtitles */
.section-title,
.section-subtitle {
    text-align: center;
}

/* Calculator section specific styles */
.calculator-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin: 2.5rem auto;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-group label {
    font-size: 1rem;
    color: var(--text-light);
    text-align: left; /* Keep labels left-aligned */
}

.input-group input {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.result-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.result-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Center align other section headers */
.feature-card,
.resource-card,
.payout-card {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-results {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-container {
        padding: 1.5rem;
        margin: 1.5rem 1rem;
    }

    .result-value {
        font-size: 2rem;
    }
}

/* Dark theme refinements */
[data-theme="dark"] .input-group input {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

[data-theme="dark"] .result-value {
    color: var(--accent-color);
}

/* Add to your styles.css */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 4rem 0;
}

.step-card {
    background: rgba(30, 41, 59, 0.5); /* Slightly transparent dark blue */
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-number {
    background: rgba(147, 163, 217, 0.2); /* Light blue with transparency */
    color: var(--accent-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.step-action {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.step-action:hover {
    color: #ffffff;
}

.step-action::after {
    content: "→";
    transition: transform 0.2s ease;
}

.step-action:hover::after {
    transform: translateX(4px);
}

.link-types-container {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.subsection-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.subsection-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.link-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.link-type-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.link-type-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.link-type-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.link-type-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.link-example {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--accent-color);
    word-break: break-all;
}

.tracking-info {
    margin-top: 4rem;
    text-align: center;
}

.tracking-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 600px;
    display: grid;
    gap: 1rem;
}

.tracking-list li {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

@media (max-width: 1200px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .step-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .link-types-grid {
        grid-template-columns: 1fr;
    }
    
    .tracking-list {
        margin: 2rem 1rem;
    }
}

/* Add subtle glow effect for the numbers */
.step-number {
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.15;
    filter: blur(4px);
}

/* Optional: Add card hover effect */
.step-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Light mode fixes for affiliate page sections */
[data-theme="light"] .step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(43, 58, 103, 0.1);
}

[data-theme="light"] .step-card:hover {
    box-shadow: 0 8px 12px rgba(43, 58, 103, 0.15);
    border-color: var(--secondary-color);
}

[data-theme="light"] .step-content h3 {
    color: var(--text-color);
}

[data-theme="light"] .step-content p {
    color: var(--text-light);
}

[data-theme="light"] .link-example {
    background: var(--background);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .result-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .result-label {
    color: var(--text-light);
}

[data-theme="light"] .result-value {
    color: var(--secondary-color);
}

[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

[data-theme="light"] .cta-section .section-title,
[data-theme="light"] .cta-section .section-subtitle {
    color: white;
}

/* Add these new styles */
.crypto-badges {
    margin: 3rem 0;
    text-align: center;
}

.crypto-label {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.crypto-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.crypto-icon {
    height: 40px;
    width: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.crypto-icon:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.privacy-guarantee {
    margin-top: 3rem;
    padding: 1rem 2rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.guarantee-icon {
    font-size: 1.5rem;
}

.privacy-guarantee p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin: 0;
}

.feature-tag {
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

/* Updated hero animations */
.hero-stats,
.hero-features,
.crypto-badges,
.privacy-guarantee {
    animation: fadeInUp 0.6s ease backwards;
}

.hero-stats { animation-delay: 0.2s; }
.hero-features { animation-delay: 0.4s; }
.crypto-badges { animation-delay: 0.6s; }
.privacy-guarantee { animation-delay: 0.8s; }

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

/* ============================================
   NEW HERO STYLES 2024 - Add to end of CSS file 
   ============================================ */

   .hero-2024 {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-2024 h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-2024 .hero-subtitle {
    font-size: 1.125rem;
    max-width: 650px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Key Stats */
.hero-2024 .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-2024 .stat-card {
    padding: 1rem;
}

.hero-2024 .stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.hero-2024 .stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Features Section */
.hero-2024 .hero-features-container {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-2024 .features-column {
    flex: 1;
}

.hero-2024 .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.hero-2024 .feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.hero-2024 .feature-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.hero-2024 .feature-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Crypto Payments */
.hero-2024 .crypto-payments {
    margin: 3rem auto;
    max-width: 800px;
}

.hero-2024 .crypto-title {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.hero-2024 .crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-2024 .crypto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-2024 .crypto-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.hero-2024 .crypto-item:hover .crypto-icon {
    transform: translateY(-2px);
}

.hero-2024 .crypto-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Privacy Notice */
.hero-2024 .privacy-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    margin: 2rem auto;
}

.hero-2024 .privacy-icon {
    font-size: 1.125rem;
    opacity: 0.7;
}

.hero-2024 .privacy-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* CTA Buttons */
.hero-2024 .hero-cta {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-2024 .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-2024 {
        padding: 3rem 0;
    }

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

    .hero-2024 .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-2024 .hero-stats {
        grid-template-columns: 1fr;
        margin: 2rem 1rem;
    }

    .hero-2024 .hero-features-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-2024 .crypto-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    }
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.section-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Payment Methods Section */
.payment-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.crypto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.crypto-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.crypto-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.crypto-name {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .crypto-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Desktop styles remain unchanged until mobile breakpoint */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Mobile styles - Only apply these changes at mobile breakpoint */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }

    .nav {
        padding: 0 1rem;
        position: relative;
    }

    .logo {
        flex: 0 0 auto; /* Don't grow or shrink */
    }

    .logo-image {
        height: 16px;
    }

    /* Navigation links */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--card-bg);
        padding: 1rem;
        gap: 0.75rem;
        border-top: 1px solid var(--border-color);
        display: none; /* Hide by default on mobile */
    }

    .nav-links.active {
        display: flex; /* Show when active class is added via JS */
    }

    /* Make buttons full width only on mobile */
    .nav-links .nav-button {
        width: 100%;
        justify-content: center;
    }

    /* Style non-button links */
    .nav-links > a:not(.nav-button) {
        text-align: center;
        padding: 0.5rem;
        width: 100%;
    }

    /* Add a mobile menu button */
    .mobile-menu-button {
        display: block;
        padding: 0.5rem;
        margin-left: 1rem;
        background: none;
        border: none;
        color: var(--text-color);
        cursor: pointer;
    }
}

/* Hide mobile menu button on desktop */
.mobile-menu-button {
    display: none;
}

/* Mobile menu button - add this near your other button styles */
.mobile-menu-button {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu-button svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Add this to your media query */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
}

/* Features Section - Light Mode */
[data-theme="light"] .features-section {
    background: var(--background);
}

[data-theme="light"] .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .feature-card h3 {
    color: var(--primary-color);
}

[data-theme="light"] .feature-card p {
    color: var(--text-color);
}

[data-theme="light"] .section-header h2 {
    color: var(--text-color);
}

[data-theme="light"] .section-header p {
    color: var(--text-light);
}

/* Payment Methods Section - Light Mode */
[data-theme="light"] .payment-section {
    background: var(--background);
}

[data-theme="light"] .crypto-grid {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .crypto-item {
    background: var(--card-bg);
    transition: all 0.2s ease;
}

[data-theme="light"] .crypto-item:hover {
    background: var(--background);
    transform: translateY(-2px);
}

[data-theme="light"] .crypto-name {
    color: var(--text-color);
}

/* Hover states */
[data-theme="light"] .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

[data-theme="light"] .crypto-item:hover .crypto-name {
    color: var(--primary-color);
}

/* Enhanced Top Announcement Banner */
#announcement-top-banner {
    background-color: var(--accent-color, #66C7F4);
    color: var(--text-color, #1A2333);
    width: 100%;
    padding: 0.7rem 0;
    position: relative;
    z-index: 1100;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

#announcement-top-banner .announcement-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#announcement-top-banner .announcement-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#announcement-top-banner .announcement-tag {
    background-color: var(--primary-color, #2B3A67);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius, 4px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#announcement-top-banner .announcement-message {
    font-size: 0.95rem;
    font-weight: 500;
}

#announcement-top-banner .announcement-button {
    background-color: var(--primary-color, #2B3A67);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 1.2rem;
    border-radius: var(--border-radius, 4px);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#announcement-top-banner .announcement-button:hover {
    background-color: var(--secondary-color, #496DDB);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark theme adjustments */
[data-theme="dark"] #announcement-top-banner {
    color: #0F172A;
}

[data-theme="dark"] #announcement-top-banner .announcement-tag {
    background-color: #0F172A;
}

[data-theme="dark"] #announcement-top-banner .announcement-button {
    background-color: #0F172A;
}

[data-theme="dark"] #announcement-top-banner .announcement-button:hover {
    background-color: #1E293B;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #announcement-top-banner .announcement-inner {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.5rem 1rem;
    }

    #announcement-top-banner .announcement-content {
        text-align: center;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Complete Featured Region Styles */
.featured-region {
    position: relative;
    border: 2px solid var(--accent-color);
    background: linear-gradient(to bottom right, 
        rgba(var(--primary-color-rgb), 0.05),
        rgba(var(--secondary-color-rgb), 0.05));
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.featured-region:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.region-tag {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.region-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.benefit-item {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 12px;
    opacity: 0.9;
}

.featured-region:hover .benefit-item {
    opacity: 1;
}

/* Refined Vertical Specs - No Icons */
.region-specs {
    display: flex;
    flex-direction: column;
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.spec-item {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.spec-item:last-child {
    border-bottom: none;
}

/* Dark theme adjustments */
[data-theme="dark"] .region-specs {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .spec-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .region-specs {
        padding: 0.75rem 1rem;
    }
    
    .spec-item {
        padding: 0.4rem 0;
    }
}

/* Coming Soon Region Cards */
.coming-soon-region {
    position: relative;
    border: 1px dashed var(--border-color);
    background: rgba(var(--primary-color-rgb), 0.02);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.coming-soon-region:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    opacity: 1;
}

.coming-soon-tag {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.coming-soon-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.coming-soon-message {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.coming-soon-specs {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.notify-button {
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: var(--background);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notify-button:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Dark theme adjustments */
[data-theme="dark"] .coming-soon-region {
    background: rgba(var(--primary-color-rgb), 0.05);
}

[data-theme="dark"] .coming-soon-content {
    background: rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .coming-soon-content {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .coming-soon-message {
        font-size: 0.9rem;
    }
}

/* Loading states for lazy translation loading */
.loading-posts, .error-posts {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

.error-posts {
    color: #e74c3c;
}

.language-select:disabled {
    cursor: wait \!important;
}


/* Image optimization and lazy loading styles */
img.lazy-loading {
    background-color: var(--border-color);
    background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: shimmer 1.5s infinite;
}

img.loading {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img.error {
    background-color: #f8f8f8;
    border: 1px dashed #ccc;
    opacity: 0.5;
}

/* Shimmer animation for loading images */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* Responsive image containers */
.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Crypto icon specific styles - override for WebP optimization */
.crypto-icon {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain;
    /* Keep the original container padding - don't override it */
}


/* Provider logo specific styles - removed duplicate rule, using main definition above */

/* Disable loading animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    img.lazy-loading {
        animation: none;
    }
    
    img.loading, img.loaded {
        transition: none;
    }
}


/* Progressive Enhancement: Respect user preferences and connection quality */

/* Disable all animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms \!important;
        animation-iteration-count: 1 \!important;
        transition-duration: 0.01ms \!important;
    }
    
    .hero-shapes,
    .light-trail,
    .shape {
        display: none \!important;
    }
}

/* Simplified experience for data saver mode - keep visuals but reduce motion */
.save-data .hero-shapes *,
.save-data .light-trail,
.save-data .shape {
    animation: none !important;
    opacity: 0.3 !important;
}

/* Keep hero effects but reduce them for slow connections - removed conflicting rules */

/* Reduced animations for slow connections - keep animations but make them lighter */
.slow-connection .hero::after {
    animation-duration: 15s !important; /* Slower pulse */
}

.slow-connection .shape {
    animation-duration: 25s !important; /* Slower floating */
}

.slow-connection .light-trail {
    animation-duration: 8s !important; /* Slower trails */
    opacity: 0.3 !important; /* More subtle */
}

.slow-connection .lazy-loading {
    background: var(--border-color) !important;
    animation: none !important; /* Only disable loading shimmer */
}

/* Enhanced experience for fast connections with full animations */
.fast-connection .hero {
    /* Full hero effects already defined above */
}

/* Respect battery level if available */
@media (prefers-reduced-motion: no-preference) {
    .fast-connection .hero {
        /* Allow animations only if user hasnt opted out */
    }
}
