.floating-theme-toggle {
  position: fixed;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  color: #164535;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(31, 50, 42, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.floating-theme-toggle svg {
  width: 22px;
  height: 22px;
}

.theme-choice {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.24rem;
  border: 1px solid rgba(31, 90, 70, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.theme-choice button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.8rem;
  color: #59665f;
  background: transparent;
  font-weight: 900;
}

.theme-choice button.active {
  color: #fffaf1;
  background: linear-gradient(135deg, #1F5A46, #164535);
}

.profile-editor {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.profile-photo-card,
.profile-form {
  display: grid;
  gap: 0.85rem;
}

.profile-photo-card {
  justify-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.profile-photo-card img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  background: #EEEAE1;
  box-shadow: inset 0 0 0 1px rgba(31, 90, 70, 0.08);
}

.upload-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.payment-method.is-disabled {
  opacity: 0.58;
  filter: grayscale(0.22);
  cursor: not-allowed;
}

.payment-method.is-disabled:hover {
  transform: none;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.72rem;
  border-radius: 999px;
  color: #164535;
  background: rgba(216, 182, 101, 0.2);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.news-card p {
  margin: 0;
  color: #59665f;
  line-height: 1.65;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F7F2E8;
  --muted: #CAC4B7;
  --line: rgba(255, 255, 255, 0.16);
}

body[data-theme="dark"]::after {
  background:
    radial-gradient(circle at 28% 24%, rgba(216, 182, 101, 0.10), transparent 28rem),
    linear-gradient(90deg, rgba(4, 12, 10, 0.72), rgba(4, 12, 10, 0.48)) !important;
}

body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .card,
body[data-theme="dark"] .stat,
body[data-theme="dark"] .table-wrap,
body[data-theme="dark"] .chat-box,
body[data-theme="dark"] .list-item-card,
body[data-theme="dark"] .content-body,
body[data-theme="dark"] #chat-box,
body[data-theme="dark"] .match-card,
body[data-theme="dark"] .news-card,
body[data-theme="dark"] .payment-options,
body[data-theme="dark"] .payment-total-card,
body[data-theme="dark"] .payment-method,
body[data-theme="dark"] .dashboard-card,
body[data-theme="dark"] .profile-photo-card {
  color: #F7F2E8 !important;
  background: rgba(18, 31, 27, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body[data-theme="dark"] .brand strong,
body[data-theme="dark"] .panel-head h2,
body[data-theme="dark"] .card h2,
body[data-theme="dark"] .dashboard-card h2,
body[data-theme="dark"] .payment-method-label strong,
body[data-theme="dark"] .profile-copy strong,
body[data-theme="dark"] .members-widget strong,
body[data-theme="dark"] .news-card p {
  color: #F7F2E8 !important;
}

body[data-theme="dark"] .nav a,
body[data-theme="dark"] .profile-copy small,
body[data-theme="dark"] .muted,
body[data-theme="dark"] .payment-method-label small {
  color: rgba(247, 242, 232, 0.72) !important;
}

body[data-theme="dark"] .field,
body[data-theme="dark"] .input-group input,
body[data-theme="dark"] .input-group textarea,
body[data-theme="dark"] .input-group select,
body[data-theme="dark"] #chat-input {
  color: #F7F2E8 !important;
  background: rgba(4, 12, 10, 0.52) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

@media (max-width: 640px) {
  .floating-theme-toggle {
    inset-block-start: 14px;
    inset-inline-end: 14px;
    width: 44px;
    height: 44px;
  }

  .profile-editor {
    grid-template-columns: 1fr;
  }

  .payment-method {
    grid-template-columns: 1fr;
  }

  .payment-method-label {
    align-items: flex-start;
  }

  .payment-brand {
    width: 104px;
    height: 56px;
    flex-basis: 104px;
    font-size: 1.05rem;
  }
}
