﻿/* ====== Dashboard Theme (LIGHT • Jourva aligned) ===================================== */
/* Brand (pulls from your Jourva logo) */
:root {
    --db-accent-a: #12b4ad; /* teal */
    --db-accent-b: #30d6cb; /* aqua */
    /* Surfaces & ink (light) */
    --db-bg: #f1f5f9; /* shell background */
    --db-bg-2: #ffffff; /* secondary */
    --db-surface: #ffffff; /* cards/tiles */
    --db-ink: #0f172a; /* main text */
    --db-ink-2: #475569; /* secondary text */

    --db-stroke: rgba(2,6,23,.08); /* borders */
    --db-stroke-strong: rgba(2,6,23,.14);
    --db-glass: rgba(255,255,255,.72); /* light glass */

    --db-shadow: 0 10px 24px rgba(2,6,23,.08);
    --db-shadow-lg: 0 16px 40px rgba(2,6,23,.10);
}

/* Shell ------------------------------------------------------------------------------- */
.db-shell {
    min-height: 100dvh;
    display: flex;
    color: var(--db-ink);
    background: radial-gradient(900px 520px at 115% -10%, rgba(48,214,203,.10), transparent 60%), radial-gradient(850px 480px at -15% 0%, rgba(18,180,173,.08), transparent 60%), linear-gradient(180deg, var(--db-bg) 0%, #f8fafc 100%);
}

/* Sidebar ----------------------------------------------------------------------------- */
.db-sidebar {
    width: 280px;
    background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
    border-right: 1px solid var(--db-stroke);
    backdrop-filter: blur(6px);
    transition: width .2s ease;
}

.db-shell.sidebar-collapsed .db-sidebar {
    width: 84px;
}

.db-shell.sidebar-collapsed .db-nav .db-nav-title {
    display: none;
}

.db-shell.sidebar-collapsed .db-link {
    justify-content: center;
}

    .db-shell.sidebar-collapsed .db-link span {
        display: none;
    }

/* Main column ------------------------------------------------------------------------- */
.db-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar ------------------------------------------------------------------------------ */
.db-topbar {
    background: #fff;
    border-bottom: 1px solid var(--db-stroke);
    padding: .6rem .75rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 0 rgba(2,6,23,.02);
}

    .db-topbar .btn {
        color: var(--db-ink-2);
    }

        .db-topbar .btn:hover {
            filter: brightness(.98);
        }
/* Centered brand in topbar */
.db-topbar {
    position: sticky;
    top: 0;
}
/* already in your CSS, just ensuring positioned ancestor */

.db-brand-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    pointer-events: none; /* allow right-side buttons to be clickable through */
}

    .db-brand-center .brand-link {
        display: flex;
        align-items: center;
        gap: .5rem;
        text-decoration: none;
        pointer-events: auto; /* keep the brand clickable */
    }

    .db-brand-center .brand-logo {
        height: var(--brand-size, 32px);
        width: auto;
        display: block;
    }

    .db-brand-center .brand-text {
        line-height: 1;
        display: flex;
        flex-direction: column;
    }

    .db-brand-center .brand-wordmark {
        font-weight: 800;
        font-size: clamp(1rem, 1.25vw, 1.1rem);
        line-height: 1.05;
    }

    .db-brand-center .brand-tagline {
        margin-top: 0;
    }

