.admin-panel {
  gap: 14px;
  padding-top: 18px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  align-items: flex-start;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 1px solid rgba(241, 241, 240, 0.22);
  background: rgba(12, 12, 13, 0.6);
  color: rgba(243, 243, 242, 0.9);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.modal-close i {
  margin-right: 0;
}

.modal-close:hover {
  background: rgba(19, 19, 21, 0.78);
  border-color: rgba(220, 251, 116, 0.3);
  transform: scale(1.03);
}

.modal .panel button.ghost {
  border: none !important;
  background: transparent !important;
  color: var(--primary) !important;
}

.modal .panel button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(241, 241, 240, 0.26);
  transform: translateY(-1px);
}

.modal .story-compose-modal-panel button.story-compose-close-btn.ghost,
.modal .story-viewer-modal-panel button.story-viewer-add-btn.ghost {
  background: rgba(210, 243, 101, 0.14) !important;
  border: 1px solid rgba(210, 243, 101, 0.34) !important;
  color: #d2f365 !important;
  box-shadow: 0 10px 24px rgba(14, 14, 15, 0.18);
}

.modal .story-compose-modal-panel button.story-compose-close-btn.ghost:hover,
.modal .story-viewer-modal-panel button.story-viewer-add-btn.ghost:hover {
  background: rgba(210, 243, 101, 0.22) !important;
  border-color: rgba(210, 243, 101, 0.46) !important;
  color: #ddf983 !important;
}

.modal .story-viewer-modal-panel .story-viewer-delete-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0 !important;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.modal .story-viewer-modal-panel .story-viewer-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #ff5555 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
}

.modal .story-viewer-modal-panel button.story-viewer-add-btn.ghost.is-warning {
  background: rgba(17, 17, 19, 0.8) !important;
  border-color: rgba(210, 243, 101, 0.24) !important;
  color: rgba(231, 231, 229, 0.86) !important;
}

.modal .story-compose-modal-panel button.story-compose-submit-btn.primary {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 3px solid rgba(255, 255, 255, 0.9) !important;
  color: #fff !important;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3), 0 6px 24px rgba(0, 0, 0, 0.5) !important;
}

.modal .story-compose-modal-panel button.story-compose-submit-btn.primary:hover {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 6px 24px rgba(0, 0, 0, 0.5) !important;
}

.modal .panel button.primary {
  border-color: rgba(220, 251, 116, 0.32);
  background: linear-gradient(180deg, rgba(220, 251, 116, 0.24), rgba(201, 241, 69, 0.18));
  color: #eaeae8;
}

.modal .panel button.primary:hover {
  border-color: rgba(220, 251, 116, 0.44);
  background: linear-gradient(180deg, rgba(220, 251, 116, 0.32), rgba(201, 241, 69, 0.24));
}

.modal .panel input,
.modal .panel textarea,
.modal .panel select {
  border-color: rgba(241, 241, 240, 0.18);
  background: rgba(8, 8, 9, 0.62);
  color: rgba(241, 241, 240, 0.95);
}

.modal .panel input:focus,
.modal .panel textarea:focus,
.modal .panel select:focus {
  border-color: rgba(220, 251, 116, 0.34);
  box-shadow: 0 0 0 4px rgba(220, 251, 116, 0.12);
}

.legal-panel {
  width: min(900px, 100%);
  max-height: calc(100vh - 24px);
  padding-top: 18px;
}

.legal-head {
  display: grid;
  gap: 10px;
}

.legal-tabs {
  display: flex;
  gap: 8px;
}

.legal-tabs .ghost.is-active {
  border-color: transparent;
  background: linear-gradient(180deg, #ddfa7c, #c6e560);
  color: #101011;
}

.legal-scroll {
  overflow: auto;
  max-height: calc(100vh - 180px);
  padding-right: 6px;
}

.legal-doc {
  display: grid;
  gap: 10px;
}

.legal-doc h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 25px;
}

.legal-doc h2 {
  margin: 14px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 17px;
}

.legal-doc p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.legal-doc ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}

.legal-doc a {
  color: var(--primary);
}

.admin-sticky {
  position: sticky;
  top: -1px;
  z-index: 3;
  display: grid;
  gap: var(--sp-2);
  padding-bottom: 8px;
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.98), rgba(18, 18, 20, 0.9) 70%, rgba(18, 18, 20, 0));
}

