*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f6ff;
  color: #111827;
}

/* Topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
}

.logo-hand {
  display: inline-block;
  font-size: 26px;
  transform-origin: 70% 70%;
  animation: logoWave 3.2s ease-in-out infinite;
}

@keyframes logoWave {
  0%,
  80%,
  100% {
    transform: rotate(0deg);
  }
  83% {
    transform: rotate(16deg);
  }
  86% {
    transform: rotate(-10deg);
  }
  89% {
    transform: rotate(6deg);
  }
  92% {
    transform: rotate(-3deg);
  }
  95% {
    transform: rotate(1deg);
  }
}

/* nav dropdown */

.topbar-nav {
  position: relative;
}

.nav-menu-btn {
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.nav-menu-btn:hover {
  background: rgba(15, 23, 42, 0.04);
}

.nav-menu-btn:active {
  transform: scale(0.96);
}

.nav-menu {
  position: absolute;
  right: 0;
  top: 42px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  border-radius: 16px;
  padding: 6px 0;
  min-width: 190px;
  display: none;
}

.nav-menu-open {
  display: block;
}

.nav-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
}

.nav-menu a:hover {
  background: #f3f4ff;
}

/* Layout */

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 18px 18px 40px;
}

.hero-card {
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  padding: 32px 22px 30px;
  text-align: center;
}

.hero-hand {
  font-size: 64px;
  margin-bottom: 8px;
  display: inline-block;
  transform-origin: 70% 70%;
  animation: logoWave 3.2s ease-in-out infinite;
}

.hero-brand {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin: 10px 0 8px;
}

.hero-sub {
  font-size: 15px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 18px;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-list li span.emoji {
  font-size: 28px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.3);
}

.btn:hover {
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.35);
}

.btn:active {
  transform: scale(0.97);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.22);
}

.btn-secondary {
  background: #e5edff;
  color: #111827;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #d9e3ff;
}

.btn-small {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  box-shadow: none;
}

.btn-danger:hover {
  background: #fecaca;
}

/* generic */

.muted {
  color: #6b7280;
  font-size: 14px;
}

.tariff-note {
  margin-top: 14px;
  font-size: 14px;
  color: #6b7280;
}

/* cards */

.panel {
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.login-wrap {
  margin-top: 40px;
}

.login-card h2 {
  margin-top: 0;
}

/* центрируем и увеличиваем кнопку "Войти" */
.login-card form {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.login-card .btn {
  padding: 14px 26px;
  font-size: 17px;
}

/* Dashboard */

.dash-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f3f4ff;
  font-size: 14px;
}

.stat-pill strong {
  font-size: 22px; /* хочешь увеличить цифры баланса — меняй это значение */
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dev-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.dev-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f3f4ff;
}

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

.dev-status {
  font-size: 13px;
  color: #6b7280;
}

.dev-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* referrals */

.ref-link {
  word-break: break-all;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f3f4ff;
  margin-top: 6px;
}

.ref-counter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

/* About */

.about-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 14px;
}

.about-list li {
  margin-bottom: 8px;
}

/* responsive */

@media (min-width: 720px) {
  .container {
    padding-top: 28px;
  }
  .hero-card {
    padding: 40px 40px 34px;
  }
  .dash-row {
    flex-direction: row;
  }
  .dash-row .panel {
    flex: 1;
  }
}