/* Keep things tidy on very small screens */
@media (max-width: 480px) {
    .db-brand-center .brand-tagline {
        display: none;
    }
}


    /* Topbar dropdown (light) */
    .db-topbar .dropdown-menu {
        --bs-dropdown-bg: #ffffff;
        --bs-dropdown-color: var(--db-ink-2);
        --bs-dropdown-link-color: var(--db-ink-2);
        --bs-dropdown-link-hover-bg: #f1f5f9;
        --bs-dropdown-link-hover-color: var(--db-ink);
        --bs-dropdown-link-active-bg: linear-gradient(90deg, rgba(18,180,173,.16), rgba(48,214,203,.16));
        --bs-dropdown-link-active-color: var(--db-ink);
        --bs-dropdown-border-color: var(--db-stroke);
        --bs-dropdown-divider-bg: var(--db-stroke);
        --bs-dropdown-box-shadow: var(--db-shadow);
        background: var(--bs-dropdown-bg);
        color: var(--db-ink);
        border: 1px solid var(--bs-dropdown-border-color);
        box-shadow: var(--bs-dropdown-box-shadow);
        min-width: 260px;
        padding: .5rem 0;
    }

    .db-topbar .dropdown-header {
        color: var(--db-ink);
        opacity: .95;
    }

    .db-topbar .dropdown-item {
        color: var(--db-ink-2);
        display: flex;
        align-items: center;
        gap: .5rem;
    }

        .db-topbar .dropdown-item:hover,
        .db-topbar .dropdown-item:focus {
            background: var(--bs-dropdown-link-hover-bg);
            color: var(--bs-dropdown-link-hover-color);
        }

/* Icon & profile buttons ---------------------------------------------------------------- */
.btn-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--db-stroke);
    background: #fff;
    color: var(--db-ink-2);
}

.db-profile-btn {
    border: 1px solid var(--db-stroke);
    background: #fff;
    color: var(--db-ink);
    border-radius: 12px;
    padding: .35rem .5rem;
}

/* Content & footer -------------------------------------------------------------------- */
.db-content {
    animation: dbFadeUp .35s ease both;
}

.db-footer {
    border-top: 1px solid var(--db-stroke);
    padding: .75rem 1rem;
    color: var(--db-ink-2);
    background: #fff;
}

/* Navigation (sidebar) ---------------------------------------------------------------- */
.db-nav {
    height: 100%;
}

    .db-nav .db-nav-title {
        color: #64748b !important;
        letter-spacing: .12em;
        font-weight: 700;
        text-transform: uppercase;
    }

.db-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .75rem;
    margin: .15rem 0;
    border-radius: 10px;
    color: var(--db-ink-2);
    text-decoration: none;
    transition: background .2s, color .2s, transform .15s;
}

    .db-link i {
        opacity: .9;
        font-size: 1.1rem;
    }

    .db-link:hover {
        color: var(--db-ink);
        background: linear-gradient(90deg, rgba(18,180,173,.10), rgba(48,214,203,.10));
        transform: translateX(2px);
    }

    /* Optional: active state helper (if you add .active on current route) */
    .db-link.active {
        color: var(--db-ink);
        background: linear-gradient(90deg, rgba(18,180,173,.14), rgba(48,214,203,.14));
        border: 1px solid rgba(18,180,173,.25);
    }

/* Offcanvas (mobile sidebar) ---------------------------------------------------------- */
.db-offcanvas {
    background: #fff;
    color: var(--db-ink);
    border-right: 1px solid var(--db-stroke);
}

/* Cards / Tiles / Stats --------------------------------------------------------------- */
.card, .tile-card, .stat-card {
    background: var(--db-surface);
    border: 1px solid var(--db-stroke);
    color: var(--db-ink);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--db-shadow);
}

    .card .text-muted, .tile-card .text-muted, .stat-card .text-muted {
        color: var(--db-ink-2) !important;
    }

    .tile-card::before, .stat-card::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(560px 260px at -8% -10%, rgba(18,180,173,.10), transparent 60%), radial-gradient(560px 260px at 118% 0%, rgba(48,214,203,.10), transparent 60%);
    }

.stat-card {
    padding: 1rem 1rem .9rem;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}

    .stat-header i {
        font-size: 1.25rem;
        opacity: .9;
    }

.stat-body {
    display: flex;
    align-items: baseline;
    gap: .75rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.stat-title {
    font-weight: 600;
    opacity: .95;
}

.stat-trend {
    margin-top: .35rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    font-size: .9rem;
}

    .stat-trend.up {
        color: #16a34a;
    }

    .stat-trend.down {
        color: #ef4444;
    }

.tile-card {
    padding: 1rem;
}

.quick-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

    .quick-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--db-shadow-lg);
    }

/* Chips / Avatars --------------------------------------------------------------------- */
.chip {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    padding: 0 .45rem;
    border: 1px solid var(--db-stroke);
    background: #fff;
    color: var(--db-ink);
}

