/* =========================================================================
   Zeus Payments — EasWrk Design System v4
   Light Theme — White (#ffffff) base + Brand Blue (#5BA3DC) accent + Nunito Sans
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800;900&display=swap');

/* --- 1. Custom Properties --- */
:root {
  /* Core palette (matches easwrk.com) */
  --brand:       #5BA3DC;
  --brand-dark:  #4A8FC7;
  --brand-light: #7DBBEA;
  --brand-glow:  rgba(91, 163, 220, .15);

  /* Surface scale — light mode */
  --navy-950:    #f0f4f8;
  --navy-900:    #f8fafc;
  --navy-850:    #f1f5f9;
  --navy-800:    #e2e8f0;
  --navy-750:    #cbd5e1;
  --navy-700:    #94a3b8;
  --navy-600:    #64748b;
  --navy-500:    #475569;
  --navy-400:    #334155;

  --text:        #0f172a;
  --text-dim:    #334155;
  --text-muted:  #64748b;
  --text-subtle: #94a3b8;

  --border:      rgba(0, 0, 0, .07);
  --border-strong: rgba(0, 0, 0, .13);

  /* Semantic colors */
  --green:       #059669;
  --green-bg:    rgba(5, 150, 105, .08);
  --green-border: rgba(5, 150, 105, .2);
  --amber:       #d97706;
  --amber-bg:    rgba(217, 119, 6, .08);
  --amber-border: rgba(217, 119, 6, .2);
  --red:         #dc2626;
  --red-bg:      rgba(220, 38, 38, .08);
  --red-border:  rgba(220, 38, 38, .2);
  --blue-bg:     rgba(91, 163, 220, .08);

  /* Surfaces */
  --card-gradient: linear-gradient(180deg, rgba(91, 163, 220, .02) 0%, transparent 100%);
  --card-bg:     #ffffff;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg:   0 20px 40px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --glow:        0 0 30px rgba(91, 163, 220, .1);

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   18px;
  --transition:  180ms cubic-bezier(0.4, 0, 0.2, 1);

  --font:        'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'SF Mono', 'Monaco', 'Menlo', monospace;
}

/* --- 2. Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-light); }

::selection { background: var(--brand-glow); color: var(--text); }

/* --- 3. Header --- */
.z-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.z-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.z-header__logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.z-header__logo:hover { opacity: .85; color: var(--text); }

.z-header__bolt {
  color: var(--brand);
  filter: drop-shadow(0 0 8px var(--brand-glow));
}

.z-header__wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--navy-400) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Desktop nav */
.z-nav { display: none; align-items: center; gap: 2px; }

.z-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
  line-height: 1;
}
.z-nav__link:hover { color: var(--text); background: rgba(91, 163, 220, .06); }
.z-nav__link.is-active {
  color: var(--brand-light);
  background: var(--brand-glow);
  box-shadow: inset 0 0 0 1px rgba(91, 163, 220, .25);
}
.z-nav__icon { display: inline-flex; align-items: center; opacity: .85; }
.z-nav__link.is-active .z-nav__icon { opacity: 1; }
.z-nav__label { letter-spacing: .01em; }

/* Right section */
.z-header__right { display: flex; align-items: center; gap: .5rem; }

.z-header__user {
  display: none;
  align-items: center;
  gap: .625rem;
  margin-right: .5rem;
  padding-right: .75rem;
  border-right: 1px solid var(--border);
}

.z-header__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--text);
  font-size: .8125rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #ffffff, 0 0 20px var(--brand-glow);
}
.z-header__avatar--lg { width: 42px; height: 42px; font-size: .9375rem; }

.z-header__user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.z-header__user-name { font-size: .8125rem; font-weight: 700; color: var(--text); }
.z-header__user-role { font-size: .6875rem; color: var(--text-muted); margin-top: 1px; }

.z-header__icon-btn {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-dim);
  transition: all var(--transition);
}
.z-header__icon-btn:hover {
  color: var(--brand-light);
  background: rgba(91, 163, 220, .08);
}

/* Burger */
.z-header__burger {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; width: 38px; height: 38px;
  background: none; border: none; cursor: pointer; padding: 0;
  border-radius: 8px;
  transition: background var(--transition);
}
.z-header__burger:hover { background: rgba(91, 163, 220, .08); }
.z-header__burger span {
  display: block; width: 18px; height: 2px;
  background: var(--text-dim); border-radius: 2px;
  transition: all var(--transition);
}

