


/*
==========================================================================
>>> [V4.5 - UPGRADED] PROFESSIONAL POP-UP MODAL
==========================================================================
*/

/* This is the shared class for ALL pop-up modals */
.kjo-modal-overlay {
    display: none; 
    position: fixed;
    z-index: 5000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(10, 25, 41, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* JavaScript adds this class to show the modal */
.kjo-modal-overlay.visible {
    display: flex;
    opacity: 1;
}

/* The modal's content box - THIS IS WHERE THE ANIMATION IS ADDED */
.kjo-modal-overlay .kjo-modal-content {
    background: linear-gradient(145deg, #2a4a55, #1a2c34);
    border: 1px solid rgba(0, 230, 118, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    color: #fff;
    max-width: 600px; /* A bit wider for the content */
    width: 100%;
    border-radius: 12px;
    position: relative;
    padding-top: 25px;
    /* Animation settings */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* When the modal is visible, the content scales up and fades in */
.kjo-modal-overlay.visible .kjo-modal-content {
    opacity: 1;
    transform: scale(1);
}

.kjo-modal-overlay .kjo-modal-close { 
    position: absolute;
    top: 10px; right: 15px;
    font-size: 32px;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    background: none; border: none;
    line-height: 1;
    padding: 5px;
}
.kjo-modal-overlay .kjo-modal-close:hover { color: #fff; }

.kjo-modal-overlay .modal-title { 
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    margin: 0 20px 25px 20px;
}

/* "How It Works" Modal Content */
#how-it-works-modal .step-by-step-guide { 
    padding: 0 30px; /* Add some padding */
    max-height: 60vh; /* Make the content scrollable on long modals */
    overflow-y: auto;
    /* Custom scrollbar for a pro look */
    scrollbar-width: thin;
    scrollbar-color: #00E676 rgba(0,0,0,0.2);
}
#how-it-works-modal .step-by-step-guide::-webkit-scrollbar { width: 6px; }
#how-it-works-modal .step-by-step-guide::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
#how-it-works-modal .step-by-step-guide::-webkit-scrollbar-thumb { background-color: #00E676; border-radius: 3px; }

#how-it-works-modal .guide-step { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
#how-it-works-modal .guide-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #00E676; color: #000; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.2em; }
#how-it-works-modal .guide-text h3 { color: #fff; font-size: 1.15em; margin: 0 0 5px 0; }
#how-it-works-modal .guide-text p { color: rgba(255,255,255,0.8); font-size: 0.95em; margin: 0; line-height: 1.5; }

.guide-screenshot-wrapper { margin-top: 30px; text-align: center; }
.guide-screenshot-wrapper p { font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 15px; }
.guide-screenshot { width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); }

/* NEW: Styles for the modal footer and Close button */
.kjo-modal-footer {
    padding: 20px 30px;
    background-color: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    text-align: right; /* Aligns button to the right */
}
.kjo-button-secondary {
    background: #495057;
    color: #fff !important;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 10px 25px;
    border: 1px solid #6c757d;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.kjo-button-secondary:hover {
    background-color: #5a6268;
}

/* SIMPLER CENTERING FIX */
.kymjo-viral-app-wrapper {
    padding-top: 80px !important;
    overflow-x: hidden;
    display: flex !important;
    justify-content: center !important;
}

.kymjo-viral-app-main {
    width: 100% !important;
    max-width: 1100px !important;
}

/*
==========================================================================
>>> [V4.6] "HOW IT WORKS" MODAL - 3 PORTRAIT SCREENSHOTS
==========================================================================
*/
.guide-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.guide-screenshot-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(0,0,0,0.2);
}

/* On mobile, stack the images */
@media (max-width: 640px) {
    .guide-screenshot-grid {
        grid-template-columns: 1fr;
        max-width: 250px; /* Control the size on mobile */
        margin: 0 auto;
    }
}

/*
==========================================================================
>>> [V4.6] LOGGED-OUT SHARE BUTTON
==========================================================================
*/
.pro-hub-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05em;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px; /* Space it from the timer */
}
.pro-hub-share-button:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.pro-hub-share-button.copied {
    background-color: #00E676; /* Green feedback color */
    color: #000;
}

/*
==========================================================================
[FROM SCRATCH] KYMJOJOBS VIRAL CHALLENGE & ONBOARDING STYLES
Design System: "Kymjojobs Pro"
==========================================================================
*/

/*--------------------------------------------------------------
>>> 1. Design System & Body Setup
--------------------------------------------------------------*/
.kymjo-focus-body {
    /* Define variables scoped to this experience */
    --kjo-pro-blue-primary: #0D47A1;
    --kjo-pro-blue-dark: #002171;
    --kjo-pro-gold-accent: #FFC107;
    --kjo-pro-gold-hover: #FFA000;
    --kjo-pro-text-headings: #212529;
    --kjo-pro-text-body: #495057;
    --kjo-pro-bg-light: #F8F9FA;
    --kjo-pro-bg-white: #FFFFFF;
    --kjo-pro-border-color: #DEE2E6;
    --kjo-pro-success: #28a745;

    /* Apply base styles */
    background-color: var(--kjo-pro-bg-light);
    font-family: 'Inter', sans-serif;
}

.kymjo-viral-app-wrapper {
    padding-top: 60px; /* Space for fixed header */
    padding-bottom: 80px; /* Space for fixed footer */
}

.kymjo-viral-app-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
}

/*--------------------------------------------------------------
>>> 2. App Header & Footer
--------------------------------------------------------------*/
.kymjo-focus-header-app {
    background: var(--kjo-pro-blue-dark);
    padding: 12px 25px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kymjo-focus-header-app .kjo-focus-logo img {
    max-height: 35px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes logo white */
}
.kymjo-focus-header-app .header-user-info {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-user-info .header-coin-balance {
    background: rgba(255,255,255,0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.kymjo-focus-footer-app {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--kjo-pro-bg-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1001;
    border-top: 1px solid var(--kjo-pro-border-color);
}
.social-share-toolkit {
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
}
.share-tool-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none; border: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--kjo-pro-text-body);
    font-size: 11px;
    font-weight: 600;
    padding: 8px 5px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.share-tool-button:hover { background-color: #f0f2f5; }
.share-tool-button svg { width: 28px; height: 28px; }

/*--------------------------------------------------------------
>>> 3. Generic Challenge Components
--------------------------------------------------------------*/
.challenge-section {
    background: var(--kjo-pro-bg-white);
    padding: 25px 30px;
    border-radius: var(--kjo-border-radius);
    margin-bottom: 25px;
    box-shadow: var(--kjo-box-shadow-soft);
    border: 1px solid var(--kjo-pro-border-color);
}
.challenge-section h3 {
    margin: 0 0 20px 0;
    font-family: var(--kjo-font-headings);
    font-size: 1.4em;
    font-weight: 700;
    color: var(--kjo-pro-text-headings);
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.kjo-button-primary { /* Overriding global for this context */
    background-color: var(--kjo-pro-gold-accent);
    color: var(--kjo-pro-text-headings) !important;
    border-radius: 8px;
    font-family: var(--kjo-font-headings);
    font-weight: 700;
    padding: 12px 30px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.kjo-button-primary:hover {
    background-color: var(--kjo-pro-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,193,7,0.3);
}
.kjo-button-primary.full-width { display: block; text-align: center; }

/*--------------------------------------------------------------
>>> 4. Logged-In User View
--------------------------------------------------------------*/
.challenge-logged-in-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.challenge-balance-card.large { text-align: center; }
.balance-label { font-size: 1.1em; font-weight: 600; color: var(--kjo-pro-text-muted); }
.balance-value {
    font-family: var(--kjo-font-headings);
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.1;
    display: block;
    margin-top: 5px;
    color: var(--kjo-pro-blue-primary);
}
.progress-bar-container {
    background-color: #e9ecef;
    border-radius: 50px;
    padding: 4px;
    position: relative;
    height: 30px;
    margin: 20px 0;
}
.progress-bar {
    background: linear-gradient(90deg, var(--kjo-pro-success), #52c234);
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease-in-out;
}
.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--kjo-pro-text-headings);
    font-weight: 600;
    font-size: 0.9em;
}
.challenge-referral-cta p { text-align: center; font-size: 1.05em; line-height: 1.6; }
.challenge-denial-notice { background-color: #fff3cd; color: #856404; border-left: 5px solid #ffc107; padding: 15px; border-radius: 4px; }
.bogo-eligibility-card { border-left: 5px solid var(--kjo-pro-gold-accent); }
.leaderboard-widget .leaderboard-item { padding: 12px 5px; } /* Small tweak */
.leaderboard-list .leaderboard-user { display: flex; align-items: center; gap: 10px; }
.leaderboard-list .leaderboard-user img.avatar { border-radius: 50%; }

/* Personal Rank Card */
.personal-rank-card {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--kjo-pro-blue-primary), var(--kjo-pro-blue-dark));
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

/*--------------------------------------------------------------
>>> 5. Logged-Out User View
--------------------------------------------------------------*/
.logged-out-header { text-align: center; padding: 20px 0; }
.logged-out-header .header-icon { font-size: 3em; color: var(--kjo-pro-blue-primary); margin-bottom: 10px; }
.logged-out-header h1 { font-family: var(--kjo-font-headings); font-size: 2.5em; color: var(--kjo-pro-text-headings); margin-bottom: 10px; }
.logged-out-header p { font-size: 1.2em; color: var(--kjo-pro-text-body); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/*
==========================================================================
>>> [V3.2 - CORRECTED] DARK THEME POP-UP MODAL
==========================================================================
*/
#challenge-auth-modal {
    background: rgba(10, 25, 41, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.challenge-modal-content {
    background: linear-gradient(145deg, #2a4a55, #1a2c34); /* Dark gradient background */
    border: 1px solid rgba(0, 230, 118, 0.2); /* Subtle accent border */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0, 230, 118, 0.1); /* Deeper shadow + accent glow */
    color: #fff; /* Default text color is now white */
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    text-align: center;
    position: relative;
}

.challenge-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    color: rgba(255,255,255,0.7); /* Lighter close button */
    background: none;
    border: none;
    transition: color 0.2s ease;
}
.challenge-modal-close:hover {
    color: #fff;
}

.challenge-modal-content .modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 230, 118, 0.1); /* Translucent accent color */
    color: #00E676; /* Accent color for the icon itself */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
.challenge-modal-content .modal-icon svg {
    width: 24px;
    height: 24px;
}

.challenge-modal-content .modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #fff; /* White title */
    margin: 0 0 10px 0;
}

.challenge-modal-content .modal-text {
    color: rgba(255,255,255,0.8); /* Off-white body text */
    margin-bottom: 30px;
    line-height: 1.6;
}

.challenge-modal-content .modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.challenge-modal-content .modal-secondary-link {
    font-size: 0.9em;
    color: rgba(255,255,255,0.7); /* Off-white secondary link */
    text-decoration: none;
    font-weight: 600;
}
.challenge-modal-content .modal-secondary-link:hover {
    color: #fff;
}
/*--------------------------------------------------------------
>>> 6. Welcome Page (`page-welcome.php`)
--------------------------------------------------------------*/
.welcome-page .welcome-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 50px;
    background: var(--kjo-pro-bg-white);
    border-radius: var(--kjo-border-radius);
    box-shadow: var(--kjo-box-shadow-strong);
    text-align: center;
}
.welcome-container .welcome-icon { font-size: 3em; }
.welcome-container h1 { font-size: 2.5em; }
.welcome-container p { font-size: 1.2em; color: var(--kjo-pro-text-body); }
.welcome-actions { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }

/*--------------------------------------------------------------
>>> 7. Responsive Desktop Layout
--------------------------------------------------------------*/
@media (min-width: 992px) {
    .challenge-logged-in-container {
        display: grid;
        grid-template-columns: 1fr 350px; /* Two columns */
        gap: 30px;
    }
}
/*
==========================================================================
>>> [V3] VIRAL CHALLENGE - DARK INVESTMENT HUB STYLES
==========================================================================


/* This applies the dark gradient to the entire page body */
.page-template-page-challenge,
.page-template-page-welcome {
    background: linear-gradient(160deg, #203A43, #0F2027);
}

/* This makes the theme's main content wrappers transparent on these pages,
   allowing the dark background to show through. It also sets the default text color. */
.page-template-page-challenge .site,
.page-template-page-challenge .site-content,
.page-template-page-welcome .site,
.page-template-page-welcome .site-content {
    background-color: transparent;
    color: #fff;
}

/* This ensures headlines within the new dark context are white */
.page-template-page-challenge .pro-hub-hero h1,
.page-template-page-welcome .welcome-container h1 {
    color: #fff;
}
.kjo-pro-hub {
    padding: 30px 0;
}
.pro-hub-hero {
    text-align: center;
    padding: 20px 0 40px;
}
.pro-hub-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
    margin-bottom: 15px;
}
.pro-hub-subtitle {
    font-size: 1.15em;
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.8);
}
.pro-hub-cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #00E676, #00B25B); /* Vibrant Green */
    color: #000 !important;
    text-decoration: none;
    border-radius: 12px;
    padding: 15px 35px;
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.3);
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.pro-hub-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.4);
}
.pro-hub-cta-button span { display: block; font-size: 1.2em; line-height: 1; }
.pro-hub-cta-button small { display: block; font-size: 0.8em; opacity: 0.8; font-weight: 500; margin-top: 5px; }

