/* Buttons */
.btn {
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn.primary {
  border: 0;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 26px rgba(45, 212, 191, 0.4);
  color: var(--bg-0);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: rgba(148, 163, 184, 0.08);
}

/* Chips */
.chip {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Panel */
.panel {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.panel-title {
  font-weight: 600;
  color: var(--text);
}

/* Progress Bar */
.progress-bar {
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin: 14px 0 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.4);
  animation: fill 1.2s ease-out;
}

@keyframes fill {
  from {
    width: 0%;
  }
}

/* Stat Card */
.stat-card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 600;
}

.stat-label {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.85rem;
}

/* Tags */
.tag {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

/* Feature Item */
.feature {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 18px;
}

/* Tier Card */
.tier-card {
  background: rgba(12, 18, 28, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  padding: 22px;
  transition: transform 0.25s ease, border 0.25s ease;
}

.tier-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, 0.5);
}

.tier-amount {
  font-size: 1.7rem;
  font-weight: 600;
}

.tier-title {
  margin-top: 6px;
  color: var(--accent-2);
}

.tier-desc {
  color: var(--muted);
  margin: 8px 0 18px;
}

/* Ledger Panel */
.ledger-panel {
  background: rgba(12, 18, 28, 0.9);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  gap: 12px;
  align-content: start;
}

/* Wall Item */
.wall-item {
  background: rgba(148, 163, 184, 0.08);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

/* FAQ Details */
.faq-list details {
  background: rgba(148, 163, 184, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

/* Ledger Redesign */
.ledger-card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

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

.ledger-row.main-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border: none;
}

.stat-name {
  color: #ffffff; /* Unified white */
  font-size: 1.1rem;
  font-weight: 500;
}

.stat-value-highlight {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.ledger-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
  margin: 8px 0;
}

.ledger-row.future-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
  border: none;
}

.future-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.future-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #ffffff; /* White text for future expenses */
  font-style: italic;
  padding-left: 16px;
  border-left: 2px solid rgba(148, 163, 184, 0.1);
}

.ledger-subhead {
    color: var(--muted);
    font-size: 0.85em;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ledger-subhead:first-child { margin-top: 0; }

.ledger-row.future {
    opacity: 0.8;
    font-style: italic;
}

.ledger-footer {
  display: none;
}

/* Wall Table */
.wall-table {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
}

.wall-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  align-items: center;
}
.wall-row:last-child {
  border-bottom: 0;
}
#exp-table .wall-row {
  grid-template-columns: 2fr 1fr 1fr;
}
.wall-head {
  background: rgba(148, 163, 184, 0.05);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}
.pagination {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
.pager-actions {
  display: flex;
  gap: 12px;
}

/* Channel Card */
.channel-card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.3);
}
.channel-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}
.qr-box {
  width: 200px;
  height: 200px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.qr-box img {
  width: 100%;
  height: 100%;
  display: block;
}
.channel-meta {
  color: var(--muted);
  font-size: 0.95rem;
}
