/* NooxPay - new shell skin (sidebar + topbar) layered on top of AdminLTE. */

:root {
    --cp-sidebar-width: 272px;
    --cp-sidebar-bg: #0d1a2d;
    --cp-sidebar-bg-alt: #101f36;
    --cp-sidebar-border: rgba(255, 255, 255, 0.07);
    --cp-sidebar-text: #8a99b3;
    --cp-sidebar-text-active: #ffffff;
    --cp-sidebar-heading: #4d6079;

    --cp-accent: #2f7bff;
    --cp-accent-dark: #1f63e0;
    --cp-cyan: #22d3c5;
    --cp-danger: #ef4444;

    --cp-bg: #eef1f7;
    --cp-card-bg: #ffffff;
    --cp-card-border: #e6ebf3;
    --cp-text-primary: #17213a;
    --cp-text-secondary: #6b7690;
    --cp-text-muted: #9aa5ba;

    --cp-shadow: 0 8px 24px rgba(20, 32, 58, 0.06);
    --cp-radius: 16px;

    --cp-field-bg: #f3f5f9;
    --cp-field-bg-focus: #ffffff;
    --cp-field-radius: 14px;
    --cp-field-height: 52px;
}

body.corepay-shell {
    background: var(--cp-bg) !important;
    font-family: "Source Sans Pro", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body.corepay-shell.corepay-dark {
    --cp-bg: #0b1424;
    --cp-card-bg: #121f36;
    --cp-card-border: #1e2d48;
    --cp-field-bg: #16233b;
    --cp-field-bg-focus: #1a2b47;
    --cp-text-primary: #eef2fb;
    --cp-text-secondary: #97a3bd;
    --cp-text-muted: #6d7994;
}

/* ---------- Global form elements (applies system-wide: every page under
   layouts.appdash inherits this, not just the dashboard/wizard) ---------- */

body.corepay-shell label,
body.corepay-shell .form-label {
    margin-bottom: 8px;
    color: var(--cp-text-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15px;
}

body.corepay-shell .form-control,
body.corepay-shell .custom-select,
body.corepay-shell select.form-control,
body.corepay-shell textarea.form-control {
    min-height: var(--cp-field-height);
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--cp-field-radius);
    background-color: var(--cp-field-bg);
    color: var(--cp-text-primary);
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.corepay-shell textarea.form-control {
    min-height: 96px;
    padding-top: 14px;
}

body.corepay-shell .form-control::placeholder {
    color: var(--cp-text-muted);
    font-weight: 400;
}

body.corepay-shell .form-control:focus,
body.corepay-shell .custom-select:focus,
body.corepay-shell select.form-control:focus {
    background-color: var(--cp-field-bg-focus);
    border-color: var(--cp-accent);
    box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.14);
    outline: none;
}

body.corepay-shell .form-control:disabled,
body.corepay-shell .form-control[readonly] {
    opacity: 0.7;
}

/* Custom chevron for selects — replaces the native browser arrow */
body.corepay-shell select.form-control,
body.corepay-shell .custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7690' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 8px;
    padding-right: 42px;
}

body.corepay-shell .form-control-sm,
body.corepay-shell .custom-select-sm {
    min-height: 38px;
    padding: 6px 14px;
    background-position: right 12px center;
    padding-right: 32px;
    font-size: 12px;
}

/* Input-group addons (calendar icon boxes, currency prefixes) get the same
   elegant field color; Bootstrap 4's own (higher-specificity) rules already
   keep the joined corner flush against the input, so radius is left alone. */
body.corepay-shell .input-group-prepend .input-group-text,
body.corepay-shell .input-group-append .input-group-text {
    border: 1px solid transparent;
    background-color: var(--cp-field-bg);
    color: var(--cp-text-secondary);
}

/* Buttons: same soft, rounded language across the whole system */
body.corepay-shell .btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 400;
    letter-spacing: 0.1px;
    transition: all 0.18s ease;
}

body.corepay-shell .btn-sm {
    padding: 6px 14px;
    border-radius: 9px;
}

/* ---------- Preloader (splash) ---------- */

body.corepay-shell .preloader {
    background-color: var(--cp-bg);
}

body.corepay-shell .corepay-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: corepay-loader-intro 0.5s ease-out;
}

body.corepay-shell .corepay-loader-svg {
    overflow: visible;
}

body.corepay-shell .corepay-loader-ring {
    transform-box: view-box;
    transform-origin: 256px 256px;
    animation: corepay-loader-spin 2.4s linear infinite;
}

body.corepay-shell .corepay-loader-mark {
    transform-box: view-box;
    transform-origin: 256px 256px;
    animation: corepay-loader-pulse 1.6s ease-in-out infinite;
}

body.corepay-shell .corepay-loader-label {
    color: var(--cp-text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    animation: corepay-loader-fade 1.6s ease-in-out infinite;
}

@keyframes corepay-loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes corepay-loader-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.07); opacity: 1; }
}

@keyframes corepay-loader-fade {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes corepay-loader-intro {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    body.corepay-shell .corepay-loader-ring,
    body.corepay-shell .corepay-loader-mark,
    body.corepay-shell .corepay-loader-label,
    body.corepay-shell .corepay-loader {
        animation: none;
    }
}

/* ---------- Sidebar ---------- */

/* AdminLTE hardcodes the sidebar at 250px and offsets the content area to
   match; since our sidebar is wider, the offset + collapse behavior needs
   to be corrected everywhere it's used, or content/sidebar would overlap. */

body.corepay-shell .content-wrapper,
body.corepay-shell .main-footer,
body.corepay-shell .main-header {
    margin-left: var(--cp-sidebar-width) !important;
}

body.corepay-shell.sidebar-collapse .main-sidebar {
    margin-left: calc(-1 * var(--cp-sidebar-width)) !important;
    width: var(--cp-sidebar-width) !important;
}

body.corepay-shell.sidebar-collapse .content-wrapper,
body.corepay-shell.sidebar-collapse .main-footer,
body.corepay-shell.sidebar-collapse .main-header {
    margin-left: 0 !important;
}

body.corepay-shell.sidebar-open .main-sidebar {
    margin-left: 0 !important;
}

@media (max-width: 991.98px) {
    body.corepay-shell .content-wrapper,
    body.corepay-shell .main-footer,
    body.corepay-shell .main-header {
        margin-left: 0 !important;
    }
}

body.corepay-shell .main-sidebar {
    display: flex;
    flex-direction: column;
    width: var(--cp-sidebar-width);
    background: linear-gradient(180deg, var(--cp-sidebar-bg), var(--cp-sidebar-bg-alt)) !important;
    border-right: 1px solid var(--cp-sidebar-border);
    box-shadow: none;
}

body.corepay-shell .corepay-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 74px;
    flex: none;
    border-bottom: 1px solid var(--cp-sidebar-border);
}