/* Live Activity Feed */
.pro-hub-activity-feed {
    max-width: 400px;
    margin: 0 auto 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
}
.activity-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0 15px;
    font-size: 0.9em;
    opacity: 0;
    transform: translateY(100%);
    animation: slide-up 10s linear infinite;
}
.activity-item:nth-child(2) { animation-delay: 2.5s; }
.activity-item:nth-child(3) { animation-delay: 5s; }
.activity-item:nth-child(4) { animation-delay: 7.5s; }
@keyframes slide-up {
    0% { transform: translateY(100%); opacity: 0; }
    5%, 20% { transform: translateY(0); opacity: 1; }
    25% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(-100%); opacity: 0; }
}

/* How it Works */
.pro-hub-how-it-works {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 20px;
    margin-bottom: 50px;
}
.how-it-works-step { flex: 1; }
.step-icon { width: 40px; height: 40px; border-radius: 50%; background: #00E676; color: #000; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 700; margin: 0 auto 15px; }
.step-text h3 { color: #fff; font-size: 1.1em; }
.step-text p { color: rgba(255,255,255,0.7); font-size: 0.9em; margin: 0; }

/* Promise Card */
.pro-hub-promise-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 50px;
    text-align: center;
}
.pro-hub-promise-card h2 { color: #fff; }
.promise-items { display: flex; gap: 20px; justify-content: center; }
.promise-item { flex: 1; padding: 20px; border-radius: 12px; background: rgba(0,0,0,0.2); }
.promise-item.featured { background: var(--kjo-pro-blue-primary); border: 1px solid #00E676; }
.promise-value { display: block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.5em; color: #00E676; }
.promise-desc { display: block; margin-top: 5px; color: rgba(255,255,255,0.8); }

/* Responsive */
@media (max-width: 768px) {
    .pro-hub-hero h1 { font-size: 2em; }
    .pro-hub-how-it-works, .promise-items { flex-direction: column; }
}

/*
==========================================================================
>>> [V3.3 - CORRECTED] DARK THEME LEADERBOARD WIDGET
==========================================================================
*/

.page-template-page-challenge .leaderboard-widget {
    background: rgba(0, 0, 0, 0.2); /* A dark, translucent background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.leaderboard-widget h3 {
    color: #fff; /* White heading */
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.leaderboard-widget .no-leaders {
    color: rgba(255, 255, 255, 0.7); /* Lighter text for the 'empty' message */
}

.leaderboard-widget .leaderboard-item {
    border-bottom-color: rgba(255, 255, 255, 0.1); /* Lighter separator */
}

.leaderboard-widget .leaderboard-name {
    color: rgba(255, 255, 255, 0.9); /* Off-white for names */
}

.leaderboard-widget .leaderboard-count {
    color: #00E676; /* Use the vibrant accent color for the referral count */
    font-weight: 700;
}

/*
==========================================================================
>>> [V3.6 - UPGRADED] EXPLORE MORE CARDS SECTION
==========================================================================
*/
.explore-more-section {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.explore-more-section h2 {
    text-align: center;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    margin-bottom: 30px;
}
.explore-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.explore-card {
    position: relative;
    display: block;
    height: 380px;
    border-radius: var(--kjo-border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2); /* Adds a subtle edge */
}
.explore-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}
.explore-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.explore-card:hover .explore-card-bg {
    transform: scale(1.05);
}
.explore-card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 70%);
}
.explore-card h3 {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    margin: 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    line-height: 1.3;
}
/*
==========================================================================
>>> [V3.7] LOGGED-IN CHALLENGE CARDS - DARK THEME FIX
==========================================================================
*/
.page-template-page-challenge .challenge-section {
    color: rgba(255,255,255,0.9); /* Default text color for cards */
}
.challenge-balance-card.large {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 0;
}
.challenge-balance-card .balance-label {
    color: rgba(255,255,255,0.7);
}
.challenge-balance-card .balance-value {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
}
.challenge-denial-notice {
    background-color: rgba(255, 193, 7, 0.1);
    color: #FFC107;
    border-color: #FFC107;
}
.bogo-eligibility-card {
    background: rgba(0, 230, 118, 0.05);
    border-color: rgba(0, 230, 118, 0.3);
}
.bogo-eligibility-card h3 {
    color: #00E676;
}
.challenge-referral-cta {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.challenge-referral-cta h3 {
    color: #fff;
}
.challenge-referral-cta p {
    color: rgba(255,255,255,0.8);
}
.progress-text {
    color: var(--kjo-pro-text-headings);
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}
.referral-history-widget .history-list {
    list-style: none; padding: 0; margin: 0;
}
.referral-history-widget .history-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.referral-history-widget .history-list li:last-child {
    border-bottom: none;
}
.referral-history-widget .referred-status {
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

/*
==========================================================================
>>> [V4.1] STYLES FOR NEW CHALLENGE PAGE FEATURES
==========================================================================
*/

/*--------------------------------------------------------------
>>> 1. "How It Works" Button
--------------------------------------------------------------*/
.pro-hub-secondary-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    padding: 5px;
    text-decoration: underline;
    font-size: 0.95em;
    transition: color 0.2s ease;
}
.pro-hub-secondary-button:hover {
    color: #fff;
}

/*--------------------------------------------------------------
>>> 2. Countdown Timer
--------------------------------------------------------------*/
#kjo-countdown-timer {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    max-width: 450px;
    margin: 40px auto;
}
#kjo-countdown-timer > p {
    margin: 0 0 15px 0;
    font-size: 1em;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}
.timer-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.timer-box {
    text-align: center;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
    min-width: 80px;
    color: #fff;
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: 600;
}
.timer-box span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.1;
    color: var(--kjo-pro-gold-accent);
}

/*--------------------------------------------------------------
>>> 3. WhatsApp-Style Testimonial
--------------------------------------------------------------*/
.kjo-testimonial-bubble {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 450px;
    margin: 50px auto;
}
.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.5);
}
.testimonial-content {
    background-color: #075E54; /* WhatsApp dark green */
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px 12px 12px 0; /* Bubble shape */
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.testimonial-name {
    font-weight: bold;
    font-size: 0.9em;
    color: #00E676; /* Accent name color */
    margin-bottom: 5px;
}
.testimonial-text {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95em;
}

/*--------------------------------------------------------------
>>> 4. Live Sharer Counter
--------------------------------------------------------------*/
.kjo-live-counter {
    background: var(--kjo-pro-bg-white);
    max-width: 450px;
    margin: 50px auto;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.counter-icon {
    font-size: 1.8em;
    line-height: 1;
}
.counter-text {
    font-size: 1.1em;
    color: var(--kjo-pro-text-body);
    font-weight: 500;
}
#live-sharer-count {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--kjo-pro-text-headings);
}

/*--------------------------------------------------------------
>>> 5. "How It Works" Modal
--------------------------------------------------------------*/
#how-it-works-modal .kjo-modal-content {
    background: linear-gradient(145deg, #2a4a55, #1a2c34); /* Dark gradient background */
    border: 1px solid rgba(0, 230, 118, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    color: #fff;
}
#how-it-works-modal .kjo-modal-close {
    color: rgba(255,255,255,0.7);
}
#how-it-works-modal .modal-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #fff;
}
.step-by-step-guide {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}
.guide-step {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.guide-step:last-child {
    margin-bottom: 0;
}
.guide-step .guide-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #00E676;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
}
.guide-step h3 {
    color: #fff;
    font-size: 1.1em;
    margin: 0 0 4px 0;
}
.guide-step p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
    margin: 0;
    line-height: 1.5;
}

