
:root {
    --primary: #023436;
    --primary-dark: #012629;
    --secondary: #D9FF43;
    --text: #ffffff;
    --text-muted: #d1d5db;
    --bg-dark: #023436;
    --bg-card: #034a4d;
    --bg-light: #04696d;
    --success: #D9FF43;
    --danger: #ef4444;
    --warning: #f59e0b;
    --neutral: #94a3b8;
}

body.light-theme {
    --primary: #D9FF43;
    --primary-dark: #b6e639;
   --secondary: #023436;
    --text: #023436;
    --text-muted: #475569;
    --bg-dark: #ffffff;
    --bg-card: #f9fafb;
    --bg-light: #f1f5f9;
    --success: #023436;
    --danger: #ef4444;
    --warning: #f59e0b;
    --neutral: #94a3b8;
}

body:not(.light-theme) {
    --primary: #023436;
    --primary-dark: #012629;
    --secondary: #D9FF43;
    --text: #ffffff;
    --text-muted: #d1d5db;
    --bg-dark: #023436;
    --bg-card: #034a4d;
    --bg-light: #04696d;
    --success: #D9FF43;
    --danger: #ef4444;
    --warning: #f59e0b;
    --neutral: #94a3b8;
}


.poolfx-header {
    --primary: #023436;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    font-size: 1rem;
}

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

#livesignals.container {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    
   
}
.header-texter{
    font-size: 1.25rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.signal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.signal-dot-buy {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e, 0 0 16px rgba(34,197,94,0.7);
    animation: signal-dot-live-buy 3s ease-in-out infinite;
}
.signal-dot-sell {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239,68,68,0.7);
    animation: signal-dot-live-sell 3s ease-in-out infinite;
}
@keyframes signal-dot-live-buy {
    0%, 100% { box-shadow: 0 0 8px #22c55e, 0 0 16px rgba(34,197,94,0.7); transform: translateY(0); }
    50% { box-shadow: 0 0 16px #22c55e, 0 0 32px rgba(34,197,94,0.9); transform: translateY(-3px); }
}
@keyframes signal-dot-live-sell {
    0%, 100% { box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239,68,68,0.7); transform: translateY(0); }
    50% { box-shadow: 0 0 16px #ef4444, 0 0 32px rgba(239,68,68,0.9); transform: translateY(-3px); }
}

header {
    background-color: var(--primary);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100vw;
    max-width: 100%;
   
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        
        
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu.active {
        display: flex;

      
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
 
    
    /* Move theme toggle to the header in mobile view */
    .header-actions {
        display: flex;
        align-items: center;
        margin-right: 1.5%;
    }
    .card{
        margin-top: -5%;
    }
}

/* Adjustment for very small screens */
@media (max-width: 380px) {
    .logo {
        font-size: 1.2rem;
    }
}
/* Improved Header Styles for Mobile */
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
display: block;
background: none;
border: none;
color: var(--text);
font-size: 1.5rem;

}

/* Theme Toggle Positioning */
.theme-toggle {
background: none;
border: none;
font-size: 1.25rem;
cursor: pointer;
color: var(--text);
margin-left: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
}

/* Mobile: same size and alignment for header action icons (theme, profile, menu) */
@media (max-width: 768px) {
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }
    .theme-toggle,
    .profile-icon-btn,
    .mobile-menu-toggle {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    .theme-toggle,
    .mobile-menu-toggle {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.9);
    }
    .theme-toggle:hover,
    .mobile-menu-toggle:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.12);
    }
    .theme-toggle {
        margin-left: 0;
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #034a4d 0%, #023436 100%);
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid #D9FF43;
    transition: box-shadow 0.2s, color 0.2s, border-color 0.2s;
}

.mobile-menu a:hover {
    box-shadow: inset 3px 0 0 0 #D9FF43;
    border-color: #D9FF43;
}

