.prop-shell {
  width: min(980px, 94vw);
  margin: 0 auto;
  padding: 24px 0 70px;
  position: relative;
}

.prop-shell::before {
  content: "";
  position: fixed;
  inset: -20vh -20vw auto;
  height: 55vh;
  background: radial-gradient(45% 60% at 50% 15%, rgba(245, 196, 0, 0.12) 0%, rgba(245, 196, 0, 0.04) 45%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.prop-topbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.prop-back,
.prop-inline-btn {
  width: auto;
  padding: 10px 14px;
}

.prop-guest {
  margin-bottom: 16px;
  border: 1px solid rgba(245, 196, 0, 0.28) !important;
}

.prop-guest-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aeb8c8;
}

.prop-guest h2 {
  margin: 0 0 10px;
}

.prop-guest-lead {
  margin: 0 0 14px;
  color: #c9d2df;
  line-height: 1.45;
}

.prop-guest-list {
  margin: 0 0 14px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #b8c3d3;
}

.prop-guest-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prop-hero {
  margin-bottom: 20px;
  padding: 34px 24px;
  border: 1px solid rgba(245, 196, 0, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(245, 196, 0, 0.08) inset;
  animation: propFadeIn 0.35s ease both;
}

.prop-hero .hero-title {
  color: #f5c400;
  letter-spacing: 0.2px;
}

.prop-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.prop-kpi {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(245, 196, 0, 0.2);
  border-radius: 14px;
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.prop-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 196, 0, 0.38);
}

.prop-kpi-label {
  font-size: 12px;
  color: #b7becb;
  display: block;
  margin-bottom: 8px;
}

.prop-kpi strong {
  font-size: 26px;
  color: #fff;
}

.prop-hero-actions {
  margin-top: 14px;
}

.prop-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: propFadeIn 0.45s ease both;
}

.prop-content.is-blurred {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.prop-shell .card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.prop-shell .card h3 {
  color: #f5c400;
}

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

#propParamsGrid > div {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}

#propParamsGrid span {
  font-size: 12px;
  color: #b4bcc9;
}

#propParamsGrid strong {
  color: #fff;
  font-size: 15px;
}

.prop-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prop-card-head h3 {
  margin: 0;
}

.prop-paywall {
  margin: 0 0 18px;
  border-color: rgba(245, 196, 0, 0.28) !important;
}

.prop-paywall-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #cdd4e0;
}

.prop-empty {
  text-align: center;
  border-color: rgba(245, 196, 0, 0.25) !important;
}

.prop-empty-actions {
  display: flex;
  gap: 10px;
}

.prop-metric-card span {
  color: #b4bcc9;
  font-size: 13px;
}

.prop-metric-card strong {
  font-size: 30px;
  line-height: 1.1;
  word-break: break-word;
}

.prop-risk-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.prop-risk-row:last-of-type {
  margin-bottom: 2px;
}

.prop-risk-msg {
  margin: 0;
  color: #bfc7d5;
  font-size: 13px;
  background: rgba(245, 196, 0, 0.08);
  border: 1px solid rgba(245, 196, 0, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
}

.prop-risk-section {
  border: 1px solid rgba(245, 196, 0, 0.2) !important;
}

.prop-risk-section h3 {
  margin-bottom: 4px;
}

.prop-risk-section .prop-risk-row strong {
  font-size: 18px;
  color: #f3f4f6;
}

.prop-coach-section {
  border: 1px solid rgba(245, 196, 0, 0.22) !important;
}

.prop-coach-section .prop-metric-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.prop-coach-actions {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  color: #d6deea;
}

.prop-coach-actions li {
  line-height: 1.35;
}

.prop-reset-section {
  border: 1px solid rgba(239, 68, 68, 0.32) !important;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.11), rgba(255, 255, 255, 0.02));
}

.prop-reset-text {
  margin: 4px 0 12px;
  color: #fbc0c0;
  font-size: 13px;
}

.prop-reset-btn {
  width: 100%;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.7);
  background: linear-gradient(180deg, #ef4444, #c81e1e);
  color: #fff;
}

.prop-reset-btn:hover {
  filter: brightness(1.05);
}

.prop-consistency-section .section-title {
  margin-bottom: 10px;
}

.prop-consistency-section .prop-metric-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.prop-consistency-section .prop-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 196, 0, 0.34);
}

.prop-consistency-section .prop-metric-card strong {
  color: #f8fafc;
}

.prop-trades-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prop-trades-list .trade {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.prop-trades-list .trade:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 196, 0, 0.35);
}

.prop-stats-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.prop-stats-pills .stat-pill {
  min-width: 130px;
}

.prop-mini-note {
  font-size: 12px;
  color: #9ca3af;
}

.prop-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.prop-kpi-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.prop-kpi-card span {
  font-size: 12px;
  color: #b5bdca;
}

.prop-kpi-card strong {
  font-size: 20px;
  color: #f3f4f6;
}

.prop-tooltip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: help;
}

.prop-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 16, 0.76);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12060;
  padding: 16px;
}

.prop-modal.hidden {
  display: none;
}

.prop-modal-box {
  width: min(760px, 95vw);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid rgba(245, 196, 0, 0.24) !important;
}

.prop-modal-box h3 {
  text-align: left;
}

.prop-modal-box label {
  font-size: 13px;
  color: #d8deea;
  display: grid;
  gap: 6px;
}

.prop-modal-box textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid #2a2d35;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
}

