/* DealersDataZone — ONE global stylesheet for the entire site.
   Upload ONLY this file: assets/css/style.css
   Brand: --primary #10B981
*/

/* ===== _base_style.css ===== */
/**
 * DealersDataZone — Global Stylesheet (entire site)
 * Location: /assets/css/style.css
 *
 * Single CSS file: public pages, dashboard, auth, store, homepage.
 * Brand color: --primary (#10B981)
 */

/* ===========================
   CSS Variables (Design System)
   =========================== */
:root {
    /* Brand — one palette sitewide */
    --primary:       #10B981;
    --primary-dark:  #059669;
    --primary-light: #34d399;
    --dark:          #0F172A;
    --bg:            #F8FAFC;
    --card:          #FFFFFF;
    --text:          #0F172A;
    --muted:         #64748B;
    --border:        #E2E8F0;
    --success:       #10B981;
    --warning:       #F59E0B;
    --danger:        #EF4444;

    /* Shadows */
    --shadow-sm:     0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md:     0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg:     0 8px 32px rgba(15, 23, 42, 0.10);
    --shadow-card:   0 8px 24px rgba(15, 23, 42, 0.06);

    /* Radii & sizing */
    --radius:        12px;
    --radius-btn:    12px;
    --radius-input:  12px;
    --radius-card:   18px;
    --input-height:  48px;
    --btn-min-height: 44px;

    /* Legacy aliases */
    --secondary:         var(--dark);
    --primary-blue:      var(--primary);
    --accent-green:      var(--primary);
    --accent-green-dark: var(--primary-dark);
    --white:             var(--card);
    --off-white:         var(--bg);
    --gray-100:          #f1f5f9;
    --gray-200:          var(--border);
    --gray-500:          var(--muted);
    --gray-700:          #1e293b;
    --gray-900:          var(--dark);
    --radius-lg:         var(--radius-card);
}

/* ===========================
   Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.main-content {
    padding-top: 76px;
    min-height: calc(100vh - 200px);
}

.dashboard-body {
    background-color: var(--gray-100);
}

/* ===========================
   Navigation
   =========================== */
.main-navbar {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 55%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.brand-text {
    letter-spacing: -0.5px;
}

.text-accent {
    color: var(--primary) !important;
}

.main-navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: opacity 0.2s;
}

.main-navbar .nav-link:hover {
    opacity: 0.85;
}

.user-badge {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Buttons */
.btn-accent {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--card);
    font-weight: 600;
    border-radius: var(--radius-btn);
    min-height: var(--btn-min-height);
    transition: all 0.2s ease;
}

.btn-accent:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--card);
    transform: translateY(-1px);
}

.btn-primary-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--card);
    font-weight: 600;
    border-radius: var(--radius-btn);
    min-height: var(--btn-min-height);
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--card);
}

/* ===========================
   Hero Section (Homepage)
   =========================== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 40%, var(--primary-dark) 100%);
    color: var(--card);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 10px;
}

.hero-stats {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

/* ===========================
   Network Cards
   =========================== */
.networks-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-500);
    margin-bottom: 3rem;
}

.network-card {
    background: var(--card);
    border-radius: var(--radius-card);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.network-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.network-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--white);
}

.network-icon.mtn { background: #ffcc00; color: #000; }
.network-icon.telecel { background: #e60000; }
.network-icon.airteltigo { background: #0066cc; }

.network-card h4 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.network-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================
   Features Section
   =========================== */
.features-section {
    padding: 5rem 0;
    background: var(--card);
}

.feature-card {
    padding: 1.5rem;
    border-radius: var(--radius-btn);
    background: var(--bg);
    height: 100%;
    transition: background 0.2s;
}

.feature-card:hover {
    background: var(--gray-100);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--card);
    text-align: center;
}

.cta-section h2 {
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section .btn {
    background: var(--card);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-btn);
    border: none;
    min-height: var(--btn-min-height);
}

.cta-section .btn:hover {
    background: var(--bg);
    color: var(--primary-dark);
}

/* ===========================
   Auth Pages (Login / Register)
   =========================== */
.auth-section {
    padding: 3rem 0 5rem;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-card {
    background: var(--card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
    border: 1px solid var(--border);
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card-header .auth-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.auth-card-header h2 {
    font-weight: 800;
    color: var(--gray-900);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-card-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-control {
    height: var(--input-height);
    border-radius: var(--radius-input);
    border: 1px solid var(--border);
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-group-text {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 10px 0 0 10px;
    color: var(--gray-500);
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===========================
   Dashboard
   =========================== */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    opacity: 0.85;
    margin: 0;
}

.dashboard-card {
    background: var(--card);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    height: 100%;
    transition: box-shadow 0.2s;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
}

.dashboard-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.dashboard-card-icon.blue,
.dashboard-card-icon.green,
.dashboard-card-icon.orange,
.dashboard-card-icon.purple { background: var(--primary); }

.dashboard-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.dashboard-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

.profile-card {
    background: var(--card);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.profile-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.profile-detail:last-child {
    border-bottom: none;
}

.profile-detail span:first-child {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.profile-detail span:last-child {
    font-weight: 600;
    color: var(--gray-900);
}

.chart-card {
    background: var(--card);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.chart-card h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

/* ===========================
   Alerts
   =========================== */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-brand {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-heading {
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 4rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .auth-card {
        padding: 1.75rem;
        margin: 0 1rem;
    }

    .dashboard-header h1 {
        font-size: 1.4rem;
    }
}

/* ===== dashboard.css ===== */
/**
 * DealersDataZone - Dashboard Styles (Phase 2)
 * Location: /assets/css/dashboard.css
 *
 * Premium SaaS / fintech dashboard design with dark mode support.
 */

/* ===========================
   Dashboard Theme Variables
   =========================== */
:root,
[data-theme="light"] {
    --dash-bg:           var(--bg);
    --dash-surface:      var(--card);
    --dash-surface-2:    #f1f5f9;
    --dash-border:       var(--border);
    --dash-border-light: #f1f5f9;
    --dash-text:         #1e293b;
    --dash-text-muted:   var(--muted);
    --dash-text-heading: var(--text);
    --dash-sidebar-bg:   var(--card);
    --dash-sidebar-hover:#f1f5f9;
    --dash-sidebar-active-bg: rgba(16, 185, 129, 0.12);
    --dash-sidebar-active-text: #059669;
    --dash-topbar-bg:    rgba(255, 255, 255, 0.92);
    --dash-shadow:       var(--shadow-card);
    --dash-shadow-md:    var(--shadow-md);
    --dash-shadow-lg:    var(--shadow-lg);
    --dash-accent:       var(--primary);
    --dash-accent-light: rgba(16, 185, 129, 0.12);
    --dash-primary:      var(--primary);
    --dash-primary-light:rgba(16, 185, 129, 0.12);
    --dash-radius:       var(--radius-btn);
    --dash-radius-lg:    var(--radius-card);
    --sidebar-width:     260px;

    --ds-space-xs:       0.5rem;
    --ds-space-sm:       0.75rem;
    --ds-space-md:       1rem;
    --ds-space-lg:       1.5rem;
    --ds-space-xl:       2rem;
    --ds-content-max:    1200px;
    --ds-input-height:   var(--input-height);
    --ds-input-radius:   var(--radius-input);
    --ds-card-radius:    var(--radius-card);
    --ds-card-padding:   1.75rem;
    --ds-input-padding-x: 1rem;
    --ds-focus-ring:     0 0 0 3px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] {
    --dash-bg:           #0b0f19;
    --dash-surface:      #111827;
    --dash-surface-2:    #1a2234;
    --dash-border:       #1e293b;
    --dash-border-light: #1a2234;
    --dash-text:         #cbd5e1;
    --dash-text-muted:   #94a3b8;
    --dash-text-heading: #f8fafc;
    --dash-sidebar-bg:   #0f1523;
    --dash-sidebar-hover:#1a2234;
    --dash-sidebar-active-bg: rgba(16, 185, 129, 0.18);
    --dash-sidebar-active-text: var(--primary-light);
    --dash-topbar-bg:    rgba(15, 21, 35, 0.95);
    --dash-shadow:       0 1px 3px rgba(0, 0, 0, 0.3);
    --dash-shadow-md:    0 4px 16px rgba(0, 0, 0, 0.4);
    --dash-shadow-lg:    0 8px 30px rgba(0, 0, 0, 0.5);
    --dash-accent-light: rgba(16, 185, 129, 0.15);
    --dash-primary-light:rgba(16, 185, 129, 0.15);
}

/* ===========================
   App Layout
   =========================== */
body.dashboard-app {
    background: var(--dash-bg);
    color: var(--dash-text);
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   Global Design System
   =========================== */
.page-container {
    width: 100%;
    max-width: var(--ds-content-max);
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ds-space-lg);
    margin-bottom: var(--ds-space-lg);
    flex-wrap: wrap;
}

.page-title {
    font-size: clamp(1.35rem, 3vw, 1.625rem);
    font-weight: 800;
    color: var(--dash-text-heading);
    line-height: 1.25;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 0.9375rem;
    color: var(--dash-text-muted);
    margin: 0;
    line-height: 1.5;
    max-width: 42rem;
}

.dashboard-app img,
.dashboard-app svg {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.table-responsive .data-table--transactions {
    min-width: 760px;
}

.dashboard-app .panel-card,
.dashboard-app .panel-body,
.dashboard-app .settings-card {
    min-width: 0;
}

.dashboard-app .form-label {
    font-weight: 600;
    color: var(--dash-text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.dashboard-app .form-text {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--dash-text-muted);
}

.dashboard-app .form-control:not(.form-control-sm),
.dashboard-app .form-select:not(.form-select-sm) {
    min-height: var(--input-height);
    height: var(--input-height);
    border-radius: var(--radius-input);
    border: 1px solid var(--border);
    background: var(--dash-surface);
    color: var(--dash-text-heading);
    padding-left: var(--ds-input-padding-x);
    padding-right: var(--ds-input-padding-x);
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dashboard-app .form-control:not(.form-control-sm):focus,
.dashboard-app .form-select:not(.form-select-sm):focus {
    border-color: var(--primary);
    box-shadow: var(--ds-focus-ring);
    background: var(--dash-surface);
    color: var(--dash-text-heading);
}

.dashboard-app .input-group:not(.input-group-sm) > .form-control {
    min-height: var(--input-height);
    height: var(--input-height);
}

/* Global button standards (dashboard) */
.dashboard-app .btn-accent {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--card);
    border-radius: var(--radius-btn);
    min-height: var(--btn-min-height);
    font-weight: 600;
    transition: all 0.2s ease;
}

.dashboard-app .btn-accent:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--card);
}

.dashboard-app .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-btn);
    min-height: var(--btn-min-height);
    font-weight: 600;
    transition: all 0.2s ease;
}

.dashboard-app .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.dashboard-app .btn-danger {
    border-radius: var(--radius-btn);
    min-height: var(--btn-min-height);
    background: var(--danger);
    border-color: var(--danger);
    transition: all 0.2s ease;
}

.dashboard-app .btn-outline-secondary,
.dashboard-app .btn-outline-primary {
    border-radius: var(--radius-btn);
    min-height: var(--btn-min-height);
    transition: all 0.2s ease;
}

.dashboard-app code,
.dashboard-app .font-monospace {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.dashboard-app .dashboard-alert {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

.page-content {
    padding: var(--ds-space-lg);
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--dash-sidebar-bg);
    border-right: 1px solid var(--dash-border);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sidebar-close {
    display: none;
    width: 34px;
    height: 34px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
    border-radius: 8px;
    color: var(--dash-text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.sidebar-close:hover {
    background: var(--dash-border);
    color: var(--dash-text-heading);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--dash-text-heading);
    font-weight: 800;
    font-size: 1.05rem;
}

.sidebar-brand .brand-icon {
    width: 34px;
    height: 34px;
    background: var(--dash-accent);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-brand .accent {
    color: var(--dash-accent);
}

.sidebar-nav {
    flex: 1;
    padding: var(--ds-space-md) var(--ds-space-sm);
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dash-text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    color: var(--dash-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 3px;
    transition: all 0.15s ease;
    min-width: 0;
}

.nav-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.7;
}

.nav-item:hover:not(.disabled) {
    background: var(--dash-sidebar-hover);
    color: var(--dash-text-heading);
}

.nav-item.active {
    background: var(--dash-sidebar-active-bg);
    color: var(--dash-sidebar-active-text);
    font-weight: 600;
}

.nav-item.active i {
    opacity: 1;
    color: var(--dash-sidebar-active-text);
}

.nav-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--dash-border);
    color: var(--dash-text-muted);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    color: inherit;
    border-radius: 10px;
    padding: 0.25rem;
    margin: -0.25rem;
    transition: background 0.15s ease;
}

a.sidebar-user:hover {
    background: var(--dash-sidebar-hover);
    color: inherit;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dash-text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--dash-text-muted);
}

.sidebar-logout {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-text-muted);
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    display: block;
}

/* ===========================
   Top Bar
   =========================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: var(--dash-topbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dash-border);
    gap: 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.topbar-title h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dash-text-heading);
    margin: 0;
    line-height: 1.3;
}

.topbar-title p {
    font-size: 0.8rem;
    color: var(--dash-text-muted);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.topbar-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-text);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.topbar-btn:hover {
    background: var(--dash-surface-2);
    border-color: var(--dash-text-muted);
    color: var(--dash-text-heading);
}

.sidebar-toggle {
    display: none;
}

/* Theme toggle icons */
[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="dark"]  .theme-icon-dark  { display: none; }

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--dash-surface);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem 0.3rem 0.3rem;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.topbar-user:hover {
    background: var(--dash-surface-2);
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.topbar-chevron {
    font-size: 0.65rem;
    color: var(--dash-text-muted);
    margin-right: 0.25rem;
}

/* ===========================
   Notification Dropdown
   =========================== */
.notification-dropdown {
    width: 360px;
    max-width: calc(100vw - 2rem);
    padding: 0 !important;
    border: 1px solid var(--dash-border) !important;
    border-radius: var(--dash-radius-lg) !important;
    box-shadow: var(--dash-shadow-lg) !important;
    background: var(--dash-surface) !important;
    overflow: hidden;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--dash-border);
}

.notification-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.notification-mark-all-form {
    margin: 0;
}

.notification-mark-all-btn {
    border: 0;
    background: transparent;
    color: var(--dash-accent, #059669);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.35rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notification-mark-all-btn:hover {
    color: var(--dash-accent-hover, #047857);
}

.notification-mark-all-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.notification-header h6 {
    margin: 0;
    font-weight: 700;
    color: var(--dash-text-heading);
    font-size: 0.95rem;
}

.notification-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dash-accent);
    background: var(--dash-accent-light);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--dash-border-light);
    transition: background 0.15s;
}

.notification-item:hover {
    background: var(--dash-surface-2);
}

.notification-item.unread {
    background: var(--dash-primary-light);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.notif-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.notif-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.notif-error   { background: rgba(239, 68, 68, 0.15);  color: var(--danger); }
.notif-info    { background: rgba(16, 185, 129, 0.15);  color: var(--primary-dark); }

.notification-content strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dash-text-heading);
    margin-bottom: 0.15rem;
}

.notification-content p {
    font-size: 0.8rem;
    color: var(--dash-text-muted);
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.notification-content small {
    font-size: 0.72rem;
    color: var(--dash-text-muted);
}

.notification-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--dash-text-muted);
}

.notification-empty i {
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
    display: block;
}

.notification-footer {
    padding: 0.75rem;
    text-align: center;
    border-top: 1px solid var(--dash-border);
}

.notification-footer a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dash-primary);
    text-decoration: none;
}

.user-dropdown {
    min-width: 220px;
    border: 1px solid var(--dash-border) !important;
    border-radius: var(--dash-radius) !important;
    box-shadow: var(--dash-shadow-lg) !important;
    background: var(--dash-surface) !important;
    padding: 0.5rem !important;
}

.user-dropdown .dropdown-header {
    padding: 0.5rem 0.75rem;
}

.user-dropdown .dropdown-header strong {
    display: block;
    color: var(--dash-text-heading);
    font-size: 0.9rem;
}

.user-dropdown .dropdown-header small {
    color: var(--dash-text-muted);
    font-size: 0.78rem;
}

.user-dropdown .dropdown-item {
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    color: var(--dash-text);
}

.user-dropdown .dropdown-item i {
    width: 20px;
    opacity: 0.6;
}

.user-dropdown .dropdown-item:hover {
    background: var(--dash-surface-2);
    color: var(--dash-text-heading);
}

/* ===========================
   Wallet Hero Card
   =========================== */
.wallet-hero {
    background-color: #0f172a;
    background-image: linear-gradient(135deg, #0f172a 0%, #134e4a 42%, #059669 100%);
    border-radius: 18px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.wallet-hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.wallet-hero-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.92;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.wallet-hero-amount {
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.wallet-hero-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.btn-wallet-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.15rem;
    min-height: var(--btn-min-height);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-btn);
    color: #047857;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-wallet-action:hover:not(:disabled) {
    background: #f0fdf4;
    border-color: #ffffff;
    color: #065f46;
    transform: translateY(-1px);
}

.btn-wallet-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-wallet-action.outline {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    box-shadow: none;
}

.btn-wallet-action.outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.wallet-hero-decoration {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.06);
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ===========================
   Stats Grid
   =========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ds-space-lg);
    max-width: 100%;
    align-items: stretch;
}

.stat-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 132px;
    height: 100%;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
}

.stat-icon.blue,
.stat-icon.green,
.stat-icon.orange,
.stat-icon.purple {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--card);
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}

