:root{
    --brand-orange:#E87820;
    --brand-charcoal:#2b2f32;
    --purple-1:#6D5EF9;
    --purple-2:#8B6DF0;
    --muted:#8a9099;
    --border:#eef0f2;
    --bg:#f6f7f9;
    --green:#16a34a;
    --green-bg:#e9f9ee;
    --red:#e0435c;
    --red-bg:#fdecef;
    --blue:#3b7ff5;
    --blue-bg:#eaf2ff;
    --purple:#7c5cf0;
    --purple-bg:#f1edfe;
    --amber:#e2900f;
    --amber-bg:#fdf3e1;
  }

  .page-wrap{max-width:1320px;margin:0 auto;padding:24px 16px 60px;}
  .page-title{font-weight:800;font-size:1.5rem;margin-bottom:2px;}
  .breadcrumb-row{font-size:.85rem;color:var(--muted);}
  .breadcrumb-row .sep{margin:0 6px;}
  .breadcrumb-row .current{color:var(--brand-charcoal);font-weight:500;}

  /* Stat cards */
  .stat-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px 20px;height:100%;}
  .stat-hero{background:linear-gradient(135deg,var(--purple-1),var(--purple-2));border:none;color:#fff;position:relative;overflow:hidden;}
  .stat-hero::after{content:"";position:absolute;right:-30px;top:-30px;width:140px;height:140px;background:rgba(255,255,255,.08);border-radius:50%;}
  .stat-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.15rem;flex-shrink:0;}
  .icon-amber{background:#fef3d9;color:#d99500;}
  .icon-green{background:var(--green-bg);color:var(--green);}
  .icon-red{background:var(--red-bg);color:var(--red);}
  .icon-blue{background:var(--blue-bg);color:var(--blue);}
  .icon-white{background:rgba(255,255,255,.18);color:#fff;}
  .stat-label{font-size:.78rem;color:var(--muted);margin-bottom:4px;}
  .stat-hero .stat-label{color:rgba(255,255,255,.85);}
  .stat-value{font-weight:800;font-size:1.4rem;line-height:1.2;}
  .stat-sub{font-size:.72rem;color:var(--muted);}
  .stat-hero .stat-sub{color:rgba(255,255,255,.75);}
  .btn-wallet{background:#fff;color:var(--purple-1);font-weight:600;font-size:.82rem;border:none;border-radius:10px;padding:8px 14px;}
  .btn-wallet:hover{background:#f2f0ff;color:var(--purple-1);}

  /* Filters */
  .filter-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:14px;margin-top:20px;}
  .filter-card .form-select,.filter-card .form-control{border-radius:10px;font-size:.85rem;border-color:var(--border);}
  .filter-card .input-group-text{background:#fff;border-color:var(--border);border-right:none;}
  .filter-card .form-control.search-input{border-left:none;}
  .btn-outline-soft{border:1px solid var(--border);border-radius:10px;font-size:.85rem;font-weight:500;color:var(--brand-charcoal);background:#fff;}
  .btn-outline-soft:hover{background:#f6f7f9;color:var(--brand-charcoal);}
  .btn-export{background:var(--brand-charcoal);color:#fff;border-radius:10px;font-size:.85rem;font-weight:500;}
  .btn-export:hover{background:#1c1f21;color:#fff;}

  /* Table card + tabs */
  .table-card{background:#fff;border:1px solid var(--border);border-radius:16px;margin-top:18px;overflow:hidden;}
  .nav-tabs{border-bottom:1px solid var(--border);padding:6px 14px 0;gap:4px;flex-wrap:wrap;}
  .nav-tabs .nav-link{border:none;color:var(--muted);font-size:.86rem;font-weight:500;padding:10px 14px;border-radius:0;}
  .nav-tabs .nav-link.active{color:var(--brand-orange);border-bottom:2px solid var(--brand-orange);background:transparent;}
  .table thead th{font-size:.72rem;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);font-weight:600;border-bottom:1px solid var(--border);padding:12px 16px;white-space:nowrap;}
  .table tbody td{padding:14px 16px;font-size:.86rem;border-bottom:1px solid var(--border);vertical-align:middle;white-space:nowrap;}
  .table tbody tr:last-child td{border-bottom:none;}
  .txn-id{color:var(--muted);}
  .coins-pos{color:var(--green);font-weight:600;}
  .coins-neg{color:var(--red);font-weight:600;}
  .badge-pill{font-size:.74rem;font-weight:600;padding:5px 10px;border-radius:999px;}
  .b-earned{background:var(--green-bg);color:var(--green);}
  .b-redeemed{background:var(--red-bg);color:var(--red);}
  .b-adjustment{background:var(--purple-bg);color:var(--purple);}
  .b-expired{background:var(--amber-bg);color:var(--amber);}
  .s-credited{background:var(--green-bg);color:var(--green);}
  .s-completed{background:var(--blue-bg);color:var(--blue);}
  .s-expired{background:var(--amber-bg);color:var(--amber);}

  /* Mobile cards */
  .txn-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px;margin-bottom:10px;}
  .txn-card .row-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px;}
  .txn-card .meta-row{display:flex;justify-content:space-between;font-size:.78rem;color:var(--muted);margin-top:4px;}
  .txn-card .desc{font-size:.85rem;font-weight:600;margin:6px 0 2px;}

  .footer-bar{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;flex-wrap:wrap;gap:10px;}
  .entries-text{font-size:.82rem;color:var(--muted);}
  .pagination .page-link{border-radius:8px;margin:0 2px;color:var(--brand-charcoal);border-color:var(--border);font-size:.85rem;}
  .pagination .page-item.active .page-link{background:var(--brand-orange);border-color:var(--brand-orange);}
  .per-page-select{width:auto;border-radius:8px;font-size:.85rem;}

  @media (max-width:767px){
    .page-wrap{padding:16px 12px 40px;}
    .filter-card .col-lg,.filter-card .col-md{margin-bottom:8px;}
  }