@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;700;800&display=swap');

:root {
    /* Brand Gradients */
    --grad-purple: linear-gradient(to bottom, #752bd6, #4c1db3);
    --grad-blue: linear-gradient(to bottom, #4b6cb7, #182848);
    --grad-green: linear-gradient(to bottom, #11998e, #38ef7d);
    --grad-orange: linear-gradient(to bottom, #ff9966, #ff5e62);
    --grad-gray: linear-gradient(to bottom, #D3D3D3, #696969);
    
    /* Text Colors */
    --c-dark-blue: hsl(224, 30%, 27%);
    --c-grey: #9aa7be;
}

body {
    font-family: 'Hanken Grotesk', sans-serif;
    background-color: rgba(220, 233, 255, 0.48); 
    color: var(--c-dark-blue);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 50px;
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */
header.sticky-top {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand-text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    /* Removed gradient background and text-fill-color */
    color: #000; /* Default fallback */
    margin: 0;
    text-decoration: none;
}

.navbar {
    background: transparent !important;
    box-shadow: none !important;
    padding-top: 5px;
    padding-bottom: 0px;
}

/*.brand-text {*/
/*    font-weight: 800;*/
/*    font-size: 1.3rem;*/
/*    letter-spacing: -0.5px;*/
/*    background: var(--grad-purple);*/
/*    -webkit-background-clip: text;*/
/*    -webkit-text-fill-color: transparent;*/
/*    margin: 0;*/
/*}*/

/* =========================================
   FILTER BAR
   ========================================= */
.filter-bar {
    background: transparent;
    padding: 5px 0 10px 0;
}

.filter-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 2px 5px;
    scrollbar-width: none;
    align-items: center;
}

.chip {
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid #f0f0f0;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: black;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.chip:hover {
    transform: translateY(-1px);
    border-color: #ddd;
    color: var(--c-dark-blue);
}

.chip.active {
    background-image: var(--grad-purple);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(117, 43, 214, 0.25);
    transform: translateY(-1px);
}

.chip[data-filter="Sellers"].active { background-image: var(--grad-green); box-shadow: 0 4px 12px rgba(17, 153, 142, 0.25); }
.chip[data-filter="Buyers"].active { background-image: var(--grad-blue); box-shadow: 0 4px 12px rgba(75, 108, 183, 0.25); }
.chip[data-filter="Investments"].active { background-image: var(--grad-purple); }
.chip[data-filter="Projects"].active { background-image: var(--grad-orange); box-shadow: 0 4px 12px rgba(255, 94, 98, 0.25); }

.input-group-text, #searchInput, #industryFilter {
    font-size: 13px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* =========================================
   CARD DESIGN
   ========================================= */
.deal-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Header */
.nc-header {
    margin-bottom: 20px;
}

.nc-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-dark-blue);
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word; 
}

.nc-subtitle {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Grid */
.nc-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.nc-stat-box {
    flex: 1;
    background: #f8fafc;
    border-radius: 16px;
    padding: 12px 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nc-stat-box::after {
    content: '';
    position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: #e2e8f0;
}
.nc-stat-box.val::after { background: var(--grad-purple); }
.nc-stat-box.ind::after { background: var(--grad-blue); }
.nc-stat-box.loc::after { background: var(--grad-green); }

.nc-stat-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--c-dark-blue);
    display: block;
    margin-bottom: 2px;
}
.nc-stat-label { font-size: 10px; color: #64748b; font-weight: 600; }

/* Footer */
.nc-footer {
    margin-top: auto;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

/* --- UPDATED: TYPE LABEL (Looks like a Tag/Label now) --- */
.nc-type-badge {
    padding: 5px 12px;       /* Smaller padding */
    border-radius: 3px;      /* Rounded square edges (Label style) */
    color: white; 
    font-size: 11px; 
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;        /* NO SHADOW */
    opacity: 0.9;            /* Subtle look */
}

.btn-details {
    padding: 8px 20px; border-radius: 12px; border: none;
    font-weight: 700; font-size: 13px; color: white;
    background: var(--c-dark-blue); cursor: pointer; transition: all 0.2s;
}
.btn-details:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }

/* Dynamic Colors */

.deal-card.seller .nc-type-badge,.deal-card.buyer .nc-type-badge,.deal-card.investor .nc-type-badge,.deal-card.project .nc-type-badge { color: black }

.deal-card.seller .btn-details { background: var(--grad-green); }
.deal-card.buyer .btn-details { background: var(--grad-blue); }
.deal-card.investor .btn-details { background: var(--grad-purple); }
.deal-card.project .btn-details { background: var(--grad-orange); }

/* --- Modals --- */
.modal-content { border-radius: 20px; border: none; }
.modal-header { background: var(--c-dark-blue); color: white; border-bottom: none; padding: 20px 30px; }
.btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }
.info-box { background: #f8fafc; padding: 15px; border-radius: 15px; border: 1px solid #e2e8f0; height: 100%; }
.info-label { font-size: 0.75rem; text-transform: uppercase; color: #64748b; font-weight: 700; margin-bottom: 5px; display: block; }
.info-val { font-weight: 700; color: var(--c-dark-blue); font-size: 1rem; }
.spinner-border { width: 3rem; height: 3rem; border-width: 0.3em; }

@media (max-width: 768px) {
    .brand-text { font-size: 1.2rem; }
}