/*--------------------------------------------------------------
>>> 6. Phone Number Capture Section
--------------------------------------------------------------*/
.phone-capture-section {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.phone-capture-section h3 { color: #fff; }
.phone-capture-section p { color: rgba(255,255,255,0.8); max-width: 400px; margin-left: auto; margin-right: auto; }
.locked-phone-number {
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 230, 118, 0.2);
    border: 1px solid rgba(0, 230, 118, 0.4);
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 300px;
    margin: 10px auto 0;
}
.phone-form {
    display: flex;
    max-width: 400px;
    margin: 20px auto 0;
    gap: 10px;
}
.phone-form input[type="tel"] {
    flex-grow: 1;
    background-color: rgba(255,255,255,0.9);
    color: #000;
    border-color: #ccc;
}
.phone-form button {
    flex-shrink: 0;
}

/*
==========================================================================
>>> [V4.7] LOGGED-OUT SHARE NOTE
==========================================================================
*/
.kjo-share-note {
    max-width: 480px; /* Controls the width of the note */
    margin: 30px auto 15px auto; /* Adds space above and below */
    padding: 15px 20px;
    background: rgba(0,0,0,0.25);
    border-left: 4px solid var(--kjo-pro-gold-accent); /* Uses the gold from your color variables */
    border-radius: 8px;
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    text-align: center;
}

.kjo-share-note strong {
    color: #fff;
    font-weight: 600;
}
/*
==========================================================================
>>> [V4.8 - CORRECTED] AD SENSE SLOT STYLING
==========================================================================
*/

.challenge-adsense-slot {
    margin: 40px auto;
    padding: 0 15px;
    max-width: 750px;
    text-align: center;
}

.challenge-adsense-slot h4 {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin: 0 0 10px 0;
    letter-spacing: 1.5px;
}

/* This is the container for the AdSense code itself */
.adsense-placeholder {
    width: 100%;
    min-height: 100px; /* GIVES THE AD A MINIMUM HEIGHT TO APPEAR */
    background: #ffffff; /* FORCES A WHITE BACKGROUND TO PREVENT COLOR ISSUES */
    border-radius: 8px;
    padding: 10px; /* Adds some space around the ad */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}   



/*
==========================================================================
>>> [V4.9] VIDEO TUTORIAL SLIDER SECTION
==========================================================================
*/
.video-tutorial-section {
    padding: 60px 0;
    background: #0F2027; /* A very dark, deep blue from your gradient */
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tutorial-section-title {
    text-align: center;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 700;
    margin: 0 auto 40px auto;
}

/* Swiper container needs relative position for nav buttons */
.kymjo-tutorial-slider {
    width: 100%;
    position: relative;
    padding: 0 50px; /* Make space on the sides for the buttons */
}

.tutorial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.tutorial-text {
    padding: 20px 25px;
}
.tutorial-text h3 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    margin: 0 0 8px 0;
}
.tutorial-text p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}

