/* --- PROFILE HUB SPECIFIC STYLES --- */
body {
  background-color: #050505;
  color: #fff;
}

.hub-container {
  display: flex;
  gap: 30px;
  padding: 50px 5%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 70vh;
  animation: siteFadeIn 0.8s ease-in-out forwards;
}

/* SIDEBAR */
.hub-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #0a0a0a;
  border-radius: 8px;
  border: 1px solid #222;
  padding: 30px 0;
  height: fit-content;
  /* Follows the page as the content scrolls, tucked under the fixed header
     (137 px) and scrolling inside itself on short screens. */
  position: sticky;
  top: 157px;
  align-self: flex-start;
  max-height: calc(100vh - 177px);
  overflow-y: auto;
}

.hub-user-info {
  text-align: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid #222;
  margin-bottom: 20px;
}

.hub-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #111;
  color: #ff0000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 auto 15px;
  border: 2px solid #ff0000;
  overflow: hidden;
  position: relative;
}

.hub-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-preset-panel {
  max-width: none;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  background: #111;
}

.avatar-preset-panel h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #fff;
}

.avatar-preset-panel p {
  margin: 0;
  color: #888;
  font-size: .86rem;
}

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

.avatar-preset-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 5px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #1a1a1a;
  color: #bbb;
  cursor: pointer;
  font: inherit;
  transition: border-color .2s, background-color .2s, transform .2s;
}

.avatar-preset-option:hover {
  border-color: #666;
  transform: translateY(-2px);
}

.avatar-preset-option.is-selected {
  border-color: #ff2b2b;
  background: #271313;
  color: #fff;
}

.avatar-preset-option:focus-visible {
  outline: 3px solid rgba(255, 43, 43, .4);
  outline-offset: 2px;
}

.avatar-preset-option img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-preset-option span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .68rem;
}

.avatar-save-status {
  min-height: 20px;
  margin-top: 12px !important;
  color: #7edc9c !important;
}

.avatar-save-status.is-error {
  color: #ff8b8b !important;
}

@media (max-width: 640px) {
  .avatar-preset-grid {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
  }
}

.hub-user-info h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.hub-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-nav-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 22px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: #aaa;
  text-align: left;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.hub-nav-btn:hover {
  background-color: #111;
  color: #fff;
}

.hub-nav-btn.active {
  background-color: #111;
  color: #fff;
  border-left-color: #ff0000;
}

/* CONTENT AREA */
.hub-content-area {
  flex: 1;
  min-width: 0;
  background: #0a0a0a;
  border-radius: 8px;
  border: 1px solid #222;
  padding: 32px;
}

.hub-tab-content {
  display: none;
  animation: fadeInTab 0.4s ease forwards;
}

.hub-tab-content.active {
  display: block;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hub-title {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 6px;
}

.hub-subtitle {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #222;
}

/* FORMS */
/* Forms fill the content area instead of leaving half of it empty. */
.hub-form {
  max-width: none;
}

.hub-form-group {
  margin-bottom: 20px;
}

/* Two fields side by side (Region / City, Barangay / Postal code). */
.hub-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .hub-form-row {
    grid-template-columns: 1fr;
  }
}

.hub-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #bbb;
  font-size: 0.85rem;
  font-weight: 600;
}

.hub-input {
  width: 100%;
  padding: 12px 14px;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: "Inter", sans-serif;
  transition: border-color 0.3s;
}

.hub-input:focus {
  outline: none;
  border-color: #ff0000;
}

.hub-btn {
  background-color: #ff0000;
  color: white;
  padding: 12px 28px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: 0.3s;
  font-family: 'Inter', sans-serif;
}

.hub-btn:hover {
  background-color: #cc0000;
}

/* TIMELINE (Order Tracking) */
.order-tracking-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: #333;
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100px;
}

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  border: 3px solid #111;
  font-weight: bold;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.timeline-step.active .timeline-icon {
  background: #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.timeline-step.completed .timeline-icon {
  background: #ff0000;
}

.timeline-step p {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
}

.timeline-step.active p,
.timeline-step.completed p {
  color: #fff;
}

/* PAYMENT UPLOAD */
.payment-upload-area {
  background: #161616;
  border: 2px dashed #444;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  margin-top: 20px;
  transition: border-color 0.3s;
}

.payment-upload-area:hover {
  border-color: #ff0000;
}

/* RETURNS & FEEDBACK (cards rendered by home-profile.js) */
.return-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.return-info {
  min-width: 0;
}

.return-info h4 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.return-info p {
  color: #888;
  font-size: 0.85rem;
}

/* One tidy column: status badge, then equal-width buttons, then any credit. */
.return-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
  width: 200px;
}

.return-actions .return-badge {
  text-align: center;
  white-space: normal;
}

.return-actions .btn-rf-action {
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 1px solid #555;
  color: #fff;
}

.btn-outline:hover {
  border-color: #ff0000;
  color: #ff0000;
}

/* Both the red and outline buttons share one compact size on these cards. */
.btn-rf-action {
  padding: 10px 18px;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.btn-rf-action:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Return status per item. */
.return-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.return-badge-review {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.45);
  color: #ffd76a;
}

