/**
 * E Pay Global Styles v3.0 (Mobile Optimized)
 * Optimized for entry-level mobile devices
 * Single stylesheet for ALL pages
 */

/* ==================================================================== */
/* 1. CSS Variables */
/* ==================================================================== */
:root {
    /* Colors */
    --epay-white: #ffffff;
    --epay-green: #198754;
    --epay-green-dark: #157347;
    --epay-danger: #dc3545;
    --epay-warning: #f59e0b;
    --epay-primary: #2563eb;
    --epay-primary-dark: #1d4ed8;

    /* Backgrounds */
    --epay-bg: #dde0e5;
    --epay-bg-light: #f8fafc;
    --epay-card-bg: #ffffff;

    /* Text */
    --epay-text: #212529;
    --epay-text-secondary: #475569;
    --epay-muted: #64748b;
    --epay-border: #dee2e6;

    /* Layout */
    --header-height: 56px;
    --footer-height: 56px;
    --max-width: 500px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-3d: 0 5px 10px rgba(0,0,0,0.5), 0 4px 0 #b3b6ba;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
}

/* ==================================================================== */
/* 2. Base Reset & Typography */
/* ==================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--epay-bg);
    color: var(--epay-text);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}

body.no-header { padding-top: 0; }
body.no-footer { padding-bottom: 0; }

a { color: var(--epay-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ==================================================================== */
/* 3. Layout Containers */
/* ==================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 0.5rem;
    width: 100%;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 0.5rem;
    width: 100%;
    flex-grow: 1;
}

/* ==================================================================== */
/* 4. Header - Standard E Pay Header */
/* ==================================================================== */
.epay-header {
    background: var(--epay-card-bg);
    border-bottom: 1px solid var(--epay-border);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1030;
    display: flex;
    align-items: center;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    width: 100%;
    position: relative;
}

/* Back Button */
.header-back {
    color: var(--epay-text-secondary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
}

.header-back:hover {
    color: var(--epay-text);
    text-decoration: none;
}

/* Centered Title */
.header-content h4,
.header-content h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
}

/* Logo */
.header-logo {
    position: absolute;
    right: 0.75rem;
    height: 32px;
    width: auto;
    z-index: 2;
}

/* Gradient Header (for guide pages) */
.epay-header.gradient {
    background: linear-gradient(135deg, var(--epay-primary) 0%, var(--epay-primary-dark) 100%);
    border-bottom: none;
}

.epay-header.gradient .header-back,
.epay-header.gradient h4,
.epay-header.gradient h1 {
    color: var(--epay-white);
}

/* ==================================================================== */
/* 5. Footer */
/* ==================================================================== */
.epay-footer {
    background: var(--epay-card-bg);
    border-top: 1px solid var(--epay-border);
    color: var(--epay-muted);
    font-size: 0.8rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1030;
}

/* ==================================================================== */
/* 6. Cards */
/* ==================================================================== */
.card {
    background: var(--epay-card-bg);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--epay-border);
    box-shadow: var(--shadow-card);
}

.card-3d {
    box-shadow: var(--shadow-3d);
}

.card h2,
.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--epay-primary);
}

.card p {
    color: var(--epay-muted);
    margin-bottom: 0.75rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.balance-card {
    background: var(--epay-card-bg);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--epay-border);
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-3d);
    min-height: 80px;
}

.balance-card .user-details {
    text-align: left;
}

.balance-card .balance-details {
    text-align: right;
}

.balance-card .user-info {
    text-align: left;
}

.balance-card .balance-info {
    text-align: right;
}

.balance-label {
    font-size: 0.75rem;
    color: var(--epay-muted);
}

.balance-amount {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--epay-green);
}

.balance-amount {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--epay-green);
}

/* ==================================================================== */
/* 7. Highlight Boxes */
/* ==================================================================== */
.highlight-box {
    background: linear-gradient(135deg, var(--epay-primary) 0%, var(--epay-primary-dark) 100%);
    color: var(--epay-white);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.highlight-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--epay-white);
}

.highlight-box p {
    color: var(--epay-white);
    opacity: 0.95;
    margin: 0;
}

.highlight-box.green {
    background: linear-gradient(135deg, var(--epay-green) 0%, var(--epay-green-dark) 100%);
}

.highlight-box.orange {
    background: linear-gradient(135deg, var(--epay-warning) 0%, #d97706 100%);
}

.highlight-box.danger {
    background: linear-gradient(135deg, var(--epay-danger) 0%, #991b1b 100%);
}

/* ==================================================================== */
/* 8. Tips Box */
/* ==================================================================== */
.tips-box {
    background: #fef3c7;
    border-left: 4px solid var(--epay-warning);
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1rem 0;
}

.tips-box h4,
.tips-box h6 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tips-box p,
.tips-box li {
    color: #78350f;
    font-size: 0.85rem;
}

.tips-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tips-box li {
    margin-bottom: 0.5rem;
}

.tips-box li:last-child {
    margin-bottom: 0;
}

/* ==================================================================== */
/* 9. Tab Navigation */
/* ==================================================================== */
.nav-tabs {
    display: flex;
    background: var(--epay-white);
    border-bottom: 1px solid var(--epay-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: var(--header-height);
    z-index: 99;
}

body.no-header .nav-tabs {
    top: 0;
}

.nav-tab {
    flex: 1;
    min-width: max-content;
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--epay-muted);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.nav-tab.active {
    color: var(--epay-primary);
    border-bottom-color: var(--epay-primary);
}

.nav-tab:hover {
    color: var(--epay-primary);
}

.tab-content {
    display: none;
    padding: 1rem 0;
}

.tab-content.active {
    display: block;
}

/* Pill-style tabs (horizontal scroll) */
.tab-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.tab-pill {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    background: #f1f5f9;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--epay-muted);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-pill.active {
    background: var(--epay-primary);
    color: var(--epay-white);
}

.tab-pill:hover:not(.active) {
    background: #e2e8f0;
}

/* ==================================================================== */
/* 10. Accordion */
/* ==================================================================== */
.accordion {
    background: var(--epay-white);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.accordion-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--epay-muted);
    transition: transform 0.2s;
}

.accordion.open .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion.open .accordion-content {
    max-height: 2000px;
}

.accordion-body {
    padding: 0 1.25rem 1.25rem;
    color: var(--epay-muted);
}

.accordion-body p {
    margin-bottom: 0.75rem;
}

.accordion-body strong {
    color: var(--epay-text);
}

/* ==================================================================== */
/* 11. Steps (Numbered List) */
/* ==================================================================== */
.steps {
    counter-reset: step;
}

.step {
    padding: 0.75rem 0 0.75rem 3rem;
    position: relative;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 2rem;
    height: 2rem;
    background: var(--epay-primary);
    color: var(--epay-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

/* ==================================================================== */
/* 12. Feature List (Checkmarks) */
/* ==================================================================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--epay-green);
    font-weight: bold;
}

/* ==================================================================== */
/* 13. Earnings Table */
/* ==================================================================== */
.earnings-table {
    background: var(--epay-white);
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: var(--shadow-card);
}

.earnings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--epay-border);
}

.earnings-row:last-child {
    border-bottom: none;
}

.earnings-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.earnings-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.earnings-dot.green { background: var(--epay-green); }
.earnings-dot.blue { background: var(--epay-primary); }
.earnings-dot.purple { background: #8b5cf6; }
.earnings-dot.orange { background: var(--epay-warning); }

.earnings-value {
    font-weight: 700;
    color: var(--epay-green);
}

/* ==================================================================== */
/* 14. Section Headers */
/* ==================================================================== */
.section-header {
    background: var(--epay-text);
    color: var(--epay-white);
    padding: 0.75rem 1rem;
    margin: 1.5rem -0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.section-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================================================================== */
/* 15. Buttons */
/* ==================================================================== */

/* Action Icon Buttons (for button groups) */
.btn-action-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-action-icon i {
    font-size: 1.25rem;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    min-height: 48px;
    gap: 0.5rem;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--epay-green);
    color: var(--epay-white);
    box-shadow: var(--shadow-3d), inset 0 -3px 0 rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background: var(--epay-green-dark);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--epay-card-bg);
    color: var(--epay-text);
    border: 1px solid var(--epay-border);
    box-shadow: var(--shadow-3d), inset 0 -3px 0 rgba(0,0,0,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--epay-green);
    border: 2px solid var(--epay-green);
}

.btn-outline:hover {
    background: var(--epay-green);
    color: var(--epay-white);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 56px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================================================================== */
/* 16. Forms */
/* ==================================================================== */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--epay-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    min-height: 48px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--epay-green);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--epay-text);
}

.form-group {
    margin-bottom: 1rem;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 48px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--epay-muted);
}

/* ==================================================================== */
/* 17. Action List (Dashboard menu items) */
/* ==================================================================== */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.action-link {
    background: var(--epay-white);
    border: 1px solid var(--epay-border);
    border-radius: 1rem;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--epay-text);
    text-decoration: none;
    box-shadow: var(--shadow-3d);
    transition: all 0.2s ease;
}

.action-link:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

.action-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.action-link:active {
    transform: translateY(0);
}

.action-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--epay-bg-light);
}

.action-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.action-link span {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
}

.action-link::after {
    content: '›';
    color: #adb5bd;
    font-size: 1.5rem;
    font-weight: 300;
}

/* ==================================================================== */
/* 18. Stats Row */
/* ==================================================================== */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: var(--epay-white);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--epay-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--epay-muted);
}

