:root {
  --auth-panel: rgba(24, 27, 39, 0.94);
  --auth-panel-soft: rgba(34, 38, 54, 0.82);
  --auth-border: rgba(255, 255, 255, 0.12);
  --auth-text-soft: #bfc6d6;
  --auth-primary: #008cff;
  --auth-danger: #df4f64;
  --auth-success: #31c889;
  --auth-warning: #f3b43f;
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: auto;
  padding: 10px 15px;
  border: 0;
  border-radius: 9px;
  background: #303544;
  color: #fff;
  font: 700 15px Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.auth-nav-button:hover {
  background: #41485d;
}

.auth-nav-primary {
  background: var(--auth-primary);
}

.auth-nav-primary:hover {
  background: #00b5ff;
}

.auth-user-menu {
  position: relative;
}

.auth-user-menu summary {
  list-style: none;
  padding: 10px 15px;
  border-radius: 9px;
  background: #303544;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.auth-user-menu summary::-webkit-details-marker {
  display: none;
}

.auth-user-menu-panel {
  position: absolute;
  z-index: 500;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 180px;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: #171a24;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
}

.auth-user-menu-panel .auth-nav-button {
  width: 100%;
}

.auth-logout-button {
  background: #532d37;
}

.auth-shell {
  width: min(100%, 520px);
  margin: 50px auto;
  padding: 26px;
  border: 1px solid var(--auth-border);
  border-radius: 22px;
  background: var(--auth-panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  text-align: left;
}

.auth-shell-wide {
  width: min(100%, 980px);
}

.auth-shell h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 7vw, 48px);
  text-align: center;
}

.auth-subtitle {
  margin: 0 0 25px;
  color: var(--auth-text-soft);
  text-align: center;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label,
.auth-section-label {
  font-size: 15px;
  font-weight: 800;
}

.auth-field,
.auth-field * {
  box-sizing: border-box;
}

.auth-field input {
  display: block;
  width: 100%;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px;
  padding: 8px 12px !important;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  outline: none;
  background: #10131c;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.auth-field input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.18);
}

.auth-field small,
.auth-help {
  color: var(--auth-text-soft);
  line-height: 1.45;
}

.auth-password-row {
  position: relative;
  height: 44px;
}

.auth-password-row input {
  padding-right: 82px !important;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: auto !important;
  min-width: 0;
  max-width: calc(100% - 14px);
  height: 32px;
  margin: 0 !important;
  padding: 5px 10px !important;
  transform: translateY(-50%);
  border-radius: 7px;
  background: #303544;
  font-size: 13px;
  line-height: 1;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #222634;
  line-height: 1.45;
  text-align: left;
}

.auth-status[hidden] {
  display: none;
}

.auth-status[data-type="error"] {
  border: 1px solid rgba(223, 79, 100, 0.5);
  background: rgba(223, 79, 100, 0.14);
}

.auth-status[data-type="success"] {
  border: 1px solid rgba(49, 200, 137, 0.5);
  background: rgba(49, 200, 137, 0.14);
}

.auth-status[data-type="warning"] {
  border: 1px solid rgba(243, 180, 63, 0.5);
  background: rgba(243, 180, 63, 0.13);
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--auth-text-soft);
  text-align: center;
}

.auth-switch a {
  color: #65c7ff;
}

.auth-privacy-note {
  margin-top: 20px;
  padding: 13px;
  border-radius: 10px;
  background: rgba(0, 140, 255, 0.1);
  color: var(--auth-text-soft);
  line-height: 1.5;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--auth-border);
  border-radius: 17px;
  background: var(--auth-panel-soft);
}

.profile-initial {
  display: grid;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, #008cff, #7b55ff);
  font-size: 43px;
  font-weight: 900;
}

.profile-header h1 {
  margin: 0 0 6px;
  text-align: left;
}

.profile-header p {
  margin: 0;
  color: var(--auth-text-soft);
}

.auth-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 28px;
}

