@font-face {
  font-family: "UKNumberPlate";
  src: url("/fonts/UKNumberPlate.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =========================================
   TOPBAR TYPOGRAPHY NORMALISATION
   Ensures the mobile drawer uses the same font everywhere
   ========================================= */



.ct-topbar,
.ct-topbar * ,
.ct-mobileMenu,
.ct-mobileMenu * {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.ct-topbar_link,
.ct-mobileMenu_link {
  font-weight: 500;
  letter-spacing: 0.01em;
}


.ct-account {
  min-height: 100vh;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  padding: 96px 16px 48px;
  color: #e5e7eb;
  display: flex;
  justify-content: center;
}

/* Base reset for the account page */
body {
  margin: 0;
  background: #020617;
}


.ct-account__section {
  width: 100%;
  max-width: 960px;
}

.ct-account__section-header h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.ct-account__section-header p {
  margin: 0 0 24px;
  color: #9ca3af;
}

.ct-account__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ct-account__column h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.ct-tile {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(145deg, #020617, #020617 40%, #020617);
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
}

.ct-tile__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ct-tile__label span:first-child {
  font-weight: 600;
}

.ct-tile__status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.ct-tile__desc {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.ct-tile:not(.ct-tile--locked):hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
  border-color: rgba(59, 130, 246, 0.7);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), #020617);
}

.ct-tile--locked {
  cursor: default;
  opacity: 0.7;
}

.ct-tile--locked .ct-tile__status {
  color: #f97316;
}

.ct-account__hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .ct-account__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   New Account Dashboard layout
   ========================================================= */

.ct-account--dashboard {
  padding: 48px 0 64px;
  color: #e5e7eb;
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
}

.ct-account-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.ct-account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.ct-account-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-subtitle {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  color: #9ca3af;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

/* Metrics row */

.ct-account-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.ct-account-metric {
  padding: 16px 18px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #111827 0, #020617 70%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.ct-account-metric__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.ct-account-metric__value {
  font-size: 22px;
  font-weight: 600;
  color: #f9fafb;
}

/* Tabs */

.ct-account-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 20px;
}

.ct-account-tab {
  position: relative;
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease,
    transform 80ms ease;
}

.ct-account-tab.is-active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #f9fafb;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.5);
}

.ct-account-tab:hover:not(.is-active):not(.ct-account-tab--locked) {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.ct-account-tab--locked {
  opacity: 0.55;
  cursor: default;
}

.ct-account-tab__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Panels */

.ct-account-panels {
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.85);
  padding: 22px 22px 24px;
}

.ct-account-panel {
  display: none;
}

.ct-account-panel.is-active {
  display: block;
}

.ct-account-state {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.ct-account-state--error {
  color: #f97373;
}

.ct-account-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Simple placeholder cards (until we drop your full designs in) */

.ct-account-card {
  border-radius: 16px;
  padding: 16px 18px;
  background: radial-gradient(circle at top left, #020617 0, #020617 70%);
  border: 1px solid rgba(31, 41, 55, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ct-account-card__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ct-account-card__title {
  font-size: 15px;
  font-weight: 500;
  color: #f9fafb;
}

.ct-account-card__meta {
  font-size: 13px;
  color: #9ca3af;
}

.ct-account-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

/* Offers-made cards layout */
.ct-account-card {
  background: radial-gradient(
    circle at left top,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.95) 40%,
    #020617 100%
  );
  border-radius: 24px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;      /* stack header + buttons vertically */
  align-items: flex-start;     /* everything starts from the left */
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.85);
  position: relative;
  overflow: hidden;

   /* NEW: so the pill can sit in the top-right */
  position: relative;
}


/* Top row: plate + price/status */
.ct-account-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* NEW: space for the status pill on the right */
  padding-right: 180px;
}

.ct-account-card__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 28px;
  border-radius: 8px;
  background: #dedf17;
  border: 2px solid #d1c044;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.55);
}

.ct-account-card__plateText {
  font-family: "UKNumberPlate", system-ui, sans-serif;
  letter-spacing: 0;
  font-size: 28px;
  color: #111827;
  white-space: nowrap; /* keep S4 PEH on one line */
}


.ct-account-card__topMeta {
  flex: 1;
}

.ct-account-card__priceRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ct-account-card__price {
  font-size: 18px;
  font-weight: 600;
}

.ct-account-card__subline {
  margin-top: 4px;
  font-size: 13px;
  color: #9ca3af;
}

/* Meta row (views / offers) */
.ct-account-card__metaRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 6px;
  width: 100%;  
      padding-right: 220px; /* leave room for the status pill on the right */               /* span full card width */
}

.ct-account-card__pill {
  position: absolute;
  top: 16px;
  right: 20px;

  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}




.ct-account-card__metaItem {
  font-size: 13px;
  color: #9ca3af;
}

.ct-account-card__metaValue {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #e5e7eb;
}

/* Actions row */
.ct-account-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Simple badge styles – tweak colours as you like */
.ct-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-badge--active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.ct-badge--sold {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.ct-badge--paused,
.ct-badge--draft {
  background: rgba(148, 163, 184, 0.22);
  color: #e5e7eb;
}

/* My Listings grid */
.ct-account-listingsGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 1024px) {
  .ct-account-listingsGrid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

/* Listing card – main shell */
.ct-account-listingCard {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), rgba(15, 23, 42, 0.96));
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ct-account-listingHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.ct-account-listingLeft {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Plate block */
.ct-account-listingPlate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 8px 18px;
  border-radius: 8px;
  background: #dedE17;
  border: 2px solid #d1c044;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.55);
}

.ct-account-listingPlate__text {
  font-family: "UKNumberPlate", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 28px;
  letter-spacing: 0em;
  color: #111827;
}

/* Status pill */
.ct-account-listingStatus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-listingStatus__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: currentColor;
}

/* Status variants */
.ct-account-listingStatus--active {
  background: rgba(22, 163, 74, 0.12);
  color: #4ade80;
}

.ct-account-listingStatus--sold {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.ct-account-listingStatus--pending {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}

/* Price block */
.ct-account-listingPrice {
  margin-left: auto;
  text-align: right;
}

.ct-account-listingPrice__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 4px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  
}

.ct-account-listingPrice__value {
  font-size: 24px;
  font-weight: 700;
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-listingBody {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 12px;
}

.ct-account-listingStats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ct-account-listingStat {
  min-width: 120px;
}

.ct-account-listingStat__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 2px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-listingStat__value {
  font-size: 14px;
  font-weight: 500;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-listingFooter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* Shared button style */
.ct-account-btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

/* Primary (View offers) */
.ct-account-btn--primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

/* Ghost (Edit listing) */
.ct-account-btn--ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

/* Subtle (View as buyer) */
.ct-account-btn--subtle {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(75, 85, 99, 0.7);
  color: #d1d5db;
}

.ct-account-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.55);
}

/* --- Messages tab -------------------------------------------------------- */





.ct-account-messagesHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 8px 20px;
  border-bottom: 1px solid rgba(148,163,184,0.2);
}

.ct-account-messagesHeader__title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.ct-account-messagesHeader__count {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.3);
  color: #9ca3af;
}

.ct-account-messages__threads {
  padding: 4px 0;
  overflow-y: auto;
}

/* Thread row */

