/* ==========================================================================
   DPNETWORKS FUNDING SYSTEM — PREMIUM FINTECH UI
   --------------------------------------------------------------------------
   Drop-in design system layered on top of the existing Framework7 / Bootstrap
   build. Nothing here changes behaviour: it only restyles the classes the
   application already renders.

   Colour model
     • Royal blue / electric blue  → primary brand
     • Deep navy                   → headers, hero, wallet card
     • Gold                        → primary call-to-action accents
     • --dp-accent (admin colour)  → small accents only, never dominant
   ========================================================================== */

:root {
    --dp-navy-950: #050b1d;
    --dp-navy-900: #071129;
    --dp-navy-850: #081735;
    --dp-navy-800: #0a1a3c;
    --dp-navy-700: #0e2450;
    --dp-royal-800: #12318a;
    --dp-royal-700: #173ea8;
    --dp-royal-600: #1d4ed8;
    --dp-royal-500: #2563eb;
    --dp-royal-400: #3b82f6;
    --dp-electric: #38bdf8;
    --dp-electric-2: #0ea5e9;
    --dp-gold: #ffc93c;
    --dp-gold-2: #f0a500;
    --dp-gold-3: #d98e00;
    --dp-ink: #0b1730;
    --dp-text: #334155;
    --dp-muted: #7b8aa3;
    --dp-line: #e7edf7;
    --dp-surface: #ffffff;
    --dp-bg: #f3f6fc;
    --dp-bg-2: #eef3fb;
    --dp-green: #16a34a;
    --dp-red: #e11d48;
    --dp-amber: #f59e0b;

    /* Set inline from the admin "site colour" setting. */
    --dp-accent: #1d4ed8;

    --dp-radius-xl: 24px;
    --dp-radius-lg: 20px;
    --dp-radius-md: 16px;
    --dp-radius-sm: 12px;

    --dp-shadow-sm: 0 2px 8px rgba(9, 24, 64, .05);
    --dp-shadow: 0 10px 30px rgba(9, 24, 64, .08);
    --dp-shadow-lg: 0 22px 48px rgba(9, 24, 64, .16);
    --dp-shadow-blue: 0 16px 38px rgba(29, 78, 216, .28);

    --dp-header-h: 64px;
    --dp-footer-h: 74px;

    --dp-gradient-navy: linear-gradient(140deg, #050b1d 0%, #0a1a3c 45%, #14357f 100%);
    --dp-gradient-royal: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #173ea8 100%);
    --dp-gradient-wallet: linear-gradient(145deg, #081735 0%, #12318a 58%, #2563eb 100%);
    --dp-gradient-gold: linear-gradient(135deg, #ffd968 0%, #ffc93c 45%, #f0a500 100%);
}

/* --------------------------------------------------------------------------
   1. BASE
   -------------------------------------------------------------------------- */

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.theme-light {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dp-text);
    background-color: var(--dp-navy-950);
    background-image:
        radial-gradient(1100px 620px at 8% -12%, rgba(37, 99, 235, .38), transparent 62%),
        radial-gradient(900px 520px at 102% -4%, rgba(56, 189, 248, .20), transparent 58%),
        radial-gradient(800px 600px at 50% 120%, rgba(29, 78, 216, .22), transparent 62%);
    background-attachment: fixed;
    font-size: 15px;
    letter-spacing: -0.005em;
    overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6,
.font-700, .font-800, .font-900 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dp-ink);
    letter-spacing: -0.02em;
}

h1 { font-weight: 800; font-size: 26px; }
h2 { font-weight: 800; font-size: 22px; }
h3 { font-weight: 700; font-size: 19px; }
h4 { font-weight: 700; font-size: 17px; }
h5 { font-weight: 700; font-size: 15px; }
h6 { font-weight: 600; font-size: 13.5px; }

a { text-decoration: none; }

::selection { background: rgba(37, 99, 235, .22); }

/* --------------------------------------------------------------------------
   2. APP SHELL
   -------------------------------------------------------------------------- */

#page {
    background: var(--dp-bg);
    position: relative;
}

