/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: #E8EEF4;
    height: 100%;
}

/* MudNavLink Styles */
.mud-nav-link {
    margin: 4px 8px !important;
    border-radius: 12px !important;
}

    .mud-nav-link.active {
        background: rgba(255,255,255,0.15) !important;
    }

    .mud-nav-link:hover:not(.active) {
        background: rgba(255,255,255,0.08) !important;
    }

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 480px;
    width: 100%;
}

.login-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Brand Section */
.brand-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 48px 32px;
    text-align: center;
}

.brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title {
    color: white;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 8px 0;
}

.brand-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
}

/* Form Section */
.form-section {
    padding: 40px 32px;
}

/* Security Badge */
.security-badge {
    background: #E3F2FD;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 32px;
    border-left: 4px solid #e94560;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #1a1a2e;
    font-weight: 500;
}

.security-icon {
    font-size: 18px;
}

/* Input Groups */
.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.6;
}

.input-field {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

    .input-field:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
    }

.pin-display {
    text-align: center;
    letter-spacing: 8px;
    font-size: 20px;
    font-weight: 600;
    padding: 14px 16px;
}

/* Keypad */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.keypad-btn {
    padding: 18px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 16px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

    .keypad-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        border-color: #667eea;
        background: #f5f5ff;
    }

    .keypad-btn:active:not(:disabled) {
        transform: translateY(0);
    }

.keypad-clear {
    font-size: 14px;
    color: #e94560;
}

.keypad-zero {
    background: #f5f5ff;
}

.keypad-ok {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: white;
}

    .keypad-ok:hover:not(:disabled) {
        background: linear-gradient(135deg, #0d7a6e 0%, #2bc06a 100%);
        transform: translateY(-2px);
    }

    .keypad-ok:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .login-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102,126,234,0.3);
    }

    .login-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Footer */
.footer {
    margin-top: 32px;
    text-align: center;
}

.security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 12px;
    color: #666;
}

.footer-icon {
    font-size: 14px;
}

.help-text {
    font-size: 12px;
    color: #999;
    margin: 16px 0 0 0;
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */
.dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.welcome-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
}