/* Profile dropdown */
.profile-dropdown-wrap { position: relative; }
.profile-icon-btn {
    width: 38px; height: 38px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-size: 1.25rem;
}
.profile-icon-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.12);
}
.profile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--bg-light);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    padding: 0.75rem;
    display: none;
    z-index: 150;
}
.profile-dropdown.show { display: block; }
.profile-dropdown-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem;
}
.profile-dropdown-item:last-of-type { border-bottom: none; }
.profile-dropdown-label { color: var(--text-muted); }
.profile-dropdown-value { font-weight: 600; color: var(--text); }
.profile-dropdown-link {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.25rem;
}
.profile-dropdown-link:hover { color: var(--success); }
body:not(.light-theme) .profile-dropdown-link { color: #ffffff; }
body.light-theme .profile-icon-btn {
    color: #1E293B;
    background: rgba(2,52,54,0.05);
    border-color: rgba(2,52,54,0.1);
}
body.light-theme .profile-icon-btn:hover {
    background: rgba(2,52,54,0.1);
    border-color: rgba(2,52,54,0.15);
}
body.light-theme .profile-dropdown { background: #fff; border-color: #e2e8f0; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
body.light-theme .profile-dropdown-item { border-color: #e2e8f0; }
body.light-theme .profile-dropdown-label { color: #64748b; }
body.light-theme .profile-dropdown-value { color: #1E293B; }
body.light-theme .profile-dropdown-link { color: #023436; }
.mobile-menu-profile {
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}
.mobile-profile-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.9rem; }
.mobile-profile-account-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; color: #D9FF43; text-decoration: none; }
body.light-theme .mobile-menu-profile { background: rgba(0,0,0,0.04); }
body.light-theme .mobile-profile-account-link { color: #023436; }
.mobile-menu-theme-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}
.mobile-menu-theme-row span { font-size: 0.9rem; }
.mobile-menu-theme-btn { padding: 0.4rem; border-radius: 0.4rem; background: rgba(255,255,255,0.08); border: 1px solid #D9FF43; color: #fbbf24; }
body.light-theme .mobile-menu-theme-row { background: rgba(0,0,0,0.04); }
body.light-theme .mobile-menu-theme-btn { color: #b45309; border-color: rgba(2,52,54,0.2); }

.mobile-menu a:last-child {
    border-bottom: none;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text);
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.headermain .logo,
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
}
body.light-theme .logo {
    color: #2563eb; 
}
body.light-theme .nav-links a{
    color: #000000 !important; 
}


body:not(.light-theme) .signals-reminder-cta {
    background-color: #ffffff;
    color: #2563eb;
}
body:not(.light-theme) .signals-reminder-close {
    color: #2563eb;
}
body:not(.light-theme) .nav-links a:hover  {
    color: #D9FF43;
}



body:not(.light-theme) .signals-reminder-title{
 color: #023436; 
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #D9FF43;
    box-shadow: inset 0 -2px 0 0 #D9FF43;
}

.status-bar {
    background-color: var(--bg-light);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

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

.market-indicators {
    display: flex;
    gap: 1.5rem;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

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

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.column-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-card);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: fit-content;
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-light);
}

.card-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.timeframe-selector {
    display: flex;
    background-color: var(--bg-light);
    border-radius: 0.25rem;
    overflow: hidden;
}

.timeframe-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.timeframe-btn.active {
    background-color: var(--primary);
    color: var(--text);
}

.signal-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Generate Fresh Signals – same card style as gold unavailable (primary/lime accent) */
.analyze-first-prompt {
    text-align: center;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(145deg, rgba(217, 255, 67, 0.08) 0%, rgba(34, 34, 34, 0.4) 100%);
    border: 1px solid rgba(217, 255, 67, 0.35);
    border-radius: 12px;
    margin: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
body.light-theme .analyze-first-prompt {
    background: linear-gradient(145deg, rgba(217, 255, 67, 0.06) 0%, rgba(249, 250, 251, 0.9) 100%);
    border-color: rgba(2, 52, 54, 0.25);
}
.analyze-first-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(217, 255, 67, 0.25) 0%, rgba(2, 52, 54, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.light-theme .analyze-first-icon-wrap {
    background: linear-gradient(135deg, rgba(217, 255, 67, 0.2) 0%, rgba(2, 52, 54, 0.08) 100%);
}
.analyze-first-icon {
    font-size: 1.75rem;
    line-height: 1;
}
.analyze-first-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text, #f3f4f6);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}
body.light-theme .analyze-first-title { color: #1e293b; }
.analyze-first-text {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.analyze-first-hint {
    font-size: 0.9375rem;
    color: var(--text-muted);
    opacity: 0.9;
    margin: 0;
    line-height: 1.45;
}
.analyze-first-hint strong { color: #D9FF43; }
body.light-theme .analyze-first-hint strong { color: #1E293B; font-weight: 700; }

.signal-card {
    background-color: var(--bg-light);
    border-radius: 0.375rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.signal-buy {
    border-left: 4px solid var(--success);
}

.signal-sell {
    border-left: 4px solid var(--danger);
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.signal-pair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.signal-flags {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

.signal-type {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.signal-buy .signal-type {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.signal-sell .signal-type {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.signal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.signal-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
}

.mini-chart {
    width: 100%;
    height: 50px;
    margin: 0.75rem 0;
    padding: 0 2px;
    background-color: #023436;
    border-radius: 0.25rem;
    position: relative;
    overflow: visible;
}

@media (max-width: 768px) {
    .mini-chart {
        height: 56px;
        margin: 0.75rem 0;
        padding: 0 4px;
    }
}

.signal-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.confidence-bar {
    margin-top: 0.5rem;
    height: 0.5rem;
    background-color: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.confidence-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 1rem;
}

.confidence-high .confidence-fill {
    background-color: var(--success);
}

.confidence-med .confidence-fill {
    background-color: var(--warning);
}

.confidence-low .confidence-fill {
    background-color: var(--danger);
}

/* News list – professional card layout */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: background 0.2s, border-color 0.2s;
}
.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(217, 255, 67, 0.15);
}

.news-image {
    width: 72px;
    min-width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-weight: 600;
    font-size: 1.0625rem;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #D9FF43;
    text-decoration: none;
    line-height: 1.35;
}
.news-title:hover {
    color: #10b981;
}
body.light-theme .news-title {
    color: #023436;
}
body.light-theme .news-title:hover {
    color: #034a4d;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.news-action {
    color: #D9FF43;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}
.news-action:hover {
    color: #10b981;
}
body.light-theme .news-action {
    color: #023436;
}
body.light-theme .news-action:hover {
    color: #034a4d;
}

/* Theme-aware news item cards */
body.light-theme .news-item {
    background: rgba(2, 52, 54, 0.03);
    border-color: rgba(2, 52, 54, 0.08);
}
body.light-theme .news-item:hover {
    background: rgba(2, 52, 54, 0.06);
    border-color: rgba(2, 52, 54, 0.15);
}

/* Mobile: stack news items vertically */
@media (max-width: 640px) {
    .news-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    .news-image {
        width: 100%;
        min-width: 100%;
        height: 140px;
    }
    .news-title { font-size: 1rem; }
    .news-meta { flex-direction: column; align-items: flex-start; }
}

.leaderboard-list {
    margin-top: 1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.leaderboard-rank {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    font-weight: 600;
    margin-right: 0.75rem;
}

.rank-1 {
    background-color: #fbbf24;
    color: #000;
}

.rank-2 {
    background-color: #94a3b8;
    color: #000;
}

.rank-3 {
    background-color: #b45309;
    color: #fff;
}

.leaderboard-user {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
}

.user-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.leaderboard-profit {
    font-weight: 600;
    margin-left: auto;
}

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

footer {
    background-color: var(--primary);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #D9FF43;
}
.copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}
/* Light theme footer: white text, solid (not transparent) */
body.light-theme .footer-links a {
    color: #ffffff;
}
body.light-theme .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}
body.light-theme .copyright {
    color: #ffffff;
}

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

@media (max-width: 768px) {
    .status-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .market-indicators {
        flex-wrap: wrap;
    }
    
    .signal-details {
        grid-template-columns: 1fr 1fr;
    }
    .logo{
        padding-left: 2%;
    }
    .card{
        width: 100%;
        max-width: 100%;
    }
    .datetime{
        width: 100%;
        max-width: 100%;
    }

}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    
    .signal-details {
        grid-template-columns: 1fr;
    }
}

/* Dark theme: mobile menu matches header */
body:not(.light-theme) .mobile-menu {
    background: linear-gradient(180deg, #034a4d 0%, #023436 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.generate-signals-btn {
    background-color: var(--primary);
    color: var(--text);
    border: none;
    border-radius: 0.375rem;
    padding: 0.825rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-signals-btn:hover {
    background-color: var(--primary-dark);
}

.generate-signals-btn:active {
    transform: scale(0.97);
}

.generate-signals-btn .generate-btn-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: #ffffff;
}
#generate-short-term .generate-btn-icon { color: #F44336; }
#generate-long-term .generate-btn-icon { color: #ffffff; }

/* Add a loading state */
.generate-signals-btn.loading {
    position: relative;
    color: transparent;
}

.generate-signals-btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--text);
    border-radius: 50%;
    border-top-color: transparent;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
body.light-theme .generate-signals-btn {
    color: white !important;
}

.datetime {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-light);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.datetime:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.datetime::before {
    content: '🕒';
    font-size: 1rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

#current-datetime {
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
}

/* For light theme */
body.light-theme .datetime {
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Animation for time update */
@keyframes timeUpdate {
    0% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.time-update {
    animation: timeUpdate 0.3s ease;
}
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .copyright {
        order: -1; /* Moves copyright to top in mobile */
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-links a {
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }
}

/* Footer modals (Terms, Support) */
.footer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}
.footer-modal-overlay.show {
    display: flex;
}
.footer-modal {
    background: var(--bg-card);
    border-radius: 12px;
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
body.light-theme .footer-modal {
    background: #fff;
    border-color: rgba(2, 52, 54, 0.12);
}
.footer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.light-theme .footer-modal-header {
    border-color: #e2e8f0;
}
.footer-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}
body.light-theme .footer-modal-header h3 { color: #1e293b; }
.footer-modal-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
    padding: 0.25rem;
}
.footer-modal-close:hover {
    opacity: 1;
}
.footer-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 70px);
}
.footer-modal-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}
body.light-theme .footer-modal-intro { color: #475569; }
.footer-modal-list {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
}
body.light-theme .footer-modal-list { color: #475569; }
.footer-modal-list li { margin-bottom: 0.75rem; }
.footer-modal-outro {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}
.footer-modal-outro a {
    color: var(--primary);
    text-decoration: underline;
}
body.light-theme .footer-modal-outro a { color: #023436; }
.support-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.support-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s;
}
.support-contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}
body.light-theme .support-contact-item {
    background: rgba(2, 52, 54, 0.04);
    border-color: rgba(2, 52, 54, 0.1);
    color: #1e293b;
}
body.light-theme .support-contact-item:hover {
    background: rgba(2, 52, 54, 0.08);
}
.support-icon { font-size: 1.25rem; }
.support-label { font-size: 0.9375rem; color: var(--text-muted); flex-shrink: 0; }
body.light-theme .support-label { color: #64748b; }
.support-value { font-size: 1.0625rem; font-weight: 600; }

.signals-button-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
 
   
}

/* Button Styles */
.generate-signals-btn {
    background-color: var(--primary);
    color: var(--text);
    border: none;
    border-radius: 0.375rem;
    padding: 0.625rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    min-width: 340px;          /* ⬅️ Makes button longer */
    max-width: 100%;           /* ⬅️ Responsive on smaller screens */
}

.generate-signals-btn.short-term {
    background-color: var(--success);
}

.generate-signals-btn.short-term:hover {
    background-color: #0ea271; /* Darker shade of success color */
}

.generate-signals-btn.long-term {
    background-color: var(--primary);
  
}

.generate-signals-btn.long-term:hover {
    background-color: var(--primary-dark);
}

.generate-signals-btn.gold-btn {
    background: linear-gradient(135deg, #c9a227 0%, #b8860b 50%, #9b7509 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

.generate-signals-btn.gold-btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 50%, #b8860b 100%);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
}

/* Gold signals – unavailable / could not load state (better UI) */
.gold-unavailable-card {
    background: linear-gradient(145deg, rgba(184, 134, 11, 0.08) 0%, rgba(34, 34, 34, 0.4) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    margin: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
body.light-theme .gold-unavailable-card {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.06) 0%, rgba(249, 250, 251, 0.9) 100%);
    border-color: rgba(184, 134, 11, 0.4);
}
.gold-unavailable-card .gold-unavailable-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(184, 134, 11, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}
.gold-unavailable-card .gold-unavailable-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text, #f3f4f6);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}
body.light-theme .gold-unavailable-card .gold-unavailable-title { color: #1e293b; }
.gold-unavailable-card .gold-unavailable-message {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.gold-unavailable-card .gold-unavailable-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.9;
    margin: 0 0 1.25rem 0;
    line-height: 1.45;
}
.gold-unavailable-card .gold-retry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.gold-unavailable-card .gold-retry-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45);
}
.gold-unavailable-card .gold-retry-btn:active {
    transform: translateY(0);
}

.generate-signals-btn:hover {
    transform: translateY(-2px);
}

.generate-signals-btn:active {
    transform: scale(0.97);
}

.generate-signals-btn .generate-btn-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: #ffffff;
}
#generate-short-term .generate-btn-icon { color: #F44336; }
#generate-long-term .generate-btn-icon { color: #ffffff; }

/* Add a loading state */
.generate-signals-btn.loading {
    position: relative;
    color: transparent;
}

.generate-signals-btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--text);
    border-radius: 50%;
    border-top-color: transparent;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

/* Desktop - larger button height and padding */
@media (min-width: 769px) {
    .generate-signals-btn {
        padding: 1rem 1.5rem;
        min-height: 54px;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .card-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .signals-button-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .generate-signals-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

/* For very small screens */
@media (max-width: 400px) {
    .signals-button-container {
        flex-direction: column;
        width: 100%;
    }
    
    .generate-signals-btn {
        width: 100%;
    }
}

/* Light theme adjustment */
body.light-theme .generate-signals-btn {
    color: white !important;
}

/* Add this to your existing CSS */
.header-actions {
display: flex;
align-items: center;
}

/* This ensures theme toggle is to the left of hamburger menu */
.theme-toggle {
margin-right: 0.5rem;
}

@media (max-width: 768px) {
.nav-links {
display: none;
}

.mobile-menu-toggle, .theme-toggle {
display: block;
}

.mobile-menu.active {
display: flex;

}
}


/* Add this to your existing CSS */
.access-popup {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;               /* use edges instead of height for better iOS behavior */
width: 100%;
background:
  linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)),
  url('assets/background.jpg') center center / cover no-repeat;
background-color: rgba(2, 52, 54, 0.95); /* fallback if image fails */
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
overflow-x: hidden;
overflow-y: auto;         /* allow vertical scroll inside overlay */
-webkit-overflow-scrolling: touch;
}

.popup-content {
background-color: var(--bg-card);
border-radius: 12px;
width: 90%;
max-width: 480px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
overflow: hidden;
animation: popupFadeIn 0.4s ease-out;
}

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

.popup-header {
padding: 1.5rem;
    border-bottom: none;
text-align: center;
margin-top: 10% !important;

}

.popup-logo {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-weight: 700;
font-size: 1.5rem;
}

.popup-body {
padding: 1.5rem;
}

.popup-body h2 {
margin-bottom: 0.5rem;
text-align: center;
font-size: 1.5rem;
}

.popup-body p {
text-align: center;
color: var(--text-muted);
margin-bottom: 1.5rem;
}

.pin-container {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 1.5rem;
}

#access-pin {
padding: 0.75rem 1rem;
border-radius: 0.375rem;
border: 1px solid var(--bg-light);
background-color: var(--bg-dark);
color: var(--text);
font-size: 1rem;
text-align: center;
letter-spacing: 0.1em;
}

body.light-theme #access-pin {
background-color: white;
border: 1px solid #e2e8f0;
}

.pin-message {
text-align: center;
font-size: 0.875rem;
min-height: 1.5rem;
}

.pin-message.error {
color: var(--danger);
}

.pin-message.success {
color: var(--success);
}

.subscription-info {
background-color: var(--bg-light);
padding: 1.25rem;
border-radius: 8px;
margin-bottom: 1.5rem;
}

.price-tag {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 1rem;
}

.price {
font-size: 1.5rem;
font-weight: 700;
color: var(--success);
}

.period {
color: var(--text-muted);
font-size: 0.875rem;
}

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

.feature-item {
font-size: 0.9rem;
}

.contact-buttons {
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.contact-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem;
border-radius: 0.375rem;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;

}

.telegram-btn {
background-color: #0088cc;
color: white;
}

.telegram-btn:hover {
background-color: #0077b5;
}

.whatsapp-btn {
background-color: #25D366;
color: white;
}

.whatsapp-btn:hover {
background-color: #128C7E;
}

body:not(.access-granted) > *:not(#access-popup):not(#confetti-canvas):not(#mpesa-loading-overlay) {
visibility: hidden;
}

/* For light theme */
body.light-theme .popup-content {
background-color: white;
}

body.light-theme .subscription-info {
background-color: #f1f5f9;
}

@media (max-width: 480px) {
.access-popup {
  position: fixed; /* pinned overlay */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: flex-start;
  padding: 12px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* custom scrollbar for popup on mobile */
.access-popup::-webkit-scrollbar {
  width: 6px;
}
.access-popup::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
}
.access-popup::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D9FF43, #10b981);
  border-radius: 999px;
}

/* fallback scrollbar styling */
.access-popup {
  scrollbar-color: #10b981 rgba(0,0,0,0.2);
  scrollbar-width: thin;
}
.popup-content {
  width: 95%;
  max-height: none; /* outer container handles scrolling */
  margin: 0 auto;
}

.popup-body {
  padding: 1rem 1rem 4.5rem; /* extra bottom space so lower buttons aren’t under overlays */
  position: relative;
}
/* subtle scroll hint at bottom so users know they can scroll */
.popup-body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.35));
}



.popup-header {
  padding: 1.5rem;
}

.contact-buttons {
  flex-direction: column;
}


/* animated scroll hint just under buttons */
.poolfx-scroll-hint {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.poolfx-scroll-text {
  letter-spacing: 0.02em;
}

.poolfx-scroll-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(217, 255, 67, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D9FF43; /* brand accent */
  background: radial-gradient(circle at 30% 0%, rgba(217,255,67,0.3), transparent);
  animation: poolfx-scroll-bounce 1.4s infinite;
}

.poolfx-scroll-icon i {
  font-size: 0.9rem;
}

@keyframes poolfx-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50%      { transform: translateY(6px); opacity: 1; }
}

}

.subscription-info {
background-color: var(--bg-light);
border-radius: 10px;
margin-bottom: 1.5rem;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(255, 255, 255, 0.05);
}

.subscription-header {
background-color: rgba(0, 0, 0, 0.1);
padding: 1rem;
position: relative;
}

.price-tag {
display: flex;
align-items: baseline;
justify-content: center;
gap: 0.25rem;
}

.price {
font-size: 1.75rem;
font-weight: 700;
color: var(--success);
letter-spacing: -0.5px;
}

.period {
color: var(--text-muted);
font-size: 0.875rem;
}

.subscription-divider {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
margin-top: 0.35rem;
margin-bottom: 0.35rem;
}

.features {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.feature-item {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.9rem;
}

.feature-icon {
display: flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
background-color: var(--success);
color: black;
border-radius: 50%;
font-size: 0.7rem;
font-weight: bold;
flex-shrink: 0;
}

/* Light theme adjustments */
body.light-theme .subscription-info {
background-color: #f8fafc;
border: 1px solid #e2e8f0;
}

body.light-theme .subscription-header {
background-color: rgba(0, 0, 0, 0.02);
}

body.light-theme .subscription-divider {
background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

body.light-theme .feature-icon {
color: white;
}

/* Mobile improvements */
@media (max-width: 480px) {
.subscription-info {
margin-bottom: 1rem;
}

.subscription-header {
padding: 0.75rem;
}

.features {
padding: 0.75rem;
}

.price {
font-size: 1.5rem;
}

.feature-item {
font-size: 0.85rem;
}
}
/* Payment Modal Styles */
.payment-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
display: none;
justify-content: center;
align-items: center;
z-index: 1100;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease;
}

.payment-modal.active {
opacity: 1;
visibility: visible;
}

.payment-modal-content {
background-color: var(--bg-card);
border-radius: 12px;
width: 90%;
max-width: 450px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
overflow: hidden;
transform: translateY(20px);
transition: transform 0.4s ease;
}

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

.payment-modal-header {
padding: 1.25rem;
border-bottom: 1px solid var(--bg-light);
display: flex;
justify-content: space-between;
align-items: center;
}

.payment-modal-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--text);
margin: 0;
}

.payment-close-btn {
background: none;
border: none;
color: var(--text-muted);
font-size: 1.5rem;
cursor: pointer;
line-height: 1;
transition: color 0.2s;
}

.payment-close-btn:hover {
color: var(--text);
}

.payment-modal-body {
padding: 1.5rem;
}

.payment-form {
display: flex;
flex-direction: column;
gap: 1rem;
}

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

.form-group label {
font-size: 0.9rem;
font-weight: 500;
color: var(--text);
}

.form-control {
padding: 0.75rem 1rem;
border-radius: 8px;
border: 1px solid var(--bg-light);
background-color: var(--bg-dark);
color: var(--text);
font-size: 1rem;
transition: border-color 0.2s, box-shadow 0.2s;
}

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

.pay-now-btn {
background-color: var(--primary);
color: white;
border: none;
border-radius: 8px;
padding: 0.875rem;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s;
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
margin-top: 0.5rem;
}

.pay-now-btn:hover {
background-color: var(--primary-dark);
}

.payment-method {
margin-top: 1rem;
display: flex;
align-items: center;
gap: 0.75rem;
background: transparent;
padding: 0.75rem;
border-radius: 8px;
}

.payment-method-icon {
background-color: #4CAF50; /* Mpesa green */
color: white;
width: 2.5rem;
height: 2.5rem;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1rem;
}

.payment-method-details {
flex: 1;
}

.payment-method-name {
font-weight: 600;
display: block;
margin-bottom: 0.25rem;
}

.payment-method-desc {
font-size: 0.85rem;
color: var(--text-muted);
}

/* Update existing subscription button */
.subscribe-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem;
border-radius: 0.375rem;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
background-color: var(--secondary);
color: var(--primary);
cursor: pointer;
}

.subscribe-btn:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
color: var(--text) !important;
}

/* Light theme adjustments */
body.light-theme .form-control {
background-color: white;
border-color: #e2e8f0;
}

body.light-theme .payment-method {
background-color: #f1f5f9;
}

.short-term {
   color: #012A2B !important;
    }
    

/* Mobile adjustments */
@media (max-width: 480px) {
.payment-modal-content {
width: 95%;
}

.payment-modal-header, 
.payment-modal-body {
padding: 1rem;
}
}
body.light-theme .subscribe-btn:hover{
    color: #ffffff !important;

}


body.light-theme .light-area{
    color: var(--primary-dark) !important;

}


/* Access Key Display Styles */
.access-key-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.85);
display: none; /* Change to none to hide initially */
justify-content: center;
align-items: center;
z-index: 2000;
backdrop-filter: blur(5px);
animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.access-key-modal {
width: 90%;
max-width: 420px;
background-color: var(--bg-card);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
      0 0 0 1px rgba(255, 255, 255, 0.1);
transform: translateY(0);
animation: slideUp 0.4s ease;
}