#page > .page-content {
    background: transparent;
    padding-bottom: calc(var(--dp-footer-h) + 22px + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 1200px) {
    #page {
        max-width: 1200px;
        margin: 0 auto;
        box-shadow: 0 0 80px rgba(0, 0, 0, .45);
    }
}

/* Some legacy pages render their content directly inside #page instead of
   wrapping it in .page-content. Without this they start underneath the fixed
   header and cannot scroll. The class is added by dpnet-theme.js at runtime,
   so pages that use .page-content are never affected. */
#page.dp-bare-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(var(--dp-header-h) + 14px);
    padding-bottom: calc(var(--dp-footer-h) + 22px + env(safe-area-inset-bottom));
}

#page.dp-bare-page > .row {
    margin-left: 2px !important;
    margin-right: 2px !important;
}

#page.dp-bare-page > .box,
#page.dp-bare-page > .d-flex,
#page.dp-bare-page > form,
#page.dp-bare-page > .card,
#page.dp-bare-page > .card-style {
    margin-left: 14px !important;
    margin-right: 14px !important;
}

/* Give legacy .box panels the same surface treatment as .card-style */
#page.dp-bare-page .box {
    background: var(--dp-surface);
    border: 1px solid var(--dp-line);
    border-radius: var(--dp-radius-lg);
    box-shadow: var(--dp-shadow-sm);
    padding: 14px;
}
#page.dp-bare-page .box-header {
    margin-bottom: 10px;
}
#page.dp-bare-page .box-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--dp-ink);
}

/* Preloader */
#preloader {
    background: var(--dp-gradient-navy) !important;
    z-index: 100000;
}
#preloader .spinner-border {
    color: var(--dp-electric) !important;
    border-width: 3px;
}

/* --------------------------------------------------------------------------
   3. HEADER
   -------------------------------------------------------------------------- */

.header {
    height: var(--dp-header-h) !important;
    background: var(--dp-gradient-navy) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 10px 30px rgba(3, 10, 30, .45);
    z-index: 99;
}

@media (min-width: 1200px) {
    .header {
        left: calc(50% - 600px);
        width: 1200px;
    }
}

.header .header-title {
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

/* Brand mark injected by the header partial */
.dp-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--dp-gradient-royal);
    border: 1px solid rgba(255, 255, 255, .22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .45);
    flex: 0 0 auto;
}
.dp-brand-mark i {
    color: #fff;
    font-size: 13px;
    line-height: 1;
}
.dp-brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}
.dp-brand-text small {
    font-size: 8.5px;
    letter-spacing: .22em;
    font-weight: 600;
    color: rgba(255, 255, 255, .62);
    text-transform: uppercase;
}

.header .header-icon {
    color: #fff !important;
    opacity: .92;
    transition: transform .18s ease, opacity .18s ease;
}
.header .header-icon:active,
.header .header-icon:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.header .header-icon .badge {
    background: var(--dp-gold) !important;
    color: #3a2600 !important;
    font-weight: 800;
    border: 2px solid #0a1a3c;
    top: 8px;
    right: 6px;
    min-width: 17px;
    height: 17px;
    line-height: 14px;
    padding: 0 3px;
    font-size: 9px;
    box-shadow: 0 0 0 3px rgba(255, 201, 60, .18);
}

/* Content clearance for the taller header */
.header-clear { padding-top: var(--dp-header-h) !important; }
.header-clear-medium { padding-top: calc(var(--dp-header-h) + 14px) !important; }
.header-clear-large { padding-top: calc(var(--dp-header-h) + 26px) !important; }

/* --------------------------------------------------------------------------
   4. BOTTOM NAVIGATION
   -------------------------------------------------------------------------- */

#footer-bar {
    height: var(--dp-footer-h) !important;
    background: rgba(255, 255, 255, .96) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(9, 24, 64, .07);
    box-shadow: 0 -12px 30px rgba(9, 24, 64, .08);
    padding: 0 4px calc(env(safe-area-inset-bottom));
    margin-left: 0 !important;
    z-index: 98;
}

@media (min-width: 1200px) {
    #footer-bar {
        left: calc(50% - 600px);
        width: 1200px;
    }
}

#footer-bar > a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #8593ab !important;
    font-size: 10.5px !important;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

