/* Hide the call-to-action section for logged-in users */
body.logged-in #adv-call-to-action-section {
  display: none !important;
}
:root {
    --primary-color: #5865F2;
    --primary-dim: #4853c4;
    --primary-soft: rgba(88,101,242,.14);
    --background-color: #181a1b;
    --surface-color: #25282b;
    --surface-2-color: #2d3034;
    --surface-border-color: #383d42;
    --border-soft-color: #2c2f33;
    --pill-border-color: #555a61;
    --text-primary-color: #FFFFFF;
    --text-secondary-color: #b0b7c1;
    --text-dim-color: #6f757c;
    --sell-color: #f04747;
    --buy-color: #43b581;
    --home-r-md: 10px;
    --home-r-lg: 16px;
}
.elementor-widget-container, .elementor-heading-title {
    font-family: 'Poppins', sans-serif;
}

/* --- 2. Generic Helper Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.section-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2em;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary-color);
    margin-bottom: 14px;
}
/* app-style accent underline under each section heading */
.section-title::after {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), rgba(88,101,242,.25));
}
.section-subtitle {
    text-align: center;
    font-size: 1.05em;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary-color);
}
/* --- 3. Section-Specific Styles --- */
/* Hero Section */
.hero-section-container h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--text-primary-color);
    margin-bottom: 35px;
    line-height: 1.2;
    text-align: center;
}
.hero-section-container p.hero-subtitle {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
    color: var(--text-secondary-color);
}

/* Hero Search — wide wrapper, constrained input */
.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 4px auto 26px;
}
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, border-color .15s ease;
    border: 1px solid transparent;
}
.hero-cta-btn:hover { transform: translateY(-1px); }
.hero-cta-btn.primary { background: #5865F2; color: #fff; box-shadow: 0 8px 22px rgba(88,101,242,.35); }
.hero-cta-btn.primary:hover { background: #4853c4; }
.hero-cta-btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.18); }
.hero-cta-btn.ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }

.adv-button-guest {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    color: #fff !important;
}
.adv-button-guest:hover { border-color: rgba(255,255,255,.45) !important; }

.hero-search-wrapper {
    max-width: 1200px;
    margin: 0 auto 24px;
    width: 100%;
}
.hero-search-wrapper .adv-omnisearch-container {
    max-width: none;
    width: 100%;
    margin: 0;
}
.hero-search-wrapper .adv-input-with-icon-wrapper {
    max-width: 700px;
    margin: 0 auto;
}
.hero-search-wrapper .adv-omnisearch-results {
    max-width: 700px;
    margin: 0 auto;
}
@media (min-width: 1400px) {
    .hero-search-wrapper { max-width: 1400px; }
}
@media (min-width: 1800px) {
    .hero-search-wrapper { max-width: 1600px; }
}

/* Live Feeds Split */
.home-live-feeds {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
@media (min-width: 1400px) {
    .home-live-feeds { max-width: 1300px; }
}
@media (min-width: 1800px) {
    .home-live-feeds { max-width: 1500px; }
}
.home-feed-column {
    flex: 1;
    min-width: 0;
}
.home-feed-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: var(--text-primary-color);
}
/* SELL=red / BUY=green status dot, matching the app order-book column heads */
.home-feed-heading::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-dim-color);
}
.home-feed-column[data-listing-type="sell"] .home-feed-heading::before { background: var(--sell-color); box-shadow: 0 0 0 4px rgba(240,71,71,.12); }
.home-feed-column[data-listing-type="buy"]  .home-feed-heading::before { background: var(--buy-color);  box-shadow: 0 0 0 4px rgba(67,181,129,.12); }