.auth-stat-card {
  padding: 17px;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  background: var(--auth-panel-soft);
  text-align: center;
}

.auth-stat-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 25px;
}

.auth-stat-card span {
  color: var(--auth-text-soft);
  font-size: 14px;
}

.auth-section {
  margin-top: 23px;
  padding: 20px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: var(--auth-panel-soft);
}

.auth-section h2 {
  margin: 0 0 15px;
}

.auth-game-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.auth-game-stat {
  padding: 15px;
  border-radius: 12px;
  background: #11151f;
}

.auth-game-stat h3,
.auth-game-stat p {
  margin: 0 0 8px;
}

.auth-empty-state {
  color: var(--auth-text-soft);
}

.auth-achievement-placeholder {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  color: var(--auth-text-soft);
  text-align: center;
}

.settings-grid {
  display: grid;
  gap: 16px;
}

.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 12px 0;
  text-align: left;
}

.auth-check-row input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.auth-check-row span {
  color: var(--auth-text-soft);
  line-height: 1.45;
}

.auth-danger-zone {
  border-color: rgba(223, 79, 100, 0.35);
}

.auth-danger-button {
  background: var(--auth-danger);
}

.auth-secondary-button {
  background: #303544;
}

.auth-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-action-row button,
.auth-action-row a {
  width: auto;
  margin: 0;
}

@media (max-width: 800px) {
  .auth-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar {
    position: relative;
    top: 0;
  }

  .nav-buttons {
    justify-content: center;
  }

  .auth-nav {
    width: 100%;
    justify-content: center;
  }

  .auth-user-menu-panel {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 560px) {
  .auth-shell {
    margin: 20px auto;
    padding: 18px;
  }

  .profile-header {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .profile-header h1 {
    text-align: center;
  }

  .auth-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-nav-button {
    flex: 1 1 auto;
  }

  .auth-action-row {
    display: grid;
  }

  .auth-action-row button,
  .auth-action-row a {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .auth-field input,
  .auth-password-row {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px;
  }

  .auth-password-toggle {
    height: 30px;
    padding: 4px 9px !important;
  }

  .auth-form {
    gap: 12px;
  }
}

.auth-achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.auth-achievement-card {
  padding: 15px;
  border: 1px solid rgba(243, 180, 63, 0.26);
  border-radius: 12px;
  background: rgba(243, 180, 63, 0.08);
}

.auth-achievement-card h3,
.auth-achievement-card p {
  margin: 0 0 7px;
}

.auth-achievement-card p {
  color: var(--auth-text-soft);
}

/* ------------------------------------------------------------
   Oprava zarovnání nových účetních stránek a mobilního menu
   ------------------------------------------------------------ */

.auth-shell,
.profile-header,
.auth-stat-card,
.auth-section,
.auth-user-menu-panel {
  box-sizing: border-box;
}

.auth-shell {
  max-width: 100%;
}

.auth-user-menu summary {
  box-sizing: border-box;
  text-align: center;
}

.auth-user-menu-panel .auth-nav-button,
.auth-user-menu-panel .auth-logout-button {
  box-sizing: border-box;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 14px !important;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 800px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-shell,
  .auth-shell-wide {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-nav {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  /*
    Na mobilu se dropdown nerozbalí přes obsah stránky.
    Zůstane uvnitř navbaru a zvětší jeho výšku.
  */
  .auth-user-menu {
    display: grid;
    width: 100%;
    min-width: 0;
    justify-items: center;
  }

  .auth-user-menu summary {
    width: min(180px, 100%);
    min-height: 44px;
    padding: 11px 16px;
  }

  .auth-user-menu-panel {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: min(260px, 100%);
    min-width: 0;
    margin: 9px auto 0;
    padding: 9px;
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
  }

  .auth-user-menu-panel .auth-nav-button,
  .auth-user-menu-panel .auth-logout-button {
    display: flex;
    width: 100% !important;
    min-width: 0;
    flex: none;
  }
}

@media (max-width: 560px) {
  .auth-shell,
  .auth-shell-wide {
    width: 100%;
    margin: 18px auto 28px;
    padding: 17px;
  }

  .auth-section {
    width: 100%;
    padding: 17px;
  }

  .profile-header {
    width: 100%;
  }

  .auth-nav-button {
    min-width: 0;
  }

  .auth-user-menu-panel {
    width: min(240px, 100%);
  }
}


/* Veřejné profily a report dialog */
.profile-role-badge {
  display: inline-flex;
  width: fit-content;
  margin: 9px 0 0 !important;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(123, 85, 255, 0.18);
  color: #cfc2ff !important;
  font-size: 13px;
  font-weight: 800;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}

.profile-actions .auth-nav-button,
.profile-actions button {
  width: auto;
  margin: 0;
}

.auth-dialog {
  width: min(92vw, 520px);
  padding: 0;
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  background: #171a24;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

.auth-dialog form {
  padding: 22px;
}

.auth-dialog h2 {
  margin: 0 0 12px;
  text-align: center;
}

.auth-field select,
.auth-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  outline: none;
  background: #10131c;
  color: #fff;
  font: 16px Arial, sans-serif;
}

.auth-field textarea {
  min-height: 110px;
  resize: vertical;
}

.auth-field select:focus,
.auth-field textarea:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.18);
}

@media (max-width: 560px) {
  .profile-actions {
    display: grid;
    width: 100%;
  }

  .profile-actions .auth-nav-button,
  .profile-actions button {
    width: 100%;
  }
}


.auth-achievement-game {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 140, 255, 0.16);
  color: #8ed8ff;
  font-size: 12px;
  font-weight: 800;
}


/* Achievementy X/X, zamčené položky a podrobné herní statistiky */
.auth-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.auth-section-heading h2 {
  margin: 0;
}

#achievementSectionCount {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(243, 180, 63, 0.14);
  color: #ffd36f;
  font-size: 14px;
  white-space: nowrap;
}

.auth-achievement-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    border-color 0.18s ease;
}