@media (min-width: 768px) {
  .z-header__inner { height: 64px; padding: 0 1.5rem; }
  .z-nav { display: flex; }
  .z-header__user { display: flex; }
  .z-header__icon-btn { display: flex; }
  .z-header__burger { display: none; }
}

@media (min-width: 1024px) {
  .z-header__inner { padding: 0 2rem; }
  .z-nav { gap: 4px; }
  .z-nav__link { padding: .5rem 1rem; font-size: .875rem; }
}

/* --- 4. Mobile Drawer --- */
.z-drawer { display: none; position: fixed; inset: 0; z-index: 200; }
.z-drawer.is-open { display: flex; }
.z-drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
}
.z-drawer__panel {
  position: relative; margin-left: auto;
  width: 300px; max-width: 85vw; height: 100%;
  background: var(--navy-900);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: z-slide-in .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes z-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

.z-drawer__head {
  display: flex; align-items: center; gap: .875rem;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.z-drawer__name { font-size: .9375rem; font-weight: 700; color: var(--text); }
.z-drawer__role { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

.z-drawer__nav { flex: 1; padding: .75rem; overflow-y: auto; }
.z-drawer__link {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem .875rem; border-radius: 10px;
  font-size: .875rem; font-weight: 600; color: var(--text-dim);
  transition: all var(--transition);
  margin-bottom: 2px;
}
.z-drawer__link:hover { color: var(--text); background: rgba(91, 163, 220, .08); }
.z-drawer__link.is-active {
  color: var(--brand-light);
  background: var(--brand-glow);
}
.z-drawer__link--danger { color: var(--red); }
.z-drawer__link--danger:hover { background: var(--red-bg); color: var(--red); }
.z-drawer__divider { height: 1px; background: var(--border); margin: .625rem .25rem; }

@media (min-width: 768px) { .z-drawer { display: none !important; } }

/* --- 5. Container & Layout --- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
@media (min-width: 768px) { .container { padding: 2rem 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 2.5rem 2rem; } }

/* Page header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.page-header__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0;
}
.page-header__sub {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: .25rem;
}
.page-header__badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .75rem;
  background: var(--brand-glow);
  color: var(--brand-light);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}
.page-header__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

h1.page-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { h1.page-title { font-size: 1.875rem; } }

/* Section title */
.section-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.section-title__meta { font-size: .75rem; color: var(--text-muted); font-weight: 500; }

/* --- 6. Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(91, 163, 220, .15) 50%, transparent 100%);
}
@media (min-width: 768px) { .card { padding: 1.5rem; margin-bottom: 1.5rem; } }
@media (min-width: 1024px) { .card { padding: 1.75rem; } }

.card h2, .card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
@media (min-width: 768px) {
  .card h2, .card h3 { font-size: 1.0625rem; margin-bottom: 1.125rem; }
}

/* Card with tighter padding for KPI grids */
.card--tight { padding: 1rem; }

/* --- 7. Stat Cards --- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 480px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
}
.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.stat-card--fee::before { background: var(--amber); box-shadow: 0 0 12px rgba(245, 158, 11, .3); }
.stat-card--net::before { background: var(--green); box-shadow: 0 0 12px rgba(16, 185, 129, .3); }
.stat-card--danger::before { background: var(--red); box-shadow: 0 0 12px rgba(239, 68, 68, .3); }
.stat-card--info::before { background: var(--brand); box-shadow: 0 0 12px var(--brand-glow); }

.stat-card h3 {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.stat-card .value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .stat-card .value { font-size: 1.875rem; } }

.stat-card .subtext,
.stat-card .subvalue {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .375rem;
  font-weight: 500;
}

.stat-card .trend {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  font-weight: 700;
  padding: .125rem .375rem;
  border-radius: 4px;
  margin-top: .5rem;
}
.stat-card .trend--up { background: var(--green-bg); color: var(--green); }
.stat-card .trend--down { background: var(--red-bg); color: var(--red); }

/* --- 8. Tables --- */
.table-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

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

thead { background: rgba(0, 0, 0, .02); display: none; }
@media (min-width: 768px) { thead { display: table-header-group; } }

th {
  padding: .875rem 1.125rem;
  text-align: left;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

/* Mobile: stacked rows */
tbody tr {
  display: block;
  margin: .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}
@media (min-width: 768px) {
  tbody tr {
    display: table-row; margin: 0;
    border: none; border-radius: 0;
    background: transparent;
  }
  tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
}

tbody tr:hover { background: rgba(91, 163, 220, .04); }

td {
  display: block;
  padding: .625rem .875rem;
  text-align: right;
  position: relative;
  padding-left: 45%;
  font-size: .8125rem;
  color: var(--text);
}
td::before {
  content: attr(data-label);
  position: absolute; left: .875rem;
  width: 40%;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (min-width: 768px) {
  td {
    display: table-cell;
    padding: .875rem 1.125rem;
    text-align: left;
    padding-left: 1.125rem;
    font-size: .875rem;
    border-bottom: 1px solid var(--border);
  }
  td::before { display: none; }
}

tr.transaction-cancelled { opacity: .55; }
tr.transaction-cancelled td { color: var(--text-muted); }
tr.transaction-cancelled .amount { text-decoration: line-through; }

tr.transaction-pending-cancellation {
  background: rgba(245, 158, 11, .04);
  border-left: 3px solid var(--amber);
}

/* --- 9. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.125rem;
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
  min-height: 38px;
  letter-spacing: -.005em;
  white-space: nowrap;
}
@media (max-width: 767px) { .btn { min-height: 44px; padding: .75rem 1.25rem; } }

.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--text);
  border-color: var(--brand-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 4px 12px rgba(91, 163, 220, .2);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--brand) 100%);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 6px 20px rgba(91, 163, 220, .35);
}

.btn-secondary {
  background: rgba(91, 163, 220, .08);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(91, 163, 220, .14);
  border-color: var(--brand);
  color: var(--text);
}

.btn-success {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, .2);
}
.btn-success:hover { background: #059669; color: #fff; }

.btn-danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, .2);
}
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover { background: rgba(91, 163, 220, .08); color: var(--text); }

.btn-sm { padding: .375rem .75rem; font-size: .75rem; min-height: 30px; border-radius: 6px; }
.btn-xs { padding: .25rem .5rem; font-size: .6875rem; min-height: 24px; border-radius: 5px; }

.btn-delete { background: var(--red); color: #fff; border-color: var(--red); }
.btn-delete:hover { background: #dc2626; color: #fff; }

.btn-export { background: var(--green); color: #fff; border-color: var(--green); }
.btn-export:hover { background: #059669; color: #fff; }

.btn-small { padding: .375rem .75rem; font-size: .75rem; min-height: 30px; border-radius: 6px; }

/* --- 10. Status Badges --- */
.status {
  display: inline-flex;
  align-items: center;
  padding: .25rem .625rem;
  border-radius: 100px;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.4;
  border: 1px solid;
}
.status.completed { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }
.status.pending   { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }
.status.cancelled, .status.refunded, .status.failed {
  background: var(--red-bg); color: var(--red); border-color: var(--red-border);
}

/* --- 11. Site & Payment Badges --- */
.site-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .625rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  background: var(--brand-glow);
  color: var(--brand-light);
  border: 1px solid var(--border-strong);
  letter-spacing: .02em;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .625rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(125, 187, 234, .06);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* --- 12. Amount --- */
.amount {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.amount--positive { color: var(--green); }
.amount--negative { color: var(--red); }
.amount--brand { color: var(--brand-light); }

/* --- 13. Forms --- */
.form-group { margin-bottom: 1.125rem; }
.form-group label {
  display: block;
  margin-bottom: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-dim);
}

select, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], textarea {
  width: 100%;
  padding: .625rem .875rem;
  font-size: .875rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(5, 15, 28, .6);
  color: var(--text);
  transition: all var(--transition);
  min-height: 40px;
}
@media (max-width: 767px) { select, input, textarea { min-height: 44px; } }

select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%239bb0ce' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.25rem; }

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(5, 15, 28, .8);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

input::placeholder, textarea::placeholder { color: var(--text-subtle); }

textarea { min-height: 100px; resize: vertical; }
small { display: block; margin-top: .375rem; font-size: .75rem; color: var(--text-muted); }

/* --- 14. Filters --- */
.filters-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.125rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.filters-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(91, 163, 220, .2) 50%, transparent 100%);
}
@media (min-width: 768px) { .filters-card { padding: 1.375rem; } }

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
  margin-bottom: .875rem;
}
@media (min-width: 480px) { .filters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .filters-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
@media (min-width: 480px) { .filter-actions { flex-direction: row; flex-wrap: wrap; } }

.filters { /* legacy class support */
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.filters select, .filters input { flex: 1; min-width: 160px; }

/* --- 15. Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: .5rem .75rem;
  border-radius: 6px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-dim);
  background: #ffffff;
  border: 1px solid var(--border);
  min-width: 36px;
  text-align: center;
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--brand-glow);
  color: var(--brand-light);
  border-color: var(--border-strong);
}

.pagination .current {
  background: var(--brand);
  color: var(--text);
  border-color: var(--brand);
}

/* --- 16. Alerts --- */
.alert {
  padding: .875rem 1.125rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  line-height: 1.55;
  border: 1px solid;
}
.alert-success { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }
.alert-error   { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }
.alert-info    { background: var(--blue-bg); color: var(--brand-light); border-color: var(--border-strong); }
.alert-warning { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }

.alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* --- 17. Modals --- */
.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.is-open, .modal.active,
.modal[style*="display: flex"], .modal[style*="display:flex"] {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: z-modal-pop .2s cubic-bezier(.2, .8, .2, 1);
}
@keyframes z-modal-pop {
  from { opacity: 0; transform: scale(.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@media (min-width: 768px) { .modal-content { padding: 2rem; } }

.modal h2, .modal h3, .modal-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.125rem;
  letter-spacing: -.01em;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.125rem;
}
.modal-header h3 { margin-bottom: 0; }

.close-modal {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: all var(--transition);
}
.close-modal:hover { color: var(--text); background: rgba(91, 163, 220, .08); }

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .5rem;
  max-height: 300px;
  overflow-y: auto;
  padding: .875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .5rem;
  border-radius: 6px;
  transition: background var(--transition);
}
.checkbox-item:hover { background: rgba(91, 163, 220, .06); }
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
  min-height: auto;
}
.checkbox-item label {
  font-size: .8125rem;
  color: var(--text-dim);
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}

/* --- 18. Tabs --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: .75rem 1.125rem;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font);
  letter-spacing: -.005em;
}
.tab:hover { color: var(--text-dim); }
.tab.active {
  color: var(--brand-light);
  border-bottom-color: var(--brand);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: z-fade-in .2s ease; }
@keyframes z-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* --- 19. Chart --- */
.chart-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.chart-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(91, 163, 220, .15) 50%, transparent 100%);
}
.chart-container h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 220px;
  gap: 3px;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: all var(--transition);
  min-height: 2px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(91, 163, 220, .3);
}
.chart-bar:hover {
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--brand) 100%);
  box-shadow: 0 0 16px rgba(91, 163, 220, .5);
}
.chart-bar-tooltip {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--navy-900);
  color: var(--text);
  padding: .375rem .625rem;
  border-radius: 6px;
  font-size: .6875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  margin-bottom: .5rem;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  transition: opacity var(--transition);
}
.chart-bar:hover .chart-bar-tooltip { opacity: 1; }

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: .625rem;
  font-size: .6875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- 20. Report sections (KPI grids inside cards) --- */
