/* Wallet Yetu V2 UI theme - additive overrides for the existing Bootstrap/Jinja project. */
:root {
  --wy-green: #20b77a;
  --wy-green-dark: #159763;
  --wy-green-soft: #e9f8f0;
  --wy-bg: #f3f4f5;
  --wy-surface: #ffffff;
  --wy-text: #303238;
  --wy-muted: #777b83;
  --wy-border: #e3e5e7;
  --wy-withdraw: #d96b50;
  --wy-withdraw-dark: #c45b42;
  --wy-withdraw-soft: #fff4f0;
  --wy-withdraw-border: #f2b8a8;
  --wy-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

html {
  scroll-behavior: smooth;
}

body.wy-page {
  margin: 0;
  padding: 0 0 82px;
  background: var(--wy-bg) !important;
  color: var(--wy-text);
  font-family: Arial, Helvetica, sans-serif;
}

.wy-app {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.wy-header {
  background: var(--wy-green);
  color: #fff;
  padding: 14px 18px 10px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.wy-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wy-brand {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.wy-meta-2 {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 3px;
}

.wy-back {
  color: #fff !important;
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}

.wy-group-header {
  background: #fff;
  text-align: center;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--wy-border);
}

.wy-avatar {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wy-green-soft);
  color: var(--wy-green-dark);
  font-size: 23px;
}

.wy-group-name {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.wy-subtitle {
  color: var(--wy-muted);
  margin-top: 3px;
}

.wy-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--wy-border);
  position: sticky;
  top: 61px;
  z-index: 1020;
}

.wy-tab {
  flex: 1;
  min-width: 0;
  border: 0;
  background: #fff;
  color: #666;
  padding: 15px 7px 13px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.wy-tab.active {
  color: var(--wy-green-dark);
  border-bottom-color: var(--wy-green);
}

.wy-tab:focus-visible {
  outline: 2px solid var(--wy-green);
  outline-offset: -2px;
}

.wy-content {
  padding: 16px 14px 20px;
}

.wy-panel {
  display: none;
}

.wy-panel.active {
  display: block;
}

.wy-card {
  background: #fff;
  border: 1px solid var(--wy-border);
  border-radius: 4px;
  box-shadow: var(--wy-shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.wy-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 14px;
  text-align: center;
}

.wy-input-group {
  display: flex;
  margin-bottom: 10px;
}

.wy-input-icon {
  width: 54px;
  min-width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wy-green);
  color: #fff;
  font-size: 20px;
}

.wy-input-group input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1px solid var(--wy-border);
  border-left: 0;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.wy-input-group input:focus {
  border-color: var(--wy-green);
  box-shadow: 0 0 0 2px rgba(32, 183, 122, .12);
}

.wy-btn {
  border: 0;
  border-radius: 3px;
  min-height: 46px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.wy-btn-green {
  background: var(--wy-green);
  color: #fff;
}

.wy-btn-orange {
  background: orange;
  color: #fff;
}

.wy-btn-green:hover {
  background: var(--wy-green-dark);
  color: #fff;
}

.wy-btn-withdraw {
  background: var(--wy-withdraw);
  color: #fff;
}

.wy-btn-withdraw:hover {
  background: var(--wy-withdraw-dark);
  color: #fff;
}

.wy-btn-outline-withdraw {
  background: transparent;
  color: var(--wy-withdraw);
  border: 1px solid var(--wy-withdraw);
}

.wy-btn-outline-withdraw:hover {
  background: var(--wy-withdraw-soft);
}

.wy-btn-outline-green {
  background: #fff;
  color: var(--wy-green-dark);
  border: 1px solid var(--wy-green);
}

.wy-btn-outline-orange {
  background: #fff;
  color: orange;
  border: 1px solid orange;
}

.wy-help {
  color: var(--wy-muted);
  font-size: 13px;
  margin: 10px 0 0;
  text-align: center;
}

.wy-error {
  color: #c0392b;
  font-size: 13px;
  display: block;
  margin-top: 4px;
}

.wy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.wy-stat {
  background: #fff;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wy-border);
}

.wy-stat-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.wy-stat-value {
  font-size: 29px;
  font-weight: 700;
}

.wy-stat.deposit .wy-stat-value {
  color: var(--wy-green);
}

.wy-stat.withdraw .wy-stat-value {
  color: var(--wy-withdraw);
}

.wy-stat.balance .wy-stat-value {
  color: #2f5f9f;
}

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

.wy-admin-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--wy-border);
  padding: 14px 15px;
  color: var(--wy-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.wy-admin-trigger:hover {
  background: #fafafa;
}

.wy-admin-trigger.withdraw {
  background: var(--wy-withdraw-soft);
  border-color: var(--wy-withdraw-border);
  color: var(--wy-withdraw);
}

.wy-admin-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.wy-admin-icon {
  width: 30px;
  text-align: center;
  font-size: 19px;
}

.wy-chevron {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}

.wy-admin-pane {
  display: none;
  background: #fff;
  border: 1px solid var(--wy-border);
  border-top: 0;
  padding: 14px;
}

.wy-admin-pane.open {
  display: block;
}

.wy-admin-pane.withdraw-pane {
  background: #fff9f7;
  border-left: 3px solid var(--wy-withdraw-border);
}

.wy-available {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.wy-available-label {
  background: #6d747d;
  color: #fff;
  padding: 13px 14px;
  font-size: 14px;
}

.wy-available-value {
  flex: 1;
  background: #eef1f3;
  padding: 13px 14px;
  text-align: right;
  font-weight: 700;
  color: #475569;
}

.wy-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 10px;
}

.wy-list {
  background: #fff;
  border: 1px solid var(--wy-border);
}

.wy-transaction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--wy-border);
}

.wy-transaction:last-child {
  border-bottom: 0;
}

.wy-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wy-person-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wy-green-soft);
  color: var(--wy-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.wy-name {
  font-weight: 600;
}

.wy-meta {
  font-size: 12px;
  color: var(--wy-muted);
}

.wy-amount {
  font-weight: 700;
  white-space: nowrap;
  color: var(--wy-green-dark);
}

.wy-withdraw-amount {
  color: var(--wy-withdraw);
}

.wy-pagination {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.wy-pagination a {
  text-decoration: none;
}

.wy-empty {
  text-align: center;
  color: var(--wy-muted);
  padding: 24px 10px;
}

.wy-summary {
  background: #fff;
  border: 1px solid var(--wy-border);
  padding: 15px;
  margin-top: 14px;
}

.wy-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--wy-border);
}

