* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  overflow: hidden;
}

@keyframes moveBg {
  0% { background-position: 0 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
body {
  background: url("bg.js") center/cover no-repeat fixed;
  animation: moveBg 20s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-wrapper {
  text-align: center;
  width: 100%;
  max-width: 480px;
  padding: 0 20px;
}

.logo-box {
  margin-top: 20vh;
}
.logo-img {
  width: 90px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.app-title {
  font-size: 20px;
  margin: 10px 0 20px;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.primary-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 200px auto 10px;
  padding: 14px 0;
  background: linear-gradient(135deg, #d95ce7, #c235e6);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(210, 90, 255, 0.6);
  animation: bounce 1.5s infinite ease-in-out;
  cursor: pointer;
}
.primary-btn:hover {
  opacity: 0.92;
}
.primary-btn:active {
  background: linear-gradient(135deg, #a020f0, #8a1bcf);
}

.primary-btn.small {
  max-width: 200px;
  margin: 10px auto;
  font-size: 16px;
  padding: 12px 0;
  animation: none;
  box-shadow: none;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.sub-tip {
  color: #ffffff;
  font-size: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  margin-top: 12px;
}

.biz-btn, .kefu-btn {
  position: fixed;
  top: 16px;
  padding: 8px 12px;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s ease;
}

.biz-btn {
  left: 16px;
}

.kefu-btn {
  right: 16px;
}

.biz-btn:hover,
.kefu-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.modal.show {
  display: flex;
}
.modal-inner {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 82%;
  max-width: 380px;
  text-align: center;
  position: relative;
}
.modal-inner.full {
  width: 100vw;
  height: 90vh;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  position: fixed;
  top: 5vh;
  left: 0;
  right: 0;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .modal-inner.full {
    height: 80vh;
    border-radius: 12px 12px 0 0;
    position: relative;
    top: auto;
  }
}
.modal .close {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.modal-inner.full iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.bottom-slide {
  align-items: flex-end;
}
.bottom-slide .modal-inner.full {
  transform: translateY(100%);
  transition: 0.4s ease;
}
.bottom-slide.show .modal-inner.full {
  transform: translateY(0);
}
.input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}
.input-row label {
  min-width: 70px;
  font-size: 14px;
  color: #333;
}
.input-row input {
  width: 45%; 
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 0 10px;
  background: #f8f8f8;
}
.copy-btn {
  padding: 6px 12px;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  background: #888;
  color: #fff;
  cursor: pointer;
}
.copy-btn:hover {
  background: #555;
}

@media screen and (min-width: 769px) {
  .modal-inner.full {
    position: fixed !important;
    top: 5vh !important;
    left: 0 !important;
    width: 100vw !important;
    height: 90vh !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }
}