/* ============================================================
   ZMS PANEL — Complete Mobile-First Redesign
   Inspired by Zento SMS Interface
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
    --zms-primary: #2d6a2d;
    --zms-dark: #0f1f0f;
    --zms-sidebar: #111e11;
    --zms-accent: #5aab5a;
    --zms-light: #e8f5e8;
    --zms-text-dim: #8db88d;
    --zms-border: #d0e8d0;
    --zms-danger: #c0392b;
    --sidebar-width: 260px;
    --topbar-h: 58px;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* CRITICAL: Desktop sidebar + main layout */
@media (min-width: 993px) {
    .zms-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        transform: none !important;
        width: var(--sidebar-width);
    }

    .zms-main {
        margin-left: var(--sidebar-width) !important;
        width: calc(100% - var(--sidebar-width));
    }

    .mobile-header {
        display: none !important;
    }

    .zms-topbar {
        display: flex !important;
    }

    .zms-content {
        padding-top: 22px !important;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Nunito', system-ui, sans-serif;
    background: #f2f5f8;
    color: #1a2a1a;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ═══════════════════════════════════════════════
   MOBILE TOP HEADER (always visible on mobile)
   ═══════════════════════════════════════════════ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid #e8eef8;
    z-index: 1100;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

    .mobile-header .mh-logo {
        display: flex;
        align-items: center;
        gap: 9px;
        flex: 1;
    }

    .mobile-header .mh-logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: linear-gradient(135deg, #2d6a2d, #5aab5a);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        box-shadow: 0 2px 8px rgba(45,106,45,.3);
    }

    .mobile-header .mh-name {
        font-size: 17px;
        font-weight: 800;
        color: #1a2a1a;
        letter-spacing: 1px;
    }

    .mobile-header .mh-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.mh-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f5f7fa;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 16px;
    transition: all .2s;
}

    .mh-btn:hover {
        background: #e8eef8;
        color: #2d6a2d;
    }

.mh-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d6a2d, #5aab5a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════
   LAYOUT WRAPPER
   ═══════════════════════════════════════════════ */
.zms-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */
.zms-sidebar {
    width: var(--sidebar-width);
    background: #0d1b2e;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    scrollbar-width: thin;
    scrollbar-color: #1e3a5e transparent;
}

    .zms-sidebar::-webkit-scrollbar {
        width: 3px;
    }

    .zms-sidebar::-webkit-scrollbar-thumb {
        background: #1e3a5e;
        border-radius: 2px;
    }