#footer-bar > a i,
#footer-bar > a ion-icon {
    font-size: 20px !important;
    color: inherit !important;
    opacity: 1 !important;
    transition: transform .22s ease;
}

#footer-bar > a span {
    font-size: 10.5px !important;
    font-weight: 600;
    opacity: 1 !important;
}

#footer-bar > a:active { transform: scale(.94); }

#footer-bar > a.dp-nav-active {
    color: var(--dp-royal-600) !important;
}

#footer-bar > a.dp-nav-active::before {
    content: "";
    position: absolute;
    top: 6px;
    width: 40px;
    height: 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(56, 189, 248, .14));
}

#footer-bar > a.dp-nav-active::after {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dp-accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

#footer-bar > a.dp-nav-active i,
#footer-bar > a.dp-nav-active ion-icon {
    transform: translateY(-1px);
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   5. CARDS & CONTENT
   -------------------------------------------------------------------------- */

.card,
.card-style {
    background: var(--dp-surface);
    border: 1px solid var(--dp-line);
    border-radius: var(--dp-radius-lg);
    box-shadow: var(--dp-shadow-sm);
    margin-left: 14px;
    margin-right: 14px;
    overflow: hidden;
}

.card-style {
    box-shadow: var(--dp-shadow);
}

.card .content,
.card-style .content {
    padding: 2px 0;
}

.content {
    color: var(--dp-text);
}

.card-style > .content:first-child {
    padding-top: 4px;
}

.divider {
    background: var(--dp-line) !important;
    height: 1px !important;
    opacity: 1 !important;
}

hr {
    border-color: var(--dp-line) !important;
    opacity: 1 !important;
}

/* Page headings inside cards */
.page-content > .card h1,
.page-content > .card h2 {
    color: var(--dp-ink);
}

.text-primary { color: var(--dp-royal-600) !important; }
.color-highlight { color: var(--dp-royal-600) !important; }
.color-theme { color: var(--dp-text) !important; }
.color-blue-dark { color: var(--dp-royal-600) !important; }
.color-green-dark { color: var(--dp-green) !important; }
.color-red-dark { color: var(--dp-red) !important; }
.bg-highlight { background: var(--dp-gradient-royal) !important; color: #fff !important; }

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: -.01em;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    border: 0;
    box-shadow: none;
}

.btn:active { transform: translateY(1px) scale(.995); }

.btn-full { width: 100%; }

/* Primary action — royal blue */
.btn-primary,
.gradient-highlight,
.btn.btn-primary {
    background: var(--dp-gradient-royal) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(29, 78, 216, .28) !important;
    border: 0 !important;
}

.btn-primary:hover,
.gradient-highlight:hover {
    filter: brightness(1.06);
    box-shadow: 0 16px 32px rgba(29, 78, 216, .34) !important;
}

.btn-secondary {
    background: #eef2fa !important;
    color: #43536e !important;
    box-shadow: none !important;
}

.btn-sm {
    border-radius: 10px;
    font-size: 12px;
    padding: 7px 12px;
}

/* Gold CTA */
.dp-btn-gold {
    background: var(--dp-gradient-gold) !important;
    color: #3a2600 !important;
    box-shadow: 0 12px 26px rgba(240, 165, 0, .32) !important;
    font-weight: 800 !important;
}
.dp-btn-gold:hover { filter: brightness(1.04); }

/* Glass / outline CTA on dark surfaces */
.dp-btn-ghost {
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.dp-btn-ghost:hover { background: rgba(255, 255, 255, .2) !important; }

/* --------------------------------------------------------------------------
   7. FORMS
   -------------------------------------------------------------------------- */

.form-control,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    font-family: "Inter", sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--dp-ink);
    background: #f7f9fd !important;
    border: 1.5px solid var(--dp-line) !important;
    border-radius: 14px !important;
    padding: 13px 15px !important;
    box-shadow: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    background: #fff !important;
    border-color: var(--dp-royal-500) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
    outline: none !important;
}

.form-control::placeholder { color: #9aa8be; font-weight: 500; }

select.form-control,
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b8aa3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px !important;
    padding-right: 38px !important;
}

