

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --sb-brand:         #ec1c24;
    --sb-brand-dark:    #c1151b;
    --sb-brand-light:   #fde8e8;
    --sb-accent:        #9df88d;
    --sb-accent-light:  #e7fcee;
    --sb-primary:       var(--sb-brand);
    --sb-primary-dark:  var(--sb-brand-dark);
    --sb-primary-light: var(--sb-brand-light);
    --sb-success:       #059669;
    --sb-success-light: #d1fae5;
    --sb-danger:        #dc2626;
    --sb-danger-light:  #fee2e2;
    --sb-warning:       #d97706;
    --sb-warning-light: #fef3c7;
    --sb-gray-50:       #f9fafb;
    --sb-gray-100:      #f3f4f6;
    --sb-gray-200:      #e5e7eb;
    --sb-gray-300:      #d1d5db;
    --sb-gray-400:      #9ca3af;
    --sb-gray-500:      #6b7280;
    --sb-gray-600:      #4b5563;
    --sb-gray-700:      #374151;
    --sb-gray-800:      #1f2937;
    --sb-gray-900:      #111827;
    --sb-radius:        0.75rem;
    --sb-radius-sm:     0.5rem;
    --sb-shadow:        0 1px 2px rgba(0,0,0,.05);
    --sb-shadow-md:     0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --sb-shadow-lg:     0 10px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);

    /* Font Sizes */
    --sb-fs-title:      24px;
    --sb-fs-subtitle:   18px;
    --sb-fs-base:       14px;
    --sb-fs-input:      14px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: var(--sb-gray-800);
    font-size: var(--sb-fs-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p { font-size: var(--sb-fs-base); }

/* ==========================================================
   PUBLIC-FACING PAGES (Payment Form & Result)
   Centered layout — matching .design but without sidebar
   ========================================================== */
.public-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--sb-gray-50);
    align-items: center;
    padding: 3rem 3rem;
}

.public-container {
    width: 100%;
    max-width: 640px;
}

.public-branding {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.public-branding .brand-logo {
    height: 36px;
    width: auto;
}

/* Sidebar logo */
.sidebar-logo {
    height: 24px;
    width: auto;
}

/* Login logo */
.login-logo-img {
    height: 32px;
    width: auto;
    margin: 0 auto 1rem;
    display: block;
}

/* ==========================================================
   MULTI-STEP FORM — step indicator, animated sections
   ========================================================== */

/* Step indicator dots */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sb-gray-200);
    color: var(--sb-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.35s ease;
}

.step-dot.active {
    background: var(--sb-gray-900);
    color: #fff;
    transform: scale(1.1);
}

.step-dot.completed {
    background: var(--sb-brand);
    color: #fff;
}

.step-line {
    width: 48px;
    height: 2px;
    background: var(--sb-gray-200);
    transition: background 0.35s ease;
}

.step-line.active {
    background: var(--sb-brand);
}

/* Step sections — animated visibility */
.step-section {
    display: none;
    opacity: 0;
    text-align: center;
}

.step-section.active {
    display: block;
    opacity: 1;
    animation: fadeSlideIn 0.35s ease forwards;
}

.step-section.exit-left {
    animation: fadeSlideOutLeft 0.3s ease forwards;
}

.step-section.exit-right {
    animation: fadeSlideOutRight 0.3s ease forwards;
}

.step-section.enter-right {
    animation: fadeSlideInRight 0.35s ease forwards;
}

.step-section.enter-left {
    animation: fadeSlideInLeft 0.35s ease forwards;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-40px); }
}

@keyframes fadeSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

@keyframes fadeSlideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Step titles */
.step-title {
    font-size: var(--sb-fs-title);
    font-weight: 800;
    color: var(--sb-gray-900);
    margin-bottom: 0.35rem;
}

.step-subtitle {
    font-size: var(--sb-fs-base);
    color: var(--sb-gray-400);
    margin-bottom: 2rem;
}

/* Step fields */
.step-field {
    text-align: left;
    margin-bottom: 1.25rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.step-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: black;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.step-input {
    border: none;
    border-bottom: 2px solid var(--sb-gray-200);
    border-radius: 0;
    padding: 0.6rem 0;
    font-size: var(--sb-fs-input);
    font-weight: 500;
    color: var(--sb-gray-700);
    background: transparent;
    transition: border-color 0.2s;
}

.step-input::placeholder {
    color: var(--sb-gray-300);
    font-weight: 400;
}

.step-input:focus {
    border-color: var(--sb-gray-900);
    box-shadow: none;
    outline: none;
}

.step-input.is-invalid {
    border-color: var(--sb-danger);
}

/* Amount input */
.amount-input-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.amount-prefix {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sb-gray-400);
}