.auth-achievement-unlocked {
  border-color: rgba(243, 180, 63, 0.48);
  background: rgba(243, 180, 63, 0.11);
}

.auth-achievement-locked {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(17, 21, 31, 0.92);
  opacity: 0.72;
}

.auth-achievement-card:hover {
  transform: translateY(-2px);
}

.auth-achievement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.auth-achievement-top .auth-achievement-game {
  margin: 0;
}

.auth-achievement-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--auth-text-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.auth-achievement-unlocked .auth-achievement-status {
  background: rgba(49, 200, 137, 0.17);
  color: #8cf0bf;
}

.auth-achievement-description {
  min-height: 38px;
}

.auth-achievement-progress {
  margin-top: 12px;
}

.auth-achievement-progress[hidden] {
  display: none;
}

.auth-achievement-progress-text {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
  color: var(--auth-text-soft);
  font-size: 13px;
  font-weight: 800;
}

.auth-achievement-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.auth-achievement-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #008cff,
    #7b55ff
  );
  transition: width 0.35s ease;
}

.auth-achievement-unlocked
.auth-achievement-progress-track span {
  background: linear-gradient(
    90deg,
    #31c889,
    #f3b43f
  );
}

.auth-game-stat-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.auth-game-stat-main p {
  margin: 0 0 9px;
}

.auth-game-detail-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.auth-game-detail-grid[hidden] {
  display: none;
}

.auth-game-detail-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
}

.auth-game-detail-stat span {
  color: var(--auth-text-soft);
  font-size: 13px;
  line-height: 1.25;
}

.auth-game-detail-stat strong {
  font-size: 18px;
}

@media (max-width: 560px) {
  .auth-section-heading {
    align-items: flex-start;
  }

  .auth-achievement-top {
    align-items: flex-start;
  }

  .auth-achievement-status {
    flex: 0 0 auto;
  }

  .auth-game-detail-grid {
    grid-template-columns: 1fr;
  }
}


