/* =====================================================
   GRANT ROADMAP - MAIN STYLESHEET
   ===================================================== */

/* Theme: yellow, white, black, grey, light blue for distinction */
:root {
    /* Typography: fixed font, exactly 4 sizes site-wide */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --text-major: 2rem;      /* 1. Main title (h1, page headlines) */
    --text-subtitle: 1.5rem; /* 2. Subtitle (h2, section titles) */
    --text-title: 1.25rem;   /* 3. Title (h3–h5, card titles, subsection headings) */
    --text-body: 1rem;       /* 4. Body (p, span, li, all content) */
    --primary-color: #eab308;
    --primary-dark: #ca8a04;
    --primary-light: #fef08a;
    --success-color: #eab308;
    --accent-blue: #dbeafe;
    --accent-blue-border: #93c5fd;
    --danger-color: #374151;
    --warning-color: #6b7280;
    --info-color: #6b7280;
    --light-bg: #f8f9fa;
    --grey-50: #f9fafb;
    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-500: #6b7280;
    --grey-600: #4b5563;
    --grey-700: #374151;
    --grey-800: #2d3748;
    --grey-900: #1f2937;
    --black: #111827;
    --white: #ffffff;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    /* Reusable yellow gradient and border (buttons, badges, active states) */
    --gradient-yellow: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #eab308 100%);
    --gradient-yellow-hover: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #ca8a04 100%);
    --border-yellow: 1px solid rgba(202, 138, 4, 0.4);
    /* Reusable gray gradient (secondary buttons) */
    --gradient-gray: linear-gradient(135deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%);
    --gradient-gray-hover: linear-gradient(135deg, #6b7280 0%, #4b5563 50%, #374151 100%);
    /* Reusable red gradient (withdraw, destructive actions) */
    --gradient-red: linear-gradient(135deg, #fca5a5 0%, #ef4444 50%, #dc2626 100%);
    --gradient-red-hover: linear-gradient(135deg, #f87171 0%, #dc2626 50%, #b91c1c 100%);
    --border-red: 1px solid rgba(185, 28, 28, 0.4);
    /* Reusable spacing for fields, list items, table cells */
    --padding-box: 0.75rem 1rem;
    --radius-box: 6px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-family: var(--font-family);
}

/* Global Styles – single font stack site-wide */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-body);
    background: linear-gradient(180deg, var(--white) 0%, var(--grey-100) 35%, var(--accent-blue) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--grey-900);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-main {
    flex: 1 0 auto;
}

/* =====================================================
   CONTENT SEPARATION - site-wide (title vs text, sections, list items)
   ===================================================== */

/* Typography: 4 sizes only — main (h1), subtitle (h2), title (h3–h5), body (p/span/li) */
.layout-main h1 { font-size: var(--text-major); margin-bottom: 1rem; color: var(--black); }
.layout-main h2 { font-size: var(--text-subtitle); margin-bottom: 0.9rem; color: var(--grey-900); }
.layout-main h3, .layout-main h4, .layout-main h5 { font-size: var(--text-title); margin-bottom: 0.65rem; color: var(--grey-800); }
.layout-main h3 { margin-bottom: 0.75rem; }
.layout-main h4 { margin-bottom: 0.65rem; }
.layout-main h5 { margin-bottom: 0.55rem; }
.layout-main p, .layout-main span, .layout-main li { font-size: var(--text-body); color: var(--grey-800); }

.layout-main .home-page.hp-premium h1,
.layout-main .home-page.hp-premium h2,
.layout-main .home-page.hp-premium h3,
.layout-main .home-page.hp-premium h4,
.layout-main .home-page.hp-premium h5,
.layout-main .home-page.hp-premium p,
.layout-main .home-page.hp-premium span,
.layout-main .home-page.hp-premium li {
    font-size: unset;
    color: unset;
    margin-bottom: unset;
}

.layout-main h1 + p,
.layout-main h2 + p,
.layout-main h3 + p,
.layout-main h4 + p,
.layout-main h5 + p {
    margin-top: 0.35rem;
}

/* Section divider line - add class .section-with-line to any section */
.section-with-line {
    border-bottom: 1px solid var(--grey-200);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.section-with-line:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Form fields: darker, bolder text site-wide for readability */
.form-control,
.form-select,
textarea.form-control {
    color: var(--grey-900);
    font-weight: 500;
}
.form-control::placeholder {
    color: var(--grey-600);
    font-weight: 400;
}
.form-select option {
    color: var(--grey-900);
    font-weight: 500;
}

/* Title banner - highlights section/tile titles with distinct background and text color */
.title-banner {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 0.75rem;
}

.title-banner .home-section-title,
.title-banner h2,
.title-banner h3,
.title-banner h4,
.title-banner h5 {
    color: var(--grey-900);
    font-weight: 700;
}

.title-banner-count {
    color: var(--grey-700);
    font-weight: 500;
}

/* Section title banner (home page - Plans, Resources) */
.section-title-banner {
    padding: 0.85rem 1.25rem;
}

.section-title-banner h2 {
    color: var(--grey-900);
}

/* Resources section title banner - grey to match Choose Your Plan */
.section-title-banner-resources {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
}

.section-title-banner-resources h2 {
    color: var(--grey-900);
}

/* Dashboard home section tile title banner - blue strip like landing page */
.home-section-title-banner {
    padding: 0.6rem 1rem;
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue-border);
    border-radius: 6px;
}

.home-section-title-banner .home-section-title {
    font-size: var(--text-title);
    color: var(--grey-900);
}

.list-group-separated .list-group-item {
    border: 1px solid var(--grey-200) !important;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    padding: 1.25rem 1.5rem !important;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.list-group-separated .list-group-item:last-child {
    margin-bottom: 0;
}

.layout-footer {
    flex-shrink: 0;
}

/* =====================================================
   NAVIGATION (theme: gray bg, black text)
   ===================================================== */
.navbar {
    box-shadow: none;
}

.navbar-theme {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-theme.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.navbar-brand-theme {
    color: var(--black) !important;
    font-size: var(--text-title);
    letter-spacing: -0.5px;
    font-weight: 700;
}

.navbar-brand-theme:hover {
    color: var(--primary-color) !important;
}

.navbar-logo {
    height: 62px;
    width: auto;
    margin-left: 1rem;
    transition: transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.03);
}

.nav-link-theme {
    color: #1e293b !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.01em;
}

.nav-link-theme:hover {
    color: var(--primary-dark) !important;
    background: rgba(234, 179, 8, 0.08);
}

.navbar-text-theme {
    color: var(--black) !important;
}

.btn-nav-outline {
    color: var(--black) !important;
    border-color: var(--black) !important;
}

.btn-nav-cta,
.btn-gradient-yellow {
    background: var(--gradient-yellow);
    color: var(--black) !important;
    border: var(--border-yellow);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.btn-nav-cta:hover,
.btn-nav-cta:focus,
.btn-nav-cta.show,
.btn-gradient-yellow:hover,
.btn-gradient-yellow:focus,
.btn-gradient-yellow:active {
    background: var(--gradient-yellow-hover);
    color: var(--black) !important;
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

/* Gray gradient button: same size/style as yellow, for Cancel and secondary actions */
.btn-gradient-gray {
    background: var(--gradient-gray);
    color: var(--white) !important;
    border: 1px solid rgba(75, 85, 99, 0.5);
    font-weight: 600;
}
.btn-gradient-gray:hover,
.btn-gradient-gray:focus,
.btn-gradient-gray:active {
    background: var(--gradient-gray-hover);
    color: var(--white) !important;
    border-color: var(--grey-700);
}

/* Red gradient button: withdraw and destructive actions (dark background -> white text) */
.btn-gradient-red {
    background: var(--gradient-red);
    color: var(--white) !important;
    border: var(--border-red);
    font-weight: 600;
}
.btn-gradient-red:hover,
.btn-gradient-red:focus,
.btn-gradient-red:active {
    background: var(--gradient-red-hover);
    color: var(--white) !important;
    border-color: #b91c1c;
}

/* Dark background buttons: ensure white text for contrast */
.btn-secondary {
    color: var(--white) !important;
}

.navbar .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.3);
}

/* Pull nav links + actions a bit in from the right edge */
.navbar-collapse-right {
    margin-right: 1.5rem;
}

/* Space between last nav link (e.g. Dashboard) and Profile button; accounts for button border */
.navbar-actions {
    margin-left: 1.25rem;
}

/* Navbar toggler: default dark icon on gray background (no filter needed) */

.profile-dropdown {
    min-width: 280px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--grey-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
}

.profile-dropdown-header {
    padding: 0.7rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey-400);
    background: var(--grey-50);
    border-bottom: 1px solid var(--grey-100);
}

.profile-dropdown-info {
    padding: 0.85rem 1.1rem;
    background: #fff;
}

.profile-dropdown-dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.profile-dropdown-row {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 0.5rem;
    align-items: start;
}

.profile-dropdown-row dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--grey-400);
}

.profile-dropdown-row dd {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-800);
    word-break: break-word;
}

.profile-dropdown-actions {
    padding: 0.35rem 0;
    background: #fff;
}

.profile-dropdown .dropdown-item {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-600);
    transition: background 0.15s, color 0.15s;
}

.profile-dropdown .dropdown-item:hover {
    background-color: var(--grey-50);
    color: var(--grey-900);
}

.profile-dropdown .dropdown-item.text-danger {
    color: #dc2626 !important;
}
.profile-dropdown .dropdown-item.text-danger:hover {
    background-color: #fef2f2 !important;
}

/* Account tab dropdown: hover highlight */
.account-dropdown-item:hover {
    background-color: var(--accent-blue);
    color: var(--grey-900);
}

.account-dropdown-item:focus {
    background-color: var(--accent-blue);
    color: var(--grey-900);
}

/* =====================================================
   SERVICES PAGE
   ===================================================== */

/* Hero Section */
.services-page {
    overflow-x: hidden;
}

/* Home page wrapper: consistent typography and font */
.home-page {
    font-family: var(--font-family);
    font-size: var(--text-body);
}
.home-page h1, .home-page h2, .home-page h3, .home-page h4 {
    font-family: var(--font-family);
}

.hero-section {
    background: transparent;
    color: #1f2937;
    padding: 80px 0;
    border-bottom: 1px solid #e5e7eb;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    text-align: left;
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: var(--text-major);
}

.hero-section .main-text {
    display: inline;
    font-size: var(--text-major);
}

.hero-section .dynamic-text {
    display: inline;
    color: var(--primary-color);
    font-weight: 800;
    min-width: 150px;
    font-size: var(--text-major);
}

.dynamic-text .text-item {
    display: none;
    opacity: 0;
    font-size: var(--text-major);
    color: var(--primary-color);
}

.dynamic-text .text-item.active {
    display: inline;
    animation: smoothFade 1.3s ease-in-out forwards;
    font-size: var(--text-major);
    color: var(--primary-color);
}

@keyframes smoothFade {
    0% { opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

.hero-section .lead {
    font-size: var(--text-body);
    margin-bottom: 30px;
    max-width: 100%;
    color: #6b7280;
}

.customers-badge {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-blue);
    border: 2px solid var(--accent-blue-border);
    border-radius: 50px;
    color: var(--grey-900);
    font-size: var(--text-body);
    font-weight: 600;
    margin-top: 20px;
}

.customers-badge strong {
    color: var(--grey-900);
    font-size: var(--text-body);
}

.hero-right {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--grey-200) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: var(--text-body);
    position: relative;
    overflow: hidden;
}

.overlay-tile {
    position: absolute;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    text-align: center;
}

/* 70+ Matches: oval bubble, bent tail from top-right to bottom-left (tail on right, into bubble) */
.overlay-tile.matches {
    bottom: 20px;
    left: -40px;
    width: 140px;
    min-height: 72px;
    padding-left: 40px;
    padding-right: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
    background: linear-gradient(135deg, #fefce8 0%, #fef08a 50%, #facc15 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--black);
}

/* Bent tail: top-right to bottom-left - rotated oval */
.overlay-tile.matches::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    width: 28px;
    height: 44px;
    transform: translateY(-50%) rotate(45deg);
    background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
    border-radius: 50%;
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-left-color: transparent;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

.overlay-tile.matches .number {
    font-size: var(--text-title);
    color: var(--black);
}

.overlay-tile.matches .label {
    font-size: var(--text-body);
    color: var(--black);
    margin-top: 5px;
}

/* $40K Funded: oval bubble, bent tail from bottom-left to top-right (tail on left, into bubble) */
.overlay-tile.funded {
    top: 20px;
    right: -40px;
    width: 140px;
    min-height: 72px;
    padding-left: 20px;
    padding-right: 40px;
    padding-top: 16px;
    padding-bottom: 16px;
    background: var(--gradient-yellow);
    border: var(--border-yellow);
    color: var(--black);
}

/* Bent tail: bottom-left to top-right - rotated oval */
.overlay-tile.funded::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -14px;
    width: 28px;
    height: 44px;
    transform: translateY(-50%) rotate(-45deg);
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    border-radius: 50%;
    border: var(--border-yellow);
    border-right-color: transparent;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
}

.overlay-tile.funded .amount {
    font-size: var(--text-title);
    color: var(--black);
}

.overlay-tile.funded .label {
    font-size: var(--text-body);
    color: var(--black);
    margin-top: 5px;
}

/* Success System Section */
.success-system {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid var(--grey-200);
}

.success-system h2 {
    font-size: var(--text-major);
    margin-bottom: 15px;
    color: #1f2937;
}

.success-system > .container > p {
    color: #6b7280;
}

.success-system-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.success-text {
    padding: 20px 0;
}

.success-text h2 {
    font-size: var(--text-major);
    font-weight: 800;
    margin-bottom: 20px;
    color: #1f2937;
}

.success-text p {
    font-size: var(--text-body);
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 20px;
}

.success-text .cta-text {
    color: var(--primary-color);
    font-size: var(--text-body);
    margin-bottom: 20px;
}

.success-text .cta-text a {
    text-decoration: none;
}

/* Our Partners section: title same size and style as Grant Support Services (Services page) */
#our-partners .section-title-banner h2 {
    font-size: var(--text-major);
    font-weight: 700;
    color: #1f2937;
}

.success-image {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-steps-grid {
    display: none;
}

.success-step {
    padding: 30px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.success-step:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: var(--text-title);
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 15px;
}

.success-step h5 {
    font-size: var(--text-title);
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.success-step p {
    font-size: var(--text-body);
    color: #6b7280;
}

/* Grant Support Services Section */
.grant-support-section {
    padding: 80px 0;
    background: transparent;
    font-family: var(--font-family);
    font-size: var(--text-body);
}

.grant-support-section h2 {
    font-size: var(--text-major);
    margin-bottom: 50px;
    color: #1f2937;
}

.grant-support-section h3 {
    font-size: var(--text-title);
    font-weight: 700;
    color: #1f2937;
}

.grant-support-section p {
    font-size: var(--text-body);
}

/* Grant Support: Get Grant Help intro & content cards */
.services-intro {
    font-size: var(--text-body);
}
.services-intro-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}
.services-intro-p {
    font-size: var(--text-body);
    color: var(--grey-700);
    line-height: 1.6;
}
.content-card {
    border-radius: 12px;
    background: var(--white);
    font-size: var(--text-body);
    border: 1px solid var(--grey-200);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.content-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-blue-border);
}
.content-card .card-body {
    padding: 1.25rem 1.5rem;
}

/* Grant & Business Consulting: section title */
.services-section-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}

/* Service option cards (General Grant Session, Business Plan Review, etc.) */
.service-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
.service-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-blue-border);
}

/* Blue strip for service card titles (same as plan-name-strip) */
.service-card-title-strip {
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}
.service-card:has(.service-badge) .service-card-title-strip {
    margin-top: 1.25rem;
}
.service-card-title-strip .service-card-title {
    margin-bottom: 0;
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}

/* Fractional Plan badge overlapping card border (like 7 Days Free Trial / Most Popular) */
.service-card .service-badge {
    position: absolute;
    top: -8px;
    left: 16px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: var(--text-body);
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fef9c3 50%, var(--primary-color) 100%);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: var(--grey-900);
    margin-bottom: 0;
}
.service-card .service-badge:hover {
    text-decoration: none;
}

.service-card-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 0.5rem;
}
.service-card-subtitle {
    font-size: var(--text-body);
    color: var(--grey-600);
}
.service-card-desc {
    font-size: var(--text-body);
    color: var(--grey-700);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.service-card-desc.service-card-desc-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-card-desc.service-card-desc-expanded {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}
.service-read-more,
.link-brown {
    color: #795548 !important;
    text-decoration: none;
    font-weight: 500;
}
.service-read-more:hover,
.link-brown:hover {
    color: #5d4037 !important;
    text-decoration: underline;
}
.service-card-includes {
    font-size: var(--text-body);
    color: var(--grey-600);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--grey-200);
}
.service-includes-label {
    font-weight: 600;
    color: var(--grey-700);
}
.service-card-featured {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.2);
}

/* Not sure what service / Contact CTA box (Grant Support section) */
.services-cta-box {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    font-size: var(--text-body);
}
.services-cta-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}
.services-cta-text {
    font-size: var(--text-body);
    color: var(--grey-700);
}

/* Plans Section */
.plans-section {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid var(--grey-200);
}

.plans-section h2 {
    font-size: var(--text-major);
    margin-bottom: 50px;
    color: #1f2937;
}

.plan-card {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 36px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.plan-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
    transform: translateY(-6px);
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.2);
    transform: scale(1.04);
    z-index: 2;
}

.plan-card.featured:hover {
    box-shadow: 0 16px 48px rgba(234, 179, 8, 0.28);
    transform: scale(1.04) translateY(-6px);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.free-trial-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.plan-header {
    margin-bottom: 20px;
    text-align: center;
}

.plan-header h4 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0;
    color: #0f172a;
}

.plan-name-strip {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0.35rem;
}

.plan-name-strip h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.plan-billing,
.plan-pricing-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.plan-billing.text-black,
.plan-pricing-text.text-black {
    color: #64748b !important;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.plans-section .plan-card:not(.additional-plan) .price-amount {
    font-size: 2.8rem;
    color: #0f172a;
}

.price-period {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-left: 4px;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
    flex-grow: 1;
}

.plan-features li {
    padding: 9px 0;
    color: #475569;
    font-size: 0.92rem;
    border-bottom: 1px solid #f8fafc;
    line-height: 1.5;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 8px;
}

.plan-card .btn {
    margin-top: auto;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Additional plans (Fractional, Association) */
.additional-plans-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.5rem;
}
.additional-plan-wrapper {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 0;
}
.additional-plan-wrapper.is-expanded {
    flex: 0 0 calc((100% - 24px) / 2);
}
.plan-card.additional-plan {
    padding: 1.5rem 1.5rem;
    flex: 1 1 auto;
    min-width: 0;
}
.plan-card.enterprise-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-top: none;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.plan-card.enterprise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #f59e0b);
}
.additional-plan-wrapper.is-expanded .plan-card.enterprise-card {
    border-radius: 16px 16px 0 0;
    border-bottom: none;
}
.plan-card.additional-plan .plan-features {
    flex: 1 1 auto;
}
.plan-notes-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-end;
    margin-top: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 0;
    transition: color 0.2s;
}
.plan-notes-toggle:hover {
    color: var(--primary-color);
}
.plan-notes-toggle-icon {
    display: inline-block;
    line-height: 1;
    transition: transform 0.3s ease;
}
.additional-plan-wrapper.is-expanded .plan-notes-toggle-icon {
    transform: rotate(90deg);
}
.plan-notes-panel {
    max-height: 0;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e8eaed;
    border-top: none;
    border-radius: 0 0 16px 16px;
    transition: max-height 0.4s ease;
    position: relative;
}
.additional-plan-wrapper.is-expanded .plan-notes-panel {
    max-height: 400px;
    overflow-y: auto;
}
.plan-notes-content {
    padding: 20px 24px 24px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    -webkit-overflow-scrolling: touch;
}
.plan-notes-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border: none;
    background: #e2e8f0;
    border-radius: 6px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--grey-600);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.plan-notes-close:hover {
    background: var(--grey-200);
    color: var(--grey-800);
}
.plan-card-p {
    font-size: var(--text-body);
    color: var(--grey-700);
    margin-bottom: 0.75rem;
}
.plan-card-p:last-child {
    margin-bottom: 0;
}

/* Mobile adjustments: stack additional plans */
@media (max-width: 767.98px) {
    .additional-plan-wrapper,
    .additional-plan-wrapper.is-expanded {
        flex: 1 1 100%;
    }
}
.plan-notes-close:hover {
    background: #cbd5e1;
    color: #1e293b;
}
.plan-card-p {
    font-size: var(--text-body);
    color: var(--grey-700);
    margin-bottom: 0.75rem;
}
.plan-card-p:last-child {
    margin-bottom: 0;
}

/* Not sure where to start CTA (Plans section) */
.plans-cta-box {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    font-size: var(--text-body);
}
.plans-cta-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}
.plans-cta-text {
    font-size: var(--text-body);
    color: var(--grey-700);
}

/* Resources Section */
.resources-section {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid var(--grey-200);
}

.resources-section h2 {
    font-size: var(--text-major);
    margin-bottom: 50px;
    color: #1f2937;
}

.resource-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--grey-200) !important;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.resource-card .card-title {
    color: #1f2937;
    padding: 0;
    margin: 0;
}

/* Light blue strip for resource card title */
.resource-name-strip {
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0;
}

.resource-name-strip .card-title {
    color: #1f2937;
    margin: 0;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover) !important;
    border-color: var(--primary-color) !important;
}

.resource-icon {
    font-size: var(--text-title);
    margin-bottom: 15px;
}

.badge {
    font-size: var(--text-body);
    font-weight: 500;
}

.resource-card h5 {
    font-size: var(--text-title);
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.resource-card p {
    font-size: var(--text-body);
    color: #6b7280;
    margin-bottom: 20px;
    flex-grow: 1;
}

.resource-card .btn {
    margin-top: auto;
}

/* Service Providers Access cards (Explore Ecosystem / Become a Service Provider) */
.become-provider-card {
    border-radius: 12px;
    font-size: var(--text-body);
    border: 1px solid var(--grey-200);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.become-provider-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-blue-border);
}
.become-provider-card .card-body {
    padding: 1.25rem 1.5rem;
}
.become-provider-card .service-card-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}
.become-provider-card .services-intro-p {
    font-size: var(--text-body);
    color: var(--grey-700);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-yellow);
    padding: 80px 0;
    font-family: var(--font-family);
}

.cta-section h2,
.cta-section p,
.cta-section .lead {
    color: var(--black);
    font-size: var(--text-body);
}
.cta-section h2 {
    font-size: var(--text-major);
    font-weight: 800;
}
.cta-section .lead {
    font-size: var(--text-body);
}

