/* ===== Base ===== */
body {
  background: #0b1220;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
}

.avatar-upload-choice{
  background:
    radial-gradient(circle at top, rgba(124,92,255,.22), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.platform-watchtime-row {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);

  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
}

.platform-watchtime-copy {
  display: grid;
  gap: 6px;
}

.platform-watchtime-copy strong {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.platform-watchtime-copy span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.platform-watchtime-help.error {
  color: #ff6b6b;
}

.platform-watchtime-help.success {
  color: #53fc19;
}

.platform-watchtime-help {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  min-height: 18px;
}

.platform-watchtime-help.error {
  color: #ff6b6b;
}

.platform-watchtime-help.success {
  color: #53fc19;
}

.platform-watchtime-help code {
  color: #d8f7ff;
  background: rgba(76,201,240,.08);
  border: 1px solid rgba(76,201,240,.18);
  border-radius: 8px;
  padding: 2px 6px;
}

.platform-watchtime-row #toggleWatchTimeBtn {
  width: 140x;
  min-width: 140px;
  max-width: 140px;
  white-space: nowrap;
  justify-self: end;
}

#toggleWatchTimeBtn.is-danger {
  border-color: rgba(255,107,107,.35);
  background: rgba(255,107,107,.08);
  color: #ffdede;
}

@media (max-width: 900px) {
  .platform-watchtime-row {
    grid-template-columns: 1fr;
  }
}

.avatar-upload-choice:hover{
  transform: translateY(-3px);
  border-color: var(--dm-accent, #53fc19);
}

.avatar-upload-choice.selected{
  border-color: var(--dm-accent, #53fc19);
  box-shadow: 0 0 0 2px rgba(83,252,25,.18);
}

.avatar-choice .avatar-upload-icon{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  font-size: 36px;
  font-weight: 800;
  background: rgba(255,255,255,.08);
}

.avatar-modal[hidden] {
  display: none !important;
}

.avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 18, .78);
  backdrop-filter: blur(8px);
}

body.avatar-modal-open {
  overflow: hidden;
}

.avatar-modal-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(145deg, #202532, #151922);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}

.avatar-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.avatar-modal-header h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 21px;
}

.avatar-modal-header p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.avatar-modal-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.avatar-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.avatar-modal-done {
  min-width: 100px;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  background: var(--dm-accent, #53fc19);
  color: #07110a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.avatar-upload-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.profile-settings-main .avatar-file-button {
  appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
}

.profile-settings-main .avatar-file-button:hover {
  border-color: var(--dm-accent, #53fc19);
  background: rgba(255,255,255,.12);
}

.avatar-file-status {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.avatar-file-status:empty {
  min-height: 0;
  margin: 0;
}

.avatar-file-status.success {
  color: #22c55e;
}

.avatar-file-status.error {
  color: #f87171;
}

.avatar-link-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.avatar-link-divider::before,
.avatar-link-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}



/* ===== Layout ===== */
.page-shell {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

/* ===== Card ===== */
.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* ===== Headings ===== */
h1 {
  margin-top: 0;
  font-size: 28px;
}

h2 {
  margin-top: 30px;
  font-size: 18px;
  color: #9ca3af;
}

.platform-badge-row {
  display: flex;
  gap: 10px;
  margin: 10px 0 4px;
  flex-wrap: wrap;
  align-items: center;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.badge-twitch {
  background: #9146ff;
}

.badge-youtube {
  background: #ff0033;
}

.badge-discord {
  background: #5865f2;
}

.badge-kick {
  background: #53fc18;
  color: #061006;
}


/* ===== Form ===== */
label {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  color: #9ca3af;
}

input,
select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  color: white;
  font-size: 14px;
}

.available-platforms-block {
  padding: 0 22px;
  margin-top: 14px;
}

.available-platforms-title {
  margin-bottom: 8px;
  font-weight: 800;
}

.platform-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.platform-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== Button ===== */
.site-btn {
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--dm-accent), var(--dm-accent-2));
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.site-btn:hover {
  opacity: 0.9;
}

/* ===== Avatar ===== */
.avatar-preview-wrap {
  margin-top: 12px;
}

.profile-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #1f2937;
}

/* ===== Status ===== */
#status {
  margin-bottom: 12px;
  font-size: 13px;
}