/* Vlastní profilový obrázek účtu Tobiz */
.profile-initial {
  position: relative;
  overflow: hidden;
}

.profile-initial > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.profile-initial > span[hidden],
.profile-avatar-image[hidden] {
  display: none;
}

.profile-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.profile-initial-has-image {
  padding: 0;
  border: 3px solid rgba(85, 136, 255, 0.88);
  background: #0b0d14;
  box-shadow:
    0 0 0 3px rgba(123, 85, 255, 0.14),
    0 10px 24px rgba(0, 0, 0, 0.34);
}


/* Obnovení zapomenutého hesla */
#forgotPasswordForm,
#resetPasswordForm {
  width: 100%;
}

#resetPasswordForm[hidden] {
  display: none;
}

.auth-form-footer {
  margin: 18px 0 0;
  text-align: center;
}

.auth-form-footer a {
  color: var(--auth-text-soft);
  font-weight: 700;
  text-decoration: none;
}

.auth-form-footer a:hover {
  color: #fff;
}


/* Obnovovací kódy a vypnutý e-mail */
.auth-not-working {
  display: inline-flex;
  margin-left: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(223, 79, 100, 0.18);
  color: #ff9aaa;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.auth-disabled-section,
.auth-disabled-field {
  opacity: 0.72;
}

.auth-disabled-section input,
.auth-disabled-section button,
.auth-disabled-field input {
  cursor: not-allowed;
}

.recovery-code-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(49, 200, 137, 0.45);
  border-radius: 13px;
  background: rgba(49, 200, 137, 0.09);
}

.recovery-code-result[hidden] {
  display: none;
}

.recovery-code-result code {
  display: block;
  margin: 14px 0;
  padding: 13px;
  overflow-wrap: anywhere;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  background: #0e121a;
  color: #a9f3ce;
  font-size: clamp(16px, 4vw, 21px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  user-select: all;
}

.recovery-code-result button {
  width: 100%;
  margin: 0;
}

.auth-centered-help {
  text-align: center;
}


/* Přátelé, hledání hráčů a sociální profil */
.auth-primary-button {
  border: 1px solid rgba(75, 203, 255, 0.55);
  background: linear-gradient(135deg, #008cff, #6f4cff);
  color: #fff;
}

.auth-friend-confirmed-button {
  border: 1px solid rgba(66, 214, 145, 0.45);
  background: rgba(38, 166, 105, 0.18);
  color: #9df2c5;
}

.auth-friend-confirmed-button:disabled {
  cursor: default;
  opacity: 1;
}

.social-page {
  gap: 20px;
}

.social-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px;
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 140, 255, 0.2), transparent 45%),
    rgba(17, 21, 31, 0.9);
}

.social-hero h1,
.social-hero p {
  margin: 0;
}

.social-hero h1 {
  margin-top: 4px;
}

.social-hero p:not(.social-kicker) {
  max-width: 670px;
  margin-top: 8px;
  color: var(--auth-text-soft);
  line-height: 1.5;
}

.social-kicker {
  color: #62d6ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.social-section-heading > div > p {
  margin: 5px 0 0;
  color: var(--auth-text-soft);
  font-size: 13px;
}

.social-count-badge {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 140, 255, 0.15);
  color: #8edcff;
}

.social-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-bottom: 17px;
}

.social-search-form input {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  outline: none;
  background: #0f131d;
  color: #fff;
  font: 16px Arial, sans-serif;
}

.social-search-form input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.16);
}

.social-search-form button {
  width: auto;
  margin: 0;
  padding: 11px 18px;
}

.social-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 11px;
}

.social-user-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  background: rgba(15, 19, 29, 0.9);
}