.amount-field {
    font-size: var(--sb-fs-input) !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em;
    color: var(--sb-gray-700);
}

/* Continue / Back / Pay buttons */
.btn-step-continue {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 1.5rem auto 0;
    padding: 0.7rem;
    background: var(--sb-gray-200);
    color: var(--sb-gray-500);
    border: none;
    border-radius: var(--sb-radius-sm);
    font-weight: 600;
    font-size: var(--sb-fs-base);
    transition: all 0.25s ease;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-step-continue.btn-ready {
    background: var(--sb-brand);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.btn-step-continue.btn-ready:hover {
    background: var(--sb-brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236,28,36,0.25);
}

.btn-red {
    background: var(--sb-brand);
    color: #fff;
    border: none;
    transition: all 0.25s ease;
}

.btn-red:hover {
    background: var(--sb-brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236,28,36,0.25);
}

.btn-step-back {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0.6rem auto 0;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--sb-gray-400);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.15s;
}

.btn-step-back:hover {
    color: var(--sb-gray-700);
}

.btn-step-pay {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 1.5rem auto 0;
    padding: 0.75rem;
    background: var(--sb-gray-200);
    color: var(--sb-gray-500);
    border: none;
    border-radius: var(--sb-radius-sm);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-step-pay.btn-ready {
    background: var(--sb-brand);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.btn-step-pay.btn-ready:hover {
    background: var(--sb-brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236,28,36,0.25);
}

.btn-step-pay:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* Confirm summary bar */
.confirm-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    background: var(--sb-gray-50);
    border: 1px solid var(--sb-gray-200);
    border-radius: var(--sb-radius-sm);
    padding: 0.85rem 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.confirm-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
}

.confirm-summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sb-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.confirm-summary-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sb-gray-900);
}

.confirm-summary-divider {
    width: 1px;
    height: 30px;
    background: var(--sb-gray-200);
}

/* Step 3 rows need left-align */
.step-section .row {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.form-control:focus {
    border-color: var(--sb-primary);
}


/* ==========================================================
   ADMIN LAYOUT — matching premium minimal design
   ========================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #EDF3EF; /* Soft greenish mint/gray background */
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ---- Sidebar ---- */
.admin-sidebar {
    width: 250px;
    background: #111418; /* Deep dark premium tone */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    border-radius: 0 1.5rem 1.5rem 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.05);
}

.sidebar-brand {
    padding: 2.5rem 1.75rem 1.5rem;
    font-size: var(--sb-fs-title);
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-brand .brand-dot {
    width: 38px;
    height: 38px;
    background: var(--sb-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111418;
    font-size: 1.4rem;
    font-weight: 800;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 0.85rem 1.25rem;
    color: #8E929C;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    margin: 0.35rem 0;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08); /* Subtle highlight */
    font-weight: 700;
    position: relative;
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--sb-accent);
    border-radius: 0 4px 4px 0;
}

.sidebar-nav .nav-link.active i {
    color: var(--sb-accent);
}

.sidebar-nav .nav-link i {
    width: 22px;
    text-align: center;
    font-size: 1.15rem;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-footer .user-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.sidebar-footer .user-box-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sb-gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-accent);
    font-size: 1.2rem;
}
.sidebar-footer .user-box-info {
    color: #fff;
}
.sidebar-footer .user-box-name {
    font-weight: 700;
    font-size: 0.9rem;
}
.sidebar-footer .user-box-email {
    font-size: 0.75rem;
    color: #8E929C;
}

.btn-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    width: 100%;
    transition: all 0.2s;
}
.btn-sidebar-logout:hover {
    background: rgba(255,255,255,0.1);
    color: var(--sb-brand);
}

/* ---- Main content ---- */
.admin-content {
    margin-left: 250px;
    flex: 1;
    min-width: 0;
    background: transparent;
    overflow-x: hidden;
    max-width: 100%;
}

/* Mobile menu: red circular FAB-style control (shown only < lg via media queries below) */
.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0.35rem 0.25rem 0 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--sb-brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(236, 28, 36, 0.42);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--sb-brand-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(236, 28, 36, 0.5);
}