.prop-switch {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.prop-switch input {
  width: auto;
}

.prop-modal-actions {
  display: flex;
  gap: 10px;
}

.kpi-safe {
  color: #2ecc71 !important;
}

.kpi-warn {
  color: #f59e0b !important;
}

.kpi-danger {
  color: #ef4444 !important;
}

@media (max-width: 900px) {
  .prop-shell {
    width: min(100%, 94vw);
    padding: 16px 0 56px;
  }

  .prop-hero {
    padding: 26px 16px;
  }

  .prop-content {
    gap: 14px;
  }

  .prop-shell .card {
    padding: 14px;
  }

  .prop-guest-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 780px) {
  .prop-grid-2,
  .prop-hero-grid,
  .prop-empty-actions,
  .prop-topbar,
  .prop-modal-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .prop-inline-btn,
  .prop-back {
    width: 100%;
  }

  .prop-topbar {
    align-items: stretch;
  }

  .prop-topbar > * {
    width: 100%;
  }

  .prop-metric-card strong {
    font-size: clamp(22px, 7vw, 30px);
  }

  .prop-risk-row {
    align-items: flex-start;
  }

  .prop-risk-row span {
    font-size: 13px;
    line-height: 1.25;
  }

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

  .prop-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prop-modal {
    padding: 10px;
  }

  .prop-modal-box {
    width: min(760px, calc(100vw - 12px));
    max-height: calc(100dvh - 20px);
  }

  .prop-analytics .chart-card canvas {
    min-height: 190px;
    height: 190px;
    max-height: 220px;
  }

  .prop-analytics .table-card {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  .prop-shell {
    width: min(100%, 96vw);
    padding: 12px 0 46px;
  }

  .prop-hero {
    padding: 18px 12px;
    border-radius: 14px;
  }

  .prop-hero-grid,
  .prop-kpi-grid,
  .prop-grid-2 {
    grid-template-columns: 1fr;
  }

  .prop-shell .card h3,
  .prop-analytics .chart-card h3 {
    font-size: 15px;
  }

  .prop-trades-list .trade {
    align-items: flex-start;
    gap: 10px;
  }

  .prop-trades-list .trade-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .prop-risk-row {
    flex-direction: column;
    gap: 6px;
  }

  .prop-risk-section .prop-risk-row strong {
    font-size: 17px;
  }

  .prop-analytics .chart-card canvas {
    min-height: 170px;
    height: 170px;
    max-height: 190px;
  }

  .prop-analytics .skeleton-chart {
    height: 170px;
  }
}

/* Prop Analytics replica */
.prop-analytics #propAnalyticsContent {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prop-analytics .kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prop-analytics .kpi-card {
  background: var(--bg-card);
  border: 1px solid #272b35;
  border-radius: 14px;
  padding: 13px 12px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prop-analytics .kpi-label {
  display: block;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 6px;
}

.prop-analytics .kpi-value {
  font-size: 20px;
  font-weight: 700;
}

.prop-analytics .kpi-value.positive { color: #3ad29f; }
.prop-analytics .kpi-value.negative { color: #ff7777; }

.prop-analytics .chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.prop-analytics .chart-card { padding: 14px; }
.prop-analytics .chart-card h3 { margin: 0 0 10px; text-align: left; font-size: 16px; }
.prop-analytics .chart-help { margin: 10px 2px 0; font-size: 12px; color: var(--gray); }
.prop-analytics .chart-card canvas { width: 100%; min-height: 220px; height: 220px; max-height: 260px; display: block; }

.prop-analytics .split-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.prop-analytics .long-short-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.prop-analytics .long-short-item {
  background: var(--bg-soft);
  border: 1px solid #2b2f3a;
  border-radius: 12px;
  padding: 11px;
  min-height: 116px;
}
.prop-analytics .long-short-item h4 { font-size: 13px; margin-bottom: 8px; }
.prop-analytics .long-short-item p { font-size: 12px; color: var(--gray); margin-bottom: 3px; }

.prop-analytics .table-card { overflow-x: auto; padding: 14px; }
.prop-analytics .table-card h3 { text-align: left; margin: 0 0 12px; }

.prop-analytics .mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.prop-analytics .mini-table th,
.prop-analytics .mini-table td {
  border-bottom: 1px solid #2a2d35;
  text-align: left;
  padding: 8px 6px;
  white-space: nowrap;
}

.prop-analytics .mini-table th {
  color: var(--gray);
  font-weight: 500;
}

.prop-analytics .mini-table td.positive { color: #3ad29f; }
.prop-analytics .mini-table td.negative { color: #ff7777; }

.prop-analytics .analytics-loading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.prop-analytics .skeleton-card,
.prop-analytics .skeleton-chart {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #16181d;
  border: 1px solid #252a33;
}

.prop-analytics .skeleton-card { height: 88px; }
.prop-analytics .skeleton-chart { height: 230px; }

.prop-analytics .skeleton-card::after,
.prop-analytics .skeleton-chart::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: skeletonShimmer 1.2s infinite;
}

@keyframes skeletonShimmer {
  100% { transform: translateX(100%); }
}

@media (min-width: 760px) {
  .prop-analytics .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .prop-analytics .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .prop-analytics .long-short-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prop-analytics .chart-card canvas { min-height: 250px; height: 250px; max-height: 300px; }
}

@media (max-width: 780px) {
  .prop-analytics .chart-card canvas {
    min-height: 190px;
    height: 190px;
    max-height: 220px;
  }
}

@media (max-width: 560px) {
  .prop-analytics .chart-card canvas {
    min-height: 170px;
    height: 170px;
    max-height: 190px;
  }

  .prop-analytics .skeleton-chart {
    height: 170px;
  }
}

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