/* ══════════════════════════════════════════════════════════════════════════
   Inter Express Link — Brand Design System (IEL)
   Consolidated brand theme restored and unified from original templates.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Same CSS as Detail page, plus breadcrumb & page header ─── */
    :root {
        --iel-primary: #0B72BA;
        --iel-primary-dk: #08538C;
        --iel-gold: #FEDE00;
        --iel-light-blue: #93CAED;
        --iel-bg: #F7F8FC;
        --iel-card: #FFFFFF;
        --iel-text: #1A1A2E;
        --iel-muted: #7A7A9D;
        --iel-border: #E2E4EF;
        --iel-radius: 12px;
        --iel-shadow: 0 2px 12px rgba(0,0,0,.07);
    }

    /* ── Breadcrumb ───────────────────────────────────────────────── */
    .iel-breadcrumb {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: .85rem;
        color: var(--iel-muted);
        margin-bottom: 20px;
    }
    .iel-breadcrumb a {
        color: var(--iel-primary);
        text-decoration: none;
    }
    .iel-breadcrumb a:hover {
        text-decoration: underline;
    }

    /* ── Page Header ──────────────────────────────────────────────── */
    .iel-page-header {
        background: linear-gradient(135deg, var(--iel-primary-dk), var(--iel-primary));
        color: #fff;
        padding: 28px 32px;
        border-radius: var(--iel-radius);
        margin-bottom: 24px;
    }
    .iel-page-header__title {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }
    .iel-page-header__sub {
        margin: 4px 0 0;
        opacity: .8;
        font-size: .85rem;
    }

    /* ── Alert (danger kept red for errors) ───────────────────────── */
    .iel-alert {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: .9rem;
    }
    .iel-alert--danger {
        background: #FFEBEE;
        color: #C62828;
        border-left: 4px solid #C62828;
    }

    /* ── Form Grid ────────────────────────────────────────────────── */
    .iel-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    @@media (max-width:768px) {
        .iel-form-grid {
            grid-template-columns: 1fr;
        }
    }

    /* ── Cards ────────────────────────────────────────────────────── */
    .iel-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 24px;
    }
    .iel-section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
        font-weight: 700;
        color: var(--iel-text);
        margin: 0 0 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--iel-border);
    }

    /* ── Fields ──────────────────────────────────────────────────── */
    .iel-field {
        margin-bottom: 16px;
    }
    .iel-field-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .iel-label {
        display: block;
        font-size: .8rem;
        font-weight: 600;
        color: var(--iel-muted);
        margin-bottom: 5px;
        text-transform: uppercase;
        letter-spacing: .4px;
    }
    .iel-input {
      width: 100%;
      padding: 9px 12px;
      border: 1.5px solid var(--iel-border);
      border-radius: 8px;
      font-size: .9rem;
      background: #fff;
      color: var(--iel-text);
      outline: none;
      transition: border .2s;
      box-sizing: border-box;
    }
    .iel-input:focus {
        border-color: var(--iel-primary);
        box-shadow: 0 0 0 3px rgba(11,114,186,.12);
    }
    .iel-textarea {
        resize: vertical;
        min-height: 80px;
    }
    .iel-error {
        display: block;
        color: #C62828;
        font-size: .78rem;
        margin-top: 4px;
    }

    /* ── Radio Group ──────────────────────────────────────────────── */
    .iel-radio-group {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }
    .iel-radio {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        font-size: .875rem;
    }
    .iel-radio input {
        accent-color: var(--iel-primary);
    }

    /* ── Info Boxes ────────────────────────────────────────────────── */
    .iel-info-box {
        display: flex;
        gap: 10px;
        background: #FFF8E1;
        border: 1px solid #FFE082;
        border-radius: 8px;
        padding: 12px;
        font-size: .82rem;
        color: #795548;
        margin-top: 16px;
    }
    .iel-info-box--note {
        background: #E8F5E9;
        border-color: #A5D6A7;
        color: #2E7D32;
    }
    .iel-img-preview {
        margin-top: 8px;
    }
    .iel-img-preview img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--iel-border);
    }

    /* ── Buttons ──────────────────────────────────────────────────── */
    .iel-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: all .2s;
    }
    .iel-btn--primary {
        background: var(--iel-primary);
        color: #fff;
    }
    .iel-btn--primary:hover {
        background: var(--iel-primary-dk);
    }
    .iel-btn--ghost {
        background: transparent;
        color: var(--iel-muted);
        border: 1.5px solid var(--iel-border);
    }
    .iel-btn--ghost:hover {
        background: var(--iel-bg);
    }
    .iel-form-actions {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding-top: 4px;
    }

    .text-muted {
        color: var(--iel-muted);
        font-size: .8rem;
    }