.btn-cta-contact {
    background: linear-gradient(135deg, #4b5563 0%, #1f2937 50%, #111827 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--white) !important;
    font-weight: 600;
}

.btn-cta-contact:hover,
.btn-cta-contact:focus,
.btn-cta-contact:active {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
    border-color: var(--black);
    color: var(--white) !important;
}

/* =====================================================
   AUTH PAGES (SIGNIN/SIGNUP)
   ===================================================== */

/* Hide navbar & footer on auth pages */
body.auth-page {
    padding-top: 0 !important;
}
body.auth-page .navbar-theme,
body.auth-page .layout-footer {
    display: none !important;
}
body.auth-page .layout-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Premium Auth — split layout */
.auth-page-premium {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.auth-brand-panel {
    flex: 0 0 42%;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
}
.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.05);
}
.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.05);
}
.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 340px;
}
.auth-brand-logo {
    height: 186px;
    margin-bottom: 18px;
}
.auth-brand-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.25;
    margin-bottom: 10px;
}
.auth-brand-sub {
    font-size: 0.84rem;
    color: #cbd5e1 !important;
    line-height: 1.6;
    margin-bottom: 24px;
}
.auth-brand-stats {
    display: flex;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.auth-brand-stat {
    display: flex;
    flex-direction: column;
}
.auth-brand-stat-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fbbf24 !important;
}
.auth-brand-stat-label {
    font-size: 0.68rem;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    background: #fff;
}
.auth-form-wrap {
    width: 100%;
    max-width: 380px;
}
.auth-form-header {
    margin-bottom: 20px;
}
.auth-form-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a !important;
    margin-bottom: 4px;
}
.auth-form-header p {
    font-size: 0.84rem;
    color: #64748b !important;
    margin: 0;
}
.auth-field {
    margin-bottom: 14px;
}
.auth-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}
.auth-input-wrap {
    position: relative;
}
.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}
.auth-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.auth-input::placeholder {
    color: #94a3b8;
}
.auth-input:focus {
    border-color: #fbbf24;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.12);
}
.auth-forgot {
    text-align: right;
    margin-bottom: 16px;
    margin-top: -6px;
}
.auth-forgot a {
    font-size: 0.78rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-forgot a:hover {
    color: #ca8a04;
}
.auth-submit-btn {
    width: 100%;
    padding: 11px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #eab308 100%);
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-submit-btn:hover {
    background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #ca8a04 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.35);
}
.auth-divider {
    display: flex;
    align-items: center;
    margin: 14px 0;
    gap: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.auth-divider span {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
}
.auth-oauth-row {
    display: flex;
    gap: 10px;
}
.auth-oauth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
}
.auth-oauth-btn:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.auth-signup-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.82rem;
    color: #64748b;
}
.auth-signup-link a {
    color: #b45309;
    font-weight: 700;
    text-decoration: none;
}
.auth-signup-link a:hover {
    text-decoration: underline;
}
/* Signup-specific styles */
.auth-brand-sticky { position: sticky; top: 0; align-self: flex-start; height: 100vh; }
.auth-form-scroll { overflow-y: auto; max-height: 100vh; align-items: flex-start; }
.auth-signup-wrap { width: 100%; max-width: 640px; padding: 32px 0 40px; }
.signup-section { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.signup-section-head { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.signup-section-head i { font-size: 1.1rem; color: #eab308; }
.signup-subsection-head { font-size: 0.82rem; font-weight: 700; color: #334155; margin-top: 14px; margin-bottom: 8px; }
.signup-input { width: 100%; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.84rem; color: #1e293b; background: #fff; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.signup-input::placeholder { color: #94a3b8; }
.signup-input:focus { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1); }
.signup-radio-group { margin-bottom: 12px; }
.signup-radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-radio-pill { cursor: pointer; }
.signup-radio-pill input { display: none; }
.signup-radio-pill span { display: inline-block; padding: 6px 16px; border: 1px solid #e2e8f0; border-radius: 20px; font-size: 0.82rem; font-weight: 500; color: #334155; background: #fff; transition: all 0.2s ease; }
.signup-radio-pill input:checked + span { background: #fef3c7; border-color: #eab308; color: #92400e; font-weight: 600; }
.signup-radio-pill:hover span { border-color: #cbd5e1; }
.signup-checkbox-pill { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.82rem; color: #64748b; }
@media (max-width: 767.98px) {
    .auth-split { flex-direction: column; }
    .auth-brand-panel { flex: none; padding: 40px 24px; }
    .auth-brand-sticky { position: static; height: auto; }
    .auth-form-panel { padding: 32px 20px; }
    .auth-form-scroll { max-height: none; }
}

/* Legacy auth page (other auth pages) */
.auth-page {
    background-color: var(--light-bg);
    min-height: 80vh;
    padding-top: 2rem;
}

.auth-page .row {
    min-height: 0;
    align-items: flex-start;
}

.auth-card {
    background: white;
    padding: 28px 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.auth-card h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.auth-card .signup-field-row {
    min-height: 0;
}

.auth-card .form-control-lg {
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: var(--text-body);
}

.auth-card .form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(234, 179, 8, 0.25);
}

.auth-card .btn-lg:not(.btn-oauth) {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--gradient-yellow);
    border: var(--border-yellow);
    color: var(--black) !important;
}

.auth-card .btn-lg:not(.btn-oauth):hover,
.auth-card .btn-lg:not(.btn-oauth):focus,
.auth-card .btn-lg:not(.btn-oauth):active {
    background: var(--gradient-yellow-hover);
    border-color: var(--primary-dark);
    color: var(--black) !important;
}

.auth-validation-message {
    white-space: pre-line;
}

.auth-card h5.fw-bold,
.auth-card h6.fw-bold {
    color: var(--grey-900);
}

.auth-card hr {
    border-color: var(--grey-200);
}

.auth-card .form-check {
    margin-bottom: 0.2rem;
}

.auth-card .row.g-1 .form-check,
.auth-card .row.g-2 .form-check {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
}

.password-input-wrapper .password-toggle {
    text-decoration: none;
    font-size: var(--text-title);
}

.password-input-wrapper .password-toggle:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* OAuth buttons: white text on sign-in/sign-up */
/* OAuth logo-only square buttons, side by side */
.oauth-buttons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.btn-oauth {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-oauth:hover {
    transform: scale(1.05);
}

/* Grey background for all; logos use brand colors via SVG fill / .oauth-icon-apple */
.btn-oauth-google,
.btn-oauth-microsoft,
.btn-oauth-apple {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: inherit;
}

.btn-oauth-google:hover,
.btn-oauth-microsoft:hover,
.btn-oauth-apple:hover {
    background-color: #dee2e6;
    border-color: #ced4da;
    color: inherit;
}

.oauth-icon-apple {
    color: #000;
}

/* =====================================================
   DASHBOARD PAGE
   ===================================================== */

.dashboard-page {
    background: linear-gradient(180deg, var(--white) 0%, var(--grey-100) 35%, var(--accent-blue) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Same font and base size across all dashboard tabs (Home, List Building, Saved Grants, Application, etc.) */
.dashboard-page .tab-content,
.dashboard-page .tab-pane {
    font-family: var(--font-family);
    font-size: var(--text-body);
}
.dashboard-page .tab-content .form-control,
.dashboard-page .tab-content .form-select,
.dashboard-page .tab-content .form-label {
    font-family: var(--font-family);
}

.dashboard-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-header h1 {
    color: #1f2937;
}

.dashboard-header .btn:not(.btn-gradient-yellow) {
    border-radius: 8px;
    background: var(--primary-color);
    border: none;
}

.dashboard-header .btn:not(.btn-gradient-yellow):hover {
    background: var(--primary-dark);
}

.dashboard-header .btn-gradient-yellow {
    border-radius: 8px;
    background: var(--gradient-yellow);
    color: var(--black) !important;
    border: var(--border-yellow);
}

.dashboard-header .btn-gradient-yellow:hover {
    background: var(--gradient-yellow-hover);
    color: var(--black) !important;
    border-color: var(--primary-dark);
}

/* Admin viewing expired company: disable tab content (read-only) */
.dashboard-content-disabled {
    pointer-events: none;
    opacity: 0.75;
    user-select: none;
}

/* Stat Cards */
.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.stat-number {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: #9ca3af;
    font-size: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Home tab value banner - styled label and value, vertically centered */
.home-value-banner {
    min-height: 1in;
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
}

.home-value-banner .value-banner-label,
.home-value-banner .value-banner-amount {
    line-height: 1.2;
}

.home-value-banner .value-banner-label {
    font-size: var(--text-title);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--grey-600);
}

.home-value-banner .value-banner-amount {
    font-size: var(--text-title);
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Home tab two sections - bordered; title/description/list each have consistent size across both columns */
.home-section {
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.home-section-title {
    font-size: var(--text-title);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.home-section-desc {
    font-size: var(--text-body);
    margin-bottom: 0.75rem;
    min-height: 2.8rem;
    flex-shrink: 0;
}

/* List area - same height for both sections, always scrollable */
.home-section-list-scroll {
    height: 420px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.home-matches-list.list-group-separated .list-group-item,
.home-portfolio-list.list-group-separated .list-group-item {
    font-size: var(--text-body);
    border: 1px solid var(--grey-200) !important;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    padding: 1.25rem 1.5rem !important;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-height: 3.25rem;
}

.home-matches-list .list-group-item:last-child,
.home-portfolio-list .list-group-item:last-child {
    margin-bottom: 0;
}

.home-section .see-all-link {
    font-size: var(--text-body);
}

.see-all-link {
    color: var(--primary-color);
    text-decoration: none;
}

.see-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Grant Portfolio status badges (pastel, yellow/gray theme) - kept small so list row height matches Your Matches */
.portfolio-status {
    font-size: var(--text-body);
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* Saved: neutral/saved (same as before) */
.portfolio-status-added {
    background: #fef9c3;
    color: #a16207;
}
.portfolio-status-new {
    background: #fef9c3;
    color: #a16207;
}

/* In Progress: blue (working on it) */
.portfolio-status-in-progress {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Submitted: amber (awaiting review) */
.portfolio-status-submitted {
    background: #fef08a;
    color: #ca8a04;
}

/* Approved: green */
.portfolio-status-approved {
    background: #dcfce7;
    color: #166534;
}

/* Rejected: red */
.portfolio-status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

/* Grant request history badges (Add Grants tab) */
.grant-history-badge {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}
.grant-history-badge-approved {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    color: #ffffff !important;
}
.grant-history-badge-withdrawn {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 50%, #9ca3af 100%);
    color: #1f2937 !important;
}
.grant-history-badge-pending {
    background: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #eab308 100%);
    color: #422006 !important;
}
.grant-history-badge-rejected {
    background: linear-gradient(135deg, #fca5a5 0%, #ef4444 50%, #dc2626 100%);
    color: #ffffff !important;
}

/* Grant Cards */
.grant-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grant-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.grant-card.favorite-card {
    border: 2px solid var(--primary-color);
    background: rgba(234, 179, 8, 0.08);
}

.grant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.grant-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    flex-grow: 1;
}

.status-badge {
    font-size: var(--text-body);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
}

.status-badge.status-applied {
    background: var(--grey-200);
    color: var(--grey-700);
}

.status-badge.status-in-progress {
    background: var(--grey-100);
    color: var(--grey-700);
}

.status-badge.status-awaiting-review {
    background: var(--grey-200);
    color: var(--grey-900);
}

.status-badge.status-approved {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.status-badge.status-rejected {
    background: var(--grey-200);
    color: var(--grey-700);
}

.grant-description {
    font-size: var(--text-body);
    color: #6b7280;
    margin-bottom: 15px;
    flex-grow: 1;
}

.grant-details {
    background: var(--light-bg);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-body);
    padding: 4px 0;
}

.detail-item .label {
    color: #9ca3af;
    font-weight: 600;
}

.detail-item .value {
    color: #1f2937;
    font-weight: 500;
}

.grant-card .btn {
    margin-top: auto;
}

.grant-card .form-select-sm {
    border-radius: var(--radius-box);
    font-size: var(--text-body);
    padding: 4px 8px;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
}

.nav-tabs .nav-link {
    color: #6b7280;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

/* Account tab: section cards and edit */
/* Account tab sections: same sectional pattern as Home (border outline + inner content style) */
.account-section.home-section {
    /* Uses .home-section border, border-radius 8px, padding 1rem from main .home-section rule */
}

/* Soft gradient for Home tab cards (client and admin) */
#home .home-section.account-section {
    background: linear-gradient(165deg, #fefefe 0%, #fafbfc 45%, #f5f6f8 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.account-section .home-section-title-banner {
    margin-bottom: 1rem;
}

/* Home tab: constrain columns so content doesn't overflow the section */
#home .home-section.account-section .row > [class*="col-"] {
    min-width: 0;
}

.account-section-inner {
    padding: 0rem !important;
    background: none !important;
    border: none !important;
    border-radius: var(--radius-box);
    box-shadow: none !important;
    font-family: var(--font-family);
    font-size: var(--text-body);
}

/* Team members: blue "Primary" label for the primary user */
.badge-primary-label {
    font-size: var(--text-body);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
}

/* Team members: Editor (yellow gradient) and Viewer (gray gradient) labels */
.badge-gradient-yellow {
    background: var(--gradient-yellow);
    color: var(--black);
    border: 1px solid rgba(202, 138, 4, 0.4);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.badge-gradient-gray {
    background: var(--gradient-gray);
    color: var(--white);
    border: 1px solid rgba(75, 85, 99, 0.5);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}


/* Account detail fields (personal/company view): each field in a bordered box */
.account-detail-field {
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    padding: var(--padding-box);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.account-detail-field .account-val {
    margin-top: 0.25rem;
}

/* Account edit form: each field group in a bordered box */
.account-edit-field {
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    padding: var(--padding-box);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.account-edit-field .form-control {
    border-color: var(--grey-200);
}

/* Company Information subsection titles (Company Identification, Founder, etc.) */
.account-subsection-title {
    display: block;
    font-size: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--grey-700);
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Account lists (team members, billing history, payment methods): each item bordered */
.account-list-item {
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    padding: var(--padding-box);
    margin-bottom: 0.5rem;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

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

/* Saved Grants: meta row (amount, closes on, planned) with icons and badge */
.timeline-grant-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.5rem;
    font-size: var(--text-body);
    color: var(--grey-600);
}
.timeline-grant-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.timeline-grant-meta-item i {
    font-size: var(--text-body);
    color: var(--grey-500);
    flex-shrink: 0;
}
.timeline-grant-meta-amount {
    font-weight: 600;
    color: var(--grey-800);
}
.timeline-grant-meta-amount i {
    color: var(--primary-dark);
}
.timeline-grant-meta-planned {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue-border);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--grey-800);
}
.timeline-grant-meta-planned i {
    color: var(--grey-600);
}

/* Ensure two-column list items keep right content aligned and prevent wrapping,
   while truncating or clipping long left text as needed. */
.home-matches-list .list-group-item,
.home-portfolio-list .list-group-item,
.timeline-grant-list .timeline-grant-item,
.account-list-item.d-flex.justify-content-between {
    gap: 0.75rem;
}
.home-matches-list .list-group-item > .flex-grow-1,
.home-portfolio-list .list-group-item > .flex-grow-1,
.timeline-grant-item > .flex-grow-1 {
    min-width: 0; /* allow text-truncate to work */
}
.home-matches-list .list-group-item span.text-truncate,
.home-portfolio-list .list-group-item span.text-truncate,
.timeline-grant-item .list-item-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-matches-list .list-group-item > span.text-muted,
.home-portfolio-list .list-group-item > .portfolio-status,
.timeline-grant-item .timeline-grant-view {
    flex-shrink: 0;
    white-space: nowrap;
}

.account-edit-btn:hover {
    color: var(--primary-color) !important;
}

/* Edit icon button: square with gradient yellow */
.account-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0 !important;
    border: var(--border-yellow) !important;
    border-radius: 6px;
    background: var(--gradient-yellow);
    color: var(--black) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.account-edit-btn:hover,
.account-edit-btn:focus {
    background: var(--gradient-yellow-hover);
    border-color: var(--primary-dark) !important;
    color: var(--black) !important;
}

.account-edit-btn i {
    font-size: var(--text-body);
}

/* Current plan stats: Days remaining, Team members, Next billing */
.plan-stats-row {
    display: flex;
    flex-wrap: wrap;
}

.plan-stat-card {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.plan-stat-card .plan-stat-icon {
    font-size: var(--text-title);
    color: var(--grey-600);
    margin-bottom: 0.35rem;
}

.plan-stat-card .plan-stat-icon i {
    vertical-align: middle;
}

.plan-stat-card .plan-stat-value {
    font-size: var(--text-subtitle);
    font-weight: 700;
    color: var(--grey-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.plan-stat-card .plan-stat-value-sm {
    font-size: var(--text-body);
    font-weight: 600;
}

.plan-stat-card .plan-stat-sep {
    font-weight: 400;
    color: var(--grey-500);
    margin: 0 0.1em;
}

.plan-stat-card .plan-stat-label {
    font-size: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--grey-600);
    margin-top: 0.15rem;
}

.plan-stat-card .plan-stat-autopay-off {
    font-size: var(--text-body);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bs-danger, #dc3545);
    margin-top: 0.35rem;
}

.plan-stat-card .progress {
    background: var(--grey-200);
    border-radius: 2px;
}

.plan-stat-card .progress-bar {
    background: linear-gradient(90deg, #fef08a 0%, #eab308 100%);
    border-radius: 2px;
}

.plan-stat-card.plan-stat-days .plan-stat-value { color: var(--primary-color); }
.plan-stat-card.plan-stat-members .plan-stat-value { color: var(--grey-800); }

/* Grant detail: top row = checkpoints (3/4) + completion % (1/4) */
.grant-detail-top-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}
.grant-checkpoints-wrap { flex: 0 0 75%; min-width: 0; }
.grant-completion-widget {
    flex: 0 0 25%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.grant-completion-widget .grant-completion-label { font-size: var(--text-body); color: var(--grey-600); }
.grant-completion-widget .d-flex { align-items: center; gap: 0.5rem; }
.grant-completion-widget .progress.grant-progress-bar { height: 14px; }
.grant-completion-pct { font-size: var(--text-body); font-weight: 600; white-space: nowrap; min-width: 2.5em; }

/* Grant detail: checkpoint progress (4 stages) */
.grant-checkpoints { padding: 0.5rem 0; }
.grant-checkpoints .d-flex { gap: 0; }
.grant-checkpoint-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.grant-checkpoint-item.active { opacity: 1; }
.grant-checkpoint-item.current .grant-checkpoint-num {
    background: var(--gradient-yellow);
    color: var(--black);
    border-color: transparent;
}
.grant-checkpoint-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid var(--grey-300);
    background: var(--grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-body);
}
.grant-checkpoint-label {
    font-size: var(--text-body);
    margin-top: 0.35rem;
    color: var(--grey-600);
    text-align: center;
    max-width: 4.5rem;
}
.grant-checkpoint-line {
    flex: 1;
    min-width: 1rem;
    height: 2px;
    background: var(--grey-200);
    align-self: center;
    margin: 0 0.25rem;
    transition: background 0.2s;
}
.grant-checkpoint-line.active { background: var(--primary-color); }
.grant-progress-bar .progress-bar {
    background: linear-gradient(90deg, #fef08a 0%, #eab308 100%);
    border-radius: 4px;
}

/* Grant detail: Status – plain label + regular dropdown */
.grant-status-widget-label {
    font-size: 0.875rem;
    color: var(--grey-700);
    white-space: nowrap;
}
.grant-status-select {
    min-width: 8rem;
}

.grant-message-board-scroll {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

/* Grant detail: all section content areas scroll after a fixed height */
.grant-section-scroll {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}
.grant-section-scroll::-webkit-scrollbar { width: 6px; }
.grant-section-scroll::-webkit-scrollbar-track { background: var(--grey-200, #e5e7eb); border-radius: 3px; }
.grant-section-scroll::-webkit-scrollbar-thumb { background: var(--grey-500, #6b7280); border-radius: 3px; }
.grant-section-scroll::-webkit-scrollbar-thumb:hover { background: var(--grey-600, #4b5563); }

/* Supporting Documents Checklist: accordion items, hide empty when has docs */
.grant-checklist-list .accordion-button { font-size: var(--text-title); }
.grant-checklist-list .accordion-button::after { margin-left: auto; }
.grant-checklist-list .accordion-button:not(.collapsed) { font-weight: 600; }
.grant-checklist-list .accordion-body { font-size: var(--text-body); }
.grant-checklist-docs:has(.grant-doc-name) .grant-checklist-docs-empty { display: none !important; }

/* Upload Documents: expandable doc cards */
.grant-doc-card-header { cursor: pointer; user-select: none; }
.grant-doc-card-header:hover { background: var(--grey-100, #f3f4f6); border-radius: 0.25rem; }
.grant-doc-card-header .grant-doc-view-btn,
.grant-doc-card-header .btn-gradient-gray { border-radius: 6px; min-width: 2rem; }
.grant-doc-card-header .grant-doc-card-chevron { transition: transform 0.2s ease; }
.grant-doc-card-body.show .grant-doc-card-chevron { transform: rotate(90deg); }
.grant-doc-card .grant-doc-checklist-options label { cursor: pointer; }

/* Upload Documents thumbnails (legacy / fallback) */
.grant-doc-thumb:hover { background: var(--grey-100); }
.grant-docs-thumbnails .grant-doc-thumb { min-height: 2.5rem; }

/* Application Contacts cards */
.grant-contact-card dt { font-size: var(--text-body); text-transform: uppercase; letter-spacing: 0.02em; }
.grant-contact-card .grant-contact-remove { opacity: 0.7; }
.grant-contact-card .grant-contact-remove:hover { opacity: 1; }

/* =====================================================
   Account → Subscriptions: consistent styling
   ===================================================== */

.account-page-title {
    font-size: var(--text-subtitle);
    font-weight: 700;
    color: var(--grey-900);
    letter-spacing: -0.02em;
}

/* Current plan: plan name + amount block */
.subscription-plan-hero {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Plan type badge – stands out as current plan name */
.subscription-plan-badge {
    display: inline-block;
    font-size: var(--text-body);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--grey-900);
    background: var(--gradient-yellow);
    border: var(--border-yellow);
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(234, 179, 8, 0.2);
}

.subscription-plan-price {
    margin-bottom: 0.25rem;
}

.subscription-plan-amount {
    font-size: var(--text-subtitle);
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.subscription-plan-period {
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--grey-600);
    margin-left: 0.15rem;
}

.subscription-plan-billing-note {
    font-size: var(--text-body);
    color: var(--grey-600);
    margin-bottom: 0;
}

/* Empty states (no invoices, no payment methods) */
.subscription-empty-state {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--grey-100);
    border: 1px dashed var(--grey-300);
    border-radius: 8px;
}

.subscription-empty-icon {
    font-size: var(--text-major);
    color: var(--grey-400);
    display: block;
    margin-bottom: 0.75rem;
}

.subscription-empty-text {
    font-size: var(--text-body);
    color: var(--grey-600);
}

/* Section intro text (Upgrade plan copy) */
.subscription-section-desc {
    font-size: var(--text-body);
    color: var(--grey-700);
    line-height: 1.5;
}

/* Plan detail card: shown when Change plan is clicked or admin suggestion */
.plan-detail-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
}

.plan-detail-card-header {
    font-size: var(--text-title);
    font-weight: 600;
    color: var(--grey-900);
    letter-spacing: -0.01em;
}

.plan-detail-card-desc {
    font-size: var(--text-body);
    color: var(--grey-600);
    line-height: 1.5;
    margin-bottom: 0;
}

.plan-detail-stats {
    display: flex;
    flex-wrap: wrap;
}

.plan-detail-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.plan-detail-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--grey-600);
}

.plan-detail-stat-value {
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.plan-detail-card-suggestion {
    border-color: rgba(234, 179, 8, 0.5);
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.15) 0%, rgba(250, 204, 21, 0.08) 50%, rgba(234, 179, 8, 0.05) 100%);
}

.plan-detail-card-suggestion .plan-detail-card-header {
    color: var(--grey-900);
}

.plan-detail-actions {
    padding-top: 0.5rem;
    border-top: 1px solid var(--grey-200);
}

/* List secondary text (amount in billing history) */
.subscription-list-amount {
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--grey-600);
}

.subscription-list-icon {
    color: var(--grey-500);
    font-size: var(--text-title);
}

/* Payment methods: thumbnail / square cards */
.payment-methods-grid {
    margin-bottom: 0;
}

.payment-method-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1rem 1rem 1.25rem;
    padding-top: 2rem;
    height: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.payment-method-default-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--grey-600);
    user-select: none;
}

.payment-method-default-label:hover {
    color: var(--grey-800);
}

.payment-method-default-label input[type="checkbox"] {
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

.payment-method-default-text {
    white-space: nowrap;
}

.payment-method-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--grey-300);
}

.payment-method-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.payment-method-card-row:first-child {
    margin-bottom: 0.5rem;
}

.payment-method-card-row-actions {
    justify-content: flex-end;
}

.payment-method-card-last4 {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--grey-800);
    letter-spacing: 0.02em;
}

.payment-method-card-expiry {
    font-size: var(--text-body);
    color: var(--grey-600);
}

.payment-method-card-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--grey-800);
    text-transform: capitalize;
}

.payment-card-brand-icon {
    font-size: var(--text-subtitle);
    line-height: 1;
    color: var(--grey-700);
}

.payment-method-card-brand-name {
    flex-shrink: 0;
}

/* Billing history */
.billing-history-grid {
    margin-bottom: 0;
}

.invoice-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.invoice-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-color: var(--grey-300);
}

.invoice-card-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.invoice-card-icon {
    font-size: 1.1rem;
    color: var(--grey-400);
    line-height: 1;
}

.invoice-card-plan {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-800);
    line-height: 1.2;
}

.invoice-card-date {
    font-size: 0.75rem;
}

.invoice-card-amount {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-800);
}

.invoice-card-annual {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--grey-500);
}

.invoice-card-tx {
    font-size: 0.7rem;
}

.invoice-card-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.3rem;
    border-top: 1px solid var(--grey-100);
}

.btn-xs {
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    line-height: 1.4;
    border-radius: 4px;
}

.account-val {
    font-size: var(--text-body);
    color: #1f2937;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    background: var(--light-bg);
}

.modal-header .btn-close {
    filter: brightness(0);
}

.modal-body {
    padding: 25px;
    font-size: var(--text-body);
}

.app-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.app-modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: none;
    padding: 20px 24px;
}
.app-modal-header .btn-close {
    filter: none;
    opacity: 0.7;
}
.app-modal-header .btn-close:hover {
    opacity: 1;
}
.app-modal-title {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
}
.app-modal-body {
    padding: 24px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.7;
}
.app-modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 14px 24px;
    background: #fafbfc;
}

/* Compare Plans Button */
.compare-plans-btn {
    background: #fff;
    color: #0f172a;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}
.compare-plans-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fffbeb;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(234,179,8,0.15);
}

/* Compare Modal */
.compare-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}
.compare-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px 36px 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}
.compare-modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: #fff !important;
}
.compare-modal-sub {
    font-size: 0.92rem;
    color: #94a3b8 !important;
    margin: 8px 0 0;
}
.compare-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #94a3b8;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}
.compare-modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.compare-modal-body {
    padding: 0;
}
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}
.compare-table thead tr {
    background: #f8fafc;
}
.compare-table thead th {
    padding: 16px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.compare-feature-col {
    text-align: left;
    min-width: 200px;
}
.compare-highlight-col {
    background: #fffbeb !important;
}
.compare-table thead th.compare-highlight-col {
    color: #b45309;
    background: #fef3c7 !important;
    position: relative;
}
.compare-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-weight: 500;
}
.compare-table tbody tr:last-child td {
    border-bottom: none;
}
.compare-table tbody tr:hover td {
    background: #f8fafc;
}
.compare-table tbody tr:hover td.compare-highlight-col {
    background: #fef9e7 !important;
}
.compare-table .plan-compare-yes {
    color: #16a34a !important;
    font-weight: 700;
    font-size: 1.1rem;
}
.compare-table .plan-compare-no {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 1.1rem;
}
.compare-table .plan-compare-optional {
    color: #b45309 !important;
    font-weight: 600;
    font-size: 0.8rem;
    background: #fef3c7;
    padding: 2px 10px;
    border-radius: 12px;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead {
    background: var(--grey-700);
    color: var(--white);
}

.table-bordered {
    border-color: #e5e7eb;
}

.table tbody tr:hover {
    background: var(--light-bg);
}

/* =====================================================
   PLANS & RESOURCES PAGES
   ===================================================== */

.plans-page,
.resources-page {
    padding: 40px 0;
}

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

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: var(--text-major);
    }

    .hero-right {
        height: 300px;
    }

    .overlay-tile {
        position: relative;
        margin: 10px;
    }

    .overlay-tile.matches {
        bottom: auto;
        left: auto;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 16px;
        padding-bottom: 16px;
        min-height: 0;
    }

    .overlay-tile.matches::after {
        display: none;
    }

    .overlay-tile.funded {
        top: auto;
        right: auto;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 16px;
        padding-bottom: 16px;
        min-height: 0;
    }

    .overlay-tile.funded::after {
        display: none;
    }

    .success-system-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .success-steps-grid {
        grid-template-columns: 1fr;
    }

    .success-system h2,
    .plans-section h2 {
        font-size: var(--text-major);
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: var(--text-title);
    }

    .grant-header {
        flex-direction: column;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-header .col-auto {
        width: 100%;
        margin-top: 15px;
    }

    .dashboard-header .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: var(--text-major);
    }

    .plan-card {
        padding: 20px;
    }

    .auth-card {
        padding: 25px;
    }

    .modal-body {
        padding: 15px;
    }
}

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

.footer-section,
footer.bg-dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    color: #94a3b8;
    padding: 60px 0 20px;
    font-family: var(--font-family);
}

.footer-section-tight {
    padding: 2.5rem 0 0.75rem !important;
}

.footer-section-tight .footer-divider {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    border-color: rgba(148, 163, 184, 0.15) !important;
}

.layout-footer {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: #0f172a !important;
}

.layout-footer p {
    color: #64748b !important;
    font-size: 0.85rem !important;
    margin: 0;
}

footer.bg-dark .container {
    color: #94a3b8;
}

.footer-section h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e2e8f0;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fbbf24;
}

/* =====================================================
   ALERTS (theme: yellow/grey)
   ===================================================== */
.alert-danger {
    background-color: rgba(55, 65, 81, 0.1);
    border-color: var(--grey-600);
    color: var(--grey-900);
}

.alert-warning {
    background-color: rgba(107, 114, 128, 0.15);
    border-color: var(--grey-500);
    color: var(--grey-900);
}

.alert-success {
    background-color: rgba(234, 179, 8, 0.15);
    border-color: var(--primary-color);
    color: var(--grey-900);
}

.alert-info {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue-border);
    color: var(--grey-900);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.btn-primary {
    background: var(--gradient-yellow);
    border: var(--border-yellow);
    color: var(--black) !important;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--gradient-yellow-hover);
    border-color: var(--primary-dark);
    color: var(--black) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--black);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.transition-all {
    transition: all 0.3s ease;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideInUp 0.5s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* =====================================================
   CONTACT PAGE – Professional
   ===================================================== */
.contact-pro-page { background: #f8fafc; min-height: 100vh; }

.contact-pro-header { text-align: center; margin-bottom: 32px; }
.contact-pro-title { font-size: 1.75rem !important; font-weight: 800 !important; color: #0f172a !important; margin-bottom: 6px; }
.contact-pro-sub { font-size: 0.92rem !important; color: #64748b !important; max-width: 520px; margin: 0 auto; }

.contact-pro-section {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 24px; margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.contact-pro-section-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.95rem; font-weight: 700; color: #0f172a;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9;
}
.contact-pro-section-head i { font-size: 1.1rem; color: #eab308; }

.contact-pro-label {
    display: block; font-size: 0.82rem !important; font-weight: 600 !important;
    color: #334155 !important; margin-bottom: 5px;
}
.contact-pro-input-wrap {
    position: relative; display: flex; align-items: center;
}
.contact-pro-input-icon {
    position: absolute; left: 14px; font-size: 0.95rem; color: #94a3b8;
    pointer-events: none;
}
.contact-pro-input {
    width: 100%; padding: 10px 14px 10px 40px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 0.88rem !important; color: #0f172a !important;
    background: #fff; transition: border-color .2s, box-shadow .2s;
}
.contact-pro-input:focus {
    outline: none; border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}
.contact-pro-select {
    width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 0.88rem !important; color: #0f172a !important;
    background: #fff; transition: border-color .2s, box-shadow .2s;
    appearance: auto;
}
.contact-pro-select:focus {
    outline: none; border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}
.contact-pro-textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 0.88rem !important; color: #0f172a !important;
    background: #fff; resize: vertical; min-height: 80px;
    transition: border-color .2s, box-shadow .2s;
}
.contact-pro-textarea:focus {
    outline: none; border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}

.contact-pro-field { margin-bottom: 14px; }
.contact-pro-hint { font-size: 0.75rem; color: #94a3b8; display: block; margin-top: 4px; }

.contact-pro-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-pro-pill { cursor: pointer; margin: 0; }
.contact-pro-pill input { display: none; }
.contact-pro-pill span {
    display: inline-block; padding: 7px 16px; border: 1px solid #e2e8f0;
    border-radius: 20px; font-size: 0.82rem; font-weight: 500;
    color: #334155; background: #fff; transition: all .2s;
}
.contact-pro-pill:hover span { border-color: #cbd5e1; }
.contact-pro-pill input:checked + span {
    background: #fef3c7; border-color: #eab308; color: #92400e; font-weight: 600;
}

.contact-pro-submit {
    padding: 12px 36px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
    color: #000; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.contact-pro-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234,179,8,0.35);
}


.contact-back-link {
    color: var(--primary-color);
}

.contact-alert-info {
    border-left: 4px solid var(--primary-color);
}

.contact-required {
    color: var(--grey-600);
}

/* =====================================================
   HOME PAGE (images, resource cards)
   ===================================================== */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
}

.steps-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.steps-img-wrapper .steps-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.steps-hover-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    min-width: 320px;
    min-height: 320px;
    max-width: min(480px, 95vw);
    max-height: min(480px, 95vw);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.steps-hover-overlay .steps-hover-wedge {
    pointer-events: all;
    fill: transparent;
    stroke: transparent;
    cursor: pointer;
    stroke-width: 6;
}
@media (min-width: 1200px) {
    .steps-hover-overlay { min-width: 380px; min-height: 380px; max-width: 480px; max-height: 480px; }
}
@media (max-width: 768px) {
    .steps-hover-overlay { min-width: 240px; min-height: 240px; max-width: min(300px, 90vw); max-height: min(300px, 90vw); }
    .steps-hover-overlay .steps-hover-wedge { stroke-width: 8; }
}
@media (max-width: 480px) {
    .steps-hover-overlay { min-width: 200px; min-height: 200px; max-width: min(260px, 88vw); max-height: min(260px, 88vw); }
    .steps-hover-overlay .steps-hover-wedge { stroke-width: 10; }
}
.steps-hover-overlay .steps-hover-wedge:hover {
    fill: transparent;
}
.steps-tooltip {
    position: fixed;
    z-index: 1100;
    padding: 4px 8px;
    font-size: var(--text-body);
    color: var(--grey-800);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
.steps-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   ABOUT PAGE – v5
   ===================================================== */
.about-page { background: #f8fafc; }

/* ---- Hero (matches services / home hero) ---- */
.about-hero {
    position: relative; padding: 0; overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%);
}
.about-hero::before,
.about-hero::after {
    content: ''; position: absolute; border-radius: 50%; opacity: 0.06;
    pointer-events: none;
}
.about-hero::before { width: 600px; height: 600px; top: -200px; right: -150px; background: #38bdf8; }
.about-hero::after  { width: 400px; height: 400px; bottom: -120px; left: -100px; background: #a78bfa; }

.about-hero-wrap { width: 100%; max-width: none; padding: 0; }
.about-hero-card {
    position: relative; z-index: 1;
    border-radius: 0; border: none; overflow: hidden;
    background: transparent; color: #fff;
    padding: 70px 2.5rem 60px; text-align: center;
}
.about-hero-card h1 {
    color: #fff !important; margin-bottom: 0.4rem;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem) !important;
    font-weight: 800 !important; letter-spacing: -0.02em;
}
.about-hero-card p {
    color: rgba(255,255,255,0.7) !important; margin-bottom: 0; font-weight: 400;
    font-size: 1.05rem !important;
}
.about-hero-badge {
    display: inline-flex; position: static; transform: none;
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    align-items: center; justify-content: center;
    color: #0f172a; margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(234,179,8,0.3);
}
.about-hero-badge .bi-cash-coin { font-size: 1.4rem; line-height: 1; }

/* ---- Intro – image & text vertically centered ---- */
.about-intro { padding: 3rem 0 2.5rem; }
.about-intro-row { align-items: center !important; }

.about-steps-image { width: min(520px, 100%); height: auto; }
.about-steps-map {
    width: min(520px, 100%); height: min(520px, 80vw);
    margin: 0 auto; display: flex; align-items: center; justify-content: center;
}
.about-steps-map .steps-hover-overlay {
    width: 124%; height: 124%; min-width: 380px; min-height: 380px;
    max-width: min(520px, 96vw); max-height: min(520px, 96vw);
}
.about-page .steps-tooltip { color: #fff; background: rgba(17,24,39,0.95); border-color: rgba(255,255,255,0.18); }

.about-intro-copy {
    display: flex; flex-direction: column; justify-content: center;
    padding-left: 1.5rem;
}
.about-intro-copy h1 {
    color: #0f172a !important; font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
    font-weight: 800 !important; margin-bottom: 1rem; letter-spacing: -0.02em;
}
.about-intro h2 { color: #0f172a !important; margin-bottom: 1rem; }
.about-intro p { font-size: 1.05rem !important; color: #475569 !important; margin-bottom: 0.9rem; line-height: 1.75; }

/* ---- Roadmap – clean professional cards ---- */
.about-roadmap { padding: 0 0 4rem; }

.about-step-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 14px; padding: 1.75rem 2rem; margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    transition: box-shadow .25s, transform .25s;
}
.about-step-card:hover {
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    transform: translateY(-2px);
}

.about-step-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 0.85rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.about-step-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #0f172a; background: #f1f5f9;
    flex-shrink: 0;
}

.about-step-head .about-step-number {
    font-weight: 800; font-size: 0.82rem; line-height: 1;
    flex-shrink: 0; color: #64748b !important;
    background: #f1f5f9; padding: 4px 10px; border-radius: 6px;
    letter-spacing: 0.04em; margin-left: auto;
}

.about-step-card:hover .about-step-number { background: #e2e8f0; }

.about-step-card h1 {
    font-size: clamp(1.15rem, 1.6vw, 1.3rem) !important;
    color: #0f172a !important; margin-bottom: 0.4rem; font-weight: 700 !important;
}

.about-step-card p {
    color: #64748b !important; margin-bottom: 0.4rem;
    font-size: 0.92rem !important; line-height: 1.7;
}

.about-step-callout {
    margin-top: 0.85rem; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 0.85rem 1rem; background: #f8fafc;
}
.about-step-callout h4 {
    margin-bottom: 0.2rem; color: #0f172a !important;
    font-size: 0.88rem !important; font-weight: 700 !important;
}
.about-step-callout p {
    color: #64748b !important; font-size: 0.84rem !important; line-height: 1.6;
    margin-bottom: 0;
}

.about-step-link {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 0.75rem; text-decoration: none; font-weight: 600;
    font-size: 0.88rem; color: #eab308;
    transition: all .2s;
}
.about-step-link:hover { color: #ca8a04; text-decoration: underline; gap: 8px; }

/* All variants – uniform neutral look */
.about-step-blue .about-step-icon,
.about-step-teal .about-step-icon,
.about-step-amber .about-step-icon,
.about-step-green .about-step-icon,
.about-step-violet .about-step-icon,
.about-step-pink .about-step-icon,
.about-step-cyan .about-step-icon { background: #f1f5f9; color: #0f172a; }

.about-step-blue .about-step-link,
.about-step-teal .about-step-link,
.about-step-amber .about-step-link,
.about-step-green .about-step-link,
.about-step-violet .about-step-link,
.about-step-pink .about-step-link,
.about-step-cyan .about-step-link { color: #eab308; }

.about-step-blue .about-step-callout,
.about-step-teal .about-step-callout,
.about-step-amber .about-step-callout,
.about-step-green .about-step-callout,
.about-step-violet .about-step-callout,
.about-step-pink .about-step-callout,
.about-step-cyan .about-step-callout { border-color: #e2e8f0; background: #f8fafc; }

.about-step-card .about-step-callout h4 { color: #0f172a !important; }
.about-step-card .about-step-callout p { color: #64748b !important; }

/* Remove any colored left borders from variants */
.about-step-blue, .about-step-teal, .about-step-amber,
.about-step-green, .about-step-violet, .about-step-pink,
.about-step-cyan { border-left: 1px solid #e2e8f0; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .about-hero-card { padding: 50px 1.5rem 40px; }
    .about-steps-map { width: min(420px,100%); height: min(420px,80vw); }
    .about-intro-copy { padding-left: 0; }
    .about-steps-map .steps-hover-overlay { min-width: 320px; min-height: 320px; max-width: min(440px,94vw); max-height: min(440px,94vw); }
    .about-intro p { font-size: 1rem !important; }
    .about-step-card { padding: 1.5rem; }
    .about-step-card p { font-size: 0.88rem !important; }
}

@media (max-width: 575.98px) {
    .about-hero-card { padding: 40px 1rem 30px; }
    .about-hero-badge { width: 44px; height: 44px; border-radius: 12px; }
    .about-hero-badge .bi-cash-coin { font-size: 1.2rem; }
    .about-steps-map { width: min(340px,100%); height: min(340px,85vw); }
    .about-intro-copy { padding-left: 0; }
    .about-steps-map .steps-hover-overlay { min-width: 250px; min-height: 250px; max-width: min(340px,92vw); max-height: min(340px,92vw); }
    .about-step-card { padding: 1.25rem 1rem; }
    .about-step-card h1 { font-size: 1.1rem !important; }
    .about-step-card p { font-size: 0.85rem !important; }
}
.steps-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.resource-card-wrap {
    position: relative;
}

.resource-card .card-text-muted,
.resource-card-muted {
    font-size: var(--text-body);
}

/* =====================================================
   RESOURCES VIEW (video)
   ===================================================== */
.resource-video {
    max-height: 400px;
}

/* List sections: same typography site-wide (title = --text-title, details = --text-body) */
.timeline-grant-meta {
    font-size: var(--text-body);
}
/* List item title: same style for Saved Grants and List Building (no fw-bold) */
.list-item-title {
    font-size: var(--text-title);
    font-weight: 500;
    line-height: 1.3;
    color: var(--grey-900);
}
.lb-accordion-item .timeline-grant-meta {
    font-size: var(--text-body);
}
.lb-accordion-item .lb-accordion-body,
.lb-accordion-item .lb-grant-detail {
    font-size: var(--text-body);
}
.lb-accordion-item .lb-grant-detail dt,
.lb-accordion-item .lb-grant-detail dd {
    font-size: var(--text-body);
}
/* FAQ left topic nav */
/* Premium FAQ Search */
.faq-search-box {
    max-width: 600px;
    margin: -24px auto 40px;
    position: relative;
}
.faq-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}
.faq-search-premium {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-size: 0.95rem;
    color: #1e293b;
    outline: none;
    transition: box-shadow 0.3s ease;
}
.faq-search-premium::placeholder {
    color: #94a3b8;
}
.faq-search-premium:focus {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 0 3px rgba(234, 179, 8, 0.15);
}

/* Premium FAQ Tabs (horizontal) */
.faq-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    justify-content: center;
}
.faq-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    cursor: pointer;
}
.faq-tab:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}
.faq-tab.active {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    color: #1e293b;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.3);
}

/* Premium FAQ Accordion Items */
.faq-accordion-premium {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.faq-item-header {
    margin: 0;
}
.faq-item-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}
.faq-item-btn:focus {
    outline: none;
}
.faq-item-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s ease;
}
.faq-item-btn:not(.collapsed) .faq-item-num {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    color: #1e293b;
}
.faq-item-question {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}
.faq-item-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    transition: all 0.3s ease;
}
.faq-item-icon i {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.3s ease;
}
.faq-item-btn:not(.collapsed) .faq-item-icon {
    background: #0f172a;
}
.faq-item-btn:not(.collapsed) .faq-item-icon i {
    color: #fff;
    transform: rotate(45deg);
}
.faq-item-body {
    padding: 0 22px 22px 68px;
}
.faq-item-body p,
.faq-item-body li {
    font-size: 0.88rem !important;
    color: #475569 !important;
    line-height: 1.7;
}

/* Legacy classes kept for compatibility */
.faq-topic-nav {
    border-right: none;
    padding-right: 0;
}
.faq-topic-nav .nav-link {
    font-weight: 500;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}
.faq-accordion .accordion-button {
    font-size: var(--text-title);
    font-weight: 600;
    line-height: 1.3;
}
.faq-accordion .accordion-body,
.faq-accordion .faq-content {
    font-size: var(--text-body);
}
.faq-accordion .faq-content p {
    font-size: var(--text-body);
}

/* =====================================================
   FAQ (converted DOCX content)
   ===================================================== */
.faq-content {
    max-width: 48rem;
    line-height: 1.6;
}

.faq-content h1 { font-size: var(--text-title); margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.faq-content h2 { font-size: var(--text-title); margin-top: 1.25rem; margin-bottom: 0.5rem; font-weight: 600; }
.faq-content h3 { font-size: var(--text-title); margin-top: 1rem; margin-bottom: 0.5rem; font-weight: 600; }
.faq-content p { font-size: var(--text-body); margin-bottom: 0.75rem; }
.faq-content ul, .faq-content ol { margin-bottom: 0.75rem; padding-left: 1.5rem; }
.faq-content li { font-size: var(--text-body); margin-bottom: 0.25rem; }
.faq-content strong { font-weight: 600; }
.faq-content table { border-collapse: collapse; margin-bottom: 1rem; width: 100%; }
.faq-content th, .faq-content td { border: 1px solid var(--border-color, #dee2e6); padding: 0.5rem 0.75rem; text-align: left; }
.faq-content th { font-weight: 600; background: var(--light-bg, #f8f9fa); }

/* =====================================================
   LIST BUILDING (dashboard)
   ===================================================== */
.lb-sort-select { max-width: 16rem; }
.lb-grant-count { font-weight: 500; padding: 0.35rem 0.65rem; }

.lb-filter-panel {
    position: relative;
    z-index: 10;
}
.lb-filter-panel .form-label { margin-bottom: 0.25rem; }

/* List Building filter panel - improved styling */
.lb-filter-panel-styled {
    background: var(--white);
    border-radius: var(--radius-box);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--grey-200);
    overflow: hidden;
}
.lb-filter-panel-styled .lb-filter-panel-header {
    background: linear-gradient(135deg, var(--grey-50) 0%, var(--grey-100) 100%);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--grey-200);
}
.lb-filter-panel-styled .lb-filter-panel-title {
    font-size: var(--text-title);
    font-weight: 600;
    color: var(--grey-800);
}
.lb-filter-panel-styled .lb-filter-panel-body {
    padding: 1rem 1.25rem;
}
.lb-filter-panel-styled .lb-filter-panel-footer {
    padding: 0.75rem 1.25rem;
    background: var(--grey-50);
    border-top: 1px solid var(--grey-200);
}
/* List Building: prominent dark border on all filter dropdowns (Status select + multi-select triggers) */
.lb-filter-panel-styled .lb-multi-dropdown .lb-multi-dropdown-trigger {
    min-height: 2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--white);
    border: 1px solid var(--grey-600);
}
.lb-filter-panel-styled .lb-multi-dropdown .lb-multi-dropdown-trigger:hover {
    border-color: var(--primary-color);
    background: var(--white);
}
.lb-filter-panel-styled .lb-multi-dropdown .dropdown-menu {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border: 1px solid var(--grey-500);
}
.lb-filter-panel-styled .lb-multi-dropdown-menu label {
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}
.lb-filter-panel-styled .lb-multi-dropdown-menu label:hover {
    background: var(--grey-100);
}
.lb-filter-panel-styled .form-select {
    border-radius: 4px;
    border: 1px solid var(--grey-600);
}
.lb-filter-panel-styled .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(234, 179, 8, 0.25);
}

/* Admin approve add grant - checkbox multi-select (same style as List Building) */
.admin-grant-multi-field {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
}
.admin-grant-multi-dropdown .admin-grant-multi-trigger,
.admin-grant-multi-dropdown .lb-multi-dropdown-trigger {
    min-height: 2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--white);
    border: 1px solid var(--grey-600);
}
.admin-grant-multi-dropdown .admin-grant-multi-trigger:hover,
.admin-grant-multi-dropdown .lb-multi-dropdown-trigger:hover {
    border-color: var(--primary-color);
    background: var(--white);
}
.admin-grant-multi-dropdown .dropdown-menu {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border: 1px solid var(--grey-500);
}
.admin-grant-multi-dropdown-menu label {
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}
.admin-grant-multi-dropdown-menu label:hover {
    background: var(--grey-100);
}
.admin-grant-multi-field .admin-grant-add-new {
    border-radius: 4px;
    border-color: var(--grey-300);
}
.admin-grant-multi-field .admin-grant-add-btn {
    border-radius: 4px;
    font-size: 0.875rem;
}
#admin-request-approve-modal .form-label.fw-semibold { color: var(--grey-700); }
#admin-request-approve-modal .row.g-3 > [class*="col-"] { margin-bottom: 0.25rem; }

/* Admin Users, Businesses, Partners – card styling with soft gradient */
#admin-users-list .admin-card,
#admin-businesses-list .admin-card,
#admin-partners-list .admin-card,
#admin-applied-list .admin-card {
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: linear-gradient(165deg, #fefefe 0%, #fafbfc 50%, #f4f5f7 100%);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
#admin-users-list .admin-card:hover,
#admin-businesses-list .admin-card:hover,
#admin-partners-list .admin-card:hover,
#admin-applied-list .admin-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--grey-300);
}
#admin-users-list .admin-card .card-body,
#admin-businesses-list .admin-card .card-body,
#admin-partners-list .admin-card .card-body,
#admin-applied-list .admin-card .card-body {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    display: flex;
    flex-direction: column;
}
.admin-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.admin-card-meta {
    font-size: 0.875rem;
    color: var(--grey-600);
    margin-bottom: 0.35rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
}
.admin-card-meta i {
    opacity: 0.85;
    color: var(--grey-500);
    margin-right: 0.35rem;
}
.admin-card-badges {
    font-size: 0.8125rem;
    line-height: 1.4;
}
.admin-card-badges .badge {
    font-weight: 500;
}
.admin-card-actions {
    margin-top: auto;
}
.admin-partner-card .admin-card-actions {
    padding-top: 0.25rem;
}
.admin-applied-card .admin-card-badges {
    align-items: center;
}
.admin-applied-card .admin-card-meta {
    margin-bottom: 0.3rem;
}
.admin-user-card .admin-card-meta,
#admin-businesses-list .admin-card .admin-card-meta {
    margin-bottom: 0.3rem;
}
.admin-badge-role {
    background: rgba(0, 0, 0, 0.06) !important;
    color: var(--grey-700) !important;
}
/* Users tab – white text on badges (Admin, Active, Inactive, role) */
#admin-users-list .admin-card-title { color: var(--grey-700); }
#admin-users-list .admin-card-title .badge { color: #fff !important; }
#admin-users-list .admin-card-meta { color: var(--grey-500); }
#admin-users-list .admin-card-badges .badge {
    color: #fff !important;
}
#admin-users-list .admin-badge-role {
    background: var(--grey-700) !important;
    color: #fff !important;
}

/* Applied grants tab – white text on status badge */
#admin-applied-list .admin-card-badges .badge {
    color: #fff !important;
}

/* Partners tab – white text on Active/Inactive badges */
#admin-partners-list .admin-card-badges .badge {
    color: #fff !important;
}

#lb-active-filters .badge button { padding: 0 0.25rem; }
#lb-active-filters .badge .btn-close-sm { margin-left: 0.15rem; }
#lb-active-filters.lb-filters-readonly .btn-close-sm {
    pointer-events: none;
    opacity: 0.5;
}

.lb-grant-list.accordion { border: none; }
.lb-accordion-item {
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.lb-accordion-item:last-child { margin-bottom: 0; }
.lb-accordion-item.account-list-item { padding: 0; }
.lb-accordion-item.account-list-item > .d-flex:first-child { padding: 0.75rem 1rem; }
.lb-accordion-item .accordion-header { border: none; }
.lb-accordion-item .accordion-button {
    font-size: var(--text-body);
    padding: 0.75rem 1rem;
    background: var(--white) !important;
    border: none !important;
}
.lb-accordion-item .accordion-button:not(.collapsed) { box-shadow: none !important; }
.lb-accordion-item .accordion-button::after { display: none; }
.lb-grant-name { font-size: var(--text-body); font-weight: 500; color: var(--grey-900); }
.lb-accordion-body { border-top: 1px solid var(--grey-200); background: var(--grey-100); }
.lb-grant-detail { padding: 0 1rem 1rem; }
.lb-grant-detail dl { margin-bottom: 0; }
.lb-grant-detail dt { font-weight: 600; color: var(--grey-600); }
.lb-grant-detail dd { margin-bottom: 0.5rem; }
.lb-accordion-chevron i,
.lb-accordion-item .accordion-collapse-chevron i {
    transition: transform 0.2s ease;
    font-size: var(--text-body);
    color: var(--grey-500);
}
.lb-accordion-item:has(.accordion-collapse.show) .accordion-collapse-chevron i,
.lb-accordion-item:has(.accordion-collapse.show) .lb-accordion-chevron i { transform: rotate(180deg); }
.lb-star-btn { font-size: var(--text-body); line-height: 1; }
.lb-star-btn:hover { opacity: 0.85; }
.lb-star-btn .bi-star-fill { color: var(--primary-color); }

.lb-page-num { min-width: 2rem; }
#lb-list-building [title] { cursor: pointer; }

/* Contacts tab: typography and sizing (match site vars) */
#store-contacts h4 {
    font-size: var(--text-title);
    font-weight: 700;
}

/* Contacts left sidebar: uniform size for button, input, and category rows */
#store-contacts .contacts-sidebar .account-section-inner {
    --contacts-row-height: 2.5rem;
    --contacts-row-padding: 0.5rem 0.75rem;
}
#store-contacts .contacts-sidebar .account-section-inner .form-control {
    font-size: var(--text-body);
    padding: var(--contacts-row-padding);
    min-height: var(--contacts-row-height);
}
#store-contacts .contacts-sidebar .account-section-inner .form-control::placeholder {
    font-size: var(--text-body);
}
#store-contacts .contacts-sidebar #contacts-add-btn {
    font-size: var(--text-body);
    min-height: var(--contacts-row-height);
    padding: var(--contacts-row-padding);
}
#store-contacts .title-banner.home-section-title-banner .home-section-title {
    font-size: var(--text-title);
}
#store-contacts .account-list-item.contacts-category-item .contacts-category-name,
#store-contacts .account-list-item.contacts-category-item .contacts-category-count {
    font-size: var(--text-body);
}
#store-contacts #contacts-empty {
    font-size: var(--text-body);
}