.welcome-title {
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.welcome-subtitle {
    color: rgba(255,255,255,0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
}

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-label {
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-weight: 800;
    color: #1a1a2e;
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.pending-badge {
    color: #e94560;
    margin-top: 4px;
    font-size: 12px;
}

.wallet-lrd {
    font-weight: 800;
    color: #1a1a2e;
}

.wallet-usd {
    color: #666;
}

.stat-icon-wrapper {
    padding: 12px;
    border-radius: 16px;
}

.stat-icon {
    font-size: 28px;
}

.users-icon {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: #667eea;
}

.employees-icon {
    background: linear-gradient(135deg, #11998e20 0%, #38ef7d20 100%);
    color: #11998e;
}

.loans-icon {
    background: linear-gradient(135deg, #f093fb20 0%, #f5576c20 100%);
    color: #f5576c;
}

.wallet-icon {
    background: linear-gradient(135deg, #4facfe20 0%, #00f2fe20 100%);
    color: #4facfe;
}

.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Service Card */
.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.service-card-header {
    padding: 24px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-card-title {
    font-weight: 700;
    color: #1a1a2e;
}

.live-chip {
    background: linear-gradient(135deg, #e94560 0%, #0f3460 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.service-card-content {
    padding: 24px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

    .service-item:first-child {
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

.service-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-icon {
    padding: 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airtime-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.data-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.service-item-title {
    font-weight: 600;
    color: #1a1a2e;
}

.service-item-subtitle {
    color: #666;
    font-size: 12px;
}

.service-count {
    padding: 8px 20px;
    border-radius: 12px;
}

.airtime-count, .data-count {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.count-number {
    font-weight: 700;
    color: white;
}

/* Actions Card */
.actions-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.actions-card-header {
    padding: 24px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.actions-card-title {
    font-weight: 700;
    color: #1a1a2e;
}

.flash-icon {
    color: #e94560;
}

.actions-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    border-radius: 14px;
    padding: 14px;
    justify-content: flex-start;
}

.primary-btn {
    background: linear-gradient(135deg, #e94560 0%, #0f3460 100%);
    color: white;
}

.secondary-btn {
    border-color: #e94560;
    color: #e94560;
    background: transparent;
    border: 2px solid #e94560;
}

.text-btn {
    color: #666;
    background: transparent;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .stats-grid {
        gap: 20px;
    }

    .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .bottom-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .welcome-header {
        padding: 24px;
        margin-bottom: 24px;
    }

    .welcome-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .form-section {
        padding: 32px 24px;
    }

    .brand-section {
        padding: 32px 24px;
    }

    .brand-title {
        font-size: 28px;
    }

    .keypad-btn {
        padding: 14px;
        font-size: 20px;
    }

    .keypad-clear, .keypad-ok {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 24px;
    }

    .keypad {
        gap: 8px;
    }

    .keypad-btn {
        padding: 12px;
        font-size: 18px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mb-4 {
    margin-bottom: 24px;
}

.mb-6 {
    margin-bottom: 32px;
}

.mr-1 {
    margin-right: 4px;
}

.mr-2 {
    margin-right: 8px;
}

.ml-2 {
    margin-left: 8px;
}

.pa-2 {
    padding: 8px;
}

.pa-3 {
    padding: 16px;
}

.pa-4 {
    padding: 24px;
}

.pa-6 {
    padding: 48px;
}

.my-2 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

    .empty-state .mud-icon-root {
        font-size: 64px;
        color: #ccc;
    }

/* Responsive table */
@media (max-width: 960px) {
    .mud-table .mud-table-row {
        display: block;
        margin-bottom: 16px;
    }

    .mud-table .mud-table-cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }

        .mud-table .mud-table-cell:before {
            content: attr(data-label);
            font-weight: 600;
            margin-right: 16px;
        }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}
/* Login Page Styles */
.login-wrapper {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    max-width: 450px;
    width: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Brand Header */
.brand-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 32px;
    text-align: center;
}

.brand-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.brand-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

/* Form Container */
.form-container {
    padding: 32px;
}

/* Security Badge */
.security-badge {
    background: #E3F2FD;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-left: 4px solid #e94560;
    font-size: 13px;
    color: #1a1a2e;
    text-align: center;
    font-weight: 500;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

    .form-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
    }

.pin-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 18px;
    font-weight: 600;
}

/* Keypad Container - Using flexbox for reliable grid */
.keypad-container {
    margin: 24px 0 20px;
}

.keypad-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

    .keypad-row:last-child {
        margin-bottom: 0;
    }

.key-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 16px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    text-align: center;
}

    .key-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        border-color: #667eea;
        background: #f5f5ff;
    }

.clear-btn {
    font-size: 14px;
    color: #e94560;
}

.zero-btn {
    background: #f5f5ff;
}

.ok-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: white;
}

    .ok-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #0d7a6e 0%, #2bc06a 100%);
        transform: translateY(-2px);
    }

    .ok-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Login Button */
.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

    .login-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102,126,234,0.3);
    }

    .login-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ssl-badge {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.help-text {
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 480px) {
    .login-wrapper {
        padding: 16px;
    }

    .brand-header {
        padding: 32px 24px;
    }

    .brand-icon {
        width: 60px;
        height: 60px;
    }

    .brand-title {
        font-size: 24px;
    }

    .form-container {
        padding: 24px;
    }

    .key-btn {
        padding: 12px;
        font-size: 20px;
    }

    .clear-btn, .ok-btn {
        font-size: 12px;
    }

    .keypad-row {
        gap: 8px;
    }

    .keypad-row {
        margin-bottom: 8px;
    }
}

@media (max-height: 700px) {
    .brand-header {
        padding: 24px 32px;
    }

    .brand-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .brand-title {
        font-size: 22px;
    }

    .form-container {
        padding: 20px;
    }

    .keypad-container {
        margin: 16px 0;
    }

    .key-btn {
        padding: 10px;
        font-size: 20px;
    }
}
/* ========================================
   ONEPAY LOGIN - RESPONSIVE FIX
   ======================================== */
.onepay-login-page {
    width: 100%;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(233, 69, 96, 0.18), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(15, 52, 96, 0.28), transparent 35%),
        linear-gradient(135deg, #0f172a 0%, #172554 48%, #312e81 100%);
    overflow-y: auto;
}

.onepay-login-shell {
    width: min(980px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.35);
}

.onepay-login-brand {
    padding: 56px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    background:
        linear-gradient(145deg, rgba(15, 52, 96, 0.92), rgba(26, 26, 46, 0.96)),
        linear-gradient(135deg, #0f3460, #e94560);
}

.onepay-brand-mark {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #e94560, #7c3aed);
    box-shadow: 0 18px 40px rgba(233, 69, 96, 0.28);
}

.onepay-login-brand h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.onepay-login-brand p {
    margin: 0;
    max-width: 430px;
    color: rgba(255,255,255,0.78);
    font-size: 1rem;
    line-height: 1.7;
}

.onepay-login-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255,255,255,0.66);
    font-size: 0.8rem;
    margin-top: 20px;
}

.onepay-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #fff;
}

.onepay-login-form-wrap {
    width: 100%;
    max-width: 370px;
}

.onepay-login-heading {
    margin-bottom: 30px;
}

.onepay-login-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: #e94560;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.onepay-login-heading h2 {
    margin: 0 0 9px;
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.onepay-login-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
    font-size: 0.92rem;
}

.onepay-login-field {
    margin-bottom: 19px;
}

.onepay-login-field label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
}

.onepay-input-wrap {
    position: relative;
}

.onepay-input-wrap input {
    width: 100%;
    height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    padding: 0 15px 0 46px;
    color: #0f172a;
    background: #fff;
    font-size: 0.96rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.onepay-input-wrap input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.10);
    background: #fff;
}

.onepay-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.62;
    pointer-events: none;
}

.onepay-login-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    border: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #e94560 0%, #7c3aed 100%);
    box-shadow: 0 12px 26px rgba(124, 58, 237, 0.20);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.onepay-login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(124, 58, 237, 0.25);
}

.onepay-login-submit:disabled {
    opacity: .72;
    cursor: wait;
}

.onepay-login-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: onepay-login-spin .75s linear infinite;
}

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