.avatar {
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(18,180,173,.18), rgba(48,214,203,.18));
    border: 1px solid var(--db-stroke);
    color: var(--db-ink);
    font-weight: 700;
    letter-spacing: .02em;
    user-select: none;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: .8rem;
}

/* Soft buttons (light) ---------------------------------------------------------------- */
.btn-soft {
    border: 1px solid var(--db-stroke) !important;
    background: #fff !important;
    color: var(--db-ink-2) !important;
    transition: transform .12s, box-shadow .12s, background .12s;
}

    .btn-soft:hover {
        background: #f8fafc !important;
        transform: translateY(-1px);
        box-shadow: var(--db-shadow);
    }

.db-gradient {
    color: var(--db-accent-a);
    font-weight: 700;
}




/* Forms & Tables (light) -------------------------------------------------------------- */
.input-group-text {
    background: #fff;
    border: 1px solid var(--db-stroke);
    color: var(--db-ink-2);
}

.form-control, .form-select {
    background: #fff;
    border: 1px solid var(--db-stroke);
    color: var(--db-ink);
}

    .form-control:focus, .form-select:focus {
        background: #fff;
        border-color: rgba(18,180,173,.55);
        box-shadow: 0 0 0 .2rem rgba(18,180,173,.18);
        color: var(--db-ink);
    }

/* Data tables (Bootstrap variable-driven) */
.db-table {
    --bs-table-color: var(--db-ink);
    --bs-table-bg: #fff;
    --bs-table-border-color: var(--db-stroke);
    --bs-table-striped-bg: #f8fafc;
    --bs-table-striped-color: var(--db-ink);
    --bs-table-hover-bg: #f1f5f9;
    --bs-table-hover-color: var(--db-ink);
    border-radius: 14px;
    overflow: hidden;
}

    .db-table thead {
        background: #f8fafc;
    }

        .db-table thead th {
            color: var(--db-ink) !important;
            font-weight: 600;
            border-bottom: 1px solid var(--db-stroke) !important;
            opacity: 1 !important;
        }

.table > :not(caption) > * > * {
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--db-ink);
}

.db-table tbody tr {
    border-color: var(--db-stroke);
}

/* Status badges (light) ---------------------------------------------------------------- */
.badge-soft-success {
    background: #eafaf1 !important;
    border: 1px solid #c7f0d8;
    color: #1f9152;
}

.badge-soft-muted {
    background: #eef2f8 !important;
    border: 1px solid #d8e1ef;
    color: #5b6b88;
}

/* Utilities --------------------------------------------------------------------------- */
.shadow-soft {
    box-shadow: var(--db-shadow);
}

.xsmall {
    font-size: .72rem;
}

@keyframes dbFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ======================================================================
   DASHBOARD VARIABLES (assumed to exist globally):
   --db-surface, --db-stroke, --db-ink, --db-ink-2,
   --db-accent-a, --db-accent-b, --db-shadow, --db-shadow-lg
   ====================================================================== */


/* ======================================================================
   MODAL SYSTEM
   These classes are now used for overlay modals (Licenses, Payout Accounts,
   Categories & Capabilities, Reject Agency, etc.)
   ====================================================================== */

/* Fullscreen dimmed backdrop */
.db-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem; /* breathing room on mobile */
    background: rgba(2, 6, 23, .3);
    backdrop-filter: blur(2px);
}