/* Contacts tab: category list (extends .account-list-item) - same row height as button/input */
.account-list-item.contacts-category-item {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-body);
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-box, 6px);
}
#store-contacts .contacts-sidebar .account-list-item.contacts-category-item {
    min-height: var(--contacts-row-height);
    padding: var(--contacts-row-padding);
}
.account-list-item.contacts-category-item:hover {
    background: var(--grey-100);
}
.account-list-item.contacts-category-item.active {
    background: var(--gradient-yellow);
    border: var(--border-yellow);
    color: var(--black);
    font-weight: 600;
}
.contacts-category-name {
    flex-grow: 1;
    font-weight: 500;
}
.contacts-category-count {
    flex-shrink: 0;
    margin-left: 0.5rem;
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--grey-700);
}
/* Contacts table inside account-section-inner */
#store-contacts .account-section-inner .table thead {
    background: var(--grey-700);
    color: var(--white);
    font-size: var(--text-body);
    font-weight: 600;
}
#store-contacts .account-section-inner .table tbody tr:hover {
    background: var(--light-bg);
}
#store-contacts .account-section-inner .table td,
#store-contacts .account-section-inner .table th {
    padding: var(--padding-box);
    vertical-align: middle;
    font-size: var(--text-body);
}
#store-contacts .contact-edit,
#store-contacts .contact-delete {
    color: var(--grey-600);
    font-size: var(--text-body);
}
#store-contacts .contact-edit:hover {
    color: var(--primary-color);
}
#store-contacts .contact-delete:hover {
    color: var(--danger-color, #dc3545);
}

/* Contact Add/Edit modal: match site typography and form sizing */
#contactModal .modal-title {
    font-size: var(--text-title);
    font-weight: 600;
}
#contactModal .form-label.small {
    font-size: var(--text-body);
}
#contactModal .form-control,
#contactModal .form-select {
    font-size: var(--text-body);
    padding: 0.5rem 0.75rem;
}
#contactModal .modal-footer .btn {
    font-size: var(--text-body);
}

/* Application tab: KPI cards and status tabs + accordions */
.plan-stat-card .plan-stat-amount {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--grey-700);
    margin-top: 0.25rem;
}

/* Application KPI cards: compact, use site typography (--text-title, --text-body) */
#application .application-kpi-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: linear-gradient(145deg, var(--white) 0%, var(--grey-100) 100%);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 0.4rem 0.6rem 0.4rem 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}
#application .application-kpi-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
}
#application .application-kpi-card .app-kpi-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
}
#application .application-kpi-card .app-kpi-left .plan-stat-value {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
    letter-spacing: -0.02em;
    line-height: 1;
}
#application .application-kpi-card .app-kpi-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
}
#application .application-kpi-card .app-kpi-right-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
#application .application-kpi-card .app-kpi-right .plan-stat-icon {
    font-size: var(--text-body);
    margin: 0;
    flex-shrink: 0;
}
#application .application-kpi-card .app-kpi-right .plan-stat-label {
    font-size: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--grey-800);
    margin: 0;
}
#application .application-kpi-card .app-kpi-right .plan-stat-amount-label {
    font-size: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--grey-600);
}
#application .application-kpi-card .app-kpi-right .plan-stat-amount-value {
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}
#application .application-kpi-card .plan-stat-icon i { color: var(--grey-600); }
#application .application-kpi-in-progress .plan-stat-icon i { color: var(--primary-dark); }
#application .application-kpi-awaiting .plan-stat-icon i { color: var(--grey-600); }
#application .application-kpi-approved .plan-stat-icon i { color: #059669; }
#application .application-kpi-rejected .plan-stat-icon i { color: var(--grey-500); }

#application .nav-tabs-application {
    border-bottom: 1px solid var(--grey-200);
    padding: 0 1rem;
    background: var(--grey-100);
}
#application .nav-tabs-application .nav-link {
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: var(--radius-box) var(--radius-box) 0 0;
    padding: 0.6rem 1rem;
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--grey-600);
}
#application .nav-tabs-application .nav-link:hover {
    color: var(--grey-900);
    background: var(--white);
}
#application .nav-tabs-application .nav-link.active {
    background: var(--white);
    color: var(--grey-900);
    border-color: var(--grey-200);
    border-bottom-color: var(--white);
    margin-bottom: -1px;
}
#application .app-tab-count {
    font-weight: 400;
    color: var(--grey-500);
}
#application .app-tab-count-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    margin-left: 0.35rem;
    font-size: var(--text-body);
    font-weight: 700;
    line-height: 1;
    color: var(--grey-900);
    background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #ca8a04 100%);
    border-radius: 999px;
    vertical-align: middle;
}
#application .nav-tabs-application .nav-link.active .app-tab-count-bubble {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 50%, #eab308 100%);
    color: var(--grey-900);
}
#application .tab-content.account-section-inner {
    border-radius: 0 0 var(--radius-box) var(--radius-box);
}

#application .application-accordion,
#application .application-list {
    border: none;
}
#application .app-accordion-item,
#application .app-list-item {
    display: flex;
    align-items: center;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
#application .app-accordion-item:last-child,
#application .app-list-item:last-child {
    margin-bottom: 0;
}
#application .app-list-item-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}
#application .app-accordion-item .accordion-header {
    border: none;
    display: flex;
    align-items: stretch;
    margin: 0;
}
#application .app-accordion-item .accordion-button {
    font-size: var(--text-body);
    padding: 0.75rem 1rem;
    background: var(--white) !important;
    border: none !important;
    box-shadow: none !important;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
}
#application .app-accordion-item .accordion-button:not(.collapsed) {
    background: var(--grey-100) !important;
}
#application .app-accordion-item .accordion-button::after { display: none; }
#application .app-list-item-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    width: 10rem;
    margin-right: 1.25rem;
    align-self: center;
    font-family: var(--font-family);
    font-size: var(--text-body);
}
#application .app-list-item-progress-wrap .app-list-item-progress {
    flex: 1;
    min-width: 0;
}
#application .app-list-item-progress-pct {
    flex-shrink: 0;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--grey-800);
    min-width: 2.25rem;
    text-align: left;
}
#application .app-list-item-progress {
    height: 22px;
    background: var(--grey-200);
    border-radius: 999px;
    overflow: hidden;
}
#application .app-list-item-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fef9c3 0%, #fef08a 35%, #eab308 70%, #ca8a04 100%);
    border-radius: 999px;
    transition: width 0.25s ease;
}
#application .app-list-item-view {
    flex-shrink: 0;
}
#application .app-accordion-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}
#application .app-accordion-title-line {
    font-weight: 600;
    font-size: var(--text-body);
    color: var(--grey-900);
    line-height: 1.3;
}
#application .app-accordion-details-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1.25rem;
    font-size: var(--text-body);
}
#application .app-accordion-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
#application .app-accordion-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    font-size: var(--text-body);
    color: var(--grey-500);
    flex-shrink: 0;
}
#application .app-accordion-detail-icon i {
    vertical-align: middle;
}
#application .app-accordion-detail-label {
    color: var(--grey-500);
    font-weight: 500;
    letter-spacing: 0.03em;
    font-size: var(--text-body);
}
#application .app-accordion-detail-value {
    color: var(--grey-800);
    font-weight: 600;
    font-size: var(--text-body);
}
#application .app-accordion-title {
    font-weight: 600;
    color: var(--grey-900);
    min-width: 0;
}
#application .app-accordion-meta {
    flex-shrink: 0;
}
#application .app-accordion-amount {
    color: var(--grey-800);
}
#application .app-accordion-body {
    border-top: 1px solid var(--grey-200);
    background: var(--grey-100);
    padding: 0.75rem 1rem;
}
#application .app-accordion-detail {
    font-size: var(--text-body);
}
/* =====================================================
   GRANT ROADMAP - MAIN STYLESHEET
   ===================================================== */

/* Theme: yellow, white, black, grey, light blue for distinction */
:root {
    /* Typography: one font and one size per level site-wide */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --text-major: 2rem;      /* 1. Main title (h1, page headlines) */
    --text-subtitle: 1.5rem; /* 2. Subtitle (h2, section titles) */
    --text-title: 1.25rem;   /* 3. Title (h3–h5, card titles, subsection headings) */
    --text-body: 1rem;       /* 4. Body (p, span, li, all content) */
    --primary-color: #eab308;
    --primary-dark: #ca8a04;
    --primary-light: #fef08a;
    --success-color: #eab308;
    --accent-blue: #dbeafe;
    --accent-blue-border: #93c5fd;
    --danger-color: #374151;
    --warning-color: #6b7280;
    --info-color: #6b7280;
    --light-bg: #f8f9fa;
    --grey-50: #f9fafb;
    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-500: #6b7280;
    --grey-600: #4b5563;
    --grey-700: #374151;
    --grey-800: #2d3748;
    --grey-900: #1f2937;
    --black: #111827;
    --white: #ffffff;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    /* Reusable yellow gradient and border (buttons, badges, active states) */
    --gradient-yellow: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #eab308 100%);
    --gradient-yellow-hover: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #ca8a04 100%);
    --border-yellow: 1px solid rgba(202, 138, 4, 0.4);
    /* Reusable gray gradient (secondary buttons) */
    --gradient-gray: linear-gradient(135deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%);
    --gradient-gray-hover: linear-gradient(135deg, #6b7280 0%, #4b5563 50%, #374151 100%);
    /* Reusable red gradient (withdraw, destructive actions) */
    --gradient-red: linear-gradient(135deg, #fca5a5 0%, #ef4444 50%, #dc2626 100%);
    --gradient-red-hover: linear-gradient(135deg, #f87171 0%, #dc2626 50%, #b91c1c 100%);
    --border-red: 1px solid rgba(185, 28, 28, 0.4);
    /* Reusable spacing for fields, list items, table cells */
    --padding-box: 0.75rem 1rem;
    --radius-box: 6px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-family: var(--font-family);
}

/* Global Styles – single font stack site-wide */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-body);
    background: linear-gradient(180deg, var(--white) 0%, var(--grey-100) 35%, var(--accent-blue) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--grey-900);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-main {
    flex: 1 0 auto;
}

/* =====================================================
   CONTENT SEPARATION - site-wide (title vs text, sections, list items)
   ===================================================== */

/* Typography: 4 sizes only — main (h1), subtitle (h2), title (h3–h5), body (p/span/li) */
.layout-main h1 { font-size: var(--text-major); margin-bottom: 1rem; color: var(--black); }
.layout-main h2 { font-size: var(--text-subtitle); margin-bottom: 0.9rem; color: var(--grey-900); }
.layout-main h3, .layout-main h4, .layout-main h5 { font-size: var(--text-title); margin-bottom: 0.65rem; color: var(--grey-800); }
.layout-main h3 { margin-bottom: 0.75rem; }
.layout-main h4 { margin-bottom: 0.65rem; }
.layout-main h5 { margin-bottom: 0.55rem; }
.layout-main p, .layout-main span, .layout-main li { font-size: var(--text-body); color: var(--grey-800); }

.layout-main .home-page.hp-premium h1,
.layout-main .home-page.hp-premium h2,
.layout-main .home-page.hp-premium h3,
.layout-main .home-page.hp-premium h4,
.layout-main .home-page.hp-premium h5,
.layout-main .home-page.hp-premium p,
.layout-main .home-page.hp-premium span,
.layout-main .home-page.hp-premium li {
    font-size: unset;
    color: unset;
    margin-bottom: unset;
}

.layout-main h1 + p,
.layout-main h2 + p,
.layout-main h3 + p,
.layout-main h4 + p,
.layout-main h5 + p {
    margin-top: 0.35rem;
}

/* Section divider line - add class .section-with-line to any section */
.section-with-line {
    border-bottom: 1px solid var(--grey-200);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.section-with-line:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Form fields: darker, bolder text site-wide for readability */
.form-control,
.form-select,
textarea.form-control {
    color: var(--grey-900);
    font-weight: 500;
}
.form-control::placeholder {
    color: var(--grey-600);
    font-weight: 400;
}
.form-select option {
    color: var(--grey-900);
    font-weight: 500;
}

/* Title banner - highlights section/tile titles with distinct background and text color */
.title-banner {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 0.75rem;
}

.title-banner .home-section-title,
.title-banner h2,
.title-banner h3,
.title-banner h4,
.title-banner h5 {
    color: var(--grey-900);
    font-weight: 700;
}

.title-banner-count {
    color: var(--grey-700);
    font-weight: 500;
}

/* Section title banner (home page - Plans, Resources) */
.section-title-banner {
    padding: 0.85rem 1.25rem;
}

.section-title-banner h2 {
    color: var(--grey-900);
}

/* Resources section title banner - grey to match Choose Your Plan */
.section-title-banner-resources {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
}

.section-title-banner-resources h2 {
    color: var(--grey-900);
}

/* Dashboard home section tile title banner - blue strip like landing page */
.home-section-title-banner {
    padding: 0.6rem 1rem;
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue-border);
    border-radius: 6px;
}

.home-section-title-banner .home-section-title {
    font-size: var(--text-title);
    color: var(--grey-900);
}

.list-group-separated .list-group-item {
    border: 1px solid var(--grey-200) !important;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    padding: 1.25rem 1.5rem !important;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.list-group-separated .list-group-item:last-child {
    margin-bottom: 0;
}

.layout-footer {
    flex-shrink: 0;
}

/* =====================================================
   NAVIGATION (theme: gray bg, black text)
   ===================================================== */
.navbar {
    box-shadow: none;
}

.navbar-theme {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-theme.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.navbar-brand-theme {
    color: var(--black) !important;
    font-size: var(--text-title);
    letter-spacing: -0.5px;
    font-weight: 700;
}

.navbar-brand-theme:hover {
    color: var(--primary-color) !important;
}

.navbar-logo {
    height: 62px;
    width: auto;
    margin-left: 1rem;
    transition: transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.03);
}

.nav-link-theme {
    color: #1e293b !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.01em;
}

.nav-link-theme:hover {
    color: var(--primary-dark) !important;
    background: rgba(234, 179, 8, 0.08);
}

.navbar-text-theme {
    color: var(--black) !important;
}

.btn-nav-outline {
    color: var(--black) !important;
    border-color: var(--black) !important;
}

.btn-nav-cta,
.btn-gradient-yellow {
    background: var(--gradient-yellow);
    color: var(--black) !important;
    border: var(--border-yellow);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.btn-nav-cta:hover,
.btn-nav-cta:focus,
.btn-nav-cta.show,
.btn-gradient-yellow:hover,
.btn-gradient-yellow:focus,
.btn-gradient-yellow:active {
    background: var(--gradient-yellow-hover);
    color: var(--black) !important;
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

/* Gray gradient button: same size/style as yellow, for Cancel and secondary actions */
.btn-gradient-gray {
    background: var(--gradient-gray);
    color: var(--white) !important;
    border: 1px solid rgba(75, 85, 99, 0.5);
    font-weight: 600;
}
.btn-gradient-gray:hover,
.btn-gradient-gray:focus,
.btn-gradient-gray:active {
    background: var(--gradient-gray-hover);
    color: var(--white) !important;
    border-color: var(--grey-700);
}

/* Red gradient button: withdraw and destructive actions (dark background -> white text) */
.btn-gradient-red {
    background: var(--gradient-red);
    color: var(--white) !important;
    border: var(--border-red);
    font-weight: 600;
}
.btn-gradient-red:hover,
.btn-gradient-red:focus,
.btn-gradient-red:active {
    background: var(--gradient-red-hover);
    color: var(--white) !important;
    border-color: #b91c1c;
}

/* Dark background buttons: ensure white text for contrast */
.btn-secondary {
    color: var(--white) !important;
}

.navbar .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.3);
}

/* Pull nav links + actions a bit in from the right edge */
.navbar-collapse-right {
    margin-right: 1.5rem;
}

/* Space between last nav link (e.g. Dashboard) and Profile button; accounts for button border */
.navbar-actions {
    margin-left: 1.25rem;
}

/* Navbar toggler: default dark icon on gray background (no filter needed) */

.profile-dropdown {
    min-width: 280px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--grey-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
}

.profile-dropdown-header {
    padding: 0.7rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey-400);
    background: var(--grey-50);
    border-bottom: 1px solid var(--grey-100);
}

.profile-dropdown-info {
    padding: 0.85rem 1.1rem;
    background: #fff;
}

.profile-dropdown-dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.profile-dropdown-row {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 0.5rem;
    align-items: start;
}

.profile-dropdown-row dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--grey-400);
}

.profile-dropdown-row dd {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-800);
    word-break: break-word;
}

.profile-dropdown-actions {
    padding: 0.35rem 0;
    background: #fff;
}

.profile-dropdown .dropdown-item {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-600);
    transition: background 0.15s, color 0.15s;
}

.profile-dropdown .dropdown-item:hover {
    background-color: var(--grey-50);
    color: var(--grey-900);
}

.profile-dropdown .dropdown-item.text-danger {
    color: #dc2626 !important;
}
.profile-dropdown .dropdown-item.text-danger:hover {
    background-color: #fef2f2 !important;
}

/* Account tab dropdown: hover highlight */
.account-dropdown-item:hover {
    background-color: var(--accent-blue);
    color: var(--grey-900);
}

.account-dropdown-item:focus {
    background-color: var(--accent-blue);
    color: var(--grey-900);
}

/* =====================================================
   SERVICES PAGE
   ===================================================== */

/* Hero Section */
.services-page {
    overflow-x: hidden;
}

/* Home page wrapper: consistent typography and font */
.home-page {
    font-family: var(--font-family);
    font-size: var(--text-body);
}
.home-page h1, .home-page h2, .home-page h3, .home-page h4 {
    font-family: var(--font-family);
}

.hero-section {
    background: transparent;
    color: #1f2937;
    padding: 80px 0;
    border-bottom: 1px solid #e5e7eb;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    text-align: left;
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: var(--text-major);
}

.hero-section .main-text {
    display: inline;
    font-size: var(--text-major);
}

.hero-section .dynamic-text {
    display: inline;
    color: var(--primary-color);
    font-weight: 800;
    min-width: 150px;
    font-size: var(--text-major);
}

.dynamic-text .text-item {
    display: none;
    opacity: 0;
    font-size: var(--text-major);
    color: var(--primary-color);
}

.dynamic-text .text-item.active {
    display: inline;
    animation: smoothFade 1.3s ease-in-out forwards;
    font-size: var(--text-major);
    color: var(--primary-color);
}

@keyframes smoothFade {
    0% { opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

.hero-section .lead {
    font-size: var(--text-body);
    margin-bottom: 30px;
    max-width: 100%;
    color: #6b7280;
}

.customers-badge {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-blue);
    border: 2px solid var(--accent-blue-border);
    border-radius: 50px;
    color: var(--grey-900);
    font-size: var(--text-body);
    font-weight: 600;
    margin-top: 20px;
}

.customers-badge strong {
    color: var(--grey-900);
    font-size: var(--text-body);
}

.hero-right {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--grey-200) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: var(--text-body);
    position: relative;
    overflow: hidden;
}

.overlay-tile {
    position: absolute;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    text-align: center;
}