.sidebar-toggle:active {
    transform: scale(0.94);
}

.sidebar-toggle:focus-visible {
    outline: 3px solid rgba(236, 28, 36, 0.45);
    outline-offset: 3px;
}

.sidebar-toggle i {
    font-size: 1.35rem;
    line-height: 1;
}

/* Updated Topbar */
.admin-topbar {
    padding: 1.5rem 3rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.admin-topbar .search-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-radius: 9999px;
    padding: 0.65rem 1.5rem;
    width: 360px;
}

.admin-topbar .search-box i {
    color: #ffffff;
    background: var(--sb-brand);
    border-radius: 50%;
    padding:8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.admin-topbar .search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sb-gray-900);
    width: 100%;
}

.admin-topbar .search-box input::placeholder {
    color: var(--sb-gray-400);
}

.topbar-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-icons .icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-gray-900);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.topbar-icons .icon-btn:hover {
    background: var(--sb-accent);
    color: #000;
    transform: translateY(-2px);
}

.admin-body {
    padding: 2.5rem 3rem 4rem;
    overflow-x: hidden;
    max-width: 100%;
}

/* ---- Page heading row ---- */
.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.page-heading-lead {
    flex: 1;
    min-width: 0;
}

.page-heading-meta {
    flex-shrink: 0;
    align-self: center;
}

.page-heading-action {
    flex-shrink: 0;
    align-self: flex-start;
}

.page-heading-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sb-gray-600);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.page-heading-action-link:hover {
    color: var(--sb-gray-900);
}

.page-heading h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--sb-gray-900);
    margin: 0;
}

@media (max-width: 991.98px) {
    .page-heading {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 0.35rem;
    }

    .page-heading-meta,
    .page-heading > .page-heading-action:not(.btn-dark-custom),
    .page-heading > a.page-heading-action-link {
        margin-left: calc(46px + 0.75rem);
    }

    .page-heading > .btn-dark-custom.page-heading-action {
        flex-basis: 100%;
        margin-left: 0;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .page-heading .sidebar-toggle {
        display: none !important;
    }
}

.btn-dark-custom {
    background: var(--sb-brand);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(236,28,36,0.25);
}

.btn-dark-custom:hover {
    background: var(--sb-brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236,28,36,0.35);
}

/* ==========================================================
   PREMIUM CARDS
   ========================================================== */
.card {
    background: #fff !important;
    border: none !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
    overflow: hidden;
}

.card-body {
    padding: 2rem !important;
}

.stat-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    overflow: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: rgba(157,248,141,0.5);
    transform: translateY(-2px);
}

.stat-card .stat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    background: var(--sb-gray-900);
    color: var(--sb-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sb-gray-500);
}

.stat-card .stat-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--sb-gray-900);
    line-height: 1;
}

/* ==========================================================
   PAYMENTS LIST / USERS LIST
   ========================================================== */
.payments-section {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    padding: 2rem;
}

.payments-section.transparent {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.payments-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.payments-section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sb-gray-900);
    margin: 0;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    background: #F4F6F8;
    padding: 0.5rem;
    border-radius: 9999px;
}

.filter-group .form-select,
.filter-group .form-control {
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    background: transparent;
    border-radius: 9999px;
    padding: 0.6rem 1.25rem;
    color: var(--sb-gray-900);
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-group .form-select:hover {
    background: #fff;
}

/* 80/20 Layout & Sidebar */
.split-layout-80-20 {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.column-80 {
    flex: 0 0 calc(80% - 0.75rem);
    min-width: 0; /* Prevents overflow issues in flex items */
}

.column-20 {
    flex: 0 0 calc(20% - 0.75rem);
    min-width: 280px; /* Minimum width to keep filters usable */
}

.sticky-sidebar {
    position: sticky;
    top: 1.5rem;
    align-self: flex-start;
    z-index: 10;
}

.sidebar-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    padding: 1.5rem;
}

.filter-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.filter-vertical-stack .filter-group {
    flex-direction: column;
    align-items: stretch;
    border-radius: 1rem;
    padding: 1rem;
    gap: 0.5rem;
}

.filter-vertical-stack .filter-group .form-select,
.filter-vertical-stack .filter-group .form-control {
    width: 100% !important;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(0,0,0,0.03);
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sb-gray-400);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    padding-left: 0.5rem;
}