.detail-panel {
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-color: rgba(145, 166, 78, 0.34);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(161, 189, 68, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(13, 16, 22, 0.98), rgba(10, 13, 18, 0.98));
  backdrop-filter: blur(12px);
}

.modal {
  overscroll-behavior: contain;
}

.modal,
.panel,
.panel.wide,
.detail-panel,
.legal-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(210, 243, 101, 0.68) rgba(10, 10, 11, 0.85);
}

.modal::-webkit-scrollbar,
.panel::-webkit-scrollbar,
.panel.wide::-webkit-scrollbar,
.detail-panel::-webkit-scrollbar,
.legal-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.modal::-webkit-scrollbar-track,
.panel::-webkit-scrollbar-track,
.panel.wide::-webkit-scrollbar-track,
.detail-panel::-webkit-scrollbar-track,
.legal-scroll::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(7, 7, 8, 0.92), rgba(11, 11, 12, 0.92));
  border-radius: 999px;
}

.modal::-webkit-scrollbar-thumb,
.panel::-webkit-scrollbar-thumb,
.panel.wide::-webkit-scrollbar-thumb,
.detail-panel::-webkit-scrollbar-thumb,
.legal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(221, 250, 124, 0.9), rgba(180, 209, 82, 0.9));
  border: 2px solid rgba(10, 10, 11, 0.9);
  border-radius: 999px;
}

.modal::-webkit-scrollbar-thumb:hover,
.panel::-webkit-scrollbar-thumb:hover,
.panel.wide::-webkit-scrollbar-thumb:hover,
.detail-panel::-webkit-scrollbar-thumb:hover,
.legal-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(228, 252, 148, 0.95), rgba(196, 227, 95, 0.95));
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.detail-content {
  display: grid;
  gap: var(--sp-2);
}

.detail-image {
  width: 100%;
  max-height: 60vh;
  height: auto;
  object-fit: contain;
  background: transparent
}
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  align-items: flex-start;
  margin-top: 20px;
}

.detail-head > div:first-child {
  min-width: 0;
}

#detailTitle {
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
  color: rgba(248, 248, 247, 0.95);
}

.detail-owner-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.detail-owner-card[role="button"] {
  cursor: pointer;
}

.detail-owner-card[role="button"]:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(220, 251, 119, 0.24),
    0 0 0 3px rgba(210, 243, 101, 0.16);
}

.detail-price-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(220, 251, 116, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(220, 251, 116, 0.12);
}

.detail-price-bar strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-price-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.detail-price-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(241, 241, 240, 0.16);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-price-item-label {
  font-size: 13px;
  color: var(--text);
}

.detail-price-item-amount {
  font-size: 13px;
  font-weight: 700;
  color: #eefdbb;
}

.detail-stats-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  overflow-x: hidden;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

@media (max-width: 760px) {
  .detail-metrics-row {
    align-items: stretch;
  }

  .detail-price-bar {
    width: 100%;
    justify-content: center;
  }
}

