/* ==========================================================================
   AmeliorateERP Portal Theme
   Unified with the AmeliorateERP Framework (Stack Admin / Grey-Blue Edition)
   Typography: Montserrat (Headings/UI) + Open Sans (Body)
   ========================================================================== */

:root {
    --amel-primary: #404e67;
    --amel-primary-dark: #2c3648;
    --amel-primary-darker: #1a212d;
    --amel-teal: #008f92;
    --amel-teal-bright: #00b5b8;
    --amel-cyan: #2dcee3;
    --amel-coral: #ff7588;
    --amel-coral-dark: #e65067;
    --amel-success: #16d39a;
    --amel-success-text: #0f966e;
    --amel-warning: #ffa87d;
    --amel-warning-text: #c26a19;
    --amel-canvas: #f5f7fa;
    --amel-canvas-alt: #eef2f6;
    --amel-surface: #ffffff;
    --amel-border: #dce1e8;
    --amel-border-strong: #babfc7;
    --amel-text: #404e67;
    --amel-body: #525f72;
    --amel-muted: #6c798c;

    /* Legacy variable aliases used across portal views */
    --brand-primary: #404e67;
    --brand-primary-alt: #008f92;
    --brand-dark: #2c3648;
    --brand-slate: #525f72;
    --brand-light: #f5f7fa;
    --brand-border: #dce1e8;
    --brand-emerald: #16d39a;
    --brand-indigo: #404e67;
    --brand-amber: #c26a19;
    --brand-purple: #404e67;
}

/* --------------------------------------------------------------------------
   1. Base Typography & Document Canvas
   -------------------------------------------------------------------------- */
html,
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.65;
    color: var(--amel-body);
    background-color: var(--amel-canvas);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.heading, .title {
    font-family: 'Montserrat', Georgia, "Times New Roman", Times, serif !important;
    color: var(--amel-text);
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.35rem !important; line-height: 1.22; }
h2 { font-size: 1.85rem !important; line-height: 1.28; }
h3 { font-size: 1.45rem !important; line-height: 1.32; }
h4 { font-size: 1.2rem !important; line-height: 1.38; }
h5 { font-size: 1.05rem !important; line-height: 1.42; }
h6 { font-size: 0.92rem !important; line-height: 1.45; }

.display-5 {
    font-size: 2.55rem !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
}

p {
    color: var(--amel-body);
    line-height: 1.68;
}

.lead {
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.7;
}

.text-primary { color: var(--amel-primary) !important; }
.text-dark { color: var(--amel-primary-dark) !important; }
.text-muted { color: var(--amel-muted) !important; }
.text-success { color: var(--amel-success-text) !important; }
.text-info { color: var(--amel-teal) !important; }
.text-danger { color: var(--amel-coral-dark) !important; }
.text-warning { color: var(--amel-warning-text) !important; }
.text-indigo { color: var(--amel-primary) !important; }

.bg-primary { background-color: var(--amel-primary) !important; }
.bg-dark { background-color: var(--amel-primary-darker) !important; }
.bg-light { background-color: var(--amel-canvas) !important; }
.bg-success { background-color: var(--amel-success) !important; }
.bg-warning { background-color: var(--amel-warning) !important; color: #2a2e30 !important; }
.bg-danger { background-color: var(--amel-coral) !important; }

a {
    color: var(--amel-teal);
    transition: color 0.15s ease;
}
a:hover {
    color: var(--amel-primary);
}

::selection {
    background: var(--amel-primary);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Preloader (AmeliorateERP Universal Spinner)
   -------------------------------------------------------------------------- */
#preloader {
    background: var(--amel-canvas) !important;
}
.amel-loader-ring {
    display: inline-block;
    width: 38px;
    height: 38px;
    border: 3px solid rgba(64, 78, 103, 0.18);
    border-radius: 50%;
    border-top-color: var(--amel-primary);
    border-right-color: var(--amel-teal-bright);
    animation: amelSpin 0.75s linear infinite;
}
@keyframes amelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   3. Top Navigation Bar (Matches AmeliorateERP App Header)
   -------------------------------------------------------------------------- */
#topnav {
    background-color: var(--amel-primary) !important;
    background-image: linear-gradient(to right, #404e67 0%, #0d1117 100%) !important;
    border-bottom: 2px solid var(--amel-teal-bright) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    min-height: 66px;
    transition: box-shadow 0.2s ease;
}

#topnav.nav-sticky {
    background-color: var(--amel-primary) !important;
    background-image: linear-gradient(to right, #404e67 0%, #0d1117 100%) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28) !important;
}

#topnav .logo {
    padding: 0 !important;
    line-height: 64px !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 64px;
}

