/* VerifyID theme: blue & white. Shared by every layout (app, admin, guest, landing). */
:root {
    --brand: #1d4ed8;
    --brand-dark: #1e3a8a;
    --brand-light: #3b82f6;
    --brand-tint: #eaf1ff;
    --navy: #0b1b3f;
    --navy-2: #13285a;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e5eaf3;
    --surface: #ffffff;
    --page: #f4f7fc;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);

    /* Point Bootstrap's own primary at the brand blue */
    --bs-primary: #1d4ed8;
    --bs-primary-rgb: 29, 78, 216;
    --bs-link-color: #1d4ed8;
    --bs-link-color-rgb: 29, 78, 216;
    --bs-link-hover-color: #1e3a8a;
    --bs-link-hover-color-rgb: 30, 58, 138;
    --bs-body-font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --bs-body-color: #0f172a;
    --bs-border-color: #e5eaf3;
}

body {
    background: var(--page);
    font-family: var(--bs-body-font-family);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -.01em; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.text-muted { color: var(--muted) !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-brand, .btn-primary {
    background: var(--brand); border-color: var(--brand); color: #fff;
    box-shadow: 0 4px 14px rgba(29, 78, 216, .25);
}
.btn-brand:hover, .btn-brand:focus, .btn-primary:hover, .btn-primary:focus,
.btn-primary:active, .btn-brand:active {
    background: var(--brand-dark) !important; border-color: var(--brand-dark) !important; color: #fff !important;
}
.btn-brand:disabled, .btn-primary:disabled { background: #94a3b8; border-color: #94a3b8; color: #fff; box-shadow: none; }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.text-primary { color: var(--brand) !important; }
.bg-primary { background: var(--brand) !important; }
.badge { font-weight: 600; border-radius: 6px; padding: .4em .6em; }
.nav-pills .nav-link.active { background: var(--brand); color: #fff; }
.nav-pills .nav-link { color: var(--muted); border-radius: 10px; }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: 10px; border-color: var(--line); padding: .6rem .85rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-light); box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .18);
}
.form-label { font-weight: 600; font-size: .88rem; color: #334155; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ---------- Cards, tables, alerts ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.table > :not(caption) > * > * { padding: .7rem .75rem; }
.table thead th, .table thead td { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; border-bottom-color: var(--line); }
.alert { border-radius: 12px; }
.alert-info { background: var(--brand-tint); border-color: #cddcff; color: var(--brand-dark); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); }

/* ---------- Dashboard shell (user + admin) ---------- */
.sidebar {
    width: 260px; min-height: 100vh; position: fixed; top: 0; left: 0; z-index: 1040; transition: .2s;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    padding-bottom: 1.5rem; overflow-y: auto; max-height: 100vh;
}
.sidebar .brand {
    color: #fff; font-weight: 700; font-size: 1.15rem; padding: 1.25rem 1.4rem;
    display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sidebar .brand img { border-radius: 8px; }
.sidebar a {
    color: #b9c6e4; text-decoration: none; padding: .62rem 1rem; margin: .12rem .75rem;
    display: flex; align-items: center; gap: .7rem; font-size: .92rem; font-weight: 500;
    border-radius: 10px; transition: .15s;
}
.sidebar a i { font-size: 1.05rem; }
.sidebar a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar a.active { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(29, 78, 216, .45); }
.sidebar .nav-label {
    color: #6f82ad; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
    font-weight: 600; padding: 1.1rem 1.75rem .35rem;
}
.main { margin-left: 260px; transition: .2s; min-height: 100vh; }
.topbar {
    background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); padding: .8rem 1.5rem; position: sticky; top: 0; z-index: 1030;
}
.wallet-pill { background: var(--brand-tint); color: var(--brand-dark); border-radius: 30px; padding: .4rem 1rem; font-weight: 600; font-size: .9rem; }
.stat-card .icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.sidebar-backdrop { display: none; }
@media (max-width: 991px) {
    .sidebar { left: -260px; }
    .sidebar.show { left: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
    .sidebar.show + .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1035; }
    .main { margin-left: 0; }
}

/* Service pages */
.service-hero { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); }
.service-hero-body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.service-card { border: 1px solid var(--line); border-radius: 16px; }
.service-note { background: var(--brand-tint); color: var(--brand-dark); border-radius: 12px; padding: .9rem 1rem; }
.service-hero h1 { margin-bottom: .25rem; }
.service-hero p { margin-bottom: 0; }

/* Keep the row action (View) button visible when a wide table scrolls sideways */
.table-responsive .col-action { position: sticky; right: 0; background: #fff; box-shadow: -8px 0 8px -8px rgba(0, 0, 0, .2); z-index: 2; }
thead .col-action { background: #fff; }

/* Full-screen logo loader shown during transactions */
#app-loader { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(11, 27, 63, .6); backdrop-filter: blur(3px); }
#app-loader.show { display: flex; }
.loader-ring { position: relative; width: 110px; height: 110px; }
.loader-ring .spin { position: absolute; inset: 0; border: 4px solid rgba(255, 255, 255, .25); border-top-color: var(--brand-light); border-radius: 50%; animation: loader-spin .9s linear infinite; }
.loader-ring img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 16px; object-fit: cover; animation: loader-pulse 1.2s ease-in-out infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); } }

/* ---------- Auth (guest) pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, .45), transparent 55%),
                linear-gradient(150deg, var(--navy) 0%, var(--brand-dark) 60%, var(--brand) 100%);
    color: #fff; padding: 3.5rem; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side .brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.25rem; color: #fff; text-decoration: none; }
.auth-side .brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.auth-side h2 { font-weight: 800; font-size: 2.2rem; line-height: 1.2; }
.auth-side ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.auth-side li { display: flex; gap: .65rem; align-items: center; margin-bottom: .8rem; color: #dbe6ff; }
.auth-side li i { color: #93c5fd; font-size: 1.1rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; background: var(--page); }
.auth-card { max-width: 440px; width: 100%; border-radius: 18px; box-shadow: var(--shadow-md); padding: 2.5rem; }
.auth-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.auth-mobile-brand { display: none; }
@media (max-width: 991px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-mobile-brand { display: block; }
    .auth-card { padding: 1.75rem; }
}

/* ---------- Landing page ---------- */
.site-nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-nav .navbar-brand img { border-radius: 8px; }
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(circle at 85% 15%, rgba(59, 130, 246, .55), transparent 45%),
                linear-gradient(140deg, var(--navy) 0%, var(--brand-dark) 55%, var(--brand) 100%);
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #dbe6ff; padding: .35rem .85rem; border-radius: 30px; font-size: .82rem; font-weight: 600; }
.hero h1 { font-weight: 800; letter-spacing: -.02em; }
.hero .lead { color: #cfdcfb; }
.hero-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; padding: 1.5rem; backdrop-filter: blur(6px); }
.hero-card .row-item { display: flex; align-items: center; gap: .85rem; background: #fff; color: var(--ink); border-radius: 14px; padding: .85rem 1rem; margin-bottom: .75rem; box-shadow: var(--shadow-md); }
.hero-card .row-item:last-child { margin-bottom: 0; }
.hero-card .row-item .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-size: 1.15rem; }
.hero-card .ok { margin-left: auto; color: #16a34a; font-size: 1.2rem; }
.btn-hero-light { background: #fff; color: var(--brand-dark); border: none; }
.btn-hero-light:hover { background: #e0eaff; color: var(--brand-dark); }
.btn-hero-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-strip .stat { font-weight: 800; font-size: 1.5rem; color: var(--brand-dark); }
.section-eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.feature-card { border: 1px solid var(--line); border-radius: 18px; transition: .2s; height: 100%; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cddcff; }
.feature-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
.cta-band { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: 24px; }
.site-footer { background: var(--navy); color: #9fb0d6; }
.site-footer a { color: #dbe6ff; text-decoration: none; }