.stat-trend.up      { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.stat-trend.warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.stat-trend.neutral { background: var(--dash-surface-2); color: var(--dash-text-muted); }

.stat-value {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: var(--dash-text-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    margin-top: auto;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--dash-text-muted);
    font-weight: 600;
}

/* ===========================
   Content Grid (Chart + Side)
   =========================== */
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: var(--ds-space-lg);
    align-items: start;
    max-width: 100%;
    min-width: 0;
}

.side-panels {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-lg);
    min-width: 0;
}

.panel-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.panel-body {
    padding: var(--ds-space-lg);
    min-width: 0;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--ds-space-lg) var(--ds-space-lg) var(--ds-space-sm);
    gap: var(--ds-space-md);
    min-width: 0;
}

.panel-header > div {
    min-width: 0;
}

.panel-header h5,
.panel-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dash-text-heading);
    margin: 0 0 0.25rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.panel-header p {
    font-size: 0.875rem;
    color: var(--dash-text-muted);
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.chart-legend {
    font-size: 0.78rem;
    color: var(--dash-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dash-accent);
}

.chart-container {
    padding: 1rem 1.25rem 1.25rem;
    height: 280px;
}

.btn-panel-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dash-primary);
    background: var(--dash-primary-light);
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-panel-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 1rem 1.25rem 1.25rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    color: var(--dash-text);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.quick-action-btn i {
    font-size: 1.15rem;
    color: var(--dash-primary);
}

.quick-action-btn:hover:not(:disabled) {
    background: var(--dash-primary-light);
    border-color: transparent;
    color: var(--dash-primary);
}

.quick-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Profile Panel */
.profile-panel {
    padding: 1.25rem;
}

.profile-panel-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dash-border);
}

.profile-panel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.profile-panel-header strong {
    display: block;
    color: var(--dash-text-heading);
    font-size: 0.9rem;
}

.role-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-badge.user  { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.role-badge.agent { background: var(--dash-primary-light); color: var(--primary-dark); }
.role-badge.admin { background: rgba(239, 68, 68, 0.12);   color: var(--danger); }

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.82rem;
    gap: 0.5rem;
}

.profile-row span:first-child {
    color: var(--dash-text-muted);
    flex-shrink: 0;
}

.profile-row span:last-child {
    color: var(--dash-text-heading);
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

/* ===========================
   Data Table
   =========================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    table-layout: auto;
}

.data-table.data-table--transactions {
    table-layout: fixed;
}

.data-table thead th {
    padding: 0.875rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dash-text-muted);
    background: var(--dash-surface-2);
    border-bottom: 1px solid var(--dash-border);
    white-space: nowrap;
    vertical-align: middle;
}

.data-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dash-border-light);
    color: var(--dash-text);
    vertical-align: middle;
    line-height: 1.45;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover td {
    background: var(--dash-surface-2);
}

/* Column sizing — fintech transaction tables */
.data-table--transactions .col-ref,
.data-table--transactions .reference-cell {
    width: 148px;
    max-width: 148px;
    min-width: 120px;
}

.data-table--transactions .col-desc,
.data-table--transactions .txn-desc {
    width: auto;
    min-width: 140px;
    max-width: 0;
}

.data-table--transactions .col-amount {
    width: 118px;
    min-width: 108px;
}

.data-table--transactions .col-balance {
    width: 124px;
    min-width: 114px;
}

.data-table--transactions .col-status {
    width: 118px;
    min-width: 108px;
}

.data-table--transactions .col-date {
    width: 158px;
    min-width: 148px;
}

.data-table--transactions thead th.col-amount,
.data-table--transactions thead th.col-balance,
.data-table--transactions thead th.col-date {
    text-align: right;
}

.data-table--transactions thead th.col-status {
    text-align: center;
}

.data-table--transactions tbody td.amount-cell,
.data-table--transactions tbody td.date-cell {
    text-align: right;
}

.data-table--transactions tbody td.badge-cell {
    text-align: center;
}

.data-table--transactions .badge-cell .status-badge {
    min-width: 88px;
}

.table-responsive.txn-table-wrap {
    min-width: 0;
}

.table-responsive.txn-table-wrap .data-table--transactions {
    min-width: 720px;
}

/* Orders tables */
.data-table--orders {
    table-layout: fixed;
}

.data-table--orders .col-ref {
    width: 150px;
}

.data-table--orders .col-network {
    width: 110px;
}

.phone-number,
.phone-cell {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    min-width: 120px;
    font-weight: 600;
    color: var(--dash-text-heading);
    vertical-align: middle;
}

.data-table--orders .col-phone {
    width: 130px;
    min-width: 120px;
}

.data-table--orders .col-plan {
    width: auto;
    min-width: 140px;
}

.data-table--orders .col-amount {
    width: 110px;
}

.data-table--orders .col-status {
    width: 130px;
}

.data-table--orders .col-date {
    width: 170px;
}

.table-responsive .data-table--orders {
    min-width: 820px;
}

/* Mobile card lists — visible below 768px only */
.orders-mobile-list,
.txn-mobile-list,
.wallet-txn-mobile-list,
.transactions-txn-mobile-list,
.dashboard-orders-mobile-list,
.dashboard-txn-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 1rem 1.25rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .orders-mobile-list,
    .txn-mobile-list,
    .wallet-txn-mobile-list,
    .transactions-txn-mobile-list,
    .dashboard-orders-mobile-list,
    .dashboard-txn-mobile-list {
        display: none !important;
    }
}

.orders-mobile-card {
    border: 1px solid var(--dash-border, var(--border));
    border-radius: 14px;
    padding: 1rem;
    background: var(--dash-surface-2, var(--bg));
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.orders-mobile-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.orders-mobile-card__bundle {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.orders-mobile-card__plan {
    font-size: 0.95rem;
    color: var(--dash-text-heading, var(--text));
    line-height: 1.3;
}

.orders-mobile-card__size {
    font-size: 0.8rem;
    color: var(--dash-text-muted, var(--muted));
    font-weight: 600;
}

.orders-mobile-card__recipient {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.orders-mobile-card__phone {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dash-text-heading, var(--text));
}

.orders-mobile-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.orders-mobile-card__amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dash-text-heading, var(--text));
}

.orders-mobile-card__date {
    font-size: 0.75rem;
    color: var(--dash-text-muted, var(--muted));
    text-align: right;
}

.orders-mobile-card__ref {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    word-break: break-all;
    white-space: normal;
}

@media (max-width: 767.98px) {
    .bulk-toolbar[data-bulk-form="bulkUserOrdersForm"] {
        display: none !important;
    }
}

/* Dashboard — mobile cards (Paystack-style) */
.dash-order-card,
.dash-txn-card {
    background: var(--dash-surface, #fff);
    border: 1px solid var(--dash-border, rgba(0, 0, 0, 0.06));
    border-radius: 16px;
    box-shadow: var(--dash-shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
    padding: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dash-order-card__head,
.dash-order-card__top,
.dash-txn-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.dash-order-card__main {
    flex: 1;
    min-width: 0;
}

.dash-order-card__aside {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    text-align: right;
    max-width: 46%;
}

.dash-order-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dash-text-heading, var(--text));
    line-height: 1.35;
    display: block;
    margin: 0 0 0.4rem;
    word-break: break-word;
}

.dash-order-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--dash-text-heading, var(--text));
}

.dash-order-card__sep {
    color: var(--dash-text-muted, var(--muted));
    font-weight: 700;
}

.dash-order-card__phone {
    font-weight: 600;
}

.dash-order-card__aside .status-badge {
    white-space: nowrap;
}

.dash-order-card__amount {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dash-text-heading, var(--text));
    line-height: 1.2;
}

.dash-order-card__date {
    margin: 0;
    font-size: 0.78rem;
    color: var(--dash-text-muted, var(--muted));
    line-height: 1.35;
}

.dash-order-card__ref,
.dash-txn-card__ref {
    margin: 0;
    font-size: 0.8rem;
    color: var(--dash-text-muted, var(--muted));
    line-height: 1.45;
    word-break: break-word;
}

.dash-txn-card__amount {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dash-text-heading, var(--text));
}

.dash-txn-card__amount.positive {
    color: #059669;
}

.dash-txn-card__date {
    margin: 0;
    font-size: 0.875rem;
    color: var(--dash-text-muted, var(--muted));
    line-height: 1.45;
}

.dashboard-orders-table-wrap,
.dashboard-txn-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .dashboard-orders-table-wrap .dashboard-panel-table,
    .dashboard-txn-table-wrap .dashboard-panel-table {
        min-width: 0;
        width: 100%;
    }
}

/* Wallet / transaction mobile card styles */
.txn-mobile-card {
    border: 1px solid var(--dash-border, var(--border));
    border-radius: 14px;
    padding: 1rem;
    background: var(--dash-surface-2, var(--bg));
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.txn-mobile-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.txn-mobile-card__amount {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dash-text-heading, var(--text));
}

.txn-mobile-card__amount.positive {
    color: #059669;
}

.txn-mobile-card__desc {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--dash-text-heading, var(--text));
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.txn-mobile-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.txn-mobile-card__date {
    font-size: 0.75rem;
    color: var(--dash-text-muted, var(--muted));
}

.txn-mobile-card__ref {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    word-break: break-all;
    white-space: normal;
}

.reference-cell {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.txn-ref {
    font-size: 0.8125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--dash-surface-2);
    color: var(--dash-text-muted);
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--dash-border);
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: normal;
}