/* 70+ Matches: oval bubble, bent tail from top-right to bottom-left (tail on right, into bubble) */
.overlay-tile.matches {
    bottom: 20px;
    left: -40px;
    width: 140px;
    min-height: 72px;
    padding-left: 40px;
    padding-right: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
    background: linear-gradient(135deg, #fefce8 0%, #fef08a 50%, #facc15 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--black);
}

/* Bent tail: top-right to bottom-left - rotated oval */
.overlay-tile.matches::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    width: 28px;
    height: 44px;
    transform: translateY(-50%) rotate(45deg);
    background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
    border-radius: 50%;
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-left-color: transparent;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

.overlay-tile.matches .number {
    font-size: var(--text-title);
    color: var(--black);
}

.overlay-tile.matches .label {
    font-size: var(--text-body);
    color: var(--black);
    margin-top: 5px;
}

/* $40K Funded: oval bubble, bent tail from bottom-left to top-right (tail on left, into bubble) */
.overlay-tile.funded {
    top: 20px;
    right: -40px;
    width: 140px;
    min-height: 72px;
    padding-left: 20px;
    padding-right: 40px;
    padding-top: 16px;
    padding-bottom: 16px;
    background: var(--gradient-yellow);
    border: var(--border-yellow);
    color: var(--black);
}

/* Bent tail: bottom-left to top-right - rotated oval */
.overlay-tile.funded::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -14px;
    width: 28px;
    height: 44px;
    transform: translateY(-50%) rotate(-45deg);
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    border-radius: 50%;
    border: var(--border-yellow);
    border-right-color: transparent;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
}

.overlay-tile.funded .amount {
    font-size: var(--text-title);
    color: var(--black);
}

.overlay-tile.funded .label {
    font-size: var(--text-body);
    color: var(--black);
    margin-top: 5px;
}

/* Success System Section */
.success-system {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid var(--grey-200);
}

.success-system h2 {
    font-size: var(--text-major);
    margin-bottom: 15px;
    color: #1f2937;
}

.success-system > .container > p {
    color: #6b7280;
}

.success-system-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.success-text {
    padding: 20px 0;
}

.success-text h2 {
    font-size: var(--text-major);
    font-weight: 800;
    margin-bottom: 20px;
    color: #1f2937;
}

.success-text p {
    font-size: var(--text-body);
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 20px;
}

.success-text .cta-text {
    color: var(--primary-color);
    font-size: var(--text-body);
    margin-bottom: 20px;
}

.success-text .cta-text a {
    text-decoration: none;
}

/* Our Partners section: title same size and style as Grant Support Services (Services page) */
#our-partners .section-title-banner h2 {
    font-size: var(--text-major);
    font-weight: 700;
    color: #1f2937;
}

.success-image {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-steps-grid {
    display: none;
}

.success-step {
    padding: 30px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.success-step:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: var(--text-title);
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 15px;
}

.success-step h5 {
    font-size: var(--text-title);
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.success-step p {
    font-size: var(--text-body);
    color: #6b7280;
}

/* Grant Support Services Section */
.grant-support-section {
    padding: 80px 0;
    background: transparent;
    font-family: var(--font-family);
    font-size: var(--text-body);
}

.grant-support-section h2 {
    font-size: var(--text-major);
    margin-bottom: 50px;
    color: #1f2937;
}

.grant-support-section h3 {
    font-size: var(--text-title);
    font-weight: 700;
    color: #1f2937;
}

.grant-support-section p {
    font-size: var(--text-body);
}

/* Grant Support: Get Grant Help intro & content cards */
.services-intro {
    font-size: var(--text-body);
}
.services-intro-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}
.services-intro-p {
    font-size: var(--text-body);
    color: var(--grey-700);
    line-height: 1.6;
}
.content-card {
    border-radius: 12px;
    background: var(--white);
    font-size: var(--text-body);
    border: 1px solid var(--grey-200);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.content-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-blue-border);
}
.content-card .card-body {
    padding: 1.25rem 1.5rem;
}

/* Grant & Business Consulting: section title */
.services-section-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}

/* Service option cards (General Grant Session, Business Plan Review, etc.) */
.service-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
.service-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-blue-border);
}

/* Blue strip for service card titles (same as plan-name-strip) */
.service-card-title-strip {
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}
.service-card:has(.service-badge) .service-card-title-strip {
    margin-top: 1.25rem;
}
.service-card-title-strip .service-card-title {
    margin-bottom: 0;
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}

/* Fractional Plan badge overlapping card border (like 7 Days Free Trial / Most Popular) */
.service-card .service-badge {
    position: absolute;
    top: -8px;
    left: 16px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: var(--text-body);
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fef9c3 50%, var(--primary-color) 100%);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: var(--grey-900);
    margin-bottom: 0;
}
.service-card .service-badge:hover {
    text-decoration: none;
}

.service-card-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 0.5rem;
}
.service-card-subtitle {
    font-size: var(--text-body);
    color: var(--grey-600);
}
.service-card-desc {
    font-size: var(--text-body);
    color: var(--grey-700);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.service-card-desc.service-card-desc-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-card-desc.service-card-desc-expanded {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}
.service-read-more,
.link-brown {
    color: #795548 !important;
    text-decoration: none;
    font-weight: 500;
}
.service-read-more:hover,
.link-brown:hover {
    color: #5d4037 !important;
    text-decoration: underline;
}
.service-card-includes {
    font-size: var(--text-body);
    color: var(--grey-600);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--grey-200);
}
.service-includes-label {
    font-weight: 600;
    color: var(--grey-700);
}
.service-card-featured {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.2);
}

/* Not sure what service / Contact CTA box (Grant Support section) */
.services-cta-box {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    font-size: var(--text-body);
}
.services-cta-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}
.services-cta-text {
    font-size: var(--text-body);
    color: var(--grey-700);
}

/* Plans Section */
.plans-section {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid var(--grey-200);
}

.plans-section h2 {
    font-size: var(--text-major);
    margin-bottom: 50px;
    color: #1f2937;
}

.plan-card {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 36px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.plan-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
    transform: translateY(-6px);
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.2);
    transform: scale(1.04);
    z-index: 2;
}

.plan-card.featured:hover {
    box-shadow: 0 16px 48px rgba(234, 179, 8, 0.28);
    transform: scale(1.04) translateY(-6px);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.free-trial-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.plan-header {
    margin-bottom: 20px;
    text-align: center;
}

.plan-header h4 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0;
    color: #0f172a;
}

.plan-name-strip {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0.35rem;
}

.plan-name-strip h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.plan-billing,
.plan-pricing-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.plan-billing.text-black,
.plan-pricing-text.text-black {
    color: #64748b !important;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.plans-section .plan-card:not(.additional-plan) .price-amount {
    font-size: 2.8rem;
    color: #0f172a;
}

.price-period {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-left: 4px;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
    flex-grow: 1;
}

.plan-features li {
    padding: 9px 0;
    color: #475569;
    font-size: 0.92rem;
    border-bottom: 1px solid #f8fafc;
    line-height: 1.5;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 8px;
}

.plan-card .btn {
    margin-top: auto;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Additional plans (Fractional, Association) */
.additional-plans-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.5rem;
}
.additional-plan-wrapper {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 0;
}
.additional-plan-wrapper.is-expanded {
    flex: 0 0 calc((100% - 24px) / 2);
}
.plan-card.additional-plan {
    padding: 1.5rem 1.5rem;
    flex: 1 1 auto;
    min-width: 0;
}
.plan-card.enterprise-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-top: none;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.plan-card.enterprise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #f59e0b);
}
.additional-plan-wrapper.is-expanded .plan-card.enterprise-card {
    border-radius: 16px 16px 0 0;
    border-bottom: none;
}
.plan-card.additional-plan .plan-features {
    flex: 1 1 auto;
}
.plan-notes-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-end;
    margin-top: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 0;
    transition: color 0.2s;
}
.plan-notes-toggle:hover {
    color: var(--primary-color);
}
.plan-notes-toggle-icon {
    display: inline-block;
    line-height: 1;
    transition: transform 0.3s ease;
}
.additional-plan-wrapper.is-expanded .plan-notes-toggle-icon {
    transform: rotate(90deg);
}
.plan-notes-panel {
    max-height: 0;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e8eaed;
    border-top: none;
    border-radius: 0 0 16px 16px;
    transition: max-height 0.4s ease;
    position: relative;
}
.additional-plan-wrapper.is-expanded .plan-notes-panel {
    max-height: 400px;
    overflow-y: auto;
}
.plan-notes-content {
    padding: 20px 24px 24px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    -webkit-overflow-scrolling: touch;
}
.plan-notes-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border: none;
    background: #e2e8f0;
    border-radius: 6px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--grey-600);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.plan-notes-close:hover {
    background: var(--grey-200);
    color: var(--grey-800);
}
.plan-card-p {
    font-size: var(--text-body);
    color: var(--grey-700);
    margin-bottom: 0.75rem;
}
.plan-card-p:last-child {
    margin-bottom: 0;
}

/* Not sure where to start CTA (Plans section) */
.plans-cta-box {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    font-size: var(--text-body);
}
.plans-cta-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}
.plans-cta-text {
    font-size: var(--text-body);
    color: var(--grey-700);
}

/* Resources Section */
.resources-section {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid var(--grey-200);
}

.resources-section h2 {
    font-size: var(--text-major);
    margin-bottom: 50px;
    color: #1f2937;
}

.resource-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--grey-200) !important;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.resource-card .card-title {
    color: #1f2937;
    padding: 0;
    margin: 0;
}

/* Light blue strip for resource card title */
.resource-name-strip {
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0;
}

.resource-name-strip .card-title {
    color: #1f2937;
    margin: 0;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover) !important;
    border-color: var(--primary-color) !important;
}

.resource-icon {
    font-size: var(--text-title);
    margin-bottom: 15px;
}

.badge {
    font-size: var(--text-body);
    font-weight: 500;
}

.resource-card h5 {
    font-size: var(--text-title);
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.resource-card p {
    font-size: var(--text-body);
    color: #6b7280;
    margin-bottom: 20px;
    flex-grow: 1;
}

.resource-card .btn {
    margin-top: auto;
}

/* Service Providers Access cards (Explore Ecosystem / Become a Service Provider) */
.become-provider-card {
    border-radius: 12px;
    font-size: var(--text-body);
    border: 1px solid var(--grey-200);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.become-provider-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-blue-border);
}
.become-provider-card .card-body {
    padding: 1.25rem 1.5rem;
}
.become-provider-card .service-card-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}
.become-provider-card .services-intro-p {
    font-size: var(--text-body);
    color: var(--grey-700);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-yellow);
    padding: 80px 0;
    font-family: var(--font-family);
}

.cta-section h2,
.cta-section p,
.cta-section .lead {
    color: var(--black);
    font-size: var(--text-body);
}
.cta-section h2 {
    font-size: var(--text-major);
    font-weight: 800;
}
.cta-section .lead {
    font-size: var(--text-body);
}

.btn-cta-contact {
    background: linear-gradient(135deg, #4b5563 0%, #1f2937 50%, #111827 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--white) !important;
    font-weight: 600;
}

.btn-cta-contact:hover,
.btn-cta-contact:focus,
.btn-cta-contact:active {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
    border-color: var(--black);
    color: var(--white) !important;
}

/* =====================================================
   AUTH PAGES (SIGNIN/SIGNUP)
   ===================================================== */

/* Hide navbar & footer on auth pages */
body.auth-page {
    padding-top: 0 !important;
}
body.auth-page .navbar-theme,
body.auth-page .layout-footer {
    display: none !important;
}
body.auth-page .layout-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Premium Auth — split layout */
.auth-page-premium {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.auth-brand-panel {
    flex: 0 0 42%;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
}
.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.05);
}
.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.05);
}
.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 340px;
}
.auth-brand-logo {
    height: 186px;
    margin-bottom: 18px;
}
.auth-brand-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.25;
    margin-bottom: 10px;
}
.auth-brand-sub {
    font-size: 0.84rem;
    color: #cbd5e1 !important;
    line-height: 1.6;
    margin-bottom: 24px;
}
.auth-brand-stats {
    display: flex;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.auth-brand-stat {
    display: flex;
    flex-direction: column;
}
.auth-brand-stat-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fbbf24 !important;
}
.auth-brand-stat-label {
    font-size: 0.68rem;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    background: #fff;
}
.auth-form-wrap {
    width: 100%;
    max-width: 380px;
}
.auth-form-header {
    margin-bottom: 20px;
}
.auth-form-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a !important;
    margin-bottom: 4px;
}
.auth-form-header p {
    font-size: 0.84rem;
    color: #64748b !important;
    margin: 0;
}
.auth-field {
    margin-bottom: 14px;
}
.auth-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}
.auth-input-wrap {
    position: relative;
}
.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}
.auth-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.auth-input::placeholder {
    color: #94a3b8;
}
.auth-input:focus {
    border-color: #fbbf24;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.12);
}
.auth-forgot {
    text-align: right;
    margin-bottom: 16px;
    margin-top: -6px;
}
.auth-forgot a {
    font-size: 0.78rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-forgot a:hover {
    color: #ca8a04;
}
.auth-submit-btn {
    width: 100%;
    padding: 11px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #eab308 100%);
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-submit-btn:hover {
    background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #ca8a04 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.35);
}
.auth-divider {
    display: flex;
    align-items: center;
    margin: 14px 0;
    gap: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.auth-divider span {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
}
.auth-oauth-row {
    display: flex;
    gap: 10px;
}
.auth-oauth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
}
.auth-oauth-btn:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.auth-signup-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.82rem;
    color: #64748b;
}
.auth-signup-link a {
    color: #b45309;
    font-weight: 700;
    text-decoration: none;
}
.auth-signup-link a:hover {
    text-decoration: underline;
}
/* Signup-specific styles */
.auth-brand-sticky { position: sticky; top: 0; align-self: flex-start; height: 100vh; }
.auth-form-scroll { overflow-y: auto; max-height: 100vh; align-items: flex-start; }
.auth-signup-wrap { width: 100%; max-width: 640px; padding: 32px 0 40px; }
.signup-section { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.signup-section-head { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.signup-section-head i { font-size: 1.1rem; color: #eab308; }
.signup-subsection-head { font-size: 0.82rem; font-weight: 700; color: #334155; margin-top: 14px; margin-bottom: 8px; }
.signup-input { width: 100%; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.84rem; color: #1e293b; background: #fff; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.signup-input::placeholder { color: #94a3b8; }
.signup-input:focus { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1); }
.signup-radio-group { margin-bottom: 12px; }
.signup-radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-radio-pill { cursor: pointer; }
.signup-radio-pill input { display: none; }
.signup-radio-pill span { display: inline-block; padding: 6px 16px; border: 1px solid #e2e8f0; border-radius: 20px; font-size: 0.82rem; font-weight: 500; color: #334155; background: #fff; transition: all 0.2s ease; }
.signup-radio-pill input:checked + span { background: #fef3c7; border-color: #eab308; color: #92400e; font-weight: 600; }
.signup-radio-pill:hover span { border-color: #cbd5e1; }
.signup-checkbox-pill { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.82rem; color: #64748b; }
@media (max-width: 767.98px) {
    .auth-split { flex-direction: column; }
    .auth-brand-panel { flex: none; padding: 40px 24px; }
    .auth-brand-sticky { position: static; height: auto; }
    .auth-form-panel { padding: 32px 20px; }
    .auth-form-scroll { max-height: none; }
}

/* Legacy auth page (other auth pages) */
.auth-page {
    background-color: var(--light-bg);
    min-height: 80vh;
    padding-top: 2rem;
}

.auth-page .row {
    min-height: 0;
    align-items: flex-start;
}

.auth-card {
    background: white;
    padding: 28px 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.auth-card h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.auth-card .signup-field-row {
    min-height: 0;
}

.auth-card .form-control-lg {
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: var(--text-body);
}

.auth-card .form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(234, 179, 8, 0.25);
}

.auth-card .btn-lg:not(.btn-oauth) {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--gradient-yellow);
    border: var(--border-yellow);
    color: var(--black) !important;
}

.auth-card .btn-lg:not(.btn-oauth):hover,
.auth-card .btn-lg:not(.btn-oauth):focus,
.auth-card .btn-lg:not(.btn-oauth):active {
    background: var(--gradient-yellow-hover);
    border-color: var(--primary-dark);
    color: var(--black) !important;
}

.auth-validation-message {
    white-space: pre-line;
}

.password-input-wrapper .password-toggle {
    text-decoration: none;
    font-size: var(--text-title);
}

.password-input-wrapper .password-toggle:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* OAuth buttons: white text on sign-in/sign-up */
/* OAuth logo-only square buttons, side by side */
.oauth-buttons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.btn-oauth {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-oauth:hover {
    transform: scale(1.05);
}

/* Grey background for all; logos use brand colors via SVG fill / .oauth-icon-apple */
.btn-oauth-google,
.btn-oauth-microsoft,
.btn-oauth-apple {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: inherit;
}

.btn-oauth-google:hover,
.btn-oauth-microsoft:hover,
.btn-oauth-apple:hover {
    background-color: #dee2e6;
    border-color: #ced4da;
    color: inherit;
}

.oauth-icon-apple {
    color: #000;
}

/* =====================================================
   DASHBOARD PAGE
   ===================================================== */

.dashboard-page {
    background: linear-gradient(180deg, var(--white) 0%, var(--grey-100) 35%, var(--accent-blue) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Same font and base size across all dashboard tabs (Home, List Building, Saved Grants, Application, etc.) */
.dashboard-page .tab-content,
.dashboard-page .tab-pane {
    font-family: var(--font-family);
    font-size: var(--text-body);
}
.dashboard-page .tab-content .form-control,
.dashboard-page .tab-content .form-select,
.dashboard-page .tab-content .form-label {
    font-family: var(--font-family);
}

.dashboard-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-header h1 {
    color: #1f2937;
}

.dashboard-header .btn:not(.btn-gradient-yellow) {
    border-radius: 8px;
    background: var(--primary-color);
    border: none;
}

.dashboard-header .btn:not(.btn-gradient-yellow):hover {
    background: var(--primary-dark);
}

.dashboard-header .btn-gradient-yellow {
    border-radius: 8px;
    background: var(--gradient-yellow);
    color: var(--black) !important;
    border: var(--border-yellow);
}

.dashboard-header .btn-gradient-yellow:hover {
    background: var(--gradient-yellow-hover);
    color: var(--black) !important;
    border-color: var(--primary-dark);
}

/* Admin viewing expired company: disable tab content (read-only) */
.dashboard-content-disabled {
    pointer-events: none;
    opacity: 0.75;
    user-select: none;
}

/* Stat Cards */
.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.stat-number {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: #9ca3af;
    font-size: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Home tab value banner - styled label and value, vertically centered */
.home-value-banner {
    min-height: 1in;
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
}

.home-value-banner .value-banner-label,
.home-value-banner .value-banner-amount {
    line-height: 1.2;
}

.home-value-banner .value-banner-label {
    font-size: var(--text-title);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--grey-600);
}

.home-value-banner .value-banner-amount {
    font-size: var(--text-title);
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Home tab two sections - bordered; title/description/list each have consistent size across both columns */
.home-section {
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.home-section-title {
    font-size: var(--text-title);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.home-section-desc {
    font-size: var(--text-body);
    margin-bottom: 0.75rem;
    min-height: 2.8rem;
    flex-shrink: 0;
}

/* List area - same height for both sections, always scrollable */
.home-section-list-scroll {
    height: 420px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.home-matches-list.list-group-separated .list-group-item,
.home-portfolio-list.list-group-separated .list-group-item {
    font-size: var(--text-body);
    border: 1px solid var(--grey-200) !important;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    padding: 1.25rem 1.5rem !important;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-height: 3.25rem;
}

.home-matches-list .list-group-item:last-child,
.home-portfolio-list .list-group-item:last-child {
    margin-bottom: 0;
}

.home-section .see-all-link {
    font-size: var(--text-body);
}

.see-all-link {
    color: var(--primary-color);
    text-decoration: none;
}

.see-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Grant Portfolio status badges (pastel, yellow/gray theme) - kept small so list row height matches Your Matches */
.portfolio-status {
    font-size: var(--text-body);
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* Saved: neutral/saved (same as before) */
.portfolio-status-added {
    background: #fef9c3;
    color: #a16207;
}
.portfolio-status-new {
    background: #fef9c3;
    color: #a16207;
}

/* In Progress: blue (working on it) */
.portfolio-status-in-progress {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Submitted: amber (awaiting review) */
.portfolio-status-submitted {
    background: #fef08a;
    color: #ca8a04;
}

/* Approved: green */
.portfolio-status-approved {
    background: #dcfce7;
    color: #166534;
}

/* Rejected: red */
.portfolio-status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

/* Grant request history badges (Add Grants tab) */
.grant-history-badge {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}
.grant-history-badge-approved {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    color: #ffffff !important;
}
.grant-history-badge-withdrawn {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 50%, #9ca3af 100%);
    color: #1f2937 !important;
}
.grant-history-badge-pending {
    background: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #eab308 100%);
    color: #422006 !important;
}
.grant-history-badge-rejected {
    background: linear-gradient(135deg, #fca5a5 0%, #ef4444 50%, #dc2626 100%);
    color: #ffffff !important;
}

/* Grant Cards */
.grant-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grant-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.grant-card.favorite-card {
    border: 2px solid var(--primary-color);
    background: rgba(234, 179, 8, 0.08);
}

.grant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.grant-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    flex-grow: 1;
}

.status-badge {
    font-size: var(--text-body);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
}

.status-badge.status-applied {
    background: var(--grey-200);
    color: var(--grey-700);
}

.status-badge.status-in-progress {
    background: var(--grey-100);
    color: var(--grey-700);
}

.status-badge.status-awaiting-review {
    background: var(--grey-200);
    color: var(--grey-900);
}

.status-badge.status-approved {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.status-badge.status-rejected {
    background: var(--grey-200);
    color: var(--grey-700);
}

.grant-description {
    font-size: var(--text-body);
    color: #6b7280;
    margin-bottom: 15px;
    flex-grow: 1;
}

.grant-details {
    background: var(--light-bg);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-body);
    padding: 4px 0;
}

.detail-item .label {
    color: #9ca3af;
    font-weight: 600;
}

.detail-item .value {
    color: #1f2937;
    font-weight: 500;
}

.grant-card .btn {
    margin-top: auto;
}

.grant-card .form-select-sm {
    border-radius: var(--radius-box);
    font-size: var(--text-body);
    padding: 4px 8px;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
}

.nav-tabs .nav-link {
    color: #6b7280;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

/* Account tab: section cards and edit */
/* Account tab sections: same sectional pattern as Home (border outline + inner content style) */
.account-section.home-section {
    /* Uses .home-section border, border-radius 8px, padding 1rem from main .home-section rule */
}

/* Soft gradient for Home tab cards (client and admin) */
#home .home-section.account-section {
    background: linear-gradient(165deg, #fefefe 0%, #fafbfc 45%, #f5f6f8 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.account-section .home-section-title-banner {
    margin-bottom: 1rem;
}

/* Home tab: constrain columns so content doesn't overflow the section */
#home .home-section.account-section .row > [class*="col-"] {
    min-width: 0;
}

.account-section-inner {
    padding: 1rem;
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-family: var(--font-family);
    font-size: var(--text-body);
}

/* Team members: blue "Primary" label for the primary user */
.badge-primary-label {
    font-size: var(--text-body);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
}

/* Team members: Editor (yellow gradient) and Viewer (gray gradient) labels */
.badge-gradient-yellow {
    background: var(--gradient-yellow);
    color: var(--black);
    border: 1px solid rgba(202, 138, 4, 0.4);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.badge-gradient-gray {
    background: var(--gradient-gray);
    color: var(--white);
    border: 1px solid rgba(75, 85, 99, 0.5);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}


/* Account detail fields (personal/company view): each field in a bordered box */
.account-detail-field {
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    padding: var(--padding-box);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.account-detail-field .account-val {
    margin-top: 0.25rem;
}

/* Account edit form: each field group in a bordered box */
.account-edit-field {
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    padding: var(--padding-box);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.account-edit-field .form-control {
    border-color: var(--grey-200);
}

/* Company Information subsection titles (Company Identification, Founder, etc.) */
.account-subsection-title {
    display: block;
    font-size: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--grey-700);
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Account lists (team members, billing history, payment methods): each item bordered */
.account-list-item {
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    padding: var(--padding-box);
    margin-bottom: 0.5rem;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

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

/* Saved Grants: meta row (amount, closes on, planned) with icons and badge */
.timeline-grant-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.5rem;
    font-size: var(--text-body);
    color: var(--grey-600);
}
.timeline-grant-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.timeline-grant-meta-item i {
    font-size: var(--text-body);
    color: var(--grey-500);
    flex-shrink: 0;
}
.timeline-grant-meta-amount {
    font-weight: 600;
    color: var(--grey-800);
}
.timeline-grant-meta-amount i {
    color: var(--primary-dark);
}
.timeline-grant-meta-planned {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue-border);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--grey-800);
}
.timeline-grant-meta-planned i {
    color: var(--grey-600);
}

/* Ensure two-column list items keep right content aligned and prevent wrapping,
   while truncating or clipping long left text as needed. */
.home-matches-list .list-group-item,
.home-portfolio-list .list-group-item,
.timeline-grant-list .timeline-grant-item,
.account-list-item.d-flex.justify-content-between {
    gap: 0.75rem;
}
.home-matches-list .list-group-item > .flex-grow-1,
.home-portfolio-list .list-group-item > .flex-grow-1,
.timeline-grant-item > .flex-grow-1 {
    min-width: 0; /* allow text-truncate to work */
}
.home-matches-list .list-group-item span.text-truncate,
.home-portfolio-list .list-group-item span.text-truncate,
.timeline-grant-item .list-item-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-matches-list .list-group-item > span.text-muted,
.home-portfolio-list .list-group-item > .portfolio-status,
.timeline-grant-item .timeline-grant-view {
    flex-shrink: 0;
    white-space: nowrap;
}

.account-edit-btn:hover {
    color: var(--primary-color) !important;
}

/* Edit icon button: square with gradient yellow */
.account-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0 !important;
    border: var(--border-yellow) !important;
    border-radius: 6px;
    background: var(--gradient-yellow);
    color: var(--black) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.account-edit-btn:hover,
.account-edit-btn:focus {
    background: var(--gradient-yellow-hover);
    border-color: var(--primary-dark) !important;
    color: var(--black) !important;
}

.account-edit-btn i {
    font-size: var(--text-body);
}

/* Current plan stats: Days remaining, Team members, Next billing */
.plan-stats-row {
    display: flex;
    flex-wrap: wrap;
}

.plan-stat-card {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.plan-stat-card .plan-stat-icon {
    font-size: var(--text-title);
    color: var(--grey-600);
    margin-bottom: 0.35rem;
}

.plan-stat-card .plan-stat-icon i {
    vertical-align: middle;
}

.plan-stat-card .plan-stat-value {
    font-size: var(--text-subtitle);
    font-weight: 700;
    color: var(--grey-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.plan-stat-card .plan-stat-value-sm {
    font-size: var(--text-body);
    font-weight: 600;
}

.plan-stat-card .plan-stat-sep {
    font-weight: 400;
    color: var(--grey-500);
    margin: 0 0.1em;
}

.plan-stat-card .plan-stat-label {
    font-size: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--grey-600);
    margin-top: 0.15rem;
}

.plan-stat-card .plan-stat-autopay-off {
    font-size: var(--text-body);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bs-danger, #dc3545);
    margin-top: 0.35rem;
}

.plan-stat-card .progress {
    background: var(--grey-200);
    border-radius: 2px;
}

.plan-stat-card .progress-bar {
    background: linear-gradient(90deg, #fef08a 0%, #eab308 100%);
    border-radius: 2px;
}

.plan-stat-card.plan-stat-days .plan-stat-value { color: var(--primary-color); }
.plan-stat-card.plan-stat-members .plan-stat-value { color: var(--grey-800); }

/* Grant detail: top row = checkpoints (3/4) + completion % (1/4) */
.grant-detail-top-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}
.grant-checkpoints-wrap { flex: 0 0 75%; min-width: 0; }
.grant-completion-widget {
    flex: 0 0 25%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.grant-completion-widget .grant-completion-label { font-size: var(--text-body); color: var(--grey-600); }
.grant-completion-widget .d-flex { align-items: center; gap: 0.5rem; }
.grant-completion-widget .progress.grant-progress-bar { height: 14px; }
.grant-completion-pct { font-size: var(--text-body); font-weight: 600; white-space: nowrap; min-width: 2.5em; }

/* Grant detail: checkpoint progress (4 stages) */
.grant-checkpoints { padding: 0.5rem 0; }
.grant-checkpoints .d-flex { gap: 0; }
.grant-checkpoint-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.grant-checkpoint-item.active { opacity: 1; }
.grant-checkpoint-item.current .grant-checkpoint-num {
    background: var(--gradient-yellow);
    color: var(--black);
    border-color: transparent;
}
.grant-checkpoint-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid var(--grey-300);
    background: var(--grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-body);
}
.grant-checkpoint-label {
    font-size: var(--text-body);
    margin-top: 0.35rem;
    color: var(--grey-600);
    text-align: center;
    max-width: 4.5rem;
}
.grant-checkpoint-line {
    flex: 1;
    min-width: 1rem;
    height: 2px;
    background: var(--grey-200);
    align-self: center;
    margin: 0 0.25rem;
    transition: background 0.2s;
}
.grant-checkpoint-line.active { background: var(--primary-color); }
.grant-progress-bar .progress-bar {
    background: linear-gradient(90deg, #fef08a 0%, #eab308 100%);
    border-radius: 4px;
}

/* Grant detail: Status – plain label + regular dropdown */
.grant-status-widget-label {
    font-size: 0.875rem;
    color: var(--grey-700);
    white-space: nowrap;
}
.grant-status-select {
    min-width: 8rem;
}

.grant-message-board-scroll {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

/* Grant detail: all section content areas scroll after a fixed height */
.grant-section-scroll {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}
.grant-section-scroll::-webkit-scrollbar { width: 6px; }
.grant-section-scroll::-webkit-scrollbar-track { background: var(--grey-200, #e5e7eb); border-radius: 3px; }
.grant-section-scroll::-webkit-scrollbar-thumb { background: var(--grey-500, #6b7280); border-radius: 3px; }
.grant-section-scroll::-webkit-scrollbar-thumb:hover { background: var(--grey-600, #4b5563); }

/* Supporting Documents Checklist: accordion items, hide empty when has docs */
.grant-checklist-list .accordion-button { font-size: var(--text-title); }
.grant-checklist-list .accordion-button::after { margin-left: auto; }
.grant-checklist-list .accordion-button:not(.collapsed) { font-weight: 600; }
.grant-checklist-list .accordion-body { font-size: var(--text-body); }
.grant-checklist-docs:has(.grant-doc-name) .grant-checklist-docs-empty { display: none !important; }

/* Upload Documents: expandable doc cards */
.grant-doc-card-header { cursor: pointer; user-select: none; }
.grant-doc-card-header:hover { background: var(--grey-100, #f3f4f6); border-radius: 0.25rem; }
.grant-doc-card-header .grant-doc-view-btn,
.grant-doc-card-header .btn-gradient-gray { border-radius: 6px; min-width: 2rem; }
.grant-doc-card-header .grant-doc-card-chevron { transition: transform 0.2s ease; }
.grant-doc-card-body.show .grant-doc-card-chevron { transform: rotate(90deg); }
.grant-doc-card .grant-doc-checklist-options label { cursor: pointer; }

/* Upload Documents thumbnails (legacy / fallback) */
.grant-doc-thumb:hover { background: var(--grey-100); }
.grant-docs-thumbnails .grant-doc-thumb { min-height: 2.5rem; }

/* Application Contacts cards */
.grant-contact-card dt { font-size: var(--text-body); text-transform: uppercase; letter-spacing: 0.02em; }
.grant-contact-card .grant-contact-remove { opacity: 0.7; }
.grant-contact-card .grant-contact-remove:hover { opacity: 1; }

/* =====================================================
   Account → Subscriptions: consistent styling
   ===================================================== */

.account-page-title {
    font-size: var(--text-subtitle);
    font-weight: 700;
    color: var(--grey-900);
    letter-spacing: -0.02em;
}

/* Current plan: plan name + amount block */
.subscription-plan-hero {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Plan type badge – stands out as current plan name */
.subscription-plan-badge {
    display: inline-block;
    font-size: var(--text-body);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--grey-900);
    background: var(--gradient-yellow);
    border: var(--border-yellow);
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(234, 179, 8, 0.2);
}

.subscription-plan-price {
    margin-bottom: 0.25rem;
}

.subscription-plan-amount {
    font-size: var(--text-subtitle);
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.subscription-plan-period {
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--grey-600);
    margin-left: 0.15rem;
}

.subscription-plan-billing-note {
    font-size: var(--text-body);
    color: var(--grey-600);
    margin-bottom: 0;
}

/* Empty states (no invoices, no payment methods) */
.subscription-empty-state {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--grey-100);
    border: 1px dashed var(--grey-300);
    border-radius: 8px;
}

.subscription-empty-icon {
    font-size: var(--text-major);
    color: var(--grey-400);
    display: block;
    margin-bottom: 0.75rem;
}

.subscription-empty-text {
    font-size: var(--text-body);
    color: var(--grey-600);
}

/* Section intro text (Upgrade plan copy) */
.subscription-section-desc {
    font-size: var(--text-body);
    color: var(--grey-700);
    line-height: 1.5;
}

/* Plan detail card: shown when Change plan is clicked or admin suggestion */
.plan-detail-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
}

.plan-detail-card-header {
    font-size: var(--text-title);
    font-weight: 600;
    color: var(--grey-900);
    letter-spacing: -0.01em;
}

.plan-detail-card-desc {
    font-size: var(--text-body);
    color: var(--grey-600);
    line-height: 1.5;
    margin-bottom: 0;
}

.plan-detail-stats {
    display: flex;
    flex-wrap: wrap;
}

.plan-detail-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.plan-detail-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--grey-600);
}

.plan-detail-stat-value {
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.plan-detail-card-suggestion {
    border-color: rgba(234, 179, 8, 0.5);
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.15) 0%, rgba(250, 204, 21, 0.08) 50%, rgba(234, 179, 8, 0.05) 100%);
}

.plan-detail-card-suggestion .plan-detail-card-header {
    color: var(--grey-900);
}

.plan-detail-actions {
    padding-top: 0.5rem;
    border-top: 1px solid var(--grey-200);
}

/* List secondary text (amount in billing history) */
.subscription-list-amount {
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--grey-600);
}

.subscription-list-icon {
    color: var(--grey-500);
    font-size: var(--text-title);
}

/* Payment methods: thumbnail / square cards */
.payment-methods-grid {
    margin-bottom: 0;
}

.payment-method-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1rem 1rem 1.25rem;
    padding-top: 2rem;
    height: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.payment-method-default-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--grey-600);
    user-select: none;
}

.payment-method-default-label:hover {
    color: var(--grey-800);
}

.payment-method-default-label input[type="checkbox"] {
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

.payment-method-default-text {
    white-space: nowrap;
}

.payment-method-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--grey-300);
}

.payment-method-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.payment-method-card-row:first-child {
    margin-bottom: 0.5rem;
}

.payment-method-card-row-actions {
    justify-content: flex-end;
}

.payment-method-card-last4 {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--grey-800);
    letter-spacing: 0.02em;
}

.payment-method-card-expiry {
    font-size: var(--text-body);
    color: var(--grey-600);
}

.payment-method-card-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--grey-800);
    text-transform: capitalize;
}

.payment-card-brand-icon {
    font-size: var(--text-subtitle);
    line-height: 1;
    color: var(--grey-700);
}

.payment-method-card-brand-name {
    flex-shrink: 0;
}

/* Billing history */
.billing-history-grid {
    margin-bottom: 0;
}

.invoice-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.invoice-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-color: var(--grey-300);
}

.invoice-card-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.invoice-card-icon {
    font-size: 1.1rem;
    color: var(--grey-400);
    line-height: 1;
}

.invoice-card-plan {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-800);
    line-height: 1.2;
}

.invoice-card-date {
    font-size: 0.75rem;
}

.invoice-card-amount {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-800);
}

.invoice-card-annual {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--grey-500);
}

.invoice-card-tx {
    font-size: 0.7rem;
}

.invoice-card-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.3rem;
    border-top: 1px solid var(--grey-100);
}

.btn-xs {
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    line-height: 1.4;
    border-radius: 4px;
}

.account-val {
    font-size: var(--text-body);
    color: #1f2937;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    background: var(--light-bg);
}

.modal-header .btn-close {
    filter: brightness(0);
}

.modal-body {
    padding: 25px;
    font-size: var(--text-body);
}

.app-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.app-modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: none;
    padding: 20px 24px;
}
.app-modal-header .btn-close {
    filter: none;
    opacity: 0.7;
}
.app-modal-header .btn-close:hover {
    opacity: 1;
}
.app-modal-title {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
}
.app-modal-body {
    padding: 24px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.7;
}
.app-modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 14px 24px;
    background: #fafbfc;
}

#comparisonModal .modal-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
}
#comparisonModal .table {
    font-size: var(--text-body);
}
#comparisonModal .table th,
#comparisonModal .table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}
#comparisonModal .table thead th {
    font-size: var(--text-body);
    font-weight: 600;
}


/* Tables */
.table {
    margin-bottom: 0;
}

.table thead {
    background: var(--grey-700);
    color: var(--white);
}

.table-bordered {
    border-color: #e5e7eb;
}

.table tbody tr:hover {
    background: var(--light-bg);
}

/* =====================================================
   PLANS & RESOURCES PAGES
   ===================================================== */

.plans-page,
.resources-page {
    padding: 40px 0;
}

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

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: var(--text-major);
    }

    .hero-right {
        height: 300px;
    }

    .overlay-tile {
        position: relative;
        margin: 10px;
    }

    .overlay-tile.matches {
        bottom: auto;
        left: auto;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 16px;
        padding-bottom: 16px;
        min-height: 0;
    }

    .overlay-tile.matches::after {
        display: none;
    }

    .overlay-tile.funded {
        top: auto;
        right: auto;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 16px;
        padding-bottom: 16px;
        min-height: 0;
    }

    .overlay-tile.funded::after {
        display: none;
    }

    .success-system-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .success-steps-grid {
        grid-template-columns: 1fr;
    }

    .success-system h2,
    .plans-section h2 {
        font-size: var(--text-major);
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: var(--text-title);
    }

    .grant-header {
        flex-direction: column;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-header .col-auto {
        width: 100%;
        margin-top: 15px;
    }

    .dashboard-header .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: var(--text-major);
    }

    .plan-card {
        padding: 20px;
    }

    .auth-card {
        padding: 25px;
    }

    .modal-body {
        padding: 15px;
    }
}

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

.footer-section,
footer.bg-dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    color: #94a3b8;
    padding: 60px 0 20px;
    font-family: var(--font-family);
}

.footer-section-tight {
    padding: 2rem 0 0.5rem !important;
}

.footer-section-tight .footer-divider {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    border-color: rgba(148, 163, 184, 0.15) !important;
}

.footer-section-tight h6 {
    margin-bottom: 0.75rem !important;
}

.layout-footer {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: #0f172a !important;
}

.layout-footer p {
    color: #64748b !important;
    font-size: 0.85rem !important;
    margin: 0;
}

footer.bg-dark .container {
    color: #94a3b8;
}

.footer-section h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e2e8f0;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fbbf24;
}

/* =====================================================
   ALERTS (theme: yellow/grey)
   ===================================================== */
.alert-danger {
    background-color: rgba(55, 65, 81, 0.1);
    border-color: var(--grey-600);
    color: var(--grey-900);
}

.alert-warning {
    background-color: rgba(107, 114, 128, 0.15);
    border-color: var(--grey-500);
    color: var(--grey-900);
}

.alert-success {
    background-color: rgba(234, 179, 8, 0.15);
    border-color: var(--primary-color);
    color: var(--grey-900);
}

.alert-info {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue-border);
    color: var(--grey-900);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.btn-primary {
    background: var(--gradient-yellow);
    border: var(--border-yellow);
    color: var(--black) !important;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--gradient-yellow-hover);
    border-color: var(--primary-dark);
    color: var(--black) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--black);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.transition-all {
    transition: all 0.3s ease;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideInUp 0.5s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* =====================================================
   CONTACT PAGE – Professional
   ===================================================== */
.contact-pro-page { background: #f8fafc; min-height: 100vh; }

.contact-pro-header { text-align: center; margin-bottom: 32px; }
.contact-pro-title { font-size: 1.75rem !important; font-weight: 800 !important; color: #0f172a !important; margin-bottom: 6px; }
.contact-pro-sub { font-size: 0.92rem !important; color: #64748b !important; max-width: 520px; margin: 0 auto; }

.contact-pro-section {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 24px; margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.contact-pro-section-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.95rem; font-weight: 700; color: #0f172a;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9;
}
.contact-pro-section-head i { font-size: 1.1rem; color: #eab308; }

.contact-pro-label {
    display: block; font-size: 0.82rem !important; font-weight: 600 !important;
    color: #334155 !important; margin-bottom: 5px;
}
.contact-pro-input-wrap {
    position: relative; display: flex; align-items: center;
}
.contact-pro-input-icon {
    position: absolute; left: 14px; font-size: 0.95rem; color: #94a3b8;
    pointer-events: none;
}
.contact-pro-input {
    width: 100%; padding: 10px 14px 10px 40px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 0.88rem !important; color: #0f172a !important;
    background: #fff; transition: border-color .2s, box-shadow .2s;
}
.contact-pro-input:focus {
    outline: none; border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}
.contact-pro-select {
    width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 0.88rem !important; color: #0f172a !important;
    background: #fff; transition: border-color .2s, box-shadow .2s;
    appearance: auto;
}
.contact-pro-select:focus {
    outline: none; border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}
.contact-pro-textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 0.88rem !important; color: #0f172a !important;
    background: #fff; resize: vertical; min-height: 80px;
    transition: border-color .2s, box-shadow .2s;
}
.contact-pro-textarea:focus {
    outline: none; border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}

.contact-pro-field { margin-bottom: 14px; }
.contact-pro-hint { font-size: 0.75rem; color: #94a3b8; display: block; margin-top: 4px; }

.contact-pro-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-pro-pill { cursor: pointer; margin: 0; }
.contact-pro-pill input { display: none; }
.contact-pro-pill span {
    display: inline-block; padding: 7px 16px; border: 1px solid #e2e8f0;
    border-radius: 20px; font-size: 0.82rem; font-weight: 500;
    color: #334155; background: #fff; transition: all .2s;
}
.contact-pro-pill:hover span { border-color: #cbd5e1; }
.contact-pro-pill input:checked + span {
    background: #fef3c7; border-color: #eab308; color: #92400e; font-weight: 600;
}

.contact-pro-submit {
    padding: 12px 36px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
    color: #000; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.contact-pro-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234,179,8,0.35);
}


.contact-back-link {
    color: var(--primary-color);
}

.contact-alert-info {
    border-left: 4px solid var(--primary-color);
}

.contact-required {
    color: var(--grey-600);
}

/* =====================================================
   HOME PAGE (images, resource cards)
   ===================================================== */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
}

.steps-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.steps-img-wrapper .steps-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.steps-hover-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    min-width: 320px;
    min-height: 320px;
    max-width: min(480px, 95vw);
    max-height: min(480px, 95vw);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.steps-hover-overlay .steps-hover-wedge {
    pointer-events: all;
    fill: transparent;
    stroke: transparent;
    cursor: pointer;
    stroke-width: 6;
}
@media (min-width: 1200px) {
    .steps-hover-overlay { min-width: 380px; min-height: 380px; max-width: 480px; max-height: 480px; }
}
@media (max-width: 768px) {
    .steps-hover-overlay { min-width: 240px; min-height: 240px; max-width: min(300px, 90vw); max-height: min(300px, 90vw); }
    .steps-hover-overlay .steps-hover-wedge { stroke-width: 8; }
}
@media (max-width: 480px) {
    .steps-hover-overlay { min-width: 200px; min-height: 200px; max-width: min(260px, 88vw); max-height: min(260px, 88vw); }
    .steps-hover-overlay .steps-hover-wedge { stroke-width: 10; }
}
.steps-hover-overlay .steps-hover-wedge:hover {
    fill: transparent;
}
.steps-tooltip {
    position: fixed;
    z-index: 1100;
    padding: 4px 8px;
    font-size: var(--text-body);
    color: var(--grey-800);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
.steps-tooltip.visible {
    opacity: 1;
    visibility: visible;
}
.steps-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.resource-card-wrap {
    position: relative;
}

.resource-card .card-text-muted,
.resource-card-muted {
    font-size: var(--text-body);
}

/* =====================================================
   RESOURCES VIEW (video)
   ===================================================== */
.resource-video {
    max-height: 400px;
}

/* List sections: same typography site-wide (title = --text-title, details = --text-body) */
.timeline-grant-meta {
    font-size: var(--text-body);
}
/* List item title: same style for Saved Grants and List Building (no fw-bold) */
.list-item-title {
    font-size: var(--text-title);
    font-weight: 500;
    line-height: 1.3;
    color: var(--grey-900);
}
.lb-accordion-item .timeline-grant-meta {
    font-size: var(--text-body);
}
.lb-accordion-item .lb-accordion-body,
.lb-accordion-item .lb-grant-detail {
    font-size: var(--text-body);
}
.lb-accordion-item .lb-grant-detail dt,
.lb-accordion-item .lb-grant-detail dd {
    font-size: var(--text-body);
}
/* FAQ left topic nav */
/* Premium FAQ Search */
.faq-search-box {
    max-width: 600px;
    margin: -24px auto 40px;
    position: relative;
}
.faq-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}
.faq-search-premium {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-size: 0.95rem;
    color: #1e293b;
    outline: none;
    transition: box-shadow 0.3s ease;
}
.faq-search-premium::placeholder {
    color: #94a3b8;
}
.faq-search-premium:focus {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 0 3px rgba(234, 179, 8, 0.15);
}

/* Premium FAQ Tabs (horizontal) */
.faq-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    justify-content: center;
}
.faq-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    cursor: pointer;
}
.faq-tab:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}
.faq-tab.active {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    color: #1e293b;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.3);
}

/* Premium FAQ Accordion Items */
.faq-accordion-premium {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.faq-item-header {
    margin: 0;
}
.faq-item-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}
.faq-item-btn:focus {
    outline: none;
}
.faq-item-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s ease;
}
.faq-item-btn:not(.collapsed) .faq-item-num {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    color: #1e293b;
}
.faq-item-question {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}
.faq-item-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    transition: all 0.3s ease;
}
.faq-item-icon i {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.3s ease;
}
.faq-item-btn:not(.collapsed) .faq-item-icon {
    background: #0f172a;
}
.faq-item-btn:not(.collapsed) .faq-item-icon i {
    color: #fff;
    transform: rotate(45deg);
}
.faq-item-body {
    padding: 0 22px 22px 68px;
}
.faq-item-body p,
.faq-item-body li {
    font-size: 0.88rem !important;
    color: #475569 !important;
    line-height: 1.7;
}

/* Legacy classes kept for compatibility */
.faq-topic-nav {
    border-right: none;
    padding-right: 0;
}
.faq-topic-nav .nav-link {
    font-weight: 500;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}
.faq-accordion .accordion-button {
    font-size: var(--text-title);
    font-weight: 600;
    line-height: 1.3;
}
.faq-accordion .accordion-body,
.faq-accordion .faq-content {
    font-size: var(--text-body);
}
.faq-accordion .faq-content p {
    font-size: var(--text-body);
}

/* =====================================================
   FAQ (converted DOCX content)
   ===================================================== */
.faq-content {
    max-width: 48rem;
    line-height: 1.6;
}

.faq-content h1 { font-size: var(--text-title); margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.faq-content h2 { font-size: var(--text-title); margin-top: 1.25rem; margin-bottom: 0.5rem; font-weight: 600; }
.faq-content h3 { font-size: var(--text-title); margin-top: 1rem; margin-bottom: 0.5rem; font-weight: 600; }
.faq-content p { font-size: var(--text-body); margin-bottom: 0.75rem; }
.faq-content ul, .faq-content ol { margin-bottom: 0.75rem; padding-left: 1.5rem; }
.faq-content li { font-size: var(--text-body); margin-bottom: 0.25rem; }
.faq-content strong { font-weight: 600; }
.faq-content table { border-collapse: collapse; margin-bottom: 1rem; width: 100%; }
.faq-content th, .faq-content td { border: 1px solid var(--border-color, #dee2e6); padding: 0.5rem 0.75rem; text-align: left; }
.faq-content th { font-weight: 600; background: var(--light-bg, #f8f9fa); }

/* =====================================================
   LIST BUILDING (dashboard)
   ===================================================== */
.lb-sort-select { max-width: 16rem; }
.lb-grant-count { font-weight: 500; padding: 0.35rem 0.65rem; }

.lb-filter-panel {
    position: relative;
    z-index: 10;
}
.lb-filter-panel .form-label { margin-bottom: 0.25rem; }

/* List Building filter panel - improved styling */
.lb-filter-panel-styled {
    background: var(--white);
    border-radius: var(--radius-box);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--grey-200);
    overflow: hidden;
}
.lb-filter-panel-styled .lb-filter-panel-header {
    background: linear-gradient(135deg, var(--grey-50) 0%, var(--grey-100) 100%);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--grey-200);
}
.lb-filter-panel-styled .lb-filter-panel-title {
    font-size: var(--text-title);
    font-weight: 600;
    color: var(--grey-800);
}
.lb-filter-panel-styled .lb-filter-panel-body {
    padding: 1rem 1.25rem;
}
.lb-filter-panel-styled .lb-filter-panel-footer {
    padding: 0.75rem 1.25rem;
    background: var(--grey-50);
    border-top: 1px solid var(--grey-200);
}
/* List Building: prominent dark border on all filter dropdowns (Status select + multi-select triggers) */
.lb-filter-panel-styled .lb-multi-dropdown .lb-multi-dropdown-trigger {
    min-height: 2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--white);
    border: 1px solid var(--grey-600);
}
.lb-filter-panel-styled .lb-multi-dropdown .lb-multi-dropdown-trigger:hover {
    border-color: var(--primary-color);
    background: var(--white);
}
.lb-filter-panel-styled .lb-multi-dropdown .dropdown-menu {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border: 1px solid var(--grey-500);
}
.lb-filter-panel-styled .lb-multi-dropdown-menu label {
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}
.lb-filter-panel-styled .lb-multi-dropdown-menu label:hover {
    background: var(--grey-100);
}
.lb-filter-panel-styled .form-select {
    border-radius: 4px;
    border: 1px solid var(--grey-600);
}
.lb-filter-panel-styled .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(234, 179, 8, 0.25);
}

/* Admin approve add grant - checkbox multi-select (same style as List Building) */
.admin-grant-multi-field {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
}
.admin-grant-multi-dropdown .admin-grant-multi-trigger,
.admin-grant-multi-dropdown .lb-multi-dropdown-trigger {
    min-height: 2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--white);
    border: 1px solid var(--grey-600);
}
.admin-grant-multi-dropdown .admin-grant-multi-trigger:hover,
.admin-grant-multi-dropdown .lb-multi-dropdown-trigger:hover {
    border-color: var(--primary-color);
    background: var(--white);
}
.admin-grant-multi-dropdown .dropdown-menu {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border: 1px solid var(--grey-500);
}
.admin-grant-multi-dropdown-menu label {
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}
.admin-grant-multi-dropdown-menu label:hover {
    background: var(--grey-100);
}
.admin-grant-multi-field .admin-grant-add-new {
    border-radius: 4px;
    border-color: var(--grey-300);
}
.admin-grant-multi-field .admin-grant-add-btn {
    border-radius: 4px;
    font-size: 0.875rem;
}
#admin-request-approve-modal .form-label.fw-semibold { color: var(--grey-700); }
#admin-request-approve-modal .row.g-3 > [class*="col-"] { margin-bottom: 0.25rem; }

/* Admin Users, Businesses, Partners – card styling with soft gradient */
#admin-users-list .admin-card,
#admin-businesses-list .admin-card,
#admin-partners-list .admin-card,
#admin-applied-list .admin-card {
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: linear-gradient(165deg, #fefefe 0%, #fafbfc 50%, #f4f5f7 100%);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
#admin-users-list .admin-card:hover,
#admin-businesses-list .admin-card:hover,
#admin-partners-list .admin-card:hover,
#admin-applied-list .admin-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--grey-300);
}
#admin-users-list .admin-card .card-body,
#admin-businesses-list .admin-card .card-body,
#admin-partners-list .admin-card .card-body,
#admin-applied-list .admin-card .card-body {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    display: flex;
    flex-direction: column;
}
.admin-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.admin-card-meta {
    font-size: 0.875rem;
    color: var(--grey-600);
    margin-bottom: 0.35rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
}
.admin-card-meta i {
    opacity: 0.85;
    color: var(--grey-500);
    margin-right: 0.35rem;
}
.admin-card-badges {
    font-size: 0.8125rem;
    line-height: 1.4;
}
.admin-card-badges .badge {
    font-weight: 500;
}
.admin-card-actions {
    margin-top: auto;
}
.admin-partner-card .admin-card-actions {
    padding-top: 0.25rem;
}
.admin-applied-card .admin-card-badges {
    align-items: center;
}
.admin-applied-card .admin-card-meta {
    margin-bottom: 0.3rem;
}
.admin-user-card .admin-card-meta,
#admin-businesses-list .admin-card .admin-card-meta {
    margin-bottom: 0.3rem;
}
.admin-badge-role {
    background: rgba(0, 0, 0, 0.06) !important;
    color: var(--grey-700) !important;
}
/* Users tab – white text on badges (Admin, Active, Inactive, role) */
#admin-users-list .admin-card-title { color: var(--grey-700); }
#admin-users-list .admin-card-title .badge { color: #fff !important; }
#admin-users-list .admin-card-meta { color: var(--grey-500); }
#admin-users-list .admin-card-badges .badge {
    color: #fff !important;
}
#admin-users-list .admin-badge-role {
    background: var(--grey-700) !important;
    color: #fff !important;
}