#status.success {
  color: #22c55e;
}

#status.error {
  color: #ef4444;
}

.muted {
  font-size: 12px;
  color: #6b7280;
}

.streamer-label-field {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.streamer-label-field[hidden] {
  display: none !important;
}

.streamer-label-field label {
  margin: 0;
}

.streamer-label-field .muted {
  margin: 8px 0 0;
  line-height: 1.5;
}

.profile-settings-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

.profile-sidebar {
  padding-top: 8px;
}

.profile-sidebar-title {
  color: #8b95a7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px 10px;
}

.profile-side-link {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;

  min-height: 34px;
  padding: 8px 10px 8px 14px;
  margin: 2px 0;

  border: 0;
  border-radius: 6px;
  background: transparent;

  color: #b8c0cc;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;

  cursor: pointer;
  position: relative;
  transform: translateX(0);
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.profile-side-link:hover {
  background: rgba(255,255,255,0.065);
  color: #fff;
  transform: translateX(4px);
}

.profile-side-link.active {
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );

  color: #fff;

  box-shadow:
    inset 3px 0 0 var(--dm-accent);
}

.profile-side-link.active:hover {
  transform: translateX(0);
}

.profile-side-link::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;

  width: 4px;
  height: 4px;

  border-radius: 999px;
  background: transparent;

  transform: translateY(-50%);
  transition:
    height 0.18s ease,
    background 0.18s ease;
}

.profile-side-link:hover::before {
  background: var(--dm-accent);
  height: 14px;
}

.profile-side-link.active::before {
  background: var(--dm-accent);
  height: 22px;
}

.profile-settings-main {
  min-width: 0;
}

.profile-mobile-header {
  display: none;
}

.profile-form-panel {
  max-width: 900px;
}

.profile-form-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 36px;
  align-items: start;
  margin-bottom: 28px;
}

.profile-form-header h1 {
  margin: 0 0 10px;
}

.profile-form-header p {
  margin: 0;
  color: #cbd5e1;
}

.profile-preview-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #20232c;
  min-height: 165px;
}

.profile-preview-banner {
  height: 64px;
}

.profile-preview-avatar {
  width: 64px;
  height: 64px;
  margin: -32px 0 10px 18px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}

.profile-preview-name {
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
}

.profile-preview-subtitle {
  padding: 4px 18px 18px;
  color: #9ca3af;
  font-size: 13px;
}

.profile-section {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 28px 0;
}

.profile-section h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.profile-actions {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
}

#status {
  margin: 12px 0;
}

@media (max-width: 760px) {
  body {
    padding-top: 0;
  }

  #siteHeader {
    display: none;
  }

  .profile-settings-shell {
    display: block;
    padding: 0 20px 40px;
  }

  .profile-sidebar {
    display: none;
  }

  body.dm-app-shell .profile-sidebar {
    display: block;
  }

  .profile-mobile-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    height: 78px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: 0 -20px 28px;
    padding: 0 20px;
  }

  .profile-mobile-header h1 {
    text-align: center;
    margin: 0;
    font-size: 22px;
  }

  .profile-close {
    color: #fff;
    text-decoration: none;
    font-size: 38px;
    line-height: 1;
  }

  .profile-form-header {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .profile-form-header > div:first-child {
    display: none;
  }

  .profile-preview-card {
    width: 220px;
    min-height: 150px;
  }

  .profile-preview-banner {
    height: 56px;
  }

  .profile-preview-avatar {
    width: 52px;
    height: 52px;
    margin: -26px 0 8px 16px;
    border-radius: 14px;
  }

  .profile-preview-name {
    padding: 0 16px;
  }

  .profile-preview-subtitle {
    padding: 4px 16px 14px;
  }

  .profile-section {
    background: #20232c;
    border: 0;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
  }

  .profile-actions {
    border: 0;
    padding-top: 0;
  }

  .profile-actions .site-btn {
    width: 100%;
  }
}

.toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 0;
  margin-bottom: 0;
  transition: background 0.15s ease;
  padding: 8px 0;
  cursor: pointer;
}

.profile-section .toggle-row {
  margin-top: 0;
}

.toggle-row:hover {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}

.toggle-row + .toggle-row {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.toggle-row span:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.toggle-row strong {
  color: #fff;
  font-size: 15px;
}

.toggle-row small {
  color: #9ca3af;
  font-size: 12px;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: #374151;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.18s ease;
}

.toggle-input:checked + .toggle-switch {
  background: var(--dm-accent);
  box-shadow: 0 0 12px var(--dm-accent-glow);
}

.toggle-input:checked + .toggle-switch::after {
  transform: translateX(22px);
}

.profile-sidebar-spacer {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 26px 0;
}

.sidebar-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  cursor: pointer;
}

.sidebar-toggle-row span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-toggle-row strong {
  color: #fff;
  font-size: 13px;
}

.sidebar-toggle-row small {
  color: #8b95a7;
  font-size: 11px;
}

.floating-save-bar {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3000;

  display: flex;
  justify-content: center;
  gap: 12px;

  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.floating-save-bar[hidden] {
  display: none !important;
}

.floating-btn {
  min-width: 130px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.42);
}

.floating-btn-success {
  background: #22c55e;
}

.floating-btn-success:hover {
  background: #16a34a;
}

.floating-btn-danger {
  background: #ef4444;
}

.floating-btn-danger:hover {
  background: #dc2626;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.avatar-choice {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  border-radius: 14px;
  padding: 10px;
  color: #cbd5e1;
  cursor: pointer;
  text-align: center;
}

.avatar-choice:hover {
  background: rgba(255,255,255,0.075);
}

.avatar-choice.selected {
  border-color: var(--dm-accent);
  box-shadow: 0 0 0 2px var(--dm-accent-glow);
}

.avatar-choice img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 0 auto 8px;
}

.avatar-choice span {
  font-size: 12px;
  font-weight: 800;
}

.avatar-upload-link button {
  margin-top: 12px;
  border: 0;
  background: none;
  color: #60a5fa;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.avatar-upload-link button:hover {
  text-decoration: underline;
}

.platform-meta-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-badge-row .platform-badge {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  min-width: auto;
  pointer-events: auto;
  transform: none;
}

/* ===== Accolades: subtle platform badges ===== */
.platform-badge-row .platform-badge {
  position: static;
  top: auto;
  left: auto;
  /*opacity: 0.85;*/
  padding: 3px 8px;
font-size: 11px;

  padding: 4px 10px;
  border-radius: 999px;

  font-size: 12px;          /* match rest of UI */
  font-weight: 700;         /* still bold but not chunky */
  letter-spacing: 0.04em;   /* subtle caps spacing */
  text-transform: uppercase;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);

  box-shadow: none;
}

/* Softer platform colours (less "neon") */
.platform-badge-row .badge-twitch {
  background: rgba(145,70,255,0.18);
  border-color: rgba(145,70,255,0.35);
}

.platform-badge-row .badge-youtube {
  background: rgba(255,0,51,0.18);
  border-color: rgba(255,0,51,0.35);
}

.platform-badge-row .badge-discord {
  background: rgba(88,101,242,0.18);
  border-color: rgba(88,101,242,0.35);
}

.platform-badge-row .badge-kick {
  background: rgba(83,252,24,0.18);
  border-color: rgba(83,252,24,0.35);
  color: #cfffcc;
}

.loading-view {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
}

/* Stack logo ABOVE text */
.dm-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px; /* space between logo and text */
}

/* Your spinner (unchanged) */
.dm-loader {
  width: clamp(60px, 12vw, 120px);
  height: clamp(60px, 12vw, 120px);
  object-fit: contain;
  animation: dm-spin 4s linear infinite;
  filter: drop-shadow(0 0 10px rgb(0, 0, 0));
}