.detail-stats span {
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 241, 239, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(231, 231, 229, 0.86);
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-like-btn {
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 241, 239, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(236, 236, 235, 0.9);
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.detail-like-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(240, 241, 239, 0.3);
}

.detail-like-btn.is-liked {
  border-color: rgba(244, 111, 111, 0.5);
  background: rgba(244, 111, 111, 0.2);
  color: #ffd4d4;
}

.detail-action-icon-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(240, 241, 239, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(239, 240, 238, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.detail-action-icon-btn:hover {
  background: rgba(221, 252, 119, 0.06);
  border-color: rgba(221, 252, 119, 0.18);
  color: #f8f8f7;
  transform: translateY(-1px);
}

.detail-action-icon-btn i {
  margin-right: 0;
  font-size: 20px;
  color: rgba(238, 253, 187, 0.96);
}

.detail-owner-avatar {
  width: 55px;
  height: 55px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(9, 9, 10, 0.9);
}

.detail-owner-info {
  display: grid;
  gap: 2px;
}

.detail-owner-kicker {
  font-size: 12px;
  color: var(--text-muted);
}

.detail-owner-info strong {
  font-size: 14px;
}

.detail-post-id {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid rgba(130, 108, 246, 0.42);
  background: rgba(130, 108, 246, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
}

.detail-tab-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.detail-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  overflow-x: auto;
  justify-content: space-around;
  border-bottom: 1px solid rgba(221, 250, 124, 0.12);
}

.detail-tabs button {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
  padding: 0;
  border: none !important;
  background: transparent !important;
  color: rgba(221, 226, 205, 0.64);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.detail-tabs button i {
  font-size: 20px;
  line-height: 1;
}

.detail-tabs button:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-1px);
  color: rgba(238, 239, 237, 0.88);
}

.detail-tabs button.is-active {
  border-color: rgba(221, 252, 119, 0.18);
  background: rgba(221, 252, 119, 0.08);
  color: #eefdbb;
  font-weight: 700;
}

.detail-tab-content {
  background: transparent;
  backdrop-filter: none;
}

@media (max-width: 560px) {
  .detail-tabs {
    gap: 6px;
  }

  .detail-tabs button {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 14px;
  }
}

.detail-tab-panel {
  display: grid;
  gap: var(--sp-2);
}

.detail-stories-panel {
  display: grid;
  gap: 12px;
}

.detail-stories-hero {
  width: 100%;
  border: 1px solid rgba(240, 241, 239, 0.08);
  background: transparent;
  border-radius: 16px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  color: #f2f3f1;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.detail-stories-hero:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(221, 252, 119, 0.14);
  transform: translateY(-1px);
}

.detail-stories-hero-media {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-stories-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-stories-hero-fallback {
  font-size: 22px;
  color: rgba(236, 236, 235, 0.72);
}

.detail-stories-hero-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.detail-stories-hero-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.detail-stories-hero-copy span {
  font-size: 12px;
  color: rgba(226, 230, 213, 0.72);
}

.detail-stories-hero-cta {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(238, 253, 187, 0.78);
}

.detail-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-story-card {
  width: 100%;
  border: 1px solid rgba(240, 241, 239, 0.06);
  background: transparent;
  border-radius: 16px;
  padding: 8px 8px 10px;
  display: grid;
  gap: 8px;
  text-align: left;
  color: #f3f3f2;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.detail-story-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(221, 252, 119, 0.14);
  transform: translateY(-1px);
}

.detail-story-card-media {
  width: 100%;
  aspect-ratio: 9 / 13;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.detail-story-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-story-card-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.detail-story-card-copy strong,
.detail-story-card-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-story-card-copy strong {
  font-size: 12px;
}

.detail-story-card-copy span {
  font-size: 11px;
  color: rgba(226, 230, 213, 0.68);
}

.detail-stories-empty {
  border: 1px dashed rgba(240, 241, 239, 0.12);
  border-radius: 16px;
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  color: rgba(226, 230, 213, 0.72);
  text-align: center;
}

@media (max-width: 560px) {
  .detail-stories-hero {
    grid-template-columns: 62px minmax(0, 1fr) 32px;
    gap: 10px;
    padding: 8px;
  }

  .detail-stories-hero-media {
    width: 62px;
    height: 62px;
  }

  .detail-stories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.detail-tab-panel.detail-tab-leave-up {
  animation: detailTabLeaveUp 0.22s ease both;
  pointer-events: none;
}

.detail-tab-panel.detail-tab-enter-down {
  animation: detailTabEnterDown 0.22s ease both;
}

@keyframes detailTabLeaveUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

@keyframes detailTabEnterDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-actions-panel {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-actions-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-action-icon-only {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  border: 1px solid rgba(240, 241, 239, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(238, 253, 187, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.detail-action-icon-only:hover {
  background: rgba(221, 252, 119, 0.06);
  border-color: rgba(221, 252, 119, 0.18);
  transform: translateY(-1px);
}

.detail-action-icon-only--warn {
  border-color: rgba(255, 205, 118, 0.16);
  background: rgba(255, 205, 118, 0.04);
  color: rgba(255, 224, 164, 0.96);
}

.detail-action-icon-only--warn:hover {
  background: rgba(255, 205, 118, 0.1);
  border-color: rgba(255, 205, 118, 0.28);
}

.detail-action-icon-only--danger {
  border-color: rgba(255, 120, 120, 0.14);
  background: rgba(255, 96, 96, 0.04);
  color: rgba(255, 182, 182, 0.94);
}

.detail-action-icon-only--danger:hover {
  background: rgba(255, 96, 96, 0.08);
  border-color: rgba(255, 132, 132, 0.22);
}

.detail-actions-expand-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(240, 241, 239, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(238, 253, 187, 0.88);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.detail-actions-expand-row > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-actions-expand-row:hover {
  background: rgba(221, 252, 119, 0.06);
  border-color: rgba(221, 252, 119, 0.18);
}

.detail-actions-expand-row--danger {
  border-color: rgba(255, 120, 120, 0.14);
  background: rgba(255, 96, 96, 0.03);
  color: rgba(255, 200, 200, 0.88);
}

.detail-actions-expand-row--danger:hover {
  background: rgba(255, 96, 96, 0.07);
  border-color: rgba(255, 132, 132, 0.22);
}

.detail-expand-chevron {
  font-size: 11px;
  color: rgba(204, 212, 178, 0.55);
  transition: transform 0.2s ease;
}

.detail-actions-expand-panel {
  padding: 2px 0 4px;
}

.detail-actions-highlight {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  width: fit-content;
  margin-left: auto;
}

.detail-actions-panel .detail-action-btn {
  width: 100%;
  min-height: 64px;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 241, 239, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(239, 240, 238, 0.88);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 12px;
  font-size: 13px;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.detail-actions-panel .detail-action-btn:hover {
  background: rgba(221, 252, 119, 0.06);
  border-color: rgba(221, 252, 119, 0.18);
  color: #f8f8f7;
  transform: translateY(-1px);
}

.detail-actions-panel .detail-action-btn i {
  margin-right: 0;
  font-size: 22px;
  color: rgba(238, 253, 187, 0.96);
}

.detail-actions-panel .detail-action-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.detail-actions-panel .detail-action-copy strong,
.detail-actions-panel .detail-action-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-actions-panel .detail-action-copy strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}

.detail-actions-panel .detail-action-copy small {
  font-size: 11px;
  line-height: 1.1;
  color: rgba(205, 212, 182, 0.72);
}

.detail-actions-panel .detail-action-btn-danger {
  border-color: rgba(255, 120, 120, 0.14);
  background: rgba(255, 96, 96, 0.045);
}

.detail-actions-panel .detail-action-btn-danger i {
  color: rgba(255, 182, 182, 0.94);
}

.detail-actions-panel .detail-action-btn-danger:hover {
  background: rgba(255, 96, 96, 0.08);
  border-color: rgba(255, 132, 132, 0.22);
}

.detail-actions-panel .detail-action-btn-warn {
  border-color: rgba(255, 205, 118, 0.16);
  background: rgba(255, 205, 118, 0.05);
}

.detail-actions-panel .detail-action-btn-warn i {
  color: rgba(255, 224, 164, 0.96);
}

.detail-actions-highlight .detail-action-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.detail-actions-highlight .detail-action-btn span {
  display: none;
}

@media (max-width: 560px) {
  .detail-actions-panel {
    grid-template-columns: 1fr;
  }

  .detail-actions-highlight {
    gap: 8px;
    justify-content: flex-end;
  }

  .detail-actions-panel .detail-action-btn {
    min-height: 58px;
    padding: 10px 12px;
    gap: 10px;
  }

  .detail-actions-panel .detail-action-btn i {
    font-size: 21px;
  }
}

/* Post modal mobile layout override (must stay near end to win cascade) */
@media (max-width: 760px) {
  #postModal #postTabInfo {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 10px !important;
  }

  #postModal #postTabInfo #postTitle {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  #postModal #postTabInfo #postDescription {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 150px !important;
  }

  #postModal #postTabInfo #postTags {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  #postModal #postTabInfo #postImageDropZone {
    grid-column: 1 !important;
    grid-row: 4 !important;
    min-height: 220px !important;
  }

  #postModal #postTabInfo #postImagePreview.profile-preview {
    width: 70% !important;
    max-width: 210px !important;
    height: auto !important;
    max-height: 240px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 900px) {
  #postTabInfo {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 10px !important;
  }

  #postTabInfo #postTitle {
    grid-column: 1;
    grid-row: 1;
  }

  #postTabInfo #postDescription {
    grid-column: 1;
    grid-row: 2;
    min-height: 150px;
  }

  #postTabInfo #postTags {
    grid-column: 1;
    grid-row: 3;
  }

  #postTabInfo #postImageDropZone {
    grid-column: 1;
    grid-row: 4;
    min-height: 220px;
  }

  #postTabInfo #postImagePreview.profile-preview {
    width: 72%;
    max-width: 220px;
    height: auto;
    max-height: 240px;
    margin: 0 auto;
  }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.detail-grid > div {
  padding: 0px 12px;
  background: transparent;
  display: grid;
  gap: 3px;
}

.detail-grid span {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-grid strong {
  font-size: 14px;
  color: var(--text);
}

.detail-pair-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 6px;
  align-items: center;
}

.detail-pair-label {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.detail-label-icon {
  color: var(--primary);
  width: 14px;
  text-align: center;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.detail-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.detail-links a i {
  margin-right: 6px;
}

.detail-tags {
  margin-top: 4px;
}

.detail-discovery-sections {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(219, 237, 161, 0.14);
}

.detail-discovery-block {
  display: grid;
  gap: 12px;
}

.detail-discovery-head {
  display: grid;
  gap: 4px;
}

.detail-discovery-head h4 {
  margin: 0;
  font-size: 18px;
  color: #f6f6f5;
}

.detail-discovery-head p {
  margin: 0;
  font-size: 13px;
  color: #b6be9b;
}

.detail-discovery-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-discovery-card {
  width: 100%;
  border: 1px solid rgba(173, 195, 102, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.9), rgba(8, 8, 9, 0.95));
  padding: 10px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  color: inherit;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.detail-discovery-card:hover,
.detail-discovery-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(213, 237, 133, 0.38);
  background: linear-gradient(180deg, rgba(12, 12, 13, 0.96), rgba(9, 9, 10, 0.98));
}

.detail-discovery-card-image,
.detail-discovery-card-image-fallback {
  width: 100%;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: rgba(13, 13, 14, 0.9);
  border: 1px solid rgba(181, 204, 106, 0.16);
}

.detail-discovery-card-image-fallback {
  display: grid;
  place-items: center;
  color: #d2dcb4;
  font-size: 20px;
}

.detail-discovery-card-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

.detail-discovery-card-copy strong,
.detail-discovery-card-copy small,
.detail-discovery-card-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-discovery-card-copy strong {
  font-size: 15px;
  line-height: 1.25;
  color: #f7f7f7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.detail-discovery-card-copy small {
  font-size: 12px;
  color: #c1cba3;
  white-space: nowrap;
}

.detail-discovery-card-copy span {
  font-size: 12px;
  color: #e5e6e3;
  white-space: nowrap;
}

.auth-panel {
  width: min(520px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(calc(100dvh - 24px), 760px);
  padding: 22px 18px 18px;
  border: 1px solid rgba(145, 166, 78, 0.34);
  border-radius: 22px;
  overflow-y: auto;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(161, 189, 68, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(13, 16, 22, 0.98), rgba(10, 13, 18, 0.98));
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(235, 235, 233, 0.08);
  backdrop-filter: blur(10px);
}

.auth-head {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  align-items: start;
  margin-top: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(210, 243, 101, 0.14);
}

.auth-head h3 {
  letter-spacing: -0.01em;
}

.auth-head .panel-sub {
  margin-top: 2px;
}

.auth-badge {
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(130, 108, 246, 0.44);
  background: rgba(130, 108, 246, 0.18);
  color: #e4ddff;
  padding: 5px 10px;
}

.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 18px 0 4px;
}

.auth-step {
  position: relative;
  width: 34px;
  height: 34px;
  min-width: 34px;
  font-size: 12px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  background: rgba(14, 14, 15, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.auth-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 26px;
  height: 2px;
  transform: translateY(-50%);
  background: var(--line);
}

.auth-step.is-active:not(:last-child)::after,
.auth-step.is-done:not(:last-child)::after {
  background: #c6e560;
}

.auth-step i {
  margin-right: 0;
  font-size: 14px;
}

.auth-step.is-active {
  color: #101011;
  border-color: transparent;
  background: linear-gradient(180deg, #ddfa7c, #c6e560);
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(210, 243, 101, 0.14);
}

.auth-step.is-done {
  color: #101011;
  border-color: transparent;
  background: rgba(198, 229, 96, 0.85);
}

.auth-step.is-done i::before {
  content: "\f00c"; /* fa-check, replaces the step icon once it's completed */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.auth-section {
  display: grid;
  gap: var(--sp-2);
}

.auth-section label {
  font-size: 13px;
  color: var(--text-muted);
}

.otp-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 2px;
}

.otp-divider {
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  flex: 0 0 auto;
}

.otp-digit {
  width: 44px !important;
  height: 56px !important;
  min-width: 0;
  flex: 0 1 44px;
  padding: 0 !important;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 15, 0.8);
  caret-color: #c6e560;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.otp-digit::selection {
  background: rgba(210, 243, 101, 0.35);
}

.otp-digit:focus {
  outline: none;
  border-color: #c6e560;
  background: rgba(18, 18, 20, 0.92);
  box-shadow: 0 0 0 4px rgba(210, 243, 101, 0.16);
  transform: translateY(-2px);
}

.otp-digit.has-value {
  border-color: rgba(210, 243, 101, 0.5);
  background: rgba(18, 18, 20, 0.7);
}

@media (max-width: 420px) {
  .otp-group {
    gap: 6px;
  }
  .otp-digit {
    width: 38px !important;
    height: 50px !important;
    font-size: 22px;
  }
}

.username-input-hint {
  margin: -4px 0 0;
  font-size: 12px;
  color: #ff9f9f;
  line-height: 1.35;
}

#usernameInput.is-invalid {
  border-color: rgba(255, 159, 159, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 159, 159, 0.22);
  background: rgba(58, 18, 18, 0.34);
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  border: 1px solid rgba(210, 243, 101, 0.22);
  background: rgba(9, 9, 10, 0.72);
  border-radius: 12px;
  padding: 10px 12px;
}

/* La casilla de newsletter es un `<label>`, asi que todo el bloque es clicable. */
.auth-consent-newsletter {
  cursor: pointer;
  border-color: rgba(210, 243, 101, 0.35);
  background: linear-gradient(180deg, rgba(21, 21, 23, 0.55), rgba(9, 9, 10, 0.72));
}
.auth-consent-newsletter strong {
  color: #d2ea84;
}

.auth-consent input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #c6e560;
}

.auth-consent.is-invalid {
  border-color: rgba(255, 159, 159, 0.7);
  background: rgba(58, 18, 18, 0.38);
}

.ad-shell.is-consent-pending {
  display: none;
}

.ads-consent-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 24px));
  border: 1px solid rgba(210, 243, 101, 0.34);
  background: rgba(10, 10, 11, 0.84);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  z-index: 1720;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(6px);
}