/* Sidebar Brand */
.sidebar-brand {
    padding: 18px 16px 15px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: #091524;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2d6a2d, #5aab5a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 19px;
    box-shadow: 0 2px 10px rgba(45,106,45,.35);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-zms {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

.brand-panel {
    font-size: 9px;
    font-weight: 600;
    color: #5a8ab0;
    letter-spacing: 4px;
    margin-top: 1px;
}

/* Sidebar User Info */
.sidebar-user-info {
    padding: 13px 16px;
    background: #0d1b2e;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d6a2d, #5aab5a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.user-meta {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: #e8f0ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carrier-label {
    font-size: 10px;
    color: #5aab5a;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.user-datetime {
    font-size: 10px;
    color: #4a6a8a;
    margin-top: 4px;
    font-family: monospace;
}

.user-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 6px;
}

.role-carrier {
    background: rgba(45,106,45,.25);
    color: #7ad47a;
    border: 1px solid rgba(90,171,90,.2);
}

.role-admin {
    background: rgba(192,57,43,.2);
    color: #e07070;
    border: 1px solid rgba(192,57,43,.2);
}

.role-client {
    background: rgba(26,90,122,.25);
    color: #70c0d8;
    border: 1px solid rgba(58,154,181,.2);
}

/* Sidebar Nav */
.sidebar-nav {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}

.nav-section-label {
    padding: 14px 18px 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #3a5a7a;
    text-transform: uppercase;
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 18px;
    color: #7a9ab8;
    font-size: 13px;
    font-weight: 600;
    transition: all .18s;
    border-radius: 0;
    position: relative;
}

    .nav-item .nav-link:hover {
        background: rgba(255,255,255,.05);
        color: #c8e0f8;
    }

    .nav-item .nav-link.active {
        background: linear-gradient(90deg, rgba(45,106,45,.25), rgba(45,106,45,.08));
        color: #fff;
        border-left: 3px solid #5aab5a;
    }

.nav-icon {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nav-sub-icon {
    width: 14px;
    font-size: 8px;
    color: #3a5a7a;
    flex-shrink: 0;
}

.nav-item.sub .nav-link {
    padding: 9px 18px 9px 42px;
    font-size: 12.5px;
    font-weight: 500;
    color: #5a7a9a;
}

    .nav-item.sub .nav-link:hover {
        color: #c8e0f8;
    }

    .nav-item.sub .nav-link.active {
        color: #fff;
        border-left-color: #5aab5a;
    }

/* Collapsible nav sections */
.nav-parent {
    cursor: pointer;
}

    .nav-parent .nav-chevron {
        margin-left: auto;
        font-size: 11px;
        transition: transform .2s;
        color: #3a5a7a;
    }

    .nav-parent.open .nav-chevron {
        transform: rotate(180deg);
    }

.nav-children {
    display: none;
}

    .nav-children.open {
        display: block;
    }

/* Sidebar Footer */
.sidebar-footer {
    padding: 13px 14px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.btn-logout {
    width: 100%;
    padding: 10px 14px;
    background: rgba(192,57,43,.15);
    border: 1px solid rgba(192,57,43,.2);
    color: #e07070;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
}

    .btn-logout:hover {
        background: rgba(192,57,43,.3);
        color: #fff;
    }

/* ═══════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════ */
.zms-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left .28s cubic-bezier(.4,0,.2,1);
}

/* Desktop Topbar */
.zms-topbar {
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid #e8eef8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    width: 36px;
    height: 36px;
    background: #f5f7fa;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

    .sidebar-toggle:hover {
        background: #e8eef8;
        color: #2d6a2d;
    }

.breadcrumb {
    font-size: 12px;
    margin-bottom: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: #2d6a2d;
    font-weight: 600;
}

.breadcrumb-item.active {
    color: #888;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #aaa;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-user {
    font-size: 13px;
    color: #2d6a2d;
    font-weight: 700;
}

/* Content */
.zms-content {
    padding: 22px;
    flex: 1;
    max-width: 100%;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════
   OVERLAY
   ═══════════════════════════════════════════════ */
.zms-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

    .zms-overlay.active {
        display: block;
    }

/* ═══════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════ */
.zms-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #edf2f8;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 18px;
}

.zms-card-header {
    background: linear-gradient(135deg, #2d6a2d, #1e4d1e);
    color: #fff;
    padding: 13px 17px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .zms-card-header i {
        margin-right: 8px;
        color: #a0d4a0;
    }

.zms-card-body {
    padding: 18px;
}

.zms-info-text {
    font-size: 12px;
    color: #556;
    background: var(--zms-light);
    border-left: 3px solid var(--zms-accent);
    padding: 9px 13px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════
   DASHBOARD STAT CARDS (like Zento SMS style)
   ═══════════════════════════════════════════════ */
.dash-stat-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #edf2f8;
    box-shadow: var(--shadow);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

    .dash-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(0,0,0,.1);
    }

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

    .dash-stat-card .dsc-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: #fff;
    }

.dsc-icon-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 12px rgba(231,76,60,.3);
}

.dsc-icon-blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 12px rgba(52,152,219,.3);
}

.dsc-icon-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 12px rgba(46,204,113,.3);
}

.dsc-icon-orange {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 4px 12px rgba(243,156,18,.3);
}

.dsc-icon-purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 12px rgba(155,89,182,.3);
}

.dsc-icon-teal {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    box-shadow: 0 4px 12px rgba(26,188,156,.3);
}