#topnav .logo .l-light {
    display: inline-block !important;
    height: 36px;
    width: auto;
}

#topnav .logo .l-dark {
    display: none !important;
}

#topnav .navigation-menu > li {
    margin: 0 2px !important;
}

#topnav .navigation-menu > li > a {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82) !important;
    padding: 22px 12px !important;
    line-height: 20px !important;
    position: relative;
    transition: color 0.15s ease;
}

#topnav .navigation-menu > li > a:hover,
#topnav .navigation-menu > li > a:focus {
    color: #ffffff !important;
}

/* Signature AmeliorateERP coral-red active underline (mirrors nav-linetriangle) */
#topnav .navigation-menu > li.active > a {
    color: #ffffff !important;
    font-weight: 600 !important;
}

@media (min-width: 992px) {
    #topnav .navigation-menu > li.active > a::after {
        content: '';
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 0;
        height: 3px;
        background-color: var(--amel-coral);
    }
}

#topnav .buy-button {
    line-height: 64px !important;
}

#topnav .buy-button .btn {
    padding: 8px 16px !important;
    font-size: 12.5px !important;
    letter-spacing: 0.03em;
    background-color: var(--amel-teal) !important;
    border-color: var(--amel-teal) !important;
    color: #ffffff !important;
}

#topnav .buy-button .btn:hover {
    background-color: var(--amel-teal-bright) !important;
    border-color: var(--amel-teal-bright) !important;
    color: #ffffff !important;
}

#topnav .navbar-toggle span {
    background-color: #ffffff !important;
}

@media (max-width: 991px) {
    #topnav #navigation {
        background-color: #242d3c !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }
    #topnav .navigation-menu > li > a {
        color: rgba(255, 255, 255, 0.88) !important;
        padding: 12px 18px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    #topnav .navigation-menu > li.active > a {
        border-left: 3px solid var(--amel-coral);
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff !important;
    }
}

/* --------------------------------------------------------------------------
   4. Buttons (Solid AmeliorateERP Controls — Zero Pills, Zero Outline)
   -------------------------------------------------------------------------- */
.btn,
.btn-pills,
.rounded-pill.btn {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13.5px;
    font-weight: 600 !important;
    border-radius: 2px !important;
    padding: 9px 18px;
    letter-spacing: 0.015em;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-primary {
    background-color: var(--amel-primary) !important;
    border-color: var(--amel-primary) !important;
    color: #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--amel-teal) !important;
    border-color: var(--amel-teal) !important;
    color: #ffffff !important;
}

/* On dark heroes/banners, make primary buttons crisp Ameliorate teal so they stand out cleanly */
.modern-hero .btn-primary,
.pricing-band .btn-primary,
.contact-band .btn-primary,
.statutory-banner .btn-primary,
.amel-dark-banner .btn-primary {
    background-color: var(--amel-teal) !important;
    border-color: var(--amel-teal) !important;
    color: #ffffff !important;
}
.modern-hero .btn-primary:hover,
.pricing-band .btn-primary:hover,
.contact-band .btn-primary:hover,
.statutory-banner .btn-primary:hover,
.amel-dark-banner .btn-primary:hover {
    background-color: var(--amel-teal-bright) !important;
    border-color: var(--amel-teal-bright) !important;
    color: #ffffff !important;
}

.btn-secondary,
.btn-dark {
    background-color: var(--amel-primary-dark) !important;
    border-color: var(--amel-primary-dark) !important;
    color: #ffffff !important;
}
.btn-secondary:hover,
.btn-dark:hover,
.btn-secondary:focus,
.btn-dark:focus {
    background-color: #1f2735 !important;
    border-color: #1f2735 !important;
    color: #ffffff !important;
}

.btn-light {
    background-color: #ffffff !important;
    border-color: #dce1e8 !important;
    color: var(--amel-primary) !important;
}
.btn-light:hover,
.btn-light:focus {
    background-color: #eef2f6 !important;
    border-color: #cbd3de !important;
    color: var(--amel-primary-dark) !important;
}

.btn-success {
    background-color: var(--amel-success) !important;
    border-color: var(--amel-success) !important;
    color: #ffffff !important;
}
.btn-success:hover {
    background-color: #12b081 !important;
    border-color: #12b081 !important;
    color: #ffffff !important;
}

.btn-info {
    background-color: var(--amel-teal) !important;
    border-color: var(--amel-teal) !important;
    color: #ffffff !important;
}
.btn-info:hover {
    background-color: #007477 !important;
    border-color: #007477 !important;
    color: #ffffff !important;
}

.btn-danger {
    background-color: var(--amel-coral) !important;
    border-color: var(--amel-coral) !important;
    color: #ffffff !important;
}
.btn-danger:hover {
    background-color: var(--amel-coral-dark) !important;
    border-color: var(--amel-coral-dark) !important;
    color: #ffffff !important;
}

/* Solid alternative for dark hero secondary buttons (no transparent ghost/outline look) */
.btn-ghost,
.btn-amel-slate {
    background-color: #344157 !important;
    border: 1px solid #52637e !important;
    color: #ffffff !important;
}
.btn-ghost:hover,
.btn-ghost:focus,
.btn-amel-slate:hover,
.btn-amel-slate:focus {
    background-color: #4b5b78 !important;
    border-color: #6b7d9c !important;
    color: #ffffff !important;
}

/* Convert any remaining outline buttons to clean solid ERP buttons */
.btn-outline-primary {
    background-color: #e6ebf2 !important;
    border-color: #cfd8e4 !important;
    color: var(--amel-primary) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--amel-primary) !important;
    border-color: var(--amel-primary) !important;
    color: #ffffff !important;
}

