.detail-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  overflow: hidden;
}

.detail-header {
  flex-shrink: 0;
  height: 82px;
  background-color: #f8fafc;
  z-index: 20;
}

.detail-status-bar {
  height: 42px;
  padding: 12px 18px 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-status-time {
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: #1a1b1e;
}

.detail-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-icon-signal {
  width: 16px;
  height: 11px;
}

.detail-status-5g {
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  color: #1a1b1e;
}

.detail-icon-battery {
  width: 24px;
  height: 12px;
}

.detail-nav-bar {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-back-btn {
  position: absolute;
  left: 10px;
  top: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-back-icon {
  width: 20px;
  height: 20px;
}

.detail-nav-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: #1a1b1e;
}

.detail-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background-color: #ffffff;
}

.detail-hero {
  background: linear-gradient(180deg, #8c7e73 0%, #5b5048 100%);
  padding: 14px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-hero-cover {
  width: 84px;
  height: 114px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.detail-hero-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.detail-hero-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: normal;
}

.detail-hero-code {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: normal;
}

.detail-hero-issue {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: normal;
}

.detail-edition-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  line-height: normal;
}

.detail-intro {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-intro-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.detail-intro-text {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.84);
}

.detail-sheet {
  position: relative;
  margin-top: -18px;
  border-radius: 20px 20px 0 0;
  background-color: #ffffff;
  padding: 16px 16px 96px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.detail-tab {
  font-size: 15px;
  font-weight: 400;
  color: #94a3b8;
  user-select: none;
}

.detail-tab.active {
  font-weight: 700;
  color: #111827;
}

.detail-years {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-year {
  padding: 4px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  user-select: none;
}

.detail-year.active {
  padding: 4px 12px;
  background-color: #2563eb;
  font-weight: 700;
  color: #ffffff;
}

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

.detail-issue-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.detail-issue-thumb-wrap {
  position: relative;
  width: 100%;
  height: 124px;
  border-radius: 6px;
  overflow: hidden;
}

.detail-issue-thumb-wrap.is-current {
  border: 1.5px solid #e5483b;
}

.detail-issue-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-current-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  background-color: #e5483b;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: normal;
}

.detail-issue-name {
  font-size: 11px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
}

.detail-issue-date {
  font-size: 10px;
  font-weight: 400;
  color: #94a3b8;
  white-space: nowrap;
}

/* Bottom floating bar */
.detail-bottom-bar-wrap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  z-index: 25;
}

.detail-bottom-bar {
  position: relative;
  height: 52px;
  padding: 0 18px;
  border-radius: 26px;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-bar-label {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  user-select: none;
}

.detail-read-btn {
  width: 122px;
  height: 40px;
  border-radius: 20px;
  background: linear-gradient(90deg, #3370ff 0%, #1d5bff 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-points-badge {
  position: absolute;
  top: -9px;
  left: 162px;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: #fde047;
  color: #854d0e;
  font-size: 9px;
  font-weight: 700;
  line-height: normal;
  pointer-events: none;
  white-space: nowrap;
}

/* Membership Modal Overlay */
.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.62);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
}

.detail-modal-backdrop.hidden {
  display: none;
}

.detail-modal-card {
  width: 286px;
  max-width: 100%;
  border-radius: 20px;
  background-color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.detail-modal-header {
  background: linear-gradient(180deg, #eef4ff 0%, #f6f3ff 100%);
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.detail-modal-brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-modal-crown {
  width: 18px;
  height: 18px;
}

.detail-modal-brand-text {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.detail-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.detail-modal-subtitle {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
  text-align: center;
}

.detail-modal-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-plan-card {
  padding: 12px 14px;
  border-radius: 12px;
  background-color: #f5f8ff;
  border: 1.5px solid #2563eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-plan-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.detail-plan-tag {
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #6366f1;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
}

.detail-plan-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-plan-perks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-plan-points {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
}

.detail-plan-monthly {
  font-size: 10px;
  font-weight: 400;
  color: #64748b;
}

.detail-plan-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.detail-plan-price {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.1;
}

.detail-plan-avg {
  font-size: 10px;
  font-weight: 400;
  color: #64748b;
}

.detail-modal-cta {
  width: 100%;
  height: 42px;
  border-radius: 21px;
  background: linear-gradient(90deg, #3370ff 0%, #1d5bff 100%);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.detail-modal-skip {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  text-align: center;
  padding: 2px 0;
}

.detail-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-modal-close-icon {
  width: 14px;
  height: 14px;
}