.txn-desc {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* Unified badge / pill system — never wrap */
.badge,
.status-badge,
.transaction-badge,
.txn-type-badge {
    white-space: nowrap;
    min-width: 90px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1;
    text-transform: capitalize;
    word-break: keep-all;
    overflow-wrap: normal;
    flex-shrink: 0;
    vertical-align: middle;
}

.badge-cell {
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
}

.badge-cell .badge,
.badge-cell .status-badge,
.badge-cell .transaction-badge,
.badge-cell .txn-type-badge {
    vertical-align: middle;
}

.txn-credit   { background: rgba(16, 185, 129, 0.12); color: #059669; }
.txn-debit    { background: rgba(239, 68, 68, 0.12);  color: #dc2626; }
.txn-purchase { background: rgba(239, 68, 68, 0.12);  color: #dc2626; }
.txn-refund   { background: rgba(245, 158, 11, 0.12);  color: #d97706; }
.txn-default  { background: var(--dash-surface-2); color: var(--dash-text-muted); border: 1px solid var(--dash-border); }

.txn-amount {
    font-weight: 700;
    color: var(--dash-text-heading);
    white-space: nowrap;
    vertical-align: middle;
}

.txn-amount.positive {
    color: var(--success);
}

.status-completed  { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.status-pending    { background: rgba(245, 158, 11, 0.12);  color: var(--warning); }
.status-failed     { background: rgba(239, 68, 68, 0.12);   color: var(--danger); }
.status-processing { background: rgba(245, 158, 11, 0.12);  color: var(--warning); }
.status-refunded   { background: rgba(139, 92, 246, 0.12);  color: #7c3aed; }
.status-default    { background: var(--dash-surface-2); color: var(--dash-text-muted); border: 1px solid var(--dash-border); }

.txn-date {
    font-size: 0.8125rem;
    color: var(--dash-text-muted);
    white-space: nowrap;
    vertical-align: middle;
}

.amount-cell {
    white-space: nowrap;
    vertical-align: middle;
}

.date-cell {
    white-space: nowrap;
    vertical-align: middle;
}

.table-empty {
    text-align: center;
    padding: 3rem 1rem !important;
    color: var(--dash-text-muted);
}

.table-empty i {
    font-size: 2.5rem;
    opacity: 0.25;
    display: block;
    margin-bottom: 0.75rem;
}

.table-empty p {
    margin: 0;
    font-size: 0.875rem;
}

.dashboard-alert {
    border-radius: 10px;
    margin-bottom: 1rem;
    border: none;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .side-panels {
        flex-direction: row;
    }

    .side-panels .panel-card {
        flex: 1;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .side-panels {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .topbar-title p {
        display: none;
    }

    .page-content {
        padding: var(--ds-space-md);
        overflow-x: hidden;
        max-width: 100%;
    }

    .wallet-hero {
        padding: 1.25rem 1rem;
    }

    .wallet-hero-decoration {
        display: none;
    }

    .wallet-hero-actions {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }

    .btn-wallet-action {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--ds-space-md);
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) thead {
        display: none;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table),
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody {
        display: block;
        width: 100%;
    }

    .dashboard-panel-table:not(#storeProductsTable),
    .dashboard-panel-table:not(#storeProductsTable) thead,
    .dashboard-panel-table:not(#storeProductsTable) tbody,
    .dashboard-panel-table:not(#storeProductsTable) tr,
    .dashboard-panel-table:not(#storeProductsTable) th,
    .dashboard-panel-table:not(#storeProductsTable) td {
        display: revert;
    }

    .dashboard-panel-table:not(#storeProductsTable) tbody td::before {
        content: none !important;
        display: none !important;
    }

    .table-responsive .data-table--orders:not(.dashboard-panel-table):not(.store-products-table),
    .table-responsive .data-table--transactions:not(.dashboard-panel-table):not(.store-products-table):not(.store-products-table) {
        min-width: 0 !important;
    }

    .data-table--transactions:not(.dashboard-panel-table):not(.store-products-table) .col-desc,
    .data-table--transactions:not(.dashboard-panel-table):not(.store-products-table) .txn-desc,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.txn-desc,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.reference-cell,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.badge-cell,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.phone-cell,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.amount-cell,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.date-cell {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.phone-cell,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.phone-number {
        min-width: 0;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody tr {
        display: block;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--dash-border);
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.35rem 0;
        border: none;
        gap: 1rem;
        min-width: 0;
        width: 100% !important;
        max-width: none !important;
        overflow: visible;
        text-align: left;
    }

    .data-table--transactions:not(.dashboard-panel-table):not(.store-products-table) tbody td.amount-cell,
    .data-table--transactions:not(.dashboard-panel-table):not(.store-products-table) tbody td.date-cell {
        text-align: left;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.bulk-col-check::before {
        display: none;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.bulk-col-check {
        justify-content: flex-end;
        padding-bottom: 0.5rem;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td .td-value {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
        overflow: visible;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.phone-cell .td-value,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.txn-desc .td-value,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.amount-cell .td-value,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.date-cell .td-value,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td .td-value.txn-amount,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td .td-value.txn-date {
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.badge-cell .td-value {
        display: flex;
        justify-content: flex-end;
        overflow: visible;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.badge-cell,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.reference-cell,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.amount-cell,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.date-cell {
        flex-wrap: nowrap;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.badge-cell .status-badge,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.badge-cell .txn-type-badge,
    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.badge-cell .transaction-badge {
        flex-shrink: 0;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td.reference-cell .txn-ref {
        max-width: 60vw;
    }

    .data-table:not(.dashboard-panel-table):not(.store-products-table) tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.72rem;
        text-transform: uppercase;
        color: var(--dash-text-muted);
        flex-shrink: 0;
    }

    .table-empty {
        display: block !important;
    }

    .table-empty::before {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .topbar {
        padding: 0.75rem 1rem;
    }

    .widgets-row {
        grid-template-columns: 1fr;
    }

    .content-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .network-select-grid:not(.bulk-order-network__grid) {
        grid-template-columns: repeat(3, 1fr);
    }

    .sidebar-close {
        display: flex;
    }
}

/* ============================================================
   Phase 3 Enhancements
   ============================================================ */

/* Entrance animations */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeSlideUp 0.5s ease both;
}

.stat-card {
    animation: fadeSlideUp 0.5s ease both;
}

.stat-card:hover {
    transform: translateY(-3px);
}

/* Verification badge */
.verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.verify-badge.verified {
    background: var(--dash-accent-light);
    color: var(--primary-dark);
}

.verify-badge.unverified {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.verify-badge-sm {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
}

/* Widgets row: network status + wallet activity */
.widgets-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.widgets-row--duo {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.widgets-row--duo .panel-card {
    height: 100%;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.network-status-list {
    padding: 0.5rem 1.25rem 1.25rem;
}

.network-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--dash-border-light);
    gap: 1rem;
}

.network-status-item:last-child {
    border-bottom: none;
}

.ns-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.ns-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.ns-logo.network-mtn        { background: #ffcc00; color: #000; }
.ns-logo.network-telecel    { background: #e60000; }
.ns-logo.network-airteltigo { background: #0066cc; }

.ns-left strong {
    display: block;
    font-size: 0.875rem;
    color: var(--dash-text-heading);
}

.ns-left small {
    font-size: 0.75rem;
    color: var(--dash-text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.ns-right {
    text-align: right;
    flex-shrink: 0;
}

.ns-status {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
    text-transform: capitalize;
}

.ns-operational { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.ns-degraded    { background: rgba(245, 158, 11, 0.12);  color: var(--warning); }
.ns-delayed     { background: rgba(249, 115, 22, 0.12);  color: #f97316; }
.ns-down        { background: rgba(239, 68, 68, 0.12);   color: var(--danger); }

.ns-latency {
    display: block;
    font-size: 0.7rem;
    color: var(--dash-text-muted);
    margin-top: 0.15rem;
}

/* Referral card */
.referral-card {
    background: linear-gradient(160deg, var(--dash-surface) 60%, rgba(16, 185, 129, 0.06));
}

.referral-body {
    padding: 0 1.25rem 1.25rem;
}

.referral-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dash-text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.referral-stats {
    font-size: 0.8rem;
    color: var(--dash-text-muted);
    margin-bottom: 1rem;
}

.referral-stats i {
    color: var(--dash-accent);
    margin-right: 0.25rem;
}

.referral-code-box label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dash-text-muted);
    display: block;
    margin-bottom: 0.4rem;
}

.referral-code-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
}

.referral-code-row code {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dash-primary);
    letter-spacing: 0.05em;
}

.btn-copy {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--dash-primary-light);
    color: var(--dash-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: var(--dash-primary);
    color: #fff;
}

.btn-copy.copied {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* Wallet activity */
.wallet-activity-list {
    padding: 0.25rem 1.25rem 1.25rem;
}

.wa-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--dash-border-light);
    font-size: 0.85rem;
}

.wa-item:last-child { border-bottom: none; }

.wa-label {
    color: var(--dash-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wa-value {
    font-weight: 700;
    color: var(--dash-text-heading);
}

.wa-value.positive { color: var(--success); }

/* Quick buy form */
.content-grid-enhanced {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: var(--ds-space-lg);
    align-items: start;
    max-width: 100%;
    min-width: 0;
}

.quick-buy-form {
    padding: 0 var(--ds-space-lg) var(--ds-space-lg);
}

.quick-buy-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dash-text-heading);
}

.quick-buy-form .form-control,
.quick-buy-form .form-select {
    border-radius: 10px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
    color: var(--dash-text-heading);
    font-size: 0.875rem;
    padding: 0.6rem 0.85rem;
}

.quick-buy-form .form-control:focus,
.quick-buy-form .form-select:focus {
    border-color: var(--dash-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
    background: var(--dash-surface);
}

.quick-buy-form .input-group-text {
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    color: var(--dash-text-muted);
    border-radius: 10px 0 0 10px;
}

.quick-buy-form .input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.quick-buy-form .form-text {
    font-size: 0.72rem;
    color: var(--dash-text-muted);
}

.network-select-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.network-select-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ns-option-inner {
    display: block;
    text-align: center;
    padding: 0.6rem 0.25rem;
    border-radius: 10px;
    border: 2px solid var(--dash-border);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--dash-text);
    background: var(--dash-surface-2);
}

.network-select-option input:checked + .ns-option-inner {
    border-color: var(--dash-primary);
    background: var(--dash-primary-light);
    color: var(--dash-primary);
}

.network-select-option input:checked + .ns-option-inner.network-mtn {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.12);
    color: #b8860b;
}

.network-select-option input:checked + .ns-option-inner.network-telecel {
    border-color: #e60000;
    background: rgba(230, 0, 0, 0.08);
    color: #e60000;
}

.network-select-option input:checked + .ns-option-inner.network-airteltigo {
    border-color: #0066cc;
    background: rgba(0, 102, 204, 0.08);
    color: #0066cc;
}

.quick-buy-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--dash-surface-2);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--dash-text-muted);
    margin-top: 0.5rem;
}

.quick-buy-summary strong {
    color: var(--dash-text-heading);
    font-weight: 700;
}

/* Chart legend group */
.chart-legend-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-dot.green { background: var(--success); }
.legend-dot.blue  { background: var(--primary); }

/* Network tags — single line pills */
.network-tag {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    flex-shrink: 0;
    word-break: keep-all;
}

.network-tag.network-mtn        { background: rgba(255, 204, 0, 0.15); color: #b8860b; }
.network-tag.network-telecel    { background: rgba(230, 0, 0, 0.1);    color: #e60000; }
.network-tag.network-airteltigo { background: rgba(0, 102, 204, 0.1);  color: #0066cc; }

/* Professional empty states */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: var(--dash-surface-2);
    border: 2px dashed var(--dash-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--dash-text-muted);
    opacity: 0.6;
}

.empty-state h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dash-text-heading);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.875rem;
    color: var(--dash-text-muted);
    max-width: 340px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

.empty-state-cta {
    border-radius: 9px;
    font-weight: 600;
}

/* Dark mode form overrides */
[data-theme="dark"] .panel-body .form-control,
[data-theme="dark"] .panel-body .form-select {
    background-color: var(--dash-surface-2);
    border-color: var(--dash-border);
    color: var(--dash-text-heading);
}

[data-theme="dark"] .panel-body .form-control::placeholder {
    color: var(--dash-text-muted);
    opacity: 0.85;
}

[data-theme="dark"] .panel-body .form-text,
[data-theme="dark"] .panel-body .form-text code {
    color: var(--dash-text-muted);
}

/* Bulk orders — same layout on desktop and mobile */
.bulk-orders-page {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.bulk-order-card {
    max-width: none;
    width: 100%;
}

.bulk-order-card__body {
    padding: 1.25rem 1.35rem 1.5rem;
}

.bulk-order-network__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dash-text-heading, var(--text));
    margin-bottom: 0.55rem;
}

.bulk-order-network__grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Never collapse bulk network to 3-col (global 480px rule targets buy page) */
.bulk-orders-page .bulk-order-network__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bulk-order-paste__label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dash-text-heading, var(--text));
    margin-bottom: 0.65rem;
}

/* Paste box + aligned in-field examples (all devices) */
.bulk-order-paste-wrap {
    position: relative;
    margin-bottom: 1rem;
    border: 2px solid var(--dash-border, var(--border));
    border-radius: 14px;
    background: var(--dash-surface, var(--card));
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.bulk-order-paste-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.bulk-order-sample {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.1rem;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.15s ease;
}

.bulk-order-paste-wrap.has-content .bulk-order-sample,
.bulk-order-paste-wrap.is-focused .bulk-order-sample {
    opacity: 0;
}

.bulk-order-sample__row {
    display: grid;
    grid-template-columns: 10.5ch 2.5ch;
    gap: 0.35rem;
    align-items: baseline;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.65;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
}

.bulk-order-sample__phone {
    letter-spacing: 0;
}

.bulk-order-sample__size {
    text-align: left;
    color: #94a3b8;
}

[data-theme="dark"] .bulk-order-sample__row,
[data-theme="dark"] .bulk-order-sample__size {
    color: #64748b;
}

.bulk-order-paste {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 220px;
    height: auto;
    margin: 0;
    padding: 1rem 1.1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--dash-text-heading, var(--text));
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.65;
    font-variant-numeric: tabular-nums;
    resize: vertical;
    -webkit-text-fill-color: currentColor;
    -webkit-appearance: none;
    appearance: none;
    tab-size: 4;
    -moz-tab-size: 4;
}

.bulk-order-paste:focus {
    outline: none;
}

.bulk-order-paste-wrap.is-focused .bulk-order-paste,
.bulk-order-paste-wrap.has-content .bulk-order-paste {
    background: var(--dash-surface, var(--card));
}

[data-theme="dark"] .bulk-order-paste-wrap {
    background: var(--dash-surface-2);
    border-color: var(--dash-border);
}

[data-theme="dark"] .bulk-order-paste-wrap.is-focused .bulk-order-paste,
[data-theme="dark"] .bulk-order-paste-wrap.has-content .bulk-order-paste {
    background: var(--dash-surface-2);
}

[data-theme="dark"] .bulk-order-paste {
    color: var(--dash-text-heading);
}

.bulk-order-submit {
    min-height: 50px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 0.85rem;
}

.bulk-order-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.35rem 0 0.15rem;
    font-size: 0.9rem;
    color: var(--dash-text-muted, var(--muted));
}

.bulk-order-wallet__row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.bulk-order-wallet__row i {
    color: var(--primary);
}

.bulk-order-wallet__row strong {
    color: var(--dash-text-heading, var(--text));
    font-weight: 800;
}

.bulk-order-wallet__topup {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.bulk-order-wallet__topup:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.bulk-order-hint {
    margin: 0.65rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--dash-text-muted, var(--muted));
    text-align: center;
}

/* Match desktop page padding on phone for bulk orders */
@media (max-width: 768px) {
    .page-content:has(.bulk-orders-page) {
        padding: var(--ds-space-lg);
    }
}

.bulk-orders-page .bulk-preview-panel {
    max-width: none;
    width: 100%;
}

[data-theme="dark"] .quick-buy-form .form-control,
[data-theme="dark"] .quick-buy-form .form-select,
[data-theme="dark"] .quick-buy-form .input-group-text {
    background: var(--dash-surface-2);
    color: var(--dash-text-heading);
    border-color: var(--dash-border);
}

@media (max-width: 1200px) {
    .widgets-row:not(.widgets-row--duo) {
        grid-template-columns: 1fr 1fr;
    }

    .widgets-row:not(.widgets-row--duo) .panel-card:first-child {
        grid-column: 1 / -1;
    }

    .widgets-row--duo {
        grid-template-columns: 1fr 1fr;
    }

    .content-grid-enhanced {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .widgets-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Wallet System Styles
   ============================================================ */

.nav-badge.pending-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    min-width: 20px;
    text-align: center;
}

.wallet-balance-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--dash-shadow);
}

.wbs-label {
    display: block;
    font-size: 0.78rem;
    color: var(--dash-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.wbs-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dash-text-heading);
}

.wallet-balance-strip .btn-accent {
    flex-shrink: 0;
    min-width: 7.5rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

@media (max-width: 480px) {
    .wallet-balance-strip {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.15rem;
    }

    .wallet-balance-strip .btn-accent {
        width: 100%;
        min-height: 44px;
    }
}

.wallet-page-grid {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: var(--ds-space-lg);
    align-items: start;
    max-width: 100%;
}

.wallet-balance-card {
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    border-radius: var(--dash-radius-lg);
    padding: 1.75rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.wbc-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.35rem;
}

.wbc-amount {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.wbc-note {
    font-size: 0.78rem;
    opacity: 0.75;
    margin: 0;
    line-height: 1.5;
}

/* Paystack wallet top-up page */
.wallet-topup-page {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: var(--ds-space-lg);
    align-items: start;
    max-width: 100%;
}

.wallet-topup-card {
    padding: 0;
    overflow: hidden;
}

.wallet-topup-balance {
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    color: #fff;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wallet-topup-balance__label {
    font-size: 0.85rem;
    opacity: 0.85;
}

.wallet-topup-balance__amount {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.wallet-topup-balance__hint {
    font-size: 0.78rem;
    opacity: 0.8;
}

.wallet-topup-form {
    padding: 1.5rem;
}

.wallet-topup-form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dash-text-heading);
    margin-bottom: 0.5rem;
}

.wallet-topup-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.wallet-topup-quick__btn {
    border: 2px solid var(--dash-border);
    background: var(--dash-surface-2);
    color: var(--dash-text-heading);
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.wallet-topup-quick__btn:hover,
.wallet-topup-quick__btn.is-active {
    border-color: var(--dash-primary);
    background: var(--dash-primary-light);
    color: var(--dash-primary);
}

.wallet-topup-custom {
    margin-bottom: 1.25rem;
}

.wallet-topup-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--dash-surface-2);
}

.wallet-topup-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dash-text-muted);
    border-right: 1px solid var(--dash-border);
    background: var(--dash-surface);
}

.wallet-topup-input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--dash-text-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 0.85rem;
    min-width: 0;
}

.wallet-topup-input:focus {
    outline: none;
}

.wallet-topup-limits {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--dash-text-muted);
}

.wallet-topup-submit {
    font-weight: 700;
    padding: 0.85rem 1rem;
}

.wallet-topup-submit.is-loading {
    opacity: 0.9;
    cursor: wait;
}

.wallet-topup-submit__spinner {
    display: none;
}

/* Claim payment */
.wallet-topup-claim .panel-header {
    padding: 1.25rem 1.25rem 0;
}

.wallet-topup-claim__form {
    padding: 0.25rem 0;
}

.wallet-topup-claim__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.wallet-topup-claim__input {
    border-radius: 12px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
    color: var(--dash-text-heading);
    font-weight: 600;
}

.wallet-topup-claim__btn {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.wallet-topup-claim__note {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--dash-text-muted);
}

/* Recent funding table refinements */
.wallet-topup-history .data-table th,
.wallet-topup-history .data-table td {
    vertical-align: middle;
}

.wallet-topup-history .txn-ref {
    max-width: 260px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-topup-history .panel-header {
    padding: 1.25rem 1.25rem 0;
}

.topup-form {
    padding: 0 var(--ds-space-lg) var(--ds-space-lg);
}

.topup-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dash-text-heading);
}

.topup-form .form-control,
.topup-form .form-select {
    border-radius: 10px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
    color: var(--dash-text-heading);
    font-size: 0.875rem;
}

.topup-form .input-group-text {
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    color: var(--dash-text-muted);
    font-weight: 600;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--dash-border);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    background: var(--dash-surface-2);
    color: var(--dash-text);
}

.payment-option span i {
    font-size: 1.1rem;
    color: var(--dash-primary);
}

.payment-option input:checked + span {
    border-color: var(--dash-primary);
    background: var(--dash-primary-light);
    color: var(--dash-primary);
}

.topup-instructions {
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.82rem;
    color: var(--dash-text-muted);
}

.topup-instructions h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dash-text-heading);
    margin-bottom: 0.5rem;
}

.topup-instructions ol {
    margin: 0;
    padding-left: 1.25rem;
}

.topup-instructions li {
    margin-bottom: 0.25rem;
}

/* Admin top-up request cards */
.admin-request-list {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-request-card {
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    padding: 1.25rem;
}

.arc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.arc-header strong {
    display: block;
    color: var(--dash-text-heading);
    font-size: 0.95rem;
}

.arc-header small {
    color: var(--dash-text-muted);
    font-size: 0.78rem;
}

.arc-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--success);
}

.arc-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--dash-text-muted);
    margin-bottom: 0.5rem;
}

.arc-details i {
    margin-right: 0.3rem;
    opacity: 0.6;
}

.arc-note {
    font-size: 0.82rem;
    color: var(--dash-text);
    background: var(--dash-surface);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

.arc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.arc-actions .form-control {
    flex: 1;
    min-width: 180px;
    border-radius: 8px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    color: var(--dash-text-heading);
}

.product-preview-list {
    padding: 0 1.25rem 1.25rem;
}

.product-preview-group {
    margin-bottom: 1.25rem;
}

.product-preview-group:last-child {
    margin-bottom: 0;
}

.product-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--dash-border-light);
    font-size: 0.85rem;
}

.product-preview-item:last-child {
    border-bottom: none;
}

.product-preview-item strong {
    display: block;
    color: var(--dash-text-heading);
}

.product-preview-item small {
    color: var(--dash-text-muted);
}

@media (max-width: 768px) {
    .wallet-page-grid,
    .wallet-topup-page {
        grid-template-columns: 1fr;
    }

    .wallet-topup-quick {
        grid-template-columns: repeat(2, 1fr);
    }

    .wallet-topup-claim__row {
        grid-template-columns: 1fr;
    }

    .wallet-topup-history .txn-ref {
        max-width: 180px;
    }

    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .arc-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   Phase 5 — Admin Order Management
   ============================================================ */

.status-refunded {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.admin-quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem !important;
    color: var(--dash-text-heading);
    transition: all 0.15s;
}

.admin-quick-link:hover {
    box-shadow: var(--dash-shadow-md);
    transform: translateY(-2px);
    color: var(--dash-text-heading);
}

.aql-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.aql-icon.blue   { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.aql-icon.green  { background: linear-gradient(135deg, #059669, var(--success)); }
.aql-icon.orange { background: linear-gradient(135deg, #d97706, var(--warning)); }

.admin-quick-link strong {
    display: block;
    font-size: 0.95rem;
}

.admin-quick-link p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--dash-text-muted);
}

.aql-arrow {
    margin-left: auto;
    color: var(--dash-text-muted);
    font-size: 0.85rem;
}

.admin-filter-form {
    padding: 0 var(--ds-space-lg) var(--ds-space-lg);
}

.admin-filter-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dash-text-heading);
}

.admin-filter-form .form-control,
.admin-filter-form .form-select {
    border-radius: 10px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
    color: var(--dash-text-heading);
    font-size: 0.875rem;
}

.admin-status-form .form-select-sm {
    min-width: 120px;
    border-radius: 8px;
    font-size: 0.78rem;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
    color: var(--dash-text-heading);
}

/* ===========================
   Account Settings Page
   =========================== */
.settings-layout {
    padding-bottom: var(--ds-space-lg);
}

.settings-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ds-space-lg);
    align-items: start;
}

.settings-fields {
    display: grid;
    gap: var(--ds-space-lg);
}

.settings-fields--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-field {
    min-width: 0;
}

.settings-field--full {
    grid-column: 1 / -1;
}

.settings-form .form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--dash-text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.dashboard-app .ds-input,
.settings-form .ds-input {
    height: var(--ds-input-height);
    min-height: var(--ds-input-height);
    border-radius: var(--ds-input-radius);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    color: var(--dash-text-heading);
    padding: 0 var(--ds-input-padding-x);
    font-size: 0.9375rem;
    line-height: 1.4;
    width: 100%;
    max-width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-app .ds-input:focus,
.settings-form .ds-input:focus {
    border-color: var(--dash-primary);
    box-shadow: var(--ds-focus-ring);
    outline: none;
}

.settings-form .ds-input[readonly] {
    background: var(--dash-surface-2);
    color: var(--dash-text-muted);
}

.settings-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.settings-input-group .ds-input,
.settings-input-group .form-control {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.settings-input-group__btn {
    height: var(--ds-input-height);
    min-width: var(--ds-input-height);
    padding: 0 var(--ds-space-md);
    border: 1px solid var(--dash-border);
    border-left: none;
    border-radius: 0 var(--ds-input-radius) var(--ds-input-radius) 0;
    background: var(--dash-surface-2);
    color: var(--dash-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.settings-input-group__btn:hover:not(:disabled) {
    background: var(--dash-border-light);
    color: var(--dash-text-heading);
}

.settings-input-group--wide {
    max-width: 100%;
}

.settings-divider {
    height: 1px;
    background: var(--dash-border-light);
    margin: var(--ds-space-lg) 0;
}

.settings-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ds-space-md);
}

.settings-meta-item {
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    border-radius: var(--ds-input-radius);
    padding: var(--ds-space-md);
    min-width: 0;
}

.settings-meta-item__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dash-text-muted);
    margin-bottom: 0.35rem;
}

.settings-meta-item__value {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dash-text-heading);
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.settings-toggle-list {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-md);
}

.settings-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-lg);
    padding: var(--ds-space-md) var(--ds-space-lg);
    border-radius: var(--ds-input-radius);
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    min-width: 0;
}

.settings-toggle-item__text {
    min-width: 0;
    flex: 1;
}

.settings-toggle-item__text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--dash-text-heading);
    margin-bottom: 0.2rem;
}

