* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; color: #1b5e20;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(160deg, #e8f5e9 0%, #dcefe2 55%, #d3e8dc 100%);
}
.leaves { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.leaf {
  position: absolute; top: -30px; border-radius: 50% 0 50% 0;
  background: rgba(129, 199, 132, .5); animation: fall linear infinite;
}
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }
.container { position: relative; z-index: 1; padding: 18px 14px 40px; max-width: 560px; margin: 0 auto; }
h1 {
  text-align: center; color: #1b5e20; letter-spacing: 2px;
  font-size: 26px; margin: 18px 0 16px; text-shadow: 0 0 14px rgba(67,160,71,.35);
}
h2 { color: #2e7d32; font-size: 22px; margin: 10px 0 12px; border-bottom: 2px solid #81c784; padding-bottom: 8px; }
h3 { color: #2e7d32; font-size: 17px; margin: 18px 0 8px; }
.muted { text-align: center; color: #66806b; }
.screen { display: none; }
.screen.active { display: block; animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.card {
  background: rgba(250, 253, 250, .92); border-radius: 18px;
  box-shadow: 0 4px 22px rgba(27, 94, 32, .13), 0 0 18px rgba(129,199,132,.22);
  padding: 16px; margin-bottom: 14px;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.stat {
  background: rgba(250,253,250,.92); border-radius: 16px; padding: 12px;
  text-align: center; box-shadow: 0 4px 16px rgba(27,94,32,.1);
}
.stat-value { font-size: 26px; font-weight: 800; color: #2e7d32; }
.stat-label { color: #66806b; font-size: 13px; margin-top: 2px; }
.cur-icon { display: flex; justify-content: center; margin-bottom: 4px; filter: drop-shadow(0 0 6px rgba(129,199,132,.8)); }
.who { text-align: center; margin: 0 0 14px; font-size: 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-btn, .btn {
  position: relative; overflow: hidden; border: 0; border-radius: 14px;
  padding: 14px 10px; font-size: 16px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #66bb6a, #43a047);
  box-shadow: 0 4px 14px rgba(46, 125, 50, .35);
}
.menu-btn::after, .btn::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shine 3.6s infinite;
}
@keyframes shine { 0% {left:-60%} 60% {left:120%} 100% {left:120%} }
.btn:active, .menu-btn:active { transform: scale(.97); }
.btn.secondary { background: linear-gradient(135deg, #42a5f5, #1e88e5); box-shadow: 0 4px 14px rgba(30,136,229,.35); }
.btn.danger { background: linear-gradient(135deg, #ef5350, #e53935); box-shadow: 0 4px 14px rgba(229,57,53,.35); }
.btn.wide, .card > .btn { width: 100%; margin-top: 6px; }
input, select, textarea {
  width: 100%; border: 2px solid #a5d6a7; border-radius: 12px;
  padding: 12px; font-size: 16px; margin-bottom: 10px;
  background: #fff; color: #1b5e20; outline-color: #66bb6a;
}
.back-btn {
  margin-top: 4px; background: transparent; color: #66bb6a;
  border: 2px solid #66bb6a; border-radius: 12px; padding: 10px 22px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(27,94,32,.08); font-size: 15px;
}
.list-item .btn { padding: 10px 14px; font-size: 14px; flex-shrink: 0; }
.alert {
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-weight: 600;
  animation: fade .25s;
}
.alert.success { background: #c8e6c9; color: #1b5e20; }
.alert.error { background: #f8cdd2; color: #b71c1c; }
.spinner {
  width: 54px; height: 54px; margin: 60px auto 12px; border-radius: 50%;
  border: 5px solid #f0f7f1; border-top-color: #43a047; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-right: 10px; box-shadow: 0 0 8px rgba(129,199,132,.7); }
.ava.ph { background: #81c784; }
.pro-head { display: flex; align-items: center; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { flex: 1; min-width: 80px; border: 0; border-radius: 12px; padding: 10px 8px; font-weight: 700; background: #c8e6c9; color: #2e7d32; cursor: pointer; }
.tab.active { background: linear-gradient(135deg, #66bb6a, #43a047); color: #fff; box-shadow: 0 4px 12px rgba(46,125,50,.35); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fade .25s; }