.social-user-top {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.social-user-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(92, 215, 255, 0.35);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 140, 255, 0.3), rgba(111, 76, 255, 0.25));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.social-user-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.social-user-identity a {
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.social-user-identity a:hover {
  color: #72dcff;
  text-decoration: underline;
}

.social-user-identity span {
  color: var(--auth-text-soft);
  font-size: 12px;
}

.social-state {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--auth-text-soft);
  font-size: 11px;
  font-weight: 800;
}

.social-state-friends {
  background: rgba(49, 200, 137, 0.16);
  color: #92efbf;
}

.social-state-incoming {
  background: rgba(243, 180, 63, 0.15);
  color: #ffd478;
}

.social-state-outgoing {
  background: rgba(123, 85, 255, 0.17);
  color: #d0c2ff;
}

.social-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.social-user-actions .auth-nav-button,
.social-user-actions button {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 9px 11px;
  font-size: 13px;
}

@media (max-width: 620px) {
  .social-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 17px;
  }

  .social-hero > .auth-nav-button {
    width: 100%;
  }

  .social-search-form {
    grid-template-columns: 1fr;
  }

  .social-search-form button {
    width: 100%;
  }

  .social-user-grid {
    grid-template-columns: 1fr;
  }
}


#profilePage .auth-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}


/* ------------------------------------------------------------
   Přátelé – kompaktní navigace a mobilní layout v2
   ------------------------------------------------------------ */

.social-page-navbar {
  box-sizing: border-box;
}

.social-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.social-page-brand:hover {
  color: #70dcff;
}

.social-mobile-nav {
  position: relative;
  display: none;
  flex: 0 0 auto;
}

.social-mobile-nav > summary {
  display: grid;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #303544;
  color: #ffffff;
  font-size: 23px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.social-mobile-nav > summary::-webkit-details-marker {
  display: none;
}

.social-mobile-nav[open] > summary {
  border-color: rgba(74, 205, 255, 0.5);
  background: #008cff;
}

.social-mobile-nav-panel {
  position: absolute;
  z-index: 700;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: min(310px, calc(100vw - 20px));
  box-sizing: border-box;
  gap: 7px;
  max-height: min(70vh, 520px);
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--auth-border);
  border-radius: 15px;
  background: #151924;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.58);
}

.social-mobile-nav-panel > .auth-nav-button {
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
  margin: 0;
}

.social-mobile-auth {
  display: grid;
  width: 100%;
  gap: 7px;
}

.social-mobile-auth > .auth-nav-button {
  width: 100%;
}

