/* Scoped refresh for the public home only. Admin-managed sections remain untouched. */
.home-header-professional {
    padding: 11px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
    background: rgba(9, 15, 27, .76) !important;
    box-shadow: 0 10px 35px rgba(5, 10, 20, .08);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.home-header-professional .navbar { min-height: 58px; }
.home-header-professional .header-logo { display: inline-flex; align-items: center; }
.home-header-professional .header-logo img { max-width: 180px; height: 43px; object-fit: contain; }
.home-header-professional .navbar-nav { gap: 3px; }
.home-header-professional .nav-link {
    padding: 11px 13px !important;
    border-radius: 10px;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 14px;
    font-weight: 650;
    transition: color .18s ease, background-color .18s ease;
}
.home-header-professional .nav-link:hover,
.home-header-professional .nav-link.active { color: #fff !important; background: rgba(255, 255, 255, .08); }
.home-header-actions { display: flex; align-items: center; gap: 8px; }
.home-header-professional .get-app-btn {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 17px !important;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0333e, #b71924);
    box-shadow: 0 10px 24px rgba(190, 27, 38, .25);
    font-size: 13px;
}
.home-customer-portal-btn,
.home-portal-quick {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 12px;
    background: rgba(255, 255, 255, .065);
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 750 !important;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.home-customer-portal-btn:hover,
.home-portal-quick:hover { color: #fff !important; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .11); transform: translateY(-1px); }
.home-customer-portal-btn svg,
.home-portal-quick svg { width: 18px; height: 18px; flex: 0 0 auto; }
.home-header-mobile-actions { display: none; align-items: center; gap: 7px; margin-inline-start: auto; }

.home-mobile-portal-entry { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e9edf3; }
.home-mobile-portal-entry > a { display: flex; align-items: center; gap: 12px; padding: 13px !important; color: #172033 !important; border: 1px solid #e0e6ee; border-radius: 15px; background: #f7f9fc; text-decoration: none; }
.home-mobile-portal-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: #c6242e; border-radius: 12px; background: #fff0f1; }
.home-mobile-portal-icon svg { width: 19px; height: 19px; }
.home-mobile-portal-entry strong { display: block; color: #172033; font-size: 13px; font-weight: 850; }
.home-mobile-portal-entry small { display: block; margin-top: 2px; color: #7a8496; font-size: 10px; }
.home-mobile-portal-arrow { width: 18px; height: 18px; margin-inline-start: auto; color: #9aa3b2; }
[dir="rtl"] .home-mobile-portal-arrow { transform: rotate(180deg); }

.home-banner-professional {
    position: relative;
    min-height: 780px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 60px !important;
    background-image:
        linear-gradient(112deg, rgba(8, 14, 25, .97) 0%, rgba(13, 23, 40, .94) 52%, rgba(20, 29, 48, .86) 100%),
        var(--home-hero-image);
    background-position: center;
    background-size: cover;
    isolation: isolate;
}
.home-banner-professional::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 580px;
    height: 580px;
    top: -360px;
    inset-inline-end: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 43, 55, .35), rgba(217, 43, 55, 0) 68%);
}
.home-banner-professional::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(90deg, #000, transparent 80%);
    pointer-events: none;
}
[dir="rtl"] .home-banner-professional::after { mask-image: linear-gradient(-90deg, #000, transparent 80%); }
.home-hero-row { min-height: 600px; padding-block: 30px; }
.home-hero-content { position: relative; z-index: 2; max-width: 650px; }
.home-hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 11px; color: #d1d9e6; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.055); font-size: 11px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.home-hero-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: #54d49e; box-shadow: 0 0 0 5px rgba(84,212,158,.12); }
.home-banner-professional .home-hero-content h1 { max-width: 650px; margin: 0 0 20px; color: #fff; font-size: clamp(2.45rem, 5vw, 4.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
[dir="rtl"] .home-banner-professional .home-hero-content h1 { letter-spacing: 0; }
.home-banner-professional .home-hero-content h1 span { color: #ff6670 !important; }
.home-banner-professional .home-hero-description { max-width: 610px; margin: 0 !important; color: #b8c2d1 !important; font-size: 15px; line-height: 1.85; opacity: 1 !important; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.home-hero-btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border-radius: 14px; text-decoration: none; font-size: 13px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease; }
.home-hero-btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
.home-hero-btn.primary { color: #fff; border: 1px solid transparent; background: linear-gradient(135deg, #e23944, #b51b26); box-shadow: 0 14px 32px rgba(184, 27, 38, .28); }
.home-hero-btn.primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 38px rgba(184, 27, 38, .34); }
.home-hero-btn.portal { color: #fff; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.home-hero-btn.portal:hover { color: #fff; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.11); transform: translateY(-2px); }
[dir="rtl"] .home-hero-btn.primary svg { transform: rotate(180deg); }
.home-hero-secondary-row { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin-top: 22px; }
.home-hero-video { display: inline-flex; align-items: center; gap: 9px; color: #e9edf4; text-decoration: none; font-size: 12px; font-weight: 700; }
.home-hero-video:hover { color: #fff; }
.home-hero-play { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.07); }
.home-hero-play svg { width: 15px; height: 15px; }
.home-hero-trust { display: inline-flex; align-items: center; gap: 9px; color: #8f9aae; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.home-hero-trust i { width: 3px; height: 3px; border-radius: 50%; background: #d33a45; }
.home-hero-utilities { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.09); }
.home-banner-professional .banner-scan { gap: 10px; }
.home-banner-professional .banner-scan img { width: 50px; height: 50px; padding: 3px; border-radius: 9px; background: #fff; object-fit: contain; }
.home-banner-professional .banner-scan p { width: 130px; margin: 0 !important; color: #9faaba !important; font-size: 10px; line-height: 1.45; }
.home-banner-professional .play-store { gap: 8px; margin: 0 !important; }
.home-banner-professional .play-store img { height: 36px; width: auto; border-radius: 6px; }

.home-hero-visual { position: relative; width: min(100%, 610px); margin-inline: auto; padding: 42px 24px; }
.home-hero-visual-frame { position: relative; display: grid; place-items: center; min-height: 500px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 32px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 32px 80px rgba(0,0,0,.22); backdrop-filter: blur(15px); }
.home-hero-visual-frame::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.07); border-radius: 24px; pointer-events: none; }
.home-hero-visual-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(213,50,62,.27), transparent 68%); filter: blur(2px); }
.home-banner-professional .banner-img { z-index: 1; width: 100%; max-width: 520px; max-height: 470px; padding: 22px; }
.home-banner-professional .banner-img img { max-height: 440px; object-fit: contain; filter: drop-shadow(0 28px 38px rgba(0,0,0,.25)); }
.home-hero-float-card { position: absolute; z-index: 3; min-width: 178px; display: flex; align-items: center; gap: 10px; padding: 12px; color: #172033; border: 1px solid rgba(255,255,255,.7); border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: 0 18px 45px rgba(4,10,20,.2); backdrop-filter: blur(12px); }
.home-hero-float-card.invoices { top: 14px; inset-inline-start: 0; }
.home-hero-float-card.secure { inset-inline-end: 0; bottom: 13px; }
.home-hero-float-card > span { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; color: #c3232d; border-radius: 11px; background: #fff0f1; }
.home-hero-float-card.secure > span { color: #16835a; background: #eaf8f2; }
.home-hero-float-card svg { width: 19px; height: 19px; }
.home-hero-float-card small { display: block; color: #7b8597; font-size: 9px; font-weight: 650; }
.home-hero-float-card strong { display: block; margin-top: 1px; color: #172033; font-size: 11px; font-weight: 850; }

@media (max-width: 1199px) {
    .home-header-professional .nav-link { padding-inline: 9px !important; font-size: 12px; }
    .home-customer-portal-btn span { display: none; }
    .home-customer-portal-btn { width: 43px; padding-inline: 0; }
    .home-banner-professional .home-hero-content h1 { font-size: clamp(2.35rem, 5vw, 3.45rem); }
    .home-hero-visual { padding-inline: 10px; }
}

@media (max-width: 991px) {
    .home-header-professional { padding: 7px 0 !important; }
    .home-header-professional .navbar { min-height: 54px; }
    .home-header-professional .navbar-toggler { order: 3; margin-inline-start: 4px; }
    .home-header-professional .header-logo { order: 1; margin: 0 !important; }
    .home-header-professional .header-logo img { height: 38px; max-width: 145px; }
    .home-header-mobile-actions { order: 2; display: flex; }
    .home-header-professional .login-btn { min-height: 40px; display: inline-flex; padding: 8px 13px !important; font-size: 11px; }
    .home-portal-quick { min-height: 40px; padding: 8px 11px; }
    .home-portal-quick span { display: none; }
    .home-banner-professional { min-height: auto; padding-top: 105px !important; }
    .home-hero-row { min-height: auto; padding-block: 25px 45px; }
    .home-hero-content { max-width: 720px; margin-inline: auto; text-align: center; }
    .home-hero-kicker { margin-bottom: 15px; }
    .home-banner-professional .home-hero-content h1,
    .home-banner-professional .home-hero-description { margin-inline: auto !important; }
    .home-hero-actions, .home-hero-secondary-row, .home-hero-utilities { justify-content: center; }
    .home-hero-visual { width: min(100%, 680px); padding-top: 35px; }
    .home-hero-visual-frame { min-height: 440px; }
    .home-banner-professional .banner-img img { max-height: 380px; }
}

@media (max-width: 575px) {
    .home-header-professional .header-logo img { max-width: 105px; height: 34px; }
    .home-header-professional .login-btn { padding-inline: 10px !important; }
    .home-header-professional .navbar-toggler { padding: 4px; }
    .home-header-professional .navbar-toggler i { font-size: 23px; }
    .home-banner-professional { padding-top: 92px !important; }
    .home-hero-row { padding-top: 5px; }
    .home-banner-professional .home-hero-content h1 { font-size: clamp(2rem, 10vw, 2.65rem); line-height: 1.15; }
    .home-banner-professional .home-hero-description { font-size: 13px; line-height: 1.75; }
    .home-hero-actions { display: grid; grid-template-columns: 1fr; }
    .home-hero-btn { width: 100%; }
    .home-hero-secondary-row { gap: 16px; }
    .home-hero-trust { width: 100%; justify-content: center; }
    .home-hero-utilities { gap: 15px; }
    .home-hero-visual { padding: 40px 0 28px; }
    .home-hero-visual-frame { min-height: 350px; border-radius: 24px; }
    .home-banner-professional .banner-img { padding: 16px; }
    .home-banner-professional .banner-img img { max-height: 320px; }
    .home-hero-float-card { min-width: 150px; padding: 9px; }
    .home-hero-float-card.invoices { inset-inline-start: -2px; }
    .home-hero-float-card.secure { inset-inline-end: -2px; }
    .home-hero-float-card > span { width: 32px; height: 32px; }
    .home-hero-float-card strong { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    .home-banner-professional .move-image { animation: none !important; }
}