label,
.input-style label {
    font-family: "Inter", sans-serif;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--dp-muted) !important;
    margin-bottom: 6px;
}

.input-style {
    border-radius: 16px;
}

.input-style.has-borders {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 16px;
}

.input-style.has-borders label {
    position: static !important;
    display: block;
    margin: 0 0 6px 2px;
    transform: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.input-style.has-borders em {
    display: none;
}

.input-style > i {
    display: none;
}

.input-style .form-control {
    margin: 0;
}

.input-style > span {
    display: none;
}

.form-check-input {
    border-radius: 6px;
    border: 1.5px solid #c9d4e6;
}

.form-check-input:checked {
    background-color: var(--dp-royal-600);
    border-color: var(--dp-royal-600);
}

/* Tabs */
.tab-controls {
    background: #eef3fb;
    border-radius: 14px;
    padding: 4px;
    gap: 2px;
    display: flex;
}

.tab-controls a {
    flex: 1;
    text-align: center;
    border-radius: 11px;
    font-weight: 700;
    font-size: 13px;
    color: #61708a;
    padding: 9px 6px;
    transition: all .18s ease;
}

.tab-controls a[data-active],
.tab-controls a.active {
    background: #fff;
    color: var(--dp-royal-600) !important;
    box-shadow: 0 4px 12px rgba(9, 24, 64, .10);
}

/* --------------------------------------------------------------------------
   8. LISTS / TABLES / BADGES
   -------------------------------------------------------------------------- */

.list-group,
.list-custom-small {
    border-radius: var(--dp-radius-md);
    overflow: hidden;
}

.list-custom-small a {
    border-bottom: 1px solid var(--dp-line) !important;
    padding: 13px 12px !important;
    background: #fff;
}
.list-custom-small a:last-child { border-bottom: 0 !important; }

.list-custom-small a i.color-highlight,
.list-custom-small a .color-highlight {
    color: var(--dp-royal-600) !important;
}

.table {
    color: var(--dp-text);
    border-color: var(--dp-line);
}
.table > :not(caption) > * > * {
    border-color: var(--dp-line);
    padding: 11px 10px;
}
.table thead th {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dp-muted);
    font-weight: 700;
}

.badge {
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .01em;
}

.progress {
    background: #e9eef7;
    border-radius: 20px;
    overflow: hidden;
}
.progress-bar {
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. MENUS / MODALS / TOASTS
   -------------------------------------------------------------------------- */

/* The Framework7 bundle is loaded after the template stylesheet and ships a
   generic `.menu` component (position:relative, transform:none, z-index:1000)
   that hijacks the app's own off-canvas menus, leaving them permanently
   visible over the page. Re-assert the template's overlay behaviour with
   higher specificity so menus stay hidden until `data-menu` opens them.
   The selectors are intentionally not scoped to #page: the router can move
   a menu to <body> when a legacy page has unbalanced markup, and the menu
   still has to behave as an overlay. */
.menu {
    position: fixed !important;
    background: #fff;
    z-index: 101 !important;
}

.menu.menu-box-left {
    left: 0;
    top: 0 !important;
    bottom: 0;
    transform: translate3d(-100%, 0, 0) !important;
}

.menu.menu-box-left.menu-active {
    transform: translate3d(0, 0, 0) !important;
}

.menu.menu-box-right {
    right: 0;
    top: 0 !important;
    bottom: 0;
    transform: translateX(100%) !important;
}

.menu.menu-box-right.menu-active {
    transform: translate3d(0, 0, 0) !important;
}

.menu.menu-box-bottom {
    left: 0;
    right: 0;
    top: auto !important;
    bottom: 0;
    transform: translate3d(0, 110%, 0) !important;
}

.menu.menu-box-bottom.menu-active {
    transform: translate3d(0, 20px, 0) !important;
}

.menu.menu-box-modal {
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -40%) !important;
    opacity: 0;
    pointer-events: none;
}

.menu.menu-box-modal.menu-active {
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translate(-50%, -50%) !important;
}