/* ==================================================================== */
/* 19. Quick Share Buttons */
/* ==================================================================== */
.quick-share {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.share-btn i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.share-btn.whatsapp { background: #25D366; color: white; }
.share-btn.copy { background: var(--epay-primary); color: white; }
.share-btn.sms { background: #007AFF; color: white; }
.share-btn.email { background: #EA4335; color: white; }

/* ==================================================================== */
/* 20. Code Display */
/* ==================================================================== */
.code-display {
    background: linear-gradient(135deg, var(--epay-primary) 0%, var(--epay-primary-dark) 100%);
    color: var(--epay-white);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-align: center;
    cursor: pointer;
}

/* ==================================================================== */
/* 21. Template Cards */
/* ==================================================================== */
.template-card {
    background: var(--epay-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 0.75rem;
}

.template-header {
    background: var(--epay-bg-light);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--epay-border);
}

.template-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.template-audience {
    font-size: 0.7rem;
    color: var(--epay-muted);
}

.template-body {
    padding: 1rem;
}

.template-message {
    background: var(--epay-bg-light);
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 250px;
    overflow-y: auto;
}

.template-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ==================================================================== */
/* 22. Toast Notifications */
/* ==================================================================== */
/* Centered Toast */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast-message {
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    text-align: center;
    max-width: 90vw;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-message.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.toast-message.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* ==================================================================== */
/* 23. Hero Section */
/* ==================================================================== */
.hero {
    background: linear-gradient(135deg, var(--epay-primary) 0%, var(--epay-primary-dark) 100%);
    color: var(--epay-white);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.hero h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--epay-white);
}

.hero p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0;
    color: var(--epay-white);
}

.hero i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* ==================================================================== */
/* 24. Tables */
/* ==================================================================== */
.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--epay-border);
}

th {
    background: var(--epay-bg-light);
    font-weight: 600;
}

/* ==================================================================== */
/* 25. Auth Container */
/* ==================================================================== */
.auth-container {
    background: var(--epay-card-bg);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    border: 1px solid var(--epay-border);
    max-width: 400px;
    margin: 1rem auto;
    width: calc(100% - 1.5rem);
    box-shadow: var(--shadow-3d);
}

.auth-divider {
    text-align: center;
    color: var(--epay-muted);
    font-size: 0.875rem;
    margin: 1rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--epay-border);
}

.auth-divider span {
    background: var(--epay-card-bg);
    padding: 0 1rem;
    position: relative;
}

/* ==================================================================== */
/* 26. Utility Classes */
/* ==================================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--epay-muted); }
.text-success { color: var(--epay-green); }
.text-danger { color: var(--epay-danger); }
.text-small { font-size: 0.85rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ==================================================================== */
/* 27. Responsive */
/* ==================================================================== */
@media (max-width: 380px) {
    .header-content h4,
    .header-content h1 {
        font-size: 1.1rem;
    }

    .nav-tab {
        padding: 0.875rem 0.5rem;
        font-size: 0.75rem;
    }

    .quick-share {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* ==================================================================== */
/* 28. Loading States */
/* ==================================================================== */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--epay-border);
    border-top-color: var(--epay-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading .btn-text {
    visibility: hidden;
}

.btn.loading .spinner {
    position: absolute;
}

/* ==================================================================== */
/* 29. Dashboard Specific */
/* ==================================================================== */

/* Header Alerts */
.header-alerts {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
}

.header-alert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.header-alert-item.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.header-alert-item.warning:hover {
    background: #ffc107;
    color: #000;
    text-decoration: none;
}


.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--epay-text);
}

.user-phone {
    font-size: 0.85rem;
    color: var(--epay-muted);
}

.balance-label {
    font-size: 0.75rem;
}

.header-wristband {
    position: absolute;
    right: 60px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.header-wristband img {
    height: 32px;
    width: auto;
}

.wristband-icon {
    width: auto;
    height: 32px;
    object-fit: contain;
    opacity: 0.7;
}
.wristband-link:hover .wristband-icon {
    opacity: 1;
}

.wristband-link:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.wristband-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wristband-link:hover .wristband-icon {
    opacity: 1;
}

/* Action Link Text */
.action-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.2;
    flex: 1;
}

.action-text span {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

.action-text small {
    font-size: 0.65rem;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Action Link with text layout */
.action-link {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.75rem;
    gap: 0.75rem;
}

.action-link .action-icon,
.action-link .action-icon-wrapper {
    flex-shrink: 0;
}

/* Admin Section */
.admin-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffd700;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-divider i {
    font-size: 0.85rem;
}

.admin-action-link {
    border-left: 3px solid #6f42c1;
}

/* Icon wrapper with gradient backgrounds */
.icon-gradient-green {
    background: linear-gradient(135deg, #198754, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-gradient-purple {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-gradient-blue {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-gradient-primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================================================================== */
/* 30. Modals */
/* ==================================================================== */
.epay-modal-content {
    border-radius: 1rem;
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
}

.pin-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 700;
    padding-left: 1.5rem;
}

/* ==================================================================== */
/* 31. Print Styles */
/* ==================================================================== */
@media print {
    .epay-header,
    .epay-footer,
    .no-print {
        display: none !important;
    }

    body {
        padding: 0;
        background: white;
    }
}
/* ==================================================================== */
/* 32. Scanner Page */
/* ==================================================================== */
.scanner-main {
    max-width: var(--max-width);
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    width: 100%;
}

.scanner-instruction {
    background: var(--epay-card-bg);
    color: var(--epay-text);
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    width: 100%;
    box-shadow: var(--shadow-card);
}

.scanner-frame {
    background: var(--epay-card-bg);
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-3d);
    max-width: 100%;
    width: 100%;
}

#reader {
    width: 100%;
    border-radius: 0.75rem;
    border: none;
    overflow: hidden;
    background: #1a1a1a;
}

#reader__dashboard_section_csr,
#reader__dashboard_section_swaplink {
    display: none !important;
}

.scanner-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 120px;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--epay-border);
    background: var(--epay-card-bg);
    color: var(--epay-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-3d);
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.control-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: var(--shadow-card);
}

.control-btn.active {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-color: #ffc107;
    color: #000;
}

.control-btn i {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.control-btn span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.scanner-status {
    margin-top: 1rem;
    max-width: 100%;
    width: 100%;
}

.scanner-status .alert {
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    border: none;
}

   INTERNATIONAL PRODUCTS PAGE
   Add to /css/style.css
   ======================================== */

/* Full-screen Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.page-loader .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 3px;
}

/* Country Section */
.country-section {
    margin-bottom: 1.5rem;
}
.country-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--epay-green);
}
.country-flag {
    font-size: 1.5rem;
}
.country-name {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

/* Products Grid - 2 columns base (320px) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.875rem 0.5rem 0.75rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:active {
    transform: scale(0.98);
}

/* Product Icon - Base 320px */
.product-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 0.625rem;
    padding: 6px;
}
.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    color: #333;
}
.product-type {
    font-size: 0.6rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.2rem;
}
.product-type.airtime { color: var(--epay-green); }
.product-type.data { color: #0d6efd; }
.product-type.utility { color: #fd7e14; }

/* Page Intro */
.page-intro h1 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}
.page-intro p {
    font-size: 0.8rem;
}

/* Secure Badge */
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #f8f9fa;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #666;
}
.secure-badge i {
    color: var(--epay-green);
}

/* ========================================
   360px+ (Standard Mobile)
   ======================================== */
@media (min-width: 360px) {
    .products-grid {
        gap: 0.75rem;
    }
    .product-card {
        padding: 1rem 0.625rem 0.875rem;
        border-radius: 14px;
    }
    .product-icon {
        width: 84px;
        height: 84px;
        margin-bottom: 0.75rem;
        padding: 8px;
    }
    .product-name {
        font-size: 0.8rem;
    }
    .product-type {
        font-size: 0.65rem;
    }
}

/* ========================================
   400px+ (Large Mobile)
   ======================================== */
@media (min-width: 400px) {
    .products-grid {
        gap: 0.875rem;
    }
    .product-card {
        padding: 1.125rem 0.75rem 1rem;
    }
    .product-icon {
        width: 96px;
        height: 96px;
        border-radius: 14px;
    }
    .product-name {
        font-size: 0.85rem;
    }
    .country-flag {
        font-size: 1.625rem;
    }
    .country-name {
        font-size: 1.05rem;
    }
}

/* ========================================
   480px+ (Phablet / 3 columns)
   ======================================== */
@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .product-card {
        padding: 1.25rem 0.75rem 1rem;
    }
    .product-icon {
        width: 88px;
        height: 88px;
    }
    .product-name {
        font-size: 0.85rem;
    }
    .page-intro h1 {
        font-size: 1.25rem;
    }
}

/* ========================================
   576px+ (Small Tablet)
   ======================================== */

/* ========================================
   768px+ (Tablet / 4 columns)
   ======================================== */

/* ========================================
   992px+ (Desktop)
   ======================================== */
/* ========================================

   WALLET TRANSFER PAGE
   ======================================== */

/* Balance Display Card */
.balance-display-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--epay-green);
}
.balance-display-card .balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--epay-green);
}

/* Quick Amount Buttons */
.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.quick-amount-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-amount-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
.quick-amount-btn:active {
    background: #dee2e6;
}

/* Selected Recipient Info */
.selected-recipient {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: none;
}

/* ========================================
   END WALLET TRANSFER PAGE

   RECEIPT / SUCCESS PAGE
   ======================================== */

