/*
 * Afroxtend 2027 Ultra-Modern Design System
 * Cutting-edge, premium SaaS aesthetic
 * Bigisub Brand: White & Blue (#0066FF)
 */

:root {
    /* Brand Colors */
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #3385FF;
    --primary-glow: rgba(0, 102, 255, 0.15);

    /* Bigisub Brand Aliases */
    --bigisub-blue: #0066FF;
    --bigisub-blue-dark: #0052CC;
    --bigisub-blue-light: #3385FF;

    /* Neutrals - Refined */
    --white: #FFFFFF;
    --gray-50: #FAFBFC;
    --gray-100: #F5F7FA;
    --gray-200: #E4E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Semantic */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --afro-accent: #F59E0B;

    /* Shadows - Ultra Modern */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.10), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -8px rgba(0, 0, 0, 0.06);
    --shadow-2xl: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
    --shadow-blue: 0 8px 32px -8px rgba(0, 102, 255, 0.3);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Spacing Aliases for consistency */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius - Larger for 2027 */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-3xl: 2.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Gradients */
    --afro-gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --afro-gradient-card: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(0, 102, 255, 0.01) 100%);
}

/* ====================
   NAVIGATION - Ultra Modern
   ==================== */
.afro-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.afro-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.afro-nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.afro-nav-logo {
    height: 60px;
    width: auto;
}

.afro-nav-logo.logo-light {
    display: block;
    height: 81px;
}

.afro-nav-logo.logo-dark {
    display: none;
}

.dark-mode .afro-nav-logo.logo-light {
    display: none;
}

.dark-mode .afro-nav-logo.logo-dark {
    display: block;
}

.afro-nav-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-300);
}

.afro-nav-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.afro-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.afro-nav-link {
    padding: var(--space-3) var(--space-5);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
}

.afro-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.afro-nav-link:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.afro-nav-link.active {
    color: var(--primary);
    background: var(--primary-glow);
}

.afro-nav-link.active::before {
    width: 60%;
}

.afro-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.afro-nav-btn {
    padding: var(--space-3) var(--space-6);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: none;
    cursor: pointer;
}

.afro-nav-btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm), var(--shadow-blue);
}

.afro-nav-btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md), var(--shadow-blue);
    transform: translateY(-1px);
}

.afro-nav-btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
    box-shadow: var(--shadow-xs);
}

.afro-nav-btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    box-shadow: var(--shadow-sm);
}

.afro-nav-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
}

.afro-nav-user:hover {
    background: var(--gray-200);
}

.afro-nav-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.afro-nav-user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* ====================
   CONTAINER & LAYOUT
   ==================== */
.afro-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.afro-page {
    min-height: calc(100vh - 72px);
    background: var(--gray-50);
}

/* ====================
   PAGE HEADER - Ultra Modern
   ==================== */
.afro-page-header {
    padding: var(--space-12) 0 var(--space-8);
    text-align: center;
}

.afro-page-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -0.04em;
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.afro-page-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--gray-600);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ====================
   STATS BANNER - 3-Column Modern
   ==================== */
.afro-stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-10);
}

.afro-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.afro-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.afro-stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-blue);
    transform: translateY(-4px);
}

.afro-stat-card:hover::before {
    transform: scaleX(1);
}

.afro-stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: var(--primary-glow);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.afro-stat-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.afro-stat-value {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ====================
   DISCLAIMER - Modern Alert
   ==================== */
.afro-alert {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-left: 4px solid #F59E0B;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-10);
    box-shadow: var(--shadow-md);
}

.afro-alert-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.afro-alert-icon {
    width: 24px;
    height: 24px;
    background: #F59E0B;
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.afro-alert-title {
    font-size: 1rem;
    font-weight: 700;
    color: #78350F;
    margin: 0;
}

.afro-alert-content {
    color: #92400E;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ====================
   PROJECT CARDS - Bento Grid Premium
   ==================== */
.afro-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.afro-project-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
}

.afro-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.afro-project-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl), var(--shadow-blue);
    transform: translateY(-12px) scale(1.02);
}

.afro-project-card:hover::before {
    opacity: 1;
}

.afro-project-header {
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.afro-project-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.afro-project-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: var(--shadow-md), var(--shadow-blue);
    margin-bottom: var(--space-4);
}

.afro-project-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.afro-project-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.afro-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.afro-badge-success {
    background: #D1FAE5;
    color: var(--success);
}

.afro-badge-info {
    background: #DBEAFE;
    color: var(--primary);
}

.afro-project-body {
    padding: var(--space-8);
}

.afro-project-description {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    font-size: 0.9375rem;
}

/* Slots Progress - Ultra Modern */
.afro-slots-section {
    margin-bottom: var(--space-6);
}

.afro-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.afro-slots-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.afro-slots-count {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 600;
}

.afro-progress {
    height: 10px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-inner);
}

.afro-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 12px rgba(0, 102, 255, 0.4);
}

.afro-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s infinite;
}

/* Tiers List - Modern Pills */
.afro-tiers-section {
    margin-bottom: var(--space-8);
}

.afro-tiers-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.afro-tier-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition-base);
}

.afro-tier-pill:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.afro-tier-pill strong {
    color: var(--primary);
    font-size: 1rem;
}

/* Stats Grid - 2 Column */
.afro-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
}