.menu-title {
    padding: 18px 18px 10px;
}
.menu-title h1 { font-size: 20px; }
.menu-title p { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

.menu-box-modal,
.menu-box-bottom,
.menu-box-left {
    border-radius: var(--dp-radius-xl) var(--dp-radius-xl) 0 0;
    box-shadow: 0 -20px 60px rgba(3, 10, 30, .28);
}

.menu-hider {
    background: rgba(5, 11, 29, .55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.swal-modal {
    border-radius: var(--dp-radius-lg);
    box-shadow: var(--dp-shadow-lg);
}
.swal-button {
    border-radius: 12px;
    background: var(--dp-royal-600);
    font-weight: 700;
}
.swal-button--confirm { background: var(--dp-royal-600); }

/* --------------------------------------------------------------------------
   10. SERVICE GRIDS (existing markup on inner pages)
   -------------------------------------------------------------------------- */

.service-tiles .row.text-center > a,
.service-tiles .row.text-center > div[data-menu] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px 12px;
    border-radius: 16px;
    transition: background .18s ease, transform .18s ease;
}

.service-tiles .row.text-center > a:active,
.service-tiles .row.text-center > div[data-menu]:active {
    transform: scale(.96);
    background: #f1f5fd;
}

.service-tiles .icon,
.row.text-center > a .icon,
.row.text-center > div[data-menu] .icon {
    width: 52px !important;
    height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #eef4ff, #e2ecff) !important;
    color: var(--dp-royal-600) !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .07);
}

.service-tiles .icon i,
.row.text-center > a .icon i,
.row.text-center > div[data-menu] .icon i {
    color: var(--dp-royal-600) !important;
    line-height: 1;
}

.service-tiles .row.text-center p,
.row.text-center > a p,
.row.text-center > div[data-menu] p {
    font-size: 11.5px !important;
    font-weight: 600;
    color: #3f4d66 !important;
    line-height: 1.2;
    margin: 0;
}

/* Kill the old coloured "pill" badges on the home tiles */
.service-tiles .row.text-center p.badge {
    background: transparent !important;
    color: #3f4d66 !important;
    padding: 0 !important;
}

/* --------------------------------------------------------------------------
   11. DASHBOARD (homepage.php)
   -------------------------------------------------------------------------- */

.dp-home {
    background: var(--dp-bg);
}

/* --- Hero ------------------------------------------------------------- */
.dp-hero {
    position: relative;
    margin: calc(-1 * var(--dp-header-h)) 0 0;
    padding: calc(var(--dp-header-h) + 22px) 18px 92px;
    background:
        radial-gradient(680px 340px at 88% -10%, rgba(56, 189, 248, .30), transparent 62%),
        radial-gradient(520px 320px at -10% 20%, rgba(37, 99, 235, .38), transparent 60%),
        var(--dp-gradient-navy);
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    isolation: isolate;
}

/* Subtle satellite / orbit graphic */
.dp-hero::before,
.dp-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.dp-hero::before {
    width: 360px;
    height: 360px;
    right: -140px;
    top: -120px;
    border: 1px solid rgba(120, 180, 255, .20);
    box-shadow:
        0 0 0 34px rgba(120, 180, 255, .06),
        0 0 0 70px rgba(120, 180, 255, .035);
}
.dp-hero::after {
    width: 8px;
    height: 8px;
    right: 82px;
    top: 74px;
    background: var(--dp-electric);
    box-shadow: 0 0 18px 5px rgba(56, 189, 248, .55);
}

.dp-hero-inner {
    position: relative;
    z-index: 1;
}

.dp-greeting {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.dp-greeting p {
    margin: 0 0 3px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
}

.dp-greeting h2 {
    margin: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.dp-secure-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #dff1ff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.dp-secure-chip i { color: #6ee7b7; font-size: 11px; }

/* --- Wallet card ------------------------------------------------------- */
.dp-wallet {
    position: relative;
    z-index: 2;
    margin: -70px 16px 0;
    padding: 20px 20px 18px;
    border-radius: var(--dp-radius-xl);
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(56, 189, 248, .26), transparent 60%),
        radial-gradient(320px 240px at -20% 110%, rgba(29, 78, 216, .55), transparent 60%),
        var(--dp-gradient-wallet);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: var(--dp-shadow-lg);
    color: #fff;
    overflow: hidden;
}

.dp-wallet::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -54px;
    bottom: -70px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 24px rgba(255, 255, 255, .045);
    pointer-events: none;
}

.dp-wallet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dp-wallet-label {
    font-size: 11px;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, .68);
}