/* Modal wrapper (we apply this on the inner container, not the <dialog>) */
.db-modal {
    width: 100%;
    max-width: 720px; /* can be overridden inline (e.g. 640px or 420px) */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

    /* The actual card panel */
    .db-modal .modal-content {
        background: #fff;
        border: 1px solid var(--db-stroke);
        color: var(--db-ink);
        border-radius: 16px;
        box-shadow: var(--db-shadow-lg);
        display: flex;
        flex-direction: column;
        max-height: 90vh; /* trap content height inside viewport */
        overflow: hidden; /* header/footer stay pinned, body scrolls */
    }

    /* Consistent header/footer border */
    .db-modal .modal-header,
    .db-modal .modal-footer {
        border-color: var(--db-stroke);
        flex-shrink: 0;
    }

    /* Header layout tweaks */
    .db-modal .modal-header {
        background: #fff;
        border-bottom: 1px solid var(--db-stroke);
        padding: 1rem 1rem;
    }

    /* Footer layout tweaks */
    .db-modal .modal-footer {
        background: #fff;
        border-top: 1px solid var(--db-stroke);
        padding: 1rem;
    }

    /* Scroll region */
    .db-modal .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 1rem 1rem 1.25rem;
        background: #fff;
    }

    /* Close button appearance */
    .db-modal .btn-close,
    .modal-header .btn-close {
        filter: none;
        opacity: .6;
        background: transparent;
        border: 0;
        box-shadow: none;
        cursor: pointer;
    }

        .db-modal .btn-close:hover,
        .modal-header .btn-close:hover {
            opacity: .9;
        }

/* Modal title */
.modal-header .modal-title {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--db-ink);
    margin: 0;
}

/* Ensure textarea in reject modal looks right */
.modal-body .form-control {
    min-height: 2.75rem;
    border-radius: 10px;
    resize: none;
    background: #fff;
    border: 1px solid var(--db-stroke);
    color: var(--db-ink);
    font-size: .8rem;
    line-height: 1.4;
    padding: .7rem .8rem;
    box-shadow: none;
    transition: box-shadow .12s, border-color .12s;
}

    .modal-body .form-control:focus {
        background: #fff;
        border-color: rgba(18,180,173,.55);
        box-shadow: 0 0 0 .2rem rgba(18,180,173,.18);
        color: var(--db-ink);
        outline: 0;
    }

/* footer buttons row in smaller modals */
.modal-footer .btn {
    min-height: 40px;
}

/* simple utility for body sections under a header line */
.db-section-divider {
    border-top: 1px solid var(--db-stroke);
    margin: 1rem 0;
}

/* Loading state in modals ("⏳ Loading...") */
.db-loading-icon {
    display: inline-block;
    font-size: 2rem;
    line-height: 1;
    animation: dbSpin 1s linear infinite;
}

@keyframes dbSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ======================================================================
   ICON TILES IN MODAL HEADERS
   (📜 Licenses, 💳 Payout, 🎯 Capabilities)
   ====================================================================== */

.db-lic-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg,#10b981 0%,#0d9488 100%); /* green → teal */
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    color: #fff;
    box-shadow: var(--db-shadow);
}

.db-payout-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg,#7c3aed 0%,#ec4899 100%); /* purple → pink */
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    color: #fff;
    box-shadow: var(--db-shadow);
}

.db-capabilities-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg,#4f46e5 0%,#6366f1 100%); /* indigo tones */
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    color: #fff;
    box-shadow: var(--db-shadow);
}

/* Header title / desc text next to icon */
.db-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--db-ink);
    line-height: 1.3;
    margin: 0;
}

.db-header-desc {
    font-size: .8rem;
    line-height: 1.4;
    color: var(--db-ink-2);
    margin: 0;
}


/* ======================================================================
   INLINE ALERTS INSIDE MODALS
   (success / warn / error banners we show above forms)
   ====================================================================== */

.alert-ready {
    background: #eafaf1;
    border: 1px solid #c7f0d8;
    border-radius: 12px;
    padding: .75rem .9rem;
    box-shadow: var(--db-shadow);
}

.alert-warn {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: .75rem .9rem;
    box-shadow: var(--db-shadow);
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: .75rem .9rem;
    box-shadow: var(--db-shadow);
}

.alert-icon {
    font-size: 1rem;
    line-height: 1;
    font-weight: 600;
}

.alert-text {
    font-size: .8rem;
    line-height: 1.3;
    margin: 0;
    font-weight: 500;
}


/* ======================================================================
   BUTTON THEMES
   ====================================================================== */

.btn-approve {
    border: 1px solid #c7f0d8;
    background: #eafaf1;
    color: #1f9152;
    border-radius: 12px;
    font-weight: 600;
    padding: .6rem .9rem;
    box-shadow: var(--db-shadow);
    transition: all .15s ease;
    text-align: center;
}

    .btn-approve:hover {
        box-shadow: var(--db-shadow-lg);
        transform: translateY(-1px);
    }