.tutorial-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}
.tutorial-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Swiper Navigation Buttons Styling */
.tutorial-slider-nav .swiper-button-prev,
.tutorial-slider-nav .swiper-button-next {
    color: #fff;
    transition: color 0.2s ease;
}
.tutorial-slider-nav .swiper-button-prev:hover,
.tutorial-slider-nav .swiper-button-next:hover {
    color: var(--kjo-pro-gold-accent);
}
.swiper-button-next::after, 
.swiper-button-prev::after {
    font-size: 24px !important; /* Make arrows smaller */
    font-weight: 900;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kymjo-tutorial-slider {
        padding: 0; /* No padding for buttons on mobile */
    }
    .tutorial-slider-nav {
        display: none; /* Hide next/prev buttons on mobile */
    }
}







/*--------------------------------------------------------------
>>> 7. Admin & Notification Styles (Keep these)
--------------------------------------------------------------*/
.postbox .inside .fraud-warning { background-color: #fff3cd; border: 1px solid #ffeeba; color: #856404; padding: 10px 15px; border-radius: 4px; margin-top: 15px; font-weight: bold; }
.header-notification-icon { position: relative; display: inline-block; margin-right: 15px; color: #333; text-decoration: none; }
.header-notification-icon .dashicons-bell { font-size: 24px; vertical-align: middle; }
.notification-count { position: absolute; top: -5px; right: -8px; background-color: #d63638; color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 11px; line-height: 18px; text-align: center; font-weight: bold; }
.kymjo-notifications-list { list-style: none; padding: 0; margin: 0; }
.notification-item { padding: 15px; border: 1px solid #e9ecef; border-radius: 5px; margin-bottom: 10px; }
.notification-item.unread { background-color: #f8f9fa; border-left: 4px solid #0073aa; }