.dp-eye {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .18s ease;
}
.dp-eye:hover { background: rgba(255, 255, 255, .18); }

.dp-balance {
    margin: 10px 0 2px;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
    line-height: 1.12;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.dp-balance .dp-cur {
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, .72);
}

.dp-balance-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .68);
}
.dp-balance-meta b { color: var(--dp-gold); font-weight: 800; }

.dp-cashback {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .78);
}
.dp-cashback strong { color: #fff; font-weight: 800; font-size: 13px; }
.dp-cashback a {
    color: var(--dp-gold) !important;
    font-weight: 800;
    font-size: 11px;
    white-space: nowrap;
}

.dp-wallet-actions {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.dp-wallet-actions .dp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: transform .16s ease, filter .16s ease;
}
.dp-wallet-actions .dp-btn:active { transform: scale(.97); }
.dp-wallet-actions .dp-btn i { font-size: 11px; }

/* --- Sections ---------------------------------------------------------- */
.dp-section {
    padding: 0 16px;
    margin-top: 22px;
}

.dp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.dp-section-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--dp-ink);
    letter-spacing: -.01em;
}

.dp-section-head a {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--dp-royal-600) !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- Welcome banner ---------------------------------------------------- */
.dp-welcome {
    position: relative;
    margin: 18px 16px 0;
    padding: 16px 16px 16px 18px;
    border-radius: var(--dp-radius-lg);
    background: linear-gradient(120deg, #ffffff 0%, #f7faff 60%, #eef4ff 100%);
    border: 1px solid var(--dp-line);
    box-shadow: var(--dp-shadow-sm);
    display: flex;
    gap: 13px;
    align-items: flex-start;
    overflow: hidden;
}

.dp-welcome::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--dp-gradient-royal);
}

.dp-welcome-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--dp-gradient-royal);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--dp-shadow-blue);
}

.dp-welcome h4 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 800;
    color: var(--dp-ink);
}

.dp-welcome p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--dp-muted);
}

.dp-welcome .dp-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    font-size: 10px;
    font-weight: 700;
    color: var(--dp-green);
    letter-spacing: .02em;
}

/* --- Quick service cards ----------------------------------------------- */
.dp-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.dp-quick {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 14px 14px;
    border-radius: var(--dp-radius-md);
    background: #fff;
    border: 1px solid var(--dp-line);
    box-shadow: var(--dp-shadow-sm);
    color: var(--dp-ink) !important;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dp-quick:active {
    transform: scale(.975);
    box-shadow: var(--dp-shadow);
}

.dp-quick::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .10), transparent 70%);
    pointer-events: none;
}

.dp-quick-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dp-quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    box-shadow: 0 8px 18px rgba(29, 78, 216, .22);
}

