body.homepage-layout {
    background: #f5f7fb;
}

body.homepage-layout #main-body {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

body.homepage-layout .primary-content {
    padding-top: 0;
}

.homepage-modern {
    color: #0f172a;
}

.homepage-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 2rem;
}

.homepage-hero-content {
    max-width: 680px;
}

.homepage-eyebrow,
.homepage-section-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(51, 102, 153, 0.08);
    color: #336699;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.homepage-hero-title {
    font-size: 2.75rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0b1324;
}

.homepage-hero-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #516076;
    margin-bottom: 1.75rem;
}

.homepage-hero-actions .btn {
    min-width: 210px;
    border-radius: 0.7rem;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
}

.homepage-hero-trust {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: 1rem 1.5rem;
}

.homepage-trust-item {
    display: flex;
    align-items: center;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
}

.homepage-trust-item i {
    margin-right: 0.55rem;
    color: #336699;
}

.homepage-hero-panel {
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08) !important;
}

.hero-panel-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #eaf2fb;
    color: #336699;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-panel-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0b1324;
}

.hero-panel-text {
    color: #5b677a;
    margin-bottom: 1.2rem;
}

.hero-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-panel-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    color: #334155;
}

.hero-panel-list i {
    margin-right: 0.7rem;
    margin-top: 0.2rem;
    color: #22c55e;
}

.homepage-section {
    padding: 2.5rem 0 1rem;
}

.homepage-section-heading {
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.homepage-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: #0b1324;
}

.homepage-section-text {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.homepage-product-card {
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.homepage-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10) !important;
}

.homepage-product-icon,
.homepage-link-icon,
.homepage-account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.homepage-product-icon {
    background: #eef5fb;
    color: #336699;
}

.homepage-product-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.homepage-product-text {
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.7;
}

.homepage-link-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
}

.homepage-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.homepage-link-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.homepage-link-text {
    display: block;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.homepage-link-card-teal .homepage-link-icon {
    background: #e8fbf7;
    color: #0f9f8c;
}

.homepage-link-card-red .homepage-link-icon {
    background: #fff0f0;
    color: #e11d48;
}

.homepage-link-card-yellow .homepage-link-icon {
    background: #fff8e6;
    color: #d97706;
}

.homepage-link-card-gray .homepage-link-icon {
    background: #f1f5f9;
    color: #475569;
}

.homepage-link-card-green .homepage-link-icon {
    background: #ebfff3;
    color: #16a34a;
}

.homepage-account-section {
    padding-bottom: 0;
}

.homepage-account-card {
    display: block;
    height: 100%;
    padding: 1.6rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.homepage-account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.24);
}

.homepage-account-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.homepage-account-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: #fff;
}

.homepage-account-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .homepage-hero {
        padding-top: 1rem;
    }

    .homepage-hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .homepage-section {
        padding-top: 2rem;
    }

    .homepage-hero-title {
        font-size: 1.85rem;
    }

    .homepage-hero-text {
        font-size: 1rem;
    }

    .homepage-hero-actions .btn {
        width: 100%;
        min-width: 0;
        margin-right: 0 !important;
    }
}

/* --------------------------------------------------
   Global modern header
-------------------------------------------------- */

.header-modern {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.topbar-modern {
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding: 0.55rem 0;
}

.btn-topbar-notifications {
    background: transparent;
    border: 0;
    color: #475569;
    font-weight: 500;
    box-shadow: none !important;
}

.topbar-notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    margin-left: 0.3rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
}

.modern-active-client .input-group-text,
.modern-active-client .btn {
    border-color: #e2e8f0;
}

.modern-main-navbar {
    background: transparent;
    min-height: 88px;
    padding: 0;
}

.modern-navbar-container {
    min-height: 88px;
    display: flex;
    align-items: center;
}

.modern-navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-right: 2rem;
}

.modern-navbar-brand .logo-img {
    max-height: 42px;
    width: auto;
}

.modern-navbar-desktop {
    flex: 1;
    justify-content: space-between;
}

.modern-navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.modern-nav-item {
    list-style: none;
    position: relative;
}

.modern-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    color: #0f172a !important;
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none !important;
    transition: all 0.18s ease;
}