.afro-stat-item {
    text-align: center;
}

.afro-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.afro-stat-number.success {
    background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.afro-stat-text {
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Button - Premium */
.afro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.afro-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.afro-btn:hover::before {
    width: 300px;
    height: 300px;
}

.afro-btn span {
    position: relative;
    z-index: 1;
}

.afro-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg), var(--shadow-blue);
}

.afro-btn-primary:hover {
    box-shadow: var(--shadow-xl), var(--shadow-blue);
    transform: translateY(-2px) scale(1.02);
}

.afro-btn-block {
    width: 100%;
}

/* ====================
   ANIMATIONS
   ==================== */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================
   MOBILE NAVIGATION TOGGLE
   ==================== */
.afro-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: var(--space-2);
}

.afro-nav-mobile {
    display: none;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.afro-nav-mobile.active {
    display: flex;
}

.afro-nav-mobile-link {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
}

.afro-nav-mobile-link:hover {
    background: var(--primary-glow);
    color: var(--primary);
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 1024px) {
    .afro-nav-links {
        display: none;
    }

    .afro-nav-toggle {
        display: block;
    }

    .afro-stats-banner {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .afro-projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .afro-nav-container {
        padding: 0 var(--space-4);
    }

    .afro-nav-user-name {
        display: none;
    }

    .afro-container {
        padding: 0 var(--space-4);
    }

    .afro-page-header {
        padding: var(--space-8) 0 var(--space-6);
    }

    .afro-project-header,
    .afro-project-body {
        padding: var(--space-6);
    }

    .afro-stats-grid {
        gap: var(--space-3);
        padding: var(--space-4);
    }
}

@media (max-width: 640px) {
    .afro-nav-btn span {
        display: none;
    }

    .afro-nav-actions {
        gap: var(--space-2);
    }

    .afro-page-title {
        font-size: 2rem;
    }

    .afro-page-subtitle {
        font-size: 1rem;
    }
}

/* ====================
   GLASS CARDS - Modern Glassmorphism
   ==================== */
.afro-glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.afro-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

/* ====================
   CARD COMPONENTS
   ==================== */
.afro-card-header {
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.afro-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.afro-card-body {
    padding: var(--space-8);
}

/* ====================
   DISCLAIMER / ALERT COMPONENTS
   ==================== */
.afro-disclaimer {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-sm);
}

.afro-disclaimer h6 {
    color: #78350F;
    font-weight: 700;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.afro-disclaimer p {
    color: #92400E;
    line-height: 1.7;
}

/* ====================
   BUTTONS - Extended
   ==================== */
.afro-btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.afro-btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    box-shadow: var(--shadow-md);
}

.afro-btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: 1.125rem;
}

/* ====================
   TERMS ACCORDION
   ==================== */
.afro-terms-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.afro-terms-item {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    background: var(--white);
}

.afro-terms-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.afro-terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    cursor: pointer;
    background: var(--gray-50);
    transition: all var(--transition-base);
    user-select: none;
}

.afro-terms-header:hover {
    background: var(--primary-glow);
}

.afro-terms-header h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.afro-terms-header i {
    transition: transform var(--transition-base);
}

.afro-terms-item.active .afro-terms-header i {
    transform: rotate(180deg);
}

.afro-terms-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.afro-terms-item.active .afro-terms-content {
    max-height: 1200px;
}

.afro-terms-content > div:first-child {
    padding: var(--space-6);
    background: var(--white);
    line-height: 1.8;
    color: var(--gray-700);
}

.afro-terms-content p {
    margin-bottom: var(--space-4);
}

.afro-terms-content p:last-child {
    margin-bottom: 0;
}

.afro-terms-checkbox {
    padding: var(--space-4) var(--space-6);
    background: var(--primary-glow);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.afro-terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.afro-terms-checkbox label {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: var(--gray-700);
}

/* ====================
   TEXT UTILITIES
   ==================== */
.afro-text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================
   HERO SECTION - Landing Page
   ==================== */
.afro-hero {
    position: relative;
    padding: var(--space-16) 0 var(--space-12);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    overflow: hidden;
}

.afro-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.afro-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.afro-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.afro-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

/* ====================
   TIER CARDS - Landing Page
   ==================== */
.afro-tier-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.afro-tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.afro-tier-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), var(--shadow-blue);
    transform: translateY(-8px);
}

.afro-tier-card:hover::before {
    transform: scaleX(1);
}