.dp-quick-icon.is-data   { background: linear-gradient(140deg, #2563eb, #1d4ed8); }
.dp-quick-icon.is-airtime{ background: linear-gradient(140deg, #0ea5e9, #2563eb); }
.dp-quick-icon.is-power  { background: linear-gradient(140deg, #f59e0b, #d97706); }
.dp-quick-icon.is-tv     { background: linear-gradient(140deg, #7c3aed, #4f46e5); }

.dp-quick-arrow {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5fd;
    color: var(--dp-royal-600);
    font-size: 10px;
    transition: transform .18s ease, background .18s ease;
}

.dp-quick:hover .dp-quick-arrow {
    transform: translateX(2px);
    background: #e5edff;
}

.dp-quick h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--dp-ink);
}

.dp-quick p {
    margin: -4px 0 0;
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--dp-muted);
}

/* --- Services grid ----------------------------------------------------- */
.dp-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.dp-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 6px 13px;
    border-radius: var(--dp-radius-md);
    background: #fff;
    border: 1px solid var(--dp-line);
    box-shadow: var(--dp-shadow-sm);
    color: #3f4d66 !important;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dp-service:active {
    transform: scale(.965);
    box-shadow: var(--dp-shadow);
}

.dp-service .dp-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--dp-royal-600);
    background: linear-gradient(145deg, #eef4ff, #e0eaff);
    border: 1px solid rgba(37, 99, 235, .07);
    transition: transform .18s ease;
}

.dp-service:hover .dp-service-icon { transform: translateY(-2px); }

.dp-service span.dp-service-label {
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    color: #3f4d66;
}

.dp-service.is-accent .dp-service-icon {
    color: #8a5a00;
    background: linear-gradient(145deg, #fff6dc, #ffe9b3);
    border-color: rgba(240, 165, 0, .16);
}

/* --- Security banner --------------------------------------------------- */
.dp-security {
    position: relative;
    margin: 22px 16px 0;
    padding: 20px 18px;
    border-radius: var(--dp-radius-xl);
    background:
        radial-gradient(320px 200px at 92% 0%, rgba(56, 189, 248, .28), transparent 60%),
        var(--dp-gradient-navy);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--dp-shadow-lg);
    color: #fff;
    overflow: hidden;
    display: flex;
    gap: 14px;
    align-items: center;
}

.dp-security::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 0 0 22px rgba(255, 255, 255, .035);
    pointer-events: none;
}

.dp-security-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--dp-gold);
}

.dp-security h4 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
}

.dp-security p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .66);
}

.dp-security .dp-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 201, 60, .14);
    border: 1px solid rgba(255, 201, 60, .26);
    color: var(--dp-gold);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* --- Transactions ------------------------------------------------------ */
.dp-tx-list {
    background: #fff;
    border: 1px solid var(--dp-line);
    border-radius: var(--dp-radius-lg);
    box-shadow: var(--dp-shadow-sm);
    overflow: hidden;
}

.dp-tx {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--dp-line);
    color: var(--dp-text) !important;
    transition: background .16s ease;
}
.dp-tx:last-child { border-bottom: 0; }
.dp-tx:active { background: #f6f9ff; }

.dp-tx-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    background: var(--dp-gradient-royal);
}