.ct-account-thread {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.ct-account-thread:hover {
  background: radial-gradient(circle at top left, rgba(37,99,235,0.12), transparent 55%);
}

.ct-account-thread.is-active {
  background: linear-gradient(135deg, rgba(37,99,235,0.28), rgba(37,99,235,0.02));
}

.ct-account-thread__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #facc15, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(15,23,42,0.85);
}

.ct-account-thread__avatar span {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
    
}

.ct-account-thread__content {
  flex: 1;
  min-width: 0;
}

.ct-account-thread__row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ct-account-thread__name {
  font-size: 14px;
  font-weight: 500;
  color: #e5e7eb;
}

.ct-account-thread__time {
  margin-left: auto;
  font-size: 11px;
  color: #6b7280;
}

.ct-account-thread__plate {
  font-family: "UKNumberPlate", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 9px;
  background: #DEDE17;
  border: 1px solid #D1C044;
  color: #111827;
  box-shadow: 0 6px 14px rgba(15,23,42,0.4);
}

.ct-account-thread__role {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.4);
  color: #e5e7eb;
}

.ct-account-thread__preview {
  margin-top: 2px;
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-account-thread__unread {
  align-self: center;
  margin-left: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Conversation pane */




.ct-account-convoHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ct-account-convoHeader__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ct-account-convoPlate {
  font-family: "UKNumberPlate", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  padding: 4px 14px;
  border-radius: 11px;
  background: #DEDE17;
  border: 1px solid #D1C044;
  color: #111827;
  box-shadow: 0 8px 20px rgba(15,23,42,0.5);
}

.ct-account-convoHeader__titleBlock {
  min-width: 0;
}

.ct-account-convoHeader__name {
  font-size: 15px;
  font-weight: 500;
  color: #f9fafb;
}

.ct-account-convoHeader__subtitle {
  font-size: 12px;
  color: #9ca3af;
}

.ct-account-convoHeader__role {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.5);
  color: #e5e7eb;
}

/* Conversation body + messages */



.ct-account-messages__loading,
.ct-account-messages__emptyConversation,
.ct-account-messages__error {
  font-size: 13px;
  color: #9ca3af;
  padding-top: 6px;
}

.ct-account-message {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.ct-account-message--mine {
  align-items: flex-end;
}

.ct-account-message--theirs {
  align-items: flex-start;
}

.ct-account-message__bubble {
  max-width: 72%;
  padding: 7px 11px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.35;
}

.ct-account-message--mine .ct-account-message__bubble {
  background: linear-gradient(135deg,#2563eb,#3b82f6);
  color: #f9fafb;
}

.ct-account-message--theirs .ct-account-message__bubble {
  background: rgba(15,23,42,0.96);
  color: #e5e7eb;
  border: 1px solid rgba(30,64,175,0.6);
}

.ct-account-message__time {
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

/* Make sure system timestamps follow the same side as the card */
.ct-account-message--system.ct-account-message--mine .ct-account-message__time {
  align-self: flex-end;
  text-align: right;
}

.ct-account-message--system.ct-account-message--theirs .ct-account-message__time {
  align-self: flex-start;
  text-align: left;
}


/* Composer */







.ct-account-messages__sendBtn {
  border-radius: 999px;
  padding: 0 18px;
  border: 0;
  background: radial-gradient(circle at 0 0,#fbbf24,#f97316);
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(15,23,42,0.9);
}

.ct-account-messages__sendBtn:hover {
  transform: translateY(-1px);
}

.ct-account-messages__sendBtn:active {
  transform: translateY(0);
}

/* Mobile */

@media (max-width: 900px) {
  

  

  .ct-account-message__bubble {
    max-width: 85%;
  }
}

/* =========================================================
   Messages: stacked threads + fullscreen overlay
   (Loveable-style flow, CarTrait dark-blue palette)
   ========================================================= */

.ct-account-messagesStack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ct-account-messagesStack__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.ct-account-messagesStack__title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-messagesStack__count {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-messagesStack__threads {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Make the thread rows look like the Loveable stacked list */
.ct-account-thread {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(8, 20, 46, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
}

.ct-account-thread:hover {
  background: radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.14),
      rgba(8, 20, 46, 0.78)
    );
  border-color: rgba(59, 130, 246, 0.45);
}

.ct-account-thread.is-active {
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
}

/* Remove orange gradients used earlier in messages */
.ct-account-thread__avatar {
  background: radial-gradient(circle at 30% 0%, #60a5fa, #2563eb) !important;
}

.ct-account-thread__unread,
.ct-account-thread__badge {
  background: #DEDE17;
  color: #111827;
}

/* =========================================================
   Fullscreen overlay
   ========================================================= */

.ct-account-messagesOverlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 70;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.ct-account-messagesOverlay.is-open {
  display: block;
}

.ct-account-messagesOverlay__inner {
  position: absolute;
  inset: 90px 18px 18px;
  max-width: 1040px;
  margin: 0 auto;

  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), rgba(15, 23, 42, 0.96));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.85);

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ct-account-messagesOverlay__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ct-account-messagesOverlay__backBtn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  cursor: pointer;
}

.ct-account-messagesOverlay__backBtn:hover {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.ct-account-messagesOverlay__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.ct-account-messagesOverlay__composer {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.35);
}

.ct-account-messagesOverlay__input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: rgba(15, 23, 42, 0.98);
  padding: 10px 14px;
  font-size: 16px;              /* prevent iOS Safari zoom on focus */
  line-height: 1.35;
  color: #e5e7eb;
  outline: none;
}

.ct-account-messagesOverlay__input::placeholder {
  color: #6b7280;
}

.ct-account-messagesOverlay__input:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.9);
}

.ct-account-messagesOverlay__sendBtn {
  border-radius: 999px;
  padding: 0 18px;
  border: 0;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
}

.ct-account-messagesOverlay__sendBtn:hover {
  transform: translateY(-1px);
}

body.ct-account-messagesOverlayOpen {
  overflow: hidden;
}

@media (max-width: 900px) {
  .ct-account-messagesOverlay__inner {
    inset: 0;
    border-radius: 0;
  }
}

/* -------------------------------------------------------
   Messages: list-first + full-screen conversation overlay
   (Loveable-style interaction, CarTrait colours)
------------------------------------------------------- */







/* Prevent background scroll while conversation is open */
body.ct-messages-open {
  overflow: hidden;
}

/* Back button */
.ct-account-convoBackBtn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(15,23,42,0.6);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ct-account-convoBackBtn:hover {
  background: rgba(30,64,175,0.25);
  border-color: rgba(59,130,246,0.4);
}

/* Send button blue (not orange) */
.ct-account-messages__sendBtn {
  background: linear-gradient(135deg,#2563eb,#3b82f6);
  color: #f9fafb;
}




/* =========================================================
   Messages: stacked list -> fullscreen conversation
   ========================================================= */






/* Lock background scroll */
body.ct-messages-open {
  overflow: hidden;
}

/* Back button (we inject it via JS into the header meta) */
.ct-account-convoBackBtn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ct-account-convoBackBtn:hover {
  background: rgba(30, 64, 175, 0.25);
  border-color: rgba(59, 130, 246, 0.4);
}



/* Offer card inside conversation overlay */
.ct-account-offerCard {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.85);
}

.ct-account-offerCard__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.ct-account-offerCard__text {
  font-size: 14px;
  line-height: 1.5;
  color: #e5e7eb;
  margin-bottom: 14px;
}

.ct-account-offerCard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-account-offerBtn {
  border-radius: 999px;
  border: 0;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease,
    transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ct-account-offerBtn:active {
  transform: translateY(1px);
}

.ct-account-offerBtn--accept {
  
  color: #f9fafb;
  
}

.ct-account-offerBtn--accept:hover {
  background: #2563eb;
}

.ct-account-offerBtn--counter {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.9);
}

.ct-account-offerBtn--counter:hover {
  background: rgba(15, 23, 42, 0.9);
}

.ct-account-offerBtn--decline {
  background: transparent;
  color: #f97373;
  border: 1px solid rgba(239, 68, 68, 0.8);
}

.ct-account-offerBtn--decline:hover {
  background: rgba(127, 29, 29, 0.45);
}


/* Messages – sidebar list layout (Lovable-style) */
.ct-account-messagesSidebarList {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* space between rows */
}

/* Individual conversation row */




/* Thread row — Loveable "bg-card border rounded-xl p-5" look */
.ct-account-thread {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18); /* border-border */
  border-radius: 0.75rem; /* rounded-xl */
  padding: 1.25rem; /* p-5 */
  background: rgba(2, 6, 23, 0.55); /* bg-card */

  display: flex;
  align-items: flex-start;
  gap: 0.85rem;

  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ct-account-thread:hover {
  border-color: rgba(59, 130, 246, 0.3); /* hover:border-primary/30 */
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.75);
  transform: translateY(-1px);
}