body.corepay-shell .corepay-sidebar-brand img {
    width: 138px;
}

body.corepay-shell .corepay-sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 22px 0 10px;
}

body.corepay-shell .corepay-sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

body.corepay-shell .corepay-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

body.corepay-shell .corepay-nav-group {
    margin-bottom: 22px;
    padding: 0 16px;
}

body.corepay-shell .corepay-nav-heading {
    display: block;
    margin: 0 8px 8px;
    color: var(--cp-sidebar-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

body.corepay-shell .corepay-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.corepay-shell .corepay-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--cp-sidebar-text);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease;
}

body.corepay-shell .corepay-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

body.corepay-shell .corepay-nav-link.active {
    color: var(--cp-sidebar-text-active);
    background: rgba(47, 123, 255, 0.16);
    box-shadow: inset 3px 0 0 var(--cp-accent);
}

body.corepay-shell .corepay-nav-link i {
    width: 16px;
    font-size: 14px;
    text-align: center;
    flex: none;
}

body.corepay-shell .corepay-bank-card {
    margin: 0 16px 22px;
    padding: 14px;
    border: 1px solid var(--cp-sidebar-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--cp-sidebar-text);
    font-size: 11px;
}

body.corepay-shell .corepay-bank-card b {
    color: #fff;
}

body.corepay-shell .corepay-bank-card input {
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--cp-sidebar-border);
    color: #fff;
    font-size: 11px;
}

body.corepay-shell .corepay-sidebar-footer {
    flex: none;
    padding: 16px;
    border-top: 1px solid var(--cp-sidebar-border);
}

body.corepay-shell .corepay-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

body.corepay-shell .corepay-avatar {
    display: flex;
    width: 38px;
    height: 38px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cp-accent), #5a4dea);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

body.corepay-shell .corepay-account-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

body.corepay-shell .corepay-account-info span {
    color: var(--cp-sidebar-heading);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

body.corepay-shell .corepay-account-info strong {
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.corepay-shell .corepay-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff8583;
    font-size: 12px;
    font-weight: 600;
}

body.corepay-shell .corepay-logout:hover {
    color: #ff5f5c;
}

/* ---------- Topbar ---------- */

body.corepay-shell .main-header {
    height: 74px;
    padding: 0 26px;
    border-bottom: 1px solid var(--cp-card-border);
    background: var(--cp-card-bg) !important;
    box-shadow: none !important;
}

body.corepay-shell .main-header .navbar-nav {
    align-items: center;
}

body.corepay-shell .corepay-topbar-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: auto;
}

body.corepay-shell .corepay-topbar-eyebrow {
    color: var(--cp-text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

body.corepay-shell .corepay-topbar-title {
    color: var(--cp-text-primary);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

body.corepay-shell .corepay-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.corepay-shell .corepay-icon-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cp-card-border);
    border-radius: 50%;
    color: var(--cp-text-secondary);
    background: var(--cp-card-bg);
    font-size: 14px;
    transition: all 0.18s ease;
}

body.corepay-shell .corepay-icon-btn:hover {
    color: var(--cp-accent);
    border-color: #cddcff;
    background: #eef4ff;
}

/* ---------- Content wrapper ---------- */

body.corepay-shell .content-wrapper {
    background: var(--cp-bg) !important;
}

body.corepay-shell .corepay-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 26px 32px;
}

/* Keep legacy per-page headers unobtrusive under the new topbar */
body.corepay-shell .content-header h1 {
    color: var(--cp-text-primary);
}

/* ---------- Dashboard: balance hero ---------- */

body.corepay-shell .cp-hero {
    padding: 26px 28px;
    border-radius: var(--cp-radius);
    background: linear-gradient(135deg, var(--cp-sidebar-bg), #1a2c47);
    box-shadow: var(--cp-shadow);
    color: #fff;
    margin-bottom: 15px;
}

body.corepay-shell .cp-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

body.corepay-shell .cp-hero-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9fb0cc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.corepay-shell .cp-hero-label .cp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cp-cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 197, 0.18);
}

body.corepay-shell .cp-hero-refresh {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #9fb0cc;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.18s ease;
}

body.corepay-shell .cp-hero-refresh:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

body.corepay-shell .cp-hero-amount {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

body.corepay-shell .cp-hero-amount strong {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

body.corepay-shell .cp-hero-eye {
    display: inline-flex;
    border: 0;
    background: transparent;
    color: #7488a8;
    font-size: 16px;
}

body.corepay-shell .cp-hero-eye:hover {
    color: #fff;
}

body.corepay-shell .cp-hero-actions {
    display: flex;
    gap: 12px;
}

body.corepay-shell .cp-btn {
    display: flex;
    flex: 1 1 0;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.18s ease;
}

body.corepay-shell .cp-btn-light {
    color: #10203a;
    background: #ffffff;
}

body.corepay-shell .cp-btn-light:hover {
    color: #10203a;
    background: #e9edf5;
}

body.corepay-shell .cp-btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.corepay-shell .cp-btn-outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

/* ---------- Dashboard: summary cards ---------- */

body.corepay-shell .cp-summary-card {
    display: flex;
    min-height: 100px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px 22px;
    border: 1px solid var(--cp-card-border);
    border-radius: var(--cp-radius);
    background: var(--cp-card-bg);
    box-shadow: var(--cp-shadow);
}

body.corepay-shell .cp-summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cp-text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.corepay-shell .cp-summary-label .cp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

body.corepay-shell .cp-summary-label.income .cp-dot {
    background: #12a874;
}

body.corepay-shell .cp-summary-label.expense .cp-dot {
    background: var(--cp-danger);
}

.pulse-green {
  animation: pulse-animation-green 2s infinite;
}

@keyframes pulse-animation-green {
  0% {
    box-shadow: 0 0 0 0px rgba(34, 211, 197, 0.18);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(34, 211, 197, 0.18);
  }
}

body.corepay-shell .cp-summary-amount {
    color: var(--cp-text-primary);
    font-size: 24px;
    font-weight: 800;
}

body.corepay-shell .cp-summary-label.income + .cp-summary-amount {
    color: #12a874;
}

body.corepay-shell .cp-summary-label.expense + .cp-summary-amount {
    color: #ef4444;
}

body.corepay-shell .cp-summary-sub {
    color: var(--cp-text-muted);
    font-size: 11px;
}

/* ---------- Dashboard: quick actions ---------- */

body.corepay-shell .cp-quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 10px;
}

body.corepay-shell .cp-quick-action {
    display: flex;
    width: 92px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--cp-text-primary);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

body.corepay-shell .cp-quick-action-icon {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cp-sidebar-bg);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 10px 22px rgba(13, 26, 45, 0.18);
    transition: transform 0.18s ease;
}