.ads-consent-bar p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.45;
}

.ads-consent-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .ads-consent-actions {
    justify-content: stretch;
  }

  .ads-consent-actions button {
    flex: 1;
  }
}

.ad-box-test {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px dashed rgba(210, 243, 101, 0.5);
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
  padding: 10px;
}

.card.card-ad .card-summary {
  margin-top: 0;
  display: block;
  overflow: hidden;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  flex: 1;
  min-height: 0;
  border-radius: inherit;
  position: relative;
  inset: auto;
}

.card.card-ad .ad-box {
  min-height: 96px;
}

.card-ad-disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
  pointer-events: none;
}

.card-ad-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(210, 243, 101, 0.48);
  background: rgba(210, 243, 101, 0.12);
  color: #ededeb;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card-ad-note {
  font-size: 12px;
  color: var(--text-soft);
}

.card-ad-helper {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.card-ad-inline-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #e0eeb4;
  opacity: 0.92;
}

.card-ad-click-cover {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card-ad-click-cover .card-image {
  width: 100%;
  border-radius: 0;
  border: 0;
  object-fit: cover;
}

.card-ad-hero-image {
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}

.card.card-ad .card-ad-hero-image {
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  margin-bottom: 0;
}

.card.card-ad {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 !important;
  overflow: hidden;
}

.card.card-ad .card-ad-click-cover {
  display: block;
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
}