.ct-account-thread.is-active {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.35);
  background: radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.12),
      rgba(2, 6, 23, 0.55) 60%
    );
}
/* Threads container spacing */
.ct-account-messages__threads {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* =========================================================
   Messages list rows (Loveable-style layout)
   ========================================================= */

.ct-account-thread {
  width: 100%;
  text-align: left;
  border-radius: 0.75rem; /* rounded-xl */
  padding: 1.25rem; /* p-5 */
  background: rgba(2, 6, 23, 0.55); /* bg-card */
  border: 1px solid rgba(148, 163, 184, 0.18);

  display: flex;
  align-items: center;
  gap: 0.9rem;

  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ct-account-thread:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.75);
  transform: translateY(-1px);
}

.ct-account-thread.is-active {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.35);
  background: radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.12),
      rgba(2, 6, 23, 0.55) 60%
    );
}

/* Avatar (left icon) */
.ct-account-thread__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.ct-account-thread__avatarText {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(245, 158, 11, 0.95);
}

/* Middle content */
.ct-account-thread__main {
  flex: 1;
  min-width: 0;
}

.ct-account-thread__topLine {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.ct-account-thread__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
}

.ct-account-thread__plateInline {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
}

/* Selling/Buying pill */
.ct-account-thread__rolePill {
  margin-left: 0.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;

  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1rem;

  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: rgba(226, 232, 240, 0.95);
}

.ct-account-thread__preview {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right: time top-right, unread bottom-right */
.ct-account-thread__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem;
  flex-shrink: 0;
  min-height: 2.25rem;
}

.ct-account-thread__time {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(148, 163, 184, 0.8);
}

.ct-account-thread__unreadBadge {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #DEDE17;
  border: 1px solid #D1C044;
  color: #111827;

  font-size: 0.75rem;
  font-weight: 700;
}

/* =========================================================
   Messages thread row (Loveable layout override)
   Paste at VERY BOTTOM of account.css
   ========================================================= */

.ct-account-messagesSidebarList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Force thread into Loveable row layout (override old column styles) */
.ct-account-messagesSidebarList .ct-account-thread {
  width: 100%;
  text-align: left;

  border-radius: 0.75rem; /* rounded-xl */
  padding: 1.25rem; /* p-5 */
  background: rgba(2, 6, 23, 0.55); /* bg-card */
  border: 1px solid rgba(148, 163, 184, 0.18);

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;

  gap: 14px;
  cursor: pointer;

  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ct-account-messagesSidebarList .ct-account-thread:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.75);
  transform: translateY(-1px);
}

.ct-account-messagesSidebarList .ct-account-thread.is-active {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.35);
  background: radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.12),
      rgba(2, 6, 23, 0.55) 60%
    );
}

/* Avatar (left) */
.ct-account-thread__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(circle at 30% 0%, rgba(59,130,246,0.35), rgba(2,6,23,0.9));
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 10px 24px rgba(70, 70, 71, 0.75);
}

.ct-account-thread__avatarText {
  font-weight: 600; /* Loveable uses 600 */
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #f9fafb;
}

/* Middle block (name + plate + tag on top, preview below) */
.ct-account-thread__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ct-account-thread__topLine {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ct-account-thread__name {
  font-weight: 600; /* Loveable: font-semibold */
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
}

/* the “· VRM” bit */
.ct-account-thread__plateInline {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.9);
  white-space: nowrap;
}

/* Selling/Buying pill */
.ct-account-thread__rolePill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;

  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: rgba(226, 232, 240, 0.95);
}

/* Preview text */
.ct-account-thread__preview {
  font-size: 0.875rem; /* Loveable text-sm */
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right side: time (top) + unread (bottom) */
.ct-account-thread__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 44px;
  gap: 6px;
}

.ct-account-thread__time {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.75);
  white-space: nowrap;
}

/* Unread badge bottom-right */
.ct-account-thread__unreadBadge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #DEDE17;
  border: 1px solid #D1C044;
  color: #111827;

  font-size: 0.75rem;
  font-weight: 700;
}


/* Header meta bar (next to the single back button) */
.ct-account-convoMetaBar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Smaller plate pill sized to fit the top bar */
.ct-account-convoPlateMini {
  height: 40px;
  min-width: 110px;
  padding: 0 14px;
  background: #dedE17;
  border: 1px solid #d1c044;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ct-account-convoPlateMini span {
  font-family: "UKNumberPlate", "UKNumberPlate Regular", sans-serif;
  font-size: 30px;
  letter-spacing: 0px;
  color: #111827;
  white-space: nowrap;
}

/* Right-side name + regarding */
.ct-account-convoTitleBlock {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ct-account-convoName {
  font-weight: 600;
  font-size: 14px;
  color: #f8fafc;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-account-convoSub {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.1;
}

.ct-account-convoSub strong {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

.ct-account-offerCard {
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(24, 24, 16, 0.72);
  border: 1px solid rgba(222, 222, 23, 0.25);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  max-width: 520px;
}

.ct-account-offerCard__topRow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.ct-account-offerCard__tagRow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(226, 232, 240, 0.75);
}

.ct-account-offerCard__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.ct-account-offerCard__labelText {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.ct-account-offerCard__headline {
  font-size: 14px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.95);
  margin-bottom: 8px;
}

.ct-account-offerCard__amount {
  font-size: 28px;
  font-weight: 700;
  color: #dedE17;
  margin-bottom: 14px;
}

.ct-account-offerCard__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===========================
   Conversation header meta
=========================== */

.ct-convoHeaderMeta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ct-platePill {
  font-family: "UKNumberPlate", "UKNumberPlate Regular", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0em;
  background: #dedf17;
  color: #111827;
  border: 1px solid #d1c044;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.ct-platePill--header {
  height: 38px;
  padding: 0 14px;
  font-size: 20px;
  line-height: 1;
}

.ct-convoHeaderMeta__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ct-convoHeaderMeta__name {
  font-weight: 600;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-convoHeaderMeta__sub {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.55);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-convoHeaderMeta__subPlate {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.72);
   font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

/* ===========================
   Offer card styling
=========================== */

.ct-account-offerCard {
  max-width: 420px;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
}

.ct-account-offerCard__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ct-account-offerCard__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
}

.ct-account-offerCard__title {
  font-weight: 500;
  font-size: 15px;
  color: rgba(226, 232, 240, 0.92);
}

.ct-account-offerCard__amount {
  font-size: 28px;
  font-weight: 800;
  margin-top: 6px;
  color: #fbbf24;
}

.ct-account-offerCard__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ct-account-offerBtn {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}

.ct-account-offerBtn:active {
  transform: scale(0.98);
}

.ct-account-offerBtn--accept {
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
}

.ct-account-offerBtn--counter {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.22);
  color: rgba(226, 232, 240, 0.95);
}