.afro-tier-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.afro-tier-amount {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

/* ====================
   UTILITY CLASSES
   ==================== */
.text-center { text-align: center; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

/* Additional spacing utilities */
.afro-mb-xs { margin-bottom: var(--space-1); }
.afro-mb-sm { margin-bottom: var(--space-2); }
.afro-mb-md { margin-bottom: var(--space-4); }
.afro-mb-lg { margin-bottom: var(--space-6); }
.afro-mb-xl { margin-bottom: var(--space-8); }

/* Section spacing */
.afro-section {
    padding: var(--space-12) 0;
}

/* Text alignment */
.afro-text-center {
    text-align: center;
}

/* Landing page specific */
.afro-hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.afro-tier-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.afro-tier-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

/* ====================
   DARK MODE SUPPORT - Complete Theme
   ==================== */

/* Dark Mode Base Colors */
.dark-mode,
html.dark-mode,
body.dark-mode {
    --white: #0f172a;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #ffffff;

    background: #0f172a;
    color: #f1f5f9;
}

/* Navigation Dark Mode */
.dark-mode .afro-nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom-color: #334155;
}

.dark-mode .afro-nav-link {
    color: #cbd5e1;
}

.dark-mode .afro-nav-link:hover,
.dark-mode .afro-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .afro-nav-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .afro-nav-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .afro-nav-btn-primary {
    background: var(--primary);
    color: white;
}

.dark-mode .afro-nav-user-avatar {
    background: rgba(0, 102, 255, 0.15);
    color: #3385FF;
    border-color: rgba(51, 133, 255, 0.3);
}

.dark-mode .afro-nav-user-name {
    color: #e2e8f0;
}

.dark-mode .afro-nav-toggle {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .afro-nav-mobile {
    background: #1e293b;
    border-top-color: #334155;
}

.dark-mode .afro-nav-mobile-link {
    color: #cbd5e1;
    border-bottom-color: #334155;
}

.dark-mode .afro-nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Hero Section Dark Mode */
.dark-mode .afro-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.dark-mode .afro-hero-title,
.dark-mode .afro-hero h1 {
    color: #ffffff;
}

.dark-mode .afro-hero-subtitle,
.dark-mode .afro-hero p {
    color: #cbd5e1;
}

/* Cards Dark Mode */
.dark-mode .afro-card,
.dark-mode .afro-project-card,
.dark-mode .afro-participation-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

.dark-mode .afro-card:hover,
.dark-mode .afro-project-card:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: #475569;
}

.dark-mode .afro-card-title,
.dark-mode .afro-project-title {
    color: #f1f5f9;
}

.dark-mode .afro-card-text,
.dark-mode .afro-project-description {
    color: #cbd5e1;
}

/* Stats Dark Mode */
.dark-mode .afro-stat-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

.dark-mode .afro-stat-value {
    color: #ffffff;
}

.dark-mode .afro-stat-label {
    color: #94a3b8;
}

.dark-mode .afro-stat-number {
    /* Override gradient transparency for dark mode */
    -webkit-text-fill-color: #ffffff;
    background: none;
    color: #ffffff;
}

.dark-mode .afro-stat-number.success {
    -webkit-text-fill-color: #34D399;
    background: none;
    color: #34D399;
}

.dark-mode .afro-stat-text {
    color: #cbd5e1;
}

/* Badge Dark Mode */
.dark-mode .afro-badge,
.dark-mode .afro-tier-badge {
    background: rgba(0, 102, 255, 0.15);
    color: #60a5fa;
}

.dark-mode .afro-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.dark-mode .afro-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.dark-mode .afro-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Section Headers Dark Mode */
.dark-mode .afro-section-title,
.dark-mode .afro-section h2,
.dark-mode h1, .dark-mode h2, .dark-mode h3, 
.dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: #f1f5f9;
}

.dark-mode .afro-section-subtitle {
    color: #94a3b8;
}

/* Info Cards Dark Mode */
.dark-mode .afro-info-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

.dark-mode .afro-info-label {
    color: #94a3b8;
}

.dark-mode .afro-info-value {
    color: #f1f5f9;
}

/* Alert Dark Mode */
.dark-mode .afro-alert {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
    color: #cbd5e1;
}

.dark-mode .afro-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.dark-mode .afro-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.dark-mode .afro-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.dark-mode .afro-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Form Elements Dark Mode */
.dark-mode .afro-input,
.dark-mode .afro-select,
.dark-mode .afro-textarea {
    background: rgba(30, 41, 59, 0.5);
    border-color: #475569;
    color: #f1f5f9;
}

.dark-mode .afro-input:focus,
.dark-mode .afro-select:focus,
.dark-mode .afro-textarea:focus {
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--primary);
}

.dark-mode .afro-input::placeholder {
    color: #64748b;
}

.dark-mode .afro-label {
    color: #cbd5e1;
}

/* Table Dark Mode */
.dark-mode .afro-table {
    background: rgba(30, 41, 59, 0.3);
    border-color: #334155;
}

.dark-mode .afro-table thead {
    background: rgba(30, 41, 59, 0.5);
    border-bottom-color: #475569;
}

.dark-mode .afro-table th {
    color: #94a3b8;
}