@keyframes dm-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Loading text */
.dm-loading-text {
  width: 14ch;
  white-space: nowrap;
  text-align: left;
  text-align: left;
  color: #8393ba;
  font-size: 0.65rem;
  letter-spacing: 0;
  font-family: "Press Start 2P", "Courier New", monospace;
}

.dm-loading-word {
  letter-spacing: 0.12em;
}

/* Animated dots */

.dots {
  display: inline-block;
  width: 3ch;
  letter-spacing: 0;
}

.dots::after {
  content: "";
  animation: dm-dots 2s steps(4, end) infinite;
  opacity: 0.7;
}


@keyframes dm-dots {
  0%   { content: ""; }
  33%  { content: "."; }
  66%  { content: ".."; }
  100% { content: "..."; }
}

@keyframes dm-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.accolade-category-group,
.accolade-track-group {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  overflow: hidden;
}

.accolade-category-group + .accolade-category-group {
  margin-top: 14px;
}

.accolade-category-summary,
.accolade-track-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 900;
}

.accolade-category-summary {
  background: rgba(255,255,255,0.04);
  color: #fff;
}

.accolade-track-summary {
  background: rgba(255,255,255,0.02);
  color: #d8e4ff;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.accolade-category-summary::-webkit-details-marker,
.accolade-track-summary::-webkit-details-marker {
  display: none;
}

.accolade-category-summary::before,
.accolade-track-summary::before {
  content: "▶";
  margin-right: 8px;
  color: var(--dm-accent);
  transition: transform 0.15s ease;
}

.accolade-category-group[open] > .accolade-category-summary::before,
.accolade-track-group[open] > .accolade-track-summary::before {
  transform: rotate(90deg);
}

.accolade-category-body,
.accolade-track-items {
  padding: 12px;
}

.accolade-track-items {
  display: grid;
  gap: 10px;
}

.accolade-item {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  padding: 14px;
}

.accolade-item-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.accolade-item-title {
  margin: 0;
  font-size: 15px;
  color: #fff;
}

.accolade-item-desc {
  margin: 6px 0 0;
  color: #b8c7dd;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .accolade-item-top {
    flex-direction: column;
  }
}

#accoladesGrid,
.list-grid {
  display: block;
}

.accolade-category-group,
.accolade-track-group {
  width: 100%;
}

.accolade-category-group + .accolade-category-group,
.accolade-track-group + .accolade-track-group,
.accolade-item + .accolade-item {
  margin-top: 14px;
}

.accolade-track-items {
  display: block;
}

.accolade-item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

/* Accolades compact grouped headings */
.accolade-category-summary,
.accolade-track-summary {
  padding: 8px 12px;
  min-height: 42px;
  font-size: 14px;
}

.accolade-category-summary .pill,
.accolade-track-summary .pill {
  padding: 5px 8px;
  min-width: 28px;
  min-height: 28px;
  font-size: 12px;
}

.accolade-category-summary::before,
.accolade-track-summary::before {
  content: "▾";
  font-size: 15px;
  font-weight: 700;
  opacity: 0.75;
  margin-right: 8px;
  color: inherit;
  transform: none;
  transition: opacity 0.15s ease;
}

.accolade-category-group[open] > .accolade-category-summary::before,
.accolade-track-group[open] > .accolade-track-summary::before {
  transform: none;
}

.accolade-category-group:not([open]) > .accolade-category-summary::before,
.accolade-track-group:not([open]) > .accolade-track-summary::before {
  content: "▸";
}

.accolade-category-summary:hover::before,
.accolade-track-summary:hover::before {
  opacity: 1;
}

/* Platform-coloured category headers */
.accolade-category-group[data-category="twitch"] > .accolade-category-summary {
  background: linear-gradient(90deg, rgba(145,70,255,0.22), rgba(255,255,255,0.035));
  border-left: 4px solid #9146ff;
}