.settings-toggle-item__text p {
    font-size: 0.8125rem;
    color: var(--dash-text-muted);
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.settings-toggle-item .form-check-input {
    width: 2.75rem;
    height: 1.375rem;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.settings-api-actions {
    margin-top: var(--ds-space-md);
}

.settings-save-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-lg);
    flex-wrap: wrap;
    padding-top: var(--ds-space-lg);
    padding-bottom: var(--ds-space-lg);
}

.settings-save-card__hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--dash-text-muted);
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

.settings-save-card .btn-accent {
    min-height: 48px;
    padding: 0 1.75rem;
    border-radius: var(--ds-input-radius);
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .settings-split-grid,
    .settings-fields--2col {
        grid-template-columns: 1fr;
    }

    .settings-meta-grid {
        grid-template-columns: 1fr;
    }

    .settings-save-card__body {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-save-card .btn-accent {
        width: 100%;
    }
}

/* ── MTN Live Delivery monitoring widget (compact) ── */
.mtn-live-widget {
    padding: 0.75rem 1rem;
}

.mtn-live-widget__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.mtn-live-widget__main {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.mtn-live-widget__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.mtn-live-widget__info {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.mtn-live-widget__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--dash-text-heading);
    line-height: 1.25;
    margin: 0;
}

.mtn-live-widget__line {
    font-size: 0.75rem;
    color: var(--dash-text-muted);
    line-height: 1.35;
    margin: 0;
}

.mtn-live-widget__avg strong {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--dash-text-heading);
}

.mtn-live-widget__checked {
    font-size: 0.6875rem;
    color: var(--dash-text-muted);
    opacity: 0.9;
}

.mtn-live-widget__badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    line-height: 1.35;
    vertical-align: middle;
    margin-left: 0.15rem;
}

.mtn-live-widget__live {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    padding-top: 0.1rem;
}

.mtn-live-widget__live .live-dot {
    width: 6px;
    height: 6px;
}

/* ── Admin network status monitor (compact multi-network) ── */
.net-monitor {
    max-height: 220px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.net-monitor__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid var(--dash-border-light);
    flex-shrink: 0;
    min-height: 0;
}

.net-monitor__header-main {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-size: 0.6875rem;
    color: var(--dash-text-muted);
    line-height: 1.3;
}

.net-monitor__header-icon {
    color: var(--dash-accent, #6366f1);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.net-monitor__header-text strong {
    color: var(--dash-text-heading);
    font-weight: 600;
    white-space: nowrap;
}

.net-monitor__header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.net-monitor__live {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.net-monitor__live .live-dot {
    width: 5px;
    height: 5px;
}

.net-monitor__health-btn {
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
    line-height: 1.3;
    white-space: nowrap;
}

.net-monitor__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.net-monitor__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    line-height: 1.3;
    border-bottom: 1px solid var(--dash-border-light);
}

.net-monitor__row:last-child {
    border-bottom: none;
}

.net-monitor__net {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    flex-shrink: 0;
    min-width: 4.5rem;
    text-align: center;
}

.net-monitor__status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    color: var(--dash-text-heading);
    flex-shrink: 0;
}

.net-monitor__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.net-monitor__dot--green {
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.net-monitor__dot--orange {
    background: var(--warning);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.net-monitor__dot--red {
    background: var(--danger);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.net-monitor__avg {
    color: var(--dash-text-muted);
    font-size: 0.6875rem;
    flex-shrink: 0;
}

.net-monitor__avg strong {
    color: var(--dash-text-heading);
    font-weight: 700;
    font-size: 0.75rem;
}

.net-monitor__last {
    color: var(--dash-text-muted);
    font-size: 0.6875rem;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.net-monitor__muted {
    color: var(--dash-text-muted);
    opacity: 0.7;
}

@media (max-width: 575.98px) {
    .net-monitor {
        max-height: none;
    }

    .net-monitor__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .net-monitor__header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .net-monitor__last {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .settings-toggle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ds-space-md);
    }

    .settings-toggle-item .form-check-input {
        align-self: flex-end;
    }
}

/* Withdraw profit — MoMo verification */
.momo-verify-status {
    font-size: 0.8125rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.momo-verify-status.is-success {
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.momo-verify-status.is-error {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

#momo_name[readonly] {
    background: var(--dash-surface-2, var(--bg));
    font-weight: 600;
    color: var(--dash-text-heading, var(--text));
}

/* ===========================
   Bulk Order Preview (compact)
   =========================== */
.bulk-preview-panel {
    overflow: hidden;
}

.bulk-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 0.85rem;
    background: var(--dash-surface-2);
    border-bottom: 1px solid var(--dash-border);
}

.bulk-preview-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 0.75rem;
    color: var(--dash-text-muted);
    line-height: 1.3;
}

.bulk-preview-stat strong {
    font-weight: 700;
    color: var(--dash-text-heading);
}

.bulk-preview-cost {
    color: #dc2626 !important;
}

.bulk-preview-balance {
    color: #059669 !important;
}

.bulk-preview-balance.is-low {
    color: #dc2626 !important;
}

.bulk-preview-sep {
    color: var(--dash-border);
    font-weight: 300;
    user-select: none;
}

.bulk-preview-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: auto;
}

.bulk-preview-form {
    margin: 0;
}

.bulk-preview-actions .btn {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
}

.bulk-preview-notice {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    font-size: 0.75rem;
    line-height: 1.35;
}

.bulk-preview-notice__list {
    padding-left: 1rem;
    margin: 0;
}

.bulk-preview-table-wrap {
    margin: 0;
}

.data-table--bulk-preview {
    font-size: 0.75rem;
    table-layout: fixed;
}

.data-table--bulk-preview thead th {
    padding: 0.35rem 0.55rem;
    font-size: 0.625rem;
    letter-spacing: 0.05em;
    background: var(--dash-surface);
}

.data-table--bulk-preview tbody td {
    padding: 0.3rem 0.55rem;
    line-height: 1.25;
    border-bottom: 1px solid var(--dash-border-light);
}

.data-table--bulk-preview tbody tr:nth-child(even) td {
    background: rgba(248, 250, 252, 0.85);
}

.data-table--bulk-preview tbody tr:hover td {
    background: rgba(241, 245, 249, 0.95);
}

.data-table--bulk-preview tbody tr.is-invalid td {
    background: rgba(254, 242, 242, 0.65);
}

.data-table--bulk-preview tbody tr.is-invalid:nth-child(even) td {
    background: rgba(254, 226, 226, 0.55);
}

.data-table--bulk-preview .phone-cell {
    min-width: 0;
    font-weight: 600;
    font-size: 0.75rem;
}

.data-table--bulk-preview .bulk-preview-line {
    width: 2.5rem;
    color: var(--dash-text-muted);
    font-weight: 600;
}

.data-table--bulk-preview .bulk-preview-plan {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table--bulk-preview .txn-amount {
    font-size: 0.75rem;
    font-weight: 700;
}

.data-table--bulk-preview .badge-cell {
    width: 4.5rem;
}

.status-badge--sm {
    min-width: 0;
    padding: 0.15rem 0.45rem;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 4px;
}

.data-table--bulk-preview .status-badge--sm {
    min-width: 2.75rem;
}

@media (max-width: 767.98px) {
    .bulk-preview-toolbar {
        flex-direction: row;
        align-items: center;
    }

    .bulk-preview-actions {
        margin-left: auto;
        width: auto;
    }

    .bulk-preview-actions .btn {
        flex: 0 1 auto;
    }

    .bulk-preview-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table--bulk-preview {
        min-width: 520px;
    }

    /* Keep compact table rows — override global mobile card layout */
    .data-table--bulk-preview thead {
        display: table-header-group;
    }

    .data-table--bulk-preview tbody tr {
        display: table-row;
        padding: 0;
        border-bottom: 0;
    }

    .data-table--bulk-preview tbody td {
        display: table-cell;
        justify-content: initial;
        align-items: initial;
        padding: 0.3rem 0.55rem;
        gap: 0;
    }

    .data-table--bulk-preview tbody td::before {
        content: none;
        display: none;
    }
}

/* ===========================
   Transactions filter & export
   =========================== */
.panel-header--compact {
    padding-bottom: 0.75rem;
    margin-bottom: 0;
    border-bottom: none;
}

.txn-filter-section {
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid var(--dash-border-light);
}

.txn-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.txn-filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.625rem 0.75rem;
}

.txn-filter-field {
    flex: 0 1 auto;
    min-width: 0;
}

.txn-filter-field--search {
    flex: 1 1 180px;
    max-width: 280px;
}

.txn-filter-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dash-text-muted);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.txn-filter-select {
    min-width: 132px;
    max-width: 168px;
    font-size: 0.8125rem;
    border-radius: 10px;
    border-color: var(--dash-border);
    background: var(--dash-surface);
    color: var(--dash-text);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.txn-search-wrap {
    position: relative;
}

.txn-search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--dash-text-muted);
    pointer-events: none;
}

.txn-search-input {
    padding-left: 2rem;
    font-size: 0.8125rem;
    border-radius: 10px;
    border-color: var(--dash-border);
    background: var(--dash-surface);
}

.txn-custom-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border-light);
    border-radius: 12px;
}

.txn-filter-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--dash-border-light);
}

.txn-results-count {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dash-text-heading);
}

.txn-export-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.txn-export-btn {
    white-space: nowrap;
}

.txn-filter-empty {
    text-align: center;
    padding: 2.5rem 1.25rem 2rem;
    color: var(--dash-text-muted);
}

.txn-filter-empty i {
    font-size: 1.75rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.5rem;
}

.txn-filter-empty p {
    margin: 0;
    font-size: 0.875rem;
}