@keyframes slideUp {
from { transform: translateY(30px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
#access-key-display.access-key-overlay.show {
display: flex !important;
}
.access-key-header {
padding: 1.25rem 1.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}

.access-key-header h3 {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
color: var(--text);
}

.access-key-close {
background: none;
border: none;
color: var(--text-muted);
font-size: 1.75rem;
line-height: 1;
cursor: pointer;
transition: color 0.2s;
}

.access-key-close:hover {
color: var(--text);
}

.access-key-content {
padding: 1.5rem;
display: flex;
flex-direction: column;
align-items: center;
}

.access-key-content p {
text-align: center;
color: var(--text-muted);
margin-bottom: 1.5rem;
}

.access-key-number {
display: flex;
justify-content: center;
gap: 0.5rem;
margin-bottom: 2rem;
}

.key-digit {
width: 3rem;
height: 3.5rem;
background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.75rem;
font-weight: 700;
color: var(--text);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
animation: pulseIn 0.5s ease;
animation-fill-mode: both;
}

@keyframes pulseIn {
0% { transform: scale(0.9); opacity: 0; }
70% { transform: scale(1.1); }
100% { transform: scale(1); opacity: 1; }
}

.key-digit:nth-child(1) { animation-delay: 0.1s; }
.key-digit:nth-child(2) { animation-delay: 0.2s; }
.key-digit:nth-child(3) { animation-delay: 0.3s; }
.key-digit:nth-child(4) { animation-delay: 0.4s; }
.key-digit:nth-child(5) { animation-delay: 0.5s; }

.access-key-info {
width: 100%;
margin-bottom: 1.5rem;
background-color: rgba(0, 0, 0, 0.2);
border-radius: 12px;
padding: 1rem;
}

.info-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0;
}

.info-icon {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
color: var(--text-muted);
}

.access-key-btn {
background-color: var(--primary);
color: white;
border: none;
border-radius: 10px;
padding: 0.875rem 1.5rem;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
width: 100%;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.access-key-btn:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.access-key-btn:active {
transform: translateY(0);
}

/* Light theme adjustments */
body.light-theme .access-key-modal {
background-color: white;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 
      0 0 0 1px rgba(0, 0, 0, 0.05);
}

body.light-theme .access-key-header {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .access-key-info {
background-color: #f1f5f9;
}

body.light-theme .key-digit {
background: linear-gradient(145deg, #ffffff, #f1f5f9);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
color: var(--secondary);
text-shadow: none;
}

body.light-theme .info-icon {
background-color: rgba(0, 0, 0, 0.05);
color: var(--neutral);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
.access-key-modal {
width: 95%;
}

.access-key-number {
gap: 0.35rem;
}

.key-digit {
width: 2.5rem;
height: 3rem;
font-size: 1.5rem;
}

.access-key-header,
.access-key-content {
padding: 1.25rem;
}
}



/* M-Pesa STK Push Loading Overlay - full-screen, centered */
.mpesa-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 52, 54, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mpesa-loading-overlay.active {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}
.mpesa-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
}
.mpesa-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(217, 255, 67, 0.25);
    border-radius: 50%;
    border-top-color: #D9FF43;
    animation: mpesa-spin 0.9s linear infinite;
    margin-bottom: 1.25rem;
}
.mpesa-loading-message {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}
.mpesa-loading-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0 0 1rem;
}
.mpesa-loading-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 200px;
}
.mpesa-loading-actions button {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.mpesa-retry-btn {
    background: #D9FF43;
    color: #023436;
}
.mpesa-refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
@keyframes mpesa-spin {
    to { transform: rotate(360deg); }
}

/* Dark theme - M-Pesa overlay (default) */
body:not(.light-theme) .mpesa-loading-overlay {
    background: rgba(2, 52, 54, 0.96);
}
body:not(.light-theme) .mpesa-loading-message {
    color: #ffffff;
}
body:not(.light-theme) .mpesa-loading-hint {
    color: rgba(255, 255, 255, 0.75);
}
body:not(.light-theme) .mpesa-loading-spinner {
    border-color: rgba(217, 255, 67, 0.25);
    border-top-color: #D9FF43;
}
body:not(.light-theme) .mpesa-retry-btn {
    background: #D9FF43;
    color: #023436;
}
body:not(.light-theme) .mpesa-refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Light theme - M-Pesa overlay */
body.light-theme .mpesa-loading-overlay {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 0 0 1px rgba(2, 52, 54, 0.08);
}
body.light-theme .mpesa-loading-message {
    color: #023436;
}
body.light-theme .mpesa-loading-hint {
    color: rgba(2, 52, 54, 0.7);
}
body.light-theme .mpesa-loading-spinner {
    border-color: rgba(2, 52, 54, 0.2);
    border-top-color: #023436;
}
body.light-theme .mpesa-retry-btn {
    background: #023436;
    color: #D9FF43;
}
body.light-theme .mpesa-refresh-btn {
    background: rgba(2, 52, 54, 0.08);
    color: #023436;
    border: 1px solid rgba(2, 52, 54, 0.25);
}
body.light-theme .mpesa-refresh-btn:hover {
    background: rgba(2, 52, 54, 0.12);
}

/* Payment Processing Animation */
.payment-processing {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 2000;
backdrop-filter: blur(3px);
}

/* Make sure the payment modal doesn't have conflicting styles */
.payment-modal.active {
display: flex !important; /* Use !important to override any conflicting styles */
}

.payment-modal {
display: none;
opacity: 1; /* Ensure opacity is set to visible */
visibility: visible; /* Ensure visibility is set to visible */
}

/* For better mobile layout */
@media (max-width: 480px) {
.payment-processing {
padding: 1rem;
}

.spinner {
width: 50px;
height: 50px;
}
}

.spinner {
width: 60px;
height: 60px;
border: 5px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #25d366;
animation: spin 1s ease-in-out infinite;
margin-bottom: 20px;
}

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

.processing-text {
color: white;
font-size: 1.5rem;
margin-bottom: 10px;
text-align: center;
}

.status-message {
color: #aaa;
font-size: 1.1rem;
text-align: center;
max-width: 80%;
margin: 0 auto;
}

.retry-payment-btn,
.continue-anyway-btn {
margin-top: 20px;
padding: 10px 20px;
background-color: #25d366;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s;
}

.retry-payment-btn:hover,
.continue-anyway-btn:hover {
background-color: #128c7e;
}

/* Additional payment modal styles */
.payment-modal.active {
display: flex;
}

.payment-modal {
display: none;
}




/* News Section */
.news-section {
    padding: 2rem 0;
    width: 100%;
}
.news-section-container {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
}
.news-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}
.news-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.news-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, #D9FF43, #10b981);
    border-radius: 2px;
}
.news-calendar-btn {
    min-width: auto;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    white-space: nowrap;
    text-decoration: none;
}
body.light-theme .news-section-title { color: #1e293b; }
body.light-theme .news-section-title::before {
    background: linear-gradient(180deg, #023436, #10b981);
}
.news-iframe-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
}
.news-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.news-loading .loading-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.news-loading .loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}
.news-loading .spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #D9FF43;
    animation: news-spin 1s linear infinite;
}
.news-loading .spinner-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #10b981;
    animation: news-spin 1.5s linear infinite;
}
@keyframes news-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.news-loading .loading-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin-top: 8px;
}
.news-loading .loading-progress {
    width: 100%;
    max-width: 240px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}