/* Status Icon */
.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: scaleIn 0.4s ease-out;
}
.status-icon i {
    font-size: 2.5rem;
    color: white;
}
.status-icon.status-success {
    background: var(--epay-green);
}
.status-icon.status-error {
    background: #dc3545;
}
.status-icon.status-pending {
    background: #ffc107;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Amount Display */
.amount-display {
    font-size: 2rem;
    font-weight: 700;
}

/* Receipt Details */
.receipt-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}
.receipt-row:last-child {
    border-bottom: none;
}
.receipt-label {
    color: #6c757d;
    font-size: 0.875rem;
}
.receipt-value {
    font-weight: 600;
    text-align: right;
}

/* Responsive */

/* ========================================
   END RECEIPT / SUCCESS PAGE

   LIST CARD (Vouchers, Products, Menu Items)
   ======================================== */

.list-card-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.list-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.list-card:active {
    transform: translateX(2px);
}
.list-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.list-card-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.list-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-card-content {
    flex: 1;
    min-width: 0;
}
.list-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.125rem;
}
.list-card-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
}

.list-card-arrow {
    color: #adb5bd;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Responsive */
@media (min-width: 360px) {
    .list-card {
        padding: 1.125rem;
        gap: 1rem;
    }
    .list-card-icon {
        width: 64px;
        height: 64px;
    }
}


/* ========================================
   END LIST CARD

   LOADING PAGE
   ======================================== */

.loading-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-icon-wrapper > i {
    font-size: 2rem;
    color: var(--epay-green);
}
.loading-icon-wrapper .loading-spinner {
    position: absolute;
    width: 80px;
    height: 80px;
    border-width: 3px;
}


/* ========================================
   END LOADING PAGE

   PROVIDER BALANCE CARD (Vouchers, Products)
   ======================================== */

.provider-balance-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.provider-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.provider-info img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.provider-name {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}
.provider-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
}

.balance-info {
    text-align: right;
}
.balance-info .balance-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--epay-green);
}

/* Responsive */
@media (min-width: 360px) {
    .provider-balance-card {
        padding: 1.125rem;
    }
    .provider-info img {
        height: 56px;
    }
    .provider-name {
        font-size: 1.1rem;
    }
    .balance-info .balance-value {
        font-size: 1.375rem;
    }
}


/* ========================================
   END PROVIDER BALANCE CARD

   USER AVATAR (for provider-balance-card)
   ======================================== */

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-avatar i {
    font-size: 1.5rem;
    color: var(--epay-green);
}

@media (min-width: 360px) {
    .user-avatar {
        width: 56px;
        height: 56px;
    }
    .user-avatar i {
        font-size: 1.75rem;
    }
}

/* ========================================

   VOUCHER LIST
   ======================================== */

.voucher-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.voucher-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    gap: 0.75rem;
}

.voucher-info {
    flex: 1;
    min-width: 0;
}
.voucher-number {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}
.voucher-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--epay-green);
}
.voucher-date {
    font-size: 0.75rem;
    color: #6c757d;
}

.voucher-actions {
    flex-shrink: 0;
}

@media (min-width: 360px) {
    .voucher-item {
        padding: 1rem;
    }
    .voucher-number {
        font-size: 0.95rem;
    }
}

/* ========================================
   END VOUCHER LIST

   VOUCHER PIN DISPLAY
   ======================================== */

.voucher-pin-display {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 1rem;
    border: 2px dashed #2196f3;
}
.voucher-pin {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1565c0;
    word-break: break-all;
}

@media (min-width: 360px) {
    .voucher-pin {
        font-size: 1.75rem;
        letter-spacing: 3px;
    }
}


/* ========================================
   END VOUCHER PIN DISPLAY

   AGENT PORTAL
   ======================================== */

/* Agent Level Card */
.agent-level-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-radius: 16px;
    padding: 1.25rem;
}
.agent-level-card.intern { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.agent-level-card.team-leader { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.agent-level-card.regional-manager { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.agent-level-card.ambassador { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); color: #333; }

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}
.level-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    margin-bottom: 0.5rem;
}
.agent-level-card.ambassador .level-badge {
    background: rgba(0,0,0,0.1);
}
.level-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}
.level-name {
    font-size: 0.875rem;
    opacity: 0.85;
    margin: 0;
}

.level-code-section {
    text-align: right;
    flex-shrink: 0;
}
.level-code-section small {
    display: block;
    opacity: 0.75;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}
.agent-code {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    display: inline-block;
}
.agent-level-card.ambassador .agent-code {
    background: rgba(0,0,0,0.1);
}

.level-actions {
    display: flex;
    gap: 0.5rem;
}