.btn-outline-danger {
    background-color: #fdecef !important;
    border-color: #f9cbd3 !important;
    color: var(--amel-coral-dark) !important;
}
.btn-outline-danger:hover {
    background-color: var(--amel-coral) !important;
    border-color: var(--amel-coral) !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   5. Hero Banner (Crisp AmeliorateERP Architectural Header — No Glowing Orbs)
   -------------------------------------------------------------------------- */
.modern-hero {
    background-color: var(--amel-primary) !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(135deg, #404e67 0%, #242e3d 55%, #161c26 100%) !important;
    background-size: 36px 36px, 36px 36px, 100% 100% !important;
    padding: 126px 0 72px !important;
    border-bottom: 3px solid var(--amel-teal-bright);
    position: relative;
}

/* Strip generic AI glowing radial blur blobs */
.modern-hero::before,
.modern-hero::after {
    display: none !important;
    content: none !important;
}

.modern-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid var(--amel-coral);
    color: #e4eaf2;
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.modern-hero .hero-title,
.modern-hero h1 {
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.modern-hero .hero-title .accent,
.modern-hero h1 .accent {
    color: #4dd4d7 !important;
}

.modern-hero .hero-lead,
.modern-hero .lead {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 16px;
    line-height: 1.7;
}

.modern-hero .hero-note {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.modern-hero .hero-note i {
    color: var(--amel-success);
}

/* --------------------------------------------------------------------------
   6. Structural Cards, Badges, Chips & Lists (AmeliorateERP Stack Look)
   -------------------------------------------------------------------------- */
.rounded,
.rounded-3,
.rounded-4 {
    border-radius: 3px !important;
}

.bento-card {
    background: var(--amel-surface) !important;
    border: 1px solid var(--amel-border) !important;
    border-top: 3px solid var(--amel-primary) !important;
    border-radius: 3px !important;
    padding: 24px !important;
    height: 100%;
    position: relative;
    box-shadow: 0 1px 4px rgba(64, 78, 103, 0.07) !important;
}

.bento-card.card-canvas {
    background: var(--amel-canvas) !important;
    border-top-color: var(--amel-teal) !important;
}

a.bento-card {
    display: block;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.bento-card:hover {
    transform: none !important;
    border-color: var(--amel-teal) !important;
    border-top-color: var(--amel-coral) !important;
    box-shadow: 0 4px 12px rgba(64, 78, 103, 0.12) !important;
}

/* Eyebrow section tags — sharp architectural label instead of pastel pill */
.bento-header-pill {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 2px !important;
    margin-bottom: 12px;
    border-left: 3px solid var(--amel-primary);
    background-color: #edf1f6;
    color: var(--amel-primary);
}

.pill-blue {
    background-color: #edf1f6 !important;
    color: var(--amel-primary) !important;
    border-left-color: var(--amel-primary) !important;
}

.pill-green {
    background-color: #e6f9f3 !important;
    color: var(--amel-success-text) !important;
    border-left-color: var(--amel-success) !important;
}

.pill-purple {
    background-color: #e5f6f7 !important;
    color: var(--amel-teal) !important;
    border-left-color: var(--amel-teal-bright) !important;
}

.pill-amber {
    background-color: #fff4ec !important;
    color: var(--amel-warning-text) !important;
    border-left-color: var(--amel-warning) !important;
}

.pill-red {
    background-color: #fff0f2 !important;
    color: var(--amel-coral-dark) !important;
    border-left-color: var(--amel-coral) !important;
}

/* Crisp ERP Card Icon Blocks */
.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 3px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}

.ic-blue {
    background-color: #edf1f6 !important;
    color: var(--amel-primary) !important;
    border-color: #d6dde8;
}

.ic-green {
    background-color: #e6f9f3 !important;
    color: var(--amel-success-text) !important;
    border-color: #c2efe0;
}

.ic-purple {
    background-color: #e5f6f7 !important;
    color: var(--amel-teal) !important;
    border-color: #bde6e8;
}

.ic-amber {
    background-color: #fff4ec !important;
    color: var(--amel-warning-text) !important;
    border-color: #fbdcc4;
}

.ic-coral {
    background-color: #fff0f2 !important;
    color: var(--amel-coral-dark) !important;
    border-color: #fbd0d7;
}

/* Feature Chips & Tags */
.spec-chip {
    display: inline-flex;
    align-items: center;
    background: var(--amel-canvas);
    border: 1px solid var(--amel-border);
    border-radius: 2px !important;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 600;
    color: var(--amel-primary);
    margin-right: 6px;
    margin-bottom: 6px;
}

.spec-chip i {
    margin-right: 5px;
    color: var(--amel-teal);
}

.badge {
    border-radius: 2px !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.bg-soft-primary {
    background-color: #edf1f6 !important;
    color: var(--amel-primary) !important;
}

.bg-soft-success {
    background-color: #e6f9f3 !important;
    color: var(--amel-success-text) !important;
}

.bg-soft-warning {
    background-color: #fff4ec !important;
    color: var(--amel-warning-text) !important;
}

/* Screenshot / Visual Showcase Frames (Clean ERP Window Frame) */
.marquee-visual-card {
    background: #ffffff;
    border-radius: 3px !important;
    border: 1px solid #cbd3de !important;
    border-top: 3px solid var(--amel-primary) !important;
    box-shadow: 0 6px 18px rgba(64, 78, 103, 0.12) !important;
    overflow: hidden;
}

.marquee-visual-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tick Lists */
.tick-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--amel-body);
}

.tick-list li i {
    color: var(--amel-teal) !important;
    font-size: 18px;
    margin-right: 10px;
    line-height: 1.3;
    flex-shrink: 0;
}

.section-lead {
    color: var(--amel-muted);
    font-size: 15.5px;
    line-height: 1.7;
}

.link-arrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--amel-teal);
}
.link-arrow:hover {
    color: var(--amel-primary);
}

/* Workflow & Journey Steps */
.flow-step {
    background: #ffffff;
    border: 1px solid var(--amel-border);
    border-top: 3px solid var(--amel-teal);
    border-radius: 3px !important;
    padding: 20px;
    height: 100%;
    text-align: left;
    box-shadow: 0 1px 3px rgba(64, 78, 103, 0.06);
}

.flow-step i {
    font-size: 24px;
    color: var(--amel-primary) !important;
    display: block;
    margin-bottom: 8px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 2px !important;
    background: var(--amel-primary) !important;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

/* --------------------------------------------------------------------------
   7. Section Surfaces & Dark Bands (No Purple AI Gradients)
   -------------------------------------------------------------------------- */
.amel-section-white {
    background-color: #ffffff;
}

.amel-section-canvas {
    background-color: var(--amel-canvas);
    border-top: 1px solid var(--amel-border);
    border-bottom: 1px solid var(--amel-border);
}

.byo-section {
    background: var(--amel-canvas) !important;
    border-top: 1px solid var(--amel-border) !important;
    border-bottom: 1px solid var(--amel-border);
}

.provider-chip {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--amel-border);
    border-left: 3px solid var(--amel-teal);
    border-radius: 2px !important;
    padding: 5px 11px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--amel-primary);
    margin: 0 6px 8px 0;
}