.home-feed-column .adv-listings-card-container {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* --- App-style listing cards inside the homepage live feeds --- */
.home-live-feeds .adv-public-listing-card {
    background: var(--surface-color);
    border: 1px solid var(--border-soft-color);
    border-radius: var(--home-r-md);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.home-live-feeds .adv-public-listing-card:hover {
    border-color: var(--pill-border-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.home-live-feeds .adv-public-listing-card .adv-card-item-icon {
    border-radius: 9px;
    background: var(--surface-2-color);
}
/* accent the price like the app's .cv values */
.home-live-feeds .adv-card-value.price-value { color: var(--text-primary-color); font-weight: 700; }
.home-live-feeds .adv-card-label { color: var(--text-dim-color); }
/* order-type chip tinted by side */
.home-live-feeds .adv-listing-type-sell { color: #f4a0a0; }
.home-live-feeds .adv-listing-type-buy  { color: #76e0b1; }
@media (max-width: 768px) {
    .home-live-feeds {
        flex-direction: column;
    }
}
.hero-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
/* "How It Works" Section */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.step-card {
    background-color: var(--surface-color);
    padding: 26px 24px;
    border-radius: var(--home-r-lg);
    border: 1px solid var(--border-soft-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 28px rgba(0,0,0,0.32);
}
/* icon rendered in an app-style rounded accent badge */
.step-card i {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--primary-color);
    background: var(--primary-soft);
    border: 1px solid rgba(88,101,242,.35);
    border-radius: 14px;
    margin-bottom: 18px;
}
.step-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.18em;
    font-weight: 600;
    color: var(--text-primary-color);
    margin-bottom: 9px;
}
.step-card p {
    color: var(--text-secondary-color);
    line-height: 1.6;
    font-size: 0.95em;
}
.step-card a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.step-card a:hover {
    text-decoration: underline;
}
/* "Explore Our Tools" Section — value-driven cards */
.tools-section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.tool-card {
    background-color: var(--surface-color);
    padding: 28px 30px;
    border: 1px solid var(--border-soft-color);
    border-radius: var(--home-r-lg);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.tool-card:hover::before { opacity: 1; }
.tool-card h3,
.tool-card p {
    margin: 0;
}
.tool-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    width: 100%;
}
.tool-icon-badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.35);
}
.tool-icon-badge i {
    font-size: 1.5em;
    color: var(--primary-color);
    line-height: 1;
}
.tool-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-primary-color);
}
.tool-tag {
    margin-left: auto;
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}
.tool-card p {
    color: var(--text-secondary-color);
    margin-bottom: 18px;
    line-height: 1.65;
}
.tool-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tool-features li {
    color: var(--text-secondary-color);
    font-size: 0.92em;
    padding-left: 24px;
    position: relative;
}
.tool-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}
.tool-card .tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    font-size: 0.95em;
    font-weight: 600;
    padding: 11px 26px;
    border-radius: var(--home-r-md);
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
    margin-top: auto;
}
.tool-card .tool-button:hover {
    background-color: var(--primary-dim);
    border-color: var(--primary-dim);
    transform: translateY(-1px);
    color: #fff;
}
/* "Stats" Section */
.stats-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}
.stat-card {
    background-color: var(--surface-color);
    padding: 30px 24px;
    border-radius: var(--home-r-lg);
    border: 1px solid var(--border-soft-color);
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}
.stat-card .stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.7em;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}
.stat-card .stat-label {
    font-size: 0.95em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-secondary-color);
    margin-top: 8px;
}

/* --- Final call-to-action section --- */
.cta-section-container .section-title { margin-bottom: 14px; }
.cta-section-container .adv-user-menu-container { display: flex; justify-content: center; margin-top: 26px; }
/* --- 4. Responsive Media Queries (Consolidated) --- */
@media (max-width: 992px) {
    .hero-section-container h1 {
        font-size: 2.8em;
    }
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hero-section-container h1 {
        font-size: 2.2em;
    }
    .section-title {
        font-size: 2em;
    }
    .how-it-works-grid,
    .tools-section-grid,
    .stats-section-grid,
    .hero-content-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
    .how-it-works-grid,
    .tools-section-grid,
    .stats-section-grid {
        grid-template-columns: 1fr;
    }
    .tool-card h3 {
        font-size: 1.25em;
    }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .tools-section-grid {
        grid-template-columns: 1fr;
    }
}
