:root {
  --deep: #0a3d2c;
  --g1: #0a3d2c;
  --g2: #0e8a4a;
  --g3: #e3f5ea;
  --lime: #c9f26b;
  --ink: #10231a;
  --mut: #5b7066;
  --line: #d9eadf;
  --bad: #c0392b;
  --bg: #f3faf6;
  --card: #ffffff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font:
    15.5px/1.55 "Plus Jakarta Sans",
    system-ui,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(10, 61, 44, 0.12);
}
main {
  flex: 1;
  padding: 16px 16px 110px;
  background: var(--bg);
}

/* header */
.top {
  background: var(--deep);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--lime);
  display: grid;
  place-items: center;
  flex: none;
}
.top.auth {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 24px 64px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}
.top.auth .logo {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}
.top.auth + main {
  margin-top: -32px;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  position: relative;
  padding-top: 26px;
}

/* floating tab bar */
.tabs {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: 22px;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(10, 61, 44, 0.18);
  border: 1px solid var(--line);
}
.tabs a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 7px;
  border-radius: 16px;
  color: var(--mut);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.tabs a.on {
  background: var(--deep);
  color: #fff;
}
.tabs a.on svg {
  stroke: var(--lime);
}

/* home */
.hello {
  margin: -16px -16px 18px;
  padding: 8px 20px 24px;
  background: var(--deep);
  color: #fff;
  border-radius: 0 0 30px 30px;
  position: relative;
  overflow: hidden;
}
.hello::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 30px solid rgba(201, 242, 107, 0.12);
  pointer-events: none;
}
.hello small {
  color: #a9d5bd;
}
.hello .name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hello .bal {
  margin: 16px 0 14px;
}
.hello .bal b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lime);
  line-height: 1.1;
}
.quick {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.quick .btn {
  flex: 1;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  background: var(--g3);
  border-radius: 16px;
  padding: 12px 14px;
}
.stat.span2 {
  grid-column: span 2;
}
.stat b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--deep);
}
.stat span {
  font-size: 13px;
  color: var(--mut);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}
.steps .n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.steps b {
  display: block;
}
.steps span {
  color: var(--mut);
  font-size: 14px;
}

/* cards, hero, rows */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}
.hero {
  background: var(--deep);
  color: #fff;
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 16px;
}
.hero small {
  color: #a9d5bd;
}
.hero .big {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lime);
  line-height: 1.2;
}
.hero .btn {
  margin-top: 14px;
  background: var(--lime);
  color: var(--deep);
}
.hero.center {
  padding: 26px 20px;
}
.hero.center .big {
  color: #fff;
  font-size: 24px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--deep);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 10px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border: 0;
}
.row span:first-child {
  color: var(--mut);
}
h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 22px 0 10px;
  color: var(--deep);
}
a {
  color: var(--g2);
}
.mut {
  color: var(--mut);
  font-size: 16px;
}
.center {
  text-align: center;
}

/* buttons */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  background: var(--g2);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}
.btn.lime {
  background: var(--lime);
  color: var(--deep);
}
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn.alt {
  background: #fff;
  color: var(--g2);
  border: 1.5px solid var(--g2);
}
.btn.bad {
  background: var(--bad);
}
.btn.sm {
  display: inline-block;
  width: auto;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* forms */
label {
  display: block;
  margin: 14px 0 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mut);
}
input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: var(--card);
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--g2);
  box-shadow: 0 0 0 4px rgba(14, 138, 74, 0.16);
}
.btn:focus-visible,
a:focus-visible,
.tabs a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--g2);
}
input[type="file"] {
  padding: 10px;
  background: var(--bg);
}
.pw {
  position: relative;
}
.pw button {
  position: absolute;
  right: 6px;
  top: 6px;
  border: 0;
  background: var(--g3);
  color: var(--deep);
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.err {
  background: #fdecea;
  color: var(--bad);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}
.ok {
  background: var(--g3);
  color: var(--deep);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}
#pv {
  background: var(--g3);
  border-color: transparent;
}
#pv .row {
  border-color: rgba(10, 61, 44, 0.12);
}
#pv .row:nth-child(2) b {
  font-size: 21px;
  color: var(--deep);
}
#sig {
  width: 100%;
  height: 160px;
  border: 2px dashed var(--g2);
  border-radius: 14px;
  touch-action: none;
  background: #fff;
  display: block;
}

/* badges */
.badge {
  padding: 3px 11px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--g3);
  color: var(--deep);
}
.badge.pending {
  background: #fff3c4;
  color: #7a5b00;
}
.badge.rejected {
  background: #fdecea;
  color: var(--bad);
}

/* slider */
.slider {
  margin-bottom: 16px;
}
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 18px;
}
.slides::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 5/2;
  background: var(--deep);
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 14px 10px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}
.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 9px;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--line);
  transition: width 0.2s;
}
.dots i.on {
  background: var(--g2);
  width: 20px;
}

/* tables + admin (unchanged behaviour) */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  background: var(--deep);
  color: #fff;
  text-align: left;
  font-weight: 600;
}
th,
td {
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
.wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  background: #fff;
  min-height: 100vh;
}
.bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: var(--deep);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.bar a {
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.gauge {
  position: relative;
  width: 156px;
  margin: 0 auto 12px;
}
.gauge svg {
  display: block;
}
.gv {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gv b {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.gv span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lime);
  margin-top: 4px;
}
.plus {
  color: var(--g2);
  font-weight: 700;
}
.minus {
  color: var(--bad);
  font-weight: 700;
}
.lock {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--mut);
  font-size: 13.5px;
  margin: -6px 0 14px;
}

/* Back button in LoanGreen header */
.header-back {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: Top;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(201, 242, 107, 0.25);
  background: rgba(201, 242, 107, 0.1);
  color: #c9f26b;
  text-decoration: none;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease;
}

.header-back:hover {
  background: rgba(3, 3, 3, 0.22);
}

.bank-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #0a3d2c;
  color: #c9f26b;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.2s ease;
}

.bank-apply-btn:hover {
  opacity: 0.85;
}