:root {
        --iel-primary: #0B72BA;
        --iel-primary-dk: #08538C;
        --iel-gold: #FEDE00;
        --iel-light-blue: #93CAED;
        --iel-bg: #F7F8FC;
        --iel-card: #FFFFFF;
        --iel-text: #1A1A2E;
        --iel-muted: #7A7A9D;
        --iel-border: #E2E4EF;
        --iel-radius: 12px;
        --iel-shadow: 0 2px 12px rgba(0,0,0,.07);
        --iel-warn: #E65100;
        --iel-warn-bg: #FFF3E0;
        --iel-success: #2E7D32;
        --iel-success-bg: #E8F5E9;
        --iel-danger: #C62828;
    }

    .iel-breadcrumb {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: .85rem;
        color: var(--iel-muted);
        margin-bottom: 20px;
    }

        .iel-breadcrumb a {
            color: var(--iel-primary);
            text-decoration: none;
        }

            .iel-breadcrumb a:hover {
                text-decoration: underline;
            }

    /* Profile Hero */
    .iel-profile-hero {
        background: linear-gradient(135deg, var(--iel-primary-dk), var(--iel-primary));
        color: #fff;
        padding: 28px 32px;
        border-radius: var(--iel-radius);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 24px;
        flex-wrap: wrap;
    }

    .iel-profile-hero--suspended {
        background: linear-gradient(135deg, #555, #777);
    }

    .iel-profile-hero--pending {
        background: linear-gradient(135deg, #5C4400, #F9A825);
    }

    .iel-profile-hero__avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(255,255,255,.2);
        border: 3px solid rgba(255,255,255,.5);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: 700;
        overflow: hidden;
        flex-shrink: 0;
    }

        .iel-profile-hero__avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .iel-profile-hero__info {
        flex: 1;
    }

        .iel-profile-hero__info h1 {
            margin: 0 0 4px;
            font-size: 1.6rem;
            font-weight: 700;
        }

    .iel-profile-hero__sub {
        margin: 0 0 10px;
        opacity: .8;
        font-size: .9rem;
    }

    .iel-profile-hero__badges {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .iel-profile-hero__actions {
        display: flex;
        gap: 10px;
        margin-left: auto;
        flex-wrap: wrap;
    }

    /* Alert Banners */
    .iel-alert {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        padding: 16px 20px;
        border-radius: var(--iel-radius);
        margin-bottom: 20px;
    }

    .iel-alert--suspended {
        background: #FFF3E0;
        border: 1.5px solid #FFCC80;
        color: #BF360C;
    }

    .iel-alert--pending {
        background: #FFF8E1;
        border: 1.5px solid #FFE082;
        color: #5C4400;
    }

    .iel-alert p {
        margin: 4px 0 0;
        font-size: .875rem;
    }

    /* Stats Strip */
    .iel-stats-strip {
        display: grid;
        grid-template-columns: repeat(4,1fr);
        gap: 16px;
        margin-bottom: 20px;
    }

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

    .iel-stats-strip__item {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 18px 20px;
    }

    .iel-stats-strip__label {
        font-size: .78rem;
        color: var(--iel-muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .4px;
        margin-bottom: 4px;
    }

    .iel-stats-strip__value {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--iel-text);
    }

    /* Tier progress */
    .iel-tier-progress-header {
        display: flex;
        justify-content: space-between;
        font-size: .875rem;
        margin-bottom: 10px;
    }

    .iel-progress-track {
        background: var(--iel-border);
        border-radius: 20px;
        height: 10px;
        overflow: hidden;
    }

    .iel-progress-fill {
        height: 100%;
        background: linear-gradient(90deg,var(--iel-primary),var(--iel-gold));
        border-radius: 20px;
        transition: width .4s;
    }

    .iel-tier-max {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--iel-warn);
        font-weight: 600;
    }

    /* Cards */
    .iel-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 24px;
    }

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

    .iel-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    @@media (max-width:768px) {
        .iel-form-grid {
            grid-template-columns: 1fr;
        }
    }

    .iel-section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
        font-weight: 700;
        color: var(--iel-text);
        margin: 0 0 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--iel-border);
    }

    /* DL */
    .iel-dl {
        display: grid;
        grid-template-columns: 140px 1fr;
        gap: 10px 16px;
        font-size: .875rem;
        margin: 0;
    }

    .iel-dl--horizontal {
        grid-template-columns: 160px 1fr;
    }

    .iel-dl dt {
        color: var(--iel-muted);
        font-weight: 600;
    }

    .iel-dl dd {
        margin: 0;
        color: var(--iel-text);
        word-break: break-word;
    }

    /* Status Badges */
    .iel-status {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: .75rem;
        font-weight: 600;
    }

    .iel-status--active {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .iel-status--inactive {
        background: #ECEFF1;
        color: #546E7A;
    }

    .iel-status--suspended {
        background: #FFEBEE;
        color: #C62828;
    }

    .iel-status--pending {
        background: #FFF8E1;
        color: #F57F17;
    }

    /* Tier Badges */
    .iel-tier-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .5px;
        text-transform: uppercase;
    }

    .iel-tier-badge--friend {
        background: #E3F2FD;
        color: #1565C0;
    }

    .iel-tier-badge--buddy {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .iel-tier-badge--partner {
        background: #FFF3E0;
        color: #E65100;
    }

    .iel-tier-badge--family {
        background: #F3E5F5;
        color: #6A1B9A;
    }

    .iel-tier-badge--supreme {
        background: linear-gradient(135deg,var(--iel-primary),var(--iel-gold));
        color: #fff;
    }

    /* Buttons */
    .iel-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: all .2s;
    }

    .iel-btn--primary {
        background: var(--iel-primary);
        color: #fff;
    }

        .iel-btn--primary:hover {
            background: var(--iel-primary-dk);
        }

    .iel-btn--secondary {
        background: #E3F2FD;
        color: #1565C0;
        border: 1.5px solid #90CAF9;
    }

        .iel-btn--secondary:hover {
            background: #BBDEFB;
        }

    .iel-btn--approve {
        background: linear-gradient(135deg,#2E7D32,#43A047);
        color: #fff;
    }

        .iel-btn--approve:hover {
            background: linear-gradient(135deg,#1B5E20,#2E7D32);
        }

    .iel-btn--success {
        background: #2E7D32;
        color: #fff;
    }

        .iel-btn--success:hover {
            background: #1B5E20;
        }

    .iel-btn--warn {
        background: #E65100;
        color: #fff;
    }

        .iel-btn--warn:hover {
            background: #BF360C;
        }

    .iel-btn--danger {
        background: #C62828;
        color: #fff;
    }

        .iel-btn--danger:hover {
            background: #8E0000;
        }

    .iel-btn--ghost {
        background: transparent;
        color: var(--iel-muted);
        border: 1.5px solid var(--iel-border);
    }

        .iel-btn--ghost:hover {
            background: var(--iel-bg);
        }

    .iel-form-actions {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding-top: 4px;
    }

    /* Modal */
    .iel-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .iel-modal {
        background: #fff;
        border-radius: var(--iel-radius);
        width: 480px;
        max-width: 94vw;
        box-shadow: 0 8px 40px rgba(0,0,0,.2);
        overflow: hidden;
    }

    .iel-modal__header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 18px 24px;
        font-weight: 700;
        font-size: 1rem;
        color: #fff;
    }

    .iel-modal__header--warn {
        background: linear-gradient(135deg,#BF360C,#E64A19);
    }

    .iel-modal__body {
        padding: 24px;
    }

        .iel-modal__body p {
            margin: 0 0 12px;
            font-size: .9rem;
        }

    .iel-modal__note {
        color: var(--iel-muted);
        font-size: .85rem !important;
        margin-bottom: 16px !important;
    }

    .iel-modal__footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding-top: 20px;
    }

    .iel-points-check {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: .875rem;
        margin-bottom: 16px;
    }

    .iel-points-check--ok {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .iel-points-check--fail {
        background: #FFEBEE;
        color: #C62828;
    }

    .iel-field {
        margin-bottom: 4px;
    }

        .iel-field label {
            display: block;
            font-size: .85rem;
            font-weight: 600;
            color: var(--iel-muted);
            margin-bottom: 6px;
        }

    .iel-textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1.5px solid var(--iel-border);
        border-radius: 8px;
        font-size: .875rem;
        resize: vertical;
        font-family: inherit;
    }

        .iel-textarea:focus {
            outline: none;
            border-color: var(--iel-primary);
        }

    /* Toast */
    .iel-toast {
        position: fixed;
        bottom: 28px;
        right: 28px;
        padding: 14px 20px;
        border-radius: 10px;
        color: #fff;
        font-size: .9rem;
        font-weight: 600;
        z-index: 2000;
        box-shadow: 0 4px 20px rgba(0,0,0,.2);
        animation: slideUp .3s ease;
    }

    .iel-toast--success {
        background: #2E7D32;
    }

    .iel-toast--error {
        background: #C62828;
    }

    @@keyframes slideUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }

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

    .text-muted {
        color: var(--iel-muted);
        font-size: .8rem;
    }

    .text-danger {
        color: var(--iel-danger);
    }

:root {
        --iel-primary: #0B72BA;
        --iel-primary-dk: #08538C;
        --iel-gold: #FEDE00;
        --iel-bg: #F7F8FC;
        --iel-card: #FFFFFF;
        --iel-text: #1A1A2E;
        --iel-muted: #7A7A9D;
        --iel-border: #E2E4EF;
        --iel-radius: 12px;
        --iel-shadow: 0 2px 12px rgba(0,0,0,.07);
    }

    .iel-breadcrumb {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: .85rem;
        color: var(--iel-muted);
        margin-bottom: 20px;
    }

        .iel-breadcrumb a {
            color: var(--iel-primary);
            text-decoration: none;
        }

            .iel-breadcrumb a:hover {
                text-decoration: underline;
            }

    .iel-form-header {
        margin-bottom: 24px;
    }

        .iel-form-header h1 {
            margin: 0 0 4px;
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--iel-text);
        }

        .iel-form-header p {
            margin: 0;
            color: var(--iel-muted);
            font-size: .9rem;
        }

    .iel-alert {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        padding: 12px 18px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: .9rem;
    }

    .iel-alert--danger {
        background: #FFEBEE;
        color: #C62828;
        border-left: 4px solid #C62828;
    }

    .iel-alert--pending {
        background: #FFF8E1;
        color: #5C4400;
        border-left: 4px solid #F9A825;
    }

    .iel-alert p {
        margin: 4px 0 0;
        font-size: .85rem;
    }

    .iel-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    @@media (max-width:768px) {
        .iel-form-grid {
            grid-template-columns: 1fr;
        }
    }

    .iel-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 24px;
    }

    .iel-section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
        font-weight: 700;
        color: var(--iel-text);
        margin: 0 0 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--iel-border);
    }

    .iel-field {
        margin-bottom: 16px;
    }

    .iel-field-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .iel-label {
        display: block;
        font-size: .8rem;
        font-weight: 600;
        color: var(--iel-muted);
        margin-bottom: 5px;
        text-transform: uppercase;
        letter-spacing: .4px;
    }

    .iel-input {
      width: 100%;
      padding: 9px 12px;
      border: 1.5px solid var(--iel-border);
      border-radius: 8px;
      font-size: .9rem;
      background: #fff;
      color: var(--iel-text);
      outline: none;
      transition: border .2s;
      box-sizing: border-box;
    }

        .iel-input:focus {
            border-color: var(--iel-primary);
            box-shadow: 0 0 0 3px rgba(11,114,186,.12);
        }

    .iel-textarea {
        resize: vertical;
        min-height: 80px;
    }

    .iel-error {
        display: block;
        color: #C62828;
        font-size: .78rem;
        margin-top: 4px;
    }

    .iel-radio-group {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }

    .iel-radio {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        font-size: .875rem;
    }

        .iel-radio input {
            accent-color: var(--iel-primary);
        }

    .iel-img-preview {
        margin-top: 8px;
    }

        .iel-img-preview img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--iel-border);
        }

    .iel-readonly-block {
        background: var(--iel-bg);
        border-radius: 8px;
        padding: 12px 14px;
        margin-bottom: 12px;
    }

    .iel-readonly-label {
        font-size: .78rem;
        font-weight: 600;
        color: var(--iel-muted);
        text-transform: uppercase;
        letter-spacing: .4px;
        margin-bottom: 6px;
    }

    .iel-readonly-value {
        font-size: .9rem;
        color: var(--iel-text);
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .iel-tier-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .5px;
        text-transform: uppercase;
    }

    .iel-tier-badge--friend {
        background: #E3F2FD;
        color: #1565C0;
    }

    .iel-tier-badge--buddy {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .iel-tier-badge--partner {
        background: #FFF3E0;
        color: #E65100;
    }

    .iel-tier-badge--family {
        background: #F3E5F5;
        color: #6A1B9A;
    }

    .iel-tier-badge--supreme {
        background: linear-gradient(135deg,var(--iel-primary),var(--iel-gold));
        color: #fff;
    }

    .iel-status--pending {
        background: #FFF8E1;
        color: #F57F17;
        display: inline-block;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: .75rem;
        font-weight: 600;
    }

    .iel-stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 8px;
    }

    .iel-stat-box {
        background: var(--iel-bg);
        border-radius: 8px;
        padding: 14px;
    }

    .iel-stat-label {
        font-size: .78rem;
        color: var(--iel-muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .4px;
        margin-bottom: 4px;
    }

    .iel-stat-value {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--iel-text);
    }

    .iel-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: all .2s;
    }

    .iel-btn--primary {
        background: var(--iel-primary);
        color: #fff;
    }

        .iel-btn--primary:hover {
            background: var(--iel-primary-dk);
        }

    .iel-btn--ghost {
        background: transparent;
        color: var(--iel-muted);
        border: 1.5px solid var(--iel-border);
    }

        .iel-btn--ghost:hover {
            background: var(--iel-bg);
        }

    .iel-form-actions {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding-top: 4px;
    }

    .text-muted {
        color: var(--iel-muted);
        font-size: .8rem;
    }