/* Applied grants tab – white text on status badge */
#admin-applied-list .admin-card-badges .badge {
    color: #fff !important;
}

/* Partners tab – white text on Active/Inactive badges */
#admin-partners-list .admin-card-badges .badge {
    color: #fff !important;
}

#lb-active-filters .badge button { padding: 0 0.25rem; }
#lb-active-filters .badge .btn-close-sm { margin-left: 0.15rem; }

.lb-grant-list.accordion { border: none; }
.lb-accordion-item {
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.lb-accordion-item:last-child { margin-bottom: 0; }
.lb-accordion-item.account-list-item { padding: 0; }
.lb-accordion-item.account-list-item > .d-flex:first-child { padding: 0.75rem 1rem; }
.lb-accordion-item .accordion-header { border: none; }
.lb-accordion-item .accordion-button {
    font-size: var(--text-body);
    padding: 0.75rem 1rem;
    background: var(--white) !important;
    border: none !important;
}
.lb-accordion-item .accordion-button:not(.collapsed) { box-shadow: none !important; }
.lb-accordion-item .accordion-button::after { display: none; }
.lb-grant-name { font-size: var(--text-body); font-weight: 500; color: var(--grey-900); }
.lb-accordion-body { border-top: 1px solid var(--grey-200); background: var(--grey-100); }
.lb-grant-detail { padding: 0 1rem 1rem; }
.lb-grant-detail dl { margin-bottom: 0; }
.lb-grant-detail dt { font-weight: 600; color: var(--grey-600); }
.lb-grant-detail dd { margin-bottom: 0.5rem; }
.lb-accordion-chevron i,
.lb-accordion-item .accordion-collapse-chevron i {
    transition: transform 0.2s ease;
    font-size: var(--text-body);
    color: var(--grey-500);
}
.lb-accordion-item:has(.accordion-collapse.show) .accordion-collapse-chevron i,
.lb-accordion-item:has(.accordion-collapse.show) .lb-accordion-chevron i { transform: rotate(180deg); }
.lb-star-btn { font-size: var(--text-body); line-height: 1; }
.lb-star-btn:hover { opacity: 0.85; }
.lb-star-btn .bi-star-fill { color: var(--primary-color); }

.lb-page-num { min-width: 2rem; }
#lb-list-building [title] { cursor: pointer; }

/* Contacts tab: typography and sizing (match site vars) */
#store-contacts h4 {
    font-size: var(--text-title);
    font-weight: 700;
}

/* Contacts left sidebar: uniform size for button, input, and category rows */
#store-contacts .contacts-sidebar .account-section-inner {
    --contacts-row-height: 2.5rem;
    --contacts-row-padding: 0.5rem 0.75rem;
}
#store-contacts .contacts-sidebar .account-section-inner .form-control {
    font-size: var(--text-body);
    padding: var(--contacts-row-padding);
    min-height: var(--contacts-row-height);
}
#store-contacts .contacts-sidebar .account-section-inner .form-control::placeholder {
    font-size: var(--text-body);
}
#store-contacts .contacts-sidebar #contacts-add-btn {
    font-size: var(--text-body);
    min-height: var(--contacts-row-height);
    padding: var(--contacts-row-padding);
}
#store-contacts .title-banner.home-section-title-banner .home-section-title {
    font-size: var(--text-title);
}
#store-contacts .account-list-item.contacts-category-item .contacts-category-name,
#store-contacts .account-list-item.contacts-category-item .contacts-category-count {
    font-size: var(--text-body);
}
#store-contacts #contacts-empty {
    font-size: var(--text-body);
}

/* Contacts tab: category list (extends .account-list-item) - same row height as button/input */
.account-list-item.contacts-category-item {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-body);
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-box, 6px);
}
#store-contacts .contacts-sidebar .account-list-item.contacts-category-item {
    min-height: var(--contacts-row-height);
    padding: var(--contacts-row-padding);
}
.account-list-item.contacts-category-item:hover {
    background: var(--grey-100);
}
.account-list-item.contacts-category-item.active {
    background: var(--gradient-yellow);
    border: var(--border-yellow);
    color: var(--black);
    font-weight: 600;
}
.contacts-category-name {
    flex-grow: 1;
    font-weight: 500;
}
.contacts-category-count {
    flex-shrink: 0;
    margin-left: 0.5rem;
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--grey-700);
}
/* Contacts table inside account-section-inner */
#store-contacts .account-section-inner .table thead {
    background: var(--grey-700);
    color: var(--white);
    font-size: var(--text-body);
    font-weight: 600;
}
#store-contacts .account-section-inner .table tbody tr:hover {
    background: var(--light-bg);
}
#store-contacts .account-section-inner .table td,
#store-contacts .account-section-inner .table th {
    padding: var(--padding-box);
    vertical-align: middle;
    font-size: var(--text-body);
}
#store-contacts .contact-edit,
#store-contacts .contact-delete {
    color: var(--grey-600);
    font-size: var(--text-body);
}
#store-contacts .contact-edit:hover {
    color: var(--primary-color);
}
#store-contacts .contact-delete:hover {
    color: var(--danger-color, #dc3545);
}

/* Contact Add/Edit modal: match site typography and form sizing */
#contactModal .modal-title {
    font-size: var(--text-title);
    font-weight: 600;
}
#contactModal .form-label.small {
    font-size: var(--text-body);
}
#contactModal .form-control,
#contactModal .form-select {
    font-size: var(--text-body);
    padding: 0.5rem 0.75rem;
}
#contactModal .modal-footer .btn {
    font-size: var(--text-body);
}

/* Application tab: KPI cards and status tabs + accordions */
.plan-stat-card .plan-stat-amount {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--grey-700);
    margin-top: 0.25rem;
}

/* Application KPI cards: compact, use site typography (--text-title, --text-body) */
#application .application-kpi-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: linear-gradient(145deg, var(--white) 0%, var(--grey-100) 100%);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 0.4rem 0.6rem 0.4rem 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}
#application .application-kpi-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
}
#application .application-kpi-card .app-kpi-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
}
#application .application-kpi-card .app-kpi-left .plan-stat-value {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--grey-900);
    letter-spacing: -0.02em;
    line-height: 1;
}
#application .application-kpi-card .app-kpi-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
}
#application .application-kpi-card .app-kpi-right-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
#application .application-kpi-card .app-kpi-right .plan-stat-icon {
    font-size: var(--text-body);
    margin: 0;
    flex-shrink: 0;
}
#application .application-kpi-card .app-kpi-right .plan-stat-label {
    font-size: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--grey-800);
    margin: 0;
}
#application .application-kpi-card .app-kpi-right .plan-stat-amount-label {
    font-size: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--grey-600);
}
#application .application-kpi-card .app-kpi-right .plan-stat-amount-value {
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}
#application .application-kpi-card .plan-stat-icon i { color: var(--grey-600); }
#application .application-kpi-in-progress .plan-stat-icon i { color: var(--primary-dark); }
#application .application-kpi-awaiting .plan-stat-icon i { color: var(--grey-600); }
#application .application-kpi-approved .plan-stat-icon i { color: #059669; }
#application .application-kpi-rejected .plan-stat-icon i { color: var(--grey-500); }

#application .nav-tabs-application {
    border-bottom: 1px solid var(--grey-200);
    padding: 0 1rem;
    background: var(--grey-100);
}
#application .nav-tabs-application .nav-link {
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: var(--radius-box) var(--radius-box) 0 0;
    padding: 0.6rem 1rem;
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--grey-600);
}
#application .nav-tabs-application .nav-link:hover {
    color: var(--grey-900);
    background: var(--white);
}
#application .nav-tabs-application .nav-link.active {
    background: var(--white);
    color: var(--grey-900);
    border-color: var(--grey-200);
    border-bottom-color: var(--white);
    margin-bottom: -1px;
}
#application .app-tab-count {
    font-weight: 400;
    color: var(--grey-500);
}
#application .app-tab-count-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    margin-left: 0.35rem;
    font-size: var(--text-body);
    font-weight: 700;
    line-height: 1;
    color: var(--grey-900);
    background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #ca8a04 100%);
    border-radius: 999px;
    vertical-align: middle;
}
#application .nav-tabs-application .nav-link.active .app-tab-count-bubble {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 50%, #eab308 100%);
    color: var(--grey-900);
}
#application .tab-content.account-section-inner {
    border-radius: 0 0 var(--radius-box) var(--radius-box);
}

#application .application-accordion,
#application .application-list {
    border: none;
}
#application .app-accordion-item,
#application .app-list-item {
    display: flex;
    align-items: center;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-box);
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
#application .app-accordion-item:last-child,
#application .app-list-item:last-child {
    margin-bottom: 0;
}
#application .app-list-item-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}
#application .app-accordion-item .accordion-header {
    border: none;
    display: flex;
    align-items: stretch;
    margin: 0;
}
#application .app-accordion-item .accordion-button {
    font-size: var(--text-body);
    padding: 0.75rem 1rem;
    background: var(--white) !important;
    border: none !important;
    box-shadow: none !important;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
}
#application .app-accordion-item .accordion-button:not(.collapsed) {
    background: var(--grey-100) !important;
}
#application .app-accordion-item .accordion-button::after { display: none; }
#application .app-list-item-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    width: 10rem;
    margin-right: 1.25rem;
    align-self: center;
    font-family: var(--font-family);
    font-size: var(--text-body);
}
#application .app-list-item-progress-wrap .app-list-item-progress {
    flex: 1;
    min-width: 0;
}
#application .app-list-item-progress-pct {
    flex-shrink: 0;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--grey-800);
    min-width: 2.25rem;
    text-align: left;
}
#application .app-list-item-progress {
    height: 22px;
    background: var(--grey-200);
    border-radius: 999px;
    overflow: hidden;
}
#application .app-list-item-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fef9c3 0%, #fef08a 35%, #eab308 70%, #ca8a04 100%);
    border-radius: 999px;
    transition: width 0.25s ease;
}
#application .app-list-item-view {
    flex-shrink: 0;
}
#application .app-accordion-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}
#application .app-accordion-title-line {
    font-weight: 600;
    font-size: var(--text-body);
    color: var(--grey-900);
    line-height: 1.3;
}
#application .app-accordion-details-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1.25rem;
    font-size: var(--text-body);
}
#application .app-accordion-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
#application .app-accordion-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    font-size: var(--text-body);
    color: var(--grey-500);
    flex-shrink: 0;
}
#application .app-accordion-detail-icon i {
    vertical-align: middle;
}
#application .app-accordion-detail-label {
    color: var(--grey-500);
    font-weight: 500;
    letter-spacing: 0.03em;
    font-size: var(--text-body);
}
#application .app-accordion-detail-value {
    color: var(--grey-800);
    font-weight: 600;
    font-size: var(--text-body);
}
#application .app-accordion-title {
    font-weight: 600;
    color: var(--grey-900);
    min-width: 0;
}
#application .app-accordion-meta {
    flex-shrink: 0;
}
#application .app-accordion-amount {
    color: var(--grey-800);
}
#application .app-accordion-body {
    border-top: 1px solid var(--grey-200);
    background: var(--grey-100);
    padding: 0.75rem 1rem;
}
#application .app-accordion-detail {
    font-size: var(--text-body);
}