@media (max-width: 767.98px) {
    .txn-filter-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .txn-filter-field--search {
        flex: 1 1 100%;
        max-width: none;
    }

    .txn-filter-select {
        width: 100%;
        max-width: none;
    }

    .txn-filter-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .txn-export-actions {
        justify-content: stretch;
    }

    .txn-export-actions .txn-export-btn {
        flex: 1 1 auto;
    }
}

/* Transactions pagination */
.txn-pagination,
.list-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--dash-border-light, var(--border));
}

.txn-pagination__info,
.list-pagination__info {
    font-size: 0.8125rem;
    color: var(--dash-text-muted, var(--muted));
    font-weight: 500;
}

.txn-pagination__controls,
.list-pagination__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.txn-pagination__ellipsis,
.list-pagination__ellipsis {
    padding: 0 0.25rem;
    color: var(--dash-text-muted, var(--muted));
    font-size: 0.875rem;
}

.txn-page-btn {
    min-width: 2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (max-width: 575.98px) {
    .txn-pagination,
    .list-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .txn-pagination__controls,
    .list-pagination__controls {
        justify-content: center;
    }
}

/* My Store — product table mobile cards (always in dashboard.css for reliable load) */
@media (max-width: 767.98px) {
    #storeProductsManager .store-products-table-wrap {
        overflow: visible;
        margin: 0;
    }

    #storeProductsManager #storeProductsTable.store-products-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border-collapse: separate !important;
    }

    #storeProductsManager #storeProductsTable.store-products-table thead {
        display: none !important;
    }

    #storeProductsManager #storeProductsTable.store-products-table tbody {
        display: block !important;
        width: 100% !important;
    }

    #storeProductsManager #storeProductsTable.store-products-table .store-product-row {
        display: block !important;
        margin-bottom: 0.75rem;
        padding: 1rem;
        border: 1px solid var(--dash-border, var(--border));
        border-radius: 14px;
        background: var(--dash-surface-2, var(--bg));
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    #storeProductsManager #storeProductsTable.store-products-table .store-product-row td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.45rem 0;
        border: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        text-align: left;
    }

    #storeProductsManager #storeProductsTable.store-products-table .store-product-row td:first-child {
        justify-content: flex-start;
        padding-bottom: 0.65rem;
        margin-bottom: 0.25rem;
        border-bottom: 1px solid var(--dash-border-light, var(--border)) !important;
    }

    #storeProductsManager #storeProductsTable.store-products-table .store-product-row td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--dash-text-muted, var(--muted));
        flex-shrink: 0;
    }

    #storeProductsManager #storeProductsTable.store-products-table .store-product-row td:first-child::before {
        content: 'Select';
        margin-right: 0.35rem;
    }

    #storeProductsManager #storeProductsTable.store-products-table .store-product-row td .store-product-cell-value {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
        word-break: break-word;
    }

    #storeProductsManager #storeProductsTable.store-products-table .store-product-row td .form-check,
    #storeProductsManager #storeProductsTable.store-products-table .store-product-row td .store-price-input {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: auto;
    }

    #storeProductsManager #storeProductsTable.store-products-table .store-price-input {
        width: 100% !important;
        max-width: 10rem;
        min-height: 2.35rem;
        font-size: 1rem;
    }

    #storeProductsManager #storeProductsTable.store-products-table .store-profit-cell {
        font-weight: 700;
        color: var(--primary-dark);
    }
}

/* ===========================
   Payment Status Page
   =========================== */
.payment-status-card { overflow: hidden; }

.payment-status-hero {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--card);
}

.payment-status-hero--success {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.payment-status-hero--error {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
}

.payment-status-hero--neutral {
    background: linear-gradient(135deg, #475569, var(--text));
}

.payment-status-hero__icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.95; }
.payment-status-hero__title { font-size: 1.35rem; font-weight: 800; margin: 0 0 0.5rem; color: var(--card); }
.payment-status-hero__message { margin: 0 0 0.5rem; color: rgba(255, 255, 255, 0.95); }
.payment-status-hero__ref { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.9); }

.payment-status-hero__ref code {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    color: inherit;
}

.payment-status-balance {
    text-align: center;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-card);
    background: var(--dash-surface-2, var(--bg));
    border: 1px solid var(--dash-border, var(--border));
}

.payment-status-balance__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dash-text-muted, var(--muted));
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.payment-status-balance__amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dash-text-heading, var(--text));
    margin-top: 0.25rem;
}

.payment-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

/* ===== auth-premium.css ===== */
/* DealersDataZone — Premium Auth UI */

:root {
    --auth-font: 'Inter', system-ui, -apple-system, sans-serif;
    --auth-radius: 16px;
    --auth-radius-sm: 10px;
    --auth-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --auth-primary: var(--primary);
    --auth-primary-dark: var(--primary-dark);
    --auth-accent: var(--primary-light);
    --auth-success: var(--success);
    --auth-danger: var(--danger);
    --auth-warning: var(--warning);
    --auth-bg-start: var(--dark);
    --auth-bg-mid: #1e1b4b;
    --auth-bg-end: #312e81;
    --auth-text: var(--text);
    --auth-text-muted: var(--muted);
    --auth-border: rgba(15, 23, 42, 0.08);
    --auth-glass: rgba(255, 255, 255, 0.72);
    --auth-glass-border: rgba(255, 255, 255, 0.45);
    --auth-card-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
    --auth-input-bg: rgba(255, 255, 255, 0.9);
    --auth-panel-bg: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] {
    --auth-text: #f1f5f9;
    --auth-text-muted: #94a3b8;
    --auth-border: rgba(255, 255, 255, 0.08);
    --auth-glass: rgba(15, 23, 42, 0.75);
    --auth-glass-border: rgba(255, 255, 255, 0.1);
    --auth-card-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    --auth-input-bg: rgba(30, 41, 59, 0.8);
    --auth-panel-bg: rgba(15, 23, 42, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body.auth-premium {
    margin: 0;
    min-height: 100vh;
    font-family: var(--auth-font);
    color: var(--auth-text);
    background: linear-gradient(135deg, var(--auth-bg-start) 0%, var(--auth-bg-mid) 45%, var(--auth-bg-end) 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background effects */
.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: authOrbFloat 18s ease-in-out infinite;
}

.auth-bg__orb--1 {
    width: 480px;
    height: 480px;
    background: #6366f1;
    top: -120px;
    left: -80px;
}

.auth-bg__orb--2 {
    width: 360px;
    height: 360px;
    background: #0ea5e9;
    bottom: -60px;
    right: 10%;
    animation-delay: -6s;
}

.auth-bg__orb--3 {
    width: 280px;
    height: 280px;
    background: #8b5cf6;
    top: 40%;
    right: -60px;
    animation-delay: -12s;
}

.auth-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

@keyframes authOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Theme toggle */
.auth-theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 100;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--auth-transition);
}

.auth-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: none; }

/* Shell — split layout */
.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    animation: authFadeIn 0.6s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Showcase panel */
.auth-showcase {
    display: flex;
    align-items: center;
    padding: 3rem;
    color: #fff;
    position: relative;
}

.auth-showcase__inner {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: 2.5rem;
    transition: var(--auth-transition);
}

.auth-brand:hover { opacity: 0.9; color: #fff; }

.auth-brand__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.auth-brand__text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-brand__text span { color: #a5b4fc; }

.auth-showcase__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.auth-showcase__title span {
    background: linear-gradient(90deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-showcase__subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 2.5rem;
}

.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.auth-stat {
    padding: 1rem;
    border-radius: var(--auth-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    transition: var(--auth-transition);
}

.auth-stat:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.auth-stat__value {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-stat__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* Testimonials */
.auth-testimonials {
    position: relative;
    min-height: 140px;
}

.auth-testimonial {
    display: none;
    margin: 0;
    padding: 1.25rem;
    border-radius: var(--auth-radius);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: authSlideIn 0.5s ease;
}

.auth-testimonial.is-active { display: block; }

@keyframes authSlideIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.auth-testimonial__quote {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1rem;
    font-style: normal;
}

.auth-testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-testimonial__author strong {
    display: block;
    font-size: 0.875rem;
}

.auth-testimonial__author small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
}

.auth-testimonial-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.auth-testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: var(--auth-transition);
}

.auth-testimonial-dot.is-active,
.auth-testimonial-dot:hover {
    background: #fff;
    transform: scale(1.2);
}

/* Floating icons */
.auth-floating-icons { position: absolute; inset: 0; pointer-events: none; }

.auth-float {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    animation: authFloat 6s ease-in-out infinite;
}

.auth-float--1 { top: 10%; right: -20px; animation-delay: 0s; }
.auth-float--2 { top: 55%; left: -30px; animation-delay: -2s; }
.auth-float--3 { bottom: 20%; right: 5%; animation-delay: -4s; }
.auth-float--4 { top: 30%; left: 10%; animation-delay: -1s; }

@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Form panel */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--auth-panel-bg);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--auth-border);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2.25rem;
    border-radius: calc(var(--auth-radius) + 4px);
    background: var(--auth-glass);
    border: 1px solid var(--auth-glass-border);
    box-shadow: var(--auth-card-shadow);
    backdrop-filter: blur(20px);
    transition: var(--auth-transition);
}

.auth-card:hover {
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.16);
}

[data-theme="dark"] .auth-card:hover {
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

.auth-card__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card__logo-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--auth-text);
    text-decoration: none;
}

.auth-card__logo-mobile span { color: var(--auth-primary); }

.auth-card__title {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
}

.auth-card__subtitle {
    color: var(--auth-text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

/* Trust badges */
.auth-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--auth-success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .auth-trust-badge {
    background: rgba(16, 185, 129, 0.15);
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--auth-radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    animation: authSlideIn 0.35s ease;
}

.auth-alert--success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

[data-theme="dark"] .auth-alert--success { color: #34d399; }

.auth-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

[data-theme="dark"] .auth-alert--error { color: #f87171; }

.auth-alert__list {
    margin: 0;
    padding-left: 1rem;
}

/* Form fields */
.auth-field {
    margin-bottom: 1.15rem;
}

.auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--auth-text);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap > i.auth-input-icon {
    position: absolute;
    left: 0.95rem;
    color: var(--auth-text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 0.95rem 0.75rem 2.65rem;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    background: var(--auth-input-bg);
    color: var(--auth-text);
    transition: var(--auth-transition);
}

.auth-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-input.is-invalid {
    border-color: var(--auth-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.auth-input.is-valid {
    border-color: var(--auth-success);
}

.auth-input--password {
    padding-right: 2.75rem;
}

.auth-input-toggle {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 6px;
    transition: var(--auth-transition);
}

.auth-input-toggle:hover {
    color: var(--auth-primary);
    background: rgba(99, 102, 241, 0.08);
}

.auth-field-hint {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    min-height: 1.1rem;
}

.auth-field-hint--warning { color: var(--auth-warning); }
.auth-field-hint--error { color: var(--auth-danger); }
.auth-field-hint--success { color: var(--auth-success); }

/* Password strength */
.auth-strength {
    height: 4px;
    border-radius: 2px;
    background: var(--auth-border);
    margin-top: 0.5rem;
    overflow: hidden;
}

.auth-strength__bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.auth-strength__bar--weak { width: 25%; background: var(--auth-danger); }
.auth-strength__bar--fair { width: 50%; background: var(--auth-warning); }
.auth-strength__bar--good { width: 75%; background: var(--auth-accent); }
.auth-strength__bar--strong { width: 100%; background: var(--auth-success); }

.auth-strength-label {
    font-size: 0.7rem;
    color: var(--auth-text-muted);
    margin-top: 0.25rem;
}

/* Remember / forgot row */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--auth-transition);
}

.auth-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

/* Primary button */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--auth-radius-sm);
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
    color: #fff;
    cursor: pointer;
    transition: var(--auth-transition);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    position: relative;
    overflow: hidden;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.auth-btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
}

.auth-btn.is-loading .auth-btn__spinner { display: inline-block; }
.auth-btn.is-loading .auth-btn__text { opacity: 0.85; }

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--auth-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

/* Social buttons */
.auth-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.auth-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--auth-radius-sm);
    border: 1.5px solid var(--auth-border);
    background: var(--auth-input-bg);
    color: var(--auth-text);
    text-decoration: none;
    cursor: pointer;
    transition: var(--auth-transition);
}

.auth-social-btn:hover:not(.is-disabled) {
    border-color: var(--auth-primary);
    background: rgba(99, 102, 241, 0.06);
    transform: translateY(-1px);
    color: var(--auth-text);
}

.auth-social-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-social-btn i { font-size: 1rem; }

.auth-social-btn--google i { color: #ea4335; }
.auth-social-btn--facebook i { color: #1877f2; }
.auth-social-btn--apple i { color: var(--auth-text); }
.auth-social-btn--twitter i { color: var(--auth-text); }
.auth-social-btn--microsoft i { color: #00a4ef; }

.auth-social-note {
    font-size: 0.7rem;
    color: var(--auth-text-muted);
    text-align: center;
    margin-top: 0.65rem;
}

/* Footer link */
.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--auth-text-muted);
}

/* Register — force single centered column (overrides login split shell) */
body.auth-premium--register .auth-shell,
body.auth-register-page .auth-shell,
body.auth-register-page .auth-register-shell {
    display: flex !important;
    grid-template-columns: 1fr !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

body.auth-premium--register .auth-panel,
body.auth-register-page .auth-panel--register {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0.5rem;
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    min-height: auto !important;
}

body.auth-premium--register .auth-bg,
body.auth-register-page .auth-register-bg {
    opacity: 0.1;
}

body.auth-premium--register .auth-bg__orb,
body.auth-register-page .auth-bg__orb {
    opacity: 0.2;
    filter: blur(100px);
}

/* Register — premium fintech centered layout */
body.auth-premium--register,
body.auth-register-page {
    background: linear-gradient(160deg, var(--bg) 0%, #eef2ff 42%, #ecfdf5 100%);
}

[data-theme="dark"] body.auth-premium--register,
[data-theme="dark"] body.auth-register-page {
    background: linear-gradient(160deg, var(--dark) 0%, #1e1b4b 50%, var(--dark) 100%);
}

.auth-premium--register .auth-bg {
    opacity: 0.2;
}

.auth-premium--register .auth-bg__orb {
    opacity: 0.35;
    filter: blur(120px);
}

.auth-shell--centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding: 1rem;
}

.auth-register-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.auth-premium--register .auth-panel--register {
    width: 100%;
    max-width: 440px;
    padding: 0.75rem;
    border: none;
    background: transparent;
    backdrop-filter: none;
}

.auth-card--register {
    width: 100%;
    padding: 1.65rem 1.75rem 1.4rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 48px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

[data-theme="dark"] .auth-card--register {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.auth-card--register:hover {
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.05),
        0 24px 56px rgba(99, 102, 241, 0.12);
}

.auth-register-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--auth-text);
    margin-bottom: 1.1rem;
}

.auth-register-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #635bff 0%, #0ea5e9 55%, var(--secondary) 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.28);
}

.auth-register-brand__name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-register-brand__name span {
    color: var(--auth-primary);
}

.auth-register-intro {
    margin-bottom: 0.85rem;
}

.auth-register-title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.auth-register-lead {
    margin: 0;
    font-size: 0.875rem;
    color: var(--auth-text-muted);
    line-height: 1.45;
}

.auth-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.auth-trust-pills li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

[data-theme="dark"] .auth-trust-pills li {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
}

.auth-trust-pills i {
    font-size: 0.6rem;
}

.auth-register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
}

.auth-register-grid .auth-field--full {
    grid-column: 1 / -1;
}

.auth-form--register .auth-field {
    margin-bottom: 0;
}

.auth-form--register .auth-field label {
    margin-bottom: 0.28rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--auth-text-muted);
}