@media (max-width: 1200px) {
    .split-layout-80-20 {
        flex-direction: column;
    }
    .column-80, .column-20 {
        flex: 0 0 100%;
        width: 100%;
    }
    .sticky-sidebar {
        position: static;
    }
}

/* Payment list items */
.payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem;
    border-bottom: 2px dotted #F0F2F5;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item:hover {
    background: #F8FAF9;
    border-radius: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.payment-item-left {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.payment-item-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--sb-gray-900);
}

.payment-item-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sb-gray-500);
}

.payment-item-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.payment-item-amount {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--sb-brand);
}

/* Users list — stack actions on narrow screens */
.payment-item-left--users {
    min-width: 0;
}

.payment-item-right--users {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

@media (max-width: 991.98px) {
    .payments-section {
        padding: 1.25rem 1rem;
        border-radius: 1rem;
        max-width: 100%;
    }

    .payment-list--users .payment-item--users {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
        padding: 1rem 0 !important;
    }

    .payment-list--users .payment-item--users:hover {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .payment-list--users .payment-item-right--users {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }

    .payment-list--users .payment-item-right--users .badge-status {
        align-self: flex-start;
    }

    .payment-list--users .payment-item-right--users form {
        width: 100%;
        margin: 0;
    }

    .payment-list--users .payment-item-right--users form button,
    .payment-list--users .payment-item-right--users > a {
        width: 100%;
        justify-content: center;
    }

    .payment-list--users .payment-item-right--users button[type="submit"] {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        padding: 1.35rem !important;
    }

    .stat-card .stat-value {
        font-size: clamp(1.5rem, 8vw, 2.25rem);
    }
}

/* Reports — charts & tabs */
.reports-chart-shell {
    max-width: 100%;
}

.reports-tab-nav .nav-item {
    flex: 0 0 auto;
}

.reports-tab-content {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .reports-tab-content {
        padding: 1.75rem 2rem;
    }
}

.reports-chart-title {
    color: #111418;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: clamp(0.95rem, 3.8vw, 1.1rem);
    line-height: 1.35;
}

.reports-chart-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 230px;
}

@media (min-width: 576px) {
    .reports-chart-canvas-wrap {
        height: 270px;
    }
}

@media (min-width: 992px) {
    .reports-chart-canvas-wrap {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    #pills-tab .nav-link {
        padding: 0.45rem 1rem !important;
        font-size: 0.82rem !important;
    }
}

/* ==========================================================
   STATUS BADGES — premium pill badges
   ========================================================== */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.badge-status.success {
    background: var(--sb-accent-light);
    color: #1B5E20;
}

.badge-status.failed {
    background: var(--sb-brand-light);
    color: var(--sb-brand-dark);
}

.badge-status.pending {
    background: var(--sb-gray-100);
    color: var(--sb-gray-600);
}

.badge-status i {
    font-size: 0.65rem;
}

/* ==========================================================
   ADMIN LOGIN — premium dark design
   ========================================================== */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0F1115;
    padding: 2rem 1rem;
}

