* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 50% 0%, #2a0000 0%, #000 70%);
  color: #fff;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top, 20px) + 20px) 20px 40px;
}

a {
  color: #ff3333;
  text-decoration: none;
}

.page-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.top-bar img {
  height: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.5));
}

.back-link {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.subtitle {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-hero img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 51, 51, 0.4);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.stat {
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255, 51, 51, 0.08);
  border: 1px solid rgba(255, 51, 51, 0.2);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  color: #ff3333;
}

.stat span {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.menu-item:last-child {
  border-bottom: none;
}

.prose p {
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.prose h2 {
  font-size: 1rem;
  margin: 18px 0 8px;
  color: #ff3333;
}

.prose h3 {
  font-size: 0.92rem;
  margin: 14px 0 6px;
  color: rgba(255, 255, 255, 0.95);
}

.prose ul,
.prose ol {
  margin: 0 0 12px 18px;
  line-height: 1.6;
  opacity: 0.85;
  font-size: 0.92rem;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: #fff;
}

.menu-lang-section {
  margin: 0 0 10px;
  padding: 4px 0 8px;
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.menu-lang-switch {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2px;
  width: 100%;
  background: transparent;
}

.menu-lang-switch .lang-opt {
  padding: 2px 6px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  color: rgba(255, 170, 170, 0.48);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
  touch-action: manipulation;
  line-height: 1.2;
}

.menu-lang-switch .lang-opt:hover {
  color: rgba(255, 150, 150, 0.65);
}

.menu-lang-switch .lang-opt.active-lang {
  color: #6b1414;
  font-weight: 800;
}

.menu-lang-switch .lang-sep {
  color: rgba(255, 160, 160, 0.32);
  font-size: 0.65rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  padding: 0 2px;
}

.card.prose.prose-loading,
.card.prose[data-i18n-prose].prose-loading {
  min-height: 120px;
  opacity: 0.55;
}

/* News list — separate cards */
.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.news-feed-list.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.news-state-card {
  text-align: center;
  opacity: 0.75;
  font-size: 0.92rem;
  padding: 28px 18px;
}

.news-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
  border-color: rgba(255, 51, 51, 0.35);
}

.news-card-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 120, 120, 0.85);
  margin-bottom: 10px;
}

.news-card-title {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0;
  font-weight: 700;
}

.news-card-title a {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
}

.news-card-title a:hover {
  color: #ff6666;
}

.news-card-body {
  padding: 14px 18px 6px;
  line-height: 1.65;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.news-card-body p {
  margin-bottom: 10px;
}

.news-card-body p:last-child {
  margin-bottom: 0;
}

.news-card-body h2,
.news-card-body h3 {
  font-size: 0.92rem;
  margin: 14px 0 8px;
  color: rgba(255, 200, 200, 0.95);
}

.news-card-body ul,
.news-card-body ol {
  margin: 0 0 10px 18px;
  padding: 0;
}

.news-card-body li {
  margin-bottom: 5px;
}

.news-card-body a {
  color: #ff6666;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-card-foot {
  padding: 8px 18px 16px;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ff4444;
  text-decoration: none;
}

.news-read-more:hover {
  color: #ff8888;
}

.news-read-more i {
  font-size: 0.72rem;
  transition: transform 0.15s ease;
}

.news-read-more:hover i {
  transform: translateX(3px);
}