.dark-mode .afro-table td {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

.dark-mode .afro-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Progress Bar Dark Mode */
.dark-mode .afro-progress {
    background: rgba(30, 41, 59, 0.5);
}

.dark-mode .afro-progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* Modal Dark Mode */
.dark-mode .modal-content {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .modal-header {
    border-bottom-color: #334155;
}

.dark-mode .modal-title {
    color: #f1f5f9;
}

.dark-mode .modal-body {
    color: #cbd5e1;
}

.dark-mode .modal-footer {
    border-top-color: #334155;
}

.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Tier Cards Dark Mode */
.dark-mode .afro-tier-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

.dark-mode .afro-tier-card:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: #475569;
}

.dark-mode .afro-tier-price {
    color: #ffffff;
}

/* Dividers Dark Mode */
.dark-mode .afro-divider,
.dark-mode hr {
    border-color: #334155;
}

/* Links Dark Mode */
.dark-mode a:not(.afro-btn):not(.afro-nav-link) {
    color: #60a5fa;
}

.dark-mode a:not(.afro-btn):not(.afro-nav-link):hover {
    color: #93c5fd;
}

/* Borders & Shadows Dark Mode */
.dark-mode .afro-border {
    border-color: #334155;
}

/* Text Colors Dark Mode */
.dark-mode .text-muted {
    color: #94a3b8 !important;
}

.dark-mode .text-primary {
    color: #60a5fa !important;
}

/* Background Colors Dark Mode */
.dark-mode .bg-light {
    background-color: #1e293b !important;
}

.dark-mode .bg-white {
    background-color: #0f172a !important;
}

/* Scrollbar Dark Mode */
.dark-mode ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.dark-mode ::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 5px;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Smooth transitions for theme change */
*,
*::before,
*::after {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Override transitions for animations */
.afro-btn,
.afro-nav-link,
.afro-card {
    transition: all 0.3s ease;
}

/* ====================
   DARK MODE FIXES - Inline Styles & Text
   ==================== */

/* Fix ALL white backgrounds in dark mode */
.dark-mode [style*="background: white"],
.dark-mode [style*="background:white"] {
    background: rgba(30, 41, 59, 0.5) !important;
}

/* Fix text on white backgrounds */
.dark-mode [style*="background: white"] *,
.dark-mode [style*="background:white"] * {
    color: #e2e8f0 !important;
}

/* Fix headings in white bg containers */
.dark-mode [style*="background: white"] h1,
.dark-mode [style*="background: white"] h2,
.dark-mode [style*="background: white"] h3,
.dark-mode [style*="background: white"] h4,
.dark-mode [style*="background: white"] h5,
.dark-mode [style*="background: white"] h6 {
    color: #f1f5f9 !important;
}

/* Fix slot cards */
.dark-mode .slot-card {
    background: rgba(30, 41, 59, 0.5) !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

.dark-mode .slot-card * {
    color: #e2e8f0 !important;
}

.dark-mode .slot-card h3,
.dark-mode .slot-card h4 {
    color: #f1f5f9 !important;
}

/* Fix project header */
.dark-mode .project-header-flex {
    color: #f1f5f9 !important;
}

.dark-mode .project-header-flex * {
    color: #e2e8f0 !important;
}

/* Fix calculator and forms */
.dark-mode input[type="number"],
.dark-mode input[type="text"],
.dark-mode input[type="email"],
.dark-mode select,
.dark-mode textarea {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: #64748b !important;
}

/* Fix contribution summary boxes */
.dark-mode [style*="background: white"][style*="padding"] {
    background: rgba(30, 41, 59, 0.5) !important;
}

/* Fix wallet balance displays */
.dark-mode .wallet-balance,
.dark-mode [class*="balance"] {
    color: #f1f5f9 !important;
}

/* Fix labels */
.dark-mode label {
    color: #cbd5e1 !important;
}

/* Fix contribution details */
.dark-mode [style*="font-weight: 600"] {
    color: #e2e8f0 !important;
}

.dark-mode [style*="font-weight: 700"] {
    color: #f1f5f9 !important;
}

/* Fix slot info */
.dark-mode [class*="slot"] h4,
.dark-mode [class*="slot"] h3 {
    color: #f1f5f9 !important;
}

.dark-mode [class*="slot"] p,
.dark-mode [class*="slot"] span {
    color: #cbd5e1 !important;
}

/* Fix enrollment modal */
.dark-mode #enrollmentModal [style*="background: white"] {
    background: #1e293b !important;
}

.dark-mode #enrollmentModal {
    background: rgba(15, 23, 42, 0.95) !important;
}

/* Fix calculator modal */
.dark-mode #calculatorModal [style*="background: white"] {
    background: #1e293b !important;
}

.dark-mode #calculatorModal {
    background: rgba(15, 23, 42, 0.95) !important;
}

/* Fix payment summary */
.dark-mode [style*="background: white"][style*="border-radius"] div {
    color: #e2e8f0 !important;
}

/* Fix participation report cards */
.dark-mode .participation-card,
.dark-mode [class*="participation"] {
    background: rgba(30, 41, 59, 0.5) !important;
    border-color: #334155 !important;
}

.dark-mode .participation-card * {
    color: #e2e8f0 !important;
}

.dark-mode .participation-card h3,
.dark-mode .participation-card h4 {
    color: #f1f5f9 !important;
}

/* Fix minimum amount text */
.dark-mode [style*="Minimum"] {
    color: #cbd5e1 !important;
}

/* Fix "OR" divider */
.dark-mode [style*="position: relative"][style*="background: white"] {
    background: transparent !important;
    color: #94a3b8 !important;
}

/* Fix checkboxes and their labels */
.dark-mode input[type="checkbox"] + label {
    color: #cbd5e1 !important;
}

/* Fix terms text */
.dark-mode [style*="line-height: 1.8"] {
    color: #cbd5e1 !important;
}

/* Fix stat cards in participation pages */
.dark-mode [class*="stat"] {
    background: rgba(30, 41, 59, 0.5) !important;
    border-color: #334155 !important;
}

.dark-mode [class*="stat"] * {
    color: #e2e8f0 !important;
}

/* Fix tier pricing */
.dark-mode .afro-tier-price {
    color: #ffffff !important;
}

