/* Upload card, success page, modal - from original site */
html, body { width: 100%; min-height: 100%; }
body { background-color: #f7f8fa; }
#img-content { width: 100%; min-height: 100%; padding: 16px; }

.upload-main-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}
.upload-dash-box {
  border: 2px dashed #ccc;
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
}
.upload-title { font-size: 22px; text-align: center; margin-bottom: 18px; }
.file-select-btn {
  font-size: 18px;
  padding: 10px 24px;
  border-radius: 12px;
  background: #e8f0fe;
  color: #2478e8;
  border: 0;
  cursor: pointer;
}
.file-text { font-size: 18px; color: #555; margin-left: 8px; }
.count-text { font-size: 24px; color: #777; margin-top: 16px; }
.submit-green-btn {
  width: 100%;
  background: #28bc49;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  border: 0;
  border-radius: 50px;
  padding: 20px 0;
  margin-top: 24px;
  cursor: pointer;
}
.submit-green-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.tip-notice {
  background-color: #ffeef0;
  border-left: 5px solid #e63946;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  font-size: 20px;
  color: #b42835;
}
.gift-card { background-color: #fff8dc; border-radius: 20px; padding: 28px 18px; margin-top: 20px; }
.gift-title { font-size: 26px; font-weight: bold; color: #c47000; text-align: center; }
.gift-img-wrap { background: #fff; border-radius: 16px; padding: 14px; margin: 20px 0; }
.gift-img-wrap img { width: 100%; border-radius: 10px; }
.gift-bottom-text { font-size: 22px; font-weight: bold; color: #20a83b; text-align: center; }

.pass-page-wrap {
  min-height: 100vh;
  background: #f7f8fa;
  padding: 30px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.pass-card {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 24px;
  padding: 32px 22px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
}
.pass-title { text-align: center; font-size: 28px; font-weight: bold; margin-bottom: 30px; }
.btn-resource-1,
.btn-resource-2 {
  display: block;
  width: 100%;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  border: 0;
  border-radius: 50px;
  padding: 20px 0;
  margin-bottom: 22px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-resource-1 { background: #27bc48; }
.btn-resource-2 { background: #2878ed; margin-bottom: 24px; }
.warm-tip {
  background-color: #fff6cc;
  border-radius: 12px;
  padding: 18px 14px;
  font-size: 20px;
  color: #b37800;
}

.submit-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 18px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}
.submit-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#copy-popup {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
#copy-popup.show { opacity: 1; }

.keyword-buttons .keyword-btn { display: none; }
.comment-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  padding: 12px 6px 16px;
}
.comment-btn-grid .keyword-btn.show {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  border: 2px solid #7b3fe4;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(123, 63, 228, 0.22);
  font-size: 14px;
  font-weight: bold;
  color: #111;
  cursor: pointer;
  line-height: 1.4;
  margin: 0;
  word-break: break-all;
  transition: transform 0.15s ease;
}
.comment-btn-grid .keyword-btn.show:active { transform: scale(0.96); }

.step2-text-grid .keyword-btn {
  display: flex;
}

.step2-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  padding: 12px 6px 16px;
}

.step2-image-grid img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #7b3fe4;
  box-shadow: 0 4px 10px rgba(123, 63, 228, 0.22);
  display: block;
}

@media (max-width: 576px) {
  .upload-title, .tip-notice { font-size: 18px; }
  .count-text { font-size: 20px; }
  .submit-green-btn { font-size: 20px; }
  .pass-title { font-size: 24px; }
  .btn-resource-1, .btn-resource-2 { font-size: 20px; }
}