.news-loading .loading-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #D9FF43, #10b981);
    border-radius: 4px;
    animation: news-progress 2s ease-in-out infinite;
}
@keyframes news-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}
.news-loading .loading-step {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    opacity: 0;
    animation: news-fade 4s ease-in-out infinite;
}
.news-loading .loading-step:nth-child(1) { animation-delay: 0s; }
.news-loading .loading-step:nth-child(2) { animation-delay: 2s; }
@keyframes news-fade {
    0%, 100% { opacity: 0; }
    25%, 75% { opacity: 1; }
}
.news-list-wrap { padding: 0; }
.news-list-wrap .news-list {
    max-height: 500px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 0.25rem;
}
/* Custom scrollbar - blends with theme, less intrusive */
.news-list-wrap .news-list::-webkit-scrollbar {
    width: 6px;
}
.news-list-wrap .news-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
}
.news-list-wrap .news-list::-webkit-scrollbar-thumb {
    background: rgba(217, 255, 67, 0.25);
    border-radius: 3px;
}
.news-list-wrap .news-list::-webkit-scrollbar-thumb:hover {
    background: rgba(217, 255, 67, 0.4);
}
.news-list-wrap .news-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 255, 67, 0.35) rgba(255, 255, 255, 0.04);
}
body.light-theme .news-list-wrap .news-list::-webkit-scrollbar-track {
    background: rgba(2, 52, 54, 0.06);
}
body.light-theme .news-list-wrap .news-list::-webkit-scrollbar-thumb {
    background: rgba(2, 52, 54, 0.25);
}
body.light-theme .news-list-wrap .news-list::-webkit-scrollbar-thumb:hover {
    background: rgba(2, 52, 54, 0.4);
}
body.light-theme .news-list-wrap .news-list {
    scrollbar-color: rgba(2, 52, 54, 0.35) rgba(2, 52, 54, 0.06);
}
.news-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0.35rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-error {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
}
.news-retry-btn {
    background: var(--primary);
    color: var(--text);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
}
.news-empty {
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}
.news-iframe {
    display: block;
    border: none;
    min-height: 600px;
}
.news-external-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #D9FF43 0%, #10b981 100%);
    color: #023436;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.5rem;
    min-height: 120px;
}
.news-external-link:hover { opacity: 0.9; }
body.light-theme .news-external-link {
    background: linear-gradient(135deg, #023436 0%, #034a4d 100%);
    color: #D9FF43;
}
body.light-theme .news-iframe-wrap {
    background: #fff;
    border-color: rgba(2, 52, 54, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .news-section { padding: 1.25rem 0; }
    .news-section-container { padding: 0 0.75rem; }
    .news-section-header { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .news-section-title,
    .header-texter { font-size: 1.125rem; }
    .news-calendar-btn { justify-content: center; }
    .news-iframe-wrap { padding: 1rem; }
    .news-list-wrap .news-list { max-height: 420px; }
}

@media (max-width: 480px) {
    .news-list-wrap .news-list { max-height: 380px; }
}
body.light-theme .news-loading .loading-container {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
body.light-theme .news-loading .loading-progress {
    background: #e2e8f0;
}

/* Account Details Section Styles */
.account-details-container {
padding: 2rem 0;
width: 100%;
}
@media (min-width: 769px) {
.account-details-container .container {
max-width: 100%;
width: 100%;
}
.account-details-container .account-card {
width: 100%;
max-width: 100%;
}
}

.account-card {
background-color: var(--bg-card);
border-radius: 0.75rem;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
padding: 1.75rem;
margin: 1.5rem 0;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.account-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

/* Card Header */
.account-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--bg-light);
position: relative;
}

.account-card-title {
font-size: 16px;
font-weight: 700;
color: var(--text);
margin: 0;
}
body.light-theme .account-card-title {
    color: #000000 !important;
}
.account-last-updated {
font-size: 0.8rem;
color: var(--text-muted);
}

/* Capital at Risk / Trade Responsibly notice - theme-aware */
.account-risk-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  font-size: 0.9375rem;
}
.account-risk-notice-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}
.account-risk-notice-text {
  color: var(--text-muted);
}
body.light-theme .account-risk-notice {
  background: rgba(2, 52, 54, 0.05);
  border-color: rgba(2, 52, 54, 0.15);
}
body.light-theme .account-risk-notice-icon {
  background: rgba(2, 52, 54, 0.12);
  color: #023436;
}
body.light-theme .account-risk-notice-text {
  color: #475569;
}

/* Account info grid layout */
.account-info-grid {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto;
gap: 1.5rem;
}

/* Profile Section */
.account-profile-section {
display: flex;
align-items: center;
gap: 1.25rem;
padding: 1.25rem;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 0.75rem;
}

.profile-avatar-container {
flex-shrink: 0;
}

.profile-avatar {
width: 4.5rem;
height: 4.5rem;
border-radius: 50%;
background-color: var(--primary);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 700;
color: white;
position: relative;
overflow: hidden;
border: 3px solid var(--bg-dark);
}

.avatar-initials {
text-transform: uppercase;
}

.profile-details {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.profile-username {
font-size: 1.25rem;
font-weight: 600;
margin: 0;
color: var(--text);
}

.account-status {
display: flex;
align-items: center;
gap: 0.5rem;
}

.status-indicator {
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
}

.status-active {
background-color: var(--success);
box-shadow: 0 0 8px var(--success);
}

.status-inactive {
background-color: var(--neutral);
}

.status-suspended {
background-color: var(--danger);
}

.status-text {
font-size: 0.9375rem;
color: var(--text);
}

.membership-level {
font-size: 0.9rem;
color: var(--text-muted);
background-color: rgba(255, 255, 255, 0.1);
padding: 0.25rem 0.75rem;
border-radius: 1rem;
display: inline-block;
margin-top: 0.25rem;
}

/* Account Stats Section */
.account-stats-section {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
align-items: stretch;
}

.stats-card {
flex: 1 1 220px;
background-color: var(--bg-card);
border: 1px solid var(--bg-light);
border-radius: 0.75rem;
padding: 0.875rem 1rem;
display: flex;
align-items: center;
gap: 0.75rem;
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stats-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
border-color: var(--primary);
}

.stats-icon {
width: 2rem;
height: 2rem;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.08);
display: flex;
align-items: center;
justify-content: center;
color: var(--text);
}

.stats-icon svg {
width: 1rem;
height: 1rem;
opacity: 0.85;
}

.stats-info {
display: flex;
flex-direction: column;
gap: 0.1rem;
}

.stats-label {
font-size: 0.875rem;
color: var(--text-muted);
letter-spacing: 0.02em;
}

.stats-value {
font-size: 1.1rem;
font-weight: 700;
color: var(--text);
line-height: 1.15;
}

/* Referral row: My Referral Link + Share in same row on desktop */
.referral-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  grid-column: 1 / -1;
}