/* Agent Stats Row */
.agent-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.agent-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.agent-stat-card .stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #333;
}
.agent-stat-card .stat-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* List Card Icon Colored Variants */
.list-card-icon-colored {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.list-card-icon-colored.green { background: #e8f5e9; color: #2e7d32; }
.list-card-icon-colored.blue { background: #e3f2fd; color: #1976d2; }
.list-card-icon-colored.purple { background: #f3e5f5; color: #7b1fa2; }
.list-card-icon-colored.orange { background: #fff3e0; color: #f57c00; }

/* Responsive */
@media (min-width: 360px) {
    .agent-level-card {
        padding: 1.5rem;
    }
    .level-title {
        font-size: 1.375rem;
    }
    .agent-code {
        font-size: 1.125rem;
    }
    .agent-stat-card .stat-value {
        font-size: 1.5rem;
    }
    .agent-stat-card .stat-label {
        font-size: 0.75rem;
    }
    .list-card-icon-colored {
        width: 52px;
        height: 52px;
        font-size: 1.375rem;
    }
}


/* ========================================
   END AGENT PORTAL

   AGENT NETWORK
   ======================================== */

/* Network Tabs */
.network-tabs {
    display: flex;
    gap: 0.5rem;
}
.network-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.network-tab.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Network Sections */
.network-section {
    display: none;
}
.network-section.active {
    display: block;
}

/* Agent List & Cards */
.agent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.agent-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.agent-card.highlighted {
    border: 2px solid #667eea;
}

/* Agent Avatar */
.agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.agent-avatar.sm {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
}
.agent-avatar.intern { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.agent-avatar.team-leader { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.agent-avatar.regional-manager { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.agent-avatar.ambassador { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); color: #333; }

/* Agent Info */
.agent-info {
    flex: 1;
    min-width: 0;
}
.agent-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agent-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Agent Level Badge */
.agent-level-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
}
.agent-level-badge.intern { background: #e8f5e9; color: #2e7d32; }
.agent-level-badge.team-leader { background: #e3f2fd; color: #1976d2; }
.agent-level-badge.regional-manager { background: #fce4ec; color: #c2185b; }
.agent-level-badge.ambassador { background: #fff3e0; color: #f57c00; }

.agent-code-small {
    font-family: monospace;
    font-size: 0.75rem;
    color: #888;
}

/* Agent Stat Mini (right side) */
.agent-stat-mini {
    text-align: center;
    flex-shrink: 0;
}
.agent-stat-mini .count {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}
.agent-stat-mini .label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
}

/* You Badge */
.you-badge {
    background: #667eea;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 1rem;
    font-size: 0.6rem;
    font-weight: 600;
    margin-left: 0.375rem;
    vertical-align: middle;
}

/* Upline Chain */
.upline-chain {
    position: relative;
    padding-left: 2rem;
}
.upline-chain::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}
.upline-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: 12px;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.upline-item::before {
    content: '';
    position: absolute;
    left: -1.4rem;
    top: 50%;
    width: 0.8rem;
    height: 2px;
    background: #dee2e6;
}
.upline-level {
    position: absolute;
    left: -2.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.empty-state h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}
.empty-state p {
    margin-bottom: 1rem;
}

/* Responsive */
@media (min-width: 360px) {
    .agent-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }
    .agent-name {
        font-size: 1rem;
    }
    .agent-level-badge {
        font-size: 0.7rem;
    }
}

/* ========================================
   END AGENT NETWORK

   AGENT INVITE
   ======================================== */

/* Invite Hero */
.invite-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}
.invite-hero i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
.invite-hero h2 {
    font-weight: 700;
    font-size: 1.375rem;
    margin: 0 0 0.25rem 0;
}
.invite-hero p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

/* Agent Code Display */
.agent-code-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.agent-code-display:active {
    transform: scale(0.98);
}

/* Quick Share Grid */
.quick-share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.quick-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.quick-share-btn:hover {
    transform: scale(1.05);
    text-decoration: none;
}
.quick-share-btn i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.quick-share-btn span {
    display: block;
}
.quick-share-btn.whatsapp { background: #25D366; color: white; }
.quick-share-btn.copy { background: #667eea; color: white; }
.quick-share-btn.sms { background: #007AFF; color: white; }
.quick-share-btn.email { background: #EA4335; color: white; }

/* Tip Card */
.tip-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 1rem;
}
.tip-card h6 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.tip-card ul {
    margin: 0;
    padding-left: 1.25rem;
}
.tip-card li {
    font-size: 0.8rem;
    color: #78350f;
    margin-bottom: 0.375rem;
}
.tip-card li:last-child {
    margin-bottom: 0;
}

/* Template Tabs */
.template-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}
.template-tab {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    background: #f1f5f9;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.template-tab.active {
    background: #667eea;
    color: white;
}

/* Template List & Cards */
.template-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.template-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.template-header {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.template-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.template-audience {
    font-size: 0.7rem;
    color: #64748b;
}
.template-body {
    padding: 1rem;
}
.template-message {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.875rem;
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
}
.template-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Earning List */
.earning-list {
    display: flex;
    flex-direction: column;
}
.earning-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}
.earning-row:last-child {
    border-bottom: none;
}
.earning-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}
.earning-dot.green { background: #10b981; }
.earning-dot.blue { background: #3b82f6; }
.earning-dot.purple { background: #8b5cf6; }
.earning-dot.orange { background: #f59e0b; }
.earning-percent {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Responsive */
@media (min-width: 360px) {
    .quick-share-btn {
        font-size: 0.7rem;
        padding: 0.75rem 0.5rem;
    }
    .template-message {
        font-size: 0.85rem;
        max-height: 250px;
    }
}


/* ========================================
   END AGENT INVITE

   AGENT EARNINGS
   ======================================== */

/* Earnings Hero */
.earnings-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}
.earnings-label {
    opacity: 0.8;
    font-size: 0.875rem;
}
.earnings-total {
    font-size: 2.25rem;
    font-weight: 800;
}
.earnings-breakdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.breakdown-item {
    text-align: center;
}
.breakdown-value {
    font-size: 1.1rem;
    font-weight: 700;
}
.breakdown-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Earnings Stats Grid */
.earnings-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.earnings-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.earnings-stat-card .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
}
.earnings-stat-card .stat-label {
    font-size: 0.7rem;
    color: #888;
}
.earnings-stat-card.highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}
.earnings-stat-card.highlight .stat-value {
    color: #2e7d32;
}

/* Commission List */
.commission-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.commission-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.commission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.commission-tags {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.commission-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2e7d32;
}

/* Commission Type Badge */
.commission-type {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}
.commission-type.topup {
    background: #e3f2fd;
    color: #1976d2;
}
.commission-type.cashout {
    background: #fff3e0;
    color: #f57c00;
}

/* Commission Level Badge */
.commission-level {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
}
.commission-level.l0 { background: #e8f5e9; color: #2e7d32; }
.commission-level.l1 { background: #e3f2fd; color: #1976d2; }
.commission-level.l2 { background: #fce4ec; color: #c2185b; }
.commission-level.l3 { background: #fff3e0; color: #f57c00; }

/* Commission Details */
.commission-details {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}
.commission-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

/* Commission Status Badge */
.commission-status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
}
.commission-status.pending { background: #fff3e0; color: #f57c00; }
.commission-status.paid { background: #e8f5e9; color: #2e7d32; }
.commission-status.cancelled { background: #ffebee; color: #c62828; }

/* Responsive */
@media (min-width: 360px) {
    .earnings-total {
        font-size: 2.5rem;
    }
    .earnings-stat-card .stat-value {
        font-size: 1.25rem;
    }
    .earnings-stat-card .stat-label {
        font-size: 0.75rem;
    }
}


/* ========================================
   END AGENT EARNINGS

   AGENT STATISTICS
   ======================================== */

/* Stats Hero Grid */
.stats-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.stats-hero-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.stats-hero-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    grid-column: span 2;
}
.stats-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}
.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
}
.stats-change {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}
.stats-change.positive { color: #4caf50; }
.stats-change.negative { color: #f44336; }
.stats-hero-card.primary .stats-change.positive { color: #a5d6a7; }
.stats-hero-card.primary .stats-change.negative { color: #ef9a9a; }

/* Bar Chart */
.bar-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding-top: 1rem;
}
.bar-chart-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bar-value {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.bar-fill {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}
.bar-label {
    font-size: 0.65rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Level Breakdown */
.level-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.level-breakdown-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.level-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.level-icon.intern { background: #e8f5e9; color: #2e7d32; }
.level-icon.team-leader { background: #e3f2fd; color: #1976d2; }
.level-icon.regional-manager { background: #fce4ec; color: #c2185b; }
.level-icon.ambassador { background: #fff3e0; color: #f57c00; }

.level-info {
    flex: 1;
}
.level-title {
    font-weight: 600;
    font-size: 0.85rem;
}
.level-progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-top: 0.25rem;
    overflow: hidden;
}
.level-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}
.level-progress-fill.intern { background: #4caf50; }
.level-progress-fill.team-leader { background: #2196f3; }
.level-progress-fill.regional-manager { background: #e91e63; }
.level-progress-fill.ambassador { background: #ff9800; }

.level-count {
    font-weight: 700;
    font-size: 1rem;
    min-width: 30px;
    text-align: right;
}

/* Performer List */
.performer-list {
    display: flex;
    flex-direction: column;
}
.performer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}
.performer-row:last-child {
    border-bottom: none;
}
.performer-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.performer-rank.gold { background: #ffd700; color: #333; }
.performer-rank.silver { background: #c0c0c0; color: #333; }
.performer-rank.bronze { background: #cd7f32; color: white; }

.performer-info {
    flex: 1;
    min-width: 0;
}
.performer-name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.performer-meta {
    font-size: 0.75rem;
    color: #888;
}
.performer-stat {
    text-align: right;
    flex-shrink: 0;
}
.performer-stat-value {
    font-weight: 700;
    font-size: 0.9rem;
}
.performer-stat-label {
    font-size: 0.65rem;
    color: #888;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
}
.activity-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #eee;
}
.activity-row:last-child {
    border-bottom: none;
}
.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.activity-content {
    flex: 1;
}
.activity-text {
    font-size: 0.85rem;
}
.activity-time {
    font-size: 0.7rem;
    color: #888;
}

/* Empty State Small */
.empty-state-small {
    text-align: center;
    padding: 1.5rem;
    color: #888;
    font-size: 0.875rem;
}

/* Responsive */
@media (min-width: 360px) {
    .stats-value {
        font-size: 1.75rem;
    }
    .bar-value {
        font-size: 0.75rem;
    }
    .bar-label {
        font-size: 0.7rem;
    }
}

/* ========================================
   END AGENT STATISTICS

   E PAY GUIDE
   ======================================== */

/* Guide Hero */
.guide-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}
.guide-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}
.guide-hero p {
    opacity: 0.9;
    margin: 0;
}

/* Guide Tabs */
.guide-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 56px;
    z-index: 99;
}
.guide-tab {
    flex: 1;
    min-width: max-content;
    padding: 0.875rem 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.guide-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Guide Sections */
.guide-section {
    display: none;
}
.guide-section.active {
    display: block;
}

/* Guide Content Area */
.guide-content {
    padding-bottom: 2rem;
}

/* Guide Card Title */
.guide-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #667eea;
}

/* Guide Check List */
.guide-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.guide-check-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
}
.guide-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Guide Highlight Boxes */
.guide-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
}
.guide-highlight h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.guide-highlight p {
    margin: 0;
    font-size: 0.9rem;
}
.guide-highlight.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.guide-highlight.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.guide-highlight.red {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

/* Guide Section Header */
.guide-section-header {
    background: #1f2937;
    color: white;
    padding: 0.875rem 1rem;
    margin: 1.25rem -1rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Guide Accordion */
.guide-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.accordion-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.accordion-trigger {
    width: 100%;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
}
.accordion-trigger::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: #6b7280;
    transition: transform 0.2s;
}
.accordion-item.open .accordion-trigger::after {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.accordion-item.open .accordion-content {
    max-height: 2000px;
}
.accordion-content > * {
    padding: 0 1.25rem;
}
.accordion-content > *:last-child {
    padding-bottom: 1.25rem;
}
.accordion-content p {
    margin-bottom: 0.75rem;
    color: #6b7280;
}
.accordion-content strong {
    color: #1f2937;
}

/* Guide Steps */
.guide-steps {
    counter-reset: step;
}
.guide-step {
    padding: 0.75rem 0 0.75rem 3rem;
    position: relative;
}
.guide-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 2rem;
    height: 2rem;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Guide Table */
.guide-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0.5rem 0;
}
.guide-table-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}
.guide-table-row:last-child {
    border-bottom: none;
}
.guide-table-row.header {
    font-weight: 600;
    background: #f9fafb;
    padding: 0.75rem;
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.guide-table-row.header span {
    flex: 1;
}
.guide-table-row span {
    flex: 1;
}

/* Responsive */
@media (max-width: 380px) {
    .guide-tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
}


/* ========================================
   END E PAY GUIDE

   WALLET TAGS PAGE
   =========================================== */

/* Tags Summary Card */
.tags-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tags-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.tags-summary-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tags-summary-row.total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

.tags-summary-row strong {
    font-weight: 700;
}

/* Tag Card */
.tag-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.tag-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tag-card.inactive {
    opacity: 0.6;
    background: #f8f9fa;
}

/* Tag Type Badge */
.tag-type-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-type-badge.personal {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tag-type-badge.event {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

/* Tag Header */
.tag-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Tag Avatar */
.tag-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: white;
}

.tag-avatar.personal {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.tag-avatar.event {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

@media (min-width: 360px) {
    .tag-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}

/* Tag Info */
.tag-info {
    flex: 1;
    min-width: 0;
}

.tag-name {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.25rem 0 0 0;
}

/* Tag Balance */
.tag-balance {
    text-align: right;
    flex-shrink: 0;
}

.tag-balance-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

@media (min-width: 360px) {
    .tag-balance-amount {
        font-size: 1.35rem;
    }
}

/* Tag Stats Row */
.tag-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.tag-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tag-stats i {
    font-size: 0.75rem;
}

/* Tag Actions */
.tag-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.tag-actions .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    min-width: 60px;
}

@media (max-width: 359px) {
    .tag-actions .btn {
        min-width: 50px;
        padding: 0.35rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Add Tag Button */
.add-tag-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px dashed #dee2e6;
    background: transparent;
    border-radius: 1rem;
    padding: 1.25rem;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
}

.add-tag-button:hover {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.add-tag-button i {
    font-size: 2rem;
}

.add-tag-content {
    text-align: left;
}

.add-tag-title {
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.add-tag-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
}

.add-tag-button:hover .add-tag-title,
.add-tag-button:hover .add-tag-subtitle {
    color: #10b981;
}

/* Empty State Small */
.empty-state-small {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1rem;
    text-align: center;
}

.empty-state-small i {
    font-size: 2.5rem;
    color: #dee2e6;
    margin-bottom: 0.5rem;
}

.empty-state-small p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* PIN Input */
.pin-input {
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.75rem;
    font-weight: 600;
    padding-left: 1rem;
}

/* Quick Amount Buttons (modal) */
.quick-amounts {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-amount-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: white;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-amount-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.quick-amount-btn:active {
    background: #667eea;
    color: white;
}
/* ===========================================

   TAG ALLOCATION PAGE
   =========================================== */

/* Scanner Section */
.allocate-scanner-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.allocate-scanner-section .scanner-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.allocate-scanner-section h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.allocate-scanner-section p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Scan Button */
.allocate-scan-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.allocate-scan-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.allocate-scan-btn:disabled {
    opacity: 0.8;
    cursor: wait;
}

/* Manual Entry Link */
.allocate-manual-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.allocate-manual-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* NFC Status */
.allocate-nfc-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Validated Section */
.allocate-validated {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.allocate-validated.show {
    display: block;
}

.validated-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.validated-icon {
    width: 50px;
    height: 50px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.validated-details h6 {
    margin: 0;
    color: #155724;
    font-weight: 600;
}

.validated-details small {
    color: #155724;
    opacity: 0.8;
}

/* Form Section */
.allocate-form-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: none;
}

.allocate-form-section.show {
    display: block;
}

.allocate-section-title {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #212529;
}

/* Quick Names */
.allocate-quick-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.allocate-quick-name-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 1rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.allocate-quick-name-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.allocate-quick-name-btn:active {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (min-width: 360px) {
    .allocate-scanner-section {
        padding: 2.5rem 2rem;
    }

    .allocate-scanner-section .scanner-icon {
        font-size: 4.5rem;
    }
}

/* ===========================================

   PORTAL MENU LIST (Merchant, Settings, etc.)
   =========================================== */

.portal-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-menu-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.portal-menu-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.portal-menu-item:active {
    transform: translateY(0);
}

/* Icon */
.portal-menu-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-menu-icon i {
    font-size: 1.25rem;
    color: white;
}

/* Text */
.portal-menu-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.portal-menu-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    line-height: 1.2;
}

.portal-menu-desc {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow */
.portal-menu-arrow {
    color: #adb5bd;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.portal-menu-item:hover .portal-menu-arrow {
    color: #667eea;
    transform: translateX(2px);
}

/* Loading State */
.portal-menu-item.loading {
    pointer-events: none;
}

.portal-menu-item.loading .portal-menu-icon,
.portal-menu-item.loading .portal-menu-text,
.portal-menu-item.loading .portal-menu-arrow {
    opacity: 0.5;
}

.portal-menu-item.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #667eea;
    border-top-color: transparent;
    border-radius: 50%;
    animation: portal-spin 0.8s linear infinite;
}

@keyframes portal-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (min-width: 360px) {
    .portal-menu-item {
        padding: 1rem 1.125rem;
    }

    .portal-menu-icon {
        width: 48px;
        height: 48px;
    }

    .portal-menu-icon i {
        font-size: 1.375rem;
    }

    .portal-menu-name {
        font-size: 0.95rem;
    }
}

/* ===========================================

   NFC STATUS BADGE
   =========================================== */

.nfc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.nfc-status-badge i {
    font-size: 0.7rem;
}

.nfc-status-badge.checking {
    background-color: #e9ecef;
    color: #6c757d;
}

.nfc-status-badge.available {
    background-color: #d1e7dd;
    color: #0f5132;
}

.nfc-status-badge.unavailable {
    background-color: #fff3cd;
    color: #664d03;
}

/* ===========================================

   ACTION BUTTON SPINNER
   =========================================== */

.action-spinner {
    display: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.btn.loading .btn-text {
    opacity: 0.6;
}

.btn.loading .action-spinner {
    display: block;
}

/* ===========================================

   AMOUNT INPUT DISPLAY (Merchant)
   =========================================== */

.amount-input-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.amount-input-display .currency-symbol {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.amount-input-display .amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    border: none;
    background: transparent;
    width: auto;
    max-width: 180px;
    text-align: left;
    padding: 0;
    color: #212529;
}

.amount-input-display .amount-value:focus {
    outline: none;
    box-shadow: none;
}

.amount-input-display .amount-value::placeholder {
    color: #adb5bd;
}

@media (min-width: 360px) {
    .amount-input-display .currency-symbol {
        font-size: 2.25rem;
    }

    .amount-input-display .amount-value {
        font-size: 2.75rem;
        max-width: 200px;
    }
}

/* ===========================================

   OUTLINE E PAY BUTTON
   =========================================== */

.btn-outline-epay {
    border: 2px solid #667eea;
    color: #667eea;
    background: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-outline-epay:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-outline-epay:disabled {
    border-color: #dee2e6;
    color: #adb5bd;
    background: #f8f9fa;
}
/* ===========================================

   BASKET PAGE
   =========================================== */

/* Main padding for checkout bar */
.basket-main-padded {
    padding-bottom: 180px !important;
}

/* Order Summary Card */
.basket-order-card {
    background: white;
    border: 2px solid #667eea;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 70px;
}

.basket-order-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.basket-order-number {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.basket-business-name {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 700;
}

.basket-order-total {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.basket-total-label {
    font-size: 0.6rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
}

.basket-total-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

@media (min-width: 360px) {
    .basket-total-amount {
        font-size: 2rem;
    }
}

/* Basket Items List */
.basket-items-list {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.basket-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    gap: 0.5rem;
}

.basket-item:last-child {
    border-bottom: none;
}

.basket-item-info {
    flex: 1;
    min-width: 0;
}

.basket-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.basket-item-desc {
    font-size: 0.7rem;
    color: #6c757d;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quantity Controls */
.basket-item-qty {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.basket-item-qty .qty-display {
    font-weight: 700;
    font-size: 1rem;
    width: 24px;
    text-align: center;
    color: #212529;
}

.basket-item-qty .qty-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Item Price */
.basket-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 70px;
    text-align: right;
    color: #212529;
    flex-shrink: 0;
}

/* Remove Button */
.basket-item-remove {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Checkout Bar */
.basket-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    padding: 0.75rem 1rem 0.5rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    max-width: 576px;
    margin: 0 auto;
    border-top: 1px solid #e9ecef;
}

.basket-checkout-bar .btn {
    font-size: 0.85rem;
    padding: 0.625rem 1rem;
}

.basket-checkout-bar .btn-lg {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
}

.basket-checkout-footer {
    text-align: center;
    font-size: 0.65rem;
    color: #adb5bd;
    margin: 0.75rem 0 0 0;
}

/* Responsive */
@media (min-width: 360px) {
    .basket-item {
        padding: 0.875rem 1rem;
    }

    .basket-item-name {
        font-size: 0.95rem;
    }
}

/* ===========================================

   MENU ITEM LIST (Add to Basket, Product Lists)
   =========================================== */

.menu-item-row {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    gap: 0.75rem;
}

.menu-item-row:last-child {
    border-bottom: none;
}

.menu-item-row:hover {
    background-color: #f8f9fa;
}

.menu-item-row:active {
    background-color: #e9ecef;
}

/* Item Info */
.menu-item-info {
    flex: 1;
    min-width: 0;
}

.menu-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item-desc {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0.125rem 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Item Meta (Price & Stock) */
.menu-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
    gap: 0.125rem;
}

.menu-item-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #212529;
}

.menu-item-stock {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Add Button Icon */
.menu-item-add {
    font-size: 1.25rem;
    color: #667eea;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.menu-item-row:hover .menu-item-add {
    transform: scale(1.1);
}

/* Responsive */
@media (min-width: 360px) {
    .menu-item-row {
        padding: 1rem 1.125rem;
    }

    .menu-item-name {
        font-size: 1rem;
    }

    .menu-item-add {
        font-size: 1.375rem;
    }
}
/* ===========================================

   TOP UP PAGE
   =========================================== */

/* Balance Card */
.topup-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: white;
}

.topup-balance-info {
    flex: 1;
    min-width: 0;
}

.topup-balance-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    color: white;
}

.topup-balance-desc {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.85;
    line-height: 1.3;
}

.topup-balance-amount {
    font-size: 1.75rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 360px) {
    .topup-balance-card {
        padding: 1.25rem;
    }

    .topup-balance-title {
        font-size: 1rem;
    }

    .topup-balance-desc {
        font-size: 0.8rem;
    }

    .topup-balance-amount {
        font-size: 2rem;
    }
}

/* ===========================================

   CONFIRMATION MODAL (Reusable Pattern)
   =========================================== */

.confirm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.confirm-detail-row:last-child {
    border-bottom: none;
}

.confirm-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.confirm-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #212529;
}

.confirm-amount {
    font-size: 1.5rem;
    color: #10b981;
}

@media (min-width: 360px) {
    .confirm-value {
        font-size: 1.25rem;
    }

    .confirm-amount {
        font-size: 1.75rem;
    }
}
/* ===========================================

   RECEIPT PAGE (Reusable Pattern)
   =========================================== */

/* Page Layout */
.receipt-page-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.receipt-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 1.5rem 1rem;
}

/* Receipt Card */
.receipt-card {
    width: 100%;
    max-width: 420px;
    padding: 0;
    overflow: hidden;
}

/* Status Header */
.receipt-status-header {
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
}

.receipt-status-header.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.receipt-status-header.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.receipt-status-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.receipt-status-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.receipt-status-message {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Receipt Details */
.receipt-details {
    padding: 1.25rem 1.5rem;
}

.receipt-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.receipt-detail-row:last-child {
    border-bottom: none;
}

.receipt-detail-row.highlight {
    background: #f0fdf4;
    margin: 0.5rem -1.5rem 0;
    padding: 1rem 1.5rem;
    border-bottom: none;
    border-top: 2px solid #10b981;
}

.receipt-detail-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.receipt-detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    text-align: right;
}

/* Receipt Actions */
.receipt-actions {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (min-width: 360px) {
    .receipt-status-header {
        padding: 2.5rem 2rem;
    }

    .receipt-status-icon {
        font-size: 4rem;
    }

    .receipt-status-title {
        font-size: 1.75rem;
    }

    .receipt-details {
        padding: 1.5rem 2rem;
    }

    .receipt-detail-row.highlight {
        margin: 0.5rem -2rem 0;
        padding: 1rem 2rem;
    }

    .receipt-actions {
        padding: 1.5rem 2rem;
    }
}

/* ===========================================

   PAYMENT METHOD BUTTONS (Reusable Pattern)
   =========================================== */

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method-btn {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.2s ease;
}

.payment-method-btn i {
    font-size: 1.25rem;
}

.payment-method-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Purple Button (Wristband) */
.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-purple:hover:not(:disabled) {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: white;
}

.btn-purple:focus {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
}

.btn-purple:active:not(:disabled) {
    background-color: #4e2a8e;
    border-color: #4e2a8e;
    color: white;
}

/* Amount Input Display */
.amount-input-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1rem;
    gap: 0.25rem;
}

.currency-symbol {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    border: none;
    background: transparent;
    max-width: 180px;
    padding: 0;
}

.amount-value:focus {
    outline: none;
    box-shadow: none;
}

.amount-value::placeholder {
    color: #adb5bd;
}

/* Responsive */
@media (min-width: 360px) {
    .payment-method-btn {
        padding: 1.125rem 1.5rem;
        font-size: 0.95rem;
    }

    .payment-method-btn i {
        font-size: 1.375rem;
    }

    .currency-symbol {
        font-size: 2.25rem;
    }

    .amount-value {
        font-size: 2.75rem;
        max-width: 200px;
    }
}
/* ===========================================

   STATEMENT PAGE
   =========================================== */

/* Statement Balance Card */
.statement-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.statement-balance-info {
    flex: 1;
    min-width: 0;
}

.statement-balance-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    color: white;
}

.statement-balance-range {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.85;
}

.statement-balance-amount {
    text-align: right;
    flex-shrink: 0;
}

.statement-balance-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.125rem;
}

.statement-balance-value {
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
}

@media (min-width: 360px) {
    .statement-balance-card {
        padding: 1.25rem;
    }

    .statement-balance-value {
        font-size: 1.75rem;
    }
}

/* ===========================================

   TRANSACTION TYPE FILTER
   =========================================== */

.transaction-type-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.filter-btn.filter-in.active {
    background: #10b981;
    border-color: #10b981;
}

.filter-btn.filter-out.active {
    background: #ef4444;
    border-color: #ef4444;
}

.filter-btn i {
    font-size: 0.9rem;
}

@media (min-width: 360px) {
    .filter-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===========================================

   TRANSACTION LIST
   =========================================== */

.transaction-list {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.transaction-row {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e9ecef;
    gap: 0.75rem;
}

.transaction-row:last-child {
    border-bottom: none;
}

/* Transaction Icon */
.transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.transaction-icon.credit {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.transaction-icon.debit {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Transaction Info */
.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-desc {
    font-weight: 600;
    font-size: 0.875rem;
    color: #212529;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-time {
    font-size: 0.7rem;
    color: #6c757d;
    margin: 0.125rem 0 0 0;
}

/* Transaction Amount */
.transaction-amount {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.transaction-amount.credit {
    color: #10b981;
}

.transaction-amount.debit {
    color: #ef4444;
}

/* Responsive */
@media (min-width: 360px) {
    .transaction-row {
        padding: 1rem 1.125rem;
    }

    .transaction-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .transaction-desc {
        font-size: 0.9rem;
    }

    .transaction-amount {
        font-size: 1rem;
    }
}
/* ===========================================

   PAYOUT PAGE
   =========================================== */

/* Payout Balance Card */
.payout-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    color: white;
}

.payout-balance-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.payout-balance-amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

@media (min-width: 360px) {
    .payout-balance-amount {
        font-size: 2.25rem;
    }
}

/* Bank Account Box */
.bank-account-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
}

.bank-account-box.verified {
    border-color: #10b981;
    background: #f0fdf4;
}

.bank-account-box.pending {
    border-color: #f59e0b;
    background: #fffbeb;
}

.bank-account-box.rejected {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Payout Status Badges */
.payout-status-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.payout-status-badge.verified,
.payout-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.payout-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.payout-status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.payout-status-badge.rejected,
.payout-status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Fee Info Box */
.payout-fee-info {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.85rem;
    color: #92400e;
}

/* Payout Summary */
.payout-summary {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.payout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.payout-summary-row.total {
    border-top: 2px solid #dee2e6;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

/* Payout History */
.payout-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    gap: 0.75rem;
}

.payout-history-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.payout-history-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.payout-history-amount {
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
}

.payout-history-ref {
    font-size: 0.75rem;
    color: #6c757d;
    word-break: break-all;
}

.payout-history-date {
    font-size: 0.7rem;
    color: #adb5bd;
}

.payout-history-status {
    text-align: right;
    flex-shrink: 0;
}

.payout-history-completed {
    display: block;
    font-size: 0.65rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Info List */
.payout-info-list {
    padding-left: 1.25rem;
    margin: 0;
}

.payout-info-list li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #6c757d;
}
/* ===========================================

   PAYROLL PAGE
   =========================================== */

/* Payroll Balance Card */
.payroll-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    padding: 1.25rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payroll-balance-info {
    display: flex;
    flex-direction: column;
}

.payroll-balance-label {
    font-size: 0.8rem;
    opacity: 0.85;
}

.payroll-balance-amount {
    font-size: 1.75rem;
    font-weight: 800;
}

@media (min-width: 360px) {
    .payroll-balance-amount {
        font-size: 2rem;
    }
}

.payroll-balance-merchant {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.payroll-balance-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Upload Zone */
.payroll-upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payroll-upload-zone:hover,
.payroll-upload-zone.dragover {
    border-color: #667eea;
    background: #f8f9ff;
}

.payroll-upload-zone input[type="file"] {
    display: none;
}

.payroll-upload-icon {
    font-size: 3rem;
    color: #667eea;
}

.payroll-upload-spinner {
    width: 3rem;
    height: 3rem;
}

.payroll-upload-text {
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Stat Boxes */
.payroll-stat-box {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
}

.payroll-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.payroll-stat-label {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
}

/* Warning Box */
.payroll-warning-box {
    background: #fff3cd;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Payroll Tables */
.payroll-table {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.payroll-table th {
    background: #f8f9fa;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.payroll-table td {
    vertical-align: middle;
}

.payroll-table .table-success {
    background-color: #f0fdf4 !important;
}

.payroll-table .table-danger {
    background-color: #fef2f2 !important;
}
/* ===========================================

   MENU MANAGEMENT PAGE
   =========================================== */

/* Header Action Button (for + icon) */
.header-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-action-btn:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.header-action-btn i {
    font-size: 1.1rem;
}

/* Menu Management Row */
.menu-manage-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.menu-manage-row:last-of-type {
    border-bottom: none;
}

.menu-manage-row:active {
    background-color: #f8f9fa;
}

.menu-manage-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.menu-manage-name {
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-manage-desc {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-manage-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.menu-manage-price {
    font-weight: 700;
    color: #212529;
}

.menu-manage-stock {
    font-size: 0.75rem;
    color: #6c757d;
}

.menu-manage-stock.low {
    color: #dc3545;
    font-weight: 600;
}

.menu-manage-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Menu Action Buttons */
.menu-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.menu-action-btn.edit {
    color: #667eea;
}

.menu-action-btn.edit:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.menu-action-btn.delete {
    color: #dc3545;
}

.menu-action-btn.delete:hover {
    background: rgba(220, 53, 69, 0.1);
}

.menu-action-btn i {
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Empty State Small */
.empty-state-small {
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
}

.empty-state-small i {
    font-size: 2rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.5rem;
}

.empty-state-small p {
    margin: 0;
    font-size: 0.9rem;
}
/* ===========================================

   MENU ITEM FORM
   =========================================== */

/* Option Checkbox Grid */
.menu-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

/* Photo Preview */
.menu-photo-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 0.5rem;
    object-fit: cover;
}

/* Barcode Image */
.menu-barcode-img {
    max-width: 250px;
    height: auto;
}
/* ===========================================

   E PAY STORE / MALL
   =========================================== */

/* Store Balance Card */
.store-balance-card {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-balance-info {
    display: flex;
    flex-direction: column;
}

.store-balance-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.store-balance-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Products Grid - Mobile First (2 columns) */
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}


/* Product Card */
.store-product-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.store-product-card:hover {
    color: inherit;
}

.store-product-card:active {
    transform: scale(0.98);
}


/* Product Image */
.store-product-image-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    background: #f8f9fa;
}


.store-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.store-product-placeholder i {
    font-size: 2.5rem;
    color: #adb5bd;
}

/* Badges */
.store-paxi-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.store-stock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ffc107;
    color: #212529;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Product Body */
.store-product-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.store-product-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #212529;
}


.store-product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #198754;
    margin-bottom: 0.25rem;
}

.store-product-shipping {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0;
}
/* ===========================================

   BILLER SELECTION PAGE
   =========================================== */

/* Page Banner */
.biller-page-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.biller-page-banner > i {
    font-size: 2rem;
    opacity: 0.9;
}

.biller-banner-text {
    display: flex;
    flex-direction: column;
}

.biller-banner-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.biller-banner-desc {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Biller List */
.biller-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Biller Option Row */
.biller-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.biller-option:hover {
    color: inherit;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.biller-option:active {
    transform: scale(0.98);
}

/* Biller Icon */
.biller-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f8f9fa;
}

.biller-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Biller Info */
.biller-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.biller-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
}

.biller-desc {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow */
.biller-arrow {
    flex-shrink: 0;
    color: #adb5bd;
    font-size: 0.9rem;
}
/* ===========================================

   MY ORDERS PAGE
   =========================================== */

/* Order Card */
.order-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.875rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.order-number {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.8rem;
    color: #212529;
}

.order-card-body {
    padding: 0.875rem;
}

/* Order Product Row */
.order-product-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}


.order-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.order-product-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-product-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

.order-product-total {
    font-weight: 700;
    font-size: 1rem;
    color: #198754;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Paxi Badge */
.order-paxi-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: 600;
    margin-top: 0.75rem;
}

/* Tracking Info */
.order-tracking-info {
    font-size: 0.8rem;
    color: #856404;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff3cd;
    border-radius: 6px;
}
/* ===========================================

   ORDER CONFIRMATION PAGE
   =========================================== */

/* Success Icon */
.order-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #198754, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: orderSuccessPop 0.5s ease-out;
}

.order-success-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes orderSuccessPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Order Confirmation Card */
.order-confirm-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.order-confirm-header {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
    padding: 1.25rem;
    text-align: center;
}

.order-confirm-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.order-confirm-number {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
}

.order-confirm-body {
    padding: 1rem;
}

/* Product Info */
.order-confirm-product {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.order-confirm-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.order-confirm-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Paxi Box */
.order-paxi-box {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.order-paxi-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.order-paxi-code {
    display: block;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

.order-paxi-store {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Delivery Box */
.order-delivery-box {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.order-delivery-box span {
    display: block;
}

/* Price Breakdown */
.order-price-breakdown {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.order-price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.9rem;
}

.order-price-row.total {
    border-top: 1px solid #e9ecef;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
}

/* Instructions */
.order-instructions {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 0.875rem;
    font-size: 0.85rem;
    color: #856404;
}
/* ===========================================

   PRODUCT DETAIL PAGE
   =========================================== */

/* Product Hero */
.product-hero {
    background: #f8f9fa;
    width: 100%;
}

.product-hero img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
}


.product-hero-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero-placeholder i {
    font-size: 4rem;
    color: #adb5bd;
}

/* Product Info */
.product-detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-detail-desc {
    color: #6c757d;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #198754;
    margin-bottom: 0.25rem;
}

.product-detail-price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6c757d;
}


.product-detail-stock {
    font-size: 0.8rem;
    color: #6c757d;
}

/* MOQ Info */
.product-moq-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #1565c0;
}

/* Video Container */
.product-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 1rem;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Quantity Selector */
.product-qty-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    background: white;
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-qty-btn:active {
    background: #e9ecef;
    transform: scale(0.95);
}

.product-qty-input {
    width: 70px;
    height: 44px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.product-qty-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Paxi Box */
.product-paxi-box {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 0.5rem;
    padding: 0.875rem;
}

/* Order Summary */
.product-order-summary {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 0.875rem;
}

.product-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.product-summary-row:last-child {
    border-bottom: none;
}

.product-summary-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 2px solid #dee2e6;
    border-bottom: none;
}

/* Balance Warning */
.product-balance-warning {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 0.5rem;
    padding: 0.875rem;
    margin-bottom: 1rem;
    color: #e65100;
}

/* Payment Method */
.product-payment-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}
/* ===========================================

   AGENT SIGNUP PAGE
   =========================================== */

/* Page Body */
.agent-signup-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.agent-signup-main {
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Card */
.agent-hero-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.agent-hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.agent-hero-icon i {
    font-size: 2.5rem;
    color: white;
}

/* Price Tag */
.agent-price-tag {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 1rem;
    display: inline-block;
    margin: 1rem 0;
}

.agent-price-tag small {
    font-size: 1rem;
    opacity: 0.9;
    display: block;
}

/* Commission Breakdown */
.agent-commission-breakdown {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.agent-commission-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.agent-commission-row.total {
    border-top: 2px solid #dee2e6;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-weight: 700;
}

/* Passive Income Badge */
.agent-passive-badge {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #744210;
    padding: 0.4rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highlight Box */
.agent-highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
    border-radius: 1rem;
    padding: 1.25rem;
}

/* Benefit Items */
.agent-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.agent-benefit-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.agent-benefit-icon {
    width: 48px;
    height: 48px;
    background: #f0f7ff;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agent-benefit-icon i {
    font-size: 1.5rem;
    color: #667eea;
}

.agent-benefit-icon.green {
    background: #f0fff4;
}

.agent-benefit-icon.green i {
    color: #38a169;
}

.agent-benefit-icon.orange {
    background: #fff8e6;
}

.agent-benefit-icon.orange i {
    color: #f59f00;
}

/* Balance Display */
.agent-balance-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Insufficient Badge */
.agent-insufficient-badge {
    background: #fff5f5;
    color: #c53030;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Activate Button */
.agent-activate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.agent-activate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.agent-activate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* ===========================================

   BILLER PAYMENT PAGE
   =========================================== */

/* Copy Toast */
.biller-copy-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
}

.biller-copy-toast.show {
    display: block;
}

/* Biller Balance Card */
.biller-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.biller-balance-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.biller-logo-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.biller-logo-wrap img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.biller-info {
    display: flex;
    flex-direction: column;
}

.biller-name {
    font-weight: 600;
    font-size: 1rem;
}

.biller-type {
    font-size: 0.8rem;
    opacity: 0.85;
}

.biller-balance-right {
    text-align: right;
}

.biller-balance-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

.biller-balance-amount {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Quick Select Pills */
.biller-quick-select {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.875rem;
}

.biller-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.biller-account-pill {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 2rem;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.biller-account-pill:hover {
    border-color: #667eea;
}

.biller-account-pill.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Confirmation */
.biller-confirm-icon {
    width: 64px;
    height: 64px;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.biller-confirm-icon i {
    font-size: 2rem;
    color: #198754;
}

.biller-confirm-details {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.biller-confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.biller-confirm-row:last-child {
    border-bottom: none;
}

.biller-confirm-row span:first-child {
    color: #6c757d;
}

.biller-confirm-row span:last-child {
    font-weight: 600;
}

.biller-confirm-row.total {
    border-top: 2px solid #dee2e6;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-bottom: none;
}

.biller-confirm-row.total span:last-child {
    font-size: 1.25rem;
}

/* History Items */
.biller-history-item {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
}

/* Token Display */
.biller-token-display {
    font-size: 1.25rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px dashed #667eea;
    border-radius: 0.5rem;
    user-select: all;
    word-break: break-all;
    text-align: center;
}

/* ===========================================

   BILLER PAYMENT PAGE (request_quote_new.php)
   =========================================== */

/* Copy Toast */
.biller-copy-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
}

.biller-copy-toast.show {
    display: block;
}

/* Balance Card with Biller Info */
.biller-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.biller-balance-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.biller-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.biller-icon-wrap img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.biller-info {
    display: flex;
    flex-direction: column;
}

.biller-info .biller-name {
    font-weight: 600;
    font-size: 1rem;
}

.biller-info .biller-type {
    font-size: 0.75rem;
    opacity: 0.85;
}

.biller-balance-right {
    text-align: right;
}

.biller-balance-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.85;
}

.biller-balance-amount {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Quick Select Pills */
.biller-quick-select {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.biller-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.biller-account-pill {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 1.5rem;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.biller-account-pill:hover {
    border-color: #667eea;
}

.biller-account-pill.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Confirmation Icon */
.biller-confirm-icon {
    width: 64px;
    height: 64px;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.biller-confirm-icon i {
    font-size: 2rem;
    color: #198754;
}

/* Confirmation Details */
.biller-confirm-details {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.biller-confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.biller-confirm-row:last-child {
    border-bottom: none;
}

.biller-confirm-row.total {
    border-top: 2px solid #dee2e6;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-bottom: none;
}

/* History Items */
.biller-history-item {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
}

/* Token Display */
.biller-token-display {
    font-size: 1.25rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px dashed #667eea;
    border-radius: 0.5rem;
    user-select: all;
    word-break: break-all;
    text-align: center;
}
/* ===========================================

   MERCHANT OPTIONS PAGE
   =========================================== */

/* Hero Section */
.merchant-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.merchant-hero-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.merchant-hero-icon i {
    font-size: 2rem;
}

/* Balance Card */
.merchant-balance-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.merchant-balance-info {
    display: flex;
    flex-direction: column;
}

.merchant-balance-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.merchant-balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

/* Setup Alert */
.merchant-setup-alert {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #e65100;
}

.merchant-setup-alert i {
    color: #ff9800;
}

/* Action Cards */
.merchant-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.merchant-action-card:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.merchant-action-card:active {
    transform: scale(0.98);
}

.merchant-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.merchant-action-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Action Card Color Variants */
.merchant-action-card.purple .merchant-action-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.merchant-action-card.green .merchant-action-icon {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.merchant-action-card.orange .merchant-action-icon {
    background: linear-gradient(135deg, #ff9800, #ff5722);
}

.merchant-action-card.blue .merchant-action-icon {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.merchant-action-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.merchant-action-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
}

.merchant-action-desc {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
}

.merchant-action-arrow {
    color: #adb5bd;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Benefit Cards */
.merchant-benefit-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

.merchant-benefit-card > i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.merchant-benefit-text {
    display: flex;
    flex-direction: column;
}

.merchant-benefit-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
}

.merchant-benefit-desc {
    font-size: 0.75rem;
    color: #6c757d;
}
/* ===========================================

   NEARBY MERCHANTS PAGE
   =========================================== */

/* Location Card */
.nearby-location-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.nearby-location-card > i {
    font-size: 1.5rem;
}

.nearby-location-card.error {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
}

/* Search Row */
.nearby-search-row {
    display: flex;
    gap: 0.5rem;
}

.nearby-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.nearby-radius-select {
    width: auto;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border: 1px solid #dee2e6;
}

/* States */
.nearby-state {
    text-align: center;
    padding: 2rem 1rem;
}

.nearby-state-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.nearby-state-icon.loading {
    color: #667eea;
    animation: nearbyPulse 1.5s infinite;
}

.nearby-state-icon.empty {
    color: #dee2e6;
}

@keyframes nearbyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Results Info */
.nearby-results-info {
    font-size: 0.8rem;
    color: #6c757d;
    padding: 0.5rem 0;
}

/* Merchant Card */
.nearby-merchant-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #eee;
}

.nearby-merchant-card:last-child {
    border-bottom: none;
}

.nearby-merchant-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nearby-merchant-info {
    flex: 1;
    min-width: 0;
}

.nearby-merchant-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    margin-bottom: 0.15rem;
}

.nearby-merchant-type {
    display: inline-block;
    background: #f0f0f0;
    color: #6c757d;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
}

.nearby-merchant-address {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.nearby-merchant-features {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nearby-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    background: #e3f2fd;
    color: #1976d2;
}

/* Distance & Actions */
.nearby-merchant-distance {
    text-align: right;
    flex-shrink: 0;
}

.nearby-distance-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.nearby-merchant-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nearby-merchant-actions .btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive */
@media (max-width: 400px) {
    .nearby-merchant-card {
        flex-wrap: wrap;
    }

    .nearby-merchant-distance {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px dashed #eee;
    }

    .nearby-merchant-actions {
        flex-direction: row;
    }

    .nearby-distance-badge {
        margin-bottom: 0;
    }
}
/* ===========================================

   MERCHANT REGISTRATION PAGE
   =========================================== */

/* Page Layout */
.merchant-reg-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.merchant-reg-main {
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.merchant-reg-hero {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    text-align: center;
}

.merchant-reg-hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.merchant-reg-hero-icon i {
    font-size: 2.5rem;
    color: white;
}

.merchant-reg-price-tag {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 1rem;
    display: inline-block;
}

.merchant-reg-price-tag small {
    font-size: 1rem;
    opacity: 0.9;
    display: block;
}

/* Benefit Items */
.merchant-reg-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.merchant-reg-benefit:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.merchant-reg-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.merchant-reg-benefit-icon i {
    font-size: 1.5rem;
}

.merchant-reg-benefit-icon.green {
    background: #f0fff4;
}

.merchant-reg-benefit-icon.green i {
    color: #38a169;
}

.merchant-reg-benefit-icon.purple {
    background: #f3e8ff;
}

.merchant-reg-benefit-icon.purple i {
    color: #667eea;
}

.merchant-reg-benefit-icon.orange {
    background: #fff8f0;
}

.merchant-reg-benefit-icon.orange i {
    color: #dd6b20;
}

.merchant-reg-benefit-text {
    display: flex;
    flex-direction: column;
}

.merchant-reg-benefit-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
}

.merchant-reg-benefit-desc {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Commission Breakdown */
.merchant-reg-commission {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.merchant-reg-commission-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.merchant-reg-commission-row.total {
    border-top: 2px solid #dee2e6;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
}

/* Referrer Info */
.merchant-reg-referrer-info {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #276749;
}

/* Balance Display */
.merchant-reg-balance {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.merchant-reg-balance-col {
    display: flex;
    flex-direction: column;
}

.merchant-reg-balance-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.merchant-reg-balance-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
}

/* Insufficient Balance */
.merchant-reg-insufficient {
    background: #fff5f5;
    color: #c53030;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

/* Activate Button */
.merchant-reg-activate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.merchant-reg-activate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.merchant-reg-activate-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.merchant-reg-activate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* ===========================================

   ADMIN PAGES (Merchandise, Orders, etc.)
   =========================================== */

/* Stats Row */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.admin-stat-card.clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.admin-stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.admin-stat-card.clickable:active {
    transform: scale(0.98);
}

.admin-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Action Buttons */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Table Container */
.admin-table-container {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Admin Table */
.admin-table {
    margin-bottom: 0;
}

.admin-table thead {
    background: #f8f9fa;
}

.admin-table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.admin-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

/* Product Display */
.admin-product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.admin-product-placeholder {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.admin-product-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
}

.admin-product-category {
    font-size: 0.75rem;
    color: #6c757d;
}

.admin-product-price {
    font-weight: 700;
    color: #212529;
}

.admin-product-profit {
    font-size: 0.75rem;
    color: #198754;
}

/* Responsive */
@media (max-width: 576px) {
    .admin-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .admin-stat-card {
        padding: 0.75rem 0.5rem;
    }

    .admin-stat-value {
        font-size: 1.25rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .admin-product-img,
    .admin-product-placeholder {
        width: 40px;
        height: 40px;
    }
}
/* ===========================================

   ADMIN FORMS (Add/Edit Product, etc.)
   =========================================== */

/* Form Sections */
.admin-form-section {
    margin-bottom: 0;
}

.admin-form-section-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: #212529;
}

.admin-form-section-title i {
    margin-right: 0.5rem;
}

/* Photo Preview */
.admin-photo-preview {
    max-width: 150px;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
    display: block;
}

/* Video Preview */
.admin-video-preview {
    position: relative;
    width: 100%;
    max-width: 320px;
    padding-bottom: 180px;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 0.75rem;
}

.admin-video-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* ===========================================

   ADMIN ORDERS PAGE
   =========================================== */

/* Order Cards */
.admin-order-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.admin-order-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-order-body {
    padding: 1rem;
}

.admin-order-number {
    font-family: monospace;
    font-weight: 600;
}

.admin-order-timeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.35rem;
}

.admin-order-timeline i {
    font-size: 0.8rem;
}

.admin-order-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #198754;
}

/* Product Display */
.admin-order-product {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-order-product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

/* Customer Info */
.admin-customer-info {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Paxi Box */
.admin-paxi-box {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 0.5rem;
    padding: 0.875rem;
    margin-bottom: 1rem;
}

.admin-paxi-code {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Tracking Box */
.admin-tracking-box {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.admin-tracking-input {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s, background 0.2s;
}

.admin-tracking-input:focus-within {
    border-color: #0d6efd;
    background: white;
}

/* Filter Buttons */
.admin-filter-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.admin-filter-btn {
    position: relative;
    white-space: nowrap;
    min-height: 38px;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.admin-filter-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Action Buttons */
.admin-action-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

/* Responsive - Orders */
/* ===========================================

   ADMIN EFT PAYOUTS PAGE
   =========================================== */

/* Payout Cards */
.admin-payout-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.admin-payout-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-payout-body {
    padding: 1rem;
}

/* Status Badges */
.admin-payout-status {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-payout-status.pending {
    background: #fff3cd;
    color: #856404;
}

.admin-payout-status.processing {
    background: #cce5ff;
    color: #004085;
}

.admin-payout-status.completed {
    background: #d4edda;
    color: #155724;
}

.admin-payout-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Amount Display */
.admin-payout-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #198754;
}

.admin-payout-fee {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Bank Details */
.admin-bank-details {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.admin-bank-label {
    color: #6c757d;
    font-size: 0.7rem;
}

/* Merchant Info */
.admin-merchant-info {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Copy Button */
.admin-copy-btn {
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.admin-copy-btn:hover {
    background: #e9ecef;
}

/* Summary Box */
.admin-payout-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

/* ============================================
   ACTION ICON STYLES
   ============================================ */
.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon i {
    font-size: 1.5rem;
    color: #fff;
}

/* Professional Financial Services Gradients */
.icon-primary { background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%); }
.icon-success { background: linear-gradient(135deg, #0f766e 0%, #115e59 100%); }
.icon-money { background: linear-gradient(135deg, #166534 0%, #14532d 100%); }
.icon-info { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); }
.icon-secondary { background: linear-gradient(135deg, #475569 0%, #334155 100%); }
.icon-accent { background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%); }
.icon-warning { background: linear-gradient(135deg, #b45309 0%, #92400e 100%); }
.icon-dark { background: linear-gradient(135deg, #374151 0%, #1f2937 100%); }
/* Colorful Icon Gradients (Dashboard) */
.icon-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.icon-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.icon-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.icon-teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.icon-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.icon-indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.icon-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.icon-rose { background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.icon-sky { background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%); }
.icon-emerald { background: linear-gradient(135deg, #34d399 0%, #10b981 100%); }
.icon-violet { background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%); }
.icon-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.list-card-icon-colored.blue i { color: #3b82f6 !important; }
.list-card-icon-colored.green i { color: #10b981 !important; }
.list-card-icon-colored.purple i { color: #8b5cf6 !important; }
.list-card-icon-colored.orange i { color: #f59e0b !important; }

/* White icons inside gradient containers */
[class*="icon-"] i {
    color: white;
}
#tab-standard.active { display: block !important; }
.icon-violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