.dash-stat-card .dsc-toggle {
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: #2ecc71;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}

    .dash-stat-card .dsc-toggle::after {
        content: '';
        position: absolute;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        top: 3px;
        right: 3px;
        box-shadow: 0 1px 4px rgba(0,0,0,.2);
        transition: right .2s;
    }

.dash-stat-card .dsc-label {
    font-size: 12px;
    color: #8a9ab0;
    font-weight: 600;
    margin-top: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-stat-card .dsc-value {
    font-size: 30px;
    font-weight: 800;
    color: #1a2a3a;
    line-height: 1.1;
    margin-top: 3px;
}

.dash-stat-card .dsc-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #8a9ab0;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f4f8;
}

    .dash-stat-card .dsc-sub i {
        color: #2ecc71;
    }

    .dash-stat-card .dsc-sub.down i {
        color: #e74c3c;
    }

/* ═══════════════════════════════════════════════
   QUICK ACCESS TILES
   ═══════════════════════════════════════════════ */
.tile-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #edf2f8;
    text-align: center;
    padding: 20px 10px;
    display: block;
    transition: all .2s;
    color: #1a2a1a;
    box-shadow: var(--shadow);
}

    .tile-card:hover {
        background: #f0f8f0;
        border-color: #5aab5a;
        color: #2d6a2d;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(45,106,45,.12);
    }

.tile-icon {
    font-size: 26px;
    color: #2d6a2d;
    margin-bottom: 8px;
}

.tile-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #4a5a6a;
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn-zms-primary {
    background: #2d6a2d;
    border-color: #2d6a2d;
    color: #fff;
}

    .btn-zms-primary:hover {
        background: #1e4d1e;
        color: #fff;
    }

.btn-zms-accent {
    background: #5aab5a;
    border-color: #5aab5a;
    color: #fff;
}

    .btn-zms-accent:hover {
        background: #3d8a3d;
        color: #fff;
    }

.btn-zms-export {
    background: #1e4d1e;
    border: 1px solid #2d6a2d;
    color: #a0d4a0;
    font-size: 12px;
}

    .btn-zms-export:hover {
        background: #2d6a2d;
        color: #fff;
    }