.auth-form--register .auth-input {
    padding: 0.58rem 0.85rem 0.58rem 2.45rem;
    font-size: 0.875rem;
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-form--register .auth-input:hover {
    border-color: rgba(99, 102, 241, 0.25);
}

.auth-form--register .auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.auth-strength--inline {
    margin-top: 0.3rem;
    height: 3px;
}

.auth-form--register .auth-strength-label {
    font-size: 0.62rem;
    min-height: 0.85rem;
    margin-top: 0.1rem;
}

.auth-form--register .auth-field-hint {
    min-height: 0.85rem;
    font-size: 0.62rem;
}

.auth-terms--register {
    margin: 0.65rem 0 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.auth-btn--register {
    padding: 0.72rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #635bff 0%, #4f46e5 45%, #0ea5e9 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-btn--register:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.34);
}

.auth-btn--register:active:not(:disabled) {
    transform: translateY(0);
}

.auth-register-signin {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--auth-text-muted);
}

.auth-form--register .auth-alert {
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.8125rem;
}

/* Legacy register helpers */
.auth-card__logo--centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--auth-text);
    text-decoration: none;
}

.auth-card__logo--centered i {
    color: var(--auth-primary);
}

.auth-card__logo--centered span { color: var(--auth-primary); }

.auth-card__header--compact {
    margin-bottom: 1rem;
    text-align: center;
}

.auth-card__header--compact .auth-card__title {
    font-size: 1.375rem;
    margin-bottom: 0.2rem;
}

.auth-card__header--compact .auth-card__subtitle {
    font-size: 0.8125rem;
}

.auth-form--register .auth-field--compact {
    margin-bottom: 0.75rem;
}

.auth-form--register .auth-field--compact label {
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
}

.auth-form--register .auth-input {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
    font-size: 0.875rem;
}

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.auth-field-row .auth-field--compact {
    margin-bottom: 0;
}

.auth-strength--compact {
    margin-top: 0.35rem;
}

.auth-strength-label {
    font-size: 0.65rem;
    margin-top: 0.15rem;
    min-height: 0.9rem;
}

.auth-terms--compact {
    margin: 0.15rem 0 0.85rem;
    font-size: 0.75rem;
}

.auth-form--register .auth-btn {
    padding: 0.72rem 1rem;
    font-size: 0.875rem;
}

.auth-footer-text--compact {
    margin-top: 0.85rem;
    font-size: 0.8125rem;
}

.auth-divider--compact {
    margin: 1rem 0 0.65rem;
    font-size: 0.65rem;
}

.auth-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-social-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--auth-border);
    background: var(--auth-input-bg);
    color: var(--auth-text-muted);
    font-size: 0.95rem;
    cursor: not-allowed;
    opacity: 0.55;
}

.auth-social-icon.is-disabled:hover {
    transform: none;
    box-shadow: none;
}

.auth-social-icon--google i { color: #ea4335; }
.auth-social-icon--facebook i { color: #1877f2; }
.auth-social-icon--apple i { color: var(--auth-text); }
.auth-social-icon--microsoft i { color: #00a4ef; }

.auth-social-note--coming-soon {
    margin-top: 0.4rem;
    margin-bottom: 0;
    font-size: 0.65rem;
    opacity: 0.75;
}

.auth-form--register .auth-alert {
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
}

.auth-label-optional {
    font-weight: 500;
    color: var(--auth-text-muted);
    font-size: 0.75rem;
}

.auth-field-hint--muted {
    color: var(--auth-text-muted);
    font-size: 0.72rem;
}

/* Legacy register styles (unused) */
.auth-secure-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--auth-radius-sm);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--auth-text-muted);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
}

.auth-secure-notice i {
    color: var(--auth-primary);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.35rem 0 1.35rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--auth-text-muted);
    cursor: pointer;
    user-select: none;
}

.auth-terms input {
    width: 16px;
    height: 16px;
    margin-top: 0.15rem;
    accent-color: var(--auth-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-terms .auth-link {
    font-size: inherit;
}

.auth-social-grid--register {
    grid-template-columns: repeat(2, 1fr);
}

/* Mobile sticky submit */
.auth-mobile-sticky {
    display: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        display: none;
    }

    .auth-panel {
        border-left: none;
        min-height: 100vh;
        align-items: flex-start;
        padding: 1.25rem;
        padding-bottom: 5rem;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
        max-width: 100%;
    }

    .auth-card__logo-mobile {
        display: flex;
    }

    .auth-social-grid {
        grid-template-columns: 1fr;
    }

    .auth-social-grid--register {
        grid-template-columns: 1fr;
    }

    .auth-card--register {
        max-height: none;
        overflow: visible;
        padding: 1.35rem 1.15rem 1.15rem;
    }

    .auth-premium--register .auth-panel--register {
        padding: 0.5rem;
        min-height: auto;
        max-width: 100%;
    }

    .auth-register-grid {
        grid-template-columns: 1fr;
    }

    .auth-trust-pills {
        justify-content: center;
    }

    .auth-register-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .auth-register-lead {
        text-align: center;
    }

    .auth-register-brand {
        justify-content: center;
        width: 100%;
    }

    .auth-field-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .auth-premium--register .auth-mobile-sticky {
        display: none !important;
    }

    .auth-mobile-sticky {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
        background: var(--auth-glass);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--auth-border);
        z-index: 50;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .auth-mobile-sticky.is-visible {
        transform: translateY(0);
    }

    .auth-mobile-sticky .auth-btn {
        margin: 0;
    }

    .auth-form .auth-btn--desktop-only {
        display: none;
    }
}

@media (min-width: 992px) {
    .auth-mobile-sticky { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== homepage.css ===== */
/**
 * DealersDataZone — Homepage (premium SaaS landing)
 * Location: /assets/css/homepage.css
 * Scoped to .home-page body class
 */

.home-page {
    --bg-light: var(--bg);
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-soft: var(--shadow-card);
    --shadow-hover: 0 16px 48px rgba(37, 99, 235, 0.12);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 45%, #0d9488 100%);
    --gradient-cta: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --gradient-btn: linear-gradient(135deg, #34d399 0%, var(--secondary) 50%, #059669 100%);
    scroll-behavior: smooth;
    background: var(--bg);
    overflow-x: hidden;
}

.home-page .main-content {
    padding-top: 72px;
}

/* ===========================
   Glass navbar (homepage only)
   =========================== */
.home-page .main-navbar--home {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    padding: 0.65rem 0;
}

.home-page .main-navbar--home.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.home-page .main-navbar--home .navbar-brand,
.home-page .main-navbar--home .brand-text {
    color: var(--dark) !important;
}

.home-page .main-navbar--home .nav-link {
    color: #475569 !important;
    font-weight: 500;
    font-size: 0.925rem;
    transition: color 0.2s ease;
}

.home-page .main-navbar--home .nav-link:hover {
    color: var(--primary) !important;
    opacity: 1;
}

.home-page .main-navbar--home .text-accent {
    color: var(--secondary) !important;
}

.home-page .btn-get-started {
    background: var(--gradient-btn) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.home-page .btn-get-started:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    color: #fff !important;
}

/* ===========================
   Shared section styles
   =========================== */
.hp-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.hp-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.hp-section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.65;
}

.hp-section-subtitle--left {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Reveal animation */
.home-page .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-page .reveal-delay-1 { transition-delay: 0.1s; }
.home-page .reveal-delay-2 { transition-delay: 0.2s; }
.home-page .reveal-delay-3 { transition-delay: 0.3s; }

/* ===========================
   Hero
   =========================== */
.hp-hero {
    position: relative;
    padding: 3rem 0 4rem;
    background: var(--gradient-hero);
    color: #fff;
    overflow: hidden;
}

.hp-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: hp-glow-drift 12s ease-in-out infinite alternate;
}

.hp-hero__glow--1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: rgba(16, 185, 129, 0.35);
}

.hp-hero__glow--2 {
    width: 320px;
    height: 320px;
    bottom: -60px;
    left: -60px;
    background: rgba(59, 130, 246, 0.3);
    animation-delay: -4s;
}

@keyframes hp-glow-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(20px, -16px) scale(1.08); }
}

.hp-hero__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
}

.hp-hero__title {
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hp-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.hp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-hp-primary {
    background: var(--card);
    color: var(--primary);
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hp-primary:hover {
    background: var(--card);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-hp-outline {
    background: transparent;
    color: #fff;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-hp-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    transform: translateY(-2px);
}

.hp-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem 1rem;
}

.hp-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.hp-trust-list i {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* Dashboard mockup */
.hp-mockup {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.hp-mockup__window {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hp-mockup__bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.hp-mockup__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.hp-mockup__bar span:first-child { background: #f87171; }
.hp-mockup__bar span:nth-child(2) { background: #fbbf24; }
.hp-mockup__bar span:nth-child(3) { background: #34d399; }

.hp-mockup__body {
    display: flex;
    min-height: 260px;
}

.hp-mockup__sidebar {
    width: 56px;
    padding: 12px 8px;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hp-mockup__nav-item {
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.hp-mockup__nav-item--active {
    background: var(--primary);
}

.hp-mockup__main {
    flex: 1;
    padding: 16px;
    background: var(--bg-light);
}

.hp-mockup__stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.hp-mockup__stat {
    height: 48px;
    border-radius: 10px;
    opacity: 0.9;
}

.hp-mockup__stat--blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.hp-mockup__stat--green { background: linear-gradient(135deg, #34d399, #10b981); }
.hp-mockup__stat--violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.hp-mockup__chart {
    height: 72px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.15) 0%, transparent 100%);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    position: relative;
}

.hp-mockup__chart::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath d='M0 35 L30 28 L60 32 L90 18 L120 22 L150 10 L200 15' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;
}

.hp-mockup__table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-mockup__row {
    height: 28px;
    border-radius: 6px;
    background: var(--card);
    border: 1px solid var(--border);
}

.hp-mockup__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    animation: hp-float 4s ease-in-out infinite;
}

.hp-mockup__float i {
    color: var(--secondary);
}

.hp-mockup__float--wallet {
    top: 12%;
    left: -8%;
    animation-delay: 0s;
}

.hp-mockup__float--order {
    bottom: 18%;
    right: -6%;
    animation-delay: -2s;
}

@keyframes hp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ===========================
   Stats
   =========================== */
.hp-stats {
    padding: 0 0 4rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.hp-stat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.hp-stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.15rem;
    color: #fff;
}

.hp-stat-card__icon--blue { background: linear-gradient(135deg, #3b82f6, var(--primary)); }
.hp-stat-card__icon--green { background: linear-gradient(135deg, #34d399, var(--secondary)); }
.hp-stat-card__icon--violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.hp-stat-card__icon--amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.hp-stat-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.hp-stat-card__label {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

/* ===========================
   Networks
   =========================== */
.hp-networks {
    padding: 4rem 0 5rem;
}

.hp-network-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hp-network-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.35);
}

.hp-network-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.hp-network-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.hp-network-card__logo.mtn { background: #ffcc00; color: #000; }
.hp-network-card__logo.telecel { background: #e60000; }
.hp-network-card__logo.airteltigo { background: #0066cc; }

.hp-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.hp-badge--instant {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.hp-network-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.hp-network-card p {
    color: var(--muted);
    font-size: 0.925rem;
    margin: 0;
    flex: 1;
}

/* ===========================
   Features (Why Choose Us)
   =========================== */
.hp-features {
    padding: 5rem 0;
    background: var(--card);
}

.hp-feature-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.hp-feature-card:hover {
    transform: translateY(-6px);
    background: var(--card);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

.hp-feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.hp-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.hp-feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* ===========================
   Platform Preview
   =========================== */
.hp-preview {
    padding: 5rem 0;
    background: var(--bg-light);
}

.hp-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.hp-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.975rem;
}

.hp-checklist i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.hp-preview__screen {
    background: var(--card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.hp-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.hp-preview__dots {
    display: flex;
    gap: 5px;
}

.hp-preview__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.hp-preview__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 1.25rem;
    min-height: 280px;
}

.hp-preview__tile {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.06));
    border-radius: 12px;
    border: 1px solid var(--border);
    min-height: 80px;
}

.hp-preview__tile--wide {
    grid-column: span 2;
    min-height: 100px;
}

.hp-preview__tile--tall {
    grid-row: span 2;
    min-height: 172px;
}

/* ===========================
   How It Works
   =========================== */
.hp-steps {
    padding: 5rem 0;
    background: var(--card);
}

.hp-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
}

.hp-timeline::before {
    content: '';
    position: absolute;
    top: 52px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    opacity: 0.25;
    z-index: 0;
}

.hp-step-card {
    position: relative;
    z-index: 1;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.hp-step-card__num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-step-card__icon {
    width: 52px;
    height: 52px;
    margin: 0.75rem auto 1rem;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.hp-step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.hp-step-card p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

/* ===========================
   CTA
   =========================== */
.hp-cta {
    position: relative;
    padding: 5rem 0;
    background: var(--gradient-cta);
    color: #fff;
    overflow: hidden;
}

.hp-cta__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    animation: hp-cta-float 8s ease-in-out infinite;
}

.hp-cta__shape--1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -60px;
}

.hp-cta__shape--2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation-delay: -3s;
}

@keyframes hp-cta-float {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(12px, -16px); }
}

.hp-cta__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.hp-cta__inner h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hp-cta__inner p {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.hp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.btn-hp-cta-light {
    background: var(--card);
    color: var(--primary);
    font-weight: 700;
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hp-cta-light:hover {
    background: var(--card);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-hp-cta-ghost {
    background: transparent;
    color: #fff;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-hp-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

/* ===========================
   Footer enhancements (homepage)
   =========================== */
.site-footer--home {
    background: var(--dark);
    padding: 4rem 0 2rem;
}

.site-footer--home .footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.site-footer--home .footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-footer--home .footer-social a:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
}

.site-footer--home .footer-text a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer--home .footer-text a:hover {
    color: var(--secondary);
}

.site-footer--home .footer-legal {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.site-footer--home .footer-legal a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.site-footer--home .footer-legal a:hover {
    color: var(--secondary);
}

.site-footer--home .footer-copy {
    text-align: left;
    opacity: 0.55;
    font-size: 0.85rem;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .hp-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-timeline::before {
        display: none;
    }

    .hp-mockup__float--wallet {
        left: 0;
    }

    .hp-mockup__float--order {
        right: 0;
    }
}

@media (max-width: 768px) {
    .home-page .main-content {
        padding-top: 68px;
    }

    .hp-hero {
        padding: 2.5rem 0 3.5rem;
        text-align: center;
    }

    .hp-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hp-hero__actions {
        justify-content: center;
    }

    .hp-trust-list {
        max-width: 320px;
        margin: 0 auto;
        text-align: left;
    }

    .hp-mockup {
        margin-top: 1.5rem;
    }

    .hp-mockup__float {
        display: none;
    }

    .hp-stats {
        margin-top: -1.5rem;
    }

    .hp-section-head {
        margin-bottom: 2rem;
    }

    .hp-networks,
    .hp-features,
    .hp-preview,
    .hp-steps {
        padding: 3.5rem 0;
    }

    .hp-cta {
        padding: 3.5rem 0;
    }

    .site-footer--home .footer-legal {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }

    .site-footer--home .footer-copy {
        text-align: center;
    }
}

@media (max-width: 575px) {
    .hp-hero__actions .btn {
        width: 100%;
    }

    .hp-cta__actions .btn {
        width: 100%;
    }

    .hp-timeline {
        grid-template-columns: 1fr;
    }

    .hp-trust-list {
        grid-template-columns: 1fr;
    }

    .hp-stat-card {
        padding: 1.25rem 1rem;
    }

    .hp-stat-card__value {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hp-hero__glow,
    .hp-mockup__float,
    .hp-cta__shape {
        animation: none;
    }
}

/* ===== wallet-topup.css ===== */
/**
 * Wallet Top-Up Page — self-contained styles
 * Location: /assets/css/wallet-topup.css
 * Upload this file with user/top-up-wallet.php
 */

.wtp-page {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wtp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.wtp-card {
    background: var(--dash-surface, var(--card));
    border: 1px solid var(--dash-border, var(--border));
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.wtp-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 45%, var(--primary) 100%);
    color: var(--card);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-lg);
}

.wtp-hero__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 0.35rem;
}

.wtp-hero__amount {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.75rem;
}

.wtp-hero__hint {
    display: block;
    font-size: 0.82rem;
    line-height: 1.5;
    opacity: 0.92;
    margin: 0;
}

.wtp-body {
    padding: 1.5rem;
}

.wtp-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dash-text-heading, var(--text));
    margin-bottom: 0.6rem;
}

.wtp-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.wtp-quick__btn {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #e2e8f0;
    background-color: #f1f5f9;
    color: #0f172a;
    border-radius: 12px;
    padding: 0.75rem 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
    font-family: inherit;
    line-height: 1.2;
    -webkit-text-fill-color: currentColor;
}

[data-theme="dark"] .wtp-quick__btn {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.wtp-quick__btn:hover {
    border-color: #059669;
    background-color: rgba(5, 150, 105, 0.1);
    color: #047857;
}

[data-theme="dark"] .wtp-quick__btn:hover {
    background-color: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #6ee7b7;
}

.wtp-quick__btn.is-active {
    border-color: #059669;
    background-color: rgba(5, 150, 105, 0.14);
    color: #047857;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

[data-theme="dark"] .wtp-quick__btn.is-active {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #6ee7b7;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .wtp-input-group {
    background-color: var(--dash-surface-2);
    border-color: var(--dash-border);
}

[data-theme="dark"] .wtp-input-prefix {
    background-color: var(--dash-surface);
    color: var(--dash-text-muted);
    border-color: var(--dash-border);
}

[data-theme="dark"] .wtp-input {
    color: var(--dash-text-heading);
}

[data-theme="dark"] .wtp-label,
[data-theme="dark"] .wtp-limits {
    color: var(--dash-text-muted);
}

[data-theme="dark"] .wtp-label {
    color: var(--dash-text-heading);
}

.wtp-input-group {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--dash-border, var(--border));
    border-radius: 12px;
    overflow: hidden;
    background: var(--dash-surface-2, var(--bg));
    transition: border-color 0.15s;
}

.wtp-input-group:focus-within {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.wtp-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--dash-text-muted, var(--muted));
    background: var(--dash-surface, var(--card));
    border-right: 1px solid var(--dash-border, var(--border));
}

.wtp-input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--dash-text-heading, var(--text));
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.85rem 1rem;
    min-width: 0;
    font-family: inherit;
}

.wtp-input:focus {
    outline: none;
}

.wtp-limits {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: var(--dash-text-muted, var(--muted));
}

.wtp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669, #047857);
    color: var(--card) !important;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.28);
    transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
    font-family: inherit;
}

.wtp-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.32);
}

.wtp-submit:disabled,
.wtp-submit.is-loading {
    opacity: 0.85;
    cursor: wait;
    transform: none;
}

/* Claim card */
.wtp-claim-head {
    padding: 1.25rem 1.5rem 0;
}

.wtp-claim-head h5 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dash-text-heading, var(--text));
}

.wtp-claim-head p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--dash-text-muted, var(--muted));
}

.wtp-claim-body {
    padding: 1rem 1.5rem 1.5rem;
}

.wtp-claim-row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.wtp-claim-input {
    width: 100%;
    border: 2px solid var(--dash-border, var(--border));
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--dash-surface-2, var(--bg));
    color: var(--dash-text-heading, var(--text));
    font-family: inherit;
}

.wtp-claim-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wtp-claim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--dash-border, var(--border));
    border-radius: 12px;
    background: var(--dash-surface, var(--card));
    color: var(--dash-text-heading, var(--text));
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
}

