body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: #0c0f14;
  color: #f2f5f8;
  line-height: 1.6;
}

a {
  color: #7cc7ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #111823;
  border-bottom: 1px solid #243042;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.site-header nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 32px 0;
}

@media (max-width: 900px) {
  .hero,
  .grid-2,
  .plan-grid,
  .product-grid {
    grid-template-columns: 1fr !important;
  }
}

.shop-logo {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}

.hero-ad {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 12px;
}

.video-box {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  background: #000;
  display: block;
}

.section {
  margin: 36px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plan-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.card,
.product-card,
.post-card,
.form-card {
  background: #141b26;
  border: 1px solid #243042;
  border-radius: 18px;
  padding: 18px;
}

.product-card {
  overflow: hidden;
}

.form-card {
  max-width: 860px;
  margin: 24px auto;
}

.form-card.narrow {
  max-width: 460px;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 700;
}

input,
textarea,
select,
button {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #324154;
  background: #0e141d;
  color: #f2f5f8;
  padding: 12px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #41556d;
  background: #182433;
  color: #fff;
  width: auto;
  margin-top: 10px;
}

.btn.primary {
  background: #cc2d3a;
  border-color: #cc2d3a;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 8px;
}

.thumb {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  background: #0a0a0a;
  margin-bottom: 12px;
}

.thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 180px;
  color: #98a6b8;
  border: 1px dashed #41556d;
  border-radius: 12px;
  background: #0a0a0a;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.preview-block img,
.preview-block video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.price {
  color: #ffd36d;
  font-weight: 700;
}

.muted,
.small {
  color: #aab7c6;
}

.small {
  font-size: 14px;
}

.rich-text p {
  margin: 0 0 10px;
}

.link-box,
.plan-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #0f1621;
  border: 1px solid #243042;
}

.admin-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #243042;
}

.error {
  color: #ff8080;
  font-weight: 700;
}

.success-message {
  color: #7dffb3;
  font-weight: 700;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-box {
  width: min(680px, 100%);
  background: #141b26;
  border: 1px solid #243042;
  border-radius: 18px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #41556d;
  background: #182433;
  color: #fff;
  cursor: pointer;
}

.member-detail p {
  margin: 0 0 10px;
  word-break: break-word;
}