.ct-account-offerBtn--decline {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(248, 113, 113, 0.55);
  color: rgb(248, 113, 113);
}

.ct-account-offerBtn:hover {
  filter: brightness(1.05);
}

.ct-account-offerCard__time {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.45);
}

/* ===========================
   Message timestamps typography
=========================== */

.ct-account-chatMsg__time {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.45);
}

/* --- Conversation offer card --- */

.conversation__offer-card {
  background: black;
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  border: 1px solid #3b3b3b;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
}

.conversation__offer-card--pricing {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.conversation__offer-title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-text-muted, #9ca3af);
}

.conversation__offer-amount {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
  color: #ffbf00; /* golden */
}

.conversation__offer-text {
  font-size: 0.875rem;
  color: var(--ct-text-muted, #9ca3af);
}

.conversation__offer-actions {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Base button */

.conversation__offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  height: 2.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  background: var(--ct-surface-raised, #020617);
  color: var(--ct-text-primary, #e5e7eb);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.conversation__offer-btn:hover:not(.conversation__offer-btn--disabled):not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.45);
}

/* Accept = green pill */

.conversation__offer-btn--accept {
  background: #22c55e;
  border-color: rgba(34, 197, 94, 0.7);
  color: #020617;
}

.conversation__offer-btn--accept:hover:not(.conversation__offer-btn--disabled):not([disabled]) {
  background: #16a34a;
}

/* Counter = neutral */

.conversation__offer-btn--counter {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

/* Decline = red outline */

.conversation__offer-btn--decline {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.7);
  color: #fca5a5;
}

/* Disabled state */

.conversation__offer-btn--disabled,
.conversation__offer-btn[disabled] {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* Align offer cards to the correct chat side */

/* When the offer message is from ME, push the card to the right */
.ct-account-message--mine .ct-account-message__bubble .conversation__offer-card,
.ct-account-message--mine .ct-account-message__bubble .ct-account-offerCard {
  margin-left: auto;
}

/* When the offer message is from THEM, push the card to the left */
.ct-account-message--theirs .ct-account-message__bubble .conversation__offer-card,
.ct-account-message--theirs .ct-account-message__bubble .ct-account-offerCard {
  margin-right: auto;
}


/* Offer card messages: strip normal blue chat bubble styling */
.ct-account-message__bubble--offer {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* (Optional) if you see any extra spacing issues, you can tweak this too */
.ct-account-message__bubble--offer .conversation__offer-card {
  margin: 0;
}
/* Offer card messages: remove normal blue bubble completely */
.ct-account-message--mine .ct-account-message__bubble--offer,
.ct-account-message--theirs .ct-account-message__bubble--offer {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Keep the card itself clean, no extra margin from the bubble */
.ct-account-message__bubble--offer .conversation__offer-card {
  margin: 0;
}


/* ==== Chat spacing tweaks ==== */

/* Less vertical padding in the conversation pane */

/* Same for the full-screen overlay variant */
.ct-account-messagesOverlay__body {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Tighten spacing between individual messages */
.ct-account-message {
  margin-top: 4px;
  margin-bottom: 4px;
}

.ct-account-message:first-child {
  margin-top: 0;
}
.ct-account-message:last-child {
  margin-bottom: 0;
}

/* Reduce the gap under the offer card */
.ct-account-offerCard {
  margin-bottom: 10px; /* was 24px */
}

/* Slightly smaller padding inside regular bubbles so they feel lighter */
.ct-account-message__bubble {
  padding: 8px 11px; /* was 10px 13px */
}

/* --- Tighten chat bubble + spacing --- */

/* shrink the blue text bubble itself */
.ct-account-message__bubble {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* reduce vertical gap between messages */
.ct-account-message {
  margin-top: 4px;
  margin-bottom: 4px;
}



.ct-account-message__bubble {
  padding-top: 3px;
  padding-bottom: 3px;
}

.ct-account-message--mine .ct-account-message__bubble {
  margin-left: auto;
  background: #2563eb;
  padding: 6px 10px;            /* smaller vertical + horizontal padding */
  border-radius: 16px;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.65);
}

.ct-account-message--theirs .ct-account-message__bubble {
  background: #111827;
  padding: 6px 10px;            /* match the slimmer pill */
  border-radius: 16px;
  color: #e5e7eb;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

/* ==== FINAL CHAT SPACING OVERRIDES – KEEP THIS AT THE VERY BOTTOM ==== */

/* Less vertical padding in both conversation layouts */
.ct-account-messages__conversationBody,
.ct-account-messagesOverlay__body {
  padding-top: 6px;
  padding-bottom: 8px;
}

/* Tighten spacing between individual messages */
.ct-account-message {
  margin-top: 4px;
  margin-bottom: 4px;
}

/* Smaller, lighter bubbles */
.ct-account-message__bubble {
  max-width: 72%;
  padding: 6px 10px;
  border-radius: 16px;
  line-height: 1.35;
}

/* Mine vs theirs – just colours/shadows, no extra vertical padding */
.ct-account-message--mine .ct-account-message__bubble {
  margin-left: auto;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.65);
}

.ct-account-message--theirs .ct-account-message__bubble {
  background: #111827;
  color: #e5e7eb;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

/* Reduce the gap under the offer card */
.ct-account-offerCard {
  margin-bottom: 10px;
}

/* Final override: tighter chat bubbles */
.ct-account-message--mine .ct-account-message__bubble,
.ct-account-message--theirs .ct-account-message__bubble {
  
  font-size: 13px;
}

/* Override any earlier bubble rules */
.ct-account-message__bubble {
  max-width: 72%;
  padding: 0px 10px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.25;
}

/* Tighten the actual text inside chat bubbles */
.ct-account-message__bubble p {
  margin: 0;           /* kill default <p> top/bottom margin */
  line-height: 1.25;   /* match the bubble line-height */
  font-size: 13px;     /* keep text small and consistent */
}


/* 1) Base bubble size for normal chat messages */
.ct-account-message--mine .ct-account-message__bubble,
.ct-account-message--theirs .ct-account-message__bubble {
  padding: 5px 12px;        /* small but comfy vertical padding */
  border-radius: 16px;
  max-width: 72%;
  line-height: 1.3;         /* slightly taller line-height */
}

/* 2) Tighten the <p> inside so it doesn't add its own margins */
.ct-account-message__bubble p {
  margin: 0;                /* kill default paragraph margins */
  font-size: 14px;
  line-height: 1.3;         /* match bubble line-height */
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  font-weight: 500;
  color: #ffffff;
}

/* Offer card header + text style */

.ct-account-offerCardHeader {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.ct-account-offerCardIcon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}



.ct-account-offerCardBadge {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-offerSummary {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}

.ct-account-offerAmount {
  /* you can tweak these if you like */
  font-size: 2rem;
  line-height: 2rem;
  font-weight: 700;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

/* Offer messages should NOT inherit the normal bubble background */
.ct-account-message__bubble--offer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.ct-account-offerBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ct-btnIcon {
  width: 12px;
  height: 12px;
  display: block;
  flex: 0 0 16px;
}


/* System messages (offer / counter / accepted / declined) take full row */
.ct-account-message--system {
  align-items: stretch;            /* ignore mine/theirs align and stretch */
}

.ct-account-message--system .ct-account-message__bubble {
  max-width: 100%;                 /* override the 72% cap */
  width: 100%;
  box-sizing: border-box;
}

/* System messages: let cards control their own background */
.ct-account-message--system .ct-account-message__bubble {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Accepted-offer notification card */
.ct-account-offerAcceptedCard {
  max-width: 520px;
  width: 100%;
  background:     rgb(16 185 129 / 0.1);   /* deep dark panel */
  border-radius: 18px;
  border: 1px solid rgba(16, 185, 129, 0.50); /* green border */
  padding: 14px 18px 16px;
  color: #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

/* Top row: icon + "ACCEPTED" label */
.ct-account-offerAcceptedCard__statusRow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ct-account-offerAcceptedCard__statusIcon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.ct-account-offerAcceptedCard__statusLabel {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.85;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

/* Main sentence: "Sarah M. accepted your offer..." */
.ct-account-offerAcceptedCard__text {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 6px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  font-weight: 700;
  color: white;
}

/* Big yellow amount at the bottom */
.ct-account-offerAcceptedCard__amount {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: #fbbf24; /* warm yellow */
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

/* Optional actions (Make payment button) when you're the buyer */
.ct-account-offerAcceptedCard__actions {
  margin-top: 10px;
}

/* ============================
   ACCEPTED BANNER LAYOUT FIX
   ============================ */

/* 1) Never show horizontal scroll inside the full-screen conversation */
.ct-account-messagesOverlay__body {
  overflow-x: hidden;
}

/* 2) Make sure system messages (like the accepted banner) never exceed
      the available width */
.ct-account-message--system .ct-account-message__bubble {
  max-width: 100%;
  box-sizing: border-box;
}

/* 3) Keep the accepted banner nicely inset and centred,
      so it can't push past the edges */
.conversation__offer-card--accepted {
  width: 100%;
  max-width: 720px;      /* tweak this if you want it a bit narrower/wider */
  margin: 0 auto;        /* centre within the conversation column */
  box-sizing: border-box;
}

/* Inline counter editor inside offer card */
.ct-account-offerCard--counterEdit {
  border-color: rgba(250, 204, 21, 0.55);
}

.ct-account-offerCounter {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-account-offerCounter__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.8);
}

.ct-account-offerCounter__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ct-account-offerCounter__input {
  flex: 1;
  border-radius: 999px;
  background: rgba(10, 18, 40, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #f9fafb;
  padding: 9px 14px;
  font-size: 14px;
}

.ct-account-offerCounter__input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.ct-account-offerCounter__send,
.ct-account-offerCounter__cancel {
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.ct-account-offerCounter__send {
  background: #facc15; /* plate yellow */
  color: #111827;
}

.ct-account-offerCounter__send:hover {
  filter: brightness(1.05);
}

.ct-account-offerCounter__cancel {
  background: transparent;
  color: #e5e7eb;
}

.ct-account-offerCounter__cancel:hover {
  background: rgba(15, 23, 42, 0.6);
}

/* Counter-offer summary card (automated message) */
.conversation__offer-card--counter.ct-account-offerCard {
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.conversation__offer-card--counter .ct-account-offerCard__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.ct-account-offerCard__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;

}

.ct-account-offerCard__statusIcon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.conversation__offer-card--counter .ct-account-offerCard__statusLabel {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.conversation__offer-card--counter .conversation__offer-text {
  font-size: 14px;
  margin-bottom: 6px;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  line-height: 1.3;
  font-weight: 500;
}

.conversation__offer-card--counter .conversation__offer-amount {
  font-size: 2rem;
  font-weight: 700;
  line-height: 2rem;
  color: #facc15;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}


/* hide original 3-button row when counter form is open */
.ct-account-offerActions--hidden {
  display: none;
}

/* inline counter strip */
.ct-account-offerCounterForm {
  margin-top: 16px;
}

.ct-account-offerCounterForm__inner {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ct-account-offerCounterInput {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 14px;
}

.ct-account-offerCounterInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ct-account-offerCounterSend,
.ct-account-offerCounterCancel {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

.ct-account-offerCounterSend {
  background: #facc15; /* yellow-ish like Lovable */
  color: #000;
}

.ct-account-offerCounterCancel {
  background: transparent;
  color: #ffffff;
}

/* Declined offer card – dark red panel like screenshot */
.conversation__offer-card--declined.ct-account-offerDeclinedCard {
  width: 100%;
  max-width: 520px;
  margin: 0; /* let the flex alignment control position */
  background: rgba(127, 29, 29, 0.36);
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.6);
  padding: 14px 18px 16px;
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}




.ct-account-offerDeclinedCard__statusRow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248, 250, 252, 0.75);
}

.ct-account-offerDeclinedCard__statusIcon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ct-account-offerDeclinedCard__statusLabel {
  font-weight: 500;
  line-height: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;

}

.ct-account-offerDeclinedCard__text {
  margin: 0;                /* kill default paragraph margins */
  font-size: 14px;
  line-height: 1.3;         /* match bubble line-height */
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  font-weight: 500;
  color: #ffffff;
}

.ct-account-offerDeclinedCard__amount {
  font-size: 2rem;
  line-height: 2rem;
  font-weight: 700;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
    color: #ffbf00;
}

/* System messages: let cards control their own background and align
   them left/right like chat bubbles */
.ct-account-message--system .ct-account-message__bubble {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
}

/* System messages from "me" hug the right edge */
.ct-account-message--system.ct-account-message--mine .ct-account-message__bubble {
  justify-content: flex-end;
}

/* System messages from the other party hug the left edge */
.ct-account-message--system.ct-account-message--theirs .ct-account-message__bubble {
  justify-content: flex-start;
}
 
/* Declined card icon colour */
.ct-account-offerDeclinedCard__statusIcon {
  color: rgba(248, 113, 113, 1); /* red-400 */
}

/* (optional, belt-and-braces) */
.ct-account-offerDeclinedCard__statusIcon svg {
  color: inherit;
}
.ct-account-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.ct-account-metric {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgb(7, 14, 40);
  /*background: radial-gradient(circle at top left, #111827 0, #020617 70%);*/
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 25px;
}

/* Icon at the top */
.ct-account-metric__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.ct-account-metric__icon svg {
  width: 24px;
  height: 24px;
}

/* Number in the middle */
.ct-account-metric__value {
  font-size: 27px;
  font-weight: 700;
  color: #f9fafb;
}

/* Label on the bottom */
.ct-account-metric__label {
  margin-top: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
line-height: 1rem;
}

/* --- Edit Listing Modal --- */

.ct-account-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.ct-account-modal.is-open {
  display: flex;
}

.ct-account-modal__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(10px);
}

.ct-account-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: #020617;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
  padding: 24px 24px 22px;
}

@media (min-width: 768px) {
  .ct-account-modal__panel {
    padding: 26px 28px 24px;
  }
}

.ct-account-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ct-account-modal__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-modal__close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 999px;
}

.ct-account-modal__close:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

.ct-account-modal__plateWrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.ct-account-listingPlate--modal {
  min-width: 160px;
}

.ct-account-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ct-account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-account-field__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(209, 213, 219, 0.9);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-field__optional {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #9ca3af;
}

.ct-account-field__inputWrap {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0 12px;
}

.ct-account-field__inputWrap--currency .ct-account-field__prefix {
  margin-right: 4px;
}

.ct-account-field__prefix {
  font-size: 0.9rem;
  color: #9ca3af;
}

.ct-account-field__input {
  flex: 1;
  border: none;
  background: transparent;
  color: #f9fafb;
  font-size: 0.95rem;
  padding: 9px 0;
  outline: none;
}

.ct-account-field__textarea {
  resize: vertical;
  min-height: 80px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  font-size: 0.95rem;
  padding: 10px 12px;
  outline: none;
}

/* Toggle row */
.ct-account-field--toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ct-account-field__toggleText {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ct-account-field__help {
  font-size: 0.8rem;
  color: #9ca3af;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

/* Simple switch */
.ct-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.ct-switch__handle {
  position: absolute;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #9ca3af;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.ct-switch.is-on {
  background: #22c55e;
  border-color: #22c55e;
}

.ct-switch.is-on .ct-switch__handle {
  transform: translateX(18px);
  background: #022c22;
}

/* Stats strip */
.ct-account-listingStatsSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #020617, #020617 40%, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.ct-account-listingStatsSummary__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ct-account-listingStatsSummary__label {
  font-size: 0.8rem;
  color: #9ca3af;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-listingStatsSummary__value {
  font-size: 2rem;
  font-weight: 600;
  color: #facc15;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

/* Modal actions */
.ct-account-modal__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.ct-account-modal__save {
  flex: 1;
}

/* Danger button (delete) */
.ct-account-btn--danger {
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.9);
  background: rgba(127, 29, 29, 0.9);
  color: #fee2e2;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

.ct-account-btn--danger:hover {
  background: rgba(185, 28, 28, 0.95);
}

/* Prevent background scroll when modal is open */
body.ct-account-modal-open {
  overflow: hidden;
}


/* --- Listing Offers Modal --- */

.ct-account-offersAsking {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #020617, #020617 45%, #020617);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ct-account-offersAsking__label {
  font-size: 0.85rem;
  color: #9ca3af;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-offersAsking__value {
  font-size: 2rem;
  line-height: 2rem;
  font-weight: 700;
  color: #facc15;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-state--inline {
  margin-bottom: 8px;
}

.ct-account-offersList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
}

.ct-account-offerCard {
  border-radius: 18px;
  background: radial-gradient(circle at top left, #020617, #020617 40%, #020617);
  border: 1px solid rgba(30, 64, 175, 0.5);
  padding: 14px 18px 12px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.ct-account-offerCard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ct-account-offerCard__buyer {
  font-weight: 800;
  font-size: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-offerCard__status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  border-radius: 999px;
  padding: 3px 10px 4px;
  border: 1px solid transparent;
}

.ct-account-offerCard__status--pending {
  border-color: rgba(251, 191, 36, 0.8);
  background: rgba(120, 53, 15, 0.9);
  color: #fef9c3;
}

.ct-account-offerCard__status--accepted {
  border-color: rgba(34, 197, 94, 0.9);
  background: rgba(5, 46, 22, 0.9);
  color: #bbf7d0;
}

.ct-account-offerCard__status--declined {
  border-color: rgba(248, 113, 113, 0.9);
  background: rgba(127, 29, 29, 0.95);
  color: #fee2e2;
}

.ct-account-offerCard__amount {
      font-size: 2rem;
    line-height: 2rem;
  font-weight: 700;
  color: #facc15;
  margin-bottom: 4px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-offerCard__meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 8px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-offerCard__footer {
  display: flex;
  justify-content: flex-start;
}

.ct-account-offerCard__chatBtn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.85rem;
  padding: 7px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ct-account-offerCard__chatBtn:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
}


/* Actions row inside offers modal cards */
.ct-account-offerCard__actions {
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Action buttons (accept / counter / decline) */
.ct-account-offerCard__btn {
  min-width: 110px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ct-account-offerCard__btn--accept {
  background: #16a34a;
  color: #052e16;
}

.ct-account-offerCard__btn--counter {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
}

.ct-account-offerCard__btn--decline {
  background: #450a0a;
  color: #fecaca;
}

/* Reuse the same inline counter styling we already have in messages */
.ct-account-offerCounter {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-account-offerCounter__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.8);
}

.ct-account-offerCounter__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ct-account-offerCounter__input {
  flex: 1;
  border-radius: 999px;
  background: rgba(10, 18, 40, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #f9fafb;
  padding: 8px 14px;
  font-size: 14px;
}

.ct-account-offerCounter__send {
  background: #facc15;
  color: #111827;
  border-radius: 999px;
  border: none;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.ct-account-offerCounter__cancel {
  background: transparent;
  color: #e5e7eb;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

/* Make button content icon + label */
.ct-account-offerCard__btn,
.ct-account-offerCard__chatBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* space between icon and text */
}

/* Generic icon holder */
.ct-account-offerCard__btnIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Optional: size all icons consistently */
.ct-account-offerCard__btnIcon svg {
  width: 18px;
  height: 18px;
}

/* Labels just keep the text styling */
.ct-account-offerCard__btnLabel {
  line-height: 1;
}

/* In the "View offers" modal: make each offer row span the full content width */
#ctListingOffersList .ct-account-offerCard {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Make listing-offers modal buttons reuse the conversation offer button look */
.ct-account-offerCard__actions .ct-account-offerCard__btn.conversation__offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  height: 2.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  background: var(--ct-surface-raised, #020617);
  color: var(--ct-text-primary, #e5e7eb);
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

/* Variants: match the conversation offer buttons exactly */
.ct-account-offerCard__actions
  .ct-account-offerCard__btn.conversation__offer-btn--accept {
  background: #22c55e;
  border-color: rgba(34, 197, 94, 0.7);
  color: #020617;
}

.ct-account-offerCard__actions
  .ct-account-offerCard__btn.conversation__offer-btn--counter {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.ct-account-offerCard__actions
  .ct-account-offerCard__btn.conversation__offer-btn--decline {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.7);
  color: #fca5a5;
}

.ct-account-listingStat__valueIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  opacity: 0.85;
}

.ct-account-listingStat__value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ct-account-listingStat__valueIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.ct-account-listingStat__valueIcon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none; /* stop filling the shapes */
}


.ct-account-listingStat__valueText {
  line-height: 1.3;
}

/* My Offers – seller response block */
.ct-account-card__response {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.ct-account-card__responseLabel {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}

.ct-account-card__responseText {
  font-size: 14px;
  line-height: 1.4;
  color: #e5e7eb;
}

.ct-account-card__actionIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* My Offers cards */
.ct-account-card--offer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ct-account-card--offer .ct-account-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ct-account-card--offer .ct-account-card__plate {
  flex-shrink: 0;
}

.ct-account-card--offer .ct-account-card__main {
  flex: 1;
  min-width: 0;
}

.ct-account-card--offer .ct-account-card__title {
  font-size: 14px;
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 4px;
   font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-card--offer .ct-account-card__priceRow {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ct-account-card--offer .ct-account-card__price {
      font-size: 2rem;
    font-weight: 700;
    line-height: 2rem;
    color: #facc15;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-card--offer .ct-account-card__meta {
  margin-top: 4px;
  font-size: 13px;
  color: #9ca3af;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-card__status {
  margin-left: auto;
}

/* Seller response block (accepted offers) */
.ct-account-card__response {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.09),
    transparent 55%
  );
  font-size: 14px;
}

.ct-account-card__responseLabel {
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
   font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-card__responseText {
  color: #cbd5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

/* Bottom buttons row */
.ct-account-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-start;      /* buttons start from the left */
}

.ct-account-card__actionIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

/* Position the status pill in the top-right for My Offers cards */
.ct-account-card--offer {
  position: relative; /* make the article the positioning context */
}

.ct-account-card--offer .ct-account-card__top {
  padding-right: 190px; /* space so the pill doesn’t overlap the text */
}

.ct-account-card__status--topRight {
  position: absolute;
  top: 18px;
  right: 24px;
  margin-left: 0; /* override the generic margin-left:auto */
}

.ct-account-listingStatus--active {
  background: rgba(22, 163, 74, 0.12);
  color: #4ade80;
}

.ct-account-listingStatus--sold {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.ct-account-listingStatus--pending {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}

.ct-account-listingStatus--inactive {
  /* Red pill, same family as "sold" */
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.ct-account-listingPrice {
  margin-left: auto;
  text-align: right;
}

.ct-account-listingPrice {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

/* Subtle (View as buyer) */
.ct-account-btn--subtle {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(75, 85, 99, 0.7);
  color: #d1d5db;
}

/* Warning (See verification status) */
.ct-account-btn--warning {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(234, 179, 8, 0.8);
  color: #fde68a;
}

.ct-account-listingVerified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-listingVerified__icon {
  width: 0.9rem;
  height: 0.9rem;
  display: inline-flex;
}

.ct-account-verificationStatus {
  margin-top: 16px;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.ct-account-verificationStatus::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.ct-account-verificationStatus--pending {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.7);
  color: #facc15;
}

.ct-account-verificationStatus--pending::before {
  background: #facc15;
}

.ct-account-verificationStatus--verified {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #4ade80;
}

.ct-account-verificationStatus--verified::before {
  background: #22c55e;
}

.ct-account-verificationHelp {
  margin-top: 2px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #9ca3af;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

/* Make stats row a flex row so the badge can sit on the right */
.ct-account-listingStats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Verified badge: push it to the far right of the stats row */
.ct-account-listingVerified {
  margin-left: auto;

}

/* Header row above the My Listings panel */
.ct-account-listingsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.ct-account-listingsHeader__title {
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
}

/* Slight tweak for the "+ New listing" pill */
.ct-account-listingsHeader__btn {
  padding: 8px 18px;
  font-size: 13px;
}

/* Temporarily hide unused mobile menu button on all pages */
.ct-topbar__menuBtn {
  display: none;
}


.ct-account {
  min-height: 100vh;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  padding: 96px 16px 48px;
  color: #e5e7eb;
  display: flex;
  justify-content: center;
}

/* ---------------------------- */
/* Mobile layout (≤ 768px)      */
/* ---------------------------- */
@media (max-width: 768px) {
  /* Page shell / header */
  .ct-account--dashboard {
    padding: 80px 0 40px;
  }

  .ct-account-shell {
    padding: 0 16px;
  }

  .ct-account-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ct-account-header__titles {
    text-align: left;
  }

  .ct-account-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .ct-account-subtitle {
    font-size: 14px;
  }

  /* Metrics – 2 across instead of 4 tiny columns */
  .ct-account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ct-account-metric {
    padding: 10px 12px;
  }

  .ct-account-metric__value {
    font-size: 18px;
  }

  /* Tabs – scrollable strip */
  .ct-account-tabs {
    display: flex;
    overflow-x: auto;
    padding: 4px 2px 8px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .ct-account-tab {
    flex: 0 0 auto;
    min-width: max-content;
  }

  /* Panels padding */
  .ct-account-panels {
    padding: 16px 12px 20px;
    border-radius: 18px;
  }

  /* Generic account “cards” (offers, saved, etc.) */
  .ct-account-card {
    padding: 14px 14px 16px;
  }

  .ct-account-card__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-right: 0; /* remove huge desktop reserve space */
  }

  .ct-account-card__metaRow {
    padding-right: 0;
  }

  /* Move the status pill into the normal flow so it
     doesn’t sit on top of text on narrow screens */
  .ct-account-card__pill {
    position: static;
    margin-top: 4px;
  }

  .ct-account-card__plate {
    font-size: 22px;
  }

  .ct-account-card__actions {
    width: 100%;
  }

  .ct-account-card__actions .ct-account-btn,
  .ct-account-card__actions button {
    flex: 1 1 48%;
  }

  /* My Listings header: stack title + button */
  .ct-account-listingsHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ct-account-listingsHeader__btn {
    width: 100%;
    justify-content: center;
  }

  /* Listing cards – plate / status / price layout */
  .ct-account-listingCard {
    padding: 16px 14px;
    gap: 12px;
  }

  .ct-account-listingHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ct-account-listingLeft {
    width: 100%;
  }

  .ct-account-listingPlate {
    min-width: 0;
  }

  .ct-account-listingPlate__text {
    font-size: 22px;
  }

  .ct-account-listingPrice {
    margin-left: 0;
    text-align: left;
  }

  .ct-account-listingPrice__value {
    font-size: 20px;
  }

  .ct-account-listingStats {
    flex-direction: column;
    gap: 10px;
  }

  .ct-account-listingStat {
    min-width: 0;
  }

  /* Messages panel already stacks on mobile,
     but give a bit more breathing room */
  .ct-account-messagesStack {
    padding: 12px 0 0;
  }
}

/* === MOBILE TWEAKS: MY OFFERS / MY LISTINGS ===================== */
@media (max-width: 768px) {
  /* My Offers – make plate pill a bit smaller so it stays on one line */
  .ct-account-offerCard .ct-platePill,
  .ct-account-offersList .ct-platePill--header {
    font-size: 0.85rem;
    padding: 0.25rem 0.55rem;
  }

  .ct-account-offerCard__header {
    gap: 0.5rem; /* tighten header so plate + status sit nicely */
  }

    /* My Offers – card-style header plate */
  .ct-account-card--offer .ct-account-card__plate {
    padding: 4px 18px;
  }

  .ct-account-card--offer .ct-account-card__plateText {
    font-size: 20px;
  }


  /* My Listings – keep plate + status + price on one row */
  .ct-account-listingHeader {
    flex-direction: row;          /* override earlier column layout */
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .ct-account-listingLeft {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
  }

  .ct-account-listingPrice {
    margin-left: auto;
    text-align: right;
  }

  .ct-account-listingPrice__value {
    font-size: 1.1rem;           /* small reduction so it fits nicely */
  }

  /* My Listings – views + offers on a single line */
  .ct-account-listingStats {
    flex-direction: row;         /* override earlier column layout */
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .ct-account-listingStat {
    min-width: 0;                /* let them shrink */
    flex: 1 1 auto;              /* share available width */
  }
}



/* === FINAL MOBILE OVERRIDES: Messages tab ====================== */
@media (max-width: 768px) {
  /* Make the Messages panel match other tabs’ gutter */
  

  /* Ensure desktop grid / fixed height doesn't kick in on mobile */
 
  /* Stacked thread list spacing */
  .ct-account-messagesStack {
    gap: 10px;
  }

  .ct-account-messagesStack__header {
    padding: 4px 0 8px;
  }

  .ct-account-messagesStack__title {
    font-size: 0.95rem;
  }

  .ct-account-messagesStack__count {
    font-size: 0.75rem;
  }

  .ct-account-messagesStack__threads {
    gap: 8px;
  }

  .ct-account-thread {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .ct-account-thread__avatar {
    width: 32px;
    height: 32px;
  }

  .ct-account-thread__name {
    font-size: 0.9rem;
  }

  .ct-account-thread__preview {
    font-size: 0.8rem;
  }

  .ct-account-thread__time {
    font-size: 0.75rem;
  }

  /* Conversation overlay: full-width sheet, no “zoomed” box */
  .ct-account-messagesOverlay__inner {
    position: fixed;
    top: 72px;         /* just under topbar + tabs */
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    border-radius: 18px 18px 0 0;
  }

  .ct-account-messagesOverlay__body {
    padding: 12px 14px;
  }

  .ct-account-messagesOverlay__composer {
    padding: 10px 14px 14px;
  }
}

/* === MOBILE: Messages tab (final) ================================ */
@media (max-width: 768px) {
  /* Make the Messages panel use the same gutter as other tabs */
  

  /* Stacked threads list – align with panel gutter */
  .ct-account-messagesStack {
    margin-top: 8px;
    padding: 0 0 20px;
    gap: 10px;
  }

  .ct-account-messagesStack__header {
    padding: 4px 0 8px;
  }

  .ct-account-messagesStack__threads {
    gap: 8px;
  }

  .ct-account-thread {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .ct-account-thread__avatar {
    width: 32px;
    height: 32px;
  }

  .ct-account-thread__name {
    font-size: 0.9rem;
  }

  .ct-account-thread__preview {
    font-size: 0.8rem;
  }

  .ct-account-thread__time {
    font-size: 0.75rem;
  }

  /* Conversation overlay – full-width bottom sheet on mobile */
  .ct-account-messagesOverlay__inner {
    position: fixed;
    top: 72px;        /* just under topbar + tabs */
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    border-radius: 18px 18px 0 0;
    transform: none;
  }

  .ct-account-messagesOverlay__header {
    padding: 10px 14px 8px;
  }

  .ct-account-messagesOverlay__body {
    padding: 12px 14px;
  }

  .ct-account-messagesOverlay__composer {
    padding: 10px 14px 14px;
    gap: 8px;
  }

  
}


/* === FINAL HARD RESET: Messages tab on mobile ================== */


/* Mobile: make the threads list line up with other panels */
@media (max-width: 768px) {
  
  .ct-account-messagesStack {
    padding: 0 !important;      /* remove extra insets */
    margin-top: 8px;
  }

  .ct-account-messagesStack__header,
  .ct-account-messagesStack__threads {
    padding-inline: 0 !important;
  }

  .ct-account-thread {
    width: 100%;
    margin: 0;                  /* no side offset vs other cards */
    border-radius: 14px;
    padding: 10px 12px;
  }
}


/* === CANONICAL MOBILE LAYOUT: Messages tab ==================== */
@media (max-width: 768px) {
  /* 1. List view – same horizontal gutter as other tabs.
     We rely on .ct-account-panels for the actual gutter,
     so everything inside here should start at 0. */

  .ct-account-messagesStack {
    margin-top: 8px;
    padding: 0 !important;      /* kill all earlier stack padding */
    gap: 10px;
  }

  .ct-account-messagesStack__header {
    padding: 4px 0 8px !important;  /* no side padding, just vertical */
  }

  .ct-account-messagesStack__threads {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Remove the extra top margin from the inner list */
  .ct-account-messagesSidebarList {
    margin-top: 0 !important;
    padding: 0 !important;
    gap: 10px;
  }

  /* Make thread cards line up with other cards on mobile */
  .ct-account-messagesSidebarList .ct-account-thread,
  .ct-account-thread {
    width: 100%;
    margin: 0;
    border-radius: 14px;
    padding: 10px 12px;         /* same feel as other mobile cards */
  }

  /* 2. Conversation overlay – full-width bottom sheet on mobile,
        aligned with the account shell. */

  .ct-account-messagesOverlay__inner {
    position: fixed;
    top: 72px;                  /* just under topbar + tabs */
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    border-radius: 18px 18px 0 0;
    transform: none;            /* remove desktop centering */
  }

  .ct-account-messagesOverlay__header {
    padding: 10px 14px 8px;
  }

  .ct-account-messagesOverlay__body {
    padding: 12px 14px;
  }

  .ct-account-messagesOverlay__composer {
    padding: 10px 14px 14px;
    gap: 8px;
  }

  .ct-account-messagesOverlay__input {
    font-size: 16px;            /* keep it at 16px for iOS */
  }
}

/* === FINAL FIX: Messages tab overflow on mobile ================= */
@media (max-width: 768px) {
  /* Make sure the messages panel can never force the page wider */
  .ct-account-panel--messages {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ct-account-messagesStack,
  .ct-account-messagesStack__threads {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ct-account-thread {
    max-width: 100%;
  }

  /* Allow the header line (name · VRM [Role]) to wrap instead of
     stretching the card wider than the viewport */
  .ct-account-thread__topLine {
    flex-wrap: wrap;
  }

  .ct-account-thread__name,
  .ct-account-thread__plateInline,
  .ct-account-thread__rolePill {
    min-width: 0;
  }

  /* Relax no-wrap just on mobile so long names/plates can break */
  .ct-account-thread__name {
    white-space: normal;
  }

  .ct-account-thread__plateInline {
    white-space: normal;
  }
}

/* Inline loader used in account state rows (e.g. "Loading your listings…") */
.ct-account-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ct-account-loader__spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top-color: #3b82f6; /* CarTrait blue */
  animation: ct-account-spin 0.6s linear infinite;
}

.ct-account-loader__text {
  font-size: 14px;
  color: #9ca3af;
}

/* tiny spinner keyframes */
@keyframes ct-account-spin {
  to {
    transform: rotate(360deg);
  }
}

/* iOS Safari: prevent auto-zoom on focused inputs */
@media (max-width: 768px) {
  input,
  textarea,
  select {
    font-size: 16px;
  }
}
