/*
 * FIH.com Modern Overlay (2025+)
 * TO DISABLE: Remove the <link> tag in header files
 */

/* ===== GLOBAL ===== */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: 'Inter', 'Jost', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.6;
}

html { scroll-behavior: smooth; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', 'Inter', sans-serif !important;
    color: #0f1923;
    line-height: 1.1;
}

p { color: #4a5568; line-height: 1.65; }

a { transition: all 0.2s ease; }

.container { max-width: 1200px !important; width: 100% !important; }

main.mainContainer { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== HEADER ===== */

.header_main {
    background: #0f1923 !important;
    border: none !important;
    height: auto !important;
    min-height: auto !important;
}

.htop {
    background: #080d13 !important;
    color: #fff !important;
    height: auto !important;
    padding: 6px 0 !important;
    float: none !important;
    width: 100% !important;
}

.htop .hinfo li, .htop .hinfo li a { color: #8a9bb5 !important; font-size: 12px !important; }
.htop .hinfo li a:hover { color: #e8734a !important; }

.hbottom {
    background: #0f1923 !important;
    padding: 8px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}

.hbottom > .container > .d-flex {
    min-height: 52px;
}

/* Auth links for non-logged-in */
.header-auth-links a {
    transition: color 0.2s ease;
}
.header-auth-links a:hover {
    color: #fff !important;
}

.logo {
    float: none !important;
    flex-shrink: 0;
}

.nav_wrapper {
    float: none !important;
    background: transparent !important;
    height: auto !important;
    padding: 0 0 0 25px !important;
    flex: 1;
    display: flex !important;
    align-items: center;
}

.nav_menu > ul,
.no-banner .nav_menu > ul {
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav_menu ul li a,
.nav_menu ul li a span,
.no-banner .nav_menu ul li a,
.no-banner .nav_menu ul li a span {
    color: #c0c8d4 !important;
    font-size: 12.5px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.1px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav_menu ul li a:hover span,
.nav_menu ul li.active > a span,
.no-banner .nav_menu ul li a:hover span {
    color: #fff !important;
}

.nav_menu ul li a span { position: relative; }
.nav_menu ul li a span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e8734a;
    transition: width 0.2s ease;
}
.nav_menu ul li a:hover span::after { width: 100%; }

/* Logo */
.hbottom .logo .blacklogo { display: none !important; }
.hbottom .logo .whitelogo { display: block !important; }

/* Header buttons */
.hbottom .btn-group {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: auto;
}

.hbottom .btn-group .btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 20px !important;
    font-size: 12.5px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.hbottom .btn-group .blue-btn {
    background: transparent !important;
    border: 1.5px solid #fff !important;
    color: #fff !important;
    box-shadow: none !important;
}

.hbottom .btn-group .blue-btn:hover {
    background: #fff !important;
    color: #0f1923 !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
}

.hbottom .btn-group .btn:not(.blue-btn) {
    background: #0f1923 !important;
    border: 1.5px solid #fff !important;
    color: #fff !important;
}

.hbottom .btn-group .btn:not(.blue-btn):hover {
    background: #fff !important;
    color: #0f1923 !important;
}

/* Sticky header */
.sticky .header_main { background: rgba(15,25,35,0.97) !important; }
.sticky .nav_menu ul li a span { color: #fff !important; }

/* Login/Register */
.user-login, .user-login a, .user-login .separator { color: #8a9bb5 !important; font-size: 13px !important; }
.user-login a:hover { color: #e8734a !important; }
.user .uname { color: #fff !important; }

/* Dashboard buttons */
.sellingBtn { background: #e8734a !important; border-color: #e8734a !important; color: #fff !important; }

.after-login .btn-group {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}

.after-login .btn-group .btn {
    font-size: 11px !important;
    padding: 5px 14px !important;
    border-radius: 4px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.after-login .btn-group .btn:not(.sellingBtn):not(.btn-listings) {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #c0c8d4 !important;
}

.after-login .btn-group .btn:not(.sellingBtn):not(.btn-listings):hover {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}

/* Gold "Listing Search" button */
.after-login .btn-group .btn-listings {
    background: #c9a227 !important;
    border-color: #c9a227 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.after-login .btn-group .btn-listings:hover {
    background: #b08e1f !important;
}

/* Green buttons alignment (View Business Name, Financials, Data Room) */
.marketplace-details-para {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: flex-start !important;
    margin-top: 10px !important;
}

.marketplace-details-para .btn,
.marketplace-details-para a.btn {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.btn.pgGreen, a.pgGreen {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

/* ===== BUTTONS (GLOBAL) ===== */

.btn {
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    padding: 11px 24px !important;
    cursor: pointer !important;
}

.blue-btn, a.blue-btn {
    background: #e8734a !important;
    border-color: #e8734a !important;
    color: #fff !important;
}

.blue-btn:hover, a.blue-btn:hover {
    background: #d4622e !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232,115,74,0.3) !important;
}

.btn-ylw, a.btn-ylw {
    background: #e8734a !important;
    border-color: #e8734a !important;
    color: #fff !important;
}

/* ===== SECTIONS ===== */

.section { padding: 60px 0 !important; }

.heading, h2.heading {
    letter-spacing: -0.3px;
    line-height: 1.15;
    font-family: 'Jost', sans-serif !important;
}

/* ===== CARDS ===== */

.listing_card, .listing-item, .new_list_main, .new_list_box {
    border-radius: 8px !important;
    overflow: hidden;
    transition: all 0.25s ease !important;
    border: 1px solid #e5e8ed !important;
}

.listing_card:hover, .listing-item:hover, .new_list_main:hover, .new_list_box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
}

/* ===== FORM INPUTS ===== */

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], textarea, select {
    border-radius: 6px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    border: 1px solid #dfe3ea !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
textarea:focus, select:focus {
    border-color: #e8734a !important;
    box-shadow: 0 0 0 3px rgba(232,115,74,0.08) !important;
    outline: none !important;
}

/* ===== FOOTER ===== */

.mainFooter { background: #080d13 !important; }
.mainFooter .ftop { padding: 55px 0 35px !important; }
.mainFooter .fpara { color: #64748b !important; font-size: 13px !important; line-height: 1.7 !important; }
.mainFooter .fcontact ul li, .mainFooter .fcontact ul li a { color: #64748b !important; font-size: 13px !important; }
.mainFooter .fcontact ul li a:hover { color: #e8734a !important; }
.mainFooter h2.subheading { color: #fff !important; font-family: 'Jost', sans-serif !important; font-size: 15px !important; font-weight: 600 !important; margin-bottom: 18px !important; }
.mainFooter .fnav ul li a { color: #64748b !important; font-size: 13px !important; }
.mainFooter .fnav ul li a:hover { color: #e8734a !important; }
.mainFooter .copyright { background: rgba(0,0,0,0.3) !important; padding: 18px 0 !important; }
.mainFooter .copyright p, .mainFooter .copyright a, .mainFooter .copyright small { color: #475569 !important; font-size: 11px !important; }
.mainFooter .social a { color: #64748b !important; }
.mainFooter .social a:hover { color: #e8734a !important; }
.mainFooter .emailsubscribebtn {
    background: #e8734a !important;
    border-color: #e8734a !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 10px 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    max-width: none !important;
    width: auto !important;
}
footer, .footer_main { border-top: 1px solid rgba(255,255,255,0.05); }

/* ===== MARKETPLACE ===== */

.common_banner {
    background: linear-gradient(160deg, #0a1219 0%, #0f1e2d 50%, #162233 100%) !important;
    min-height: auto !important;
    height: auto !important;
}

.common_banner .innerbanner {
    padding: 40px 0 30px !important;
    min-height: auto !important;
    position: relative !important;
}

.common_banner .bannerbox {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
}

.common_banner .bannertext {
    position: relative !important;
    top: auto !important;
    transform: none !important;
}

.common_banner .bannerimg { display: none !important; }

.common_banner .bannertext-in .subheading {
    color: #fff !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    letter-spacing: -0.3px;
}

.common_banner .bannertext-in p {
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    max-width: 600px !important;
}

.common_banner .regBtn,
.common_banner .btn {
    background: #e8734a !important;
    border-color: #e8734a !important;
    color: #fff !important;
    font-size: 13px !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    margin-top: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(232,115,74,0.3) !important;
}

/* Marketplace banner text enhancement */
.common_banner .bannertext-in {
    text-align: center !important;
}

/* Search/filter section */
.marketplace-lock {
    padding: 35px 0 20px !important;
}

.search-section {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 24px !important;
    border: 1px solid #e5e8ed !important;
    margin-bottom: 15px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}

.search-section .labelWrap input,
.search-section .labelWrap select {
    background: #fff !important;
    border: 1px solid #dfe3ea !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    padding: 9px 12px !important;
    font-family: 'Inter', sans-serif !important;
    color: #333 !important;
}

.search-result-txt {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #64748b !important;
    padding: 15px 0 5px !important;
}

/* Marketplace listing cards */
.latest-list .box {
    border-radius: 10px !important;
    border: 1px solid #e5e8ed !important;
    transition: all 0.2s ease !important;
    padding: 20px 24px !important;
    background: #fff !important;
}

.latest-list .box:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
}

/* Listing card content */
.latest-list .mid-block .block .head {
    color: #94a3b8 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: 'Inter', sans-serif !important;
}

.latest-list .mid-block .block span {
    color: #0f1923 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
}

.latest-list .starting-price {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #0f1923 !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
}

.latest-list .starting-price span.multiple {
    font-size: 11px !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-weight: 500 !important;
}

.latest-list .right-block .btn {
    font-size: 12px !important;
    padding: 8px 18px !important;
    background: #0f1923 !important;
    color: #fff !important;
    border-color: #0f1923 !important;
}

/* Locked listing image - professional placeholder */
.latest-list .img-sec a.lock img,
.latest-list .img-sec img[src*="banner.jpg"] {
    filter: blur(4px) brightness(0.5) !important;
}

.latest-list .img-sec a.lock {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0f1923 !important;
    min-height: 80px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.latest-list .img-sec a.lock::after {
    content: 'NDA Required' !important;
    position: absolute !important;
    color: #fff !important;
    font-size: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    z-index: 2 !important;
    background: rgba(232,115,74,0.9) !important;
    padding: 4px 10px !important;
    border-radius: 3px !important;
}

/* Dashboard listing images */
.seller-dashboard .img-sec a.lock,
.seller-dashboard .img-sec img[src*="banner.jpg"] {
    filter: brightness(0.6) !important;
    border-radius: 6px !important;
}

/* Sold badge */
.latest-list .sold {
    background: #0f1923 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

/* Load more button */
.loadmoremp {
    background: #0f1923 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    padding: 12px 30px !important;
}

/* Range sliders */
.range-sec .caption strong {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
}

/* Advanced search link */
#advsrchlink {
    color: #e8734a !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
}

/* Listing detail buttons */
.mp-sale-details .btn,
.saledetails-top .btn,
.listing-btn-group .btn,
.listing-actions .btn {
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 8px 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.3 !important;
    vertical-align: middle !important;
    margin-bottom: 6px !important;
}

/* Normalize all the colorful listing buttons */
.fancybox.btn,
a.fancybox.btn,
.btn.btn-ylw,
.btn-success,
.btn-primary,
.btn-info,
.btn-warning,
.btn-danger {
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 8px 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
}

/* NDA button */
.btn-info, a.btn-info {
    background: #0f1923 !important;
    border-color: #0f1923 !important;
    color: #fff !important;
}

/* Listing detail action buttons - fix alignment */
.marketplace-btn,
.btn_group.marketplace-btn {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.marketplace-btn .btn,
.btn_group.marketplace-btn .btn {
    margin: 0 !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    vertical-align: top !important;
}

/* Specific button colors for listing detail */
.marketplace-btn .btn:first-child {
    background: #e8734a !important;
    border-color: #e8734a !important;
    color: #fff !important;
}

.marketplace-btn .btn.btn_t {
    background: #fff !important;
    border: 1.5px solid #dfe3ea !important;
    color: #0f1923 !important;
}

.marketplace-btn .btn.btn_t:hover {
    border-color: #e8734a !important;
    color: #e8734a !important;
}

.marketplace-btn .btn.pgGreen,
.marketplace-btn .btn.blue-btn {
    background: #0f1923 !important;
    border-color: #0f1923 !important;
    color: #fff !important;
}

.marketplace-btn .rightalignedbtn,
.marketplace-btn .btn.rightalignedbtn {
    background: #fff !important;
    border: 1.5px solid #dfe3ea !important;
    color: #0f1923 !important;
}

/* Fix the ml-2 margins that break gap */
.marketplace-btn .ml-2 {
    margin-left: 0 !important;
}

/* Listing niche heading */
h2.heading:has(+ .btn_group) {
    font-size: 24px !important;
    margin-bottom: 12px !important;
}

/* Price range slider area */
.marketplace-filter {
    background: #f4f6f9 !important;
    border-radius: 8px !important;
    padding: 15px !important;
}

/* ===== INNER PAGES ===== */

.inner-pages { padding: 50px 0 !important; }
.inner-pages .editor_text .heading { font-family: 'Cormorant Garamond', serif !important; font-size: 34px !important; font-weight: 400 !important; color: #0f1923 !important; }
.inner-pages .editor_text p { color: #4a5568 !important; font-size: 15px !important; line-height: 1.7 !important; }

/* ===== PARTNER LOGOS ===== */

.client .item figure img {
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.45;
    transition: all 0.3s ease !important;
}
.client .item figure img:hover { filter: grayscale(0%) brightness(1); opacity: 1; }

/* ===== VALUATION FORM ===== */

.sell-your-site { padding: 35px 0 !important; }
.sell-your-site .heading { font-family: 'Cormorant Garamond', serif !important; font-size: 34px !important; font-weight: 400 !important; color: #0f1923 !important; }
.sell-site-tab nav .tabs { background: #0f1923 !important; border-radius: 6px !important; overflow: hidden; }
.sell-site-tab nav .tabs li { color: #64748b !important; font-family: 'Inter', sans-serif !important; font-size: 12px !important; font-weight: 500 !important; border: none !important; }
.sell-site-tab nav .tabs li.active, .sell-site-tab nav .tabs li.selected { color: #fff !important; background: #e8734a !important; }
.sell-site-tab .blue-heading { font-family: 'Inter', sans-serif !important; font-size: 16px !important; color: #0f1923 !important; font-weight: 500 !important; }

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #0f1923; }
::-webkit-scrollbar-thumb { background: #e8734a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4622e; }

/* ===== CURSOR ===== */

a, button, .btn, [role="button"] { cursor: pointer; }

/* ===== LOGIN / REGISTER PAGES ===== */

.login-form-wrap,
.register-form-wrap {
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 45px 40px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
    border: 1px solid #e5e8ed !important;
}

.login-form-wrap h2,
.register-form-wrap h2,
.login-form-wrap .heading,
.register-form-wrap .heading {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 32px !important;
    font-weight: 500 !important;
    color: #0f1923 !important;
    text-align: center !important;
    margin-bottom: 8px !important;
    text-transform: none !important;
    letter-spacing: -0.3px !important;
}

/* Submit buttons on forms */
input[type="submit"],
button[type="submit"] {
    background: #e8734a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 13px 28px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.2px !important;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #d4622e !important;
    box-shadow: 0 4px 14px rgba(232,115,74,0.3) !important;
}

/* Login specific */
.sgnUp, .btn.sgnUp {
    background: #e8734a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    padding: 14px 28px !important;
    width: 100% !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    display: block !important;
    text-align: center !important;
}

/* Register form specific */
.register_form .sgnUp,
.register_form input[type="submit"],
.register-form-wrap input[type="submit"] {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 10px !important;
}

/* Listing page "View Listing" buttons */
.latest-list .right-block .btn,
.mpul .right-block .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0f1923 !important;
    color: #fff !important;
    border-color: #0f1923 !important;
    font-size: 12px !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    min-width: 100px !important;
    text-align: center !important;
}

/* Listing bottom CTA section */
.online-business {
    background: #0f1923 !important;
}

.online-business .heading {
    color: #fff !important;
}

.online-business .short-desc {
    color: #94a3b8 !important;
}

/* NDA unlock popup */
.popup_blur {
    padding: 30px !important;
}

.popup_blur h2, .popup_blur h3 {
    font-family: 'Jost', sans-serif !important;
    color: #0f1923 !important;
}

.popup_blur .btn {
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
}

/* Social login buttons */
.social-login .btn {
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
}

/* ===== POPUP / MODAL FORMS ===== */

.popup-all .ul,
.popup-all .row,
.popup-all ul.ul {
    margin-bottom: 0 !important;
    overflow: visible !important;
}

.popup-all .ul > li,
.popup-all ul.ul > li {
    margin-bottom: 18px !important;
}

.popup-all .btn,
.popup-all button[type="submit"],
.popup-all input[type="submit"] {
    margin-top: 5px !important;
    vertical-align: top !important;
}

.popup-all h1 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: #0f1923 !important;
    margin-bottom: 8px !important;
}

.popup-all label {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f1923 !important;
}

/* FancyBox content popups - fix ALL button alignment */
.fancybox-content .btn,
.fancybox-content button,
.fancybox-content input[type="submit"],
.fancybox-slide .btn,
.fancybox-slide button[type="submit"] {
    vertical-align: top !important;
    align-self: flex-start !important;
}

/* NDA popup specific */
.fancybox-content .ul,
.fancybox-content ul.ul {
    margin-bottom: 0 !important;
    overflow: visible !important;
}

.fancybox-content .ul > li {
    margin-bottom: 16px !important;
}

/* NDA accept button */
.ndaAcceptBtn,
.nda-accept-btn,
#ndaAcceptBtn,
.fancybox-content .btn.btn-primary,
.fancybox-content .btn-lg {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 10px !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
}

/* ===== USER PROFILE PAGE ===== */

.profile-form-wrap .heading,
.profile-sec .heading,
.profile-sec h2 {
    font-family: 'Jost', sans-serif !important;
    font-size: 22px !important;
    color: #0f1923 !important;
}

.profile-form-wrap label,
.profile-sec label {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f1923 !important;
}

.profile-form-wrap .btn,
.profile-sec .btn,
.user-profile .btn,
.btn.upload-btn {
    background: #e8734a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 11px 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

/* Upload photo button */
.upload-photo-btn,
.btn.upload-btn,
a.upload-btn {
    background: #e8734a !important;
    color: #fff !important;
}

/* Save changes button */
.btn.save-btn,
.profile-sec input[type="submit"],
.profile-sec button[type="submit"] {
    background: #e8734a !important;
    color: #fff !important;
    width: auto !important;
    min-width: 160px !important;
}

/* ===== SUPPORT PAGES ===== */

/* Schedule call & ticket pages */
.login-sec h2.heading,
.register-sec h2.heading {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

/* Schedule call form */
.calllog-form label,
.calllog-form .labelWrap label,
.schedule-call label {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f1923 !important;
}

.calllog-form input,
.calllog-form textarea,
.calllog-form select,
.schedule-call input,
.schedule-call textarea {
    border: 1px solid #dfe3ea !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 11px 14px !important;
}

.calllog-form .btn,
.schedule-call .btn,
.calllog-form input[type="submit"],
.calllog-form button[type="submit"] {
    background: #e8734a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 12px 28px !important;
    width: auto !important;
    min-width: 160px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

/* Ticket form */
.ticket-form .heading,
.create-ticket h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 26px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: #0f1923 !important;
}

.ticket-form label {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.ticket-form .btn,
.ticket-form input[type="submit"],
.ticket-form button[type="submit"],
#ticketCreateFrm .btn,
#ticketCreateFrm input[type="submit"] {
    background: #e8734a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 12px 28px !important;
    width: auto !important;
    min-width: 160px !important;
    cursor: pointer !important;
}

/* Support ticket detail buttons */
.btn.btn-danger,
a.btn.btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
}

.btn.btn-warning,
a.btn.btn-warning {
    background: #e8734a !important;
    border-color: #e8734a !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
}

/* Ticket reply button */
#supportticketreply .btn,
#supportticketreply input[type="submit"] {
    background: #e8734a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    width: auto !important;
}

/* Create ticket button */
.btn.createTicketBtn,
a.createTicketBtn {
    background: #e8734a !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    padding: 10px 22px !important;
}

/* DataTable pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #e8734a !important;
    color: #fff !important;
    border-color: #e8734a !important;
    border-radius: 4px !important;
}

/* Password change form */
.password-form .btn,
#userProfileupdatePassword .btn,
#userProfileupdatePassword input[type="submit"] {
    background: #e8734a !important;
    color: #fff !important;
    width: auto !important;
}

/* Ticket/support table */
.table thead th,
table thead th {
    background: #0f1923 !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
}

.table tbody td,
table tbody td {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    color: #333 !important;
}

/* Create ticket form */
.login_form h2.heading {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 28px !important;
    text-transform: none !important;
}

/* Dashboard tabs */
.js-tabs nav ul li,
.tabs li {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
}

/* Wallet/dashboard heading */
.buyer-dashboard h2.heading,
.seller-dashboard h2.heading {
    font-family: 'Jost', sans-serif !important;
}

/* Listing detail earnings/traffic sections */
.earnings h2.heading,
.traffic h2.heading {
    font-family: 'Jost', sans-serif !important;
    font-size: 24px !important;
}

/* Locked content overlay */
.lock-content-overlay,
.lock-content {
    border-radius: 10px !important;
}

/* How-it-works pages */
.how-it-work-page h2.heading {
    font-family: 'Cormorant Garamond', serif !important;
}

/* ===== NUCLEAR BUTTON FIX - catch ALL remaining broken buttons ===== */

/* Any .btn that isn't in the header nav */
main .btn,
main button.btn,
main a.btn,
main input[type="submit"].btn,
.mainContainer .btn,
.mainContainer button.btn,
.mainContainer a.btn,
section .btn:not(.btn-sm):not(.blue-btn):not(.btn_t):not(.sellingBtn):not(.btn-listings):not(.pgGreen) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e8734a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 11px 24px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: 300px !important;
}

/* Outline/secondary buttons */
main .btn.btn_t,
main a.btn.btn_t {
    background: #fff !important;
    border: 1.5px solid #dfe3ea !important;
    color: #0f1923 !important;
}

/* Specific overrides to not break header, inline buttons, or newsletter forms */
.hbottom .btn-group .btn,
.after-login .btn-group .btn,
.header-auth-links a,
form button[type="submit"],
form .btn,
form .emailsubscribebtn {
    max-width: none !important;
    width: auto !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Schedule call specific */
#calllogreqform .btn,
#calllogreqform input[type="submit"],
#calllogreqform button {
    width: auto !important;
    max-width: 200px !important;
    margin-top: 10px !important;
}

/* ===== USER DROPDOWN & NOTIFICATIONS ===== */

.user-dropdown {
    background: #0f1923 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
    min-width: 160px !important;
}

.user-dropdown ul {
    padding: 6px 0 !important;
    margin: 0 !important;
}

.user-dropdown ul li a {
    color: #c0c8d4 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    padding: 10px 20px !important;
    display: block !important;
    transition: all 0.15s ease !important;
}

.user-dropdown ul li a:hover {
    background: rgba(232,115,74,0.1) !important;
    color: #e8734a !important;
}

/* Notification badge */
.notifiction {
    position: relative !important;
}

.notificationspan {
    background: #e8734a !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 10px !important;
    padding: 2px 6px !important;
    min-width: 18px !important;
    text-align: center !important;
}

/* Profile/Account page tabs */
.profile-tabs .tabs li,
.account-tabs li,
.js-tabs .tabs li {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* My Account heading */
.profile-page h2.heading,
.account-page h2.heading {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 28px !important;
    text-transform: none !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .hbottom .logo .blacklogo { display: none !important; }
    .hbottom .logo .whitelogo { display: block !important; }
}

/* ===== TABLET (768px) ===== */
@media (max-width: 768px) {
    .section { padding: 40px 0 !important; }

    /* Typography scaling */
    h1, .heading { font-size: 30px !important; line-height: 1.15 !important; }
    h2, h2.heading { font-size: 24px !important; }
    h3 { font-size: 18px !important; }

    /* Container */
    .container { padding: 0 20px !important; }

    /* Header nav - hide on mobile (handled by responsive_btn) */
    .nav_wrapper { padding: 0 0 0 10px !important; }
    .nav_menu ul li a span { font-size: 11px !important; }

    /* Header buttons */
    .hbottom .btn-group .btn { padding: 7px 14px !important; font-size: 11px !important; }
    .after-login .btn-group .btn { padding: 4px 10px !important; font-size: 10px !important; }
    .header-auth-links a { font-size: 10px !important; padding: 4px 8px !important; }

    /* Hero section - stack */
    [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 25px !important; }

    /* 3-column grids → 1 column */
    [style*="repeat(3, 1fr)"] { grid-template-columns: 1fr !important; gap: 16px !important; }

    /* 4-column grids → 2 column */
    [style*="repeat(4, 1fr)"] { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }

    /* 5-column grids → 2 column */
    [style*="repeat(5, 1fr)"] { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }

    /* Homepage listing cards - simplify grid */
    [style*="2fr 1fr 1fr 1fr 1fr auto"] { grid-template-columns: 1fr !important; gap: 8px !important; text-align: left !important; }
    [style*="2fr 1fr 1fr 1fr 1fr auto"] > div { text-align: left !important; }

    /* Track record transaction cards */
    [style*="90px 2fr 1fr 80px 1fr auto"] { grid-template-columns: 1fr !important; gap: 6px !important; }

    /* Blog cards → 1 column */
    [style*="repeat(3, 1fr)"][style*="gap: 30px"] { grid-template-columns: 1fr !important; }

    /* Flex layouts - allow wrapping */
    [style*="display: flex"][style*="gap: 50px"],
    [style*="display: flex"][style*="gap: 60px"],
    [style*="display: flex"][style*="gap: 40px"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Hero text */
    [style*="font-size: 58px"],
    [style*="font-size: 56px"],
    [style*="font-size: 52px"],
    [style*="font-size: 48px"],
    [style*="font-size: 46px"],
    [style*="font-size: 44px"],
    [style*="font-size: 42px"] {
        font-size: 30px !important;
    }

    /* Stats numbers */
    [style*="font-size: 40px"],
    [style*="font-size: 38px"],
    [style*="font-size: 36px"],
    [style*="font-size: 34px"] {
        font-size: 26px !important;
    }

    /* Team photos */
    [style*="height: 220px"] { height: 180px !important; }
    [style*="height: 160px"] { height: 140px !important; }

    /* Process timeline bar */
    [style*="display: flex"][style*="gap: 4px"][style*="height: 36px"] {
        flex-direction: column !important;
    }
    [style*="height: 36px"] { height: auto !important; padding: 8px 12px !important; }

    /* Fee table */
    [style*="max-width: 650px"],
    [style*="max-width: 700px"],
    [style*="max-width: 800px"],
    [style*="max-width: 900px"],
    [style*="max-width: 950px"],
    [style*="max-width: 1000px"] {
        max-width: 100% !important;
    }

    /* Marketplace listing cards */
    .latest-list .box .row { flex-direction: column !important; }
    .latest-list .mid-block { flex-direction: column !important; gap: 8px !important; }

    /* Popup modals */
    .popup-all { max-width: 95% !important; padding: 20px !important; }
    .fancybox-content { padding: 20px !important; }

    /* Newsletter forms */
    [style*="display: grid"][style*="1fr 1fr"][style*="gap: 30px"] {
        grid-template-columns: 1fr !important;
    }

    /* Buttons - stack vertically */
    [style*="display: flex"][style*="gap: 12px"][style*="flex-wrap: wrap"],
    [style*="display: flex"][style*="gap: 14px"][style*="flex-wrap: wrap"],
    [style*="display: flex"][style*="gap: 15px"][style*="flex-wrap: wrap"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* CTA buttons full width on mobile */
    [style*="display: inline-flex"][style*="padding: 13px"],
    [style*="display: inline-flex"][style*="padding: 14px"],
    [style*="display: inline-flex"][style*="padding: 15px"] {
        width: 100% !important;
        justify-content: center !important;
        max-width: none !important;
    }
}

/* ===== PHONE (480px) ===== */
@media (max-width: 480px) {
    h1, .heading { font-size: 26px !important; }
    h2, h2.heading { font-size: 20px !important; }

    .container { padding: 0 16px !important; }
    .section { padding: 30px 0 !important; }

    /* Force ALL grids to single column */
    [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

    /* Hero padding */
    [style*="padding-top: 90px"] { padding-top: 50px !important; }
    [style*="padding-bottom: 75px"] { padding-bottom: 40px !important; }

    /* Stats - smaller */
    [style*="font-size: 30px"][style*="font-weight: 700"] { font-size: 22px !important; }

    /* Listing search filters */
    .search-section .row { flex-direction: column !important; }
    .search-section .col-sm-2,
    .search-section .col-sm-3,
    .search-section .col-md-2,
    .search-section .col-md-3 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-bottom: 8px !important;
    }

    /* Dashboard tabs */
    .js-tabs nav .tabs,
    .tabs { flex-wrap: wrap !important; }
    .js-tabs nav .tabs li,
    .tabs li { font-size: 11px !important; padding: 8px 12px !important; }

    /* Team cards */
    [style*="repeat(5, 1fr)"] { grid-template-columns: 1fr 1fr !important; }

    /* Flex gap reduction */
    [style*="gap: 45px"],
    [style*="gap: 40px"],
    [style*="gap: 30px"] {
        gap: 16px !important;
    }
}