.admin-login-card {
    background: #1A1D23;
    border-radius: 1.5rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.admin-login-header {
    padding: 2.5rem 2rem 1.25rem;
    text-align: center;
}

.admin-login-header .login-logo {
    width: 52px;
    height: 52px;
    background: var(--sb-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F1115;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.admin-login-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.2rem;
}

.admin-login-header p {
    color: #8E929C;
    font-size: 0.9rem;
    margin: 0;
}

.admin-login-body {
    padding: 0 2rem 2.5rem;
}

.admin-login-body .form-label {
    color: #8E929C;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-login-body .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #353535;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.admin-login-body .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--sb-accent);
    box-shadow: 0 0 0 3px rgba(157,248,141,0.15);
    color: #000;
}

.admin-login-body .form-control::placeholder {
    color: rgba(255,255,255,0.2);
}

.btn-admin-login {
    background: var(--sb-accent);
    border: none;
    color: #0F1115;
    font-weight: 800;
    padding: 0.8rem;
    border-radius: 10px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-admin-login:hover {
    background: #7dde6e;
    color: #0F1115;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(157,248,141,0.3);
}

/* ==========================================================
   DETAIL PAGE
   ========================================================== */
.detail-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    overflow: hidden;
}

.detail-card .detail-header {
    padding: 1.75rem 2rem;
    border-bottom: 2px dotted #F0F2F5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-card .detail-header h5 {
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0;
    color: var(--sb-gray-900);
}

.detail-card .detail-body {
    padding: 1.5rem 2rem;
}

.detail-card .detail-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 2px dotted #F0F2F5;
}

.detail-card .detail-row:last-child {
    border-bottom: none;
}

.detail-card .detail-row .detail-label {
    width: 180px;
    color: var(--sb-gray-500);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-card .detail-row .detail-value {
    color: var(--sb-gray-900);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ==========================================================
   PROCESSING SPINNER
   ========================================================== */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 1.25rem;
}

.spinner-overlay.active { display: flex; }

.spinner-overlay .spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid var(--sb-gray-200);
    border-top-color: var(--sb-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.spinner-overlay .spinner-text {
    color: var(--sb-gray-600);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================================
   PAGINATION — premium style
   ========================================================== */
.pagination { 
    gap: 0.4rem; 
    align-items: center;
    margin: 0;
}

.pagination .page-item .page-link {
    color: var(--sb-gray-600);
    border: 1px solid transparent;
    background: #F4F6F8;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.5rem 0.85rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
}

.pagination .page-item .page-link:hover {
    background: var(--sb-gray-200);
    color: var(--sb-gray-900);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--sb-brand);
    border-color: var(--sb-brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(236,28,36,0.25);
}

.pagination .page-item.disabled .page-link {
    color: var(--sb-gray-400);
    background: transparent;
    border: none;
    pointer-events: none;
}

/* Hide Laravel Pagination Summary Text */
nav p.text-muted, 
nav .small.text-muted,
.pagination-wrapper p.small,
nav div:has(> p.small) {
    display: none !important;
}

.pagination .page-link svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        border-radius: 0 1.5rem 1.5rem 0;
        z-index: 1060;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
    .sidebar-toggle {
        display: inline-flex !important;
    }
    .sidebar-backdrop {
        z-index: 1040;
    }
    .admin-topbar {
        padding: 1rem 1.25rem 0;
    }
    .admin-body {
        padding: 1.5rem 1.25rem 3rem;
    }
    .admin-topbar .search-box {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .sidebar-toggle {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .admin-topbar .search-box {
        display: none;
    }
    .page-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .payments-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile sidebar backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(2px);
}
.sidebar-backdrop.show { display: block; }

/* Utility */
.amount-display {
    font-weight: 700;
    color: var(--sb-gray-900);
}

.cus_capital {
    text-transform: uppercase !important;
}

/* --- Utility Classes --- */
.stats-row-single {
    grid-template-columns: 1fr !important;
}

.cursor-default {
    cursor: default !important;
}

.font-monospace {
    font-family: monospace !important;
}

.text-sm-custom {
    font-size: var(--sb-fs-base) !important;
}

.text-xs-custom {
    font-size: 12px !important;
}

.footer-note {
    font-size: 13px !important;
    color: var(--sb-gray-400) !important;
    letter-spacing: 0.03em;
}

.admin-login-page .footer-note {
    width: 100%;
    max-width: 420px;
}

a.footer-note-brand,
.footer-note-brand {
    color: var(--sb-brand) !important;
    text-decoration: none !important;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

a.footer-note-brand:hover,
.footer-note-brand:hover {
    color: var(--sb-brand-dark) !important;
    text-decoration: none !important;
}

.alert-custom {
    font-size: var(--sb-fs-base) !important;
    border-radius: var(--sb-radius-sm) !important;
}

/* ==========================================================
   INLINE FIELD VALIDATION ERRORS
   ========================================================== */
.field-error {
    display: none;
    font-size: 12px;
    color: var(--sb-danger);
    margin-top: 0.3rem;
    line-height: 1.4;
}
.field-error.visible {
    display: block;
}
.step-input.is-invalid,
.step-input.input-error {
    border-color: var(--sb-danger) !important;
}
.step-input.input-valid {
    border-color: var(--sb-success) !important;
}


/* ==========================================================
   ADMIN LOGIN
   ========================================================== */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--sb-gray-50);
    padding: 2rem 1rem;
}

.admin-login-card {
    background: #fff;
    border-radius: var(--sb-radius);
    box-shadow: var(--sb-shadow-md);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
}

.admin-login-header {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
}

.admin-login-header .login-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-dark));
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 auto 0.85rem;
}

.admin-login-header h2 {
    font-size: var(--sb-fs-title);
    font-weight: 700;
    color: var(--sb-gray-900);
    margin-bottom: 0.2rem;
}

.admin-login-header p {
    color: var(--sb-gray-400);
    font-size: 0.88rem;
    margin: 0;
}

.admin-login-body {
    padding: 0 2rem 2rem;
}

.btn-admin-login {
    background: var(--sb-gray-900);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem;
    border-radius: var(--sb-radius-sm);
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.btn-admin-login:hover {
    background: var(--sb-gray-800);
    color: #fff;
}

/* Light admin-login card: earlier block used near-transparent borders — show inputs clearly */
.admin-login-body .form-floating > .form-control {
    border: 1px solid #b8b8b8;
    background-color: #fff;
    color: var(--sb-gray-900);
}
.admin-login-body .form-floating > .form-control:focus {
    border-color: var(--sb-gray-700);
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.15);
    background-color: #fff;
    color: var(--sb-gray-900);
}
.admin-login-body .form-floating > label {
    color: var(--sb-gray-600);
}

/* ==========================================================
   DETAIL PAGE
   ========================================================== */
.detail-card {
    background: #fff;
    border: 1px solid var(--sb-gray-200);
    border-radius: var(--sb-radius-sm);
    overflow: hidden;
}

.detail-card .detail-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sb-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-card .detail-header h5 {
    font-weight: 700;
    font-size: var(--sb-fs-subtitle);
    margin: 0;
}

.detail-card .detail-body {
    padding: 1.25rem 1.5rem;
}

.detail-card .detail-row {
    display: flex;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--sb-gray-100);
}