/* Referral Link Section (left column inside .referral-row) */
.referral-section {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1.5rem;
  position: relative;
}

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

.referral-title {
font-size: 1.125rem;
font-weight: 600;
margin: 0;
color: var(--text);
}

.referral-bonus {
font-size: 0.875rem;
padding: 0.25rem 0.75rem;
background-color: rgba(16, 185, 129, 0.2);
color: var(--success);
border-radius: 1rem;
font-weight: 500;
}

.referral-link-container {
display: flex;
gap: 0.5rem;
margin-bottom: 0.5rem;
}

.referral-link-input {
flex: 1;
background-color: var(--bg-dark);
border: 1px solid var(--bg-light);
color: var(--text);
padding: 0.75rem 1rem;
border-radius: 0.5rem;
font-size: 0.9375rem;
outline: none;
}

.referral-copy-btn {
background-color: var(--primary);
color: white;
border: none;
border-radius: 0.5rem;
padding: 0 1.25rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}

.referral-copy-btn:hover {
background-color: var(--primary-dark);
}

.copy-icon {
width: 1.125rem;
height: 1.125rem;
}

.copy-notification {
background-color: var(--success);
color: white;
padding: 0.5rem 1rem;
border-radius: 0.375rem;
position: absolute;
bottom: 1rem;
right: 1rem;
font-size: 0.875rem;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.copy-notification.show {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

/* Share Referral Section (right column inside .referral-row, same card style) */
.share-referral-section {
  border-radius: 0.75rem;
  min-width: 0;
}
.account-status-card.share-referral-section {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  border-radius: 10px;
}

/* Poster Download Section */
.poster-download-section {
  margin-top: 1rem;
  padding: 1.25rem;
  grid-column: 1 / -1;
}
.poster-download-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.poster-preview {
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.poster-image {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
}
.poster-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--secondary) 0%, #b6e639 100%);
  color: var(--primary);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.poster-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 255, 67, 0.35);
}
@media (max-width: 480px) {
  .poster-download-section { padding: 1rem; }
  .poster-image { max-width: 100%; }
  .poster-download-btn { width: 100%; justify-content: center; padding: 0.875rem 1rem; }
}