.dp-tx-icon.is-airtime { background: linear-gradient(140deg, #16a34a, #15803d); }
.dp-tx-icon.is-data    { background: linear-gradient(140deg, #2563eb, #1d4ed8); }
.dp-tx-icon.is-tv      { background: linear-gradient(140deg, #7c3aed, #4f46e5); }
.dp-tx-icon.is-power   { background: linear-gradient(140deg, #f59e0b, #d97706); }
.dp-tx-icon.is-exam    { background: linear-gradient(140deg, #0ea5e9, #0284c7); }
.dp-tx-icon.is-other   { background: linear-gradient(140deg, #64748b, #475569); }

.dp-tx-main { min-width: 0; flex: 1 1 auto; }

.dp-tx-main h5 {
    margin: 0 0 2px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dp-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-tx-main p {
    margin: 0;
    font-size: 10.5px;
    color: var(--dp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-tx-side {
    flex: 0 0 auto;
    text-align: right;
}

.dp-tx-side .dp-tx-amount {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--dp-ink);
    letter-spacing: -.01em;
}

.dp-tx-side .dp-tx-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 700;
    margin-top: 2px;
}

.dp-tx-status.is-ok { color: var(--dp-green); }
.dp-tx-status.is-pending { color: var(--dp-amber); }
.dp-tx-status.is-fail { color: var(--dp-red); }

.dp-empty {
    padding: 34px 18px;
    text-align: center;
    color: var(--dp-muted);
}
.dp-empty i {
    font-size: 30px;
    color: #c9d6ea;
    display: block;
    margin-bottom: 10px;
}
.dp-empty p { margin: 0; font-size: 12.5px; font-weight: 600; }

/* --------------------------------------------------------------------------
   12. LOGIN / AUTH
   -------------------------------------------------------------------------- */

.dp-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(800px 460px at 50% -10%, rgba(37, 99, 235, .40), transparent 62%),
        var(--dp-navy-950);
}

.dp-auth-hero {
    padding: 46px 24px 30px;
    text-align: center;
    color: #fff;
}

.dp-auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    margin: 0 auto 14px;
    background: var(--dp-gradient-royal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, .42);
    border: 1px solid rgba(255, 255, 255, .18);
}

.dp-auth-hero h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
}

.dp-auth-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .60);
    font-size: 12px;
    letter-spacing: .04em;
}

.dp-auth-card {
    margin: 0 18px 24px;
    padding: 22px 18px;
    background: #fff;
    border-radius: var(--dp-radius-xl);
    box-shadow: 0 30px 60px rgba(3, 10, 30, .35);
    border: 1px solid rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (min-width: 576px) {
    .dp-quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dp-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .dp-hero { padding-left: 26px; padding-right: 26px; }
    .dp-wallet { margin-left: 26px; margin-right: 26px; padding: 24px 24px 20px; }
    .dp-section { padding: 0 26px; }
    .dp-welcome,
    .dp-security { margin-left: 26px; margin-right: 26px; }
    .dp-balance { font-size: 38px; }
    .dp-service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .card, .card-style { margin-left: 26px; margin-right: 26px; }
}

@media (min-width: 992px) {
    body.theme-light { font-size: 15.5px; }
    .dp-hero { border-radius: 0 0 36px 36px; }
    .dp-service-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
    .dp-welcome, .dp-security { max-width: none; }
}

@media (max-width: 359px) {
    .dp-wallet-actions { grid-template-columns: 1fr 1fr; }
    .dp-wallet-actions .dp-btn-gold { grid-column: 1 / -1; }
    .dp-balance { font-size: 26px; }
}

/* --------------------------------------------------------------------------
   14. MOTION PREFERENCES
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   15. ENTRANCE ANIMATION (added by dpnet-theme.js)
   -------------------------------------------------------------------------- */

.dp-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s cubic-bezier(.22, .61, .36, 1), transform .5s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--dp-delay, 0ms);
    will-change: opacity, transform;
}

.dp-reveal-in {
    opacity: 1;
    transform: none;
}

.header.dp-scrolled {
    box-shadow: 0 14px 34px rgba(3, 10, 30, .55);
}

/* --------------------------------------------------------------------------
   16. HEADER BRAND / AVATAR FIXES
   -------------------------------------------------------------------------- */

.header-logo-center .header-title {
    width: auto !important;
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%);
    max-width: calc(100% - 130px);
    overflow: hidden;
    white-space: nowrap;
}

.dp-brand-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header .header-icon.dp-header-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: var(--dp-header-h);
}

.dp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 6px 14px rgba(3, 10, 30, .35);
}

/* --------------------------------------------------------------------------
   17. AUTH FIELDS
   -------------------------------------------------------------------------- */

body.dp-auth-body {
    background: var(--dp-navy-950);
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100%;
}

.dp-auth {
    justify-content: center;
}

.dp-auth-card {
    width: calc(100% - 36px);
    max-width: 420px;
    margin: 0 auto 22px;
}

.dp-auth-title {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 800;
    color: var(--dp-ink);
}

.dp-auth-sub {
    margin: 0 0 16px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--dp-muted);
}

.dp-auth-account {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--dp-royal-600) !important;
    margin-bottom: 16px !important;
}

.dp-field {
    margin-bottom: 14px;
}

.dp-field > label {
    display: block;
    margin: 0 0 6px 2px;
}

.dp-field-wrap {
    position: relative;
}

.dp-field-wrap .form-control {
    padding-right: 52px !important;
}

.dp-field-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #eef3fb;
    color: #61708a;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.dp-field-toggle:hover {
    background: #e2eafb;
    color: var(--dp-royal-600);
}

.dp-auth-links {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.dp-auth-links a {
    font-size: 12.5px;
    font-weight: 600;
    color: #5b6a84 !important;
}

.dp-auth-links a b {
    color: var(--dp-royal-600);
    font-weight: 800;
}

.dp-auth-foot {
    padding: 0 20px 30px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .42);
}

.dp-auth-foot i {
    color: var(--dp-gold);
    margin-right: 4px;
}

@media (min-height: 760px) {
    .dp-auth-hero { padding-top: 62px; }
}