.onepay-login-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #94a3b8;
    text-align: center;
    font-size: 0.76rem;
}

@media (max-width: 760px) {
    .onepay-login-page {
        display: block;
        padding: 0;
        background: #fff;
    }

    .onepay-login-shell {
        width: 100%;
        min-height: 100dvh;
        grid-template-columns: 1fr;
        border-radius: 0;
        box-shadow: none;
    }

    .onepay-login-brand {
        min-height: 220px;
        padding: 34px 28px;
        gap: 16px;
    }

    .onepay-brand-mark {
        width: 62px;
        height: 62px;
        border-radius: 18px;
    }

    .onepay-login-brand h1 {
        font-size: 2.25rem;
    }

    .onepay-login-brand p {
        font-size: .9rem;
        line-height: 1.55;
    }

    .onepay-login-trust {
        display: none;
    }

    .onepay-login-form-panel {
        align-items: flex-start;
        padding: 34px 24px 40px;
    }
}

/* OnePay portal refinement */
:root {
    --onepay-navy: #14213d;
    --onepay-blue: #1f4b99;
    --onepay-red: #e63946;
    --onepay-bg: #f5f7fb;
    --onepay-border: #e6ebf2;
    --onepay-text-muted: #667085;
}

.flex-wrap-gap {
    flex-wrap: wrap;
    gap: 16px;
}

.mud-main-content {
    background: var(--onepay-bg);
}

.mud-paper {
    box-shadow: 0 8px 30px rgba(20, 33, 61, 0.04);
}

.mud-button-root.mud-button-filled-primary {
    box-shadow: 0 8px 18px rgba(230, 57, 70, 0.18);
}

