/* 🔥 BRAND SYSTEM */
:root {
    --brand-dark: #0f172a;
    --brand-dark-2: #1e293b;
    --brand-gold: #ffb300;
    --brand-gold-dark: #ff8f00;
    --brand-bg: #f4f6f9;
}

/* BASE */
body {
    background-color: var(--brand-bg);
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 60px;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* TYPOGRAPHY */
h1 {
    letter-spacing: -0.5px;
}

/* NAVBAR */
.bg-brand {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-dark-2));
}

.navbar {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* BRAND TEXT */
.navbar-brand span {
    color: #fff;
    letter-spacing: 0.5px;
}

/* NAV LINKS */
.nav-link {
    color: #cbd5e1 !important;
    transition: all 0.2s ease;
}

    .nav-link:hover {
        color: #ffffff !important;
    }

    /* ACTIVE NAV */
    .nav-link.active {
        color: var(--brand-gold) !important;
        font-weight: 600;
    }

/* PRIMARY BRAND BUTTON */
.btn-gold {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
    border: none;
    color: #000;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .btn-gold:hover {
        background: linear-gradient(135deg, #ffa000, #ff6f00);
        transform: translateY(-1px);
    }

/* DARK BUTTON */
.btn-dark {
    background: linear-gradient(135deg, #111, #333);
    border: none;
    transition: all 0.2s ease;
}

    .btn-dark:hover {
        background: linear-gradient(135deg, #000, #222);
        transform: translateY(-1px);
    }



/* ACTION BUTTONS */
.btn-sm {
    border-radius: 8px;
}

/* VERIFY PAGE POLISH */

hr {
    opacity: 0.1;
}

.fs-1 {
    letter-spacing: -1px;
}

/* FORM POLISH */
.form-control, .form-select {
    border-radius: 10px;
    padding: 10px;
}


/* BUTTON */
.btn-dark {
    background: linear-gradient(135deg, #111, #333);
    border: none;
}

    .btn-dark:hover {
        background: linear-gradient(135deg, #000, #222);
    }



.display-5 {
    letter-spacing: -1px;
}

.badge {
    font-size: 13px;
    border-radius: 20px;
}

.card small {
    color: #666;
}

.card h4 {
    margin: 0;
    font-weight: 700;
}


.certificate-card {
    border-radius: 16px;
}

.certificate-title {
    letter-spacing: 2px;
}

.certificate-id {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #777;
}

.certificate-brand {
    position: absolute;
    top: 10px;
    right: 15px;
    border: 1px solid #ddd;
    padding: 4px 10px;
    font-weight: bold;
    font-size: 12px;
}

.certificate-watermark {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: 80px;
    opacity: 0.05;
    font-weight: bold;
    pointer-events: none;
}

.info-block h6 {
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.qr-img {
    width: 120px;
}

@media (max-width: 768px) {
    .certificate-watermark {
        font-size: 50px;
    }

    .certificate-brand {
        position: static;
        margin-bottom: 10px;
        display: inline-block;
    }
}

.metric-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}

@media (max-width: 768px) {

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

        .action-buttons .btn {
            width: 100%;
        }

    /* ============================= */
    /* 📱 MOBILE TABLE SYSTEM */
    /* ============================= */
    @media (max-width: 768px) {

        table {
            width: 100%;
            border-collapse: collapse;
        }

            table thead {
                display: none;
            }

            table tbody tr {
                display: block;
                background: #fff;
                margin-bottom: 12px;
                padding: 12px;
                border-radius: 12px;
                box-shadow: 0 2px 10px rgba(0,0,0,0.06);
            }

            table tbody td {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 6px 0;
                font-size: 14px;
            }

                table tbody td::before {
                    content: attr(data-label);
                    font-weight: 600;
                    color: #666;
                }

        /* 🔥 ACTION BUTTONS FIX */
        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

            .action-buttons .btn {
                flex: 1;
                min-width: 44px;
                height: 38px;
            }
    }
}

/* 📊 CHART FIX */
canvas {
    max-height: 280px;
}

@media (max-width: 768px) {
    canvas {
        max-height: 220px;
    }
}

/* KPI CARDS */
@media (max-width: 768px) {

    .card h4 {
        font-size: 18px;
    }

    .card small {
        font-size: 12px;
    }

    .card {
        padding: 12px !important;
    }
}

/* GLOBAL MOBILE SPACING */
@media (max-width: 768px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h3 {
        font-size: 20px;
    }

    .row.g-3 > * {
        margin-bottom: 10px;
    }
}
/* BUTTON GROUP MOBILE */
@media (max-width: 768px) {

    .btn-group,
    .d-flex.gap-2 {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

.kpi-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.kpi-card {
    min-width: 140px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    .certificate {
        padding: 15px;
        border-width: 3px;
        min-height: auto;
    }

    .inner {
        padding: 15px;
    }

    .header h1 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 11px;
    }

    /* 🔥 REMOVE ABSOLUTE CHAOS */
    .cert-id,
    .badge,
    .qr,
    .watermark {
        position: static;
        transform: none;
        text-align: center;
        margin-bottom: 10px;
    }

    .watermark {
        display: none; /* looks messy on mobile */
    }

    .badge {
        border: none;
        font-size: 12px;
    }

    /* VALUE */
    .value .amount {
        font-size: 26px;
    }

    /* GRID → STACK */
    .grid {
        flex-direction: column;
    }

    .col {
        width: 100%;
        margin-bottom: 15px;
    }

    /* SIGNATURES STACK */
    .signatures {
        flex-direction: column;
        gap: 20px;
    }

    .sig-line {
        width: 100%;
    }

    /* QR FIX */
    .qr img {
        width: 80px;
    }

    .footer {
        font-size: 10px;
    }
}

.header {
    background: #0f172a;
    color: white;
    padding: 20px;
    text-align: center;
}

.kpi {
    display: inline-block;
    width: 30%;
    text-align: center;
    margin-top: 15px;
}

    .kpi h2 {
        margin: 0;
        color: #16a34a;
    }

.risk-high {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    margin-top: 10px;
}
.loan-card {
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #eef2f7;
}

.kpi-card {
    border-radius: 12px;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
    height: 60vh;
    background: linear-gradient(135deg, #0f172a, #1e293b, #065f46);
    position: relative;
}

    .hero-section::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent);
    }

/* =========================
   GLASS CARDS
========================= */
.card-glass {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

    .card-glass:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    }

/* =========================
   ROADMAP CARDS
========================= */
.card-phase {
    border: none;
    border-radius: 16px;
    padding: 25px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .card-phase:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

/* =========================
   CTA
========================= */
.cta-section {
    padding: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827, #374151);
    color: white;
}

/* =========================
   BUTTON GOLD
========================= */
.btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

    .btn-gold:hover {
        background: linear-gradient(135deg, #d97706, #b45309);
        color: white;
    }

.hero-section {
    position: relative;
}

    .hero-section::after {
        pointer-events: none; /* 🔥 THIS FIXES IT */
    }

.navbar .btn {
    border-radius: 8px;
}