/* =====================================================
   ProSignal Frontend — Modern Responsive Overrides
   Goal: FundedNext-style typography + clean mobile UX
   ===================================================== */

/* ---------- Modern font + base ---------- */

body, html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p, li, .feature p, .feature-title + p {
    font-size: 0.95rem;
    line-height: 1.65;
    letter-spacing: 0;
}

/* ---------- Hero / Slider title — smaller, cleaner ---------- */
.slider-text .slide-title {
    font-size: 3rem !important;            /* was 68px */
    line-height: 1.15 !important;          /* was 78px */
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    text-transform: none !important;       /* fundednext uses sentence case */
    margin-bottom: 1rem;
}

.slider-text .slide-title span {
    font-weight: 800 !important;
}

.slider-text p {
    font-size: 1.05rem;
    margin-top: 1.25rem;
}

.slider.btn-primary {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 0.5rem;
}

/* ---------- Hero video section — responsive heights ---------- */
.video-hero-slider {
    height: 80vh !important;
    min-height: 480px !important;
    max-height: 720px;
}

/* Carousel (non-video fallback) */
#main-slide .item {
    min-height: 480px;
    height: 80vh;
    max-height: 720px;
}

/* ---------- Feature titles — smaller, modern ---------- */
.feature-title {
    font-size: 1rem !important;            /* was 18px */
    margin-top: 0.85rem !important;
    margin-bottom: 0.4rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    font-weight: 700 !important;
}

.feature-icon img {
    height: 42px !important;
    margin-bottom: 0.25rem;
}