/* Invoice View Modal */
.invoice-modal-wrap {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.invoice-modal-wrap .modal-body { padding: 0; }
.inv-modal {
    font-family: inherit;
}
.inv-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid var(--grey-100);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.inv-modal-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--grey-800);
}
.inv-modal-logo {
    height: 28px;
    width: auto;
}
.inv-modal-title-block {
    text-align: right;
}
.inv-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
}
.inv-modal-id {
    font-size: 0.75rem;
    color: var(--grey-500);
    margin-top: 2px;
    font-family: monospace;
}
.inv-modal-meta {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid var(--grey-100);
}
.inv-modal-meta-item {
    flex: 1;
}
.inv-modal-meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--grey-400);
    font-weight: 600;
    margin-bottom: 2px;
}
.inv-modal-meta-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-800);
}
.inv-status-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.inv-status-success {
    background: #ecfdf5;
    color: #059669;
}
.inv-status-default {
    background: var(--grey-100);
    color: var(--grey-600);
}
.inv-modal-table {
    padding: 0 1.75rem;
    margin-top: 1rem;
}
.inv-modal-table table {
    width: 100%;
    border-collapse: collapse;
}
.inv-modal-table thead th {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--grey-400);
    font-weight: 600;
    padding: 0 0 0.5rem;
    border-bottom: 1px solid var(--grey-200);
}
.inv-th-desc { text-align: left; }
.inv-th-amt { text-align: right; }
.inv-modal-table tbody td {
    padding: 0.6rem 0;
    font-size: 0.85rem;
    color: var(--grey-700);
    border-bottom: 1px solid var(--grey-50, #f9fafb);
}
.inv-modal-table tbody td:last-child {
    text-align: right;
    font-weight: 600;
    font-family: monospace;
    color: var(--grey-800);
}
.inv-row-discount td { color: var(--grey-500); }
.inv-row-discount td:last-child { color: #059669; }
.inv-row-credit td { color: var(--grey-500); }
.inv-row-credit td:last-child { color: #059669; }
.inv-modal-totals {
    margin: 0.75rem 1.75rem 0;
    padding-top: 0.75rem;
    border-top: 2px solid var(--grey-200);
}
.inv-modal-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--grey-800);
}
.inv-modal-total-value {
    font-size: 1.05rem;
    font-family: monospace;
}
.inv-row-refund {
    font-size: 0.8rem;
    font-weight: 500;
    color: #dc2626;
}
.inv-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem;
    margin-top: 1rem;
    background: var(--grey-50, #f9fafb);
    border-top: 1px solid var(--grey-100);
    font-size: 0.7rem;
    color: var(--grey-400);
    font-family: monospace;
}
.invoice-card-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.inv-modal-meta {
    justify-content: space-between;
}
.inv-modal-meta-right {
    flex: 0 0 auto;
    min-width: 90px;
}
.inv-row-status {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--grey-200);
}

/* Billing History — Horizontal Row Cards */
.billing-history-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.billing-history-list {
    scrollbar-width: thin;
    scrollbar-color: var(--grey-300) transparent;
}
.billing-history-list::-webkit-scrollbar {
    width: 6px;
}
.billing-history-list::-webkit-scrollbar-track {
    background: var(--grey-100);
    border-radius: 4px;
}
.billing-history-list::-webkit-scrollbar-thumb {
    background: var(--grey-400);
    border-radius: 4px;
    min-height: 40px;
}
.billing-history-list::-webkit-scrollbar-thumb:hover {
    background: var(--grey-500);
}
.inv-row-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.inv-row-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
    border-color: var(--grey-300);
}
.inv-row-left {
    flex: 1;
    min-width: 0;
}
.inv-row-plan {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--grey-800);
    margin-bottom: 0.2rem;
}
.inv-row-plan i {
    color: var(--grey-400);
}
.inv-row-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.inv-row-date {
    font-size: 0.75rem;
    color: var(--grey-500);
}
.inv-row-id {
    font-size: 0.7rem;
    color: var(--grey-400);
    font-family: monospace;
}
.inv-row-id-label {
    font-family: inherit;
    font-weight: 600;
    color: var(--grey-500);
}
.inv-row-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px solid var(--grey-100);
}
.inv-row-amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--grey-800);
    white-space: nowrap;
    font-family: monospace;
}
.inv-row-period {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--grey-400);
}
.inv-row-btns {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
@media (max-width: 991.98px) {
    .billing-history-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575.98px) {
    .billing-history-list {
        grid-template-columns: 1fr;
    }
}

/* Payment Method Cards — Professional */
.pm-card {
    position: relative;
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    color: #fff;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.pm-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}
.pm-card::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}
.pm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.pm-card-default {
    background: linear-gradient(145deg, #1a365d 0%, #2b6cb0 100%);
}
.pm-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pm-card-brand-icon {
    font-size: 2rem;
    opacity: 0.9;
    line-height: 1;
}
.pm-card-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pm-card-number {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 3px;
    font-family: monospace;
    padding: 0.6rem 0;
    opacity: 0.95;
}
.pm-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.pm-card-brand-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
}
.pm-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}
.pm-card-default-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.15s;
    user-select: none;
}
.pm-card-default-toggle:hover {
    opacity: 1;
}
.pm-card-default-toggle input[type="checkbox"] {
    cursor: pointer;
    width: 0.85rem;
    height: 0.85rem;
    accent-color: #60a5fa;
}
.pm-card-toggle-text {
    white-space: nowrap;
}
.pm-card .btn-outline-danger {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    background: transparent;
    font-size: 0.7rem;
}
.pm-card .btn-outline-danger:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.5);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Current Plan — Professional */
.cp-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
}
.cp-hero-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.cp-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: var(--primary-color, #eab308);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.cp-hero-plan {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--grey-900);
    letter-spacing: -0.01em;
}
.cp-hero-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color, var(--primary));
    font-family: monospace;
    line-height: 1.3;
}
.cp-hero-period {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--grey-500);
    font-family: inherit;
}
.cp-hero-note {
    font-size: 0.78rem;
    color: var(--grey-500);
    margin-top: 1px;
}
.cp-hero-discount {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    margin-top: 2px;
}
.cp-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}
.cp-hero-actions .btn {
    white-space: nowrap;
}
.cp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.cp-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    transition: box-shadow 0.2s ease;
}
.cp-stat:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.cp-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.cp-stat-days {
    background: #eff6ff;
    color: #2563eb;
}
.cp-stat-members {
    background: #fef3c7;
    color: #d97706;
}
.cp-stat-billing {
    background: #f0fdf4;
    color: #16a34a;
}
.cp-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--grey-900);
    line-height: 1.2;
}
.cp-stat-value-muted {
    color: var(--grey-400);
}
.cp-stat-sep {
    font-weight: 400;
    color: var(--grey-400);
    margin: 0 0.1em;
}
.cp-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--grey-500);
    font-weight: 600;
}
.cp-stat-warn {
    font-size: 0.68rem;
    font-weight: 600;
    color: #dc2626;
    margin-top: 1px;
}
@media (max-width: 767.98px) {
    .cp-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .cp-hero-actions {
        flex-direction: row;
    }
    .cp-stats {
        grid-template-columns: 1fr;
    }
}

/* ====================================================
   HOMEPAGE PREMIUM REDESIGN
   ==================================================== */
.hp-premium {
    overflow-x: hidden;
    font-family: var(--font-family);
}
.hp-premium * {
    font-family: inherit;
}
.hp-premium .hero-section { display: none; }
.hp-premium .success-system { display: none; }

/* Hero */
.hp-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%);
    padding: 70px 0 100px;
    color: #fff;
    overflow: hidden;
}
.hp-hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hp-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}
.hp-shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; background: #38bdf8; }
.hp-shape-2 { width: 400px; height: 400px; bottom: -120px; left: -100px; background: #a78bfa; }
.hp-shape-3 { width: 250px; height: 250px; top: 30%; left: 45%; background: #34d399; }
.hp-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hp-hero-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.75rem;
}
.hp-hero-trust-pill i { color: #38bdf8; font-size: 1rem; }
.hp-premium .hp-hero-title {
    font-size: 2.85rem !important;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #fff !important;
}
.hp-hero-dynamic {
    color: #facc15;
    display: inline;
}
.hp-premium .dynamic-text { display: inline; }
.hp-premium .dynamic-text .text-item {
    display: none !important;
    opacity: 1 !important;
    font-size: 2.85rem !important;
    font-weight: 800 !important;
    color: #facc15 !important;
    animation: none !important;
}
.hp-premium .dynamic-text .text-item.active {
    display: inline !important;
    opacity: 1 !important;
    animation: hpTextIn 0.5s ease forwards !important;
}
@keyframes hpTextIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.hp-premium .hp-hero-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75) !important;
    max-width: 500px;
    margin-bottom: 2.25rem;
}
.hp-hero-ctas {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.hp-btn-primary {
    background: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
    color: #0f172a !important;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.2);
}
.hp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(234, 179, 8, 0.4);
    color: #0f172a !important;
}
.hp-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    transition: background 0.2s, border-color 0.2s;
}
.hp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

/* Hero Visual */
.hp-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.hp-hero-img-wrap {
    position: relative;
    padding: 0;
}
.hp-hero-img {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.hp-glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: hpFloat 4s ease-in-out infinite;
    min-width: 110px;
}
.hp-glass-matches {
    bottom: -30px;
    left: -35px;
    animation-delay: 0s;
}
.hp-glass-funded {
    top: -30px;
    right: -35px;
    animation-delay: 2s;
}
@keyframes hpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hp-glass-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.hp-glass-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Impact Metrics */
.hp-metrics {
    background: transparent;
    padding: 0 0 60px;
    position: relative;
    z-index: 2;
}
.hp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    margin-top: -55px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.hp-metric {
    padding: 2.25rem 1.5rem;
    text-align: center;
    border-right: 1px solid #f1f5f9;
    transition: background 0.2s;
}
.hp-metric:last-child { border-right: none; }
.hp-metric:hover { background: #fafbfd; }
.hp-metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}
.hp-metric:nth-child(1) .hp-metric-icon { background: #eff6ff; color: #2563eb; }
.hp-metric:nth-child(2) .hp-metric-icon { background: #ecfdf5; color: #059669; }
.hp-metric:nth-child(3) .hp-metric-icon { background: #fef3c7; color: #d97706; }
.hp-metric:nth-child(4) .hp-metric-icon { background: #fce7f3; color: #db2777; }
.hp-metric-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.hp-metric-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 0.35rem;
}

/* How It Works Section */
.hp-how {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.hp-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.hp-section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.hp-premium .hp-section-title {
    font-size: 2.25rem !important;
    font-weight: 800;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}
.hp-section-sub {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* How It Works – Two column: image + vertical steps */
.hp-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

/* Left: Dark image card */
.hp-bento-img {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.hp-bento-img::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.06);
    top: -60px;
    right: -60px;
}
.hp-bento-img .steps-img-wrapper {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    position: relative;
    z-index: 1;
}
.hp-bento-img .steps-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

/* Right: Vertical steps with connecting bar */
.hp-bento-steps {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}
.hp-vs {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding-left: 48px;
}
.hp-vs::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 24px;
    bottom: 24px;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 17%, #06b6d4 33%, #10b981 50%, #f59e0b 67%, #ef4444 83%, #334155 100%);
    border-radius: 3px;
}

.hp-vs-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 1rem 0.5rem 0;
    position: relative;
    transition: transform 0.2s;
    cursor: default;
}
.hp-vs-item:hover { transform: translateX(5px); }
.hp-vs-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
}

.hp-vs-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}
.hp-vs-item:hover .hp-vs-dot {
    transform: scale(1.15);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.hp-bs-1 .hp-vs-dot { background: #3b82f6; color: #fff; }
.hp-bs-2 .hp-vs-dot { background: #8b5cf6; color: #fff; }
.hp-bs-3 .hp-vs-dot { background: #06b6d4; color: #fff; }
.hp-bs-4 .hp-vs-dot { background: #10b981; color: #fff; }
.hp-bs-5 .hp-vs-dot { background: #f59e0b; color: #fff; }
.hp-bs-6 .hp-vs-dot { background: #ef4444; color: #fff; }
.hp-bs-7 .hp-vs-dot { background: #334155; color: #fff; }

.hp-vs-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}
.hp-vs-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hp-bento { grid-template-columns: 1fr; }
    .hp-bento-img { min-height: 360px; }
}
@media (max-width: 575.98px) {
    .hp-how { padding: 60px 0; }
    .hp-bento-img { padding: 1.5rem; min-height: 280px; }
    .hp-vs { padding-left: 42px; }
    .hp-vs::before { left: 16px; }
    .hp-vs-dot { width: 34px; height: 34px; font-size: 0.9rem; }
}

/* ======= Industry Segments ======= */
.hp-segments {
    padding: 90px 0;
    background: #f8fafc;
}
.hp-seg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.hp-seg-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.hp-seg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    border-color: transparent;
}
.hp-seg-featured {
    border: 2px solid #eab308;
    background: linear-gradient(180deg, #fffef5 0%, #fff 40%);
}
.hp-seg-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #eab308;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hp-seg-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}
.hp-seg-card:nth-child(1) .hp-seg-icon { background: #eff6ff; color: #3b82f6; }
.hp-seg-card:nth-child(2) .hp-seg-icon { background: #fefce8; color: #eab308; }
.hp-seg-card:nth-child(3) .hp-seg-icon { background: #fdf2f8; color: #ec4899; }
.hp-seg-card:nth-child(4) .hp-seg-icon { background: #f0fdf4; color: #22c55e; }
.hp-seg-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.6rem;
}
.hp-seg-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}
.hp-seg-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hp-seg-list li {
    font-size: 0.85rem;
    color: #334155;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hp-seg-list li i {
    color: #22c55e;
    font-size: 0.8rem;
}
.hp-resource-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569 !important;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    letter-spacing: 0.01em;
}
.hp-resource-badge i {
    font-size: 0.75rem;
    color: #64748b;
}
.res-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.res-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.res-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.res-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.res-card-icon-sm {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.res-card-icon-sm i {
    font-size: 1.2rem;
    color: #fff !important;
}
.res-card-meta-sm {
    display: flex;
    gap: 8px;
}
.res-card-body {
    padding: 28px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.res-card-title {
    font-size: 1.15rem !important;
    font-weight: 800;
    color: #0f172a !important;
    margin: 0 0 8px !important;
}
.res-card-desc {
    font-size: 0.88rem !important;
    color: #64748b !important;
    line-height: 1.65;
    margin: 0 0 16px;
    flex: 1;
}
.res-card-footer {
    margin-top: auto;
}
.res-card-btn {
    font-size: 0.85rem !important;
    padding: 8px 22px !important;
}
.res-card-btn-disabled {
    font-size: 0.85rem;
    padding: 8px 22px;
    background: #e2e8f0;
    color: #94a3b8;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: not-allowed;
}
@media (max-width: 767.98px) {
    .res-grid {
        grid-template-columns: 1fr;
    }
}

/* ======= Success Stories ======= */
.hp-stories {
    padding: 90px 0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.hp-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.hp-story-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}
.hp-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.hp-story-highlight {
    border: 2px solid #eab308;
    box-shadow: 0 8px 30px rgba(234,179,8,0.12);
}
.hp-story-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.hp-story-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.hp-story-badge {
    background: #f0fdf4;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.hp-story-badge i { font-size: 0.7rem; }
.hp-story-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}
.hp-story-type {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
}
.hp-story-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.3rem;
}
.hp-story-stats {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}
.hp-story-stat {
    display: flex;
    flex-direction: column;
}
.hp-story-stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #eab308;
}
.hp-story-stat-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ======= Testimonials ======= */
.hp-testimonials {
    padding: 90px 0;
    background: #0f172a;
}
.hp-testimonials .hp-section-tag { color: #eab308; }
.hp-testimonials .hp-section-title { color: #fff; }
.hp-testimonials .hp-section-sub { color: #94a3b8; }
.hp-test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.hp-test-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.3s ease;
}
.hp-test-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.hp-test-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1rem;
}
.hp-test-stars i {
    color: #eab308;
    font-size: 0.85rem;
}
.hp-test-quote {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.hp-test-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hp-test-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hp-test-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
.hp-test-role {
    font-size: 0.78rem;
    color: #64748b;
}

/* Responsive - New Sections */
@media (max-width: 991.98px) {
    .hp-seg-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-stories-grid { grid-template-columns: 1fr; }
    .hp-test-grid { grid-template-columns: 1fr; }
    .hp-partners-strip { gap: 2rem; }
}
@media (max-width: 575.98px) {
    .hp-seg-grid { grid-template-columns: 1fr; }
    .hp-segments, .hp-stories, .hp-testimonials { padding: 60px 0; }
    .hp-story-amount { font-size: 1.6rem; }
    .hp-partners-strip { gap: 1.5rem; }
    .hp-partner-logo img { max-height: 36px; }
}

/* Partners */
.hp-partners {
    padding: 50px 0;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.hp-partners-label {
    text-align: center;
    font-size: 0.88rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}
.hp-partners-label strong {
    color: #475569;
}
.hp-partners-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.hp-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.hp-partner-logo:hover {
    transform: scale(1.1);
}
.hp-partner-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* CTA */
.hp-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
    position: relative;
    overflow: hidden;
}
.hp-cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.06);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.hp-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hp-premium .hp-cta-title {
    font-size: 2.5rem !important;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.hp-premium .hp-cta-sub {
    font-size: 1.05rem;
    color: #e2e8f0 !important;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}
.hp-cta-btns {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hp-btn-cta {
    background: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
    color: #0f172a !important;
    font-weight: 700;
    padding: 0.9rem 2.25rem;
    border-radius: 12px;
    border: none;
    font-size: 1.05rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.25);
}
.hp-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(234, 179, 8, 0.4);
    color: #0f172a !important;
}
.hp-btn-cta-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    font-weight: 600;
    padding: 0.9rem 2.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.05rem;
    transition: background 0.2s, border-color 0.2s;
}
.hp-btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hp-hero { padding: 80px 0 70px; }
    .hp-hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hp-premium .hp-hero-title { font-size: 2.3rem !important; }
    .hp-premium .dynamic-text .text-item { font-size: 2.3rem !important; }
    .hp-hero-sub { margin-left: auto; margin-right: auto; }
    .hp-hero-ctas { justify-content: center; }
    .hp-hero-visual { order: -1; }
    .hp-hero-img { max-width: 340px; }
    .hp-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-metric:nth-child(1), .hp-metric:nth-child(2) { border-bottom: 1px solid #f1f5f9; }
    .hp-success-grid { grid-template-columns: 1fr; gap: 40px; }
    .hp-cta-title { font-size: 2rem; }
}
@media (max-width: 575.98px) {
    .hp-hero { padding: 60px 0 50px; }
    .hp-premium .hp-hero-title { font-size: 1.85rem !important; }
    .hp-premium .dynamic-text .text-item { font-size: 1.85rem !important; }
    .hp-hero-sub { font-size: 0.95rem; }
    .hp-hero-ctas { flex-direction: column; }
    .hp-hero-ctas .btn { width: 100%; }
    .hp-metrics-grid { grid-template-columns: 1fr; margin-top: -30px; }
    .hp-metric { border-right: none; border-bottom: 1px solid #f1f5f9; }
    .hp-metric:last-child { border-bottom: none; }
    .hp-section-title { font-size: 1.65rem; }
    .hp-cta-title { font-size: 1.75rem; }
    .hp-glass-matches { left: 0; bottom: 5px; }
    .hp-glass-funded { right: 0; top: 5px; }
}

/* Scroll Reveal Animations */
@keyframes hp-fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hp-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes hp-fadeLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes hp-fadeRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes hp-scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.hp-reveal {
    opacity: 0;
    will-change: transform, opacity;
}
.hp-reveal.hp-visible {
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-reveal.hp-fade-up.hp-visible { animation-name: hp-fadeUp; }
.hp-reveal.hp-fade-in.hp-visible { animation-name: hp-fadeIn; }
.hp-reveal.hp-fade-left.hp-visible { animation-name: hp-fadeLeft; }
.hp-reveal.hp-fade-right.hp-visible { animation-name: hp-fadeRight; }
.hp-reveal.hp-scale-in.hp-visible { animation-name: hp-scaleIn; }

.hp-reveal.hp-visible { animation-duration: 0.8s; }
.hp-delay-1 { animation-delay: 0.1s; }
.hp-delay-2 { animation-delay: 0.2s; }
.hp-delay-3 { animation-delay: 0.3s; }
.hp-delay-4 { animation-delay: 0.4s; }
.hp-delay-5 { animation-delay: 0.5s; }
.hp-delay-6 { animation-delay: 0.6s; }
.hp-delay-7 { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
    .hp-reveal { opacity: 1; transform: none; animation: none !important; }
}

/* Services page uses hp-* classes for full consistency */

/* =====================================================
   DASHBOARD – MODERN OVERRIDES
   ===================================================== */

.dashboard-page {
    background: #fff !important;
}

/* Kill container-fluid padding so header and content align edge-to-edge */
.dashboard-page > .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---- Header: clean modern dashboard banner ---- */
.dashboard-header.bg-light {
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.dashboard-header h1 {
    color: #0f172a !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem !important;
}
.dashboard-header .text-muted {
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
}

/* ── Admin header controls (link style) ── */
.dh-admin-controls {
    border-right: 1px solid var(--grey-200);
    padding-right: 1rem !important;
}
.dh-admin-link {
    display: inline-flex !important;
    align-items: center !important;
    color: var(--grey-600) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 0.3rem 0 !important;
    transition: color 0.15s;
    white-space: nowrap;
}
.dh-admin-link:hover {
    color: var(--grey-900) !important;
}
.dh-admin-link .bi-building {
    font-size: 0.9rem;
}
.dh-admin-link .dh-chevron {
    font-size: 0.65rem !important;
    transition: transform 0.2s;
}
.dropdown.show .dh-admin-link .dh-chevron {
    transform: rotate(180deg);
}

/* Admin navbar – link style */
.admin-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    background: none !important;
    border: none !important;
    color: var(--grey-600) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 0.3rem 0 !important;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
    text-decoration: none !important;
}
.admin-nav-link:hover {
    color: var(--grey-900) !important;
}
.admin-nav-link::after {
    display: none !important;
}
.admin-nav-link .admin-nav-chevron {
    font-size: 0.6rem !important;
    transition: transform 0.2s;
    margin-left: 0.1rem;
}
.dropdown.show > .admin-nav-link .admin-nav-chevron {
    transform: rotate(180deg);
}
.admin-nav-link:disabled,
.admin-nav-link[disabled] {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
@keyframes admin-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.admin-spin {
    display: inline-block;
    animation: admin-spin 0.8s linear infinite;
}
.admin-nav-bar {
    border-right: 1px solid var(--grey-200);
    padding-right: 1rem !important;
}
#admin-company-dropdown .dropdown-menu {
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06) !important;
    border: 1px solid var(--grey-200) !important;
    overflow: hidden;
}

/* Header buttons: cyber clip-path style */
.dashboard-header .btn-gradient-yellow {
    --db-border-color: linear-gradient(-45deg, #fef08a, #eab308, #ca8a04);
    --db-border-width: 0.125em;
    --db-curve-size: 0.5em;
    --db-bg: #0f172a;
    color: #fff !important;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    display: inline-grid;
    place-content: center;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.35) !important;
    clip-path: polygon(
        0% var(--db-curve-size),
        var(--db-curve-size) 0,
        100% 0,
        100% calc(100% - var(--db-curve-size)),
        calc(100% - var(--db-curve-size)) 100%,
        0 100%
    );
    transition: color 250ms;
}
.dashboard-header .btn-gradient-yellow::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: var(--db-border-color) !important;
    background-size: 300% 300% !important;
    animation: dbBtnBorder 5s ease infinite !important;
    z-index: -2 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    pointer-events: none;
}
@keyframes dbBtnBorder {
    0% { background-position: 31% 0%; }
    50% { background-position: 70% 100%; }
    100% { background-position: 31% 0%; }
}
.dashboard-header .btn-gradient-yellow::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: var(--db-bg) !important;
    z-index: -1 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    pointer-events: none;
    clip-path: polygon(
        var(--db-border-width) calc(var(--db-curve-size) + var(--db-border-width) * 0.5),
        calc(var(--db-curve-size) + var(--db-border-width) * 0.5) var(--db-border-width),
        calc(100% - var(--db-border-width)) var(--db-border-width),
        calc(100% - var(--db-border-width)) calc(100% - calc(var(--db-curve-size) + var(--db-border-width) * 0.5)),
        calc(100% - calc(var(--db-curve-size) + var(--db-border-width) * 0.5)) calc(100% - var(--db-border-width)),
        var(--db-border-width) calc(100% - var(--db-border-width))
    );
    transition: clip-path 500ms;
}
.dashboard-header .btn-gradient-yellow:hover,
.dashboard-header .btn-gradient-yellow:focus {
    color: #fff !important;
    background: transparent !important;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.5) !important;
}
.dashboard-header .btn-gradient-yellow:hover::after,
.dashboard-header .btn-gradient-yellow:focus::after {
    clip-path: polygon(
        calc(100% - var(--db-border-width)) calc(100% - calc(var(--db-curve-size) + var(--db-border-width) * 0.5)),
        calc(100% - var(--db-border-width)) var(--db-border-width),
        calc(100% - var(--db-border-width)) var(--db-border-width),
        calc(100% - var(--db-border-width)) calc(100% - calc(var(--db-curve-size) + var(--db-border-width) * 0.5)),
        calc(100% - calc(var(--db-curve-size) + var(--db-border-width) * 0.5)) calc(100% - var(--db-border-width)),
        calc(100% - calc(var(--db-curve-size) + var(--db-border-width) * 0.5)) calc(100% - var(--db-border-width))
    );
    transition: 200ms;
}
.dashboard-header .btn-gradient-red {
    background: transparent !important;
    color: #ef4444 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.15rem !important;
}
.dashboard-header .btn-gradient-red:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
}

.dashboard-header .btn.disabled,
.dashboard-header .btn[disabled],
.dashboard-header .btn[aria-disabled="true"] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.dashboard-header .alert {
    border-radius: 8px !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    padding: 0.65rem 1rem !important;
    border: none !important;
}
.dashboard-header .alert-danger  { background: #fef2f2 !important; color: #991b1b !important; }
.dashboard-header .alert-warning { background: #fffbeb !important; color: #92400e !important; }
.dashboard-header .alert-info    { background: #eff6ff !important; color: #1e40af !important; }
.dashboard-header .alert .alert-link {
    color: inherit !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

/* ---- Tabs bar: sits right below header, same full width ---- */
.dashboard-page > .container-fluid > .container {
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}
.dashboard-page .nav-tabs.mb-4 {
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0 !important;
}
.dashboard-page .tab-content {
    padding-top: 0 !important;
    padding-bottom: 2.5rem;
}
.dashboard-page .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.75rem 1rem;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.dashboard-page .nav-tabs .nav-item:first-child .nav-link {
    padding-left: 0;
}
.dashboard-page .nav-tabs .nav-link:hover {
    color: #0f172a;
    border-bottom-color: #cbd5e1;
    background: transparent;
}
.dashboard-page .nav-tabs .nav-link.active {
    color: #0f172a;
    border-bottom-color: #eab308;
    background: transparent;
}

/* ---- Header inner container also goes full width ---- */
.dashboard-header .container {
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

/* ---- HOME TAB – MODERN OVERRIDES (uses project design tokens) ---- */

/* Outer section wrapper – transparent, just spacing */
.dashboard-page #home .home-section.account-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.75rem 0 0 !important;
}
.dashboard-page #home .home-section.account-section > .row {
    --bs-gutter-x: 1.5rem !important;
    --bs-gutter-y: 1.5rem !important;
}

/* ── Value Banner: gradient yellow KPI card ── */
/* Value banner: outer glow border wrapper */
.dashboard-page .home-value-banner {
    min-height: auto !important;
    background: radial-gradient(circle 230px at 0% 0%, #ffffff, #0c0d0d) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 1px !important;
    margin-bottom: 1.5rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    position: relative;
    overflow: hidden;
}


/* Inner card surface */
.dashboard-page .home-value-banner::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%);
    z-index: 0;
}

/* Label */
.dashboard-page .home-value-banner .value-banner-label {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.45) !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.5rem 0.25rem !important;
    text-align: center !important;
}

/* Amount: large glowing white */
.dashboard-page .home-value-banner .value-banner-amount {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: 0 0 30px rgba(255,255,255,0.15), 0 0 60px rgba(255,255,255,0.05) !important;
    letter-spacing: -0.03em !important;
    position: relative;
    z-index: 2;
    padding: 0.15rem 1.5rem 1.25rem !important;
    text-align: center !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Light ray effect – disabled */

/* ── Each column: 3D card wrapper ── */
.dashboard-page #home .home-section .row {
    perspective: 1200px;
}
.dashboard-page #home .home-section .row > .col-lg-6 {
    display: flex !important;
    flex-direction: column !important;
}

/* Card shell: wraps title + desc + list into one visual card */
.dashboard-page #home .home-section .row > .col-lg-6 > .title-banner,
.dashboard-page #home .home-section .row > .col-lg-6 > .home-section-desc,
.dashboard-page #home .home-section .row > .col-lg-6 > .account-section-inner {
    margin-left: 0;
    margin-right: 0;
}

/* Title banner: gradient header with left accent */
.dashboard-page #home .home-section-title-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%) !important;
    border: none !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #home .home-section-title-banner::before {
    display: none;
}
.dashboard-page #home .home-section-title-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    right: -60px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #home .home-section-title-banner .home-section-title {
    font-size: var(--text-title) !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
}
.dashboard-page #home .title-banner-count {
    font-size: var(--text-body) !important;
    color: rgba(255,255,255,0.5) !important;
    font-weight: 500 !important;
    position: relative;
    z-index: 1;
}

/* Description */
.dashboard-page #home .home-section-desc {
    font-size: var(--text-body) !important;
    color: var(--grey-500) !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
    padding: 0.65rem 1.25rem !important;
    background: var(--white) !important;
    border-left: 1px solid var(--grey-200) !important;
    border-right: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-bottom: 1px solid var(--grey-200) !important;
    line-height: 1.5 !important;
}

/* Account-section-inner: card body */
.dashboard-page #home .account-section-inner {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow:
        0 14px 28px rgba(0,0,0,0.08),
        0 6px 10px rgba(0,0,0,0.05),
        0 0 0 1px rgba(0,0,0,0.02) !important;
    padding: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 3D hover lift on the whole card area */
.dashboard-page #home .home-section .row > .col-lg-6:hover .account-section-inner {
    box-shadow:
        0 20px 40px rgba(0,0,0,0.12),
        0 8px 16px rgba(0,0,0,0.06),
        0 0 0 1px rgba(0,0,0,0.03) !important;
    transform: translateY(-3px);
}
.dashboard-page #home .home-section .row > .col-lg-6:hover .home-section-title-banner {
    transform: translateY(-3px);
}
.dashboard-page #home .home-section .row > .col-lg-6:hover .home-section-desc {
    transform: translateY(-3px);
}
.dashboard-page #home .home-section-title-banner,
.dashboard-page #home .home-section-desc {
    transition: transform 0.3s ease;
}

/* ── Scroll area ── */
.dashboard-page .home-section-list-scroll {
    height: 380px !important;
    padding: 0 !important;
}

/* ── List items (shared base) ── */
.dashboard-page .home-matches-list.list-group-separated .list-group-item,
.dashboard-page .home-portfolio-list.list-group-separated .list-group-item {
    border: none !important;
    border-bottom: 1px solid var(--grey-200) !important;
    border-radius: 0 !important;
    padding: 0.85rem 1.25rem !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    background: var(--white) !important;
    font-size: var(--text-body) !important;
    min-height: auto !important;
    transition: background 0.15s;
}
.dashboard-page .home-matches-list .list-group-item:hover,
.dashboard-page .home-portfolio-list .list-group-item:hover {
    background: var(--grey-50) !important;
}
.dashboard-page .home-matches-list .list-group-item:last-child,
.dashboard-page .home-portfolio-list .list-group-item:last-child {
    border-bottom: none !important;
}

/* ── Saved Grants: premium list (same pattern as matches) ── */
.dashboard-page .home-portfolio-list.list-group-separated {
    counter-reset: portfolio-row;
}
.dashboard-page .home-portfolio-list.list-group-separated .list-group-item {
    padding: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
    margin-bottom: 0 !important;
}
.dashboard-page .home-portfolio-list .list-group-item.d-flex {
    background: var(--white) !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.15rem 0.75rem 3.2rem !important;
    border-bottom: 1px solid var(--grey-200) !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
    position: relative;
    counter-increment: portfolio-row;
}
.dashboard-page .home-portfolio-list .list-group-item.d-flex::before {
    content: counter(portfolio-row, decimal-leading-zero);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--grey-500);
    letter-spacing: 0.02em;
    width: 1.6rem;
    text-align: center;
}
.dashboard-page .home-portfolio-list .list-group-item.d-flex:nth-child(even) {
    background: var(--grey-50) !important;
}
.dashboard-page .home-portfolio-list .list-group-item.d-flex:hover {
    background: var(--accent-blue) !important;
}
.dashboard-page .home-portfolio-list .list-group-item.d-flex:hover::before {
    color: var(--primary-dark);
}
.dashboard-page .home-portfolio-list .list-group-item:last-child.d-flex {
    border-bottom: none !important;
}
.dashboard-page .home-portfolio-list .list-group-item .text-truncate {
    font-weight: 600 !important;
    color: var(--grey-800) !important;
    font-size: 0.95rem !important;
}
.dashboard-page .home-portfolio-list .list-group-item .small.text-muted {
    font-size: 0.82rem !important;
    color: var(--grey-500) !important;
}
.dashboard-page .home-portfolio-list .list-group-item .small.text-muted i {
    color: var(--grey-500) !important;
}