@media (max-width: 700px) {
  .social-page-navbar {
    position: sticky;
    top: 8px;
    z-index: 600;
    flex-direction: row;
    justify-content: space-between;
    min-height: 58px;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .social-page-brand {
    min-width: 0;
    font-size: 18px;
  }

  .social-desktop-nav {
    display: none;
  }

  .social-mobile-nav {
    display: block;
  }

  /*
    Účet uvnitř hamburger menu může mít vlastní rozbalovací nabídku.
    Zůstane uvnitř panelu a neroztáhne celou horní navigaci.
  */
  .social-mobile-nav-panel .auth-user-menu {
    display: grid;
    width: 100%;
    justify-items: stretch;
  }

  .social-mobile-nav-panel .auth-user-menu summary {
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
    padding: 10px 13px;
  }

  .social-mobile-nav-panel .auth-user-menu-panel {
    position: static;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 7px 0 0;
    transform: none;
    box-shadow: none;
  }

  .social-page {
    width: 100%;
    margin: 12px auto 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .social-hero {
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    border-radius: 16px;
  }

  .social-hero h1 {
    margin-top: 5px;
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.08;
    text-align: left;
  }

  .social-hero p:not(.social-kicker) {
    margin-top: 9px;
    font-size: 16px;
    line-height: 1.45;
  }

  .social-hero > .auth-nav-button {
    width: auto;
    align-self: flex-start;
    padding: 9px 13px;
    font-size: 14px;
  }

  .social-page .auth-section {
    margin-top: 12px;
    padding: 15px;
    border-radius: 16px;
  }

  .social-page .auth-section h2 {
    margin-bottom: 0;
    font-size: 23px;
  }

  .social-section-heading {
    gap: 10px;
  }

  .social-search-form {
    margin-top: 15px;
    margin-bottom: 14px;
  }

  .social-search-form input {
    min-height: 48px;
  }

  .social-search-form button {
    min-height: 46px;
    margin-top: 0;
  }

  .social-user-card {
    padding: 13px;
  }
}



/* UI sjednocení profilů a přátel */
.compact-account-navbar {
  position: sticky;
  top: 12px;
  z-index: 500;
  min-height: 62px;
  box-sizing: border-box;
}

.compact-account-brand {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.compact-account-brand:hover {
  color: #70dcff;
}

.social-hero-compact {
  box-sizing: border-box;
  padding: 16px 18px;
}

.social-hero-compact h1 {
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.1;
}

.social-hero-compact p:not(.social-kicker) {
  font-size: 15px;
}

.profile-header > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-actions {
  width: 100%;
  justify-content: center;
}

.profile-actions .auth-nav-button,
.profile-actions button {
  margin-left: auto;
  margin-right: auto;
}

body > .space-background {
  position: fixed;
  z-index: -10;
  inset: 0;
}

@media (max-width: 700px) {
  .compact-account-navbar {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    margin-bottom: 12px;
    padding: 9px 12px;
  }

  .compact-account-brand {
    font-size: 20px;
  }

  .compact-account-navbar .auth-nav {
    width: auto;
  }

  .compact-account-navbar .auth-user-menu-panel {
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 28px));
  }

  .social-page {
    gap: 12px;
  }

  .social-hero-compact {
    padding: 14px;
    border-radius: 15px;
  }

  .social-hero-compact h1 {
    font-size: 29px;
  }

  .social-hero-compact p:not(.social-kicker) {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
  }

  .social-kicker {
    font-size: 10px;
  }
}





/* Přesná původní mobilní navbar z Admin panelu – v27 */
@media (max-width: 800px) {
  body .navbar.glass {
    position: relative !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 auto 30px !important;
    padding: 12px !important;
    transform: none !important;
    border-radius: 15px !important;
  }

  body .navbar.glass > h2 {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  body .navbar.glass .nav-buttons {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .navbar.glass .nav-buttons > button,
  body .navbar.glass .nav-buttons > a {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    border-radius: 14px !important;
  }

  body .navbar.glass .auth-nav {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .navbar.glass .auth-user-menu {
    position: relative !important;
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-items: center !important;
    margin: 0 !important;
  }

  body .navbar.glass .auth-user-menu > summary {
    width: min(310px, 100%) !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 11px 16px !important;
    border-radius: 12px !important;
  }

  body .navbar.glass .auth-user-menu-panel {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: min(260px, 100%) !important;
    min-width: 0 !important;
    max-width: 260px !important;
    box-sizing: border-box !important;
    margin: 9px auto 0 !important;
    padding: 9px !important;
    transform: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36) !important;
  }

  body .navbar.glass .auth-user-menu-panel .auth-nav-button,
  body .navbar.glass .auth-user-menu-panel .auth-logout-button {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 14px !important;
  }
}


/* Schvalované profilové obrázky */
.profile-picture-settings-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-picture-settings-preview {
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(85, 136, 255, 0.75);
  border-radius: 50%;
  background: linear-gradient(135deg, #008cff, #704cff);
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.profile-picture-settings-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-picture-settings-preview img[hidden],
.profile-picture-settings-preview span[hidden] {
  display: none;
}

.profile-picture-settings-info {
  min-width: 0;
}

.profile-picture-settings-info > .auth-help {
  margin-top: 0;
}

@media (max-width: 560px) {
  .profile-picture-settings-row {
    grid-template-columns: 1fr;
  }

  .profile-picture-settings-preview {
    margin: 0 auto;
  }
}