.image-block .feature p,
.image-block p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---------- Section title (title-head) ---------- */
.title-head {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.title-head-subtitle p {
    font-size: 1rem !important;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* ---------- Features+Video layout (new clean version) ---------- */
.features-video-section {
    padding: 4rem 0;
}

.features-row {
    display: flex;
    flex-wrap: wrap;
}

.features-col {
    padding: 1rem;
}

.feature-item {
    margin-bottom: 1.75rem;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item p {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Video column: clean 16:9 wrapper, no absolute positioning */
.video-column {
    padding: 1rem;
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;  /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #000;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Buttons (general) ---------- */
.btn-primary,
.btn.btn-primary {
    border-radius: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* ---------- Pricing cards ---------- */
.pricing-table,
.pricing-table-3 {
    border-radius: 0.85rem;
    overflow: hidden;
}

.pricing-table h3,
.pricing-table-3 h3 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

.pricing-table .price,
.pricing-table-3 .price {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
}

/* ---------- Blog / News cards ---------- */
.blog-thumb h3,
.blog .blog-thumb h3 {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.blog-thumb p,
.blog .blog-thumb p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #6c757d;
}

/* ---------- Section padding ---------- */
.blog,
.latest-signals,
.image-block,
section.pricing {
    padding: 3.5rem 0 !important;
}

/* ==================================================
   MOBILE (≤ 768px) — main fixes
   ================================================== */
@media (max-width: 768px) {
    /* Hero — much smaller */
    .video-hero-slider,
    #main-slide .item,
    .video-hero-section {
        height: 65vh !important;
        min-height: 380px !important;
        max-height: 560px !important;
    }

    .slider-text .slide-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        padding: 0 0.5rem;
    }

    .slider-text p {
        font-size: 0.95rem;
    }

    .slider.btn-primary {
        padding: 0.7rem 1.3rem;
        font-size: 0.88rem;
    }

    /* Video controls smaller */
    .video-controls {
        bottom: 12px !important;
        right: 12px !important;
    }

    /* Features+Video stacks vertically on mobile */
    .features-video-section {
        padding: 2.5rem 0 !important;
    }

    .features-row {
        flex-direction: column;
    }

    /* Reorder: video first, then features below (modern hero layout) */
    .features-row .video-column { order: 1; }
    .features-row .features-col:nth-of-type(1) { order: 2; }
    .features-row .features-col:nth-of-type(2) { order: 3; }

    .features-col,
    .video-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0.75rem !important;
    }

    .feature-item {
        margin-bottom: 1.5rem !important;
    }

    .feature-title {
        font-size: 0.92rem !important;
    }

    /* Section title */
    .title-head {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        padding: 0 1rem;
    }

    .title-head-subtitle p {
        font-size: 0.9rem !important;
        padding: 0 1rem;
    }

    /* Pricing */
    .pricing-table .price,
    .pricing-table-3 .price {
        font-size: 2rem !important;
    }

    /* Section padding */
    .blog,
    .latest-signals,
    section.pricing {
        padding: 2.5rem 0 !important;
    }
}

/* ==================================================
   SMALL MOBILE (≤ 480px)
   ================================================== */
@media (max-width: 480px) {
    .slider-text .slide-title {
        font-size: 1.4rem !important;
        line-height: 1.25 !important;
    }

    .slider-text p {
        font-size: 0.88rem;
        margin-top: 0.85rem;
    }

    .video-hero-slider,
    #main-slide .item,
    .video-hero-section {
        height: 60vh !important;
        min-height: 340px !important;
    }

    .title-head {
        font-size: 1.4rem !important;
    }

    .feature-title {
        font-size: 0.85rem !important;
        margin-top: 0.5rem !important;
    }

    .feature-icon img {
        height: 36px !important;
    }
}

/* ==================================================
   TABLET (769px–1024px)
   ================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .slider-text .slide-title {
        font-size: 2.4rem !important;
    }

    .title-head {
        font-size: 2rem !important;
    }
}

/* ==================================================
   DESKTOP — wider video column (≈50%), tighter feature columns
   ================================================== */
@media (min-width: 1025px) {
    .features-row {
        align-items: center;
    }

    .features-col {
        flex: 0 0 26%;
        max-width: 26%;
        padding: 1rem 1.5rem;
    }

    .video-column {
        flex: 0 0 48%;
        max-width: 48%;
        padding: 1rem 1.25rem;
    }

    /* Cap the video size on very wide screens so it stays elegant */
    .video-column .video-wrap {
        max-width: 640px;
        margin: 0 auto;
    }
}

/* Even wider screens — keep proportions but allow a slightly larger video */
@media (min-width: 1400px) {
    .video-column .video-wrap {
        max-width: 720px;
    }
}

/* ---------- Subtle quality-of-life ---------- */
img { max-width: 100%; height: auto; }

a { transition: color .15s ease; }

::selection { background: rgba(0,158,247,0.25); color: inherit; }

/* ==================================================
   ADDITIONAL FIXES — ProSignal Frontend UI/UX
   ================================================== */

/* [C2] body.light flash fix — ensure light mode background covers full viewport */
body.light { background: #f8fafc !important; }

/* [H1] Active nav item — underline indicator */
body.light .site-nav-inner ul.navbar-nav > li.active > a,
.site-nav-inner ul.navbar-nav > li.active > a {
    color: #fff !important;
}
.site-nav-inner ul.navbar-nav > li.active > a::after {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    opacity: 1;
}
body.light ul.navbar-nav > li.active > a {
    color: #333 !important;
}

/* [M8] CTA outline button beside Register Now */
.action-btn .btn-outline-cta {
    display: inline-block;
    margin-left: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    text-decoration: none;
    transition: background .2s, color .2s;
    letter-spacing: 0.01em;
}
.action-btn .btn-outline-cta:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* [M7] Footer Telegram link & hours */
.footer-telegram-link {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}
.footer-telegram-link:hover { color: #29a8e0; }
.footer-hours { margin-top: 6px; opacity: .8; font-size: 0.85rem; }

/* Mobile logo — ensure it scales cleanly on xs */
@media (max-width: 767px) {
    .main-logo {
        text-align: center;
        padding-top: 12px;
        padding-bottom: 6px;
    }
    .main-logo img { max-height: 36px; }
    ul.user { text-align: center; padding-top: 0; }
}

/* [H4] Pricing cards — moved from inline <style> in _PricingPartial.cshtml */
.pricing-section {
    padding: 60px 0;
    background-color: #f1f5f9; /* [L3] was plain #f9f9f9 — harmonised with site palette */
}
body.light .pricing-section { background-color: #f1f5f9; }

.pricing-card {
    border: 1px solid #dde2ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    transition: transform .3s, box-shadow .3s;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,.13);
}

/* [H3] Most Popular featured card */
.pricing-card.pricing-featured {
    border: 2px solid #009ef7;
    box-shadow: 0 8px 32px rgba(0,158,247,.18);
    transform: scale(1.03);
}
.pricing-card.pricing-featured:hover { transform: scale(1.03) translateY(-6px); }

.pricing-card.pricing-trial { border: 2px solid #28a745; }

.trial-ribbon, .popular-ribbon {
    position: absolute;
    top: 10px;
    right: -32px;
    padding: 4px 40px;
    font-size: 11px;
    font-weight: 700;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}
.trial-ribbon   { background: #28a745; }
.popular-ribbon { background: #009ef7; }

.trial-days { font-size: 13px; color: #28a745; margin-top: 4px; }

.pricing-header { padding: 16px 0; background: transparent; color: #111; }
.pricing-header h3 { font-size: 1.2rem !important; margin: 0; font-weight: 700 !important; }

.price { font-size: 2.25rem !important; margin: 14px 0; font-weight: 800 !important; }

.pricing-body { padding: 12px 8px; }
.pricing-features { list-style: none; padding: 0; margin: 0; }
.pricing-features li { padding: 7px 0; font-size: 0.9rem; border-bottom: 1px solid #f0f0f0; color: #555; }
.pricing-features li:last-child { border-bottom: 0; }
.note-item { font-size: 0.88rem; line-height: 1.6; color: #555; margin-bottom: 4px; }

.pricing-footer { padding-top: 16px; }
.pricing-footer .btn-primary,
.pricing-footer .btn-success {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
}

/* [H5] FAQ Accordion — CSS-only +/− icons */
.panel-title > a::after {
    content: '\2212'; /* minus */
    float: right;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    transition: transform .2s;
}
.panel-title > a.collapsed::after {
    content: '\002B'; /* plus */
}
/* Smooth accordion transition */
.panel-collapse { transition: height .25s ease; }

/* FAQ sidebar CTA box */
.faq-cta-box {
    background: linear-gradient(135deg, #009ef7 0%, #006bb6 100%);
    border-radius: 12px;
    padding: 28px 20px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}
.faq-cta-box h4 { color: #fff; margin-bottom: 8px; }
.faq-cta-box p  { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 16px; }
.faq-cta-box .btn { background: #fff; color: #009ef7; font-weight: 600; border-radius: 8px; }
.faq-cta-box .btn:hover { background: #e8f4ff; }

/* [H6] Terms of Service — sticky TOC sidebar */
.toc-sidebar {
    position: sticky;
    top: 80px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}
body.light .toc-sidebar { background: #f8fafc; }
.toc-sidebar h5 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin-bottom: 12px; font-weight: 700; }
.toc-sidebar ul { list-style: none; padding: 0; margin: 0; }
.toc-sidebar ul li { border-bottom: 1px solid #e9ecef; }
.toc-sidebar ul li:last-child { border-bottom: 0; }
.toc-sidebar ul li a { display: block; padding: 7px 4px; font-size: .85rem; color: #475569; text-decoration: none; transition: color .15s; }
.toc-sidebar ul li a:hover { color: #009ef7; }

/* Terms content headings */
.terms-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: .5rem;
    padding-top: 0.5rem;
    scroll-margin-top: 90px;
}
body.light .terms-content h3 { color: #1e293b; }

/* [H7] Contact page — sidebar improvements */
.contact-support-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}
body.light .contact-support-box { background: #f8fafc; }
.contact-support-box h4 { font-size: 1rem; margin-bottom: 8px; }
.contact-support-box p  { font-size: .875rem; color: #64748b; margin-bottom: 12px; }
.contact-response-badge {
    display: inline-block;
    background: #e8f4ff;
    color: #009ef7;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ==================================================
   END ADDITIONAL FIXES
   ================================================== */