/* Fix all paragraph text in white containers */
.dark-mode [style*="background: white"] p {
    color: #cbd5e1 !important;
}

/* Fix all span text in white containers */
.dark-mode [style*="background: white"] span:not([style*="color: white"]) {
    color: #cbd5e1 !important;
}

/* Fix available slots display */
.dark-mode [style*="Available Slots"],
.dark-mode [style*="Slots Filled"] {
    color: #f1f5f9 !important;
}

/* Fix cycle dropdown */
.dark-mode select option {
    background: #1e293b;
    color: #f1f5f9;
}

/* Fix contribution breakdown */
.dark-mode [style*="Contribution:"],
.dark-mode [style*="Dev Fee"],
.dark-mode [style*="Total Payment"],
.dark-mode [style*="Projected"] {
    color: #e2e8f0 !important;
}

/* Fix small text */
.dark-mode small {
    color: #94a3b8 !important;
}

/* Fix bold amounts */
.dark-mode strong {
    color: #f1f5f9 !important;
}

/* Icons on colored backgrounds should stay white */
.dark-mode [style*="background: var(--primary)"],
.dark-mode [style*="background: var(--success)"],
.dark-mode [style*="background: var(--danger)"],
.dark-mode [style*="background: var(--warning)"] {
    color: white !important;
}

.dark-mode [style*="background: var(--primary)"] *,
.dark-mode [style*="background: var(--success)"] *,
.dark-mode [style*="background: var(--danger)"] *,
.dark-mode [style*="background: var(--warning)"] * {
    color: white !important;
}

/* Fix gray text */
.dark-mode [style*="color: var(--gray-600)"],
.dark-mode [style*="color: var(--gray-700)"] {
    color: #94a3b8 !important;
}

/* Fix any remaining white text */
.dark-mode [style*="color: white"]:not([style*="background: var"]) {
    color: #f1f5f9 !important;
}

/* ====================
   MOBILE OPTIMIZATION - Landing Page
   Enhanced for better mobile experience
   ==================== */

/* Tablet Devices (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Hero Section Tablet */
    .afro-hero-2027 {
        min-height: 70vh;
        padding: var(--space-16) 0 var(--space-12);
    }

    .afro-hero-content {
        width: 100%;
        max-width: 1000px;
        padding: 0 var(--space-lg);
    }

    .afro-hero-title-2027 {
        font-size: clamp(2rem, 6vw, 3.5rem);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .afro-hero-subtitle-2027 {
        font-size: 1.125rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .afro-hero-visual {
        display: none; /* Hide floating cards on tablet */
    }

    /* Bento Grid Tablet */
    .afro-bento-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .afro-bento-large,
    .afro-bento-medium,
    .afro-bento-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .afro-hero-2027 {
        padding: var(--space-12) 0 var(--space-8);
        min-height: auto;
    }
    
    .afro-hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--space-4);
    }

    .afro-hero-badge {
        font-size: 0.75rem;
        padding: var(--space-2) var(--space-3);
    }

    .afro-hero-title-2027 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: var(--space-4);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .afro-hero-subtitle-2027 {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: var(--space-6);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* CTA Buttons Stack on Mobile */
    .afro-hero-cta-2027 {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .afro-btn-2027 {
        width: 100%;
        justify-content: center;
        padding: var(--space-4) var(--space-6);
        font-size: 0.9375rem;
    }
    
    /* Trust Indicators Mobile */
    .afro-trust-indicators {
        flex-direction: column;
        gap: var(--space-3);
        margin-top: var(--space-6);
    }
    
    .afro-trust-item {
        font-size: 0.875rem;
        padding: var(--space-2);
    }
    
    /* Hero Visual Mobile */
    .afro-hero-visual {
        display: none; /* Hide floating cards on mobile for cleaner look */
    }
    
    /* Section Headers Mobile */
    .afro-section-2027 {
        padding: var(--space-12) 0;
    }
    
    .afro-section-header-2027 {
        padding: 0 var(--space-4);
        margin-bottom: var(--space-8);
    }
    
    .afro-section-eyebrow {
        font-size: 0.75rem;
    }
    
    .afro-section-title-2027 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.2;
    }
    
    .afro-section-description {
        font-size: 0.9375rem;
    }
    
    /* Bento Grid Mobile */
    .afro-bento-grid {
        padding: 0 var(--space-4);
        gap: var(--space-3);
    }
    
    .afro-bento-card {
        padding: var(--space-5);
    }
    
    .afro-bento-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .afro-bento-card h3 {
        font-size: 1.125rem;
    }
    
    .afro-bento-card p {
        font-size: 0.875rem;
    }
    
    /* Stats Mobile */
    .afro-stats-banner {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        padding: var(--space-4);
    }
    
    .afro-stat-value {
        font-size: 1.5rem;
    }
    
    .afro-stat-label {
        font-size: 0.75rem;
    }
    
    /* Container Mobile Padding */
    .afro-container {
        padding: 0 var(--space-4);
    }
    
    /* Cards Mobile */
    .afro-glass-card {
        padding: var(--space-5);
        border-radius: var(--radius-xl);
    }
    
    .afro-card-header,
    .afro-card-body,
    .afro-card-footer {
        padding: var(--space-5);
    }
}

