.info-page {
  width: min(100%, var(--content-max-width));
  margin: 10px auto 18px;
  padding: 0 12px;
}

.info-shell {
  background: #fffdf7;
  border: 2px solid #d9a12d;
  box-shadow: 0 6px 18px rgba(123, 43, 0, 0.1);
}

.info-titlebar {
  padding: 12px 16px;
  background: linear-gradient(90deg, #b60009, #d12816 58%, #a96900);
  color: #ffd45a;
  border-bottom: 2px solid #e6bd58;
}

.info-titlebar span {
  display: block;
  margin-bottom: 4px;
  color: #fff4c8;
  font-size: 13px;
}

.info-titlebar h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.info-body {
  padding: 14px;
}

.info-lead {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #efd7a6;
  background: #fffaf0;
  color: #7a0600;
  font-weight: 800;
}

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

.info-section {
  border: 1px solid #e8c773;
  background: #ffffff;
}

.info-section--wide {
  margin-bottom: 12px;
}

.info-section h2 {
  margin: 0;
  padding: 8px 12px;
  background: #b60009;
  color: #ffd45a;
  font-size: 18px;
  line-height: 1.2;
}

.info-section ul {
  margin: 0;
  padding: 12px 14px 12px 30px;
  color: #3a1f00;
  line-height: 1.7;
}

.info-section p {
  margin: 0;
  padding: 12px 14px;
  color: #3a1f00;
  line-height: 1.7;
}

.info-section p + p {
  padding-top: 0;
}

.service-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: start;
  padding: 14px;
}

.service-contact-list p {
  padding: 0;
  margin: 0 0 10px;
}

.service-copy-text {
  color: #b60009;
  font-weight: 800;
}

.service-note {
  color: #7a0600 !important;
  font-weight: 700;
}

.service-qr {
  margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.service-qr-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.service-payment-entry a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 18px; background: #c81018; color: #fff; font-weight: 800; text-decoration: none; }
.recharge-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px; align-items: end; }
.recharge-form label { display: grid; gap: 6px; font-weight: 700; }
.recharge-form input { min-height: 44px; border: 1px solid #c9b36d; padding: 8px 12px; font: inherit; }
.recharge-form button { min-height: 44px; border: 0; background: #c81018; color: #fff; padding: 0 24px; font-weight: 800; cursor: pointer; }
.recharge-history { display: grid; border: 1px solid #e1d6b4; }
.recharge-history__row { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(90px, 1fr)); gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e1d6b4; align-items: center; }
.recharge-history__row:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .recharge-form { grid-template-columns: 1fr; }
  .recharge-history__row { grid-template-columns: 1fr 1fr; }
  .recharge-history__row strong { grid-column: 1 / -1; overflow-wrap: anywhere; }
}

.service-qr img {
  width: min(100%, 168px);
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #e8c773;
  background: #fffaf0;
  padding: 8px;
}

.service-qr figcaption {
  color: #7a0600;
  font-size: 14px;
  font-weight: 800;
}

.service-chat-card {
  display: grid;
  gap: 14px;
}

.service-chat-tip,
.service-chat-empty {
  margin: 0;
  color: #70553a;
  font-weight: 700;
}

.service-chat-success,
.service-chat-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 800;
}

.service-chat-success {
  border: 1px solid #8fcf8a;
  background: #f0fff0;
  color: #176a1b;
}

.service-chat-error {
  border: 1px solid #e4a1a1;
  background: #fff2f2;
  color: #b60009;
}

.service-chat-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid #edcf83;
  background: #fffaf0;
}

.service-chat-form label {
  display: grid;
  gap: 6px;
  color: #7a0600;
  font-weight: 800;
}

.service-chat-form input,
.service-chat-form textarea {
  width: 100%;
  border: 1px solid #dcb96a;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: #24160f;
  background: #fff;
}

.service-chat-form__wide {
  grid-column: 1 / -1;
}

.service-chat-form button {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  border-radius: 6px;
  padding: 10px 20px;
  background: #b60009;
  color: #fff8df;
  font-weight: 900;
  cursor: pointer;
}

.service-chat-account {
  grid-column: 1 / -1;
  margin: 0;
  color: #7a0600;
}

.service-login-required {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #edcf83;
  background: #fffaf0;
}

.service-login-required p {
  margin: 0;
}

.service-login-required a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 6px;
  background: #b60009;
  color: #fff8df;
  font-weight: 900;
  text-decoration: none;
}

.service-message-list {
  display: grid;
  gap: 10px;
}

.service-message-list h3 {
  margin: 0;
  color: #7a0600;
}

.service-message {
  border: 1px solid #edcf83;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.service-message--admin {
  border-color: #b60009;
  background: #fff7f1;
}

.service-message div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7a0600;
  font-weight: 800;
}

.service-message time {
  color: #70553a;
  font-size: 13px;
}

.service-message p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.gallery-sync-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #efd7a6;
  background: #fffaf0;
  color: #663300;
  font-weight: 700;
}

.gallery-sync-meta a {
  color: #b60009;
  text-decoration: underline;
}

.gallery-sync-warning {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #df3b24;
  background: #fff2ed;
  color: #b60009 !important;
  font-weight: 800;
}

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

.gallery-image-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
  overflow: hidden;
  border: 1px solid #e8c773;
  background: #fff;
}

.gallery-modal[hidden] { display: none; }
.gallery-modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 16px; }
.gallery-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, 0.72); }
.gallery-modal__content { position: relative; z-index: 1; width: min(1100px, 96vw); max-height: 92vh; margin: 0; display: grid; place-items: center; }
.gallery-modal__content img { display: block; max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 4px; background: #fff; }
.gallery-modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #c81018; color: #fff; font-size: 24px; font-weight: 900; cursor: pointer; }
body.gallery-modal-open { overflow: hidden; }

.gallery-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-empty {
  display: grid;
  gap: 8px;
  padding: 24px 16px;
  border: 1px solid #e8c773;
  background: #fffaf0;
  color: #7a0600;
  text-align: center;
}

.gallery-empty strong {
  color: #b60009;
  font-size: 20px;
}

@media (max-width: 760px) {
  .info-page {
    margin: 8px auto 14px;
    padding: 0 8px;
  }

  .info-titlebar {
    padding: 10px 12px;
  }

  .info-titlebar h1 {
    font-size: 21px;
  }

  .info-body {
    padding: 10px;
  }

  .info-section-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .info-section h2 {
    font-size: 17px;
  }

  .service-contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .service-qr img {
    width: min(58vw, 180px);
  }

  .service-chat-form {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .service-chat-form button {
    width: 100%;
  }

  .service-message div {
    display: grid;
    gap: 4px;
  }

  .gallery-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-sync-meta {
    display: grid;
    gap: 6px;
    font-size: 13px;
  }
}