:root {
        /* ── Inter Express Thailand Brand Colors ──────────────── */
        --iel-primary: #0B72BA; /* Blue (11,114,186) */
        --iel-primary-dk: #08538C; /* Darker blue for hover/gradient */
        --iel-gold: #FEDE00; /* Gold (254,222,0) */
        --iel-light-blue: #93CAED; /* Light blue (147,202,237) */
        /* ── Neutral UI palette ────────────────────────────────── */
        --iel-bg: #F7F8FC;
        --iel-card: #FFFFFF;
        --iel-text: #1A1A2E;
        --iel-muted: #7A7A9D;
        --iel-border: #E2E4EF;
        --iel-radius: 12px;
        --iel-shadow: 0 2px 12px rgba(0,0,0,.07);
    }

    /* ── Page Header ─────────────────────────────────────────────── */
    .iel-page-header {
        background: linear-gradient(135deg, var(--iel-primary-dk), var(--iel-primary));
        color: #fff;
        padding: 28px 32px;
        border-radius: var(--iel-radius);
        margin-bottom: 24px;
    }

    .iel-page-header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .iel-page-header__title {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .iel-page-header__sub {
        margin: 4px 0 0;
        opacity: .8;
        font-size: .85rem;
    }

    /* ── Cards & Alerts ──────────────────────────────────────────── */
    .iel-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 20px;
    }

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

    .iel-alert {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: .9rem;
    }

    .iel-alert--success {
        background: #E8F5E9;
        color: #2E7D32;
        border-left: 4px solid #2E7D32;
    }

    .iel-alert--danger {
        background: #FFEBEE;
        color: #C62828;
        border-left: 4px solid #C62828;
    }

    /* ── Search Bar ──────────────────────────────────────────────── */
    .iel-search-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .iel-input {
      width: 100%;
      padding: 8px 12px;
      border: 1.5px solid var(--iel-border);
      border-radius: 8px;
      font-size: .875rem;
      background: #fff;
      color: var(--iel-text);
      outline: none;
      transition: border .2s;
    }

        .iel-input:focus {
            border-color: var(--iel-primary);
            box-shadow: 0 0 0 3px rgba(11,114,186,.12);
        }

    .iel-input--search {
        flex: 1;
        min-width: 220px;
    }

    .iel-input--select {
        min-width: 130px;
    }

    .iel-input--xs {
        max-width: 110px;
    }

    /* ── Buttons ─────────────────────────────────────────────────── */
    .iel-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 18px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: all .2s;
    }

    .iel-btn--primary {
        background: var(--iel-primary);
        color: #fff;
    }

        .iel-btn--primary:hover {
            background: var(--iel-primary-dk);
            color: #fff;
        }

    .iel-btn--secondary {
        background: #fff;
        color: var(--iel-primary);
        border: 1.5px solid var(--iel-primary);
    }

        .iel-btn--secondary:hover {
            background: var(--iel-primary);
            color: #fff;
        }

    .iel-btn--ghost {
        background: transparent;
        color: var(--iel-muted);
        border: 1.5px solid var(--iel-border);
    }

        .iel-btn--ghost:hover {
            background: var(--iel-bg);
        }

    .iel-btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        color: var(--iel-muted);
        transition: background .15s, color .15s;
    }

        .iel-btn-icon:hover {
            background: var(--iel-bg);
            color: var(--iel-text);
        }

    .iel-btn-icon--danger:hover {
        background: #FFEBEE;
        color: #C62828;
    }

    /* ── Result Summary ──────────────────────────────────────────── */
    .iel-result-summary {
        font-size: .85rem;
        color: var(--iel-muted);
        margin-bottom: 10px;
    }

    /* ── Table ───────────────────────────────────────────────────── */
    .iel-table-wrap {
        overflow-x: auto;
    }

    .iel-table {
        width: 100%;
        min-width: 900px;
        border-collapse: collapse;
        font-size: .875rem;
    }

        .iel-table thead th {
            background: var(--iel-bg);
            color: var(--iel-muted);
            text-align: left;
            padding: 10px 14px;
            font-weight: 600;
            border-bottom: 2px solid var(--iel-border);
            white-space: nowrap;
        }

        .iel-table tbody tr {
            border-bottom: 1px solid var(--iel-border);
            transition: background .12s;
        }

            .iel-table tbody tr:hover {
                background: #E8F4FD; /* Light blue tint */
            }

        .iel-table td {
            padding: 11px 14px;
            vertical-align: middle;
            color: var(--iel-text);
        }

        .iel-table th.nowrap,
        .iel-table td.nowrap,
        .iel-table .nowrap {
            white-space: nowrap !important;
        }

    .iel-table__seq {
        color: var(--iel-muted);
        width: 40px;
    }

    .iel-table__empty {
        text-align: center;
        color: var(--iel-muted);
        padding: 40px;
    }

    .iel-table__name {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .text-right {
        text-align: right !important;
    }

    .text-center {
        text-align: center !important;
    }

    .text-muted {
        color: var(--iel-muted);
        font-size: .8rem;
    }

    /* ── Avatar ──────────────────────────────────────────────────── */
    .iel-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--iel-primary), var(--iel-gold));
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: .85rem;
        flex-shrink: 0;
        text-transform: uppercase;
    }

    /* ── Tier Badges ─────────────────────────────────────────────── */
    .iel-tier-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .5px;
        text-transform: uppercase;
    }

    .iel-tier-badge--friend {
        background: #E3F2FD;
        color: #1565C0;
    }

    .iel-tier-badge--buddy {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .iel-tier-badge--partner {
        background: #FFF3E0;
        color: #E65100;
    }

    .iel-tier-badge--family {
        background: #F3E5F5;
        color: #6A1B9A;
    }

    .iel-tier-badge--supreme {
        background: linear-gradient(135deg, var(--iel-primary), var(--iel-gold));
        color: #fff;
    }

    /* ── Status Badges ───────────────────────────────────────────── */
    .iel-status {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: .75rem;
        font-weight: 600;
    }

    .iel-status--active {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .iel-status--inactive {
        background: #ECEFF1;
        color: #546E7A;
    }

    .iel-status--suspended {
        background: #FFEBEE;
        color: #C62828;
    }

    /* ── Action Group ────────────────────────────────────────────── */
    .iel-action-group {
        display: flex;
        align-items: center;
        gap: 4px;
        justify-content: center;
    }

    /* ── Pagination ──────────────────────────────────────────────── */
    .iel-pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 16px;
        justify-content: center;
    }

    .iel-pagination__btn {
        min-width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: .85rem;
        font-weight: 600;
        text-decoration: none;
        color: var(--iel-muted);
        border: 1.5px solid var(--iel-border);
        transition: all .15s;
    }

        .iel-pagination__btn.active {
            background: var(--iel-primary);
            color: #fff;
            border-color: var(--iel-primary);
        }

        .iel-pagination__btn:hover:not(.active) {
            border-color: var(--iel-primary);
            color: var(--iel-primary);
        }

:root {
        --iel-primary: #0B72BA;
        --iel-primary-dk: #08538C;
        --iel-gold: #FEDE00;
        --iel-light-blue: #93CAED;
        --iel-bg: #F7F8FC;
        --iel-card: #FFFFFF;
        --iel-text: #1A1A2E;
        --iel-muted: #7A7A9D;
        --iel-border: #E2E4EF;
        --iel-radius: 12px;
        --iel-shadow: 0 2px 12px rgba(0,0,0,.07);
    }

    .iel-page-header {
        background: linear-gradient(135deg, var(--iel-primary-dk), var(--iel-primary));
        color: #fff;
        padding: 28px 32px;
        border-radius: var(--iel-radius);
        margin-bottom: 24px;
    }

    .iel-page-header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .iel-page-header__title {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .iel-page-header__sub {
        margin: 4px 0 0;
        opacity: .8;
        font-size: .85rem;
    }

    .iel-alert {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: .9rem;
    }

    .iel-alert--success {
        background: #E8F5E9;
        color: #2E7D32;
        border-left: 4px solid #2E7D32;
    }

    .iel-alert--danger {
        background: #FFEBEE;
        color: #C62828;
        border-left: 4px solid #C62828;
    }

    .iel-tier-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .iel-tier-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 24px;
        transition: transform .2s, box-shadow .2s;
    }

        .iel-tier-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(0,0,0,.1);
        }

    .iel-tier-card__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .iel-tier-card__auto-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #E3F2FD;
        color: #0B72BA;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: .75rem;
        font-weight: 600;
    }

    /* ── NEW: Tier Level Display ─────────────────── */
    .iel-tier-card__level {
        text-align: center;
        background: #F0F4FF;
        border-radius: 8px;
        padding: 6px 10px;
        margin-bottom: 16px;
    }

    .iel-tier-card__level-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--iel-muted);
        margin-right: 6px;
        font-weight: 600;
    }

    .iel-tier-card__level-value {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--iel-primary);
    }

    .iel-tier-card__stats {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .iel-tier-card__stat {
        text-align: center;
    }

    .iel-tier-card__stat-label {
        display: block;
        font-size: .75rem;
        color: var(--iel-muted);
        margin-bottom: 4px;
        text-transform: uppercase;
        font-weight: 600;
    }

    .iel-tier-card__stat-value {
        font-weight: 700;
        color: var(--iel-text);
    }

    .iel-tier-card__multiplier {
        color: var(--iel-primary);
    }

    .iel-tier-card__bonus {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #FFF8E1;
        border: 1px solid #FFE082;
        border-radius: 8px;
        padding: 10px 12px;
        font-size: .85rem;
        color: #795548;
        margin-bottom: 16px;
    }

    .iel-tier-card__footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .iel-tier-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: .8rem;
        font-weight: 700;
        letter-spacing: .5px;
        text-transform: uppercase;
    }

    .iel-tier-badge--friend {
        background: #E3F2FD;
        color: #1565C0;
    }

    .iel-tier-badge--buddy {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .iel-tier-badge--partner {
        background: #FFF3E0;
        color: #E65100;
    }

    .iel-tier-badge--family {
        background: #F3E5F5;
        color: #6A1B9A;
    }

    .iel-tier-badge--supreme {
        background: linear-gradient(135deg, var(--iel-primary), var(--iel-gold));
        color: #fff;
    }

    .iel-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 18px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: all .2s;
    }

    .iel-btn--primary {
        background: var(--iel-primary);
        color: #fff;
    }

        .iel-btn--primary:hover {
            background: var(--iel-primary-dk);
            color: #fff;
        }

    .iel-btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        color: var(--iel-muted);
        transition: background .15s, color .15s;
    }

        .iel-btn-icon:hover {
            background: var(--iel-bg);
            color: var(--iel-text);
        }

    .iel-btn-icon--danger:hover {
        background: #FFEBEE;
        color: #C62828;
    }

    .iel-action-group {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .iel-empty-state {
        text-align: center;
        padding: 60px 20px;
        color: var(--iel-muted);
    }

        .iel-empty-state h3 {
            margin: 16px 0 8px;
            color: var(--iel-text);
        }

    .text-muted {
        color: var(--iel-muted);
        font-size: .8rem;
    }

    .d-none {
        display: none !important;
    }

:root {
        --iel-primary: #0B72BA;
        --iel-primary-dk: #08538C;
        --iel-bg: #F7F8FC;
        --iel-card: #FFFFFF;
        --iel-text: #1A1A2E;
        --iel-muted: #7A7A9D;
        --iel-border: #E2E4EF;
        --iel-radius: 12px;
        --iel-shadow: 0 2px 12px rgba(0,0,0,.07);
    }

    /* ── Page Header ─────────────────────────────────────────────── */
    .iel-page-header {
        background: linear-gradient(135deg, var(--iel-primary-dk), var(--iel-primary));
        color: #fff;
        padding: 28px 32px;
        border-radius: var(--iel-radius);
        margin-bottom: 24px;
    }

    .iel-page-header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .iel-page-header__title {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .iel-page-header__sub {
        margin: 4px 0 0;
        opacity: .8;
        font-size: .85rem;
    }

    /* ── Alerts ──────────────────────────────────────────────────── */
    .iel-alert {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: .9rem;
    }

    .iel-alert--success {
        background: #E8F5E9;
        color: #2E7D32;
        border-left: 4px solid #2E7D32;
    }

    .iel-alert--danger {
        background: #FFEBEE;
        color: #C62828;
        border-left: 4px solid #C62828;
    }

    /* ── STAT ROW 1 ──────────────────────────────────────────────── */
    .stats-row {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
        gap: 16px;
        margin-bottom: 12px;
    }

    .stat-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 20px 24px;
        display: flex;
        align-items: center;
        gap: 16px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color .2s, box-shadow .2s;
    }

        .stat-card.active {
            border-color: var(--iel-primary);
            box-shadow: 0 0 0 3px rgba(11,114,186,.12);
        }

    .stat-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .stat-card__icon--blue {
        background: #EFF6FF;
        color: var(--iel-primary);
    }

    .stat-card__icon--orange {
        background: #FFF7ED;
        color: #EA580C;
    }

    .stat-card__icon--grey {
        background: #F3F4F6;
        color: #6B7280;
    }

    .stat-card__icon--red {
        background: #FEF2F2;
        color: #DC2626;
    }

    .stat-card__value {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--iel-text);
        line-height: 1;
    }

    .stat-card__label {
        font-size: .8rem;
        color: var(--iel-muted);
        margin-top: 4px;
    }

    /* ── STAT ROW 2 – Pipeline ───────────────────────────────────── */
    .pipeline-row {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 16px 24px;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .pipeline-label {
        font-size: .75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: var(--iel-muted);
        min-width: 70px;
    }

    .pipeline-steps {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        flex: 1;
    }

    .pipe-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        padding: 8px 14px;
        border-radius: 10px;
        border: 2px solid transparent;
        transition: border-color .2s, background .2s;
    }

        .pipe-step:hover {
            background: var(--iel-bg);
        }

        .pipe-step.active {
            border-color: var(--iel-primary);
            background: #EFF6FF;
        }

    .pipe-step__dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

    .pipe-step__dot--approved {
        background: #16A34A;
    }

    .pipe-step__dot--processing {
        background: #B45309;
    }

    .pipe-step__dot--shipped {
        background: #1D4ED8;
    }

    .pipe-step__dot--delivered {
        background: #065F46;
    }

    .pipe-step__value {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--iel-text);
        line-height: 1;
    }

    .pipe-step__label {
        font-size: .75rem;
        color: var(--iel-muted);
        white-space: nowrap;
    }

    .pipe-arrow {
        color: var(--iel-muted);
        font-size: 1rem;
        padding: 0 2px;
    }

    /* ── Card & Table ────────────────────────────────────────────── */
    .iel-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        overflow: hidden;
    }

    .iel-card__toolbar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        border-bottom: 1px solid var(--iel-border);
        flex-wrap: wrap;
    }

    .search-wrap {
        position: relative;
        flex: 1;
        min-width: 200px;
    }

    .search-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--iel-muted);
        pointer-events: none;
    }

    .search-input {
        width: 100%;
        padding: 8px 12px 8px 32px;
        border: 1.5px solid var(--iel-border);
        border-radius: 8px;
        font-size: .875rem;
        outline: none;
        transition: border-color .2s;
    }

        .search-input:focus {
            border-color: var(--iel-primary);
        }

    /* ── Tab pills ───────────────────────────────────────────────── */
    .tab-pills {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .tab-pill {
        padding: 6px 14px;
        border-radius: 20px;
        font-size: .8rem;
        font-weight: 600;
        cursor: pointer;
        border: 1.5px solid var(--iel-border);
        background: #fff;
        color: var(--iel-muted);
        transition: all .2s;
    }

        .tab-pill:hover {
            border-color: var(--iel-primary);
            color: var(--iel-primary);
        }

        .tab-pill.active {
            background: var(--iel-primary);
            border-color: var(--iel-primary);
            color: #fff;
        }

    .iel-table-wrap {
        overflow-x: auto;
    }

    .iel-table {
        width: 100%;
        border-collapse: collapse;
    }

        .iel-table th {
            background: var(--iel-bg);
            padding: 14px 16px;
            text-align: left;
            font-size: .8rem;
            text-transform: uppercase;
            font-weight: 700;
            color: var(--iel-muted);
            letter-spacing: .5px;
            border-bottom: 2px solid var(--iel-border);
            white-space: nowrap;
        }

        .iel-table td {
            padding: 14px 16px;
            border-bottom: 1px solid var(--iel-border);
            font-size: .9rem;
            vertical-align: middle;
        }

        .iel-table tbody tr:hover {
            background: var(--iel-bg);
        }

        .iel-table tbody tr.row-terminal {
            opacity: .7;
        }

    .text-center {
        text-align: center;
    }

    /* ── User / Reward cells ─────────────────────────────────────── */
    .user-cell {
        display: flex;
        flex-direction: column;
    }

    .user-cell__name {
        font-weight: 600;
        color: var(--iel-text);
    }

    .user-cell__email {
        font-size: .8rem;
        color: var(--iel-muted);
    }

    .reward-cell {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .coupon-thumb {
        width: 36px;
        height: 36px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid var(--iel-border);
        flex-shrink: 0;
    }

    .points-badge {
        display: inline-block;
        padding: 3px 10px;
        background: #EFF6FF;
        color: var(--iel-primary);
        border-radius: 12px;
        font-size: .78rem;
        font-weight: 700;
    }

    .tracking-code {
        font-size: .8rem;
        background: var(--iel-bg);
        padding: 2px 7px;
        border-radius: 4px;
        border: 1px solid var(--iel-border);
    }

    /* ── Status Badges ───────────────────────────────────────────── */
    .status-badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: .78rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .status-badge--pending {
        background: #FFF7ED;
        color: #C2410C;
    }

    .status-badge--approved {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .status-badge--processing {
        background: #FFFBEB;
        color: #B45309;
    }

    .status-badge--shipped {
        background: #EFF6FF;
        color: #1D4ED8;
    }

    .status-badge--delivered {
        background: #D1FAE5;
        color: #065F46;
    }

    .status-badge--closed {
        background: #F3F4F6;
        color: #6B7280;
    }

    .status-badge--rejected {
        background: #FFEBEE;
        color: #C62828;
    }

    /* ── Action group ────────────────────────────────────────────── */
    .action-group {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .iel-btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        color: var(--iel-muted);
        transition: background .15s, color .15s;
    }

        .iel-btn-icon:hover {
            background: var(--iel-bg);
            color: var(--iel-text);
        }

    .iel-btn-icon--danger:hover {
        background: #FFEBEE;
        color: #C62828;
    }

    /* ── Buttons ─────────────────────────────────────────────────── */
    .iel-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 18px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: all .2s;
    }

    .iel-btn--primary {
        background: var(--iel-primary);
        color: #fff;
    }

        .iel-btn--primary:hover {
            background: var(--iel-primary-dk);
            color: #fff;
        }

    .iel-btn--danger {
        background: #C62828;
        color: #fff;
    }

        .iel-btn--danger:hover {
            background: #B71C1C;
            color: #fff;
        }

    .iel-btn--outline {
        background: transparent;
        border: 1.5px solid rgba(255,255,255,.5);
        color: #fff;
    }

        .iel-btn--outline:hover {
            background: rgba(255,255,255,.15);
            color: #fff;
        }

    /* ── Empty state ─────────────────────────────────────────────── */
    .iel-empty-state {
        text-align: center;
        padding: 60px 20px;
        color: var(--iel-muted);
    }

        .iel-empty-state h3 {
            margin: 16px 0 8px;
            color: var(--iel-text);
        }

    /* ── Modal section title ─────────────────────────────────────── */
    .section-title {
        font-size: .8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: var(--iel-muted);
        padding-bottom: 8px;
        border-bottom: 1px solid var(--iel-border);
        margin-bottom: 4px;
    }

    /* ── Utilities ───────────────────────────────────────────────── */
    .text-muted {
        color: var(--iel-muted);
    }

    .text-primary {
        color: var(--iel-primary) !important;
    }

    .text-danger {
        color: #C62828 !important;
    }

    .fw-bold {
        font-weight: 700;
    }

    .d-none {
        display: none !important;
    }

    .d-flex {
        display: flex;
    }

    .gap-2 {
        gap: 8px;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

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

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

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

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

    .small {
        font-size: .85rem;
    }

    .text-start {
        text-align: left;
    }

:root {
        --iel-primary: #0B72BA;
        --iel-primary-dk: #08538C;
        --iel-gold: #FEDE00;
        --iel-light-blue: #93CAED;
        --iel-bg: #F7F8FC;
        --iel-card: #FFFFFF;
        --iel-text: #1A1A2E;
        --iel-muted: #7A7A9D;
        --iel-border: #E2E4EF;
        --iel-radius: 12px;
        --iel-shadow: 0 2px 12px rgba(0,0,0,.07);
    }

    /* Page Header */
    .iel-page-header {
        background: linear-gradient(135deg, var(--iel-primary-dk), var(--iel-primary));
        color: #fff;
        padding: 28px 32px;
        border-radius: var(--iel-radius);
        margin-bottom: 24px;
    }

    .iel-page-header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .iel-page-header__title {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .iel-page-header__sub {
        margin: 4px 0 0;
        opacity: .8;
        font-size: .85rem;
    }

    /* Alerts */
    .iel-alert {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: .9rem;
    }

    .iel-alert--success {
        background: #E8F5E9;
        color: #2E7D32;
        border-left: 4px solid #2E7D32;
    }

    .iel-alert--danger {
        background: #FFEBEE;
        color: #C62828;
        border-left: 4px solid #C62828;
    }

    /* Card & Table */
    .iel-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 20px;
        overflow: hidden;
    }

    .iel-table-wrap {
        overflow-x: auto;
    }

    .iel-table {
        width: 100%;
        border-collapse: collapse;
    }

        .iel-table th {
            background: var(--iel-bg);
            padding: 14px 16px;
            text-align: left;
            font-size: .8rem;
            text-transform: uppercase;
            font-weight: 700;
            color: var(--iel-muted);
            letter-spacing: .5px;
            border-bottom: 2px solid var(--iel-border);
        }

        .iel-table td {
            padding: 14px 16px;
            border-bottom: 1px solid var(--iel-border);
            font-size: .9rem;
            vertical-align: middle;
        }

        .iel-table tbody tr:hover {
            background: var(--iel-bg);
        }

    .row-voided {
        opacity: .6;
        background: #FAFAFA;
    }

    /* User Cell */
    .user-cell {
        display: flex;
        flex-direction: column;
    }

    .user-cell__name {
        font-weight: 600;
        color: var(--iel-text);
    }

    .user-cell__email {
        font-size: .8rem;
        color: var(--iel-muted);
    }

    /* Reason Cell */
    .reason-cell {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .reason-badge {
        display: inline-block;
        padding: 2px 8px;
        background: var(--iel-light-blue);
        color: var(--iel-primary);
        border-radius: 12px;
        font-size: .75rem;
        font-weight: 700;
    }

    .reason-name {
        font-size: .85rem;
    }

    /* Type Badges */
    .type-badge {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: .72rem;
        font-weight: 700;
    }

    .type-badge--earn {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .type-badge--redeem {
        background: #FFF3E0;
        color: #E65100;
    }

    .type-badge--adjust {
        background: #E3F2FD;
        color: #0B72BA;
    }

    .type-badge--expired {
        background: #FCE4EC;
        color: #C2185B;
    }

    /* Status Badges */
    .status-badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: .78rem;
        font-weight: 600;
    }

    .status-badge--active {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .status-badge--voided {
        background: #FFEBEE;
        color: #C62828;
    }

    /* Note / Expired Info */
    .note-cell {
        font-size: .85rem;
    }

    .expired-info {
        line-height: 1.4;
    }

    /* Buttons */
    .iel-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 18px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: all .2s;
    }

    .iel-btn--primary {
        background: var(--iel-primary);
        color: #fff;
    }

        .iel-btn--primary:hover {
            background: var(--iel-primary-dk);
            color: #fff;
        }

    .iel-btn--outline {
        background: transparent;
        border: 1.5px solid rgba(255,255,255,.5);
        color: #fff;
    }

        .iel-btn--outline:hover {
            background: rgba(255,255,255,.15);
            color: #fff;
        }

    .iel-btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        color: var(--iel-muted);
        transition: background .15s, color .15s;
    }

        .iel-btn-icon:hover {
            background: var(--iel-bg);
            color: var(--iel-text);
        }

    .iel-btn-icon--danger:hover {
        background: #FFEBEE;
        color: #C62828;
    }

    /* Empty State */
    .iel-empty-state {
        text-align: center;
        padding: 60px 20px;
        color: var(--iel-muted);
    }

        .iel-empty-state h3 {
            margin: 16px 0 8px;
            color: var(--iel-text);
        }

    /* Customer Card (in modal) */
    .customer-card {
        background: var(--iel-bg);
        padding: 12px 16px;
        border-radius: 8px;
        border: 1px solid var(--iel-border);
    }

    .customer-card__name {
        font-weight: 700;
        color: var(--iel-text);
    }

    .customer-card__meta {
        font-size: .85rem;
        color: var(--iel-muted);
        margin-top: 4px;
    }

    /* Customer Dropdown */
    .customer-dropdown {
        position: absolute;
        background: #fff;
        border: 1px solid var(--iel-border);
        border-radius: 8px;
        box-shadow: var(--iel-shadow);
        max-height: 200px;
        overflow-y: auto;
        z-index: 1050;
        width: calc(100% - 2rem);
    }

    .customer-dropdown__item {
        padding: 10px 14px;
        cursor: pointer;
        border-bottom: 1px solid var(--iel-border);
    }

        .customer-dropdown__item:last-child {
            border-bottom: none;
        }

        .customer-dropdown__item:hover {
            background: var(--iel-bg);
        }

    .customer-dropdown__item-name {
        font-weight: 600;
    }

    .customer-dropdown__item-meta {
        font-size: .8rem;
        color: var(--iel-muted);
    }

    /* Points Input Group */
    .points-input-group {
        display: flex;
        gap: 6px;
    }

    .pts-sign-btn {
        padding: 8px 16px;
        border: 1.5px solid var(--iel-border);
        background: #fff;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: .875rem;
        transition: all .15s;
    }

        .pts-sign-btn.active {
            background: var(--iel-primary);
            color: #fff;
            border-color: var(--iel-primary);
        }

        .pts-sign-btn[data-sign="1"].active {
            background: #2E7D32;
            border-color: #2E7D32;
        }

        .pts-sign-btn[data-sign="-1"].active {
            background: #C62828;
            border-color: #C62828;
        }

    /* Utilities */
    .text-muted {
        color: var(--iel-muted);
    }

    .text-success {
        color: #2E7D32 !important;
    }

    .text-danger {
        color: #C62828 !important;
    }

    .fw-bold {
        font-weight: 700;
    }

    .text-end {
        text-align: right;
    }

    .d-none {
        display: none !important;
    }

    .d-flex {
        display: flex;
    }

    .gap-2 {
        gap: 8px;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

    .mx-1 {
        margin-left: 4px;
        margin-right: 4px;
    }

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

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

    .my-3 {
        margin-top: 16px;
        margin-bottom: 16px;
    }

:root {
        --iel-primary: #0B72BA;
        --iel-primary-dk: #08538C;
        --iel-gold: #FEDE00;
        --iel-bg: #F7F8FC;
        --iel-card: #FFFFFF;
        --iel-text: #1A1A2E;
        --iel-muted: #7A7A9D;
        --iel-border: #E2E4EF;
        --iel-radius: 12px;
        --iel-shadow: 0 2px 12px rgba(0,0,0,.07);
    }

    .iel-page-header {
        background: linear-gradient(135deg, var(--iel-primary-dk), var(--iel-primary));
        color: #fff;
        padding: 28px 32px;
        border-radius: var(--iel-radius);
        margin-bottom: 24px;
    }

    .iel-page-header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .iel-page-header__title {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .iel-page-header__sub {
        margin: 4px 0 0;
        opacity: .8;
        font-size: .85rem;
    }

    .iel-alert {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: .9rem;
    }

    .iel-alert--success {
        background: #E8F5E9;
        color: #2E7D32;
        border-left: 4px solid #2E7D32;
    }

    .iel-alert--danger {
        background: #FFEBEE;
        color: #C62828;
        border-left: 4px solid #C62828;
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }

    .stat-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 18px 20px;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .stat-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .stat-card__icon--blue {
        background: #E3F2FD;
        color: #0B72BA;
    }

    .stat-card__icon--green {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .stat-card__icon--orange {
        background: #FFF3E0;
        color: #E65100;
    }

    .stat-card__icon--purple {
        background: #F3E5F5;
        color: #6A1B9A;
    }

    .stat-card__value {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--iel-text);
        line-height: 1;
    }

    .stat-card__label {
        font-size: .78rem;
        color: var(--iel-muted);
        margin-top: 3px;
    }

    .iel-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        overflow: hidden;
    }

    .iel-card__toolbar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        border-bottom: 1px solid var(--iel-border);
        flex-wrap: wrap;
    }

    .search-wrap {
        position: relative;
        flex: 1;
        min-width: 200px;
    }

    .search-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--iel-muted);
        pointer-events: none;
    }

    .search-input {
        width: 100%;
        padding: 8px 12px 8px 32px;
        border: 1px solid var(--iel-border);
        border-radius: 8px;
        font-size: .875rem;
        background: var(--iel-bg);
        outline: none;
        transition: border-color .15s;
    }

        .search-input:focus {
            border-color: var(--iel-primary);
            background: #fff;
        }

    .filter-wrap select {
        min-width: 140px;
    }

    .iel-table-wrap {
        overflow-x: auto;
    }

    .iel-table {
        width: 100%;
        border-collapse: collapse;
        font-size: .875rem;
    }

        .iel-table thead th {
            background: var(--iel-bg);
            padding: 12px 16px;
            text-align: left;
            font-size: .72rem;
            font-weight: 700;
            color: var(--iel-muted);
            text-transform: uppercase;
            letter-spacing: .5px;
            border-bottom: 1px solid var(--iel-border);
            white-space: nowrap;
        }

        .iel-table tbody tr {
            border-bottom: 1px solid var(--iel-border);
            transition: background .15s;
        }

            .iel-table tbody tr:hover {
                background: #F0F6FB;
            }

        .iel-table tbody td {
            padding: 12px 16px;
            vertical-align: middle;
        }

    .reason-code-badge {
        display: inline-block;
        background: #E3F2FD;
        color: #0B72BA;
        padding: 3px 9px;
        border-radius: 6px;
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .4px;
        font-family: monospace;
    }

    .usage-badge {
        display: inline-block;
        background: #F3E5F5;
        color: #6A1B9A;
        padding: 2px 9px;
        border-radius: 20px;
        font-size: .78rem;
        font-weight: 700;
    }

    .status-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: .75rem;
        font-weight: 700;
    }

    .status-badge--active {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .status-badge--inactive {
        background: #FAFAFA;
        color: #9E9E9E;
        border: 1px solid #E0E0E0;
    }

    .type-badge {
        display: inline-block;
        padding: 2px 10px;
        border-radius: 20px;
        font-size: .73rem;
        font-weight: 700;
    }

    .type-badge--earn {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .type-badge--redeem {
        background: #FFF3E0;
        color: #E65100;
    }

    .type-badge--adjust {
        background: #E3F2FD;
        color: #0B72BA;
    }

    .type-badge--expired {
        background: #FCE4EC;
        color: #C2185B;
    }

    .desc-cell {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .82rem;
    }

    .iel-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 18px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: all .2s;
    }

    .iel-btn--primary {
        background: var(--iel-primary);
        color: #fff;
    }

        .iel-btn--primary:hover {
            background: var(--iel-primary-dk);
            color: #fff;
        }

    .iel-btn--outline {
        background: rgba(255,255,255,.15);
        color: #fff;
        border: 1px solid rgba(255,255,255,.45);
    }

        .iel-btn--outline:hover {
            background: rgba(255,255,255,.25);
            color: #fff;
        }

    .iel-btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        color: var(--iel-muted);
        transition: background .15s, color .15s;
    }

        .iel-btn-icon:hover {
            background: var(--iel-bg);
            color: var(--iel-text);
        }

    .iel-btn-icon--danger:hover {
        background: #FFEBEE;
        color: #C62828;
    }

    .iel-action-group {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .iel-empty-state {
        text-align: center;
        padding: 60px 20px;
        color: var(--iel-muted);
    }

        .iel-empty-state h3 {
            margin: 16px 0 8px;
            color: var(--iel-text);
        }

    .d-none {
        display: none !important;
    }

    .d-flex {
        display: flex;
    }

    .gap-2 {
        gap: 8px;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

    .text-center {
        text-align: center;
    }

    .text-muted {
        color: var(--iel-muted);
        font-size: .85rem;
    }

    .text-danger {
        color: #C62828 !important;
    }

    .fw-600 {
        font-weight: 600;
    }

    .ms-1 {
        margin-left: 4px;
    }

    .mt-3 {
        margin-top: 1rem;
    }

    .mb-3 {
        margin-bottom: 1rem;
    }

    .text-uppercase {
        text-transform: uppercase;
    }

:root {
        --iel-primary: #0B72BA;
        --iel-primary-dk: #08538C;
        --iel-bg: #F7F8FC;
        --iel-card: #FFFFFF;
        --iel-text: #1A1A2E;
        --iel-muted: #7A7A9D;
        --iel-border: #E2E4EF;
        --iel-radius: 12px;
        --iel-shadow: 0 2px 12px rgba(0,0,0,.07);
    }

    .iel-page-header {
        background: linear-gradient(135deg, var(--iel-primary-dk), var(--iel-primary));
        color: #fff;
        padding: 28px 32px;
        border-radius: var(--iel-radius);
        margin-bottom: 24px;
    }

    .iel-page-header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .iel-page-header__title {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .iel-page-header__sub {
        margin: 4px 0 0;
        opacity: .8;
        font-size: .85rem;
    }

    .iel-alert {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: .9rem;
    }

    .iel-alert--success {
        background: #E8F5E9;
        color: #2E7D32;
        border-left: 4px solid #2E7D32;
    }

    .iel-alert--danger {
        background: #FFEBEE;
        color: #C62828;
        border-left: 4px solid #C62828;
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }

    .stat-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 18px 20px;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .stat-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .stat-card__icon--blue {
        background: #E3F2FD;
        color: #0B72BA;
    }

    .stat-card__icon--green {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .stat-card__icon--orange {
        background: #FFF3E0;
        color: #E65100;
    }

    .stat-card__icon--red {
        background: #FFEBEE;
        color: #C62828;
    }

    .stat-card__value {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--iel-text);
        line-height: 1;
    }

    .stat-card__label {
        font-size: .78rem;
        color: var(--iel-muted);
        margin-top: 3px;
    }

    .iel-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        overflow: hidden;
    }

    .iel-card__toolbar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        border-bottom: 1px solid var(--iel-border);
        flex-wrap: wrap;
    }

    .search-wrap {
        position: relative;
        flex: 1;
        min-width: 200px;
    }

    .search-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--iel-muted);
        pointer-events: none;
    }

    .search-input {
        width: 100%;
        padding: 8px 12px 8px 32px;
        border: 1px solid var(--iel-border);
        border-radius: 8px;
        font-size: .875rem;
        background: var(--iel-bg);
        outline: none;
        transition: border-color .15s;
    }

        .search-input:focus {
            border-color: var(--iel-primary);
            background: #fff;
        }

    .filter-wrap select {
        min-width: 140px;
    }

    .iel-table {
        width: 100%;
        border-collapse: collapse;
        font-size: .875rem;
    }

        .iel-table thead th {
            background: var(--iel-bg);
            padding: 12px 16px;
            text-align: left;
            font-size: .72rem;
            font-weight: 700;
            color: var(--iel-muted);
            text-transform: uppercase;
            letter-spacing: .5px;
            border-bottom: 1px solid var(--iel-border);
            white-space: nowrap;
        }

        .iel-table tbody tr {
            border-bottom: 1px solid var(--iel-border);
            transition: background .15s;
        }

            .iel-table tbody tr:hover {
                background: #F0F6FB;
            }

        .iel-table tbody td {
            padding: 12px 16px;
            vertical-align: middle;
        }

    .coupon-thumb {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 6px;
    }

    .coupon-thumb-placeholder {
        width: 40px;
        height: 40px;
        background: var(--iel-bg);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--iel-muted);
    }

    .desc-cell {
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .type-badge {
        display: inline-block;
        padding: 2px 10px;
        border-radius: 20px;
        font-size: .73rem;
        font-weight: 700;
    }

    .type-badge--reward {
        background: #E3F2FD;
        color: #0B72BA;
    }

    .reward-type-badge {
        display: inline-block;
        padding: 2px 10px;
        border-radius: 6px;
        font-size: .73rem;
        font-weight: 700;
        letter-spacing: .3px;
        font-family: monospace;
    }

    .reward-type--physical {
        background: #E3F2FD;
        color: #0B72BA;
    }

    .reward-type--digital {
        background: #F3E5F5;
        color: #6A1B9A;
    }

    .reward-type--coupon {
        background: #FFF3E0;
        color: #E65100;
    }

    .points-badge {
        display: inline-block;
        background: #E3F2FD;
        color: #0B72BA;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: .78rem;
        font-weight: 700;
    }

    .status-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: .75rem;
        font-weight: 700;
    }

    .status-badge--active {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .status-badge--inactive {
        background: #FAFAFA;
        color: #9E9E9E;
        border: 1px solid #E0E0E0;
    }

    .status-badge--draft {
        background: #EEEEEE;
        color: #616161;
    }

    .status-badge--danger {
        background: #FFEBEE;
        color: #C62828;
    }

    .validity-badge {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: .7rem;
        font-weight: 700;
    }

    .validity-badge--live {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .validity-badge--expired {
        background: #FFEBEE;
        color: #C62828;
    }

    .validity-badge--upcoming {
        background: #FFF3E0;
        color: #E65100;
    }

    .iel-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 18px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: all .2s;
    }

    .iel-btn--primary {
        background: var(--iel-primary);
        color: #fff;
    }

        .iel-btn--primary:hover {
            background: var(--iel-primary-dk);
            color: #fff;
        }

    .iel-btn--outline {
        background: rgba(255,255,255,.15);
        color: #fff;
        border: 1px solid rgba(255,255,255,.45);
    }

        .iel-btn--outline:hover {
            background: rgba(255,255,255,.25);
            color: #fff;
        }

    .iel-btn--danger {
        background: #C62828;
        color: #fff;
    }

        .iel-btn--danger:hover {
            background: #B71C1C;
            color: #fff;
        }

    .iel-btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        color: var(--iel-muted);
        transition: background .15s, color .15s;
    }

        .iel-btn-icon:hover {
            background: var(--iel-bg);
            color: var(--iel-text);
        }

    .iel-btn-icon--danger:hover {
        background: #FFEBEE;
        color: #C62828;
    }

    .iel-action-group {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .iel-empty-state {
        text-align: center;
        padding: 60px 20px;
        color: var(--iel-muted);
    }

        .iel-empty-state h3 {
            margin: 16px 0 8px;
            color: var(--iel-text);
        }

    .iel-table-scroll thead th {
        position: sticky;
        top: 0;
        background: #f8f9fa;
        z-index: 2;
        box-shadow: 0 1px 0 #dee2e6;
    }

    .section-title {
        font-size: .95rem;
        font-weight: 700;
        color: var(--iel-primary);
        margin-bottom: 12px;
        padding-bottom: 6px;
        border-bottom: 2px solid var(--iel-border);
    }

    .d-none {
        display: none !important;
    }

    .d-flex {
        display: flex;
    }

    .gap-2 {
        gap: 8px;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

    .text-center {
        text-align: center;
    }

    .text-muted {
        color: var(--iel-muted);
        font-size: .85rem;
    }

    .text-danger {
        color: #C62828 !important;
    }

    .text-primary {
        color: var(--iel-primary) !important;
    }

    .fw-600 {
        font-weight: 600;
    }

    .mt-3 {
        margin-top: 1rem;
    }

    .mb-3 {
        margin-bottom: 1rem;
    }

:root {
        --iel-primary: #0B72BA;
        --iel-primary-dk: #08538C;
        --iel-bg: #F7F8FC;
        --iel-card: #FFFFFF;
        --iel-text: #1A1A2E;
        --iel-muted: #7A7A9D;
        --iel-border: #E2E4EF;
        --iel-radius: 12px;
        --iel-shadow: 0 2px 12px rgba(0,0,0,.07);
    }

    .iel-page-header {
        background: linear-gradient(135deg, var(--iel-primary-dk), var(--iel-primary));
        color: #fff;
        padding: 28px 32px;
        border-radius: var(--iel-radius);
        margin-bottom: 24px;
    }

    .iel-page-header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .iel-page-header__title {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .iel-page-header__sub {
        margin: 4px 0 0;
        opacity: .8;
        font-size: .85rem;
    }

    .iel-alert {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: .9rem;
    }

    .iel-alert--success {
        background: #E8F5E9;
        color: #2E7D32;
        border-left: 4px solid #2E7D32;
    }

    .iel-alert--danger {
        background: #FFEBEE;
        color: #C62828;
        border-left: 4px solid #C62828;
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }

    .stat-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 18px 20px;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .stat-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .stat-card__icon--blue {
        background: #E3F2FD;
        color: #0B72BA;
    }

    .stat-card__icon--green {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .stat-card__icon--orange {
        background: #FFF3E0;
        color: #E65100;
    }

    .stat-card__icon--purple {
        background: #F3E5F5;
        color: #6A1B9A;
    }

    .stat-card__value {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--iel-text);
        line-height: 1;
    }

    .stat-card__label {
        font-size: .78rem;
        color: var(--iel-muted);
        margin-top: 3px;
    }

    .iel-card {
        background: var(--iel-card);
        border-radius: var(--iel-radius);
        box-shadow: var(--iel-shadow);
        padding: 20px;
        overflow: hidden;
    }

    .iel-card__toolbar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        border-bottom: 1px solid var(--iel-border);
        flex-wrap: wrap;
    }

    .search-wrap {
        position: relative;
        flex: 1;
        min-width: 200px;
    }

    .search-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--iel-muted);
        pointer-events: none;
    }

    .search-input {
        width: 100%;
        padding: 8px 12px 8px 32px;
        border: 1px solid var(--iel-border);
        border-radius: 8px;
        font-size: .875rem;
        background: var(--iel-bg);
        outline: none;
        transition: border-color .15s;
    }

        .search-input:focus {
            border-color: var(--iel-primary);
            background: #fff;
        }

    .filter-wrap select {
        min-width: 140px;
    }

    .iel-table-wrap {
        overflow-x: auto;
    }

    .iel-table {
        width: 100%;
        border-collapse: collapse;
        font-size: .875rem;
    }

        .iel-table thead th {
            background: var(--iel-bg);
            padding: 12px 16px;
            text-align: left;
            font-size: .72rem;
            font-weight: 700;
            color: var(--iel-muted);
            text-transform: uppercase;
            letter-spacing: .5px;
            border-bottom: 1px solid var(--iel-border);
            white-space: nowrap;
        }

        .iel-table tbody tr {
            border-bottom: 1px solid var(--iel-border);
            transition: background .15s;
        }

            .iel-table tbody tr:hover {
                background: #F0F6FB;
            }

        .iel-table tbody td {
            padding: 12px 16px;
            vertical-align: middle;
        }

    .usage-badge {
        display: inline-block;
        background: #F3E5F5;
        color: #6A1B9A;
        padding: 2px 9px;
        border-radius: 20px;
        font-size: .78rem;
        font-weight: 700;
    }

    .status-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: .75rem;
        font-weight: 700;
    }

    .status-badge--active {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .status-badge--inactive {
        background: #FAFAFA;
        color: #9E9E9E;
        border: 1px solid #E0E0E0;
    }

    .iel-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 18px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: all .2s;
    }

    .iel-btn--primary {
        background: var(--iel-primary);
        color: #fff;
    }

        .iel-btn--primary:hover {
            background: var(--iel-primary-dk);
            color: #fff;
        }

    .iel-btn--outline {
      background: rgba(255,255,255,.15);
      color: #fff;
      border: 1px solid rgba(255,255,255,.45);
    }

    .iel-btn--outline:hover {
        background: rgba(255,255,255,.25);
        color: #fff;
      }

    .iel-btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        color: var(--iel-muted);
        transition: background .15s, color .15s;
    }

        .iel-btn-icon:hover {
            background: var(--iel-bg);
            color: var(--iel-text);
        }

    .iel-btn-icon--danger:hover {
        background: #FFEBEE;
        color: #C62828;
    }

    .iel-action-group {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .iel-empty-state {
        text-align: center;
        padding: 60px 20px;
        color: var(--iel-muted);
    }

        .iel-empty-state h3 {
            margin: 16px 0 8px;
            color: var(--iel-text);
        }

    .d-none {
        display: none !important;
    }

    .d-flex {
        display: flex;
    }

    .gap-2 {
        gap: 8px;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

    .text-center {
        text-align: center;
    }

    .text-muted {
        color: var(--iel-muted);
        font-size: .85rem;
    }

    .text-danger {
        color: #C62828 !important;
    }

    .fw-600 {
        font-weight: 600;
    }

    .mt-3 {
        margin-top: 1rem;
    }

    .mb-3 {
        margin-bottom: 1rem;
    }

/* ── Custom Patch: White Header Title ── */
.iel-page-header__title {
    color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   IEL Button System — Canonical (single source of truth)
   Reference: Customer Management pages
   ══════════════════════════════════════════════════════════════════════════ */
.iel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all .2s;
}
.iel-btn--primary {
    background: var(--iel-primary);
    color: #fff;
}
.iel-btn--primary:hover {
    background: var(--iel-primary-dk);
    color: #fff;
}
.iel-btn--secondary {
    background: #E3F2FD;
    color: #1565C0;
    border: 1.5px solid #90CAF9;
}
.iel-btn--secondary:hover {
    background: #BBDEFB;
}
.iel-btn--ghost {
    background: transparent;
    color: var(--iel-muted);
    border: 1.5px solid var(--iel-border);
}
.iel-btn--ghost:hover {
    background: var(--iel-bg);
}
.iel-btn--outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.5);
    color: #fff;
}
.iel-btn--outline:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}
.iel-btn--danger {
    background: #C62828;
    color: #fff;
}
.iel-btn--danger:hover {
    background: #8E0000;
    color: #fff;
}
.iel-btn--warn {
    background: #E65100;
    color: #fff;
}
.iel-btn--warn:hover {
    background: #BF360C;
    color: #fff;
}
.iel-btn--success {
    background: #2E7D32;
    color: #fff;
}
.iel-btn--success:hover {
    background: #1B5E20;
    color: #fff;
}
.iel-btn--approve {
    background: linear-gradient(135deg,#2E7D32,#43A047);
    color: #fff;
}
.iel-btn--approve:hover {
    background: linear-gradient(135deg,#1B5E20,#2E7D32);
    color: #fff;
}
.iel-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    color: var(--iel-text);
    transition: background .15s, color .15s;
}
.iel-btn-icon:hover {
    background: var(--iel-bg);
    color: var(--iel-primary);
}
.iel-btn-icon--danger {
    color: #C62828;
}
.iel-btn-icon--danger:hover {
    background: #FFEBEE;
    color: #C62828;
}
.iel-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}
