:root {
    --brand: #0f2f4c;
    --brand-accent: #2fb789;
    --bg-soft: #f6f7f9;
    --text-muted: #6b7280;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1f2937;
    background: #fff;
}

h1, h2, .brand-mark {
    font-family: 'Poppins', sans-serif;
}

/* ---------- Public header ---------- */
.site-header {
    border-bottom: 1px solid #eee;
    background: #fff;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--brand) !important;
}

.brand-mark {
    color: var(--brand-accent);
}

.nav-link {
    font-weight: 500;
    color: #374151 !important;
}

.admin-link {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 14px !important;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, #184a6e 100%);
    color: #fff;
    padding: 64px 0 48px;
}

.hero h1 {
    font-weight: 700;
    font-size: 2.3rem;
}

.hero .lead {
    color: #cfe0ea;
}

/* ---------- Opportunity cards ---------- */
.opp-card-link {
    text-decoration: none;
    color: inherit;
}

.opp-card {
    border: 1px solid #eef0f2;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.opp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(16, 24, 40, .08);
}

.opp-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.opp-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.progress-bar {
    background-color: var(--brand-accent);
}

/* ---------- Details / invest panel ---------- */
.back-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.gallery-main {
    height: 340px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.spec-grid div {
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 10px 14px;
}

.spec-grid strong {
    display: block;
    font-size: 1.1rem;
    color: var(--brand);
}

.spec-grid span {
    font-size: .8rem;
    color: var(--text-muted);
}

.invest-panel {
    border-radius: 16px;
    border: 1px solid #eef0f2;
    position: sticky;
    top: 20px;
}

.stat-box {
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 10px 12px;
}

.stat-box strong {
    display: block;
    color: var(--brand);
}

.stat-box span {
    font-size: .75rem;
    color: var(--text-muted);
}

/* ---------- Portfolio ---------- */
.summary-card {
    border: 1px solid #eef0f2;
    border-radius: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-soft);
    padding: 24px 0;
    margin-top: 48px;
}

/* ---------- Admin ---------- */
.admin-body {
    background: var(--bg-soft);
    font-family: 'Inter', sans-serif;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand) 0%, #184a6e 100%);
}

.login-card {
    width: 380px;
    border-radius: 14px;
    border: none;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 230px;
    background: var(--brand);
    color: #fff;
    padding: 24px 16px;
    flex-shrink: 0;
}

.admin-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.admin-brand span {
    color: var(--brand-accent);
}

.admin-brand small {
    display: block;
    font-weight: 400;
    font-size: .7rem;
    color: #9cb8cb;
}

.admin-sidebar .nav-link {
    color: #d9e4ee !important;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: .92rem;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .08);
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thumb-sm {
    width: 46px;
    height: 46px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.status-pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #374151;
}

.status-pill.status-Open { background: #d1fae5; color: #065f46; }
.status-pill.status-Draft { background: #f3f4f6; color: #4b5563; }
.status-pill.status-FundingComplete { background: #dbeafe; color: #1e40af; }
.status-pill.status-Active { background: #cffafe; color: #155e75; }
.status-pill.status-Closed { background: #fee2e2; color: #991b1b; }
.status-pill.status-Confirmed { background: #d1fae5; color: #065f46; }
.status-pill.status-Verified { background: #d1fae5; color: #065f46; }

.opp-status-badge.status-Open { background: #2fb789; }
.opp-status-badge.status-Draft { background: #9ca3af; }
.opp-status-badge.status-FundingComplete { background: #3b82f6; }
.opp-status-badge.status-Active { background: #06b6d4; }
.opp-status-badge.status-Closed { background: #ef4444; }
