:root {
    --bizbridge-green: #198754;
    --bizbridge-light: #f4f8f5;
    --bizbridge-text: #202923;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--bizbridge-text);
    margin: 0;
}

.hero-section {
    background:
        radial-gradient(circle at 85% 20%, #d8f3e2 0, transparent 35%),
        linear-gradient(135deg, #ffffff, var(--bizbridge-light));
}

.min-vh-75 {
    min-height: 75vh;
}

.growth-card {
    background: #ffffff;
    border: 1px solid #e6eee8;
    border-radius: 20px;
    padding: 28px;
}

.growth-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e2f5e9;
    color: var(--bizbridge-green);
    font-size: 28px;
    font-weight: bold;
}

.feature-mini {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
}

.mini-icon,
.feature-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #e2f5e9;
    color: var(--bizbridge-green);
    font-weight: bold;
    font-size: 20px;
}

.feature-card {
    padding: 25px;
    border: 1px solid #e8eee9;
    border-radius: 16px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(20, 60, 35, 0.08);
}

.about-section {
    background: var(--bizbridge-light);
}

.about-text {
    max-width: 650px;
    line-height: 1.8;
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .growth-card {
        padding: 20px;
    }
}

/* Authentication pages */
.auth-page {
    min-height: 100vh;
    background: #f4f8f5;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e6eee8;
    border-radius: 18px;
    padding: 35px;
}

.auth-card .form-control {
    padding: 12px 14px;
    border-radius: 9px;
}

.auth-card .form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

@media (max-width: 576px) {
    .auth-card {
        padding: 24px;
    }
}

.summary-box {
    background: #f9fbfa;
    border: 1px solid #e7efe9;
    border-radius: 12px;
    padding: 18px 20px;
}

.readiness-check {
    padding: 14px 12px 14px 2rem;
    border-bottom: 1px solid #e7efe9;
}

.readiness-check:last-child {
    border-bottom: 0;
}

.readiness-check .form-check-input {
    margin-top: 0.35rem;
}

.readiness-check .form-check-input:disabled {
    opacity: 0.8;
}

.cash-flow-row {
    display: grid;
    grid-template-columns: 3.5rem minmax(3rem, 1fr) minmax(6rem, auto);
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cash-flow-track {
    height: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #edf1ee;
}

.cash-flow-fill {
    height: 100%;
    border-radius: inherit;
}

.cash-flow-positive {
    background: var(--bizbridge-green);
}

.cash-flow-negative {
    background: #dc3545;
}

.cash-flow-row > span:last-child {
    text-align: right;
}


/* ========================================
   Transactions Page
======================================== */

.transactions-page {
    min-height: 100vh;
    background: var(--bizbridge-light);
}

.transactions-header {
    background:
        radial-gradient(circle at 90% 10%, #d8f3e2 0, transparent 35%),
        #ffffff;
    border: 1px solid #e6eee8;
    border-radius: 18px;
    padding: 28px;
}

.transactions-card {
    background: #ffffff;
    border: 1px solid #e6eee8;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(20, 60, 35, 0.04);
}

.transactions-card h2 {
    color: var(--bizbridge-text);
    font-weight: 700;
}

.transactions-card .form-label {
    font-weight: 600;
    color: var(--bizbridge-text);
}

.transactions-card .form-control,
.transactions-card .form-select {
    border-radius: 9px;
    padding: 10px 12px;
}

.transactions-card .form-control:focus,
.transactions-card .form-select:focus {
    border-color: var(--bizbridge-green);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

.transactions-card .btn-primary {
    background: var(--bizbridge-green);
    border-color: var(--bizbridge-green);
}

.transactions-card .btn-primary:hover {
    background: #146c43;
    border-color: #146c43;
}

.transactions-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.transactions-table {
    margin-bottom: 0;
    vertical-align: middle;
}

.transactions-table thead th {
    background: #f4f8f5;
    color: var(--bizbridge-text);
    font-size: 0.875rem;
    white-space: nowrap;
}

.transactions-table td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.transaction-amount-income {
    color: var(--bizbridge-green);
    font-weight: 700;
    white-space: nowrap;
}

.transaction-amount-expense {
    color: #dc3545;
    font-weight: 700;
    white-space: nowrap;
}

.transaction-type-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.transaction-type-income {
    background: #e2f5e9;
    color: #146c43;
}

.transaction-type-expense {
    background: #fce8e8;
    color: #b02a37;
}

.transactions-empty-state {
    padding: 32px 16px;
    text-align: center;
    color: #6c757d;
}

#pageMessage {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .transactions-header {
        padding: 20px;
    }

    .transactions-card {
        padding: 18px;
    }

    .transactions-header h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 576px) {
    .transactions-card {
        padding: 15px;
    }
}


/* BizBridge API-driven Explore listings */

.explore-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.explore-business-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.explore-business-card-image {
    display: flex;
    width: 100%;
    height: 180px;
    padding: 0;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #f3f4f6;
}

.explore-business-card-image img,
.explore-business-card-image .business-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eefc;
    color: #2346a0;
    font-size: 1.4rem;
    font-weight: 700;
}

.explore-business-card-body {
    padding: 1rem;
}

.explore-business-card-body h3 {
    margin: 0.6rem 0;
    font-size: 1.15rem;
}

.explore-business-title {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.explore-business-title:hover {
    color: #3157c8;
}

.explore-category-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3149a5;
    font-size: 0.8rem;
    font-weight: 600;
}

.explore-business-location {
    margin-bottom: 0.65rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.explore-business-description {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.explore-business-story,
.explore-featured-business {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.explore-business-story {
    flex-direction: column;
    width: 90px;
    flex-shrink: 0;
}

.explore-story-image {
    display: block;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 2px solid #dbe4ff;
    border-radius: 50%;
}

.explore-story-image img,
.explore-story-image .business-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-story-name {
    width: 100%;
    overflow: hidden;
    font-size: 0.78rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explore-featured-business {
    width: 100%;
    border-radius: 10px;
}

.explore-featured-business:hover,
.explore-business-story:hover {
    background: #f8faff;
}

.explore-featured-image {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
}

.explore-featured-image img,
.explore-featured-image .business-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-featured-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.15rem;
}

.explore-featured-details strong,
.explore-featured-details small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explore-featured-details small {
    color: #6b7280;
}

.explore-loading,
.explore-error,
.explore-empty-state {
    padding: 2rem 1rem;
    text-align: center;
}

.explore-error {
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff7f7;
}

.explore-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #dbe4ff;
    border-top-color: #3157c8;
    border-radius: 50%;
    animation: explore-spin 0.8s linear infinite;
}

@keyframes explore-spin {
    to {
        transform: rotate(360deg);
    }
}

.explore-profile-image {
    width: 100%;
    max-height: 260px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 12px;
}

.explore-profile-image img,
.explore-profile-image .business-image-placeholder {
    display: flex;
    width: 100%;
    max-height: 260px;
    min-height: 160px;
    object-fit: cover;
}

.explore-profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.25rem 0;
}

@media (max-width: 576px) {
    .explore-business-grid {
        grid-template-columns: 1fr;
    }

    .explore-business-card-image {
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .explore-spinner {
        animation: none;
    }
}
