.rsp-page {
  padding-top: 120px;
  min-height: 100vh;
  background: #f0f2f5;
  font-family: Inter, Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rsp-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.rsp-cover {
  height: 280px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, #002660, #003a8c);
  overflow: hidden;
  position: relative;
}

.rsp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rsp-head {
  background: #fff;
  border-radius: 0 0 12px 12px;
  border: 1px solid #dddfe2;
  border-top: none;
  padding: 0 24px 20px;
  margin-top: -12px;
  position: relative;
}

.rsp-head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-top: -56px;
}

.rsp-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.rsp-meta {
  flex: 1;
  min-width: 200px;
  padding-top: 64px;
}

.rsp-meta h1 {
  margin: 0;
  font-size: 1.75rem;
  color: #050505;
  line-height: 1.2;
}

.rsp-meta p {
  margin: 6px 0 0;
  color: #65676b;
  font-size: .95rem;
}

.rsp-stats {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: .9rem;
  color: #65676b;
}

.rsp-stats strong {
  color: #050505;
}

.rsp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 64px;
}

.rsp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}

.rsp-btn-primary {
  background: #002660;
  color: #fff;
}

.rsp-btn-primary:hover {
  background: #003a8c;
}

.rsp-btn-secondary {
  background: #e4e6eb;
  color: #050505;
}

.rsp-btn-secondary:hover {
  background: #d8dadf;
}

.rsp-btn-following {
  background: #fff;
  color: #002660;
  border: 1px solid #002660;
}

.rsp-btn-message {
  background: #f1f5f9;
  color: #003A8C;
  border: 1px solid #cbd5e1;
}

.rsp-btn-message:hover {
  background: #e2e8f0;
}

.rsp-tabs {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  border-top: 1px solid #dddfe2;
  padding-top: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

.rsp-tabs::-webkit-scrollbar {
  display: none;
}

.rsp-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

.rsp-tab {
  padding: 14px 18px;
  font-weight: 600;
  color: #65676b;
  border-bottom: 3px solid transparent;
}

.rsp-tab.active {
  color: #002660;
  border-bottom-color: #002660;
}

.rsp-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .rsp-layout { grid-template-columns: 1fr; }
  .rsp-cover { height: 200px; }
  .rsp-avatar { width: 96px; height: 96px; }
  .rsp-meta { padding-top: 48px; }
  .rsp-actions { padding-top: 12px; width: 100%; }
}

@media (max-width: 640px) {
  .rsp-page {
    padding-top: 4.25rem;
    overflow-x: hidden;
  }

  .rsp-wrap {
    padding: 0 0 calc(48px + env(safe-area-inset-bottom, 0px));
    max-width: 100%;
  }

  .rsp-cover {
    height: 148px;
    border-radius: 0;
    margin: 0 -0px;
  }

  .rsp-cover img {
    object-position: center 35%;
  }

  .rsp-head {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 0 14px 12px;
    margin-top: 0;
  }

  .rsp-head-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
    margin-top: -40px;
  }

  .rsp-avatar {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-width: 3px;
  }

  .rsp-meta {
    flex: 1 1 calc(100% - 92px);
    min-width: 0;
    padding-top: 44px;
  }

  .rsp-meta h1 {
    font-size: 1.15rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .rsp-meta .rpp-creator-badge {
    margin-top: 4px;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }

  .rsp-stats {
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
    font-size: 0.8rem;
  }

  .rsp-stats span {
    white-space: nowrap;
  }

  .rsp-actions {
    flex: 1 1 100%;
    padding-top: 4px;
    width: 100%;
    gap: 8px;
  }

  .rsp-actions .rsp-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .rsp-tabs {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
    gap: 0;
  }

  .rsp-tab {
    padding: 12px 14px;
    font-size: 0.84rem;
  }

  .rsp-layout {
    margin-top: 12px;
    padding: 0 14px;
    gap: 12px;
  }

  .rsp-layout > aside {
    order: 0;
  }

  .rsp-layout > section {
    order: 1;
  }

  .rsp-layout > aside .rsp-card {
    margin-bottom: 12px;
  }

  .rsp-layout > aside .rsp-card:last-child {
    margin-bottom: 0;
  }

  .rsp-card,
  .rsp-post {
    border-radius: 10px;
  }
}

.rsp-card {
  background: #fff;
  border: 1px solid #dddfe2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.rsp-card h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #050505;
}

.rsp-card p {
  margin: 0;
  color: #050505;
  font-size: .93rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.rsp-post {
  background: #fff;
  border: 1px solid #dddfe2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.rsp-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rsp-post-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.rsp-post-header strong {
  display: block;
  font-size: .95rem;
  color: #050505;
}

.rsp-post-header span {
  font-size: .78rem;
  color: #65676b;
}

.rsp-post-text {
  color: #050505;
  font-size: .95rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.rsp-post-media img,
.rsp-post-media video {
  width: 100%;
  border-radius: 8px;
  margin-top: 10px;
  display: block;
}

.rsp-post-stats {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0f3;
  font-size: .82rem;
  color: #65676b;
}

.rsp-empty {
  text-align: center;
  padding: 32px 16px;
  color: #65676b;
}

.rsp-badge-pst {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e7f0ff;
  color: #002660;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.rsp-offer-card, .rs-offer-card {
  margin-top: 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.rsp-offer-card img, .rs-offer-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.rsp-offer-card-body, .rs-offer-card-body { padding: 12px 14px; }
.rsp-offer-card-tag, .rs-offer-card-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.rsp-offer-card-title, .rs-offer-card-title {
  font-weight: 700;
  color: #002660;
  font-size: 15px;
  margin: 0 0 4px;
}

.rsp-offer-card-meta, .rs-offer-card-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.rsp-offer-card-prices, .rs-offer-card-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.rsp-offer-card-prices strong, .rs-offer-card-prices strong { color: #002660; font-size: 18px; }
.rsp-offer-card-prices del, .rs-offer-card-prices del { color: #94a3b8; font-size: 13px; }

.rsp-offer-card-prices span, .rs-offer-card-prices span {
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.rsp-offer-card-cta, .rs-offer-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #002660;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
}

.rsp-post-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0f3;
}

.rsp-post-actions button {
  border: none;
  background: #e4e6eb;
  color: #050505;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}

.rsp-post-actions button.rsp-liked { background: #fce7f3; color: #be185d; }

.rsp-comments {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0f3;
}

.rsp-comment-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.rsp-comment-form input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
}

.rsp-comment-form button {
  background: #002660;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.rsp-comment-item {
  background: #f0f2f5;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: .85rem;
}
