.main-hub {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem 3rem 3rem;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(135deg, rgba(21, 31, 54, 0.9), rgba(9, 12, 24, 0.9));
  min-height: 100%;
  color: #f4f6ff;
}

.hub-hero {
  background: linear-gradient(145deg, rgba(240, 70, 133, 0.2), rgba(95, 68, 255, 0.25));
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(12, 9, 33, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.party-actions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.party-actions-headline h2 {
  font-size: 2.25rem;
  margin: 0;
}

.party-actions-headline p {
  margin: 0.75rem 0 0;
  color: rgba(244, 246, 255, 0.75);
  font-size: 1.05rem;
}

.party-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.party-action-card {
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(14, 18, 35, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.party-action-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.party-action-card p {
  margin: 0;
  color: rgba(244, 246, 255, 0.7);
}

.party-create-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.party-create-form select {
  background: rgba(9, 12, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: inherit;
}

.party-action-card--random {
  background: linear-gradient(140deg, rgba(255, 173, 67, 0.18), rgba(255, 89, 171, 0.1));
}

.hub-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: start;
}

.hub-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hub-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hub-row--footer .hub-section {
  width: 100%;
}

@media (max-width: 1240px) {
  .hub-layout {
    grid-template-columns: 1fr;
  }
}

.hub-section {
  background: rgba(12, 18, 36, 0.78);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 35px rgba(6, 9, 22, 0.28);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hub-section-header h3 {
  margin: 0;
  font-size: 1.6rem;
}

.hub-section-header p {
  margin: 0.35rem 0 0;
  color: rgba(244, 246, 255, 0.7);
}

.changelog-cards {
  display: grid;
  gap: 1rem;
}

.changelog-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  color: #0b0d16;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.changelog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.changelog-card h4 {
  margin: 0;
  font-size: 1.3rem;
}

.changelog-card-summary {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

.changelog-card-details {
  margin: 0;
  font-weight: 500;
  opacity: 0.85;
}

.changelog-card--galaxy {
  background: linear-gradient(135deg, #5f4b8b, #1e215d);
  color: #f3f4ff;
}

.changelog-card--neon {
  background: linear-gradient(135deg, #ff4aa5, #5a1df6);
  color: #fff1ff;
}

.changelog-card--arcade {
  background: linear-gradient(135deg, #ffb347, #ffcc33);
}

.changelog-card--sunset {
  background: linear-gradient(135deg, #ff6a88, #ff99ac);
}

.changelog-card--frost {
  background: linear-gradient(135deg, #6dd5fa, #2980b9);
  color: #082036;
}

.changelog-status,
.promotion-status,
.discovery-status,
.history-status {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(244, 246, 255, 0.65);
}

.promotion-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.promotion-card {
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #0b0d16;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.promotion-card h4 {
  margin: 0;
  font-size: 1.2rem;
}

.promotion-rarity {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.promotion-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.promotion-price {
  margin-top: auto;
  font-weight: 700;
}

.promotion-card--legendary {
  background: linear-gradient(135deg, #ffdd87, #ffaf45);
}

.promotion-card--epic {
  background: linear-gradient(135deg, #b86bff, #7d3cff);
  color: #f8f4ff;
}

.promotion-card--rare {
  background: linear-gradient(135deg, #4dd0e1, #2196f3);
  color: #0b1c33;
}

.promotion-card--uncommon {
  background: linear-gradient(135deg, #71f7b8, #2ecc71);
}

.promotion-card--common {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(220, 220, 220, 0.2));
}

.promotion-footer {
  display: flex;
  justify-content: flex-end;
}

.discovery-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.discovery-filter-select {
  background: rgba(9, 12, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

.discovery-list {
  display: grid;
  gap: 1rem;
}

.discovery-card {
  background: rgba(10, 14, 28, 0.9);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.discovery-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.discovery-card-header h4 {
  margin: 0;
  font-size: 1.2rem;
}

.discovery-leader {
  font-size: 0.9rem;
  color: rgba(244, 246, 255, 0.65);
}

.discovery-stats {
  margin: 0;
  color: rgba(244, 246, 255, 0.7);
}

.discovery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.discovery-advertised {
  font-size: 0.85rem;
  color: rgba(244, 246, 255, 0.6);
}

.friends-section {
  gap: 1.75rem;
}

.friends-section .friends-empty {
  color: rgba(244, 246, 255, 0.65);
  font-style: italic;
}

.friends-section .friend-invite-list {
  display: grid;
  gap: 1rem;
}

.friends-section .friend-invite-card {
  background: rgba(64, 97, 255, 0.15);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(102, 126, 255, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.friends-section .friend-roster {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.friends-section .friend-card {
  background: rgba(9, 12, 24, 0.85);
  border-radius: 14px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.friends-section .friend-card--pinned {
  border-color: rgba(255, 215, 128, 0.6);
  box-shadow: 0 8px 20px rgba(255, 215, 128, 0.16);
}

.friends-section .friend-card h4 {
  margin: 0;
}

.friends-section .friend-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  width: fit-content;
}

.friends-section .friend-presence--online {
  background: rgba(84, 255, 182, 0.18);
}

.friends-section .friend-presence--away {
  background: rgba(255, 221, 130, 0.2);
}

.friends-section .friend-presence--offline {
  background: rgba(180, 187, 215, 0.15);
}

.friends-section .friend-party {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(244, 246, 255, 0.75);
}

.friends-section .friend-invite-row {
  display: flex;
  justify-content: flex-end;
}

.friends-section .friend-actions {
  display: grid;
  gap: 1rem;
}

.friends-section .friends-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.friends-section .friends-add-trigger {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(110, 191, 255, 0.5);
  background: rgba(110, 191, 255, 0.15);
  color: #f6f7fb;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-inline-start: auto;
}

.friends-section .friends-add-trigger:hover {
  border-color: rgba(110, 191, 255, 0.75);
  background: rgba(110, 191, 255, 0.25);
}

.friends-section .friend-request-list,
.friends-section .friend-request-sent-list {
  display: grid;
  gap: 0.6rem;
}

.friends-section .friend-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.history-reel .history-item {
  background: rgba(8, 11, 24, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.language--rtl .party-actions,
body.language--rtl .party-actions-headline,
body.language--rtl .hub-section,
body.language--rtl .hub-section-header,
body.language--rtl .friends-section,
body.language--rtl .share-popover,
body.language--rtl .share-modal-link {
  direction: rtl;
}

body.language--rtl .friends-section .friend-invite-row {
  justify-content: flex-start;
}

body.language--rtl .friends-section .friends-add-trigger {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

body.language--rtl .friend-request-card {
  flex-direction: row-reverse;
  text-align: right;
}

body.language--rtl .share-popover button,
body.language--rtl .share-modal-link button {
  align-self: flex-end;
}

@media (max-width: 768px) {
  .main-hub {
    padding: 1.5rem;
  }
  .party-actions-headline h2 {
    font-size: 1.8rem;
  }
}