/* Masterclass: full width below referral row */
.masterclass-status-section {
  grid-column: 1 / -1;
}

.share-title {
font-size: 1.125rem;
font-weight: 600;
margin: 0 0 1rem 0;
color: var(--text);
}

.share-buttons {
display: flex;
gap: 1rem;
}

.share-btn {
width: 3rem;
height: 3rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
transition: transform 0.2s ease, background-color 0.2s ease;
}

.share-btn:hover {
transform: translateY(-3px);
}

.share-twitter {
background-color: #1da1f2;
color: white;
}

.share-facebook {
background-color: #1877f2;
color: white;
}

.share-linkedin {
background-color: #0077b5;
color: white;
}

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

.share-btn svg {
width: 1.25rem;
height: 1.25rem;
}

/* Light Theme Styles - FIXED VISIBILITY ISSUES */
body.light-theme .account-card {
background-color: white;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body.light-theme .account-card-title {
color: var(--secondary);
}

body.light-theme .profile-username {
color: var(--secondary);
}

body.light-theme .status-text {
color: var(--secondary);
}

/* Fixed stats-value visibility in light mode */
body.light-theme .stats-value {
color: #023436 ; /* Using dark color for better contrast */
font-weight: 700;
}

body.light-theme .account-profile-section,
body.light-theme .stats-card,
body.light-theme .referral-section {
background-color: #f1f5f9;
}
body.light-theme .account-status-card.share-referral-section {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}
body.light-theme .poster-preview {
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Fixed referral-link-input visibility in light mode */
body.light-theme .referral-link-input {
background-color: white;
border-color: #cbd5e1;
color: #1e293b; /* Darker text color for better contrast */
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.light-theme .stats-icon {
background-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .profile-avatar {
border-color: white;
}

body.light-theme .referral-title {
color: #1E293B !important;
}
body.light-theme .share-title {
color: var(--secondary);
}
body.light-theme .poolfx-payment-method {
background: #f8fafc;
border-color: #e2e8f0;
}
body.light-theme .poolfx-method-name,
body.light-theme .poolfx-method-name span {
color: #1E293B !important;
}
body.light-theme .poolfx-method-desc {
color: #475569 !important;
}

body.light-theme .membership-level {
background-color: rgba(0, 0, 0, 0.05);
color: #475569; /* Darker text for better visibility */
}

body.light-theme .stats-label {
color: #64748b; /* Darker label color for better readability */
}

/* Responsive Styles */
@media (max-width: 992px) {
.account-info-grid {
grid-template-columns: 1fr;
}

.referral-row {
  grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
.account-card {
padding: 1.25rem;
}

.account-profile-section {
flex-direction: column;
text-align: center;
padding: 1rem;
}

.account-status {
justify-content: center;
}

.profile-details {
align-items: center;
}

.account-stats-section {
flex-direction: column;
}

.referral-header {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}

.referral-link-container {
flex-direction: column;
}

.referral-copy-btn {
width: 100%;
justify-content: center;
padding: 0.75rem;
}
}

@media (max-width: 480px) {
.share-buttons {
flex-wrap: wrap;
justify-content: center;
}

.share-btn {
width: 2.75rem;
height: 2.75rem;
}

.copy-notification {
right: 50%;
transform: translateX(50%) translateY(10px);
}

.copy-notification.show {
transform: translateX(50%) translateY(0);
}
}


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

.pfx-download-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.pfx-download-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 16px 20px;
    position: relative;
}

.pfx-download-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.pfx-download-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.pfx-download-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.pfx-download-body {
    padding: 24px;
    color: var(--text);
}

.pfx-download-content, .pfx-install-instructions {
    transition: opacity 0.3s;
}

.pfx-app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    background-color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfx-app-icon svg {
    width: 50px;
    height: 50px;
    fill: #ffffff;
}

.pfx-app-details {
    text-align: center;
    margin-bottom: 24px;
}

.pfx-app-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pfx-app-version {
    color: var(--text-muted);
    font-size: 14px;
}

.pfx-download-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pfx-download-btn:hover {
    background-color: var(--primary-dark);
}

.pfx-download-btn svg {
    width: 20px;
    height: 20px;
}

.pfx-step {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.pfx-step-number {
    background-color: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 16px;
    margin-top: 2px;
}

.pfx-step-content {
    flex: 1;
}

.pfx-step-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
}

.pfx-step-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.pfx-done-btn {
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pfx-done-btn:hover {
    background-color: #0da271;
}

.pfx-hidden {
    display: none;
}

/* Media queries for responsiveness */
@media (max-width: 600px) {
    .pfx-download-container {
        width: 95%;
    }
    
    .pfx-download-body {
        padding: 16px;
    }
    .withdraw-btn {
        width: 100% !important;
    }
}

/* Ensure withdraw button visible and full-width on small screens */
@media (max-width: 640px) {
    .withdraw-btn {
        display: flex;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 0.95rem;
        margin-top: 8px;
    }
}
/* Withdraw Button Styling */

/* Withdraw Button Styling */
.withdraw-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--primary-dark);
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 12px;
    width: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
   
}

.withdraw-btn:hover {
    background-color: var(--success);
    opacity: 0.9;
    transform: translateY(-2px);
}

.withdraw-btn:active {
    transform: translateY(0);
}

.withdraw-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--text);
}

/* Dark theme specific adjustments */
body:not(.light-theme) .withdraw-btn {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    color: #ffffff;
}

/* Light theme specific adjustments */
body.light-theme .withdraw-btn {
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

/* Withdraw Modal */
.withdraw-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}
.withdraw-modal.show { display: flex; }
.withdraw-modal-content {
    background: var(--bg-card);
    color: var(--text);
    width: 92%;
    max-width: 420px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45);
}
.withdraw-modal-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, #023436 0%, #034a4d 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.withdraw-modal-header h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.withdraw-modal-close {
    background: none; border: none;
    color: var(--text); font-size: 1.5rem;
    cursor: pointer; opacity: 0.8;
}
.withdraw-modal-body { padding: 1.25rem; }
.withdraw-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}
.withdraw-balance { font-size: 1.1rem; font-weight: 700; color: var(--success); }
.withdraw-pending-msg {
    padding: 0.75rem;
    background: rgba(245,158,11,0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
#withdraw-form .form-group,
.withdraw-form .form-group { margin-bottom: 1rem; }
#withdraw-form label { display: block; margin-bottom: 0.35rem; font-size: 0.875rem; }
#withdraw-form input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-size: 0.95rem;
}
.withdraw-fee-breakdown {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.withdraw-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}
.withdraw-fee-row span:last-child { font-weight: 600; color: var(--success); }
.withdraw-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #D9FF43 0%, #10b981 100%);
    color: #023436;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.withdraw-history { margin-top: 1.25rem; }
.withdraw-history h4 { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.withdraw-history-list { max-height: 180px; overflow-y: auto; }
.withdraw-history-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}
.withdraw-history-item .status-pending { color: #f59e0b; }
.withdraw-history-item .status-approved { color: #10b981; }
.withdraw-history-item .status-rejected,
.withdraw-history-item .status-failed { color: #ef4444; }

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
body.light-theme .withdraw-modal-content { background: #fff; color: #1a1a1a; }
body.light-theme .withdraw-modal-header { color: #fff; }
body.light-theme .withdraw-balance-row { background: rgba(0,36,38,0.08); }
body.light-theme #withdraw-form input { border-color: #ccc; background: #f9f9f9; color: #1a1a1a; }
body.light-theme .withdraw-history-item { border-color: rgba(0,0,0,0.1); }
body.light-theme .toast-notification { background: #023436; color: #fff; }

.refresh-btn {
    position: absolute;
    
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.refresh-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.refresh-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.refresh-btn.refreshing svg {
    animation: spin 1s linear infinite;
}

.refresh-notification {
    position: absolute;
    top: 1.5rem;
    right: 4.5rem;
    background-color: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.refresh-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.mobile-menu-toggle{
    color: #ffffff !important;
}
.poolfx-title-text{
    color: var(--primary-dark);
}

/* Light theme polish for account stats */
body.light-theme .stats-card {
    background-color: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
body.light-theme .stats-icon {
    background-color: #f1f5f9;
    color: #475569;
}

/* Mobile tightening for account stats */
@media (max-width: 640px) {
    .account-stats-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        align-items: stretch;
    }
    .stats-card {
        padding: 12px 0.75rem;
        gap: 0.5rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    .stats-icon { width: 1.75rem; height: 1.75rem; }
    .stats-icon svg { width: 0.875rem; height: 0.875rem; }
    .stats-info { gap: 0.05rem; line-height: 1.1; }
    .stats-label { font-size: 0.68rem; line-height: 1.1; }
    .stats-value { font-size: 0.95rem; line-height: 1.1; }
    .account-stats-section .withdraw-btn {
        grid-column: 1 / -1;
        width: 100% !important;
    }
    .header-texter{
        font-size: 1.125rem !important;
    }
}


/* Live Courses (YouTube) section */
.live-courses-section {
    margin-top: 1.5rem;
}
.live-courses-header {
    margin-bottom: 1rem;
}
.live-courses-header .account-status-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}
.live-courses-title {
    font-size: 1.05rem;
}
.live-courses-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.live-courses-icon {
    color: #ffffff;
    font-size: 1.1rem;
}
.live-courses-title-text {
    font-weight: 600;
}
.live-courses-header .account-status-intro {
    text-align: center;
    max-width: 640px;
    margin: 0.35rem auto 0;
}
.courses-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.courses-level-chips,
.courses-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.courses-level-chip,
.courses-topic-chip {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Desktop: bigger level chips, centered */
@media (min-width: 769px) {
    .courses-level-chips,
    .courses-topic-chips {
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    .courses-level-chip,
    .courses-topic-chip {
        font-size: 0.95rem;
        padding: 0.5rem 1.35rem;
    }
}
.courses-level-chip.active,
.courses-topic-chip.active {
    background: #023436;
    color: #D9FF43;
    border-color: transparent;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    max-height: 520px; /* ~2 rows desktop */
    overflow-y: auto;
    padding-right: 4px;
}
.course-card {
    background: rgba(0,0,0,0.25);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
}
.course-thumb {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}
.course-thumb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.course-meta {
    padding: 0.6rem 0.75rem 0.75rem;
}
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}
.course-tag {
    font-size: 0.65rem;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    background: rgba(15,118,110,0.15);
    color: #e5f9f6;
}
.course-tag.level-beginner { background: rgba(34,197,94,0.15); color: #bbf7d0; }
.course-tag.level-advanced { background: rgba(239,68,68,0.15); color: #fecaca; }
.course-title {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #e5e7eb;
}
.courses-footer-note {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.courses-footer-note i {
    color: var(--primary);
}
.course-card.skeleton .course-thumb {
    background: rgba(148,163,184,0.15);
}
.course-card.skeleton .course-meta .line {
    height: 10px;
    background: rgba(148,163,184,0.25);
    border-radius: 999px;
    margin-bottom: 6px;
}
.course-card.skeleton .course-meta .line.short {
    width: 60%;
}
.courses-slider-dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 0.5rem;
}
.courses-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    background: rgba(148,163,184,0.4);
    padding: 0;
}
.courses-dot.active {
    width: 18px;
    background: linear-gradient(135deg, var(--primary), var(--success));
}
.courses-error {
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.light-theme .live-courses-section.account-status-card {
    background-color: #ffffff;
    border-color: #e5e7eb;
}
body.light-theme .live-courses-icon {
    color: #023436;
}
body.light-theme .course-card {
    background: #f9fafb;
    border-color: #e5e7eb;
}
body.light-theme .course-title {
    color: #0f172a;
}
body.light-theme .courses-level-chip,
body.light-theme .courses-topic-chip {
    border-color: #e5e7eb;
    background: #f9fafb;
    color: #64748b;
}
body.light-theme .courses-level-chip.active,
body.light-theme .courses-topic-chip.active {
    background: #D9FF43;
    color: #023436;
}

/* Light theme course tags */
body.light-theme .course-tag {
    background: rgba(15,118,110,0.08);
    color: #0f172a;
}
body.light-theme .course-tag.level-beginner {
    background: rgba(34,197,94,0.10);
    color: #166534;
}
body.light-theme .course-tag.level-advanced {
    background: rgba(239,68,68,0.10);
    color: #b91c1c;
}

@media (max-width: 768px) {
    .courses-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        scroll-snap-type: x mandatory;
    }
    .course-card {
        min-width: 82vw;
        scroll-snap-align: start;
    }
    .live-courses-section {
        overflow: visible;
    }
    .courses-slider-dots {
        display: flex;
    }
}







/* WhatsApp Floating Button Styles */
.pfx-whatsapp-float-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pfx-whatsapp-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #023436 0%, #034648 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(2, 52, 54, 0.3),
                0 2px 4px rgba(2, 52, 54, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: visible;
    animation: pfx-float-bounce 3s ease-in-out infinite;
}

.pfx-whatsapp-float-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(2, 52, 54, 0.4),
                0 4px 8px rgba(2, 52, 54, 0.3);
}

.pfx-whatsapp-float-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.pfx-wa-icon {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2;
    animation: pfx-icon-wiggle 2.5s ease-in-out infinite;
}

/* Pulse Animation Rings */
.pfx-wa-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #023436;
    opacity: 0;
    animation: pfx-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pfx-wa-pulse-delay {
    animation-delay: 1s;
}



@keyframes pfx-pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

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

@keyframes pfx-icon-wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-8deg);
    }
    20%, 40% {
        transform: rotate(8deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

/* Tooltip */
.pfx-wa-tooltip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #023436;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pfx-tooltip-slide 2s ease-in-out infinite;
}

.pfx-wa-tooltip::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 7px;
    border-color: transparent transparent transparent white;
}

.pfx-whatsapp-float-wrapper:hover .pfx-wa-tooltip {
    animation: none;
    transform: translateY(-50%) scale(1.05);
}

.pfx-wa-tooltip:hover {
    animation: none;
    transform: translateY(-50%) scale(1.05);
    cursor: pointer;
}

@keyframes pfx-tooltip-slide {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-8px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pfx-whatsapp-float-wrapper {
        bottom: 20px;
        right: 20px;
    }
    
    .pfx-whatsapp-float-btn {
        width: 52px;
        height: 52px;
    }
    
    .pfx-wa-icon {
        width: 28px;
        height: 28px;
    }
    
    .pfx-wa-tooltip {
        right: 64px;
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .pfx-whatsapp-float-wrapper {
        bottom: 16px;
        right: 16px;
    }
    
    .pfx-whatsapp-float-btn {
        width: 48px;
        height: 48px;
    }
    
    .pfx-wa-icon {
        width: 26px;
        height: 26px;
    }
    
    .pfx-wa-tooltip {
        right: 60px;
        font-size: 12px;
        padding: 7px 10px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .pfx-whatsapp-float-btn,
    .pfx-wa-icon,
    .pfx-wa-pulse,
    .pfx-wa-tooltip {
        animation: none !important;
        transition: none !important;
    }
}


/* Offer emoji animation */
/* Make offer icon appear slightly above the price */
.poolfx-offer-icon {
  display: inline-block;
  vertical-align: super;
  margin-left: 4px;
  font-size: 12px;
  animation: pulse-offer 1.5s infinite;
  position: relative;
  top: -0px;
}


/* Subtle pulse animation for excitement */
@keyframes pulse-offer {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Mobile Bottom Navigation (logged in only) - floating, dynamic on scroll */
body:not(.access-granted) .mobile-bottom-nav {
  display: none !important;
}
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 12px;
  right: 12px;
  height: 64px;
  background: linear-gradient(180deg, rgba(2,52,54,0.95) 0%, rgba(3,74,77,0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(217,255,67,0.25);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35),
              0 0 0 1px rgba(255,255,255,0.05) inset,
              0 -2px 12px rgba(217,255,67,0.08);
  z-index: 998;
  padding: 0 8px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0) + 4px);
  margin-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, box-shadow 0.3s ease;
}
.mobile-bottom-nav.mobile-bottom-nav-hidden {
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; justify-content: space-around; align-items: stretch; }
  body.user-logged-in-mobile { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0)); }
}
@media (min-width: 769px) {
  .mobile-bottom-nav { display: none !important; }
}
.mobile-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 6px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  border-radius: 12px;
}
.mobile-bottom-nav-item:active { transform: scale(0.92); }
.mobile-bottom-nav-item:hover { color: rgba(255,255,255,0.9); }
.mobile-bottom-nav-item.active {
  color: #D9FF43 !important;
  background: rgba(217,255,67,0.08);
}
.mobile-bottom-nav-item.active .mobile-bottom-nav-label,
.mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
  color: #D9FF43 !important;
}
.mobile-bottom-nav-icon {
  font-size: 1.2rem;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), color 0.25s ease;
}
.mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
  transform: scale(1.15);
}
.mobile-bottom-nav-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.mobile-bottom-nav-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: #D9FF43;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-bottom-nav-item.active .mobile-bottom-nav-indicator { transform: translateX(-50%) scaleX(1); }
body.light-theme .mobile-bottom-nav {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.96) 100%);
  border-color: rgba(2,52,54,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04) inset;
}
body.light-theme .mobile-bottom-nav-item { color: rgba(0,0,0,0.45); }
body.light-theme .mobile-bottom-nav-item:hover { color: rgba(0,0,0,0.75); }
body.light-theme .mobile-bottom-nav-item.active { color: #1E293B !important; font-weight: 700; background: rgba(2,52,54,0.08); }
body.light-theme .mobile-bottom-nav-item.active .mobile-bottom-nav-label,
body.light-theme .mobile-bottom-nav-item.active .mobile-bottom-nav-icon { color: #1E293B !important; font-weight: 700; }
body.light-theme .mobile-bottom-nav-indicator { background: #1E293B; }

/* WhatsApp - hide when bottom nav is visible (mobile, logged in) */
@media (max-width: 768px) {
  .pfx-whatsapp-float-app { transition: opacity 0.3s ease, transform 0.3s ease; }
  .pfx-whatsapp-float-app.pfx-wa-hidden { opacity: 0; pointer-events: none; transform: scale(0.85); visibility: hidden; }
}

/* Chat With Customer Support - My Account section */
.chat-support-section-account {
  margin-top: 1rem;
}
.chat-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}
.chat-support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
}
.chat-support-btn i { font-size: 1.15rem; }