.provider-chip i {
    margin-right: 6px;
    color: var(--amel-teal) !important;
}

.included-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f9f3;
    color: var(--amel-success-text);
    border: 1px solid #c2efe0;
    border-radius: 2px !important;
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 600;
}

.pricing-band,
.contact-band,
.statutory-banner,
.amel-dark-banner {
    background: linear-gradient(to right, #404e67 0%, #1c2430 100%) !important;
    border: 1px solid #2c3648;
    border-left: 4px solid var(--amel-teal-bright);
    border-radius: 3px !important;
    padding: 36px 38px !important;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(26, 33, 45, 0.14);
}

.pricing-band h2, .pricing-band h3,
.contact-band h2, .contact-band h3,
.statutory-banner h3,
.amel-dark-banner h3 {
    color: #ffffff !important;
}

.pricing-band p,
.contact-band p,
.statutory-banner p,
.amel-dark-banner p {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* Full-width bottom CTA banner */
section.section.bg-primary {
    background: linear-gradient(to right, #404e67 0%, #1b222e 100%) !important;
    border-top: 3px solid var(--amel-coral);
    padding: 56px 0 !important;
}

/* --------------------------------------------------------------------------
   8. Form Controls (AmeliorateERP Global Mandate: 0px Flat Corners)
   -------------------------------------------------------------------------- */
input.form-control,
select.form-control,
textarea.form-control,
.modern-form .form-control,
.form-select {
    border-radius: 0px !important;
    border: 1px solid var(--amel-border-strong) !important;
    background-color: #ffffff !important;
    color: var(--amel-primary-dark) !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 14px !important;
    padding: 9px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus,
.modern-form .form-control:focus {
    border-color: var(--amel-teal) !important;
    box-shadow: 0 0 0 2px rgba(0, 143, 146, 0.15) !important;
    background-color: #ffffff !important;
}

.modern-form .form-label,
label.form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--amel-primary) !important;
    margin-bottom: 5px;
}

/* --------------------------------------------------------------------------
   9. Home, Pricing, FAQ, Statutory Calculator & Contact Refinements
   -------------------------------------------------------------------------- */
.story-card {
    background: #ffffff;
    border: 1px solid var(--amel-border);
    border-left: 3px solid var(--amel-teal-bright);
    border-radius: 3px !important;
    padding: 14px 16px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

.story-icon {
    border-radius: 3px !important;
}

.chain-node {
    border-radius: 2px !important;
    font-family: 'Montserrat', sans-serif;
}

.recon-bar,
.recon-bar span {
    border-radius: 2px !important;
}

.trust-strip {
    background: #ffffff !important;
    border-bottom: 1px solid var(--amel-border) !important;
}

.trust-item i {
    color: var(--amel-teal) !important;
}

.trust-item strong {
    color: var(--amel-primary) !important;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--amel-border);
    border-left: 3px solid var(--amel-primary);
    border-radius: 2px !important;
    margin-bottom: 10px;
}

.faq-item summary {
    color: var(--amel-primary) !important;
    font-size: 14.5px !important;
}

.faq-item summary::after {
    color: var(--amel-teal) !important;
}

/* Pricing Plans */
.plan-card {
    border-radius: 3px !important;
    border: 1px solid var(--amel-border) !important;
    box-shadow: 0 2px 6px rgba(64, 78, 103, 0.08) !important;
}

.plan-card.plan-popular {
    border: 2px solid var(--amel-primary) !important;
    box-shadow: 0 6px 18px rgba(64, 78, 103, 0.14) !important;
}

.plan-header {
    background: linear-gradient(to right, #404e67 0%, #263042 100%) !important;
    padding: 24px 24px 20px !important;
}

.plan-card.plan-popular .plan-header {
    background: linear-gradient(to right, #404e67 0%, #0d1117 100%) !important;
    border-top: 3px solid var(--amel-coral);
}

.popular-ribbon {
    background: var(--amel-coral) !important;
    color: #ffffff !important;
    border-radius: 2px !important;
    border: 0 !important;
}

.plan-price-band {
    background: var(--amel-canvas) !important;
    border-bottom: 1px solid var(--amel-border) !important;
    padding: 20px 24px !important;
}

.plan-price-amount {
    color: var(--amel-primary) !important;
    font-weight: 700 !important;
}

.plan-spec-list li i {
    color: var(--amel-teal) !important;
}

.included-list li i {
    color: var(--amel-success-text) !important;
}

/* Statutory Calculator */
.taxonomy-card {
    border-radius: 3px !important;
    border: 1px solid var(--amel-border) !important;
    box-shadow: none !important;
}

.taxonomy-card:hover {
    transform: none !important;
    border-color: var(--amel-teal) !important;
    box-shadow: 0 2px 8px rgba(64, 78, 103, 0.1) !important;
}

.taxonomy-card.selected {
    border-color: var(--amel-primary) !important;
    border-left: 4px solid var(--amel-teal) !important;
    background: #f5f9fa !important;
    box-shadow: 0 2px 8px rgba(64, 78, 103, 0.1) !important;
}

.sticky-calc-card {
    border-radius: 3px !important;
    border: 1px solid var(--amel-border) !important;
    border-top: 3px solid var(--amel-primary) !important;
    box-shadow: 0 4px 14px rgba(64, 78, 103, 0.1) !important;
}

.tax-item-pill {
    background: #edf1f6 !important;
    color: var(--amel-primary) !important;
    border: 1px solid #d5dce6;
    border-radius: 2px !important;
}

.json-preview-box,
.code-card {
    background: #1a212d !important;
    border: 1px solid #2f3b4f !important;
    border-left: 3px solid var(--amel-teal-bright) !important;
    border-radius: 2px !important;
}

.milestone-box {
    border-radius: 2px !important;
    border: 1px solid var(--amel-border) !important;
    border-top: 2px solid var(--amel-teal) !important;
}

.milestone-box .num {
    color: var(--amel-primary) !important;
}

/* Contact Map Card */
.map-bento-card {
    border-radius: 3px !important;
    border: 1px solid var(--amel-border) !important;
    box-shadow: 0 2px 8px rgba(64, 78, 103, 0.08) !important;
}

.overlay-content {
    border-radius: 3px !important;
    background: rgba(26, 33, 45, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-top: 3px solid var(--amel-warning) !important;
}

/* AI Chat Mockup in Features */
.ai-chat-box {
    border-radius: 3px !important;
    border: 1px solid var(--amel-border) !important;
}
.ai-avatar {
    border-radius: 2px !important;
    background: #edf1f6 !important;
    color: var(--amel-primary) !important;
}
.ai-bubble-user {
    background: var(--amel-primary) !important;
    border-radius: 3px !important;
}
.ai-bubble-bot {
    background: var(--amel-canvas) !important;
    border: 1px solid var(--amel-border);
    border-radius: 3px !important;
}
.mini-whatsapp-box {
    border-radius: 3px !important;
}
.relations-flow {
    border-radius: 2px !important;
    background: var(--amel-canvas) !important;
}
.flow-node {
    border-radius: 2px !important;
}

/* --------------------------------------------------------------------------
   10. Footer (Matches AmeliorateERP Dark Slate Chrome)
   -------------------------------------------------------------------------- */
footer.bg-dark {
    background-color: #1c2430 !important;
    border-top: 3px solid var(--amel-primary);
}

footer.footer-bar.bg-dark {
    background-color: #131820 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 18px 0;
}

footer .footer-head {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff !important;
}

footer .footer-list li a {
    color: #b4bfcf !important;
    font-size: 13.5px;
}

footer .footer-list li a:hover {
    color: #ffffff !important;
}

footer .social-icon li a {
    border-radius: 2px !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #cfd8e3 !important;
}

footer .social-icon li a:hover {
    background-color: var(--amel-teal) !important;
    border-color: var(--amel-teal) !important;
    color: #ffffff !important;
}

.back-to-top {
    border-radius: 2px !important;
}

.back-to-top i {
    border-radius: 2px !important;
    background-color: var(--amel-primary) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.back-to-top:hover i {
    background-color: var(--amel-teal) !important;
}

@media (max-width: 575px) {
    .modern-hero {
        padding: 104px 0 54px !important;
    }
    .display-5 {
        font-size: 1.85rem !important;
    }
    .pricing-band,
    .contact-band,
    .statutory-banner,
    .amel-dark-banner {
        padding: 26px 20px !important;
    }
}