body.corepay-shell .cp-quick-action:hover .cp-quick-action-icon {
    transform: translateY(-3px);
}

/* ---------- Dashboard: last transactions list ---------- */

body.corepay-shell .cp-tx-list {
    display: flex;
    flex-direction: column;
    padding: 4px 22px 10px;
}

body.corepay-shell .cp-tx-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cp-card-border);
}

body.corepay-shell .cp-tx-row:last-child {
    border-bottom: 0;
}

body.corepay-shell .cp-tx-icon {
    display: flex;
    width: 40px;
    height: 40px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

body.corepay-shell .cp-tx-icon-in {
    color: var(--cp-cyan);
    background: rgba(34, 211, 197, 0.14);
}

body.corepay-shell .cp-tx-icon-out {
    color: #ff8a80;
    background: rgba(255, 138, 128, 0.16);
}

body.corepay-shell .cp-tx-info {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}

body.corepay-shell .cp-tx-info strong {
    overflow: hidden;
    color: var(--cp-text-primary);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.corepay-shell .cp-tx-info span {
    color: var(--cp-text-muted);
    font-size: 11px;
}

body.corepay-shell .cp-tx-amount {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

body.corepay-shell .cp-tx-amount-in {
    color: #12a874;
}

body.corepay-shell .cp-tx-amount-out {
    color: #ef4444;
}

body.corepay-shell .cp-tx-empty {
    padding: 28px 4px;
    color: var(--cp-text-muted);
    font-size: 12px;
    text-align: center;
}

/* ---------- Dashboard: card shell + forms ---------- */

body.corepay-shell .cp-card {
    border: 1px solid var(--cp-card-border);
    border-radius: var(--cp-radius);
    background: var(--cp-card-bg);
    box-shadow: var(--cp-shadow);
}

body.corepay-shell .cp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--cp-card-border);
}

body.corepay-shell .cp-card-header h2,
body.corepay-shell .cp-card-header h6 {
    margin: 0;
    color: var(--cp-text-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

body.corepay-shell .cp-card-header a {
    color: var(--cp-accent);
    font-size: 12px;
    font-weight: 600;
}

body.corepay-shell .cp-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12px;
}

body.corepay-shell .cp-alert-warning {
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fde3c1;
}

body.corepay-shell .cp-alert-info {
    color: #1e3a6e;
    background: #eef4ff;
    border: 1px solid #d5e4ff;
}

body.corepay-shell .cp-alert-danger {
    color: #9f1d2c;
    background: #fdecec;
    border: 1px solid #f8c9cd;
}

body.corepay-shell .cp-alert-success {
    color: #0f6845;
    background: #eafbf3;
    border: 1px solid #b9ecd6;
}

body.corepay-shell .cp-alert i {
    flex: none;
}

/* ---------- Withdraw wizard ---------- */

body.corepay-shell .cp-wizard-title {
    margin-bottom: 18px;
}

body.corepay-shell .cp-wizard-title p {
    margin: 4px 0 0;
    color: var(--cp-text-secondary);
    font-size: 11px;
}

body.corepay-shell .cp-hero-compact {
    position: relative;
    padding: 20px 22px;
    margin-bottom: 26px;
}

body.corepay-shell .cp-hero-compact .cp-hero-refresh {
    text-decoration: none;
}

/* Stepper */

body.corepay-shell .cp-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0 0 26px;
}

body.corepay-shell .cp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 110px;
}

body.corepay-shell .cp-step-circle {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cp-card-border);
    border-radius: 50%;
    color: var(--cp-text-muted);
    background: var(--cp-card-bg);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

body.corepay-shell .cp-step-circle i {
    display: none;
    font-size: 13px;
}

body.corepay-shell .cp-step-label {
    color: var(--cp-text-muted);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

body.corepay-shell .cp-step.is-current .cp-step-circle {
    border-color: var(--cp-cyan);
    color: var(--cp-cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 197, 0.14);
}

body.corepay-shell .cp-step.is-current .cp-step-label {
    color: var(--cp-text-primary);
}

body.corepay-shell .cp-step.is-done .cp-step-circle {
    border-color: #12a874;
    color: #fff;
    background: #12a874;
}

body.corepay-shell .cp-step.is-done .cp-step-circle .cp-step-number {
    display: none;
}

body.corepay-shell .cp-step.is-done .cp-step-circle i {
    display: inline-block;
}

body.corepay-shell .cp-step.is-done .cp-step-label {
    color: var(--cp-text-primary);
}

body.corepay-shell .cp-step-line {
    width: 60px;
    height: 2px;
    margin-top: 17px;
    background: var(--cp-card-border);
    transition: background 0.2s ease;
}

body.corepay-shell .cp-step-line.is-done {
    background: #12a874;
}

/* Form fields */

body.corepay-shell .input-with-icon {
    position: relative;
}

body.corepay-shell .cp-input-prefix {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--cp-text-muted);
    font-size: 13px;
    font-weight: 600;
    transform: translateY(-50%);
}

body.corepay-shell .cp-input-money {
    padding-left: 38px;
    text-align: left;
}

body.corepay-shell .cp-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--cp-text-muted);
    transform: translateY(-50%);
}

body.corepay-shell .cp-input-with-left-icon {
    padding-left: 38px;
}

/* Summary / resume */

body.corepay-shell .cp-wizard-summary {
    padding: 14px 16px;
    border: 1px solid var(--cp-card-border);
    border-radius: 12px;
    background: #f8fafd;
}

body.corepay-shell .cp-wizard-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 12px;
}

body.corepay-shell .cp-wizard-summary-row span {
    color: var(--cp-text-secondary);
}

body.corepay-shell .cp-wizard-summary-total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--cp-card-border);
    font-size: 13px;
}