/* Portfolio scroll area */
.dashboard-page #home-portfolio-list-scroll {
    padding: 0 !important;
}
.dashboard-page #home-portfolio-list-scroll::-webkit-scrollbar {
    width: 4px;
}
.dashboard-page #home-portfolio-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.dashboard-page #home-portfolio-list-scroll::-webkit-scrollbar-thumb {
    background: var(--grey-200);
    border-radius: 4px;
}
.dashboard-page #home-portfolio-list-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--grey-500);
}

/* ── Your Matches: premium list ── */
.dashboard-page .home-matches-list.list-group-separated {
    counter-reset: match-row;
}
.dashboard-page .home-matches-list.list-group-separated .list-group-item {
    padding: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
    margin-bottom: 0 !important;
}
.dashboard-page .home-matches-list .list-group-item.d-flex {
    background: var(--white) !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.15rem 0.75rem 3.2rem !important;
    border-bottom: 1px solid var(--grey-200) !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
    position: relative;
    counter-increment: match-row;
}
.dashboard-page .home-matches-list .list-group-item.d-flex::before {
    content: counter(match-row, decimal-leading-zero);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--grey-500);
    letter-spacing: 0.02em;
    width: 1.6rem;
    text-align: center;
}
.dashboard-page .home-matches-list .list-group-item.d-flex:nth-child(even) {
    background: var(--grey-50) !important;
}
.dashboard-page .home-matches-list .list-group-item.d-flex:hover {
    background: var(--accent-blue) !important;
}
.dashboard-page .home-matches-list .list-group-item.d-flex:hover::before {
    color: var(--primary-dark);
}
.dashboard-page .home-matches-list .list-group-item:last-child.d-flex {
    border-bottom: none !important;
}
.dashboard-page .home-matches-list .list-group-item .text-truncate {
    font-weight: 600 !important;
    color: var(--grey-800) !important;
    font-size: 0.95rem !important;
}
.dashboard-page .home-matches-list .list-group-item > span.text-muted {
    font-size: 0.92rem !important;
    color: var(--grey-700) !important;
    background: #ddd !important;
    padding: 0.3rem 0.85rem !important;
    border-radius: 20px !important;
    border: none !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}
.dashboard-page .home-matches-list .list-group-item > span.text-muted i {
    color: var(--grey-600) !important;
}

/* Matches scroll area */
.dashboard-page #home-matches-list-scroll {
    padding: 0 !important;
}
.dashboard-page #home-matches-list-scroll::-webkit-scrollbar {
    width: 4px;
}
.dashboard-page #home-matches-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.dashboard-page #home-matches-list-scroll::-webkit-scrollbar-thumb {
    background: var(--grey-200);
    border-radius: 4px;
}
.dashboard-page #home-matches-list-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--grey-500);
}

/* ── Status badges ── */
.dashboard-page .portfolio-status {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 0.15rem 0.55rem !important;
    border-radius: var(--radius-box) !important;
    white-space: nowrap !important;
}
.dashboard-page .portfolio-status-added       { background: var(--grey-100) !important; color: var(--grey-600) !important; }
.dashboard-page .portfolio-status-new         { background: var(--grey-100) !important; color: var(--grey-600) !important; }
.dashboard-page .portfolio-status-in-progress { background: var(--accent-blue) !important; color: #1d4ed8 !important; }
.dashboard-page .portfolio-status-submitted   { background: #fef9c3 !important; color: #a16207 !important; }
.dashboard-page .portfolio-status-approved    { background: #dcfce7 !important; color: #166534 !important; }
.dashboard-page .portfolio-status-rejected    { background: #fee2e2 !important; color: #b91c1c !important; }

/* ── Admin stat cards ── */
.dashboard-page #home h4.fw-bold {
    font-size: var(--text-title) !important;
    font-weight: 700 !important;
    color: var(--grey-900) !important;
    margin-bottom: 1rem !important;
}
.dashboard-page #home .resource-card.resource-card-wrap {
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08) !important;
    transition: box-shadow 0.25s, transform 0.25s;
    overflow: hidden;
    position: relative;
}
.dashboard-page #home .resource-card.resource-card-wrap::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: -40px;
    right: -30px;
    background: rgba(56,189,248,0.08);
    border-radius: 50%;
    pointer-events: none;
}
.dashboard-page #home .resource-card.resource-card-wrap:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px);
}
.dashboard-page #home .resource-card .card-body {
    padding: 1.25rem !important;
    position: relative;
    z-index: 1;
}
.dashboard-page #home .resource-card .card-body h5 {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    color: rgba(255,255,255,0.45) !important;
    text-transform: uppercase !important;
    margin-bottom: 0.5rem !important;
}
.dashboard-page #home .resource-card .card-body .fs-3 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.1 !important;
}

/* =====================================================
   LIST BUILDING TAB – MODERN OVERRIDES
   ===================================================== */

/* ── Whole tab: layout spacing ── */
.dashboard-page #list-building {
    padding-top: 0.5rem !important;
}

/* ── Title: dark hero banner ── */
.dashboard-page #list-building > h4 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    color: #fff !important;
    font-size: var(--text-title) !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 1.1rem 1.25rem 0.3rem !important;
    border-radius: 14px 14px 0 0 !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #list-building > h4::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    right: -60px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #list-building > p.text-muted {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.9rem !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 1.25rem 1rem !important;
}

/* ── Toolbar: single row ── */
.dashboard-page #list-building .lb-toolbar-row1 {
    background: var(--white) !important;
    border: 1px solid var(--grey-200);
    border-radius: 10px !important;
    padding: 0.75rem 1.15rem !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.65rem !important;
}
.dashboard-page #list-building .lb-toolbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    flex-wrap: nowrap !important;
}
.dashboard-page #list-building .lb-toolbar-row1 .lb-sort-select {
    min-width: 200px !important;
    flex: 0 0 auto !important;
}
.dashboard-page #list-building .lb-toolbar-row1 #lb-search {
    min-width: 300px !important;
    flex: 1 1 auto !important;
}
.dashboard-page #list-building .lb-toolbar-row1 .lb-grant-count {
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

/* Inputs & select: same height */
.dashboard-page #list-building .form-select,
.dashboard-page #list-building .form-control {
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    font-size: var(--text-body) !important;
    height: 2.4rem !important;
    padding: 0 0.85rem !important;
    background: var(--grey-50) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dashboard-page #list-building .form-select:focus,
.dashboard-page #list-building .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
    background: var(--white) !important;
}

/* Filter button: same height as inputs */
.dashboard-page #list-building #lb-filter-btn {
    border-radius: 8px !important;
    font-weight: 700 !important;
    height: 2.4rem !important;
    padding: 0 1rem !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* Grant count badge — same height as pagination buttons */
.dashboard-page #list-building .lb-grant-count {
    text-transform: capitalize !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    height: 2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 0.9rem !important;
    line-height: 1 !important;
}

/* Pagination buttons — same height as grant count */
.dashboard-page #list-building .lb-page-prev,
.dashboard-page #list-building .lb-page-next {
    border-radius: 8px !important;
    border: 1px solid var(--grey-200) !important;
    background: var(--grey-50) !important;
    height: 2rem !important;
    width: 2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.2s;
}
.dashboard-page #list-building .lb-page-prev:hover:not(:disabled),
.dashboard-page #list-building .lb-page-next:hover:not(:disabled) {
    background: var(--white) !important;
    border-color: var(--primary-color) !important;
}

/* Bottom pagination */
.dashboard-page #list-building .lb-bottom-pagination {
    padding: 0.75rem 0 0 0 !important;
}

/* ── Filter panel ── */
.dashboard-page #list-building .lb-filter-panel-styled {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    border-top: none !important;
}
.dashboard-page #list-building .lb-filter-panel-header {
    background: var(--grey-50) !important;
    padding: 0.75rem 1.25rem !important;
    border-bottom: 1px solid var(--grey-200) !important;
}
.dashboard-page #list-building .lb-filter-panel-title {
    color: var(--grey-800) !important;
    font-size: var(--text-body) !important;
    font-weight: 700 !important;
}
.dashboard-page #list-building .lb-filter-panel-title i {
    color: var(--primary-color) !important;
}
.dashboard-page #list-building .lb-filter-panel-body {
    padding: 1rem 1.25rem !important;
}
.dashboard-page #list-building .lb-filter-panel-body .form-label {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: var(--text-body) !important;
    font-weight: 600 !important;
    color: var(--grey-700) !important;
}
.dashboard-page #list-building .lb-filter-panel-footer {
    background: var(--grey-50) !important;
    border-top: 1px solid var(--grey-200) !important;
    padding: 0.65rem 1.25rem !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
}
.dashboard-page #list-building .lb-filter-panel-footer #lb-filter-clear,
.dashboard-page #list-building .lb-filter-panel-footer #lb-filter-apply {
    height: 2.2rem !important;
    padding: 0 1.1rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}
.dashboard-page #list-building .lb-filter-panel-footer #lb-filter-clear {
    background: var(--gradient-gray) !important;
    color: var(--white) !important;
    border: 1px solid rgba(75,85,99,0.5) !important;
}
.dashboard-page #list-building .lb-filter-panel-footer #lb-filter-clear:hover {
    background: var(--gradient-gray-hover) !important;
}

/* ── Active filter badges ── */
.dashboard-page #list-building #lb-active-filters {
    background: var(--white) !important;
    border-left: 1px solid var(--grey-200);
    border-right: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
    margin: 0 !important;
    padding: 0.5rem 1.15rem !important;
    min-height: auto !important;
}
.dashboard-page #list-building #lb-active-filters:empty {
    padding: 0 !important;
    border: none !important;
}
.dashboard-page #list-building #lb-active-filters .badge {
    border-radius: 20px !important;
    font-weight: 600 !important;
}

/* ── Grant list wrapper: card bottom ── */
.dashboard-page #list-building > .account-section-inner {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03) !important;
    padding: 1rem !important;
}

/* ── Grant accordion items ── */
.dashboard-page #list-building .lb-accordion-item {
    border: 1px solid var(--grey-200) !important;
    border-radius: 10px !important;
    margin-bottom: 0.5rem !important;
    background: var(--white) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden !important;
}
.dashboard-page #list-building .lb-accordion-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.07) !important;
    border-color: var(--accent-blue-border) !important;
}
.dashboard-page #list-building .lb-accordion-item .accordion-button {
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    background: var(--white) !important;
}
.dashboard-page #list-building .lb-accordion-item .accordion-button:not(.collapsed) {
    background: var(--grey-50) !important;
    border-radius: 10px 10px 0 0 !important;
}
.dashboard-page #list-building .lb-grant-name {
    font-weight: 700 !important;
    color: var(--grey-900) !important;
}
.dashboard-page #list-building .lb-accordion-body {
    background: var(--grey-50) !important;
    border-top: 1px solid var(--grey-200) !important;
    padding: 0.85rem 1rem !important;
}
.dashboard-page #list-building .lb-grant-detail dt {
    color: var(--grey-500) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.03em !important;
}
.dashboard-page #list-building .lb-grant-detail dd {
    color: var(--grey-800) !important;
}

/* Star button */
.dashboard-page #list-building .lb-star-btn .bi-star-fill {
    color: var(--primary-color) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #list-building > h4 {
        border-radius: 10px 10px 0 0 !important;
        padding: 0.85rem 1rem 0.25rem !important;
    }
    .dashboard-page #list-building > p.text-muted {
        padding: 0 1rem 0.75rem !important;
    }
    .dashboard-page #list-building .lb-toolbar-row1 {
        flex-wrap: wrap !important;
        padding: 0.65rem 0.75rem !important;
    }
    .dashboard-page #list-building .lb-toolbar-left {
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    .dashboard-page #list-building .lb-toolbar-row1 .lb-sort-select,
    .dashboard-page #list-building .lb-toolbar-row1 #lb-search {
        min-width: 100% !important;
    }
    .dashboard-page #list-building .lb-toolbar-row1 .lb-grant-count {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
    }
    .dashboard-page #list-building > .account-section-inner {
        padding: 0.65rem !important;
        border-radius: 0 0 10px 10px !important;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .dashboard-header h1 { font-size: 1.15rem !important; }
    .dashboard-header .btn-gradient-yellow,
    .dashboard-header .btn-gradient-red {
        font-size: 0.76rem !important;
        padding: 0.4rem 0.85rem !important;
    }
    .dashboard-page > .container-fluid > .container,
    .dashboard-header .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .dashboard-page .nav-tabs {
        margin-left: 0;
        margin-right: 0;
        padding: 0 0.75rem;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .dashboard-page .nav-tabs .nav-link {
        font-size: 0.78rem;
        padding: 0.6rem 0.65rem;
    }
    .dashboard-page .home-value-banner .value-banner-amount {
        font-size: 1.8rem !important;
    }
    .dashboard-page .home-section-list-scroll {
        height: 300px !important;
    }
}

/* =====================================================
   SAVED GRANTS TAB – MODERN OVERRIDES
   ===================================================== */

/* Tab spacing */
.dashboard-page #saved-grants {
    padding-top: 0.5rem !important;
}

/* ── Hero banner: top bar (title + buttons) ── */
.dashboard-page #saved-grants .sg-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1.1rem 1.25rem 0.3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #saved-grants .sg-hero-bar::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    right: -60px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #saved-grants .sg-hero-bar h4 {
    color: #fff !important;
    font-size: var(--text-title) !important;
    font-weight: 800 !important;
    margin: 0 !important;
}
.dashboard-page #saved-grants .sg-hero-actions .btn {
    height: 2.2rem !important;
    padding: 0 1.1rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* ── Hero banner: bottom description ── */
.dashboard-page #saved-grants > .sg-hero-desc {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.9rem !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 1.25rem 1rem !important;
}

/* ── Two-column cards ── */
.dashboard-page #saved-grants .home-section.account-section > .row {
    --bs-gutter-x: 1.5rem !important;
    --bs-gutter-y: 1.5rem !important;
}

/* Card wrapper */
.dashboard-page #saved-grants .col-lg-6 {
    display: flex !important;
    flex-direction: column !important;
    transition: box-shadow 0.2s, transform 0.2s;
}
.dashboard-page #saved-grants .col-lg-6:hover {
    transform: translateY(-3px);
}

/* Card header: dark gradient */
.dashboard-page #saved-grants .home-section-title-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #saved-grants .home-section-title-banner::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: -50px;
    right: -30px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #saved-grants .home-section-title {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
}

/* Card body: list area */
.dashboard-page #saved-grants .account-section-inner {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-bottom: 3px solid var(--grey-200) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04) !important;
    flex: 1 1 auto !important;
    overflow: hidden;
}

/* ── Timeline list items ── */
.dashboard-page #saved-grants .timeline-grant-list {
    counter-reset: sg-row !important;
    padding: 0 !important;
    margin: 0 !important;
}
.dashboard-page #saved-grants .timeline-grant-item {
    counter-increment: sg-row !important;
    padding: 0.85rem 1rem 0.85rem 1rem !important;
    border-bottom: 1px solid var(--grey-100) !important;
    border-left: 3px solid var(--accent-blue-border, #bfdbfe) !important;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    position: relative;
}
.dashboard-page #saved-grants .timeline-grant-item::before {
    counter-increment: none;
    content: counter(sg-row, decimal-leading-zero) !important;
    position: absolute;
    left: 0.6rem;
    top: 0.85rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--grey-300);
    letter-spacing: 0.04em;
    pointer-events: none;
}
.dashboard-page #saved-grants .timeline-grant-item {
    padding-left: 2.8rem !important;
}
.dashboard-page #saved-grants .timeline-grant-item:nth-child(even) {
    background: var(--grey-50) !important;
}
.dashboard-page #saved-grants .timeline-grant-item:hover {
    background: var(--accent-blue, #eff6ff) !important;
    border-left-color: var(--primary-color) !important;
    transform: translateX(2px);
}
.dashboard-page #saved-grants .timeline-grant-item:last-child {
    border-bottom: none !important;
}

/* Title */
.dashboard-page #saved-grants .list-item-title {
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    color: var(--grey-900) !important;
    margin-bottom: 0.35rem !important;
}

/* Meta row */
.dashboard-page #saved-grants .timeline-grant-meta {
    gap: 0.75rem !important;
    font-size: 0.82rem !important;
}
.dashboard-page #saved-grants .timeline-grant-meta-item {
    background: var(--grey-50) !important;
    padding: 0.15rem 0.55rem !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    color: var(--grey-600) !important;
}
.dashboard-page #saved-grants .timeline-grant-meta-amount {
    background: #ddd !important;
    color: var(--grey-700) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 0.15rem 0.6rem !important;
    border-radius: 6px !important;
}
.dashboard-page #saved-grants .timeline-grant-meta-planned {
    background: rgba(234,179,8,0.12) !important;
    color: var(--primary-dark) !important;
    font-weight: 600 !important;
    padding: 0.15rem 0.55rem !important;
    border-radius: 6px !important;
}

/* View button */
.dashboard-page #saved-grants .timeline-grant-view {
    height: 1.85rem !important;
    padding: 0 0.85rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Empty state */
.dashboard-page #saved-grants .timeline-grant-list > .account-list-item.text-muted {
    padding: 2rem 1.25rem !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    color: var(--grey-400) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #saved-grants .sg-hero-bar {
        flex-wrap: wrap !important;
        border-radius: 10px 10px 0 0 !important;
        padding: 0.85rem 1rem 0.25rem !important;
    }
    .dashboard-page #saved-grants > .sg-hero-desc {
        padding: 0 1rem 0.75rem !important;
        border-radius: 0 0 10px 10px !important;
    }
    .dashboard-page #saved-grants .timeline-grant-item {
        padding-left: 2.2rem !important;
    }
    .dashboard-page #saved-grants .timeline-grant-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.35rem !important;
    }
}

/* =====================================================
   STORE CONTACTS TAB – MODERN OVERRIDES
   ===================================================== */

.dashboard-page #store-contacts {
    padding-top: 0.5rem !important;
}

/* ── Hero banner ── */
.dashboard-page #store-contacts .sc-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1.1rem 1.25rem 1rem !important;
    margin-bottom: 1rem !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #store-contacts .sc-hero-bar::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    right: -60px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #store-contacts .sc-hero-bar h4 {
    color: #fff !important;
    font-size: var(--text-title) !important;
    font-weight: 800 !important;
}
.dashboard-page #store-contacts .sc-hero-desc {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.88rem !important;
    margin-top: 0.25rem !important;
}

/* ── Sidebar card ── */
.dashboard-page #store-contacts .contacts-sidebar .home-section.account-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.dashboard-page #store-contacts .contacts-sidebar .account-section-inner {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03) !important;
    padding: 1rem !important;
}

/* Add Contact button */
.dashboard-page #store-contacts #contacts-add-btn {
    height: 2.4rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Search input */
.dashboard-page #store-contacts .contacts-sidebar .form-control {
    height: 2.4rem !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--grey-50) !important;
    font-size: var(--text-body) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dashboard-page #store-contacts .contacts-sidebar .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
    background: var(--white) !important;
}

/* Categories header */
.dashboard-page #store-contacts .contacts-sidebar .home-section-title-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%) !important;
    border-radius: 8px !important;
    padding: 0.65rem 0.85rem !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0.75rem !important;
}
.dashboard-page #store-contacts .contacts-sidebar .home-section-title-banner .home-section-title {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}
.dashboard-page #store-contacts .contacts-sidebar .contact-add-category-btn {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: #fff !important;
}
.dashboard-page #store-contacts .contacts-sidebar .contact-add-category-btn:hover {
    background: rgba(255,255,255,0.25) !important;
}

/* Category list items */
.dashboard-page #store-contacts .contacts-category-item {
    border-radius: 8px !important;
    padding: 0.55rem 0.75rem !important;
    margin-bottom: 2px !important;
    transition: background 0.15s, transform 0.15s;
    border: 1px solid transparent !important;
}
.dashboard-page #store-contacts .contacts-category-item:hover {
    background: var(--accent-blue, #eff6ff) !important;
    transform: translateX(2px);
}
.dashboard-page #store-contacts .contacts-category-item.active {
    background: #ddd !important;
    border-color: #ccc !important;
    color: var(--grey-900) !important;
}
.dashboard-page #store-contacts .contacts-category-item.active .contacts-category-name {
    color: var(--grey-900) !important;
    font-weight: 700 !important;
}
.dashboard-page #store-contacts .contacts-category-item.active .contacts-category-count {
    color: var(--grey-600) !important;
    background: rgba(0,0,0,0.08) !important;
    border-radius: 10px !important;
    padding: 0.1rem 0.5rem !important;
    font-size: 0.78rem !important;
}
.dashboard-page #store-contacts .contacts-category-count {
    background: var(--grey-100) !important;
    border-radius: 10px !important;
    padding: 0.1rem 0.5rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: var(--grey-600) !important;
}

/* ── Main panel card ── */
.dashboard-page #store-contacts .contacts-main .home-section.account-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Panel title banner */
.dashboard-page #store-contacts .contacts-main .home-section-title-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #store-contacts .contacts-main .home-section-title-banner::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: -50px;
    right: -30px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #store-contacts .contacts-main .home-section-title {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
}

/* Table card body */
.dashboard-page #store-contacts .contacts-main .account-section-inner {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-bottom: 3px solid var(--grey-200) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04) !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Table styling */
.dashboard-page #store-contacts .table {
    margin-bottom: 0 !important;
}
.dashboard-page #store-contacts .table thead {
    background: var(--grey-50) !important;
}
.dashboard-page #store-contacts .table thead th {
    background: var(--grey-50) !important;
    color: var(--grey-500) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.04em !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 2px solid var(--grey-200) !important;
}
.dashboard-page #store-contacts .table tbody td {
    padding: 0.75rem 1rem !important;
    font-size: 0.88rem !important;
    color: var(--grey-700) !important;
    border-bottom: 1px solid var(--grey-100) !important;
    vertical-align: middle !important;
}
.dashboard-page #store-contacts .table tbody tr {
    transition: background 0.15s;
}
.dashboard-page #store-contacts .table tbody tr:hover {
    background: var(--accent-blue, #eff6ff) !important;
}
.dashboard-page #store-contacts .table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Action icons */
.dashboard-page #store-contacts .contact-edit,
.dashboard-page #store-contacts .contact-delete {
    width: 2rem !important;
    height: 2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: background 0.15s, color 0.15s;
}
.dashboard-page #store-contacts .contact-edit:hover {
    background: rgba(234,179,8,0.12) !important;
    color: var(--primary-dark) !important;
}
.dashboard-page #store-contacts .contact-delete:hover {
    background: rgba(239,68,68,0.1) !important;
    color: #ef4444 !important;
}

/* Empty state */
.dashboard-page #store-contacts #contacts-empty {
    padding: 3rem 1.25rem !important;
    font-size: 0.92rem !important;
    color: var(--grey-400) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #store-contacts .sc-hero-bar {
        border-radius: 10px !important;
        padding: 0.85rem 1rem !important;
    }
    .dashboard-page #store-contacts .contacts-sidebar .account-section-inner {
        border-radius: 10px !important;
        padding: 0.75rem !important;
    }
    .dashboard-page #store-contacts .contacts-main .home-section-title-banner {
        border-radius: 10px 10px 0 0 !important;
    }
    .dashboard-page #store-contacts .contacts-main .account-section-inner {
        border-radius: 0 0 10px 10px !important;
    }
}

/* =====================================================
   ADD GRANTS TAB – MODERN OVERRIDES
   ===================================================== */

.dashboard-page #add-grants {
    padding-top: 0.5rem !important;
}

/* ── Hero banner ── */
.dashboard-page #add-grants .ag-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1.1rem 1.25rem 0.3rem !important;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #add-grants .ag-hero-bar::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    right: -60px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #add-grants .ag-hero-bar h4 {
    color: #fff !important;
    font-size: var(--text-title) !important;
    font-weight: 800 !important;
}
.dashboard-page #add-grants .ag-hero-desc {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.88rem !important;
    margin-top: 0.25rem !important;
    padding-bottom: 0.75rem !important;
}

/* ── Row: equal-height columns ── */
.dashboard-page #add-grants > .row.g-4 {
    margin-top: 0 !important;
    align-items: stretch !important;
}
.dashboard-page #add-grants > .row.g-4 > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
}
.dashboard-page #add-grants .home-section.account-section {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.dashboard-page #add-grants .account-section-inner {
    flex: 1 1 auto !important;
}

/* ── Section cards: remove .home-section padding for alignment ── */
.dashboard-page #add-grants .home-section.account-section {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Card header: dark gradient */
.dashboard-page #add-grants .home-section-title-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 0.85rem 1.25rem !important;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #add-grants .home-section-title-banner::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: -50px;
    right: -30px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #add-grants .home-section-title {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
}

/* Card body */
.dashboard-page #add-grants .account-section-inner {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-bottom: 3px solid var(--grey-200) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04) !important;
    padding: 1.25rem !important;
}

/* ── Form inputs ── */
.dashboard-page #add-grants .form-control,
.dashboard-page #add-grants .form-select {
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    font-size: var(--text-body) !important;
    background: var(--grey-50) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dashboard-page #add-grants .form-control:focus,
.dashboard-page #add-grants .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
    background: var(--white) !important;
}

/* Form labels */
.dashboard-page #add-grants .form-label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--grey-500) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    margin-bottom: 0.3rem !important;
}

/* Section description text */
.dashboard-page #add-grants .home-section-desc {
    color: var(--grey-500) !important;
    font-size: 0.88rem !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
}

/* List items (pending requests, history) */
.dashboard-page #add-grants .list-group-item {
    border-left: 3px solid var(--accent-blue-border, #bfdbfe) !important;
    border-radius: 0 !important;
    padding: 0.75rem 1rem !important;
    transition: background 0.15s, border-color 0.15s;
}
.dashboard-page #add-grants .list-group-item:hover {
    background: var(--accent-blue, #eff6ff) !important;
    border-left-color: var(--primary-color) !important;
}

/* Empty state */
.dashboard-page #add-grants .text-muted.small.py-3 {
    padding: 2rem 0 !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    color: var(--grey-400) !important;
}

/* Submit/action buttons inside forms */
.dashboard-page #add-grants .request-grant-form .btn-gradient-yellow {
    height: 2.4rem !important;
    padding: 0 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Multi-dropdown triggers */
.dashboard-page #add-grants .admin-grant-multi-trigger,
.dashboard-page #add-grants .lb-multi-dropdown-trigger {
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--grey-50) !important;
    font-size: var(--text-body) !important;
}
.dashboard-page #add-grants .admin-grant-multi-trigger:focus,
.dashboard-page #add-grants .lb-multi-dropdown-trigger:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
}

/* Add-new input groups */
.dashboard-page #add-grants .input-group .form-control {
    border-radius: 8px 0 0 8px !important;
}
.dashboard-page #add-grants .input-group .btn {
    border-radius: 0 8px 8px 0 !important;
}

/* Row spacing between admin sections */
.dashboard-page #add-grants .home-section.account-section.mt-4 {
    margin-top: 1.5rem !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #add-grants .ag-hero-bar {
        border-radius: 10px 10px 0 0 !important;
        padding: 0.85rem 1rem 0.25rem !important;
    }
    .dashboard-page #add-grants .home-section-title-banner {
        border-radius: 10px 10px 0 0 !important;
    }
    .dashboard-page #add-grants .account-section-inner {
        border-radius: 0 0 10px 10px !important;
        padding: 1rem !important;
    }
}

/* =====================================================
   APPLICATION TAB – MODERN OVERRIDES
   ===================================================== */

.dashboard-page #application {
    padding-top: 0.5rem !important;
}

/* ── Hero banner ── */
.dashboard-page #application .app-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1.1rem 1.25rem 1rem !important;
    margin-bottom: 1rem !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #application .app-hero-bar::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    right: -60px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #application .app-hero-bar h4 {
    color: #fff !important;
    font-size: var(--text-title) !important;
    font-weight: 800 !important;
}
.dashboard-page #application .app-hero-desc {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.88rem !important;
    margin-top: 0.25rem !important;
}

/* ── KPI cards: white, separate from hero ── */
.dashboard-page #application .application-kpis.row {
    margin: 0 0 1rem 0 !important;
}
.dashboard-page #application .application-kpi-card {
    background: var(--white) !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px 0 rgba(0,0,0,0.15), 0 2px 8px 0 rgba(0,0,0,0.1) !important;
    padding: 0.85rem 1rem !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.dashboard-page #application .application-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04) !important;
}
.dashboard-page #application .application-kpi-card .app-kpi-left .plan-stat-value {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
}
.dashboard-page #application .application-kpi-card .plan-stat-label {
    font-weight: 700 !important;
    color: var(--grey-700) !important;
}
.dashboard-page #application .application-kpi-card .plan-stat-amount-label {
    color: var(--grey-500) !important;
}
.dashboard-page #application .application-kpi-card .plan-stat-amount-value {
    color: var(--grey-800) !important;
    font-weight: 700 !important;
}

/* Colored count numbers */
.dashboard-page #application .application-kpi-in-progress .plan-stat-value { color: var(--primary-dark) !important; }
.dashboard-page #application .application-kpi-awaiting .plan-stat-value { color: var(--grey-500) !important; }
.dashboard-page #application .application-kpi-approved .plan-stat-value { color: #059669 !important; }
.dashboard-page #application .application-kpi-rejected .plan-stat-value { color: #ef4444 !important; }

/* Colored top accent */
.dashboard-page #application .application-kpi-in-progress { border-top: 3px solid var(--primary-dark) !important; }
.dashboard-page #application .application-kpi-awaiting { border-top: 3px solid var(--grey-400) !important; }
.dashboard-page #application .application-kpi-approved { border-top: 3px solid #059669 !important; }
.dashboard-page #application .application-kpi-rejected { border-top: 3px solid #ef4444 !important; }

/* ── Section card wrapper ── */
.dashboard-page #application > .home-section.account-section {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ── Status tabs ── */
.dashboard-page #application .nav-tabs-application {
    background: #ddd !important;
    border-bottom: none !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 0.5rem 1rem 0 !important;
}
.dashboard-page #application .nav-tabs-application .nav-link {
    color: var(--grey-600) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: color 0.15s, border-color 0.15s;
}
.dashboard-page #application .nav-tabs-application .nav-link:hover {
    color: var(--grey-900) !important;
    background: transparent !important;
    border-bottom-color: var(--grey-400) !important;
}
.dashboard-page #application .nav-tabs-application .nav-link.active {
    color: var(--grey-900) !important;
    background: transparent !important;
    border-bottom: 2px solid var(--primary-dark) !important;
    margin-bottom: 0 !important;
}
.dashboard-page #application .app-tab-count-bubble {
    background: rgba(0,0,0,0.08) !important;
    color: var(--grey-600) !important;
    border: none !important;
    font-size: 0.72rem !important;
}
.dashboard-page #application .nav-tabs-application .nav-link.active .app-tab-count-bubble {
    background: var(--primary-color) !important;
    color: var(--grey-900) !important;
}

/* ── Tab content area ── */
.dashboard-page #application .tab-content.account-section-inner {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-bottom: 3px solid var(--grey-200) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04) !important;
    padding: 1rem 1.25rem !important;
}

/* ── Application list items ── */
.dashboard-page #application .app-list-item {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-left: 3px solid var(--accent-blue-border, #bfdbfe) !important;
    border-radius: 10px !important;
    padding: 0.85rem 1rem !important;
    margin-bottom: 0.65rem !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.dashboard-page #application .app-list-item:hover {
    border-left-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transform: translateX(2px);
}

/* Title */
.dashboard-page #application .app-accordion-title-line {
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    color: var(--grey-900) !important;
}

/* Detail pills */
.dashboard-page #application .app-accordion-detail-item {
    background: var(--grey-50) !important;
    padding: 0.15rem 0.55rem !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
}
.dashboard-page #application .app-accordion-detail-item:first-child {
    background: #ddd !important;
    font-weight: 700 !important;
}

/* Progress bar */
.dashboard-page #application .app-list-item-progress {
    height: 8px !important;
    border-radius: 4px !important;
    background: var(--grey-200) !important;
}
.dashboard-page #application .app-list-item-progress .progress-bar {
    border-radius: 4px !important;
    background: linear-gradient(90deg, #fef9c3 0%, #fef08a 35%, #eab308 70%, #ca8a04 100%) !important;
}
.dashboard-page #application .app-list-item-progress-pct {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--grey-600) !important;
    min-width: 2.5rem !important;
}

