.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.app-title {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
}

.burger-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #2c3e50;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 240px;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.side-menu.active {
  right: 0;
}

.side-menu .menu-header {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-menu ul li a {
  display: block;
  padding: 14px;
  color: #2c3e50;
  text-decoration: none;
}

.side-menu ul li a.logout {
  color: #b00020;
}

/* Карточки */
.home-user-code-line {
  margin-top: 10px;
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.card {
  border-radius: 20px;
  padding: 20px;
  margin: 15px 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 20px;
}

/* Единый стиль кнопок */
.btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: none;
  color: #2c3e50;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
  text-decoration: none;
  font-size: 18px;
  width: auto;
  padding: 6px 12px;
  display: inline-block;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.app-main {
  padding: 0 10px;
  text-align: center;
}

/* Блок описания приложения на главной */
.app-intro {
  margin: 12px 0 20px;
  padding: 16px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.app-intro__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.app-intro__desc {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #475569;
}

.app-intro__features {
  margin: 0;
  padding: 0 0 0 1.2rem;
  text-align: left;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* Скрыть контент до загрузки переводов — не показывать {{key}} */
body.i18n-loading .app-main {
  opacity: 0;
}
.app-main {
  transition: opacity 0.15s ease-out;
}

.home-section-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.home-highlights,
.home-useful,
.home-tips,
.home-fact {
  margin: 12px 0 18px;
  padding: 16px 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.home-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-highlight-card {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 8px;
  text-align: center;
}

.home-highlight-card__value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 3px;
}

.home-highlight-card__label {
  margin: 0;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
}

.home-useful__list {
  display: grid;
  gap: 8px;
}

.home-useful-item {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
}

.home-useful-item h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: #111827;
}

.home-useful-item p {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
}

.home-tips__list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.6;
}

.home-fact__text {
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-fact__links {
  margin: 12px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.home-fact__links a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.home-fact__links a:hover {
  text-decoration: underline;
}

.home-member {
  margin: 14px 0 18px;
  padding: 16px 12px 14px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(8px);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.home-member__intro {
  margin: 0 0 10px;
  color: #475569;
  font-size: 0.87rem;
  line-height: 1.5;
}

.home-member__grid {
  display: grid;
  gap: 8px;
}

.home-member-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-member-card strong {
  color: #0f172a;
  font-size: 0.9rem;
}

.home-member-card span {
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.4;
}

.home-member-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.14);
  transform: translateY(-1px);
}

.home-member__now {
  margin-top: 12px;
  padding: 10px 11px 9px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.home-member__now h3 {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: #0f172a;
}

.home-member__tips {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.83rem;
  line-height: 1.52;
}

.home-welcome-card {
  margin-top: 12px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.home-welcome-card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
}

.home-install-actions {
  margin: 0 0 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.home-install-actions .btn-ind-instal {
  margin-top: 0;
  background: #0f172a;
  color: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

.home-install-actions .btn-ind-instal:hover {
  background: #1e293b;
}

@media (max-width: 420px) {
  .home-highlights__grid {
    grid-template-columns: 1fr;
  }
}