body.corepay-shell .cp-wizard-resume h3 {
    margin: 0 0 14px;
    color: var(--cp-text-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

body.corepay-shell .cp-resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    padding: 16px;
    border: 1px solid var(--cp-card-border);
    border-radius: 12px;
    background: #f8fafd;
}

body.corepay-shell .cp-resume-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.corepay-shell .cp-resume-grid span {
    color: var(--cp-text-secondary);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

body.corepay-shell .cp-resume-grid strong {
    color: var(--cp-text-primary);
    font-size: 13px;
}

/* Buttons */

body.corepay-shell .cp-wizard-actions {
    display: flex;
    gap: 12px;
}

body.corepay-shell .cp-btn-wizard-primary,
body.corepay-shell .cp-btn-wizard-outline,
body.corepay-shell .cp-btn-wizard-dark {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 0.18s ease;
}

body.corepay-shell .cp-btn-wizard-primary {
    border: 0;
    color: #ffffff;
    background: #0f9d6e;
}

body.corepay-shell .cp-btn-wizard-primary i,
body.corepay-shell .cp-btn-wizard-dark i {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 11px;
}

body.corepay-shell .cp-btn-wizard-primary:hover {
    color: #ffffff;
    background: #0c8760;
}

body.corepay-shell .cp-btn-wizard-primary:disabled {
    opacity: 0.7;
}

body.corepay-shell .cp-btn-wizard-outline {
    color: var(--cp-text-primary);
    background: #ffffff;
    border: 1px solid var(--cp-card-border);
}

body.corepay-shell .cp-btn-wizard-outline:hover {
    color: var(--cp-text-primary);
    background: #f3f5f9;
}

body.corepay-shell .cp-btn-wizard-dark {
    border: 0;
    color: #ffffff;
    background: var(--cp-sidebar-bg);
}

body.corepay-shell .cp-btn-wizard-dark:hover {
    color: #ffffff;
    background: #16283f;
}

/* Modals (2FA / success) */

body.corepay-shell .cp-modal-content {
    padding: 28px 26px 26px;
    border: 0;
    border-radius: 18px;
    text-align: center;
}

body.corepay-shell .cp-modal-icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    color: var(--cp-cyan);
    background: rgba(34, 211, 197, 0.12);
    font-size: 20px;
}

body.corepay-shell .cp-modal-icon-success {
    color: #12a874;
    background: rgba(18, 168, 116, 0.12);
}

body.corepay-shell .cp-modal-title {
    margin: 0 0 4px;
    color: var(--cp-text-primary);
    font-size: 16px;
    font-weight: 800;
}

body.corepay-shell .cp-modal-subtitle {
    margin: 0 0 18px;
    color: var(--cp-text-secondary);
    font-size: 11px;
}

body.corepay-shell .cp-otp-label {
    display: block;
    margin-bottom: 10px;
    color: var(--cp-text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: left;
}

body.corepay-shell .cp-otp-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

body.corepay-shell .cp-otp-box {
    width: 40px;
    height: 48px;
    border: 1px solid var(--cp-card-border);
    border-radius: 10px;
    background: #f8fafd;
    color: var(--cp-text-primary);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

body.corepay-shell .cp-otp-box:focus {
    border-color: var(--cp-cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 211, 197, 0.16);
}

/* ---------- Deposit wizard: QR code + copy-paste ---------- */

body.corepay-shell .cp-dep-qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid var(--cp-card-border);
    border-radius: 16px;
    background: #f8fafd;
}

body.corepay-shell .cp-dep-qr-img {
    width: 220px;
    height: 220px;
    max-width: 100%;
    border-radius: 8px;
}

body.corepay-shell .cp-dep-copy-group {
    display: flex;
    gap: 8px;
}

body.corepay-shell .cp-dep-copy-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11px;
}

body.corepay-shell .cp-dep-copy-btn {
    display: flex;
    width: 52px;
    height: 52px;
    flex: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: var(--cp-sidebar-bg);
    color: #fff;
    font-size: 14px;
    transition: background 0.18s ease;
}

body.corepay-shell .cp-dep-copy-btn:hover {
    background: #16283f;
}

/* ---------- Merchant fee schedule (myinfo) ---------- */

body.corepay-shell .cp-fee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

body.corepay-shell .cp-fee-card {
    padding: 22px;
}

body.corepay-shell .cp-fee-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cp-card-border);
}

body.corepay-shell .cp-fee-card-header h2 {
    margin: 0;
    color: var(--cp-text-primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

body.corepay-shell .cp-fee-icon {
    display: flex;
    width: 38px;
    height: 38px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(47, 123, 255, 0.12);
    color: var(--cp-accent);
    font-size: 15px;
}

body.corepay-shell .cp-fee-icon-cyan {
    background: rgba(34, 211, 197, 0.14);
    color: #0ea99b;
}

body.corepay-shell .cp-fee-icon-red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

body.corepay-shell .cp-fee-icon-purple {
    background: rgba(109, 92, 231, 0.14);
    color: #6d5ce7;
}

body.corepay-shell .cp-fee-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--cp-card-border);
    font-size: 12px;
}

body.corepay-shell .cp-fee-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

body.corepay-shell .cp-fee-row span {
    color: var(--cp-text-secondary);
}

body.corepay-shell .cp-fee-row strong {
    color: var(--cp-text-primary);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

body.corepay-shell .cp-fee-row-muted strong {
    color: var(--cp-text-secondary);
    font-weight: 600;
}

@media (max-width: 767.98px) {
    body.corepay-shell .cp-fee-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Footer ---------- */

body.corepay-shell .corepay-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 26px;
    border-top: 1px solid var(--cp-card-border);
    background: var(--cp-card-bg);
    color: var(--cp-text-secondary);
    font-size: 11px;
}

body.corepay-shell .corepay-footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

body.corepay-shell .corepay-footer-dot {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--cp-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 197, 0.16);
}

body.corepay-shell .corepay-footer-brand strong {
    color: var(--cp-text-primary);
    font-weight: 700;
}

body.corepay-shell .corepay-footer-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.corepay-shell .corepay-footer-meta {
    flex: none;
}