.wtp-claim-btn:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
    color: #1d4ed8;
}

.wtp-claim-note {
    margin: 0.75rem 0 0;
    font-size: 0.76rem;
    color: var(--dash-text-muted, var(--muted));
    line-height: 1.45;
}

/* History */
.wtp-history-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 0;
}

.wtp-history-head h5 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
}

.wtp-history-head p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--dash-text-muted, var(--muted));
}

.wtp-history-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
}

.wtp-history-link:hover {
    text-decoration: underline;
}

.wtp-table-wrap {
    padding: 0 1.5rem 1.5rem;
}

.wtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.wtp-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dash-text-muted, var(--muted));
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--dash-border, var(--border));
}

.wtp-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--dash-border, var(--border));
    vertical-align: middle;
}

.wtp-table tr:last-child td {
    border-bottom: 0;
}

.wtp-amount--credit {
    font-weight: 800;
    color: #059669;
}

.wtp-ref {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.78rem;
    background: var(--dash-surface-2, #f1f5f9);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    word-break: break-all;
}

.wtp-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wtp-badge--success {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

.wtp-badge--pending {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.wtp-badge--failed {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.wtp-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.wtp-empty i {
    font-size: 2rem;
    color: var(--dash-text-muted, #94a3b8);
    margin-bottom: 0.75rem;
}

.wtp-empty h6 {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.wtp-empty p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--dash-text-muted, var(--muted));
}

/* Mobile funding cards */
.wtp-mobile-list {
    display: none;
    padding: 0 1rem 1.25rem;
    flex-direction: column;
    gap: 0.65rem;
}

.wtp-mobile-item {
    border: 1px solid var(--dash-border, var(--border));
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: var(--dash-surface-2, var(--bg));
}

.wtp-mobile-item__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.wtp-mobile-item__date {
    font-size: 0.75rem;
    color: var(--dash-text-muted, var(--muted));
}

@media (max-width: 900px) {
    .wtp-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wtp-quick {
        grid-template-columns: repeat(2, 1fr);
    }

    .wtp-table-wrap {
        display: none;
    }

    .wtp-mobile-list {
        display: flex;
    }

    .wtp-hero__amount {
        font-size: 1.85rem;
    }
}

/* ===== store-settings.css ===== */
/* My Store — Store Settings panel */

.store-settings-panel {
    width: 100%;
    max-width: none;
}

.store-settings-panel .panel-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.store-url-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color, var(--border));
}

.store-url-section .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.store-url-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.store-url-input-wrap {
    flex: 1 1 280px;
    min-width: 0;
}

.store-url-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: clip;
    min-height: 2.5rem;
    background: var(--surface-elevated, var(--bg));
    cursor: text;
}

.store-url-input:focus {
    box-shadow: none;
    border-color: var(--border-color, #cbd5e1);
}

.store-url-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.store-url-actions .btn {
    white-space: nowrap;
    padding: 0.375rem 0.85rem;
    font-size: 0.875rem;
}

.store-url-hint {
    font-size: 0.8125rem;
    color: var(--text-muted, var(--muted));
    margin-top: 0.35rem;
}

.store-url-heading {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}

.store-url-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dash-text-heading, var(--text));
}

.store-url-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, var(--muted));
}

.store-advanced-settings {
    margin-top: 1rem;
    border: 1px solid var(--dash-border-light, var(--border));
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    background: var(--dash-surface-2, var(--bg));
}

.store-advanced-settings__summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dash-text-muted, var(--muted));
    list-style: none;
}

.store-advanced-settings__summary::-webkit-details-marker {
    display: none;
}

.store-advanced-settings__body {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--dash-border-light, var(--border));
}

.store-slug-hint {
    font-size: 0.8125rem;
    color: var(--text-muted, var(--muted));
    margin-top: 0.35rem;
}

.store-slug-hint code {
    font-size: 0.8125rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: var(--surface-elevated, #f1f5f9);
}

.store-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
}

.store-settings-block {
    margin-bottom: 1.25rem;
}

.store-settings-block:last-child {
    margin-bottom: 0;
}

.store-settings-block__title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, var(--muted));
    margin-bottom: 0.85rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border-color, var(--border));
}

.store-logo-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.store-logo-preview {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--border-color, var(--border));
    background: var(--surface-elevated, var(--bg));
}

.store-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    border: 2px dashed var(--border-color, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #94a3b8);
    font-size: 2rem;
    background: var(--surface-elevated, var(--bg));
}

.store-logo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.store-logo-actions .btn {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
}

.store-slug-field {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    background: var(--surface-elevated, var(--bg));
}

.store-status-switches {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.store-status-switches .form-check {
    padding-left: 2.5rem;
}

.store-visibility {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color, var(--border));
}

.store-visibility__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, var(--muted));
    margin-bottom: 0.45rem;
}

.store-visibility__message {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.store-visibility__message i {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.store-visibility__message.is-public {
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.store-visibility__message.is-public i {
    color: var(--success);
}

.store-visibility__message.is-hidden {
    color: #92400e;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.store-visibility__message.is-hidden i {
    color: #d97706;
}

.store-settings-save {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color, var(--border));
}

.store-settings-save .btn {
    min-width: 160px;
}

.theme-color-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.theme-color-row .form-control-color {
    width: 2.75rem;
    height: 2.5rem;
    padding: 0.2rem;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .store-settings-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 576px) {
    .store-url-row {
        flex-direction: column;
    }

    .store-url-actions {
        width: 100%;
    }

    .store-url-actions .btn {
        flex: 1;
        width: 100%;
    }

    .store-settings-panel .panel-body {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .my-store-quick-links {
        flex-direction: column;
        align-items: stretch !important;
    }

    .my-store-quick-links__actions {
        flex-direction: column;
        width: 100%;
    }

    .my-store-quick-links__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .store-settings-panel .input-group {
        flex-wrap: wrap;
    }

    .store-settings-panel .input-group-text {
        width: 100%;
        border-radius: 0.375rem 0.375rem 0 0 !important;
        justify-content: flex-start;
    }

    .store-settings-panel .input-group > .form-control {
        width: 100%;
        border-radius: 0 0 0.375rem 0.375rem !important;
    }

    .store-settings-panel .input-group > .btn {
        width: 100%;
        margin-top: 0.35rem;
        border-radius: 0.375rem !important;
    }

    .store-url-input-wrap {
        flex: 1 1 100%;
        width: 100%;
    }

    .store-url-input-wrap.input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .store-url-input-wrap.input-group > .form-control.store-url-input {
        width: 100%;
        border-radius: 0.375rem !important;
        white-space: normal;
        word-break: break-all;
        overflow-wrap: anywhere;
        overflow-x: visible;
        text-overflow: clip;
        min-height: auto;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        line-height: 1.45;
    }

    .store-url-input-wrap.input-group > .btn {
        width: 100%;
        margin-top: 0.5rem;
        border-radius: 0.375rem !important;
        margin-left: 0 !important;
    }

    .store-url-actions .btn,
    .store-settings-save .btn {
        width: 100%;
    }

    .theme-color-row {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-color-row .form-control {
        width: 100%;
    }

    .store-logo-actions {
        width: 100%;
        flex-direction: column;
    }

    .store-logo-actions .btn,
    .store-logo-actions label.btn {
        width: 100%;
        justify-content: center;
    }

    .store-advanced-settings .input-group {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

/* ===== store-products-manager.css ===== */
/* Store product manager — My Store bulk pricing */

.store-products-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.store-products-summary .stat-card {
    padding: 0.85rem 1rem;
}

.store-products-summary .stat-value {
    font-size: 1.15rem;
}

.store-products-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--surface-elevated, var(--bg));
    border: 1px solid var(--border-color, var(--border));
    border-radius: 8px;
}

.store-products-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.store-products-toolbar__row--between {
    justify-content: space-between;
}

.store-products-filters .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
}

.store-products-filters .btn.is-active {
    background: var(--accent, #6366f1);
    border-color: var(--accent, #6366f1);
    color: #fff;
}

.store-markup-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.store-markup-btns .btn-markup {
    min-width: 3.2rem;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
}

.store-products-search {
    min-width: 180px;
    max-width: 280px;
}

.store-products-selected {
    font-size: 0.85rem;
    color: var(--text-muted, var(--muted));
}

.store-price-input {
    width: 100px;
    max-width: 100%;
    min-height: 2rem;
}

.store-products-panel-header {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.store-products-footer__actions {
    width: 100%;
}

@media (max-width: 576px) {
    .store-products-toolbar__row--between {
        flex-direction: column;
        align-items: stretch;
    }

    .store-products-search {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .store-products-summary {
        grid-template-columns: 1fr 1fr;
    }

    .store-products-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .store-products-panel-header .store-products-save-top {
        width: 100%;
    }

    .store-products-toolbar__row {
        flex-direction: column;
        align-items: stretch;
    }

    .store-products-toolbar__row .d-flex {
        width: 100%;
        flex-direction: column;
    }

    .store-products-toolbar__row .btn {
        width: 100%;
        justify-content: center;
    }

    .store-products-toolbar__row .input-group {
        width: 100% !important;
        max-width: none !important;
    }

    .store-products-toolbar__row .input-group .form-control {
        width: 100% !important;
        max-width: none !important;
    }

    .store-products-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        width: 100%;
    }

    .store-products-filters .btn {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: 0;
    }

    .store-markup-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .store-markup-btns .btn-markup {
        width: 100%;
    }

    .store-products-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .store-products-footer__actions {
        flex-direction: column;
    }

    .store-products-footer__actions .btn {
        width: 100%;
    }

    .store-products-table-wrap {
        overflow: visible;
        margin: 0 -0.25rem;
    }

    #storeProductsManager #storeProductsTable.data-table--orders,
    #storeProductsManager #storeProductsTable.store-products-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: auto !important;
    }

    #storeProductsManager #storeProductsTable thead {
        display: none !important;
    }

    #storeProductsManager #storeProductsTable tbody {
        display: block !important;
        width: 100% !important;
    }

    #storeProductsManager #storeProductsTable .store-product-row {
        display: block !important;
        margin-bottom: 0.75rem;
        padding: 1rem;
        border: 1px solid var(--dash-border, var(--border));
        border-radius: 14px;
        background: var(--dash-surface-2, var(--bg));
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    #storeProductsManager #storeProductsTable .store-product-row td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.45rem 0;
        border: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    #storeProductsManager #storeProductsTable .store-product-row td:first-child {
        justify-content: flex-start;
        padding-bottom: 0.65rem;
        margin-bottom: 0.25rem;
        border-bottom: 1px solid var(--dash-border-light, var(--border));
    }

    #storeProductsManager #storeProductsTable .store-product-row td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--dash-text-muted, var(--muted));
        flex-shrink: 0;
    }

    #storeProductsManager #storeProductsTable .store-product-row td .store-product-cell-value {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
        word-break: break-word;
    }

    #storeProductsManager #storeProductsTable .store-product-row td .form-check,
    #storeProductsManager #storeProductsTable .store-product-row td .store-price-input {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: auto;
    }

    #storeProductsManager #storeProductsTable .store-product-row td:first-child::before {
        margin-right: 0.35rem;
    }

    #storeProductsManager .store-price-input {
        width: 100% !important;
        max-width: 10rem;
        min-height: 2.35rem;
        font-size: 1rem;
    }

    #storeProductsManager .store-profit-cell {
        font-weight: 700;
        color: #059669;
    }

    .store-products-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}

.store-product-row.is-dirty {
    background: rgba(99, 102, 241, 0.04);
}

.store-product-row.is-hidden {
    display: none;
}

.store-product-row.is-saving {
    opacity: 0.65;
}

.store-save-status {
    font-size: 0.75rem;
    min-height: 1rem;
}

.store-save-status.is-ok { color: #16a34a; }
.store-save-status.is-err { color: #dc2626; }

.store-products-toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1080;
    min-width: 220px;
    max-width: 360px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #1e293b;
    color: var(--bg);
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.store-products-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== bulk-actions.css ===== */
.bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--surface-elevated, var(--bg));
    border: 1px solid var(--border-color, var(--border));
    border-radius: 8px;
}