.report-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.report-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(91, 163, 220, .15) 50%, transparent 100%);
}
.report-section h2 { margin-bottom: 1.125rem; }
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .875rem;
}
.report-item {
  padding: 1rem;
  background: rgba(91, 163, 220, .04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--brand);
}
.report-item strong {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.report-item span {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* --- 21. Empty state --- */
.empty-state {
  text-align: center;
  padding: 3rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.empty-state h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}
.empty-state p { color: var(--text-muted); font-size: .875rem; }

.no-data {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: .875rem;
}

/* --- 22. Search bar --- */
.search-bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.search-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(91, 163, 220, .2) 50%, transparent 100%);
}
.search-bar form {
  display: flex;
  gap: .625rem;
  align-items: center;
  width: 100%;
}
.search-bar input[type="text"] { flex: 1; }
.search-bar button {
  padding: .625rem 1rem;
  background: var(--brand);
  color: var(--text);
  border: 1px solid var(--brand-dark);
  border-radius: 8px;
  font-weight: 700;
  font-size: .8125rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}
.search-bar button:hover { background: var(--brand-light); }

/* --- 23. Loading --- */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: .875rem;
}
.loading::after {
  content: "Loading...";
  animation: z-pulse 1.5s infinite;
}
@keyframes z-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* --- 24. Utilities --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-brand { color: var(--brand-light); }
.text-mono { font-family: var(--font-mono); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden-mobile { display: none; }
@media (min-width: 768px) {
  .hidden-mobile { display: block; }
  .hidden-desktop { display: none; }
}

.overflow-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.overflow-auto::-webkit-scrollbar { height: 6px; width: 6px; }
.overflow-auto::-webkit-scrollbar-track { background: #f8fafc; border-radius: 3px; }
.overflow-auto::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 3px; }
.overflow-auto::-webkit-scrollbar-thumb:hover { background: var(--navy-500); }

/* Scrollbar for body/main */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 5px; border: 2px solid var(--navy-900); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-500); }