body.corepay-shell .corepay-footer-badge {
    padding: 4px 11px;
    border: 1px solid var(--cp-card-border);
    border-radius: 999px;
    background: var(--cp-field-bg);
    color: var(--cp-text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

@media (max-width: 575.98px) {
    body.corepay-shell .corepay-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    body.corepay-shell .corepay-footer-brand span {
        white-space: normal;
    }
}

/* ---------- Extract table (modern, infinite-scroll) ---------- */

body.corepay-shell .cp-excel-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 0;
    border-radius: 10px;
    background: #149442;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.18s ease;
}

body.corepay-shell .cp-excel-btn:hover {
    background: #0f7d38;
    color: #ffffff;
}

body.corepay-shell .cp-excel-btn:disabled {
    opacity: 0.7;
}

body.corepay-shell .cp-extract-table-wrap {
    overflow-x: auto;
}

body.corepay-shell .cp-extract-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

body.corepay-shell .cp-extract-table thead th {
    padding: 12px 22px;
    border-bottom: 1px solid var(--cp-card-border);
    background: #f8fafd;
    color: var(--cp-text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

body.corepay-shell .cp-extract-table thead th.text-right {
    text-align: right;
}

body.corepay-shell .cp-extract-table tbody td {
    padding: 13px 22px;
    border-bottom: 1px solid #f0f2f7;
    color: var(--cp-text-primary);
    font-size: 12px;
    white-space: nowrap;
}

body.corepay-shell .cp-extract-table tbody td.text-right {
    text-align: right;
}

body.corepay-shell .cp-extract-table tbody tr:hover td {
    background: #f8fafd;
}

body.corepay-shell .cp-extract-table tbody tr:last-child td {
    border-bottom: 0;
}

body.corepay-shell .cp-extract-table tbody td.cp-extract-amount-positive {
    color: #12a874;
    font-weight: 700;
}

body.corepay-shell .cp-extract-table tbody td.cp-extract-amount-negative {
    color: #ef4444;
    font-weight: 700;
}

body.corepay-shell .cp-extract-loading,
body.corepay-shell .cp-extract-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 34px 20px;
    color: var(--cp-text-muted);
    font-size: 12px;
}

body.corepay-shell .cp-extract-empty i {
    font-size: 26px;
    color: var(--cp-card-border);
}

body.corepay-shell .cp-extract-empty strong {
    color: var(--cp-text-secondary);
    font-size: 13px;
}

body.corepay-shell .cp-extract-loadmore-wrap {
    display: flex;
    justify-content: center;
    padding: 18px;
    border-top: 1px solid var(--cp-card-border);
}

#extractSentinel {
    height: 1px;
}

/* ---------- Transactions page ---------- */

body.corepay-shell .cp-tx-table-wrap {
    overflow-x: auto;
}

body.corepay-shell .cp-tx-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    font-size: 13px;
}