.return-badge-approved {
  background: rgba(40, 167, 69, 0.12);
  border-color: rgba(40, 167, 69, 0.45);
  color: #7bd793;
}

.return-badge-declined {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.45);
  color: #ff929c;
}

.return-badge-completed {
  background: rgba(255, 255, 255, 0.06);
  border-color: #444;
  color: #cfcfcf;
}

/* Store credit issued for a completed refund review. */
.return-credit {
  display: grid;
  gap: 4px;
  justify-items: end;
  max-width: none;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(40, 167, 69, 0.45);
  border-radius: 8px;
  background: rgba(40, 167, 69, 0.08);
  text-align: right;
}

.return-credit-label {
  color: #7bd793;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.return-credit-amount {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.1;
}

.return-credit-code {
  padding: 4px 8px;
  border: 1px dashed #4a4a4a;
  border-radius: 6px;
  background: #0c0c0c;
  color: #ffd76a;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  user-select: all;
}

.return-credit-sub {
  margin-top: -2px;
  color: #9f9f9f;
  font-size: 0.78rem;
}

.return-credit-note {
  color: #9f9f9f;
  font-size: 0.78rem;
}

.return-replaced {
  display: block;
  margin-top: 6px;
  color: #bbb;
  font-size: 0.8rem;
}

/* The photo the customer attached to a return request. */
.return-photo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #161616;
  color: #bbb;
  font-size: 0.78rem;
  text-decoration: none;
}

.return-photo-link:hover {
  border-color: #666;
  color: #fff;
}

.return-photo-link img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.return-video-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(214, 26, 26, 0.18);
  color: #ff6b6b;
  font-size: 0.7rem;
}

.rf-photo-preview video {
  max-width: 220px;
  max-height: 160px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #000;
}

.return-credit.is-used {
  border-color: #444;
  background: rgba(255, 255, 255, 0.04);
}

.return-credit.is-used .return-credit-label,
.return-credit.is-used .return-credit-code {
  color: #888;
  text-decoration: line-through;
}

.feedback-preview {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #262626;
  border-radius: 6px;
  background: #161616;
  color: #cfcfcf;
  font-size: 0.88rem;
}

.feedback-media {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.feedback-media img {
  width: 56px;
  height: 56px;
  border: 1px solid #333;
  border-radius: 6px;
  object-fit: cover;
}

.feedback-media .return-photo-link {
  margin-top: 0;
}

.feedback-preview .admin-reply {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #333;
  color: #ffb3b3;
}

.returns-empty-state {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed #333;
  border-radius: 8px;
  color: #888;
}

.returns-empty-state h3 {
  margin: 12px 0 8px;
  color: #fff;
}

.returns-empty-state p {
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

.returns-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(214, 26, 26, 0.12);
}

/* Return / feedback modals (opened with .is-open by home-profile.js). */
.rf-modal {
  position: fixed;
  inset: 0;
  /* Above the sticky header (100010) and category bar (100030) — the same
     layer the login modal uses, so nothing on the page can cover it. */
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
}

.rf-modal.is-open {
  display: flex;
}

/* Keep the page still behind an open modal; only the card scrolls. */
body:has(.rf-modal.is-open) {
  overflow: hidden;
}

.rf-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: rfModalIn 0.2s ease-out;
}

@keyframes rfModalIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.rf-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.rf-modal-eyebrow {
  color: #ff2b2b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rf-modal-title {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
}

.rf-modal-close {
  background: none;
  border: none;
  color: #888;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.rf-modal-close:hover {
  color: #fff;
}

/* Plain stacked labels. These wrappers deliberately avoid .hub-form-group so
   the site-wide floating-label rules (motolectron.css) leave them alone — a
   floating label sits mid-textarea and hides the placeholder. */
.rf-modal {
  color-scheme: dark;
}

.rf-field {
  margin-bottom: 16px;
}

.rf-label {
  display: block;
  margin-bottom: 8px;
  color: #bbb;
  font-size: 0.85rem;
  font-weight: 600;
  user-select: none;
}

/* Required fields carry a red asterisk; everything else is optional. */
.rf-label.is-required::after {
  content: " *";
  color: #ff2b2b;
}

.rf-form textarea.hub-input {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.rf-form .hub-input::placeholder {
  color: #666;
}

.rf-form select.hub-input {
  appearance: auto;
  color-scheme: dark;
  cursor: pointer;
}

/* Chrome paints the popup from the option colours; keep it on the dark theme. */
.rf-form select.hub-input option {
  background: #111;
  color: #fff;
}

.rf-form .hub-input[readonly] {
  color: #bbb;
  background: #0c0c0c;
  border-color: #262626;
  cursor: default;
}

.rf-form .hub-input[readonly]:focus {
  border-color: #262626;
}

.rf-help {
  margin: 8px 0 0;
  color: #777;
  font-size: 0.8rem;
  line-height: 1.5;
  /* Guidance, not content: a click-drag on the form must not paint it blue. */
  user-select: none;
}

/* Optional photo on a return request. */
.rf-file {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed #444;
  border-radius: 6px;
  background: #111;
  color: #bbb;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

.rf-file::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid #555;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.rf-file::file-selector-button:hover {
  border-color: #ff0000;
  color: #ff0000;
}

/* The picked photo/clip with an × pinned to its top-right corner. */
.rf-photo-preview {
  position: relative;
  display: inline-block;
  margin-top: 10px;
}

.rf-photo-preview[hidden] {
  display: none;
}

.rf-photo-preview img {
  display: block;
  max-width: 160px;
  max-height: 160px;
  border: 1px solid #333;
  border-radius: 6px;
  object-fit: cover;
}

.rf-photo-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: #111;
  color: #ddd;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.rf-photo-remove:hover {
  border-color: #ff0000;
  color: #ff0000;
}