.btn-request {
    background: linear-gradient(135deg,#2d6a2d,#3d8a3d);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    transition: all .2s;
    cursor: pointer;
}

    .btn-request:hover {
        background: linear-gradient(135deg,#1e4d1e,#2d6a2d);
    }

.btn-filter {
    background: #2d6a2d;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

    .btn-filter:hover {
        background: #1e4d1e;
    }

/* ═══════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════ */
.zms-table {
    width: 100%;
    font-size: 12.5px;
}

    .zms-table thead tr {
        background: linear-gradient(135deg,#2d6a2d,#1e4d1e);
        color: #fff;
    }

    .zms-table thead th {
        padding: 10px 12px;
        font-weight: 700;
        white-space: nowrap;
        border: none;
    }

    .zms-table tbody tr {
        border-bottom: 1px solid #edf2f8;
        transition: background .15s;
    }

        .zms-table tbody tr:hover {
            background: #f8fcf8;
        }

    .zms-table tbody td {
        padding: 9px 12px;
        vertical-align: middle;
    }

    .zms-table tfoot tr {
        background: #edf8ed;
    }

    .zms-table tfoot td {
        padding: 9px 12px;
        font-weight: 700;
        font-size: 12px;
    }

.payout-val {
    color: #2d6a2d;
    font-weight: 700;
}

.payout-na {
    color: #aaa;
    font-size: 11px;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.badge-delivered, .badge-active, .badge-allocated, .badge-approved {
    background: #d4f8e4;
    color: #0d6630;
}

.badge-failed, .badge-inactive, .badge-suspended, .badge-rejected {
    background: #fde8e8;
    color: #c0392b;
}

.badge-pending {
    background: #fff8e1;
    color: #b7700d;
}

.badge-available {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-paid {
    background: #e3f2fd;
    color: #1565c0;
}

/* ═══════════════════════════════════════════════
   FORMS & FILTER BAR
   ═══════════════════════════════════════════════ */
.filter-bar {
    background: #f8fafc;
    border: 1px solid #edf2f8;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

    .filter-bar label {
        font-size: 11px;
        font-weight: 700;
        color: #4a5a6a;
        display: block;
        margin-bottom: 4px;
    }

    .filter-bar .form-control,
    .filter-bar .form-select {
        font-size: 13px;
        border-color: #dde6f0;
        border-radius: 8px;
        font-family: 'Nunito', sans-serif;
    }

        .filter-bar .form-control:focus,
        .filter-bar .form-select:focus {
            border-color: #5aab5a;
            box-shadow: 0 0 0 3px rgba(90,171,90,.15);
        }

.totals-strip {
    background: linear-gradient(90deg,#f0f8f0,#f8fafc);
    border: 1px solid #edf2f8;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 14px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

    .totals-strip .total-label {
        color: #8a9ab0;
        font-size: 10.5px;
        font-weight: 600;
    }

    .totals-strip .total-val {
        font-weight: 800;
        color: #2d6a2d;
        font-size: 14px;
    }

/* ═══════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════ */
.zms-alert-success {
    background: #d4f8e4;
    border-color: #2d6a2d;
    color: #0d6630;
}

.zms-alert-error {
    background: #fde8e8;
    border-color: #c0392b;
    color: #721c24;
}

/* ═══════════════════════════════════════════════
   DATATABLES
   ═══════════════════════════════════════════════ */
div.dt-buttons .btn {
    font-size: 12px !important;
    padding: 5px 12px !important;
    border-radius: 7px !important;
}

.dt-buttons .btn-secondary {
    background: #2d6a2d !important;
    border-color: #1e4d1e !important;
    color: #fff !important;
}

    .dt-buttons .btn-secondary:hover {
        background: #1e4d1e !important;
    }

.dataTables_filter input {
    border: 1px solid #dde6f0 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    font-family: 'Nunito', sans-serif !important;
}

    .dataTables_filter input:focus {
        border-color: #5aab5a !important;
        box-shadow: 0 0 0 3px rgba(90,171,90,.15) !important;
        outline: none !important;
    }

.dataTables_length select {
    border: 1px solid #dde6f0 !important;
    border-radius: 8px !important;
}

.page-item.active .page-link {
    background: #2d6a2d !important;
    border-color: #2d6a2d !important;
}

.page-link {
    color: #2d6a2d !important;
}

/* ═══════════════════════════════════════════════
   NEWS
   ═══════════════════════════════════════════════ */
.news-item {
    border-left: 3px solid #5aab5a;
    padding: 10px 14px;
    background: #f8fcf8;
    border-radius: 0 10px 10px 0;
    margin-bottom: 10px;
}

    .news-item h6 {
        font-size: 13px;
        font-weight: 700;
        color: #2d6a2d;
        margin-bottom: 3px;
    }

    .news-item p {
        font-size: 12px;
        color: #556;
        margin: 0;
    }

.news-date {
    font-size: 10px;
    color: #8a9ab0;
    margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════
   CHART
   ═══════════════════════════════════════════════ */
.chart-wrapper {
    position: relative;
    height: 220px;
}

/* ═══════════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d1b2e 0%, #0a1520 50%, #091220 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 80px rgba(0,0,0,.4);
}

.login-logo {
    text-align: center;
    margin-bottom: 22px;
}

.login-logo-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #2d6a2d, #5aab5a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(45,106,45,.3);
}

.login-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a2a1a;
    letter-spacing: 2px;
}

.login-sub {
    font-size: 10px;
    color: #8a9ab0;
    letter-spacing: 4px;
    font-weight: 600;
}

.login-welcome {
    font-size: 17px;
    font-weight: 700;
    color: #2a3a2a;
    margin-bottom: 3px;
    text-align: center;
}

.login-hint {
    font-size: 12.5px;
    color: #8a9ab0;
    text-align: center;
    margin-bottom: 24px;
}

.login-input-group {
    position: relative;
    margin-bottom: 14px;
}

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

.login-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #dde6f0;
    border-radius: 12px;
    font-size: 13.5px;
    background: #f8fafc;
    transition: all .2s;
    font-family: 'Nunito', sans-serif;
}

    .login-input:focus {
        outline: none;
        border-color: #5aab5a;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(90,171,90,.15);
    }

.login-captcha {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 16px;
    border: 1px solid #edf2f8;
}

    .login-captcha label {
        font-size: 12.5px;
        font-weight: 700;
        color: #3a4a3a;
        margin-bottom: 6px;
        display: block;
    }

.captcha-input {
    border: 1.5px solid #dde6f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    width: 100%;
    font-family: 'Nunito', sans-serif;
}

    .captcha-input:focus {
        outline: none;
        border-color: #5aab5a;
        box-shadow: 0 0 0 3px rgba(90,171,90,.15);
    }

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg,#2d6a2d,#3d8a3d);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Nunito', sans-serif;
}

    .btn-login:hover {
        background: linear-gradient(135deg,#1e4d1e,#2d6a2d);
        box-shadow: 0 8px 24px rgba(45,106,45,.4);
        transform: translateY(-1px);
    }

.login-demo {
    margin-top: 18px;
    padding: 12px 14px;
    background: #f5fbf5;
    border-radius: 12px;
    border: 1px dashed #a0c4a0;
}

    .login-demo p {
        font-size: 11px;
        color: #6a7a6a;
        margin: 1px 0;
        font-weight: 600;
    }

/* ═══════════════════════════════════════════════
   OTP INBOX BADGE
   ═══════════════════════════════════════════════ */
.otp-inbox-link {
    position: relative;
}

.otp-nav-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 20px;
    margin-left: auto;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .6
    }
}

/* ═══════════════════════════════════════════════
   SANDBOX
   ═══════════════════════════════════════════════ */
.sandbox-notice {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #6a4a00;
    margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════
   ROLE MODES
   ═══════════════════════════════════════════════ */
body.admin-mode .zms-sidebar {
    background: linear-gradient(180deg,#1a0a0a 0%,#200d0d 100%);
}

body.admin-mode .sidebar-brand {
    background: #120606;
}

body.admin-mode .logo-icon {
    background: linear-gradient(135deg, #8a1515, #c02020);
}

body.admin-mode .carrier-label {
    color: #e07070;
}

body.admin-mode .nav-section-label {
    color: #6a2a2a;
}

body.admin-mode .nav-item .nav-link.active {
    border-left-color: #c05050;
    background: linear-gradient(90deg,rgba(192,80,80,.2),rgba(192,80,80,.05));
}

body.admin-mode .nav-item .nav-link:hover {
    background: rgba(192,80,80,.08);
}

body.admin-mode .zms-card-header {
    background: linear-gradient(135deg,#7a1515,#5a0f0f);
}

body.admin-mode .btn-zms-primary {
    background: #7a1515;
    border-color: #7a1515;
}

    body.admin-mode .btn-zms-primary:hover {
        background: #5a0f0f;
    }

body.admin-mode .zms-table thead tr {
    background: linear-gradient(135deg,#7a1515,#5a0f0f);
}

body.admin-mode .filter-bar {
    background: #fdf5f5;
    border-color: #f0d0d0;
}

body.admin-mode .dash-stat-card .dsc-icon-red {
    background: linear-gradient(135deg,#7a1515,#a02020);
}

body.admin-mode .dash-stat-card .dsc-icon-blue {
    background: linear-gradient(135deg,#7a2020,#a03030);
}

body.admin-mode .dash-stat-card .dsc-icon-green {
    background: linear-gradient(135deg,#6a1a1a,#8a2020);
}

body.admin-mode .dash-stat-card .dsc-icon-orange {
    background: linear-gradient(135deg,#8a2020,#a02828);
}

body.admin-mode .tile-card:hover {
    border-color: #c05050;
    color: #c05050;
    background: #fdf5f5;
}

body.admin-mode .tile-icon {
    color: #7a1515;
}

body.admin-mode .btn-filter {
    background: #7a1515;
}

    body.admin-mode .btn-filter:hover {
        background: #5a0f0f;
    }

body.admin-mode .page-item.active .page-link {
    background: #7a1515 !important;
    border-color: #7a1515 !important;
}

body.admin-mode .page-link {
    color: #7a1515 !important;
}

body.admin-mode .news-item {
    border-left-color: #c05050;
    background: #fdf5f5;
}

    body.admin-mode .news-item h6 {
        color: #7a1515;
    }

body.admin-mode .payout-val {
    color: #7a1515;
}

body.admin-mode .mobile-header .mh-logo-icon {
    background: linear-gradient(135deg,#7a1515,#c02020);
}

body.admin-mode .mh-btn:hover {
    color: #7a1515;
}

body.client-mode .zms-sidebar {
    background: linear-gradient(180deg,#0a1520 0%,#0d1c2e 100%);
}

body.client-mode .sidebar-brand {
    background: #070f1a;
}

body.client-mode .logo-icon {
    background: linear-gradient(135deg, #1a5a7a, #2a9ab8);
}

body.client-mode .carrier-label {
    color: #70b8d0;
}

body.client-mode .nav-section-label {
    color: #1a4a6a;
}

body.client-mode .nav-item .nav-link.active {
    border-left-color: #3a9ab5;
    background: linear-gradient(90deg,rgba(58,154,181,.2),rgba(58,154,181,.05));
}

body.client-mode .nav-item .nav-link:hover {
    background: rgba(58,154,181,.08);
}

body.client-mode .zms-card-header {
    background: linear-gradient(135deg,#1a5a7a,#0f3d55);
}

body.client-mode .btn-zms-primary {
    background: #1a5a7a;
    border-color: #1a5a7a;
}

    body.client-mode .btn-zms-primary:hover {
        background: #0f3d55;
    }

body.client-mode .zms-table thead tr {
    background: linear-gradient(135deg,#1a5a7a,#0f3d55);
}

body.client-mode .tile-card:hover {
    border-color: #3a9ab5;
    color: #1a5a7a;
    background: #f0f8fc;
}

body.client-mode .tile-icon {
    color: #1a5a7a;
}

body.client-mode .btn-filter {
    background: #1a5a7a;
}

    body.client-mode .btn-filter:hover {
        background: #0f3d55;
    }

body.client-mode .page-item.active .page-link {
    background: #1a5a7a !important;
    border-color: #1a5a7a !important;
}

body.client-mode .page-link {
    color: #1a5a7a !important;
}

body.client-mode .news-item {
    border-left-color: #3a9ab5;
    background: #f0f8fc;
}

    body.client-mode .news-item h6 {
        color: #1a5a7a;
    }

body.client-mode .payout-val {
    color: #1a5a7a;
}

body.client-mode .mobile-header .mh-logo-icon {
    background: linear-gradient(135deg,#1a5a7a,#2a9ab8);
}

body.client-mode .mh-btn:hover {
    color: #1a5a7a;
}

body.client-mode .dsc-toggle {
    background: #1a7a9a;
}

/* ═══════════════════════════════════════════════
   MOBILE COPY BUTTON
   ═══════════════════════════════════════════════ */
.number-copy-btn {
    background: #f0f8f0;
    border: 1px solid #c8e0c8;
    color: #2d6a2d;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

    .number-copy-btn:hover {
        background: #2d6a2d;
        color: #fff;
    }

    .number-copy-btn.copied {
        background: #2196f3;
        color: #fff;
    }

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ═══════════════════════════════════════════════ */
@media (max-width: 992px) {
    /* Show mobile header */
    .mobile-header {
        display: flex;
    }

    /* Desktop topbar hidden on mobile */
    .zms-topbar {
        display: none;
    }

    /* Sidebar slides over content */
    .zms-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1050;
        transform: translateX(-110%);
        box-shadow: 6px 0 30px rgba(0,0,0,.5);
    }

        .zms-sidebar.open {
            transform: translateX(0) !important;
        }

    /* Main content full width, below mobile header */
    .zms-main {
        margin-left: 0 !important;
        padding-top: 0;
    }

    .zms-content {
        padding-top: calc(var(--topbar-h) + 14px) !important;
    }

    /* Content padding */
    .zms-content {
        padding: 14px 12px 80px;
    }

    /* Cards */
    .zms-card-body {
        padding: 13px !important;
    }

    .zms-card {
        border-radius: 12px;
    }

    /* Stat cards 2 column grid */
    .stat-cards-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
    }

    .dash-stat-card .dsc-value {
        font-size: 24px;
    }

    .dash-stat-card .dsc-icon {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    /* Tables scroll horizontally */
    .zms-card-body {
        overflow-x: auto;
    }

    .zms-table {
        min-width: 550px;
        font-size: 11.5px !important;
    }

        .zms-table td, .zms-table th {
            padding: 8px 9px !important;
        }

    /* Filter bar stacks */
    .filter-bar {
        flex-direction: column !important;
        gap: 8px !important;
    }

        .filter-bar > div, .filter-bar .form-select, .filter-bar .form-control, .filter-bar input {
            width: 100% !important;
        }

        .filter-bar .btn-filter {
            width: 100% !important;
            padding: 10px !important;
        }

    /* DataTable buttons wrap */
    .dt-buttons {
        flex-wrap: wrap;
        gap: 5px;
    }

        .dt-buttons .btn {
            font-size: 11.5px !important;
            padding: 5px 9px !important;
        }

    /* Touch targets */
    .nav-link {
        padding: 14px 18px !important;
    }

    .btn, button {
        min-height: 38px;
    }

    .form-select, .form-control {
        height: 42px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 26px 18px !important;
        border-radius: 16px !important;
    }

    .login-title {
        font-size: 22px !important;
    }

    .chart-wrapper {
        height: 180px !important;
    }

    .page-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
    }

    .stat-cards-row {
        grid-template-columns: 1fr 1fr;
    }

    .zms-table {
        font-size: 11px !important;
    }

    .otp-layout {
        flex-direction: column !important;
    }

    .otp-numbers-panel {
        width: 100% !important;
    }

    .otp-live-number {
        font-size: 36px !important;
        letter-spacing: 6px !important;
    }

    .otp-copy-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .stat-cards-row {
        grid-template-columns: 1fr 1fr !important;
    }

    .dash-stat-card .dsc-label {
        font-size: 10px !important;
    }

    .dash-stat-card .dsc-value {
        font-size: 20px !important;
    }

    .tile-card {
        padding: 14px 8px !important;
    }

    .tile-icon {
        font-size: 22px !important;
    }

    .tile-label {
        font-size: 10.5px !important;
    }

    .zms-table {
        font-size: 10.5px !important;
        min-width: 480px;
    }

    .zms-card-body {
        padding: 10px !important;
    }

    .tp-layout {
        flex-direction: column;
    }

    .tp-sidebar {
        display: none;
    }

    .tp-main {
        margin-left: 0 !important;
        padding: 14px 12px !important;
    }
}

/* ═══════════════════════════════════════════════
   RECENTLY ADDED RANGES TABLE SECTION
   ═══════════════════════════════════════════════ */
.recently-added-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #edf2f8;
    box-shadow: var(--shadow);
    overflow: hidden;
}

    .recently-added-card .rca-header {
        padding: 13px 17px;
        font-size: 13px;
        font-weight: 700;
        color: #1a2a3a;
        border-bottom: 1px solid #edf2f8;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .recently-added-card .rca-header i {
            color: #2d6a2d;
        }

.rca-table {
    width: 100%;
}

    .rca-table th {
        font-size: 11px;
        font-weight: 700;
        color: #8a9ab0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 10px 14px;
        border-bottom: 1px solid #edf2f8;
    }

    .rca-table td {
        font-size: 12.5px;
        color: #3a4a5a;
        padding: 10px 14px;
        border-bottom: 1px solid #f5f8fc;
    }

    .rca-table tr:last-child td {
        border-bottom: none;
    }

    .rca-table tr:hover td {
        background: #f8fafc;
    }