/* --- 25. Two-column layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split--2-1 { grid-template-columns: 2fr 1fr; } }

/* --- 26. Forms grid --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .form-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* --- 26b. General two-column grid (edit-user, split-card layouts) ---
   Stacks on mobile, 2-col from tablet+, gap matches .card spacing. */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid > .card { margin-bottom: 0; }

/* --- 27. Legacy small helpers --- */
.btn-small, .btn-xs { font-size: .6875rem; padding: .375rem .625rem; min-height: 28px; }

/* Action links in tables */
.action-links { display: flex; gap: .375rem; flex-wrap: wrap; }

/* Toggle pw icon support */
.form-input-toggle-pw .pw-hide-icon { display: none; }
.form-input-toggle-pw.is-showing .pw-show-icon { display: none; }
.form-input-toggle-pw.is-showing .pw-hide-icon { display: block; }

/* ============================================================================
   Transaction Detail page — card + grid + typography
   Supplies the class vocabulary used by transaction-detail.php so it matches
   the navy theme instead of rendering as unstyled HTML.
   ============================================================================ */

.order-header {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--navy-700);
}
.order-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.015em;
  background: linear-gradient(135deg, var(--navy-400) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.order-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: .85rem;
  font-family: ui-monospace, Menlo, monospace;
}