/* View/Withdraw buttons */
.dashboard-page #application .app-list-item-view {
    height: 2rem !important;
    padding: 0 0.85rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
}
.dashboard-page #application .app-list-item-withdraw {
    height: 2rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Empty state */
.dashboard-page #application .text-muted.small.mb-0.py-3 {
    padding: 2.5rem 0 !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    color: var(--grey-400) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #application .app-hero-bar {
        border-radius: 10px !important;
        padding: 0.85rem 1rem !important;
    }
    .dashboard-page #application .nav-tabs-application {
        border-radius: 10px 10px 0 0 !important;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .dashboard-page #application .nav-tabs-application .nav-link {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.65rem !important;
        white-space: nowrap;
    }
    .dashboard-page #application .tab-content.account-section-inner {
        border-radius: 0 0 10px 10px !important;
        padding: 0.75rem !important;
    }
    .dashboard-page #application .app-list-item {
        flex-wrap: wrap !important;
    }
    .dashboard-page #application .app-list-item-progress-wrap {
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
}

/* =====================================================
   ACCOUNT TAB – MODERN OVERRIDES
   ===================================================== */

.dashboard-page #account {
    padding-top: 0.5rem !important;
}

/* ── Hero banner ── */
.dashboard-page #account .acct-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 1.1rem 1.25rem 1rem !important;
    margin-bottom: 1rem !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #account .acct-hero-bar::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    right: -60px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #account .acct-hero-bar h4 {
    color: #fff !important;
    font-size: var(--text-title) !important;
    font-weight: 800 !important;
}
.dashboard-page #account .acct-hero-desc {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.88rem !important;
    margin-top: 0.25rem !important;
}

/* ── Section cards: zero wrapper padding ── */
.dashboard-page #account .home-section.account-section {
    padding: 0 !important;
    margin-bottom: 1.25rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Card header: dark gradient */
.dashboard-page #account .home-section-title-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 0.85rem 1.25rem !important;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #account .home-section-title-banner::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: -50px;
    right: -30px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #account .home-section-title {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
}

/* Edit pencil icon in header */
.dashboard-page #account .account-edit-btn {
    color: rgba(255,255,255,0.5) !important;
    font-size: 1rem !important;
    transition: color 0.15s;
}
.dashboard-page #account .account-edit-btn:hover {
    color: #fff !important;
}

/* Card body */
.dashboard-page #account .account-section-inner {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-bottom: 3px solid var(--grey-200) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04) !important;
    padding: 1.25rem !important;
}

/* ── Detail fields (view mode) ── */
.dashboard-page #account .account-view-mode {
    padding: 0.5rem 0.25rem !important;
}
.dashboard-page #account .account-detail-field {
    padding: 0.55rem 0.5rem !important;
}
.dashboard-page #account .account-detail-field .text-muted.small {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    color: var(--grey-500) !important;
    margin-bottom: 0.15rem !important;
}
.dashboard-page #account .account-detail-field .account-val {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: var(--grey-800) !important;
}

/* Subsection titles */
.dashboard-page #account .account-subsection-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: var(--grey-400) !important;
    border-bottom: 1px solid var(--grey-100) !important;
    padding-bottom: 0.35rem !important;
    display: block !important;
}

/* ── Form inputs (edit mode) ── */
.dashboard-page #account .form-control,
.dashboard-page #account .form-select {
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    font-size: var(--text-body) !important;
    background: var(--grey-50) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dashboard-page #account .form-control:focus,
.dashboard-page #account .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
    background: var(--white) !important;
}
.dashboard-page #account .form-label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: var(--grey-500) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

/* Save/Cancel buttons */
.dashboard-page #account .account-form .btn {
    height: 2.2rem !important;
    padding: 0 1.1rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* ── Delete Account section ── */
.dashboard-page #account .home-section.account-section.border-top {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ── Subscription: admin suggest plan card ── */
.dashboard-page #account .home-section.account-section.border-warning {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.dashboard-page #account .home-section.account-section.border-warning .home-section-title-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 0.85rem 1.25rem !important;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}
.dashboard-page #account .home-section.account-section.border-warning .home-section-title-banner::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: -50px;
    right: -30px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #account .home-section.account-section.border-warning .home-section-title {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
}
.dashboard-page #account .home-section.account-section.border-warning .account-section-inner {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04) !important;
    padding: 1.25rem !important;
}
.dashboard-page #account .home-section.account-section.border-warning .form-label {
    font-weight: 600 !important;
    color: var(--grey-600) !important;
}
.dashboard-page #account .home-section.account-section.border-warning .form-control {
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--grey-50) !important;
    font-size: 0.85rem !important;
}
.dashboard-page #account .home-section.account-section.border-warning .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
    background: var(--white) !important;
}
.dashboard-page #account .home-section.account-section.border-warning .form-check-label {
    font-size: 0.82rem !important;
    color: var(--grey-600) !important;
}
.dashboard-page #account .home-section.account-section.border-warning .form-label.fw-bold {
    color: var(--grey-800) !important;
    font-size: 0.85rem !important;
}

/* Subscription: form inputs */
.dashboard-page #account .account-view-subscriptions .form-control,
.dashboard-page #account .account-view-subscriptions .form-select {
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--grey-50) !important;
}
.dashboard-page #account .account-view-subscriptions .form-control:focus,
.dashboard-page #account .account-view-subscriptions .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
    background: var(--white) !important;
}

/* Subscription: plan detail cards */
.dashboard-page #account .plan-detail-card {
    border-radius: 12px !important;
    border: 1px solid var(--grey-200) !important;
    overflow: hidden;
    padding: 1.25rem !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03) !important;
}

/* Suggested Plan card */
.dashboard-page #account .plan-detail-card-suggestion {
    border: 1px solid var(--grey-200) !important;
    background: var(--white) !important;
    color: var(--grey-900) !important;
    position: relative;
}
.dashboard-page #account .plan-detail-card-suggestion .plan-detail-card-header {
    color: var(--grey-900) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.35rem !important;
}
.dashboard-page #account .plan-detail-card-suggestion .plan-detail-card-header i {
    color: var(--primary-color) !important;
}
.dashboard-page #account .plan-detail-card-suggestion .plan-detail-card-desc {
    color: var(--grey-500) !important;
    font-size: 0.88rem !important;
}

/* Stat items inside suggestion */
.dashboard-page #account .plan-detail-card-suggestion .plan-detail-stat-item {
    background: var(--grey-50) !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 10px !important;
    padding: 0.85rem 1rem !important;
}
.dashboard-page #account .plan-detail-card-suggestion .plan-detail-stat-label {
    color: var(--grey-500) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}
.dashboard-page #account .plan-detail-card-suggestion .plan-detail-stat-value {
    color: var(--grey-900) !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

/* Upgrade plan: two-column layout */
.dashboard-page #account .upgrade-plan-row {
    align-items: stretch !important;
}
.dashboard-page #account .upgrade-plan-left .subscription-section-desc {
    font-size: 0.9rem !important;
    color: var(--grey-500) !important;
}
.dashboard-page #account .upgrade-plan-left .d-flex {
    flex-direction: row !important;
    flex-wrap: wrap !important;
}
.dashboard-page #account .upgrade-plan-right {
    display: flex !important;
}
.dashboard-page #account .upgrade-plan-right .plan-detail-card-suggestion {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 1rem !important;
}
.dashboard-page #account .btn-switch-plan-suggested {
    height: 2.4rem !important;
    padding: 0 1.2rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    align-self: flex-end !important;
    margin-top: auto !important;
}

/* Regular plan detail card (expanded) */
.dashboard-page #account .plan-detail-stat-item {
    background: var(--grey-50) !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 10px !important;
    padding: 0.85rem 1rem !important;
}
.dashboard-page #account .plan-detail-stat-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: var(--grey-500) !important;
}
.dashboard-page #account .plan-detail-stat-value {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--grey-900) !important;
}

/* Plan switch buttons */
.dashboard-page #account .btn-switch-plan {
    height: 2.4rem !important;
    padding: 0 1.2rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Subscription: empty state icons */
.dashboard-page #account .subscription-empty-state {
    padding: 2.5rem 0 !important;
    text-align: center !important;
}
.dashboard-page #account .subscription-empty-icon {
    font-size: 2rem !important;
    color: var(--grey-300) !important;
}

/* ── Team view: two-column equal height ── */
.dashboard-page #account .account-view-add-user > .row.g-4 {
    align-items: stretch !important;
}
.dashboard-page #account .account-view-add-user > .row.g-4 > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
}
.dashboard-page #account .account-view-add-user .home-section.account-section {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.dashboard-page #account .account-view-add-user .account-section-inner {
    flex: 1 1 auto !important;
}

/* Team member list items */
.dashboard-page #account .account-list-item {
    padding: 0.75rem 0.85rem !important;
    border-bottom: 1px solid var(--grey-100) !important;
    border-left: 3px solid var(--accent-blue-border, #bfdbfe) !important;
    border-radius: 0 !important;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.dashboard-page #account .account-list-item:last-child {
    border-bottom: none !important;
}
.dashboard-page #account .account-list-item:hover {
    background: var(--accent-blue, #eff6ff) !important;
    border-left-color: var(--primary-color) !important;
    transform: translateX(2px);
}
.dashboard-page #account .account-list-item .fw-semibold {
    font-size: 0.92rem !important;
    color: var(--grey-900) !important;
}
.dashboard-page #account .team-member-inactive {
    border-left-color: var(--grey-300) !important;
}

/* Team search input */
.dashboard-page #account .team-section-search {
    height: 2.2rem !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--grey-50) !important;
}
.dashboard-page #account .team-section-search:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
    background: var(--white) !important;
}

/* Role select in team list */
.dashboard-page #account .team-role-select {
    height: 1.85rem !important;
    padding: 0 0.5rem !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
    border: 1px solid var(--grey-200) !important;
    min-width: 5rem !important;
}

/* Team action buttons */
.dashboard-page #account .team-toggle-active,
.dashboard-page #account .team-set-primary,
.dashboard-page #account .team-collaborator-toggle-active {
    height: 1.85rem !important;
    padding: 0 0.65rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Badges */
.dashboard-page #account .badge-primary-label {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%) !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}
.dashboard-page #account .badge-gradient-yellow {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 4px !important;
}
.dashboard-page #account .badge-gradient-gray {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 4px !important;
}

/* Alerts in team view */
.dashboard-page #account .account-view-add-user .alert {
    border-radius: 10px !important;
    border: none !important;
    font-size: 0.88rem !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #account .acct-hero-bar {
        border-radius: 10px 10px 0 0 !important;
        padding: 0.85rem 1rem !important;
    }
    .dashboard-page #account .home-section-title-banner {
        border-radius: 10px 10px 0 0 !important;
    }
    .dashboard-page #account .account-section-inner {
        border-radius: 0 0 10px 10px !important;
        padding: 1rem !important;
    }
}

/* =====================================================
   GRANT DETAIL PAGE – MODERN OVERRIDES
   ===================================================== */

/* ── Back link ── */
.grant-detail-page .gd-back-link {
    display: inline-flex !important;
    align-items: center !important;
    color: var(--grey-500) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-bottom: 0.75rem !important;
    transition: color 0.15s;
}
.grant-detail-page .gd-back-link:hover {
    color: var(--grey-900) !important;
}

/* ── Hero bar ── */
.grant-detail-page .gd-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px !important;
    padding: 1.25rem 1.5rem !important;
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}
.grant-detail-page .gd-hero-bar::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    top: -120px;
    right: -80px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.grant-detail-page .gd-back-btn {
    color: rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 0.3rem 0.85rem !important;
    background: transparent !important;
    transition: color 0.15s, border-color 0.15s;
}
.grant-detail-page .gd-back-btn:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,0.4) !important;
}
.grant-detail-page .gd-hero-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    flex-shrink: 0 !important;
}
.grant-detail-page .gd-hero-btn {
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 0.3rem 0.85rem !important;
    background: transparent !important;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.grant-detail-page .gd-hero-btn:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,0.4) !important;
    background: rgba(255,255,255,0.08) !important;
}
.grant-detail-page .gd-hero-title {
    color: #fff !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
}
.grant-detail-page .grant-status-widget-label {
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}
.grant-detail-page .grant-status-select {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    min-width: 130px !important;
}
.grant-detail-page .grant-status-select option {
    background: #1e293b !important;
    color: #fff !important;
}

/* ── Checkpoint progress bar ── */
.grant-detail-page .grant-detail-top-row {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03) !important;
}
.grant-detail-page .grant-checkpoint-num {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 50% !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border: 2px solid var(--grey-300) !important;
    background: var(--white) !important;
    color: var(--grey-500) !important;
    transition: all 0.2s;
}
.grant-detail-page .grant-checkpoint-item.active .grant-checkpoint-num {
    border-color: var(--primary-color) !important;
    color: var(--grey-800) !important;
}
.grant-detail-page .grant-checkpoint-item.current .grant-checkpoint-num {
    background: linear-gradient(135deg, #fef9c3 0%, #eab308 100%) !important;
    border-color: transparent !important;
    color: var(--grey-900) !important;
    box-shadow: 0 0 0 4px rgba(234,179,8,0.2) !important;
}
.grant-detail-page .grant-checkpoint-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--grey-500) !important;
    text-align: center !important;
}
.grant-detail-page .grant-checkpoint-item.active .grant-checkpoint-label {
    color: var(--grey-700) !important;
}
.grant-detail-page .grant-checkpoint-line {
    height: 3px !important;
    border-radius: 2px !important;
    background: var(--grey-200) !important;
    margin-top: -1rem !important;
}
.grant-detail-page .grant-checkpoint-line.active {
    background: var(--primary-color) !important;
}
.grant-detail-page .grant-completion-label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: var(--grey-500) !important;
    margin-bottom: 0.35rem !important;
}
.grant-detail-page .grant-completion-pct {
    font-size: 0.92rem !important;
    color: var(--grey-800) !important;
}
.grant-detail-page .grant-progress-bar {
    height: 8px !important;
    border-radius: 4px !important;
    background: var(--grey-200) !important;
}
.grant-detail-page .grant-progress-bar .progress-bar {
    border-radius: 4px !important;
}

/* ── Section cards ── */
.grant-detail-page .home-section.account-section {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.grant-detail-page .home-section-title-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 0.85rem 1.25rem !important;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}
.grant-detail-page .home-section-title-banner::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: -50px;
    right: -30px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.grant-detail-page .home-section-title {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
}
.grant-detail-page .account-section-inner {
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-bottom: 3px solid var(--grey-200) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04) !important;
    padding: 1.25rem !important;
}

/* ── Form inputs ── */
.grant-detail-page .form-control,
.grant-detail-page .form-select {
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--grey-50) !important;
    color: black !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.grant-detail-page .form-control:focus,
.grant-detail-page .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
    background: var(--white) !important;
}

/* ── Messages ── */
.grant-detail-page .grant-message {
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem !important;
    background: var(--grey-50) !important;
    border-left: 3px solid var(--accent-blue-border, #bfdbfe) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}
.grant-detail-page .grant-message-admin {
    border-left-color: var(--primary-color) !important;
    background: rgba(234,179,8,0.05) !important;
}

/* ── Checklist items ── */
.grant-detail-page .grant-checklist-item {
    border: 1px solid var(--grey-200) !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.grant-detail-page .grant-checklist-item:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* ── Document cards ── */
.grant-detail-page .grant-doc-card {
    border: 1px solid var(--grey-200) !important;
    border-radius: 10px !important;
    padding: 0.85rem !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.grant-detail-page .grant-doc-card:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

/* ── Contact/Team cards ── */
.grant-detail-page .grant-contact-card {
    border: 1px solid var(--grey-200) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.grant-detail-page .grant-contact-card:hover {
    border-color: var(--accent-blue-border) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    transform: translateY(-2px);
}

/* ── Equal height columns (Message Board + Checklist) ── */
.grant-detail-page > .row.g-4 {
    align-items: stretch !important;
}
.grant-detail-page > .row.g-4 > .col-lg-6 {
    display: flex !important;
    flex-direction: column !important;
}
.grant-detail-page > .row.g-4 > .col-lg-6 > .home-section.account-section.h-100 {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}
.grant-detail-page > .row.g-4 > .col-lg-6 > .home-section.account-section.h-100 > .account-section-inner {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.grant-detail-page .grant-message-board-scroll,
.grant-detail-page .grant-section-scroll {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
}

/* ── Save progress bar ── */
.grant-detail-page .border-top {
    border-top: 1px solid var(--grey-200) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .grant-detail-page .gd-hero-bar {
        border-radius: 10px !important;
        padding: 1rem !important;
    }
    .grant-detail-page .gd-hero-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .grant-detail-page .gd-hero-title {
        font-size: 1.1rem !important;
    }
    .grant-detail-page .grant-detail-top-row {
        border-radius: 10px !important;
        padding: 0.75rem !important;
    }
    .grant-detail-page .home-section-title-banner {
        border-radius: 10px 10px 0 0 !important;
    }
    .grant-detail-page .account-section-inner {
        border-radius: 0 0 10px 10px !important;
        padding: 1rem !important;
    }
}

/* =====================================================
   GRANT DOCUMENTS ALL PAGE – MODERN OVERRIDES
   ===================================================== */

/* ── Back link (reuse grant-detail style) ── */
.grant-docs-all-page .gd-back-link {
    display: inline-flex !important;
    align-items: center !important;
    color: var(--grey-500) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-bottom: 0.75rem !important;
    transition: color 0.15s;
}
.grant-docs-all-page .gd-back-link:hover {
    color: var(--grey-900) !important;
}

/* ── Hero bar ── */
.grant-docs-all-page .gda-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1.25rem 1.5rem !important;
    position: relative;
    overflow: hidden;
}
.grant-docs-all-page .gda-hero-bar::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    right: -60px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.grant-docs-all-page .gda-hero-title {
    color: #fff !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.25rem 0 !important;
}
.grant-docs-all-page .gda-hero-subtitle {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}
.grant-docs-all-page .gda-hero-desc {
    background: var(--grey-50) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0 1.25rem 0 !important;
    color: var(--grey-600) !important;
    font-size: 0.85rem !important;
}

/* ── Empty state ── */
.grant-docs-all-page .gda-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--grey-400);
}
.grant-docs-all-page .gda-empty-state i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}
.grant-docs-all-page .gda-empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

/* ── Accordion items ── */
.grant-docs-all-page .gda-accordion-item {
    border: 1px solid var(--grey-200) !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.grant-docs-all-page .gda-accordion-item:hover {
    border-color: var(--grey-300) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}
.grant-docs-all-page .gda-accordion-item .accordion-button {
    background: var(--white) !important;
    border: none !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
}
.grant-docs-all-page .gda-accordion-item .accordion-button:not(.collapsed) {
    background: var(--grey-50) !important;
    color: var(--grey-900) !important;
}
.grant-docs-all-page .gda-accordion-item .accordion-body {
    padding: 0.85rem 1.25rem !important;
}

/* ── Document list rows ── */
.grant-docs-all-page .gda-doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.grant-docs-all-page .gda-doc-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    background: var(--white) !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 10px !important;
    padding: 0.65rem 1rem !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.grant-docs-all-page .gda-doc-row:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}
.grant-docs-all-page .gda-doc-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
    color: var(--grey-500);
}
.grant-docs-all-page .gda-doc-info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.grant-docs-all-page .gda-doc-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.grant-docs-all-page .gda-doc-ext {
    font-size: 0.75rem;
    color: var(--grey-400);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.grant-docs-all-page .gda-doc-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
    align-items: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .grant-docs-all-page .gda-hero-bar {
        border-radius: 10px 10px 0 0 !important;
        padding: 1rem !important;
    }
    .grant-docs-all-page .gda-hero-desc {
        border-radius: 0 0 10px 10px !important;
    }
    .grant-docs-all-page .gda-hero-title {
        font-size: 1.05rem !important;
    }
    .grant-docs-all-page .gda-accordion-item {
        border-radius: 10px !important;
    }
    .grant-docs-all-page .gda-doc-row {
        flex-wrap: wrap !important;
        padding: 0.6rem 0.75rem !important;
    }
    .grant-docs-all-page .gda-doc-info {
        flex: 1 1 100% !important;
        order: 2 !important;
    }
    .grant-docs-all-page .gda-doc-icon {
        order: 1 !important;
    }
    .grant-docs-all-page .gda-doc-actions {
        order: 3 !important;
        width: 100% !important;
        justify-content: flex-end !important;
        margin-top: 0.35rem !important;
    }
}

/* =====================================================
   ADMIN PARTNERS TAB – MODERN OVERRIDES
   ===================================================== */

/* ── Hero bar ── */
.dashboard-page #admin-partners .ap-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1.1rem 1.25rem 0.75rem !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
}
.dashboard-page #admin-partners .ap-hero-bar::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    top: -70px;
    right: -40px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #admin-partners .ap-hero-bar h4 {
    color: #fff !important;
    font-size: 1.1rem !important;
}
.dashboard-page #admin-partners .ap-hero-desc {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

/* ── Toolbar ── */
.dashboard-page #admin-partners .ap-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    background: var(--grey-50) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1.25rem !important;
}
.dashboard-page #admin-partners .ap-toolbar .form-control {
    max-width: 260px !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--white) !important;
    font-size: 0.85rem !important;
}
.dashboard-page #admin-partners .ap-toolbar .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
}

/* ── Partner cards ── */
.dashboard-page #admin-partners .admin-partner-card {
    border: 1px solid var(--grey-200) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03) !important;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    overflow: hidden;
    background: var(--white) !important;
}
.dashboard-page #admin-partners .admin-partner-card:hover {
    border-color: var(--accent-blue-border, #bfdbfe) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04) !important;
    transform: translateY(-2px);
}
.dashboard-page #admin-partners .admin-partner-card .card-body {
    padding: 1.1rem 1.25rem !important;
    gap: 1rem !important;
}
.dashboard-page #admin-partners .admin-card-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--grey-900) !important;
    margin-bottom: 0.3rem !important;
}
.dashboard-page #admin-partners .admin-card-meta {
    font-size: 0.8rem !important;
    color: var(--grey-500) !important;
    margin-top: 0.15rem !important;
    line-height: 1.5 !important;
}
.dashboard-page #admin-partners .admin-card-badges {
    margin-top: 0.4rem !important;
}
.dashboard-page #admin-partners .admin-card-badges .badge {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 0.3em 0.7em !important;
    border-radius: 6px !important;
}
.dashboard-page #admin-partners .admin-card-actions {
    margin-top: 0.6rem !important;
    padding-top: 0.6rem !important;
    border-top: 1px solid var(--grey-100) !important;
}
.dashboard-page #admin-partners .admin-partner-card .flex-shrink-0 {
    background: var(--grey-50) !important;
    border-radius: 10px !important;
    padding: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.dashboard-page #admin-partners .admin-partner-card .flex-shrink-0 img {
    border-radius: 6px !important;
}
.dashboard-page #admin-partners #admin-partners-list {
    margin-top: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #admin-partners .ap-hero-bar {
        border-radius: 10px 10px 0 0 !important;
        padding: 0.85rem 1rem !important;
    }
    .dashboard-page #admin-partners .ap-toolbar {
        border-radius: 0 0 10px 10px !important;
    }
    .dashboard-page #admin-partners .ap-toolbar .form-control {
        max-width: 100% !important;
    }
}

/* =====================================================
   ADMIN BUSINESSES TAB – MODERN OVERRIDES
   ===================================================== */

/* ── Hero bar ── */
.dashboard-page #admin-businesses .ab-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1.1rem 1.25rem 0.75rem !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
}
.dashboard-page #admin-businesses .ab-hero-bar::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    top: -70px;
    right: -40px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #admin-businesses .ab-hero-bar h4 {
    color: #fff !important;
    font-size: 1.1rem !important;
}
.dashboard-page #admin-businesses .ab-hero-desc {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

/* ── Toolbar ── */
.dashboard-page #admin-businesses .ab-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: var(--grey-50) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1.25rem !important;
}
.dashboard-page #admin-businesses .ab-toolbar .form-control {
    max-width: 300px !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--white) !important;
    font-size: 0.85rem !important;
}
.dashboard-page #admin-businesses .ab-toolbar .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
}

/* ── Business cards ── */
.dashboard-page #admin-businesses .admin-card {
    border: 1px solid var(--grey-200) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03) !important;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    overflow: hidden;
    background: var(--white) !important;
}
.dashboard-page #admin-businesses .admin-card:hover {
    border-color: var(--accent-blue-border, #bfdbfe) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04) !important;
    transform: translateY(-2px);
}
.dashboard-page #admin-businesses .admin-card .card-body {
    padding: 1.1rem 1.25rem !important;
}
.dashboard-page #admin-businesses .admin-card-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--grey-900) !important;
    margin-bottom: 0.4rem !important;
}
.dashboard-page #admin-businesses .admin-card-meta {
    font-size: 0.82rem !important;
    color: var(--grey-500) !important;
    margin-top: 0.2rem !important;
    line-height: 1.5 !important;
}
.dashboard-page #admin-businesses .admin-card-meta i {
    color: var(--grey-400) !important;
    width: 1.1em !important;
}
.dashboard-page #admin-businesses #admin-businesses-list {
    margin-top: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #admin-businesses .ab-hero-bar {
        border-radius: 10px 10px 0 0 !important;
        padding: 0.85rem 1rem !important;
    }
    .dashboard-page #admin-businesses .ab-toolbar {
        border-radius: 0 0 10px 10px !important;
    }
    .dashboard-page #admin-businesses .ab-toolbar .form-control {
        max-width: 100% !important;
    }
}

/* =====================================================
   ADMIN APPLIED GRANTS TAB – MODERN OVERRIDES
   ===================================================== */

/* ── Hero bar ── */
.dashboard-page #applied-grants .aag-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1.1rem 1.25rem 0.75rem !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
}
.dashboard-page #applied-grants .aag-hero-bar::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    top: -70px;
    right: -40px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #applied-grants .aag-hero-bar h4 {
    color: #fff !important;
    font-size: 1.1rem !important;
}
.dashboard-page #applied-grants .aag-hero-desc {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

/* ── Toolbar ── */
.dashboard-page #applied-grants .aag-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: var(--grey-50) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1.25rem !important;
}
.dashboard-page #applied-grants .aag-toolbar .form-select {
    max-width: 200px !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--white) !important;
    font-size: 0.85rem !important;
}
.dashboard-page #applied-grants .aag-toolbar .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
}

/* ── Applied grant cards ── */
.dashboard-page #applied-grants .admin-applied-card {
    border: 1px solid var(--grey-200) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03) !important;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    overflow: hidden;
    background: var(--white) !important;
}
.dashboard-page #applied-grants .admin-applied-card:hover {
    border-color: var(--accent-blue-border, #bfdbfe) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04) !important;
    transform: translateY(-2px);
}
.dashboard-page #applied-grants .admin-applied-card .card-body {
    padding: 1.1rem 1.25rem !important;
}
.dashboard-page #applied-grants .admin-card-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--grey-900) !important;
    margin-bottom: 0.4rem !important;
}
.dashboard-page #applied-grants .admin-card-meta {
    font-size: 0.82rem !important;
    color: var(--grey-500) !important;
    margin-top: 0.2rem !important;
    line-height: 1.5 !important;
}
.dashboard-page #applied-grants .admin-card-meta i {
    color: var(--grey-400) !important;
    width: 1.1em !important;
}
.dashboard-page #applied-grants .admin-card-badges {
    margin-top: 0.6rem !important;
    padding-top: 0.6rem !important;
    border-top: 1px solid var(--grey-100) !important;
}
.dashboard-page #applied-grants .admin-card-badges .badge {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 0.3em 0.7em !important;
    border-radius: 6px !important;
}
.dashboard-page #applied-grants #admin-applied-list {
    margin-top: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #applied-grants .aag-hero-bar {
        border-radius: 10px 10px 0 0 !important;
        padding: 0.85rem 1rem !important;
    }
    .dashboard-page #applied-grants .aag-toolbar {
        border-radius: 0 0 10px 10px !important;
    }
    .dashboard-page #applied-grants .aag-toolbar .form-select {
        max-width: 100% !important;
    }
}

/* =====================================================
   ADMIN USERS TAB – MODERN OVERRIDES
   ===================================================== */

/* ── Hero bar ── */
.dashboard-page #admin-users .au-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0c4a6e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 1.1rem 1.25rem 0.75rem !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
}
.dashboard-page #admin-users .au-hero-bar::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    top: -70px;
    right: -40px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.dashboard-page #admin-users .au-hero-bar h4 {
    color: #fff !important;
    font-size: 1.1rem !important;
}
.dashboard-page #admin-users .au-hero-desc {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

/* ── Toolbar ── */
.dashboard-page #admin-users .au-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: var(--grey-50) !important;
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1.25rem !important;
}
.dashboard-page #admin-users .au-toolbar .form-control {
    max-width: 300px !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--white) !important;
    font-size: 0.85rem !important;
}
.dashboard-page #admin-users .au-toolbar .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
}

/* ── User cards ── */
.dashboard-page #admin-users .admin-user-card {
    border: 1px solid var(--grey-200) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03) !important;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    overflow: hidden;
    background: var(--white) !important;
}
.dashboard-page #admin-users .admin-user-card:hover {
    border-color: var(--accent-blue-border, #bfdbfe) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04) !important;
    transform: translateY(-2px);
}
.dashboard-page #admin-users .admin-user-card .card-body {
    padding: 1.1rem 1.25rem !important;
}
.dashboard-page #admin-users .admin-card-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--grey-900) !important;
    margin-bottom: 0.4rem !important;
}
.dashboard-page #admin-users .admin-card-meta {
    font-size: 0.82rem !important;
    color: var(--grey-500) !important;
    margin-top: 0.2rem !important;
    line-height: 1.5 !important;
}
.dashboard-page #admin-users .admin-card-meta i {
    color: var(--grey-400) !important;
    width: 1.1em !important;
}
.dashboard-page #admin-users .admin-card-badges {
    margin-top: 0.6rem !important;
    padding-top: 0.6rem !important;
    border-top: 1px solid var(--grey-100) !important;
}
.dashboard-page #admin-users .admin-card-badges .badge {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 0.3em 0.7em !important;
    border-radius: 6px !important;
}
.dashboard-page #admin-users .admin-badge-role {
    background: var(--grey-100) !important;
    color: var(--grey-700) !important;
}
.dashboard-page #admin-users #admin-users-list {
    margin-top: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #admin-users .au-hero-bar {
        border-radius: 10px 10px 0 0 !important;
        padding: 0.85rem 1rem !important;
    }
    .dashboard-page #admin-users .au-toolbar {
        border-radius: 0 0 10px 10px !important;
    }
    .dashboard-page #admin-users .au-toolbar .form-control {
        max-width: 100% !important;
    }
}

/* =====================================================
   ADMIN TEAM TAB – MODERN OVERRIDES
   ===================================================== */
.dashboard-page #account .admin-team-hero-bar {
    border-radius: 14px !important;
    margin-bottom: 1.25rem !important;
}
.dashboard-page #account .account-view-admin-team .row.g-4 {
    align-items: stretch !important;
}
.dashboard-page #account .account-view-admin-team .row.g-4 > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
}
.dashboard-page #account .account-view-admin-team .home-section.account-section {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.dashboard-page #account .account-view-admin-team .account-section-inner {
    flex: 1 1 auto !important;
}
.dashboard-page #account .account-view-admin-team .account-list-item {
    border: 1px solid var(--grey-200) !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem !important;
    background: var(--white) !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.dashboard-page #account .account-view-admin-team .account-list-item:hover {
    border-color: var(--accent-blue-border, #bfdbfe) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
.dashboard-page #account .account-view-admin-team .account-list-item .fw-semibold {
    font-size: 0.9rem !important;
    color: var(--grey-900) !important;
}
.dashboard-page #account .account-view-admin-team .badge-primary-label {
    background: linear-gradient(135deg, #fef9c3 0%, #eab308 100%) !important;
    color: var(--grey-900) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 0.2em 0.55em !important;
    border-radius: 5px !important;
}
.dashboard-page #account .account-view-admin-team .form-label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--grey-500) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}
.dashboard-page #account .account-view-admin-team .form-control {
    border: 1px solid var(--grey-200) !important;
    border-radius: 8px !important;
    background: var(--grey-50) !important;
    font-size: 0.88rem !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dashboard-page #account .account-view-admin-team .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15) !important;
    background: var(--white) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-page #account .admin-team-hero-bar {
        border-radius: 10px !important;
    }
}