.wy-summary-row:last-child {
  border-bottom: 0;
}

.wy-summary-row.withdraw {
  color: var(--wy-withdraw);
}

.wy-faq-search {
  margin-bottom: 12px;
}

.wy-faq-search input {
  width: 100%;
  border: 1px solid var(--wy-border);
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
}

.wy-faq-item {
  background: #fff;
  border-bottom: 1px solid var(--wy-border);
}

.wy-faq-question {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  cursor: pointer;
  text-align: left;
}

.wy-faq-number {
  width: 27px;
  min-width: 27px;
  font-weight: 700;
}

.wy-faq-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.wy-faq-plus {
  font-size: 24px;
  color: #555;
}

.wy-faq-answer {
  display: none;
  padding: 0 44px 16px;
  color: #5d6269;
  line-height: 1.55;
}

.wy-faq-item.open .wy-faq-answer {
  display: block;
}

.wy-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  height: 68px;
  background: #fff;
  border-top: 1px solid var(--wy-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 1040;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .06);
}

.wy-nav-btn {
  border: 0;
  background: #fff;
  color: #686d74;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.wy-nav-icon {
  font-size: 20px;
  line-height: 1;
}

.wy-nav-btn.active {
  color: var(--wy-green-dark);
}

.wy-nav-btn.withdraw {
  color: var(--wy-withdraw);
}

.wy-footer-cta {
  background: #fff;
  border-top: 1px solid var(--wy-border);
  margin-top: 14px;
  padding: 20px 16px;
  text-align: center;
}

.wy-footer-cta h3 {
  font-size: 18px;
  margin: 0 0 7px;
}

.wy-footer-cta p {
  color: var(--wy-muted);
  margin: 0 0 12px;
}

.wy-legal-page {
  background: var(--wy-bg);
  color: var(--wy-text);
  min-height: 100vh;
}

.wy-legal-header {
  background: var(--wy-green);
  color: #fff;
  padding: 26px 18px 22px;
  text-align: center;
}

.wy-legal-header .brand {
  font-size: 16px;
  font-weight: 700;
}

.wy-legal-header h1 {
  margin: 7px 0 5px;
  font-size: 26px;
  color: #fff;
}

.wy-legal-header p {
  margin: 0;
  opacity: .86;
}

.wy-legal-card {
  max-width: 820px;
  margin: 18px auto 30px;
  background: #fff;
  border: 1px solid var(--wy-border);
  padding: 20px;
  box-shadow: var(--wy-shadow);
}

.wy-legal-card h2 {
  color: var(--wy-green-dark);
  border-bottom: 2px solid var(--wy-green);
  padding-bottom: 5px;
  margin-top: 28px;
}

.wy-legal-card a {
  color: var(--wy-green-dark);
}

.wy-legal-updated {
  background: var(--wy-green-soft);
  border-left: 4px solid var(--wy-green);
  padding: 11px 14px;
  color: #2d5a37;
}

.wy-legal-highlight {
  background: #f4f8ff;
  border-left: 4px solid #2f5f9f;
  padding: 12px 15px;
}

.wy-legal-warning {
  background: var(--wy-withdraw-soft);
  border-left: 4px solid var(--wy-withdraw);
  padding: 12px 15px;
}

@media (max-width: 560px) {
  .wy-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wy-stat {
    min-height: 92px;
  }

  .wy-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .wy-card {
    padding: 14px;
  }

  .wy-tab {
    font-size: 13px;
  }
}

/* Withdrawal method tabs/panels are nested inside the Admin panel.
   Keep them separate from the top-level .wy-panel navigation. */
.wy-withdraw-method {
  display: none;
}

.wy-withdraw-method.active {
  display: block;
}

.wy-destination-field[hidden] {
  display: none !important;
}

#withdrawTabs {
  position: static;
}

.pledge-pay-btn {
  border: 0;
  background: transparent;
  color: #198754;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 6px;
}

.pledge-paid-icon,
.pledge-paid .mdi {
  color: #198754;
}

.pledge-pending-icon,
.pledge-pending .mdi {
  color: #f0ad4e;
}