@media (max-width: 768px) {
    .mud-container-root {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* ========================================
   OnePay responsive portal + Airtime/Data
   2026-09-01
   ======================================== */

html,
body,
#app {
    width: 100%;
    min-height: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

.onepay-main-container {
    width: 100%;
    max-width: 100%;
    padding: 28px !important;
    overflow-x: hidden;
}

.onepay-airtime-data-page {
    width: 100%;
    min-width: 0;
}

.onepay-airtime-data-page .mud-grid-item,
.onepay-airtime-data-page .mud-stack,
.onepay-airtime-data-page .mud-paper {
    min-width: 0;
}

.onepay-service-shell,
.onepay-transactions-card {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--onepay-border);
    border-radius: 20px;
    overflow: hidden;
}

/* Let the tab headers stay usable on narrow devices. */
.onepay-service-tabs .mud-tabs-tabbar {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.onepay-service-tabs .mud-tabs-tabbar-content {
    min-width: max-content;
}

/* Bundle list gets its own scrolling region so a long provider list
   never traps the page or pushes actions off-screen. */
.onepay-bundle-scroll {
    width: 100%;
    max-width: 100%;
    max-height: min(62vh, 620px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 8px 8px 2px;
    margin-right: -4px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.onepay-bundle-grid {
    width: 100%;
    margin: 0 !important;
}

.onepay-bundle-grid > .mud-grid-item {
    display: flex;
}

.onepay-bundle-grid > .mud-grid-item > .mud-paper {
    width: 100%;
}

/* Keep long transaction references and columns accessible without
   breaking the whole page width. */
.onepay-transactions-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: min(58vh, 560px);
    border-radius: 12px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.onepay-service-transactions {
    width: 100%;
    min-width: 820px;
}

.onepay-service-transactions .mud-table-container {
    overflow: visible !important;
}

.onepay-service-transactions .mud-table-cell {
    white-space: nowrap;
}

.onepay-service-transactions .mud-table-cell:last-child {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 960px) {
    /* Override the old global card-table rule only for this page.
       Horizontal scrolling is more predictable for transaction data. */
    .onepay-service-transactions .mud-table-row {
        display: table-row;
        margin-bottom: 0;
    }

    .onepay-service-transactions .mud-table-cell {
        display: table-cell;
        padding: 12px 14px;
    }

    .onepay-service-transactions .mud-table-cell:before {
        content: none !important;
    }
}

@media (max-width: 768px) {
    .onepay-main-container {
        padding: 16px !important;
    }

    .onepay-airtime-data-page > .mud-stack-item,
    .onepay-airtime-data-page .mud-tabs-panels {
        min-width: 0;
    }

    .onepay-service-tabs .mud-tabs-panel {
        padding: 18px !important;
    }

    .onepay-bundle-scroll {
        max-height: 58vh;
        padding-right: 4px;
    }

    .onepay-transactions-card {
        padding: 16px !important;
    }

    .onepay-transactions-scroll {
        max-height: 52vh;
    }
}

@media (max-width: 576px) {
    .onepay-main-container {
        padding: 12px !important;
    }

    .onepay-airtime-data-page h1,
    .onepay-airtime-data-page .mud-typography-h4 {
        font-size: 1.55rem !important;
        line-height: 1.2;
    }

    .onepay-service-shell,
    .onepay-transactions-card {
        border-radius: 16px;
    }

    .onepay-service-tabs .mud-tabs-panel {
        padding: 14px !important;
    }

    .onepay-bundle-scroll {
        max-height: 56vh;
    }

    .onepay-bundle-grid > .mud-grid-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .onepay-service-transactions {
        min-width: 760px;
    }

    .mud-snackbar-location-bottom-center,
    .mud-snackbar-location-bottom-left,
    .mud-snackbar-location-bottom-right {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 380px) {
    .onepay-main-container {
        padding: 8px !important;
    }

    .onepay-service-tabs .mud-tabs-panel {
        padding: 12px !important;
    }
}

/* App bar usability on phones */
.onepay-appbar-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .onepay-appbar-title {
        font-size: 1rem !important;
        max-width: 150px;
    }

    .onepay-appbar-role {
        display: none !important;
    }
}