.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--navy-700);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-gradient);
  pointer-events: none;
}
.detail-card > * { position: relative; z-index: 1; }
.detail-card h2 {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.005em;
}
.detail-card h3 {
  margin: 0 0 .75rem 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
}
@media (min-width: 640px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
}

.detail-item {
  background: #ffffff;
  border: 1px solid var(--navy-700);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: .875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
.detail-item label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}
.detail-item .value {
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  word-break: break-word;
}
.detail-item small {
  color: var(--text-muted);
  font-size: .75rem;
}

.amount-large {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.fee-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -.01em;
}
.net-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.01em;
}

/* Status pills */
.status {
  display: inline-flex;
  align-items: center;
  padding: .25rem .625rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.status.completed  { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }
.status.pending    { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }
.status.cancelled  { background: var(--red-bg);   color: var(--red);   border-color: var(--red-border); }
.status.failed     { background: var(--red-bg);   color: var(--red);   border-color: var(--red-border); }
.status.refunded   { background: rgba(139, 92, 246, .12); color: #a78bfa; border-color: rgba(139, 92, 246, .3); }

/* Inline message blocks */
.success-message {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
  padding: .875rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: .9rem;
}
.info-message {
  background: var(--brand-glow);
  border: 1px solid rgba(91, 163, 220, .3);
  color: var(--brand-light);
  padding: .875rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: .9rem;
}

/* Action button variants */
.btn-restore {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-restore:hover { filter: brightness(1.1); }
.btn-cancel {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-cancel:hover { filter: brightness(1.1); }
.btn-request {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.btn-request:hover { filter: brightness(1.1); }

/* Print */
@media print {
  .z-header, .z-drawer, .filters-card, .filters, .pagination, .btn, .modal { display: none !important; }
  body { background: white; color: black; }
  .card, .table-container, .stat-card, .detail-card, .detail-item { border: 1px solid #ddd; box-shadow: none; background: white; }
  * { color: black !important; }
}

/* ============================================================================
   Weekly payout cycle cards (payouts.php)
   ============================================================================ */
.z-cycle {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 1rem 0 1.5rem;
}
.z-cycle__prev {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .85rem;
  font-size: .8125rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.015);
}
.z-cycle__prev-label { color: var(--text-dim); }
.z-cycle__prev-amount {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.z-cycle__card {
  position: relative;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  overflow: hidden;
}
.z-cycle__card--current,
.z-cycle__card--payable {
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(39, 174, 96, .22), transparent 60%),
    linear-gradient(180deg, rgba(39, 174, 96, .10), rgba(39, 174, 96, .02));
  border-color: rgba(39, 174, 96, .40);
  box-shadow: 0 0 0 1px rgba(39, 174, 96, .18), 0 10px 40px rgba(39, 174, 96, .10);
  padding-bottom: 1.15rem;
}
.z-cycle__card--due {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(91, 163, 220, .20), transparent 60%),
    linear-gradient(180deg, rgba(91, 163, 220, .08), rgba(91, 163, 220, .02));
  border-color: rgba(91, 163, 220, .35);
}
.z-cycle__card--past {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
/* Secondary "accumulating" card — visible but not competing with the payable card */
.z-cycle__card--accumulating {
  padding: .9rem 1.1rem .85rem;
  background: linear-gradient(180deg, rgba(91, 163, 220, .04), rgba(91, 163, 220, .01));
  border-color: rgba(91, 163, 220, .18);
}
.z-cycle__card--accumulating .z-cycle__head { margin-bottom: .3rem; }
.z-cycle__mid {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
  line-height: 1.1;
  margin: .05rem 0 .15rem;
}
.z-cycle__badge--accumulating {
  background: rgba(91, 163, 220, .12);
  color: var(--brand-light);
  border-color: rgba(91, 163, 220, .28);
  font-size: .66rem;
}
.z-cycle__actions {
  margin: .3rem 0 .75rem;
}
.z-cycle__pay-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.1rem;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(180deg, #10b981, #059669);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, .6);
  box-shadow: 0 4px 16px rgba(16, 185, 129, .25), inset 0 1px 0 rgba(255,255,255,.15);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.z-cycle__pay-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, .35), inset 0 1px 0 rgba(255,255,255,.15);
}
/* Linkable merchant names + per-row pay link (admin view on payouts.php) */
.z-cycle__row-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color var(--transition), color var(--transition);
}
.z-cycle__row-link:hover {
  color: var(--brand-light);
  border-bottom-color: rgba(91, 163, 220, .5);
}
.z-cycle__pay-link {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  padding: .15rem .55rem;
  margin-left: .2rem;
  border-radius: 8px;
  text-decoration: none;
  background: rgba(16, 185, 129, .10);
  border: 1px solid rgba(16, 185, 129, .25);
  transition: background var(--transition), border-color var(--transition);
}
.z-cycle__pay-link:hover {
  background: rgba(16, 185, 129, .18);
  border-color: rgba(16, 185, 129, .5);
}
.z-cycle__pay-link-cta {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #4ade80;
}
/* Compact rows inside the accumulating card */
.z-cycle__breakdown--compact {
  max-height: 220px;
  padding-top: .5rem;
  border-top-style: solid;
  border-top-color: rgba(91, 163, 220, .10);
}
.z-cycle__row--compact { padding: .25rem .1rem; font-size: .78rem; }
.z-cycle__row--compact .z-cycle__row-net { font-size: .85rem; }
.z-cycle__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}
.z-cycle__badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(39, 174, 96, .18);
  color: #4ade80;
  border: 1px solid rgba(39, 174, 96, .35);
}
.z-cycle__badge--alt {
  background: rgba(91, 163, 220, .15);
  color: var(--brand-light);
  border-color: rgba(91, 163, 220, .35);
}
.z-cycle__label {
  font-size: .8125rem;
  color: var(--text-muted);
  font-weight: 600;
}
.z-cycle__big {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.05;
  margin: .15rem 0 .2rem;
}
.z-cycle__card--current .z-cycle__big { color: #4ade80; }
.z-cycle__sub {
  font-size: .8125rem;
  color: var(--text-dim);
  margin-bottom: .9rem;
}
.z-cycle__sub strong { color: var(--text); font-weight: 600; }
.z-cycle__breakdown {
  border-top: 1px dashed var(--border);
  padding-top: .7rem;
  display: flex; flex-direction: column;
  gap: .4rem;
  max-height: 280px;
  overflow-y: auto;
}
.z-cycle__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .4rem .1rem;
  font-size: .8125rem;
  border-bottom: 1px solid rgba(91, 163, 220, .05);
}
.z-cycle__row:last-child { border-bottom: 0; }
.z-cycle__row-name { display: flex; flex-direction: column; min-width: 0; }
.z-cycle__row-name strong { color: var(--text); font-weight: 600; }
.z-cycle__row-meta {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.z-cycle__row-amounts {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  text-align: right;
  white-space: nowrap;
}
.z-cycle__row-gross {
  font-size: .72rem;
  color: var(--text-muted);
}
.z-cycle__row-net {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.z-cycle__card--current .z-cycle__row-net { color: #4ade80; }
.z-cycle__empty {
  padding: .9rem 0 .3rem;
  font-size: .8125rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Drawer section label */
.z-drawer__section {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .6rem .85rem .35rem;
}