.bulk-toolbar__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.bulk-toolbar__right .form-select,
.bulk-toolbar__right .form-control {
    min-width: 140px;
    max-width: 200px;
}

.bulk-selected-count {
    font-size: 0.875rem;
    color: var(--text-muted, var(--muted));
}

.bulk-col-check {
    width: 42px;
    text-align: center;
    vertical-align: middle;
}

.bulk-col-check .form-check-input {
    float: none;
    margin: 0;
}

.bulk-form .table-responsive {
    margin-top: 0;
}

@media (max-width: 576px) {
    .bulk-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-toolbar__right {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-toolbar__right .form-select,
    .bulk-toolbar__right .form-control,
    .bulk-toolbar__right .btn {
        max-width: none;
        width: 100%;
    }
}

/* ===== mtn-delivery-update.css ===== */
/**
 * MTN Delivery Update card — shared dashboard + storefront
 * Location: /assets/css/mtn-delivery-update.css
 */

.mtn-delivery-update {
    background: linear-gradient(135deg, #fffbeb 0%, #f0fdf4 52%, #ecfdf5 100%);
    border: 1px solid rgba(234, 179, 8, 0.22);
    border-radius: 12px;
    padding: 0.6rem 0.75rem 0.55rem;
    color: #065f46;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mtn-delivery-update.h-100 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mtn-delivery-update__head {
    margin-bottom: 0.45rem;
}

.mtn-delivery-update__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.mtn-delivery-update__brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.mtn-delivery-update__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2rem;
    padding: 0.12rem 0.38rem;
    background: #ffcc00;
    color: #1a1a1a;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 5px;
    line-height: 1.15;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.mtn-delivery-update__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #064e3b;
    line-height: 1.25;
    margin: 0;
}

.mtn-delivery-update__live {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
    padding: 0.12rem 0.42rem;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #059669;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 999px;
    line-height: 1;
}

.mtn-delivery-update__live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
    animation: mtn-delivery-live-pulse 1.8s ease-out infinite;
}

@keyframes mtn-delivery-live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
    70%  { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mtn-delivery-update__subtitle {
    margin: 0;
    font-size: 0.6875rem;
    color: #047857;
    opacity: 0.88;
    line-height: 1.3;
}

.mtn-delivery-update__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.mtn-delivery-update__stat {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 8px;
    padding: 0.38rem 0.4rem;
    text-align: center;
    min-width: 0;
}

.mtn-delivery-update__stat-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #047857;
    opacity: 0.9;
    margin-bottom: 0.18rem;
    line-height: 1.1;
}

.mtn-delivery-update__stat-value {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #064e3b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mtn-delivery-update__empty {
    margin: 0;
    padding: 0.35rem 0.45rem;
    font-size: 0.6875rem;
    color: #047857;
    background: rgba(255, 255, 255, 0.65);
    border: 1px dashed rgba(16, 185, 129, 0.22);
    border-radius: 8px;
    line-height: 1.35;
}

.mtn-delivery-update__footer {
    margin: 0.4rem 0 0;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(16, 185, 129, 0.14);
    font-size: 0.625rem;
    color: #059669;
    opacity: 0.88;
    line-height: 1.2;
}

/* Storefront — MTN tab visibility wrapper */
#mtnDeliveryUpdateCard {
    margin: 0.65rem 0 0.75rem;
}

#mtnDeliveryUpdateCard[style*="display: none"],
#mtnDeliveryUpdateCard[style*="display:none"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.sf-mtn-delivery-wrap .mtn-delivery-update {
    margin: 0;
}

@media (max-width: 479px) {
    .mtn-delivery-update {
        padding: 0.55rem 0.65rem 0.5rem;
    }

    .mtn-delivery-update__stats {
        gap: 0.3rem;
    }

    .mtn-delivery-update__stat {
        padding: 0.32rem 0.28rem;
    }

    .mtn-delivery-update__stat-value {
        font-size: 0.6875rem;
    }

    .mtn-delivery-update__title {
        font-size: 0.75rem;
    }
}

/* ===== store.css ===== */
/**
 * DealersDataZone — SaaS-style conversion storefront
 * Location: /assets/css/store.css
 */

:root {
    --store-accent: #635bff;
    --store-accent-rgb: 99, 91, 255;
    --sf-bg: #f6f8fb;
    --sf-surface: #ffffff;
    --sf-text: #0a2540;
    --sf-muted: #697386;
    --sf-border: #e3e8ee;
    --sf-radius: 12px;
    --sf-radius-sm: 8px;
    --sf-shadow: 0 1px 3px rgba(10, 37, 64, 0.06), 0 1px 2px rgba(10, 37, 64, 0.04);
    --sf-shadow-hover: 0 4px 12px rgba(10, 37, 64, 0.08), 0 2px 4px rgba(10, 37, 64, 0.04);
    --sf-font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.sf-body {
    margin: 0;
    font-family: var(--sf-font);
    background: var(--sf-bg);
    color: var(--sf-text);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

.sf-container {
    width: min(1080px, 100% - 1rem);
    margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────── */

.sf-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--sf-surface);
    border-bottom: 1px solid var(--sf-border);
}

.sf-header-inner {
    width: min(1080px, 100% - 1rem);
    margin-inline: auto;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sf-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.sf-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--store-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-avatar--img { object-fit: cover; }

.sf-store-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-store-tagline {
    margin: 0;
    font-size: 0.6875rem;
    color: var(--sf-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-header-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s, transform 0.12s, border-color 0.15s;
    white-space: nowrap;
}

.sf-btn span { display: none; }
@media (min-width: 480px) { .sf-btn span { display: inline; } }

.sf-btn--ghost {
    background: rgba(var(--store-accent-rgb), 0.08);
    color: var(--store-accent);
}
.sf-btn--ghost:hover { background: rgba(var(--store-accent-rgb), 0.14); color: var(--store-accent); }

.sf-btn--outline {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    color: var(--sf-text);
}
.sf-btn--outline:hover { border-color: #c2c9d6; background: #fafbfc; }

.sf-btn--primary {
    background: var(--store-accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(var(--store-accent-rgb), 0.25);
}
.sf-btn--primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 2px 6px rgba(var(--store-accent-rgb), 0.35);
    color: #fff;
    transform: translateY(-1px);
}

.sf-btn--block { width: 100%; margin-top: auto; padding: 0.45rem 0.5rem; font-size: 0.8125rem; }
.sf-btn--whatsapp { background: #25d366; color: #fff; }

/* ── Status bar ─────────────────────────────────────────── */

.sf-status-bar {
    background: var(--sf-surface);
    border-bottom: 1px solid var(--sf-border);
    padding: 0.35rem 0;
}

.sf-status-bar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: center;
}

.sf-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--sf-muted);
}

.sf-status-chip-label {
    color: var(--sf-text);
    font-weight: 600;
}

.sf-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Delivery / status colors ───────────────────────────── */

.sf-delivery-badge,
.delivery-instant, .delivery-processing, .delivery-delayed, .delivery-offline {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    letter-spacing: 0.01em;
}

.delivery-instant, .sf-status-dot.delivery-instant { background: #d1fae5; color: #047857; }
.delivery-processing, .sf-status-dot.delivery-processing { background: #fef3c7; color: #b45309; }
.delivery-delayed, .sf-status-dot.delivery-delayed { background: #ffedd5; color: #c2410c; }
.delivery-offline, .sf-status-dot.delivery-offline { background: #fee2e2; color: #b91c1c; }
.sf-status-dot.delivery-instant { background: #10b981; }
.sf-status-dot.delivery-processing { background: #f59e0b; }
.sf-status-dot.delivery-delayed { background: #f97316; }
.sf-status-dot.delivery-offline { background: #ef4444; }

/* ── Main / shop panel ──────────────────────────────────── */

.sf-main {
    padding: 0.5rem 0 1rem;
}

.sf-alert {
    border-radius: var(--sf-radius-sm);
    margin-bottom: 0.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    border: 1px solid transparent;
}

.sf-shop {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
    overflow: hidden;
    animation: sfSlideIn 0.35s ease;
}

@keyframes sfSlideIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sf-shop-toolbar {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid var(--sf-border);
    background: #fafbfc;
}

/* ── Network pills ──────────────────────────────────────── */

.sf-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sf-pills-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1px;
}
.sf-pills-scroll::-webkit-scrollbar { display: none; }

.sf-pill {
    flex-shrink: 0;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--sf-border);
    background: var(--sf-surface);
    color: var(--sf-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.sf-pill:hover {
    border-color: #c2c9d6;
    color: var(--sf-text);
}

.sf-pill.is-active {
    background: var(--store-accent);
    border-color: var(--store-accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(var(--store-accent-rgb), 0.3);
}

.sf-pill--mtn.is-active { background: #eab308; border-color: #ca8a04; }
.sf-pill--telecel.is-active { background: #dc2626; border-color: #b91c1c; }
.sf-pill--at_ishare.is-active { background: #2563eb; border-color: #1d4ed8; }
.sf-pill--at_bigtime.is-active { background: #7c3aed; border-color: #6d28d9; }

/* ── Product grid: 2 / 3 / 4 columns ────────────────────── */

.sf-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.65rem;
    width: 100%;
}

@media (min-width: 640px) {
    .sf-product-grid { grid-template-columns: repeat(3, 1fr); gap: 0.55rem; padding: 0.75rem; }
}

@media (min-width: 1024px) {
    .sf-product-grid { grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
}

/* Center when few visible products */
.sf-product-grid.sf-product-grid--centered {
    grid-template-columns: repeat(2, minmax(0, 200px));
    justify-content: center;
}

@media (min-width: 640px) {
    .sf-product-grid.sf-product-grid--centered {
        grid-template-columns: repeat(3, minmax(0, 200px));
    }
}

@media (min-width: 1024px) {
    .sf-product-grid.sf-product-grid--centered {
        grid-template-columns: repeat(4, minmax(0, 200px));
    }
}

.sf-product-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-sm);
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 0;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    animation: sfCardIn 0.3s ease backwards;
    animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes sfCardIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sf-product-card.is-hidden { display: none; }

.sf-product-card.is-entering {
    animation: sfCardIn 0.25s ease forwards;
}

.sf-product-card:hover {
    border-color: rgba(var(--store-accent-rgb), 0.35);
    box-shadow: var(--sf-shadow-hover);
    transform: translateY(-2px);
}

.sf-product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
}

.sf-product-size {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--sf-text);
}

.sf-product-plan {
    font-size: 0.6875rem;
    color: var(--sf-muted);
    line-height: 1.3;
    min-height: 1.8em;
}

.sf-product-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--store-accent);
    margin: 0.15rem 0 0.35rem;
}

/* ── Help row ───────────────────────────────────────────── */

.sf-help-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.65rem;
    padding: 0.5rem 0.65rem;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-sm);
    font-size: 0.75rem;
}

.sf-help-row-title {
    font-weight: 600;
    color: var(--sf-muted);
    margin-right: 0.15rem;
}

.sf-help-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--sf-border);
    background: #fafbfc;
    color: var(--sf-text);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.12s, border-color 0.12s;
}

.sf-help-chip:hover {
    background: #f0f2f5;
    border-color: #c2c9d6;
    color: var(--sf-text);
}

.sf-help-chip--wa:hover { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }

/* ── Footer & FAB ───────────────────────────────────────── */

.sf-footer {
    padding: 0.5rem 0 0.75rem;
    text-align: center;
    color: var(--sf-muted);
    font-size: 0.6875rem;
}

.sf-fab-whatsapp {
    position: fixed;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 200;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sf-fab-whatsapp:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* ── Checkout modal ─────────────────────────────────────── */

.sf-modal .modal-content {
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    box-shadow: 0 16px 40px rgba(10, 37, 64, 0.12);
}

.sf-checkout-summary {
    background: #f6f8fb;
    border-radius: var(--sf-radius-sm);
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.65rem;
    font-size: 0.8125rem;
}

.sf-checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0;
}

.sf-checkout-row span { color: var(--sf-muted); }

.sf-checkout-total {
    border-top: 1px solid var(--sf-border);
    margin-top: 0.25rem;
    padding-top: 0.35rem;
}

.sf-checkout-total strong { color: var(--store-accent); font-size: 0.9375rem; }

.sf-input {
    border-radius: 6px;
    border: 1px solid var(--sf-border);
    font-size: 0.875rem;
}

.sf-input:focus {
    border-color: var(--store-accent);
    box-shadow: 0 0 0 3px rgba(var(--store-accent-rgb), 0.12);
}

/* ── Empty / misc ───────────────────────────────────────── */

.sf-empty, .sf-empty-page {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--sf-muted);
}

.sf-empty i { font-size: 1.75rem; opacity: 0.35; margin-bottom: 0.5rem; }
.sf-empty h3 { font-size: 0.9375rem; font-weight: 600; color: var(--sf-text); }

.phone-number { font-family: ui-monospace, monospace; letter-spacing: 0; }

.store-result-card {
    max-width: 400px;
    margin: 1.5rem auto;
    padding: 1.25rem;
    background: var(--sf-surface);
    border-radius: var(--sf-radius);
    border: 1px solid var(--sf-border);
    box-shadow: var(--sf-shadow);
}

.store-result-icon { font-size: 2.25rem; margin-bottom: 0.5rem; }
.store-result-icon.success { color: #059669; }
.store-result-icon.failed { color: #dc2626; }

.store-support-panel {
    background: #f6f8fb;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-sm);
    padding: 0.65rem;
    margin-top: 0.65rem;
    text-align: left;
    font-size: 0.8125rem;
}

.store-support-panel--compact { background: #ecfdf5; border-color: #a7f3d0; }
.store-support-title { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.25rem; }
.store-support-compact-lines { font-size: 0.8125rem; line-height: 1.45; }

.sf-orders-card {
    background: var(--sf-surface);
    border-radius: var(--sf-radius);
    padding: 1rem;
    border: 1px solid var(--sf-border);
    margin-top: 0.75rem;
}

.sf-orders-table { width: 100%; font-size: 0.8125rem; }
.sf-orders-table th {
    font-weight: 600;
    color: var(--sf-muted);
    font-size: 0.6875rem;
    text-transform: uppercase;
    padding: 0.4rem 0.35rem;
    border-bottom: 1px solid var(--sf-border);
}
.sf-orders-table td {
    padding: 0.45rem 0.35rem;
    border-bottom: 1px solid var(--sf-border);
}

.sf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--store-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

/* ===== Sitewide single-brand overrides ===== */
.sf-body,
:root {
    --store-accent: var(--primary);
    --store-accent-rgb: 16, 185, 129;
    --auth-primary: var(--primary);
    --auth-primary-dark: var(--primary-dark);
    --auth-accent: var(--primary-light);
}
.stat-icon.blue, .stat-icon.green, .stat-icon.orange, .stat-icon.purple,
.aql-icon.blue, .aql-icon.green, .aql-icon.orange,
.dashboard-card-icon.blue, .dashboard-card-icon.green, .dashboard-card-icon.orange, .dashboard-card-icon.purple {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}
.hp-stat-card__icon--blue, .hp-stat-card__icon--green, .hp-stat-card__icon--violet, .hp-stat-card__icon--amber,
.hp-mockup__stat--blue, .hp-mockup__stat--green, .hp-mockup__stat--violet {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}

/* Buy / bulk — single-column form (no Available Plans sidebar) */
.buy-form-panel {
    max-width: 720px;
}

/* Admin — Manage Stores table actions */
.admin-store-actions__inner {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.admin-store-actions .btn-sm {
    min-height: 36px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    white-space: nowrap;
}

.admin-store-link-bar .input-group .btn {
    min-height: var(--input-height);
}

@media (max-width: 768px) {
    .admin-store-actions__inner {
        width: 100%;
        justify-content: stretch;
    }

    .admin-store-actions .btn-sm {
        flex: 1 1 auto;
    }
}