.accolade-category-group[data-category="youtube"] > .accolade-category-summary {
  background: linear-gradient(90deg, rgba(255,0,51,0.20), rgba(255,255,255,0.035));
  border-left: 4px solid #ff0033;
}

.accolade-category-group[data-category="discord"] > .accolade-category-summary {
  background: linear-gradient(90deg, rgba(88,101,242,0.22), rgba(255,255,255,0.035));
  border-left: 4px solid #5865f2;
}

.accolade-category-group[data-category="kick"] > .accolade-category-summary {
  background: linear-gradient(90deg, rgba(83,252,24,0.18), rgba(255,255,255,0.035));
  border-left: 4px solid #53fc18;
}

.accolade-actions {
  display: inline-flex;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
}

.category-points-text {
  margin-left: 10px;
  opacity: 0.72;
  font-size: 0.78em;
  font-weight: 500;
}

.accolade-category-summary{
  align-items:center;
}

.category-summary-left{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:2px;
}

.track-points-info {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(76, 201, 240, 0.24);
  border-radius: 12px;
  background: rgba(76, 201, 240, 0.08);
  color: #d8f7ff;
  font-size: 13px;
  line-height: 1.45;
}

.track-points-info strong {
  font-size: 15px;
}

.track-points-info span {
  display: block;
  margin-top: 2px;
  color: rgba(216, 247, 255, 0.72);
}

.accolade-action-btn {
  width: 42px;
  height: 36px;
  border: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.accolade-action-btn.edit {
  background: #5fc878;
}

.accolade-action-btn.delete {
  background: #dc5a4a;
}

.accolade-action-btn:hover {
  filter: brightness(1.08);
}

/* =========================
   DEVELOPMENT BANNER
========================= */

.dm-dev-banner{
  position: relative;
  margin: 24px auto 32px;
  width: min(1400px, calc(100% - 32px));

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 215, 0, 0.22),
      rgba(255, 179, 0, 0.14)
    );

  border: 1px solid rgba(255, 215, 0, 0.35);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  overflow: hidden;

  box-shadow:
    0 10px 40px rgba(0,0,0,.35),
    0 0 35px rgba(255, 215, 0, .12);
}

.dm-dev-banner::before{
  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(
      circle at top right,
      rgba(255,255,255,.18),
      transparent 45%
    );

  pointer-events:none;
}

.dm-dev-banner-inner{
  position: relative;
  z-index: 1;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;

  padding: 28px 34px;
}

.dm-dev-banner-copy h2{
  margin: 10px 0 10px;

  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;

  color:#ffe27a;
}

.dm-dev-banner-copy p{
  margin:0;
  max-width:800px;

  color:rgba(255,255,255,.82);
  font-size:1rem;
  line-height:1.6;
}

.dm-dev-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:8px 14px;

  border-radius:999px;

  background:rgba(255,215,0,.16);
  border:1px solid rgba(255,215,0,.35);

  color:#ffe27a;

  font-size:.8rem;
  font-weight:800;
  letter-spacing:.12em;
}

.dm-dev-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width:240px;
  height:54px;
  padding:0 28px;

  border-radius:16px;

  background:
    linear-gradient(
      135deg,
      #ffd84d,
      #ffb300
    );

  color:#111;
  text-decoration:none;

  font-weight:800;
  font-size:1rem;

  box-shadow:
    0 10px 24px rgba(255, 191, 0, .28);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.dm-dev-btn:hover{
  transform:translateY(-2px);
  filter:brightness(1.05);

  box-shadow:
    0 16px 34px rgba(255, 191, 0, .38);
}

@media (max-width: 900px){

  .dm-dev-banner-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .dm-dev-btn{
    width:100%;
  }
}

