 :root {
     --primary: #e63333;
     --blue: #2563eb;
     --green: #059669;
     --amber: #d97706;
     --bg: #f0f4ff;
     --bg-card: #ffffff;
     --border: #dde3f0;
     --text: #111827;
     --text-soft: #374151;
     --muted: #6b7280;
     --green-bg: #ecfdf5;
     --green-brd: #6ee7b7;
     --amber-bg: #fffbeb;
     --amber-brd: #fcd34d;
     --blue-bg: #eff6ff;
 }

 * {
     box-sizing: border-box;
 }

 body {
     background-color: var(--bg);
     color: var(--text);
     font-family: 'Inter', sans-serif;
     margin: 0;
     padding-bottom: 50px;
     min-height: 100vh;
 }

 /* ── HEADER ── */
 .app-header {
     display: flex;
     align-items: center;
     gap: 14px;
     padding: 18px 18px 16px;
     background: #fff;
     border-bottom: 2px solid var(--border);
     position: sticky;
     top: 0;
     z-index: 100;
     box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
 }

 .back-btn {
     width: 46px;
     height: 46px;
     border-radius: 14px;
     background: var(--bg);
     border: 2px solid var(--border);
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--text);
     text-decoration: none;
     transition: all 0.2s ease;
     flex-shrink: 0;
 }

 .back-btn:hover {
     background: var(--border);
     color: var(--text);
 }

 .back-btn i {
     font-size: 26px;
 }

 .header-info {
     flex: 1;
 }

 .header-info h5 {
     margin: 0;
     font-size: 20px;
     font-weight: 800;
     color: var(--text);
     letter-spacing: -0.4px;
 }

 .header-info small {
     font-size: 13px;
     color: var(--muted);
     font-weight: 500;
 }

 .header-badge {
     background: var(--blue-bg);
     color: var(--blue);
     border: 1px solid #bfdbfe;
     border-radius: 20px;
     padding: 6px 14px;
     font-size: 13px;
     font-weight: 700;
     white-space: nowrap;
 }

 /* ── SUMMARY BANNER ── */
 .summary-banner {
     margin: 18px 16px 0;
     background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
     border-radius: 22px;
     padding: 22px 20px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
     position: relative;
     overflow: hidden;
     box-shadow: 0 8px 28px rgba(37, 99, 235, 0.28);
 }

 .summary-banner::before {
     content: '';
     position: absolute;
     top: -30px;
     right: -20px;
     width: 120px;
     height: 120px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.08);
 }

 .summary-banner::after {
     content: '';
     position: absolute;
     bottom: -25px;
     right: 50px;
     width: 70px;
     height: 70px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.05);
 }

 .summary-label {
     font-size: 12px;
     font-weight: 700;
     color: rgba(255, 255, 255, 0.7);
     text-transform: uppercase;
     letter-spacing: 0.8px;
     margin-bottom: 6px;
 }

 .summary-name {
     font-size: 18px;
     font-weight: 800;
     color: #fff;
     margin-bottom: 3px;
     letter-spacing: -0.3px;
 }

 .summary-sub {
     font-size: 13px;
     color: rgba(255, 255, 255, 0.65);
     font-weight: 500;
 }

 .summary-totals {
     text-align: right;
     flex-shrink: 0;
     position: relative;
     z-index: 1;
 }

 .summary-totals .total-amount {
     font-size: 28px;
     font-weight: 900;
     color: #fff;
     letter-spacing: -1.2px;
     line-height: 1;
 }

 .summary-totals .total-label {
     font-size: 12px;
     color: rgba(255, 255, 255, 0.6);
     font-weight: 600;
     margin-top: 5px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 /* ── FILTER TABS ── */
 .filter-row {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 18px 16px 6px;
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
     scrollbar-width: none;
 }

 .filter-row::-webkit-scrollbar {
     display: none;
 }

 .filter-tab {
     padding: 10px 20px;
     border-radius: 30px;
     font-size: 14px;
     font-weight: 700;
     border: 2px solid var(--border);
     background: #fff;
     color: var(--muted);
     cursor: pointer;
     white-space: nowrap;
     transition: all 0.2s ease;
     letter-spacing: 0.2px;
     min-height: 44px;
     display: flex;
     align-items: center;
 }

 .filter-tab.active {
     background: var(--blue);
     border-color: var(--blue);
     color: #fff;
     box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
 }

 /* ── SECTION LABEL ── */
 .section-label {
     font-size: 12px;
     font-weight: 700;
     color: var(--muted);
     text-transform: uppercase;
     letter-spacing: 1px;
     padding: 16px 20px 8px;
 }

 /* ── PAYMENT CARD ── */
 .payment-card {
     margin: 0 16px 14px;
     background: var(--bg-card);
     border: 2px solid var(--border);
     border-radius: 20px;
     padding: 20px;
     position: relative;
     overflow: hidden;
     transition: transform 0.15s ease, box-shadow 0.15s ease;
     animation: fadeInUp 0.35s ease both;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(14px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .payment-card:active {
     transform: scale(0.985);
     box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
 }

 /* Colored left accent bar */
 .payment-card::before {
     content: '';
     position: absolute;
     left: 0;
     top: 0;
     bottom: 0;
     width: 6px;
     background: var(--green);
     border-radius: 20px 0 0 20px;
 }

 .payment-card.pending::before {
     background: var(--amber);
 }

 /* Top section */
 .card-top {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     gap: 10px;
 }

 .week-chip {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     background: var(--bg);
     border: 1px solid var(--border);
     border-radius: 10px;
     padding: 5px 12px;
     font-size: 12px;
     font-weight: 700;
     color: var(--muted);
     letter-spacing: 0.5px;
     text-transform: uppercase;
     margin-bottom: 10px;
 }

 .week-chip i {
     font-size: 14px;
 }

 .work-type {
     font-size: 17px;
     font-weight: 800;
     color: var(--text);
     margin: 0 0 6px;
     letter-spacing: -0.3px;
 }

 .sede-info {
     font-size: 14px;
     color: var(--text-soft);
     display: flex;
     align-items: center;
     gap: 5px;
     font-weight: 500;
 }

 .sede-info i {
     font-size: 16px;
     color: var(--muted);
 }

 /* Amount + status */
 .amount-block {
     text-align: right;
     flex-shrink: 0;
 }

 .amount {
     font-size: 26px;
     font-weight: 900;
     color: var(--green);
     letter-spacing: -1px;
     line-height: 1;
 }

 .amount .currency {
     font-size: 15px;
     font-weight: 700;
     vertical-align: super;
     letter-spacing: 0;
     margin-right: 2px;
 }

 .payment-card.pending .amount {
     color: var(--amber);
 }

 .status-badge {
     margin-top: 8px;
     display: inline-flex;
     align-items: center;
     gap: 6px;
     padding: 5px 12px;
     border-radius: 20px;
     font-size: 12px;
     font-weight: 800;
     letter-spacing: 0.4px;
     text-transform: uppercase;
 }

 .status-badge.paid {
     background: var(--green-bg);
     color: var(--green);
     border: 1px solid var(--green-brd);
 }

 .status-badge.pending-st {
     background: var(--amber-bg);
     color: var(--amber);
     border: 1px solid var(--amber-brd);
 }

 .status-dot {
     width: 7px;
     height: 7px;
     border-radius: 50%;
     background: currentColor;
 }

 .status-badge.pending-st .status-dot {
     animation: pulse-dot 1.8s ease infinite;
 }

 @keyframes pulse-dot {

     0%,
     100% {
         opacity: 1;
         transform: scale(1);
     }

     50% {
         opacity: 0.4;
         transform: scale(0.7);
     }
 }

 /* Bottom row */
 .card-bottom {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-top: 16px;
     padding-top: 14px;
     border-top: 2px solid var(--border);
     flex-wrap: wrap;
     gap: 8px;
 }

 .date-info {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 14px;
     color: var(--text-soft);
     font-weight: 600;
 }

 .date-info i {
     font-size: 17px;
     color: var(--muted);
 }

 .period-info {
     font-size: 13px;
     color: var(--text-soft);
     background: var(--bg);
     border: 1px solid var(--border);
     padding: 4px 12px;
     border-radius: 8px;
     font-weight: 600;
 }

 /* ── EMPTY STATE ── */
 .empty-state {
     text-align: center;
     padding: 60px 30px;
     animation: fadeInUp 0.4s ease both;
 }

 .empty-icon {
     width: 80px;
     height: 80px;
     border-radius: 24px;
     background: #fff;
     border: 2px solid var(--border);
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 0 auto 20px;
     font-size: 36px;
     box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
 }

 .empty-state h6 {
     font-size: 18px;
     font-weight: 800;
     color: var(--text);
     margin-bottom: 8px;
 }

 .empty-state p {
     font-size: 15px;
     color: var(--muted);
     margin: 0;
     line-height: 1.5;
 }

 /* ── SKELETON LOADER ── */
 #loading {
     padding: 18px 16px 0;
 }

 .skeleton-card {
     background: #fff;
     border: 2px solid var(--border);
     border-radius: 20px;
     padding: 20px;
     margin-bottom: 14px;
 }

 .skeleton {
     background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
     background-size: 200% 100%;
     animation: shimmer 1.5s infinite;
     border-radius: 8px;
 }

 @keyframes shimmer {
     from {
         background-position: 200% 0;
     }

     to {
         background-position: -200% 0;
     }
 }

 .sk-row {
     display: flex;
     justify-content: space-between;
     gap: 12px;
     margin-bottom: 12px;
 }

 .sk-chip {
     height: 24px;
     width: 90px;
     border-radius: 8px;
 }

 .sk-amount {
     height: 30px;
     width: 100px;
     border-radius: 10px;
 }

 .sk-title {
     height: 20px;
     width: 160px;
     border-radius: 8px;
 }

 .sk-sub {
     height: 16px;
     width: 110px;
     border-radius: 6px;
     margin-top: 8px;
 }

 .sk-divider {
     height: 2px;
     background: var(--border);
     margin: 16px 0;
     border-radius: 2px;
 }

 .sk-dates {
     display: flex;
     justify-content: space-between;
 }

 .sk-date {
     height: 14px;
     width: 80px;
     border-radius: 6px;
 }