.rf-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.rf-star-picker {
  display: flex;
  gap: 4px;
}

.rf-star-picker .star {
  background: none;
  border: none;
  padding: 0 2px;
  color: #444;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.rf-star-picker .star:hover {
  transform: scale(1.12);
}

.rf-star-picker .star.active {
  color: #ffb800;
}

@media (max-width: 640px) {
  .return-card {
    flex-direction: column;
    align-items: stretch;
  }

  .return-actions {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .return-actions .btn-rf-action {
    width: auto;
  }

  .btn-rf-action {
    flex: 1 1 auto;
  }

  .return-credit {
    flex: 1 1 100%;
    max-width: none;
    justify-items: start;
    text-align: left;
  }

  .rf-modal-actions {
    flex-direction: column-reverse;
  }

  .rf-modal-actions .btn-rf-action {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hub-container {
    flex-direction: column;
  }

  .hub-sidebar {
    width: 100%;
    /* Stacked above the content on small screens: no pinning, no inner scroll. */
    position: static;
    max-height: none;
    overflow: visible;
  }

  .hub-content-area {
    padding: 30px 24px;
  }
}

/* =========================================
   FAVORITES TAB STYLES IN PROFILE
   ========================================= */
.favorites-product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  margin-top: 15px !important;
}

.favorites-product-grid .product-card {
  margin: 0 !important;
  width: 100% !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.3s ease !important;
}

.favorites-product-grid .product-card.removing {
  opacity: 0 !important;
  transform: scale(0.9) !important;
  pointer-events: none !important;
}

.favorite-remove-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(20, 20, 24, 0.88) !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 59, 48, 0.5) !important;
  color: #ff3b30 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 8 !important;
  padding: 0 !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.favorite-remove-btn:hover {
  transform: scale(1.15) !important;
  background: #ff3b30 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.55) !important;
}

.favorites-card-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: 10px !important;
  width: 100% !important;
}

.favorites-card-actions .btn-fav-cart {
  flex: 1 !important;
  background: #ff1f1f !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 7px 10px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.18s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  text-decoration: none !important;
}

.favorites-card-actions .btn-fav-cart:hover {
  background: #e01212 !important;
  color: #ffffff !important;
}

.favorites-card-actions .btn-fav-view {
  background: #1e1e24 !important;
  color: #d1d5db !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 6px !important;
  padding: 7px 10px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s ease !important;
}

.favorites-card-actions .btn-fav-view:hover {
  background: #2a2a32 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}



/* Return details modal. */
.rd-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.rd-facts > div {
  padding: 10px 12px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #161616;
}

.rd-facts dt {
  margin: 0 0 4px;
  color: #888;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rd-facts dd {
  margin: 0;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.rd-section {
  margin-bottom: 16px;
}

.rd-section-label {
  margin-bottom: 6px;
  color: #888;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rd-reason {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #ff0000;
  background: #161616;
  color: #ddd;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-line;
}

.rd-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rd-proof img,
.rd-proof video {
  max-width: 220px;
  max-height: 180px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #000;
  object-fit: cover;
}

.rd-muted {
  margin: 0;
  color: #777;
  font-size: 0.85rem;
}

.rd-timeline {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.rd-step {
  position: relative;
  flex: 1;
  padding-top: 18px;
  text-align: center;
}

.rd-step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: #333;
}

.rd-step:last-child::before {
  display: none;
}

.rd-step.is-done::before {
  background: #ff0000;
}

.rd-step-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  transform: translateX(-50%);
  z-index: 1;
}

.rd-step.is-done .rd-step-dot {
  background: #ff0000;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.rd-step.is-danger .rd-step-dot {
  background: #ff4c4c;
}

.rd-step-label {
  display: block;
  color: #888;
  font-size: 0.8rem;
  font-weight: 600;
}

.rd-step.is-done .rd-step-label {
  color: #fff;
}

.rd-step-date {
  display: block;
  margin-top: 2px;
  color: #777;
  font-size: 0.72rem;
}

.rd-outcome {
  display: grid;
  gap: 2px;
  margin-bottom: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(40, 167, 69, 0.4);
  border-radius: 8px;
  background: rgba(40, 167, 69, 0.08);
}

.rd-outcome strong {
  color: #fff;
  font-size: 0.92rem;
}

.rd-outcome span {
  color: #bbb;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .rd-facts {
    grid-template-columns: 1fr;
  }
}