.btn-reject {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 12px;
    font-weight: 600;
    padding: .6rem .9rem;
    box-shadow: var(--db-shadow);
    transition: all .15s ease;
    text-align: center;
}

    .btn-reject:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    .btn-reject:hover:not(:disabled) {
        box-shadow: var(--db-shadow-lg);
        transform: translateY(-1px);
    }

.btn-soft {
    background: #fff;
    border: 1px solid var(--db-stroke);
    border-radius: 12px;
    font-weight: 600;
    font-size: .8rem;
    line-height: 1.2;
    padding: .6rem .9rem;
    color: var(--db-ink);
    box-shadow: var(--db-shadow);
    transition: all .15s ease;
    text-align: center;
}

    .btn-soft:hover {
        background: #f8fafc;
        box-shadow: var(--db-shadow-lg);
        transform: translateY(-1px);
    }

.btn-manage,
.btn-default-action {
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 10px;
    padding: .45rem .75rem;
    min-width: 120px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--db-stroke);
    color: var(--db-ink);
    box-shadow: var(--db-shadow);
    transition: all .15s ease;
}

    .btn-manage:hover,
    .btn-default-action:hover {
        background: #f8fafc;
        box-shadow: var(--db-shadow-lg);
        transform: translateY(-1px);
    }

/* delete / small action button positioned in cards */
.btn-sm-position {
    position: absolute;
    top: .75rem;
    right: .75rem;
    padding: .4rem .6rem;
    font-size: .7rem;
    line-height: 1.2;
    border-radius: 10px;
}


/* ======================================================================
   BADGE SYSTEM
   Used by AgencyStatusBadge, category chips, status pills, etc.
   ====================================================================== */

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .6rem;
    border-radius: 10px;
    border: 1px solid var(--db-stroke);
    background: #fff;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--db-ink);
    box-shadow: var(--db-shadow);
    white-space: nowrap;
}

.badge-icon {
    line-height: 1;
    font-size: .8rem;
}

.badge-text {
    line-height: 1.1;
}

/* category tints */
.badge-cat-bpw {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.badge-cat-ppiu {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #5b21b6;
}

.badge-cat-pihk {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.badge-cat-provider {
    background: rgba(18,180,173,.08);
    border-color: rgba(18,180,173,.32);
    color: var(--db-ink);
}

.badge-cat-default {
    background: #f8fafc;
    border-color: var(--db-stroke);
    color: var(--db-ink-2);
}

/* status tints */
.badge-status-active {
    background: #eafaf1;
    border-color: #c7f0d8;
    color: #1f9152;
}

.badge-status-pending,
.badge-status-pendingdocs {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.badge-status-rejected {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.badge-status-archived,
.badge-status-default {
    background: #f8fafc;
    border-color: var(--db-stroke);
    color: var(--db-ink-2);
}


/* ======================================================================
   LICENSE CARD (inside Manage Licenses modal and preview list)
   ====================================================================== */

.license-card {
    padding: 1rem 1rem .75rem;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background: var(--db-surface);
    border: 1px solid var(--db-stroke);
    box-shadow: var(--db-shadow);
}

.license-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.license-card-heading {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.license-card-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.license-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--db-ink);
    line-height: 1.25;
    margin: 0;
}

.license-card-status {
    flex-shrink: 0;
}

.license-card-body {
    display: grid;
    row-gap: .5rem;
    font-size: .85rem;
    line-height: 1.4;
    color: var(--db-ink-2);
}

.license-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: .5rem;
}

.license-label {
    min-width: 120px;
    font-weight: 600;
    color: var(--db-ink);
    font-size: .8rem;
    line-height: 1.3;
}

.license-value {
    color: var(--db-ink);
    font-size: .8rem;
    line-height: 1.3;
}

    .license-value.mono {
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: .8rem;
        font-weight: 500;
    }

/* validity states */
.text-expired {
    color: #b91c1c;
    font-weight: 600;
}

.text-warning {
    color: #c2410c;
    font-weight: 600;
}

.text-normal {
    color: var(--db-ink);
    font-weight: 500;
}

/* "(Expired)" etc. */
.license-flag {
    margin-left: .5rem;
    font-size: .8rem;
    font-weight: 600;
}

    .license-flag.expired {
        color: #b91c1c;
    }

    .license-flag.warning {
        color: #c2410c;
    }

/* LicenseCard wrapper so we can absolutely position Delete btn */
.license-wrapper {
    position: relative;
}


/* ======================================================================
   PAYOUT ACCOUNT CARD (inside Manage Payout Accounts modal)
   ====================================================================== */

.payout-card {
    background: var(--db-surface);
    border: 1px solid var(--db-stroke);
    border-radius: 14px;
    padding: 1rem 1rem .9rem;
    position: relative;
    box-shadow: var(--db-shadow);
}

.payout-card-accent-on {
    background: rgba(124,58,237,.05);
    border-color: rgba(124,58,237,.25);
}

.payout-card-accent-off {
    /* keep default background / border */
}

.payout-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--db-ink);
    line-height: 1.3;
}