/* ===== Platform connection cards ===== */
.platform-actions #watchTimeStatus{
  width:100%;
  margin-top:10px;
  text-align:center;
}
.broadcaster-link-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
.platform-card { --platform-bg-url: none; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 138px; padding: 28px 22px 22px; overflow: visible; isolation: isolate; border: 1px solid rgba(255,255,255,0.10); border-radius: 22px; background: radial-gradient(circle at 0% 0%, var(--dm-accent-glow), transparent 34%), transparent 34%), linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025); rgba(255,255,255,0.025)); box-shadow: 0 18px 42px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.04); }
.platform-card::before, .platform-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.platform-card::before { z-index: 0; background: linear-gradient(90deg, rgba(124,92,255,0.20), transparent 42%); opacity: 0; transition: opacity 0.18s ease; }
.platform-card::after { z-index: 0; background: linear-gradient(90deg, rgba(15,20,33,0.96), rgba(15,20,33,0.82)), var(--platform-bg-url); background-size: cover; background-position: center; opacity: 0; transition: opacity 0.18s ease; }
.platform-card.has-bg::after { opacity: 0.34; }
.platform-card:hover::before { opacity: 1; }
.platform-card > * { position: relative; z-index: 1; }
.platform-main { display: flex; align-items: center; min-width: 0; gap: 20px; }
.platform-avatar-wrap { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 18px; border-radius: 999px; background: linear-gradient(#131927, #131927) padding-box, linear-gradient(135deg, rgba(124,92,255,0.95), rgba(76,201,240,0.5)) border-box; border: 3px solid transparent; box-shadow: 0 0 0 5px rgba(124,92,255,0.10), 0 18px 30px rgba(0,0,0,0.25); }
.platform-avatar, .platform-logo-avatar { width: 78px; height: 78px; object-fit: cover; border-radius: 999px; background: rgba(255,255,255,0.06); }
.platform-logo-avatar { display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 900; }
.youtube-logo { background: linear-gradient(135deg, #ff3535, #7b1111); }
.kick-logo { background: linear-gradient(135deg, #45ff59, #103b15); color: #071407; }
.discord-logo { background: linear-gradient(135deg, #5865f2, #7c5cff); }
.platform-connected-badge { position: absolute; right: -2px; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: linear-gradient(135deg, #54d86a, #2ab74e); border: 3px solid #131927; border-radius: 999px; box-shadow: 0 8px 18px rgba(0,0,0,0.28); font-size: 18px; font-weight: 900; }
.platform-status-pill { position: absolute; left: 50%; bottom: -17px; z-index: 3; display: inline-flex; justify-content: center; min-width: 106px; padding: 5px 10px; transform: translateX(-50%); white-space: nowrap; color: rgba(255,255,255,0.58); background: rgba(124,92,255,0.16); border: 1px solid rgba(124,92,255,0.18); border-radius: 999px; box-shadow: 0 10px 22px rgba(0,0,0,0.30); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.platform-status-pill.good { color: #d9ffec; background: rgba(66,211,146,0.13); border-color: rgba(66,211,146,0.35); }
.platform-copy { min-width: 0; max-width: 650px; }
.platform-kicker { margin-bottom: 4px; color: rgba(193,205,255,0.70); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.platform-card h3 { margin: 0 0 8px; color: #fff; font-size: 26px; line-height: 1.05; }
.platform-description, .platform-handle { display: block; color: rgba(255,255,255,0.62); font-size: 13px; line-height: 1.42; }
.platform-handle { margin-top: -2px; }
.platform-description { max-width: 580px; margin-top: 8px; }
.platform-meta-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.platform-meta-row { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: rgba(255,255,255,0.70); font-size: 13px; }
.platform-meta-row.full { flex-basis: 100%; }
.platform-meta-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; color: #cbbcff; background: rgba(124,92,255,0.16); border-radius: 8px; font-size: 10px; font-weight: 900; }
.platform-meta-label { color: rgba(255,255,255,0.52); }
.platform-meta-row strong { max-width: 130px; overflow: hidden; color: rgba(255,255,255,0.92); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.platform-dot { width: 9px; height: 9px; border-radius: 999px; box-shadow: 0 0 12px currentColor; }
.platform-dot.online { color: #36d96d; background: #36d96d; }
.platform-dot.members { color: #9ca3af; background: #9ca3af; }
.platform-connected-line { flex-basis: 100%; color: rgba(255,255,255,0.62); font-size: 14px; font-weight: 600; }
.platform-actions, .broadcaster-action-row { display: grid; gap: 10px; justify-items: stretch; min-width: 132px; }
.platform-card .site-btn { flex: 0 0 auto; margin-top: 0; color: #fff; background: var(--dm-accent); white-space: nowrap; }
.platform-card .site-btn.secondary { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); }
.platform-card .site-btn.danger { background: rgba(255,107,107,0.16); border: 1px solid rgba(255,107,107,0.35); }
.platform-card .site-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.platform-badge, .platform-service-badge { position: absolute; top: -10px; left: 40px; z-index: 5; min-width: 108px; padding: 8px 18px 7px; overflow: hidden; color: #fff; border-radius: 8px; box-shadow: 0 12px 26px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.20); font-size: 13px; font-weight: 950; line-height: 1; letter-spacing: 0.08em; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.45); text-transform: uppercase; pointer-events: none; transition: transform 0.18s ease, filter 0.18s ease; }
.platform-badge::after, .platform-service-badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%); transform: translateX(-120%); opacity: 0; }
.platform-card:hover .platform-badge, .platform-card:hover .platform-service-badge { transform: translateY(-2px) scale(1.05); filter: brightness(1.08); }
.platform-card:hover .platform-badge::after, .platform-card:hover .platform-service-badge::after { animation: badge-shimmer 0.7s ease forwards; }
@keyframes badge-shimmer { 0% { transform: translateX(-120%); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(120%); opacity: 0; } }
.badge-twitch { background: #a544ff; }
.badge-youtube { background: #ff3c2f; }
.badge-kick { background: #53fc19; color: #071407; text-shadow: 0 1px 2px rgba(255,255,255,0.35); }
.badge-discord { background: #586aea; }
.profile-status { margin: 14px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.045); }
.profile-status.good { color: #d9ffec; background: rgba(66,211,146,0.08); border-color: rgba(66,211,146,0.25); }
.profile-status.bad { color: #ffdede; background: rgba(255,107,107,0.08); border-color: rgba(255,107,107,0.24); }
.profile-status.info { color: #d8f7ff; background: rgba(76,201,240,0.08); border-color: rgba(76,201,240,0.24); }
@media (max-width: 1060px) { .platform-card { grid-template-columns: 1fr auto; } }
@media (max-width: 720px) { .platform-card { grid-template-columns: 1fr; align-items: stretch; } .platform-main { align-items: flex-start; flex-direction: column; } .platform-actions, .broadcaster-action-row, .platform-card .site-btn { width: 100%; } }
/* Shared platform account-linking callback */
.link-callback-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.link-callback-panel {
  width: min(560px, 100%);
  padding: 30px;
  text-align: center;
}

.link-callback-panel h1 {
  margin: 0 0 10px;
}

.link-callback-status {
  margin: 0;
  color: var(--text-muted, #aeb7c5);
  line-height: 1.55;
}

.link-callback-status.info { color: #8edcff; }
.link-callback-status.good { color: #7ee2a8; }
.link-callback-status.bad { color: #ff8a8a; }

.link-callback-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 4px solid rgba(255, 255, 255, .14);
  border-top-color: var(--accent, #ff4b55);
  border-radius: 50%;
  animation: linkCallbackSpin .8s linear infinite;
}

.link-callback-panel.is-complete .link-callback-spinner,
.link-callback-panel.is-error .link-callback-spinner {
  display: none;
}

.link-callback-return {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  font-weight: 800;
  text-decoration: none;
}

.link-callback-return[hidden] {
  display: none;
}

.link-callback-return:hover {
  border-color: var(--accent, #ff4b55);
  background: rgba(255, 255, 255, .1);
}

@keyframes linkCallbackSpin {
  to { transform: rotate(360deg); }
}
