
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #111;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
}
.app-title { font-size: 16px; font-weight: 600; }
.back-btn, .menu-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  padding: 4px 6px;
  cursor: pointer;
}
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 8px;
}
.hidden { display: none !important; }

/* Home */
.profile-card {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #f3f5ff;
}
.avatar-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #4caf50;
  display: flex; align-items: center; justify-content: center;
  margin-right: 10px;
}
.avatar-emoji { font-size: 22px; }
.profile-name { font-size: 15px; font-weight: 600; }
.profile-id { font-size: 12px; color: #666; }

.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-item {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  background: #111111dd;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  text-align: left;
}
.menu-item + .menu-item { border-top: 1px solid #00000033; }
.menu-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-right: 10px;
  font-size: 18px;
}
.menu-icon.green { background: #4caf50; }
.menu-icon.blue { background: #2196f3; }
.menu-icon.red { background: #f44336; }
.menu-icon.orange { background: #ff9800; }
.menu-text { display: flex; flex-direction: column; }
.menu-title { font-size: 15px; font-weight: 600; }
.menu-subtitle { font-size: 12px; opacity: 0.85; }
.badge {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge-available {
  background: #c8f7d4;
  color: #1b5e20;
}
.app-footer {
  font-size: 10px;
  color: #888;
  text-align: center;
  padding: 4px 0;
}

/* Login */
.login-header { padding-top: 16px; padding-bottom: 8px; }
.login-header h2 { font-size: 18px; margin-bottom: 4px; }
.login-header p { font-size: 13px; color: #666; }
.login-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-label { font-size: 12px; color: #666; }
.phone-input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #4caf50;
  font-size: 14px;
  outline: none;
}
.phone-input:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 1px #2e7d3233;
}
.primary-btn {
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg, #4caf50, #00c853);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.primary-btn:active { opacity: 0.85; }

/* Tabs screen */
.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}
.tab {
  flex: 1;
  padding: 10px 4px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: #2e7d32;
  border-bottom-color: #2e7d32;
  font-weight: 600;
}
.search-bar { margin: 8px 0 12px; }
.search-bar input {
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 13px;
}
.list-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
}
.bottom-bar { padding: 8px 0; }
.full-width { width: 100%; }

@media (max-width: 480px) {
  .menu-item { border-radius: 10px; }
}