@media (max-width: 640px) {
    /* Extra Small Devices */
    .afro-hero-2027 {
        padding: var(--space-10) 0 var(--space-6);
    }
    
    .afro-hero-title-2027 {
        font-size: 1.75rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .afro-hero-subtitle-2027 {
        font-size: 0.9375rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .afro-section-2027 {
        padding: var(--space-10) 0;
    }
    
    .afro-section-title-2027 {
        font-size: 1.5rem;
    }
    
    .afro-bento-card {
        padding: var(--space-4);
    }
    
    .afro-container {
        padding: 0 var(--space-3);
    }
    
    /* Navigation Mobile */
    .afro-nav-container {
        padding: 0 var(--space-3);
    }
    
    .afro-nav-logo {
        height: 50px;
    }
    
    .afro-nav-title {
        font-size: 1.125rem;
    }
    
    /* Buttons smaller on tiny screens */
    .afro-btn-2027 {
        padding: var(--space-3) var(--space-5);
        font-size: 0.875rem;
    }
    
    /* Trust indicators even more compact */
    .afro-trust-item {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    /* Very Small Devices - Extra Optimization */
    .afro-hero-title-2027 {
        font-size: 1.5rem;
        line-height: 1.3;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .afro-hero-subtitle-2027 {
        font-size: 0.875rem;
        line-height: 1.4;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .afro-hero-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
    }
    
    .afro-section-eyebrow {
        font-size: 0.6875rem;
    }
    
    .afro-section-title-2027 {
        font-size: 1.375rem;
    }
    
    .afro-section-description {
        font-size: 0.875rem;
    }
    
    .afro-bento-card h3 {
        font-size: 1rem;
    }
    
    .afro-bento-card p {
        font-size: 0.8125rem;
    }
    
    .afro-container {
        padding: 0 var(--space-2);
    }
    
    .afro-bento-grid {
        padding: 0 var(--space-2);
        gap: var(--space-2);
    }
    
    .afro-section-header-2027 {
        padding: 0 var(--space-2);
    }
    
    .afro-hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--space-2);
        text-align: center;
        margin: 0 auto;
    }
}

/* Prevent horizontal scroll on all devices */
.afroxtend-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.afro-hero-2027,
.afro-section-2027 {
    overflow-x: hidden;
    max-width: 100%;
}

/* Ensure images are responsive */
.afroxtend-page img {
    max-width: 100%;
    height: auto;
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .afro-btn-2027,
    .afro-nav-link,
    .afro-nav-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ====================
   ADDITIONAL MOBILE ENHANCEMENTS
   ==================== */

/* Fix for very small devices - improved readability */
@media (max-width: 375px) {
    .afro-hero-title-2027 {
        font-size: 1.375rem !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .afro-hero-subtitle-2027 {
        font-size: 0.8125rem !important;
        margin-bottom: var(--space-4);
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .afro-btn-2027 {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .afro-btn-xl {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .afro-notice-2027 {
        flex-direction: column;
        gap: var(--space-3);
        padding: var(--space-4);
    }
    
    .afro-notice-icon {
        width: 40px;
        height: 40px;
    }
    
    .afro-notice-content h4 {
        font-size: 0.9375rem;
    }
    
    .afro-notice-content p {
        font-size: 0.75rem;
    }
}

/* Landscape mobile - better use of horizontal space */
@media (max-width: 812px) and (orientation: landscape) {
    .afro-hero-2027 {
        min-height: auto;
        padding: var(--space-8) 0;
    }
    
    .afro-section-2027 {
        padding: var(--space-6) 0;
    }
    
    .afro-hero-cta-2027 {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Fix cycle comparison table on mobile */
@media (max-width: 768px) {
    .afro-comparison-grid {
        font-size: 0.75rem;
        gap: 0.5px;
    }
    
    .afro-comparison-header,
    .afro-comparison-row-label,
    .afro-comparison-cell {
        padding: var(--space-2) var(--space-1);
    }
    
    .afro-comparison-row-label {
        font-size: 0.6875rem;
    }
}

/* Process flow improvements for mobile */
@media (max-width: 768px) {
    .afro-process-step {
        margin-bottom: var(--space-6);
    }
    
    .afro-step-number-2027 {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .afro-step-content-2027 {
        padding: var(--space-4);
        padding-top: calc(var(--space-4) + 15px);
    }
    
    .afro-step-content-2027 h3 {
        font-size: 1rem;
    }
    
    .afro-step-content-2027 p {
        font-size: 0.8125rem;
    }
    
    .afro-step-icon-2027 {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* Benefits grid mobile optimization */
@media (max-width: 768px) {
    .afro-benefit-card {
        padding: var(--space-4);
    }
    
    .afro-benefit-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .afro-benefit-card h3 {
        font-size: 1rem;
    }
    
    .afro-benefit-card p {
        font-size: 0.8125rem;
    }
}

/* CTA final section mobile optimization */
@media (max-width: 768px) {
    .afro-cta-final-2027 {
        padding: var(--space-6);
    }
    
    .afro-cta-content h2 {
        font-size: 1.5rem;
    }
    
    .afro-cta-content p {
        font-size: 0.9375rem;
    }
    
    .afro-cta-actions {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .afro-cta-stat-item {
        padding: var(--space-3);
    }
    
    .afro-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .afro-stat-number {
        font-size: 1.25rem;
    }
}

/* Cycle cards mobile optimization */
@media (max-width: 768px) {
    .afro-cycle-card-2027 {
        padding: var(--space-4);
    }
    
    .afro-cycle-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .afro-cycle-title {
        font-size: 1.375rem;
    }
    
    .afro-highlight-value {
        font-size: 2rem;
    }
    
    .afro-feature-item {
        gap: var(--space-2);
    }
    
    .afro-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .afro-featured-badge {
        font-size: 0.625rem;
        padding: 0.375rem 0.875rem;
    }
}

/* Pill improvements for mobile */
@media (max-width: 768px) {
    .afro-pill {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .afro-pill i {
        font-size: 0.75rem;
    }
}

/* Improve spacing on mobile */
@media (max-width: 768px) {
    .afro-section-2027 {
        padding: var(--space-10) 0;
    }
    
    .afro-section-header-2027 {
        margin-bottom: var(--space-8);
    }
    
    .afro-hero-2027 {
        padding: var(--space-12) 0 var(--space-8);
    }
}

/* Fix for touch scrolling on iOS */
.afroxtend-page {
    -webkit-overflow-scrolling: touch;
}

/* Prevent text selection issues on mobile */
.afro-btn-2027,
.afro-pill,
.afro-nav-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Fix for safe area on notched devices (iPhone X+) */
@supports (padding: max(0px)) {
    .afro-hero-content,
    .afro-container {
        padding-left: max(var(--space-4), env(safe-area-inset-left));
        padding-right: max(var(--space-4), env(safe-area-inset-right));
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .afro-hero-content {
        text-align: center;
    }
}

/* Accessibility: Ensure sufficient contrast */
@media (prefers-contrast: high) {
    .afro-text-gradient,
    .afro-text-gradient-animated,
    .afro-text-gradient-gold {
        -webkit-text-fill-color: currentColor;
        background: none;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .afro-hero-gradient,
    .afro-floating-card,
    .afro-text-gradient-animated,
    .afro-bento-card,
    .afro-cycle-card-2027,
    .afro-process-step,
    .afro-benefit-card {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark mode support for mobile devices */
@media (prefers-color-scheme: dark) {
    .afroxtend-page {
        background: #0f172a;
        color: #f1f5f9;
    }
    
    .afro-hero-badge {
        background: rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.3);
    }
}


/* ====================
   CRITICAL MOBILE FIXES - Comparison Table & CTA
   ==================== */

/* Comparison Table - Better Mobile Display */
@media (max-width: 480px) {
    .afro-cycle-comparison-table {
        padding: var(--space-4);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .afro-cycle-comparison-table h3 {
        font-size: 1rem !important;
        margin-bottom: var(--space-4) !important;
        white-space: normal;
    }
    
    .afro-comparison-grid {
        grid-template-columns: 120px 90px 90px;
        gap: 1px;
        font-size: 0.6875rem;
        min-width: 300px;
    }
    
    .afro-comparison-header,
    .afro-comparison-row-label,
    .afro-comparison-cell {
        padding: 0.5rem 0.25rem;
        line-height: 1.3;
    }
    
    .afro-comparison-row-label {
        font-size: 0.625rem;
        word-wrap: break-word;
    }
    
    .afro-comparison-cell {
        font-size: 0.6875rem;
    }
    
    .afro-comparison-header {
        font-size: 0.6875rem;
        padding: 0.375rem 0.25rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .afro-comparison-grid {
        grid-template-columns: 100px 80px 80px;
        font-size: 0.625rem;
    }
    
    .afro-comparison-row-label {
        font-size: 0.5625rem;
    }
    
    .afro-comparison-cell {
        font-size: 0.625rem;
    }
}

/* CTA Final Section - Stack on Mobile */
@media (max-width: 768px) {
    .afro-cta-final-2027 {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: var(--space-6) var(--space-4);
    }
    
    .afro-cta-visual {
        display: block;
        width: 100%;
    }
    
    .afro-cta-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-3);
        width: 100%;
    }
    
    .afro-cta-stat-item {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
}

/* Even better mobile optimization for CTA */
@media (max-width: 480px) {
    .afro-cta-final-2027 {
        border-radius: 20px;
        padding: var(--space-5) var(--space-3);
    }
    
    .afro-cta-content h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .afro-cta-content p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .afro-cta-actions {
        gap: var(--space-2);
    }
    
    .afro-btn-xl {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
    
    .afro-cta-note {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .afro-cta-stats {
        gap: var(--space-2);
    }
    
    .afro-cta-stat-item {
        padding: var(--space-2) var(--space-3);
        gap: var(--space-2);
    }
    
    .afro-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
        flex-shrink: 0;
    }
    
    .afro-stat-number {
        font-size: 1.125rem;
        line-height: 1.2;
    }
    
    .afro-stat-text {
        font-size: 0.75rem;
    }
}

/* Very small devices - extra compact */
@media (max-width: 375px) {
    .afro-cta-content h2 {
        font-size: 1.125rem;
    }
    
    .afro-cta-content p {
        font-size: 0.8125rem;
    }
    
    .afro-btn-xl {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .afro-cta-stat-item {
        padding: var(--space-2);
    }
}

/* Add scroll hint for comparison table on mobile */
@media (max-width: 480px) {
    .afro-cycle-comparison-table::after {
        content: '← Swipe to see more →';
        display: block;
        text-align: center;
        font-size: 0.625rem;
        color: rgba(255, 255, 255, 0.5);
        margin-top: var(--space-2);
        font-style: italic;
    }
}

/* Hide scroll hint on larger screens */
@media (min-width: 481px) {
    .afro-cycle-comparison-table::after {
        display: none;
    }
}


/* ====================
   FIX CTA CENTERING & OVERFLOW ON MOBILE
   ==================== */

/* Ensure proper container width on mobile */
@media (max-width: 768px) {
    .afro-cta-final-2027 {
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .afro-cta-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .afro-cta-content h2,
    .afro-cta-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .afro-cta-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .afro-cta-note {
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0 var(--space-2);
        box-sizing: border-box;
        flex-wrap: wrap;
    }
    
    .afro-cta-visual {
        width: 100%;
        max-width: 100%;
    }
    
    .afro-cta-stats {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .afro-cta-stat-item {
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

/* Extra tight containment for small screens */
@media (max-width: 480px) {
    .afro-section-2027 {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }
    
    .afro-container {
        max-width: 100%;
        padding-left: var(--space-2);
        padding-right: var(--space-2);
        box-sizing: border-box;
    }
    
    .afro-cta-final-2027 {
        padding: var(--space-4) var(--space-2);
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .afro-cta-content {
        padding: 0 var(--space-1);
    }
    
    .afro-cta-content h2 {
        font-size: 1.125rem;
        line-height: 1.3;
        padding: 0 var(--space-1);
        word-wrap: break-word;
    }
    
    .afro-cta-content p {
        font-size: 0.8125rem;
        line-height: 1.5;
        padding: 0 var(--space-1);
        word-wrap: break-word;
    }
    
    .afro-cta-note {
        font-size: 0.6875rem;
        padding: 0 var(--space-1);
        display: flex;
        align-items: flex-start;
        gap: var(--space-1);
        text-align: left;
    }
    
    .afro-cta-note i {
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    .afro-cta-note span {
        flex: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .afro-cta-stats {
        padding: 0 var(--space-1);
    }
    
    .afro-cta-stat-item {
        width: calc(100% - var(--space-2));
        margin: 0 auto;
        padding: var(--space-2);
    }
}

/* Very small devices - iPhone SE, etc */
@media (max-width: 375px) {
    .afro-cta-final-2027 {
        padding: var(--space-3) var(--space-1);
    }
    
    .afro-cta-content h2 {
        font-size: 1rem;
        padding: 0;
    }
    
    .afro-cta-content p {
        font-size: 0.75rem;
        padding: 0;
    }
    
    .afro-cta-note {
        font-size: 0.625rem;
        padding: 0;
    }
    
    .afro-btn-xl {
        font-size: 0.75rem;
        padding: 0.625rem 1rem;
    }
    
    .afro-cta-stat-item {
        width: 100%;
        padding: var(--space-1) var(--space-2);
        gap: var(--space-1);
    }
    
    .afro-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .afro-stat-number {
        font-size: 1rem;
    }
    
    .afro-stat-text {
        font-size: 0.6875rem;
    }
}

/* Prevent any overflow */
.afro-cta-final-2027 * {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .afro-cta-final-2027,
    .afro-cta-content,
    .afro-cta-visual,
    .afro-cta-stats,
    .afro-cta-stat-item,
    .afro-cta-note {
        overflow-x: hidden;
    }
}


/* ====================
   FIX TEXT OVERFLOW IN CARDS
   ==================== */

/* Ensure all card text stays within boundaries */
.afro-bento-card h3,
.afro-benefit-card h3,
.afro-cycle-title,
.afro-feature-content h4,
.afro-step-content-2027 h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.afro-bento-card p,
.afro-benefit-card p,
.afro-cycle-intro,
.afro-feature-content p,
.afro-step-content-2027 p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Stat cards text containment */
.afro-stat-value,
.afro-stat-label,
.afro-stat-number,
.afro-stat-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Trust indicators */
.afro-trust-item {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Pills text */
.afro-pill {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .afro-pill {
        white-space: normal;
        word-wrap: break-word;
    }
}

/* Notice content */
.afro-notice-content h4,
.afro-notice-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* All cards should contain their content */
.afro-bento-card,
.afro-benefit-card,
.afro-cycle-card-2027,
.afro-step-content-2027,
.afro-cta-stat-item,
.afro-floating-card {
    overflow: hidden;
}

/* Ensure no horizontal scroll on any section */
@media (max-width: 768px) {
    .afro-bento-card,
    .afro-benefit-card,
    .afro-cycle-card-2027,
    .afro-step-content-2027 {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
}

@media (max-width: 480px) {
    .afro-bento-card,
    .afro-benefit-card,
    .afro-cycle-card-2027,
    .afro-step-content-2027 {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }
}


/* ====================
   CTA SECTION - SINGLE COLUMN (NO STATS)
   ==================== */

/* Override the grid layout - single column only */
.afro-cta-final-2027 {
    display: block !important;
    max-width: 800px;
    margin: 0 auto;
}

.afro-cta-content {
    width: 100%;
}

/* Center everything in CTA */
.afro-cta-content h2,
.afro-cta-content p,
.afro-cta-actions,
.afro-cta-note {
    text-align: center;
}

.afro-cta-actions {
    justify-content: center;
}