.detail-card .detail-row:last-child {
    border-bottom: none;
}

.detail-card .detail-row .detail-label {
    width: 160px;
    color: var(--sb-gray-400);
    font-weight: 500;
    font-size: 0.87rem;
    flex-shrink: 0;
}

.detail-card .detail-row .detail-value {
    color: var(--sb-gray-800);
    font-weight: 600;
    font-size: 0.87rem;
}

/* ==========================================================
   PROCESSING SPINNER
   ========================================================== */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 1.25rem;
}

.spinner-overlay.active { display: flex; }

.spinner-overlay .spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid var(--sb-gray-200);
    border-top-color: var(--sb-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.spinner-overlay .spinner-text {
    color: var(--sb-gray-600);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Pagination duplicate removed */

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 1060;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
    .sidebar-toggle {
        display: inline-flex !important;
    }
    .sidebar-backdrop {
        z-index: 1040;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .sidebar-toggle {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .admin-body {
        padding: 1.25rem;
    }
    .payment-card-body {
        padding: 1.5rem;
    }
    .page-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Mobile sidebar backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}
.sidebar-backdrop.show { display: block; }

/* Utility */
.amount-display {
    font-weight: 700;
    color: var(--sb-gray-900);
}

.cus_capital {
    text-transform: uppercase !important;
}

/* --- Added Utility Classes --- */
.stats-row-single {
    grid-template-columns: 1fr !important;
}

.cursor-default {
    cursor: default !important;
}

.font-monospace {
    font-family: monospace !important;
}

.text-sm-custom {
    font-size: var(--sb-fs-base) !important;
}

.text-xs-custom {
    font-size: 12px !important;
}

.footer-note {
    font-size: 13px !important;
    color: var(--sb-gray-400) !important;
    letter-spacing: 0.03em;
}

.admin-login-page .footer-note {
    width: 100%;
    max-width: 420px;
}

a.footer-note-brand,
.footer-note-brand {
    color: var(--sb-brand) !important;
    text-decoration: none !important;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

a.footer-note-brand:hover,
.footer-note-brand:hover {
    color: var(--sb-brand-dark) !important;
    text-decoration: none !important;
}

.alert-custom {
    font-size: var(--sb-fs-base) !important;
    border-radius: var(--sb-radius-sm) !important;
}

/* ==========================================================
   INLINE FIELD VALIDATION ERRORS
   ========================================================== */
.field-error {
    display: none;
    font-size: 12px;
    color: var(--sb-danger);
    margin-top: 0.3rem;
    line-height: 1.4;
}
.field-error.visible {
    display: block;
}
.step-input.is-invalid,
.step-input.input-error {
    border-color: var(--sb-danger) !important;
}
.step-input.input-valid {
    border-color: var(--sb-success) !important;
}


.cus_vt_mpb-14{
     padding-bottom: 30px !important;
}