.modern-nav-link:hover,
.modern-nav-link:focus {
    background: #f1f5f9;
    color: #0f172a !important;
}

.modern-nav-link-login {
    color: #334155 !important;
}

.modern-nav-link-cta {
    background: #2563eb;
    color: #fff !important;
    padding: 0.8rem 1.15rem;
    border-radius: 0.85rem;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.modern-nav-link-cta:hover,
.modern-nav-link-cta:focus {
    background: #1d4ed8;
    color: #fff !important;
}

.modern-dropdown-menu {
    margin-top: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 0.65rem;
    min-width: 240px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.modern-dropdown-item-wrapper {
    list-style: none;
}

.modern-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    color: #0f172a;
    font-weight: 500;
}

.modern-dropdown-item:hover,
.modern-dropdown-item:focus {
    background: #f8fafc;
    color: #0f172a;
}

.modern-navbar-mobile-tools .btn {
    border-radius: 0.85rem;
}

.modern-cart-btn,
.modern-menu-toggle {
    min-width: 46px;
    height: 46px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}

.modern-cart-btn .badge {
    margin-left: 0.25rem;
}

.modern-mobile-navbar-wrapper {
    background: transparent;
    padding: 0;
}

.modern-mobile-navbar-inner {
    padding: 0 0 1rem;
}

.modern-mobile-nav {
    gap: 0.35rem;
    padding: 0.5rem 0 0;
}

.modern-mobile-nav .modern-nav-link {
    width: 100%;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.modern-mobile-nav .modern-nav-link-cta {
    justify-content: center;
}

.modern-header-shell {
    background: rgba(255, 255, 255, 0.96);
}

.modern-header-row {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.modern-desktop-nav {
    margin-left: auto;
    margin-right: 1.25rem;
}

.modern-nav-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-mobile-navbar-wrapper {
    padding: 0 0 1rem;
    background: rgba(255, 255, 255, 0.96);
}

.modern-mobile-navbar-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.modern-mobile-link {
    display: block;
    padding: 0.95rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none !important;
}

.modern-mobile-link-cta {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    text-align: center;
}

.modern-mobile-link-cta:hover {
    color: #fff;
    background: #1d4ed8;
}

/* --------------------------------------------------
   Homepage header tuning
-------------------------------------------------- */

body.homepage-layout .header-modern {
    background: rgba(255, 255, 255, 0.92);
}

.footer-modern {
    width: 100%;
    margin: 5rem 0 0;
    background: #0b1220;
    color: rgba(255, 255, 255, 0.76);
    padding: 4.5rem 0 2rem;
}

.footer-modern .container {
    max-width: 1200px;
}

.footer-modern-top {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.footer-brand-text {
    margin-bottom: 0;
    max-width: 380px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.85;
    font-size: 0.98rem;
}

.footer-modern-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.footer-modern-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-modern-links li + li {
    margin-top: 0.8rem;
}

.footer-modern-links a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-modern-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-modern-bottom {
    padding-top: 1.5rem;
}

.footer-bottom-left {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
}

.footer-inline-link {
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
}

.footer-inline-link:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.footer-socials .list-inline {
    margin: 0;
}

.footer-socials .list-inline-item {
    margin-right: 0.45rem;
}

.footer-socials .list-inline-item a,
.footer-socials .btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.footer-locale-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.68rem 0.95rem;
    font-size: 0.9rem;
    box-shadow: none;
}

.footer-copyright {
    margin-top: 1.75rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 991.98px) {
    .footer-bottom-right {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .footer-modern {
        padding: 3.5rem 0 1.75rem;
    }

    .footer-modern-top {
        padding-bottom: 2rem;
    }

    .footer-brand-text {
        max-width: none;
    }
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */

@media (max-width: 1199.98px) {
    .modern-main-navbar {
        min-height: 78px;
    }

    .modern-navbar-container {
        min-height: 78px;
    }
}

@media (max-width: 991.98px) {
    .footer-bottom-right {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .footer-modern {
        padding-top: 3rem;
    }

    .footer-modern-top {
        padding-bottom: 1.5rem;
    }

    .footer-bottom-left {
        gap: 0.75rem 1rem;
    }
}