body.corepay-shell .cp-tx-table thead th {
    padding: 12px 18px;
    border-bottom: 1px solid var(--cp-card-border);
    background: #f8fafd;
    color: var(--cp-text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

body.corepay-shell .cp-tx-table thead th.text-center {
    text-align: center;
}

body.corepay-shell .cp-tx-table thead th.text-right {
    text-align: right;
}

body.corepay-shell .cp-tx-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f2f7;
    color: var(--cp-text-primary);
    font-size: 12px;
    vertical-align: middle;
    line-height: 1.6;
}

body.corepay-shell .cp-tx-table tbody td.text-center {
    text-align: center;
}

body.corepay-shell .cp-tx-table tbody td.text-right {
    text-align: right;
}

body.corepay-shell .cp-tx-table tbody tr:hover td {
    background: #f8fafd;
}

body.corepay-shell .cp-tx-table tbody tr:last-child td {
    border-bottom: 0;
}

body.corepay-shell .cp-tx-table tbody tr.watching td {
    background: rgba(150, 206, 181, 0.16);
}

body.corepay-shell .cp-tx-table tbody td.blocked {
    background: rgba(239, 68, 68, 0.08);
}

/* Status badges (buttonDash) — several color classes were referenced by
   the row logic but never actually defined anywhere, so they rendered
   unstyled; giving each one a proper pill color here. */
body.corepay-shell .buttonDash {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

body.corepay-shell .buttonDash.btn-success {
    background: rgba(18, 168, 116, 0.12);
    color: #12a874;
}

body.corepay-shell .buttonDash.btn-info {
    background: rgba(47, 123, 255, 0.12);
    color: #2f7bff;
}

body.corepay-shell .buttonDash.btn-secondary {
    background: #eef1f7;
    color: var(--cp-text-secondary);
}

body.corepay-shell .buttonDash.bg-canceled {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

body.corepay-shell .buttonDash.bg-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

body.corepay-shell .buttonDash.bg-freeze {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

body.corepay-shell .buttonDash.bg-chargeback {
    background: rgba(109, 92, 231, 0.14);
    color: #6d5ce7;
}

body.corepay-shell .av_red {
    color: #ef4444 !important;
}

/* Bootstrap 4's default pagination component (used by ->links()) */
body.corepay-shell .cp-tx-pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid var(--cp-card-border);
}

body.corepay-shell .cp-tx-pagination .pagination {
    display: flex;
    gap: 6px;
    margin: 0;
    list-style: none;
}

body.corepay-shell .cp-tx-pagination .page-link {
    display: flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--cp-card-border);
    border-radius: 9px;
    background: var(--cp-card-bg);
    color: var(--cp-text-secondary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.15s ease;
}

body.corepay-shell .cp-tx-pagination .page-link:hover {
    color: var(--cp-accent);
    border-color: #cddcff;
    background: #eef4ff;
}

body.corepay-shell .cp-tx-pagination .page-item.active .page-link {
    border-color: var(--cp-accent);
    background: var(--cp-accent);
    color: #ffffff;
}

body.corepay-shell .cp-tx-pagination .page-item.disabled .page-link {
    color: var(--cp-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ---------- Withdrawal admin page ---------- */

body.corepay-shell .cp-wd-batch-actions {
    display: flex;
    gap: 10px;
}

body.corepay-shell .cp-wd-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.18s ease;
}

body.corepay-shell .cp-wd-action-pay {
    background: #0f9d6e;
}

body.corepay-shell .cp-wd-action-pay:hover {
    background: #0c8760;
}

body.corepay-shell .cp-wd-action-delete {
    background: #ef4444;
}

body.corepay-shell .cp-wd-action-delete:hover {
    background: #dc2626;
}

body.corepay-shell .cp-wd-summary {
    color: var(--cp-text-secondary);
    font-size: 12px;
}

body.corepay-shell .cp-wd-summary strong {
    color: var(--cp-text-primary);
}

body.corepay-shell .cp-wd-accordion-wrap {
    padding: 0;
}

/* Each accordion row used to be its own separate <table>, so the browser's
   table auto-layout sized every row's columns independently — headers and
   data drifted out of alignment. A shared CSS Grid template (same class,
   same grid-template-columns for the header row and every data row) keeps
   every column pixel-aligned regardless of content length. */
body.corepay-shell .cp-wd-row-grid {
    display: grid;
    grid-template-columns: 5% 12% 10% 13% 8% 26% 9% 17%;
    align-items: center;
    column-gap: 10px;
    padding: 10px 16px;
}

body.corepay-shell .cp-wd-row-grid.cp-wd-has-owner {
    grid-template-columns: 5% 11% 9% 12% 7% 8% 19% 8% 14%;
}

body.corepay-shell .cp-wd-header-row {
    background: var(--cp-sidebar-bg);
    border-radius: 12px 12px 0 0;
}

body.corepay-shell .cp-wd-data-row {
    border-bottom: 1px solid var(--cp-card-border);
}

body.corepay-shell .cp-wd-card:last-child .cp-wd-data-row {
    border-bottom: 0;
}

body.corepay-shell .cp-wd-cell {
    min-width: 0;
    padding: 4px 2px;
    color: var(--cp-text-primary);
    font-size: 12px;
    overflow-wrap: anywhere;
}

body.corepay-shell .cp-wd-th {
    padding: 12px 2px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

body.corepay-shell .cp-wd-th-center {
    text-align: center;
}

body.corepay-shell .cp-wd-actions-cell {
    text-align: center;
}

@media (max-width: 991.98px) {
    body.corepay-shell .cp-wd-header-row {
        display: none;
    }

    body.corepay-shell .cp-wd-row-grid,
    body.corepay-shell .cp-wd-row-grid.cp-wd-has-owner {
        display: block;
        padding: 14px 16px;
    }

    body.corepay-shell .cp-wd-cell {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border-bottom: 1px dashed var(--cp-card-border);
        text-align: right;
    }

    body.corepay-shell .cp-wd-cell:last-child {
        border-bottom: 0;
    }

    body.corepay-shell .cp-wd-cell::before {
        flex: none;
        color: var(--cp-text-secondary);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-align: left;
        text-transform: uppercase;
        content: attr(data-label);
    }

    body.corepay-shell .cp-wd-actions-cell {
        justify-content: flex-end;
        text-align: right;
    }
}

body.corepay-shell .cp-wd-actions-cell .size_icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    border-radius: 50%;
    background: #f3f5f9;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.corepay-shell .cp-wd-actions-cell .size_icon:hover {
    box-shadow: 0 6px 14px rgba(20, 32, 58, 0.14);
    transform: translateY(-2px);
}

body.corepay-shell .cp-wd-actions-cell .size_icon i {
    font-size: 13px;
}

body.corepay-shell .cp-wd-pagination {
    display: flex;
    justify-content: center;
    padding: 18px;
}

body.corepay-shell .cp-wd-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.corepay-shell .cp-wd-pagination .btn {
    display: flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--cp-card-border);
    border-radius: 9px;
    background: var(--cp-card-bg);
    color: var(--cp-text-secondary);
    font-size: 12px;
    font-weight: 600;
}

body.corepay-shell .cp-wd-pagination .btn:hover {
    color: var(--cp-accent);
    border-color: #cddcff;
    background: #eef4ff;
}

body.corepay-shell .cp-wd-pagination .cp-wd-page-active {
    border-color: var(--cp-accent);
    background: var(--cp-accent);
    color: #ffffff;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    body.corepay-shell .cp-hero-amount strong {
        font-size: 27px;
    }

    body.corepay-shell .cp-quick-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    body.corepay-shell .corepay-topbar-title {
        font-size: 13px;
    }

    body.corepay-shell .cp-hero-actions {
        flex-direction: column;
    }
}

/* ---------- Banks admin page ---------- */

body.corepay-shell .cp-bank-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0;
}

body.corepay-shell .cp-bank-stat {
    display: flex;
    flex: 1 1 180px;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

body.corepay-shell .cp-bank-stat-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
}

body.corepay-shell .cp-bank-stat-icon-total {
    background: rgba(47, 123, 255, 0.12);
    color: var(--cp-accent);
}

body.corepay-shell .cp-bank-stat-icon-active {
    background: rgba(18, 168, 116, 0.12);
    color: #12a874;
}

body.corepay-shell .cp-bank-stat-icon-inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

body.corepay-shell .cp-bank-stat-value {
    color: var(--cp-text-primary);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
}

body.corepay-shell .cp-bank-stat-label {
    color: var(--cp-text-secondary);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Tabs */
body.corepay-shell .cp-bank-tabs {
    display: flex;
    gap: 4px;
    padding: 14px 16px 0;
    border: 0;
}

body.corepay-shell .cp-bank-tabs .nav-item {
    margin: 0;
}

body.corepay-shell .cp-bank-tabs .nav-link {
    padding: 10px 20px;
    border: 0;
    border-radius: 10px 10px 0 0;
    color: var(--cp-text-secondary);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s ease;
}

body.corepay-shell .cp-bank-tabs .nav-link:hover {
    color: var(--cp-accent);
    border-color: transparent;
}

body.corepay-shell .cp-bank-tabs .nav-link.active {
    background: var(--cp-bg);
    color: var(--cp-accent);
    box-shadow: inset 0 -2px 0 var(--cp-accent);
}

body.corepay-shell .cp-bank-tab-count {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #eef1f7;
    color: var(--cp-text-secondary);
    font-size: 10px;
    font-weight: 700;
}

body.corepay-shell .cp-bank-tabs .nav-link.active .cp-bank-tab-count {
    background: rgba(47, 123, 255, 0.14);
    color: var(--cp-accent);
}

/* List */
body.corepay-shell .cp-bank-list {
    padding: 14px 16px 16px;
}

body.corepay-shell .cp-bank-card {
    margin-bottom: 10px;
    border: 1px solid var(--cp-card-border);
    border-radius: 14px;
    overflow: hidden;
}

body.corepay-shell .cp-bank-card:last-child {
    margin-bottom: 0;
}

body.corepay-shell .cp-bank-row {
    display: grid;
    grid-template-columns: 24% 19% 15% 9% 11% 22%;
    align-items: center;
    column-gap: 10px;
    padding: 12px 16px;
}

body.corepay-shell .cp-bank-header-row {
    margin-bottom: 8px;
    background: var(--cp-sidebar-bg);
    border-radius: 12px;
}

body.corepay-shell .cp-bank-header-row .cp-bank-th {
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

body.corepay-shell .cp-bank-th-center {
    text-align: center;
}

body.corepay-shell .cp-bank-data-row {
    background: var(--cp-card-bg);
    transition: background 0.15s ease;
}

body.corepay-shell .cp-bank-data-row:hover {
    background: #f8fafd;
}

body.corepay-shell .cp-bank-cell {
    min-width: 0;
    color: var(--cp-text-primary);
    font-size: 12.5px;
    overflow-wrap: anywhere;
}

body.corepay-shell .cp-bank-flag {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.corepay-shell .cp-bank-flag img {
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--cp-card-border);
    object-fit: contain;
}

body.corepay-shell .cp-bank-name {
    color: var(--cp-text-primary);
    font-weight: 700;
    line-height: 1.3;
}

body.corepay-shell .cp-bank-code {
    color: var(--cp-text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Actions */
body.corepay-shell .cp-bank-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.corepay-shell .cp-bank-action-btn {
    position: relative;
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f5f9;
    color: var(--cp-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

body.corepay-shell .cp-bank-action-btn:hover {
    box-shadow: 0 6px 14px rgba(20, 32, 58, 0.14);
    color: var(--cp-accent);
    transform: translateY(-2px);
}

body.corepay-shell .cp-bank-action-btn i {
    font-size: 12.5px;
}

body.corepay-shell .cp-bank-action-warning { color: #b45309; }
body.corepay-shell .cp-bank-action-info { color: var(--cp-accent); }
body.corepay-shell .cp-bank-action-danger { color: #ef4444; }
body.corepay-shell .cp-bank-action-success { color: #12a874; }

body.corepay-shell .cp-bank-action-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    min-width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--cp-accent);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
}

/* Collapsed detail panel */
body.corepay-shell .cp-bank-detail {
    background: var(--cp-bg);
    border-top: 1px solid var(--cp-card-border);
}

body.corepay-shell .cp-bank-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}

body.corepay-shell .cp-bank-detail-col {
    border: 1px solid var(--cp-card-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--cp-card-bg);
}

body.corepay-shell .cp-bank-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--cp-card-border);
    color: var(--cp-text-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

body.corepay-shell .cp-bank-detail-header i {
    color: var(--cp-accent);
}

body.corepay-shell .cp-bank-client-list {
    max-height: 220px;
    overflow-y: auto;
}

body.corepay-shell .cp-bank-client-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px dashed var(--cp-card-border);
    color: var(--cp-text-primary);
    font-size: 12px;
}

body.corepay-shell .cp-bank-client-row:last-child {
    border-bottom: 0;
}

body.corepay-shell .cp-bank-client-row i {
    color: #12a874;
}

body.corepay-shell .cp-bank-client-empty {
    padding: 18px 14px;
    color: var(--cp-text-muted);
    font-size: 11.5px;
    text-align: center;
}

/* Empty state (no banks in tab) */
body.corepay-shell .cp-bank-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 50px 20px;
    color: var(--cp-text-muted);
    text-align: center;
}

body.corepay-shell .cp-bank-empty i {
    font-size: 26px;
    color: var(--cp-card-border);
}

@media (max-width: 991.98px) {
    body.corepay-shell .cp-bank-header-row {
        display: none;
    }

    body.corepay-shell .cp-bank-row {
        display: block;
        padding: 14px 16px;
    }

    body.corepay-shell .cp-bank-cell {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border-bottom: 1px dashed var(--cp-card-border);
        text-align: right;
    }

    body.corepay-shell .cp-bank-cell:last-child {
        border-bottom: 0;
    }

    body.corepay-shell .cp-bank-cell::before {
        flex: none;
        color: var(--cp-text-secondary);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-align: left;
        text-transform: uppercase;
        content: attr(data-label);
    }

    body.corepay-shell .cp-bank-flag {
        justify-content: flex-end;
    }

    body.corepay-shell .cp-bank-actions {
        justify-content: flex-end;
    }

    body.corepay-shell .cp-bank-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Banks create/edit form ---------- */

body.corepay-shell .cp-bank-form-section {
    margin-bottom: 22px;
}

body.corepay-shell .cp-bank-form-section:last-child {
    margin-bottom: 0;
}

body.corepay-shell .cp-bank-form-section-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cp-card-border);
    color: var(--cp-text-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

body.corepay-shell .cp-bank-form-section-title i {
    margin-right: 8px;
    color: var(--cp-accent);
}

/* ---------- Generic form section (reused by non-bank forms) ---------- */

body.corepay-shell .cp-form-section {
    margin-bottom: 22px;
}

body.corepay-shell .cp-form-section:last-child {
    margin-bottom: 0;
}

body.corepay-shell .cp-form-section-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cp-card-border);
    color: var(--cp-text-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

body.corepay-shell .cp-form-section-title i {
    margin-right: 8px;
    color: var(--cp-accent);
}

/* ---------- Users admin page ---------- */

body.corepay-shell .cp-user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0;
}

body.corepay-shell .cp-user-stat {
    display: flex;
    flex: 1 1 180px;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

body.corepay-shell .cp-user-stat-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
}

body.corepay-shell .cp-user-stat-icon-total {
    background: rgba(47, 123, 255, 0.12);
    color: var(--cp-accent);
}

body.corepay-shell .cp-user-stat-icon-active {
    background: rgba(18, 168, 116, 0.12);
    color: #12a874;
}

body.corepay-shell .cp-user-stat-icon-frozen {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

body.corepay-shell .cp-user-stat-value {
    color: var(--cp-text-primary);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
}

body.corepay-shell .cp-user-stat-label {
    color: var(--cp-text-secondary);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Filter form */
body.corepay-shell .cp-user-filters {
    margin-bottom: 16px;
}

body.corepay-shell .cp-user-filters label {
    color: var(--cp-text-secondary);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* List */
body.corepay-shell .cp-user-list {
    padding: 6px 16px 16px;
}

body.corepay-shell .cp-user-row {
    display: grid;
    grid-template-columns: 24% 24% 12% 16% 10% 14%;
    align-items: center;
    column-gap: 10px;
    padding: 12px 16px;
}

body.corepay-shell .cp-user-header-row {
    margin-bottom: 8px;
    background: var(--cp-sidebar-bg);
    border-radius: 12px;
}

body.corepay-shell .cp-user-header-row .cp-user-th {
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

body.corepay-shell .cp-user-th-center {
    text-align: center;
}

body.corepay-shell .cp-user-card {
    margin-bottom: 10px;
    border: 1px solid var(--cp-card-border);
    border-radius: 14px;
    overflow: hidden;
}

body.corepay-shell .cp-user-card:last-child {
    margin-bottom: 0;
}

body.corepay-shell .cp-user-data-row {
    background: var(--cp-card-bg);
    transition: background 0.15s ease;
}

body.corepay-shell .cp-user-data-row:hover {
    background: #f8fafd;
}

body.corepay-shell .cp-user-data-row.cp-user-row-frozen {
    background: rgba(239, 68, 68, 0.04);
}

body.corepay-shell .cp-user-cell {
    min-width: 0;
    color: var(--cp-text-primary);
    font-size: 12.5px;
    overflow-wrap: anywhere;
}

body.corepay-shell .cp-user-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.corepay-shell .cp-user-avatar {
    display: flex;
    width: 32px;
    height: 32px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(47, 123, 255, 0.12);
    color: var(--cp-accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

body.corepay-shell .cp-user-name {
    color: var(--cp-text-primary);
    font-weight: 700;
    line-height: 1.3;
}

body.corepay-shell .cp-user-you {
    color: var(--cp-text-muted);
    font-size: 10px;
    font-weight: 700;
}

/* Badges */
body.corepay-shell .cp-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

body.corepay-shell .cp-user-badge-master {
    background: rgba(47, 123, 255, 0.12);
    color: var(--cp-accent);
}

body.corepay-shell .cp-user-badge-merchant {
    background: #eef1f7;
    color: var(--cp-text-secondary);
}

body.corepay-shell .cp-user-badge-payment {
    background: rgba(18, 168, 116, 0.12);
    color: #12a874;
}

body.corepay-shell .cp-user-badge-crypto {
    background: rgba(109, 92, 231, 0.14);
    color: #6d5ce7;
}

body.corepay-shell .cp-user-badge-active {
    background: rgba(18, 168, 116, 0.12);
    color: #12a874;
}

body.corepay-shell .cp-user-badge-frozen {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* Actions */
body.corepay-shell .cp-user-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.corepay-shell .cp-user-action-btn {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f5f9;
    color: var(--cp-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

body.corepay-shell .cp-user-action-btn:hover {
    box-shadow: 0 6px 14px rgba(20, 32, 58, 0.14);
    color: var(--cp-accent);
    transform: translateY(-2px);
}

body.corepay-shell .cp-user-action-btn i {
    font-size: 12.5px;
}

body.corepay-shell .cp-user-action-danger { color: #ef4444; }
body.corepay-shell .cp-user-action-success { color: #12a874; }

/* Empty state */
body.corepay-shell .cp-user-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 50px 20px;
    color: var(--cp-text-muted);
    text-align: center;
}

body.corepay-shell .cp-user-empty i {
    font-size: 26px;
    color: var(--cp-card-border);
}

@media (max-width: 991.98px) {
    body.corepay-shell .cp-user-header-row {
        display: none;
    }

    body.corepay-shell .cp-user-row {
        display: block;
        padding: 14px 16px;
    }

    body.corepay-shell .cp-user-cell {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border-bottom: 1px dashed var(--cp-card-border);
        text-align: right;
    }

    body.corepay-shell .cp-user-cell:last-child {
        border-bottom: 0;
    }

    body.corepay-shell .cp-user-cell::before {
        flex: none;
        color: var(--cp-text-secondary);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-align: left;
        text-transform: uppercase;
        content: attr(data-label);
    }

    body.corepay-shell .cp-user-identity {
        justify-content: flex-end;
    }

    body.corepay-shell .cp-user-actions {
        justify-content: flex-end;
    }
}

/* ---------- Generic stat tile (reusable across admin pages) ---------- */

body.corepay-shell .cp-stat-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0;
}

body.corepay-shell .cp-stat-tile {
    display: flex;
    flex: 1 1 180px;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

body.corepay-shell .cp-stat-tile-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
}

body.corepay-shell .cp-stat-tile-icon-blue {
    background: rgba(47, 123, 255, 0.12);
    color: var(--cp-accent);
}

body.corepay-shell .cp-stat-tile-icon-green {
    background: rgba(18, 168, 116, 0.12);
    color: #12a874;
}

body.corepay-shell .cp-stat-tile-icon-purple {
    background: rgba(109, 92, 231, 0.14);
    color: #6d5ce7;
}

body.corepay-shell .cp-stat-tile-icon-red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

body.corepay-shell .cp-stat-tile-value {
    color: var(--cp-text-primary);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
}

body.corepay-shell .cp-stat-tile-label {
    color: var(--cp-text-secondary);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ---------- Generic pill badge (reusable across admin pages) ---------- */

body.corepay-shell .cp-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

body.corepay-shell .cp-pill-blue {
    background: rgba(47, 123, 255, 0.12);
    color: var(--cp-accent);
}

body.corepay-shell .cp-pill-green {
    background: rgba(18, 168, 116, 0.12);
    color: #12a874;
}

body.corepay-shell .cp-pill-red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

body.corepay-shell .cp-pill-purple {
    background: rgba(109, 92, 231, 0.14);
    color: #6d5ce7;
}

body.corepay-shell .cp-pill-gray {
    background: #eef1f7;
    color: var(--cp-text-secondary);
}

/* ---------- Logs (auditoria) ---------- */

body.corepay-shell .cp-log-filters label {
    color: var(--cp-text-secondary);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

body.corepay-shell .cp-log-table tbody td.cp-log-deleted {
    color: var(--cp-text-muted);
    font-style: italic;
}

/* ---------- Autenticação de dois fatores (2FA) ---------- */

body.corepay-shell .cp-2fa-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 20px;
    text-align: center;
}

body.corepay-shell .cp-2fa-status-icon {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(18, 168, 116, 0.12);
    color: #12a874;
    font-size: 26px;
}

body.corepay-shell .cp-2fa-status h3 {
    margin: 0;
    color: var(--cp-text-primary);
    font-size: 15px;
    font-weight: 800;
}

body.corepay-shell .cp-2fa-status p {
    margin: 0;
    color: var(--cp-text-secondary);
    font-size: 12px;
    max-width: 320px;
}