/* info rows inside payout card */
.info-label {
    color: var(--db-ink-2);
    font-weight: 500;
    font-size: .75rem;
    line-height: 1.3;
}

.info-value {
    color: var(--db-ink);
    font-weight: 600;
    font-size: .75rem;
    line-height: 1.3;
}

    .info-value.mono {
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: .8rem;
    }

/* default toggle row in Add Account modal */
.payout-default-toggle {
    background: rgba(124,58,237,.05);
    border: 1px solid rgba(124,58,237,.25);
    border-radius: 12px;
    padding: .75rem .9rem;
    font-size: .8rem;
    line-height: 1.4;
    color: var(--db-ink);
    font-weight: 500;
}

.payout-default-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .15rem;
    border-radius: .4rem;
    border: 1px solid var(--db-stroke);
    background: #fff;
    accent-color: var(--db-accent-a);
}


/* ======================================================================
   HEADERS, TEXT BLOCKS, LINKS (shared with details page)
   ====================================================================== */

.db-page-header .db-header-emoji {
    font-size: 2rem;
    line-height: 1;
}

.btn-link-back {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--db-accent-a);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

    .btn-link-back:hover {
        text-decoration: underline;
        color: var(--db-accent-b);
    }

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--db-ink);
    line-height: 1.3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.section-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.field-block .field-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--db-ink-2);
    margin-bottom: .25rem;
    line-height: 1.2;
}

.field-block .field-value {
    font-size: .9rem;
    font-weight: 500;
    color: var(--db-ink);
    word-break: break-word;
}

.link-action {
    color: var(--db-accent-a);
    font-weight: 500;
    text-decoration: none;
    font-size: .8rem;
    line-height: 1.3;
}

    .link-action:hover {
        color: var(--db-accent-b);
        text-decoration: underline;
    }


/* ======================================================================
   SMALL UTILITIES
   ====================================================================== */

.mono,
.info-value.mono,
.license-value.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .8rem;
}

.xsmall {
    font-size: .72rem;
    line-height: 1.2;
}

.text-danger {
    color: #dc2626 !important;
}

.text-muted {
    color: var(--db-ink-2) !important;
    font-weight: 400;
    line-height: 1.4;
    font-size: .8rem;
}

/* Small hover raise effect for cards/lists that should feel interactive */
.hover-raise {
    transition: transform .18s ease, box-shadow .18s ease;
}

    .hover-raise:hover {
        transform: translateY(-2px);
        box-shadow: var(--db-shadow-lg);
    }

/* Toast success (unchanged, still valid globally) */
.toast-success {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 2000;
    background: #16a34a;
    color: #fff;
    border-radius: 14px;
    padding: .9rem 1rem;
    min-width: 240px;
    box-shadow: var(--db-shadow-lg);
    animation: dbSlideUp .3s ease-out both;
}

.toast-icon {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 600;
}

.toast-text {
    font-size: .8rem;
    line-height: 1.3;
}

@keyframes dbSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
