/* Shared base */
.qrhsg-generator,
.qrhsg-session {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.qrhsg-card {
  width: 100%;
  max-width: 1200px;
  margin: 24px auto;
  background: rgba(255,255,255,0.06);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 48px);
  backdrop-filter: blur(26px);
  box-shadow:
      0 0 0 1px rgba(255,255,255,0.04),
      0 40px 120px rgba(0,0,0,.65),
      0 0 80px rgba(187, 0, 255, 0.15);
  color: #fff;
}

.qrhsg-card * { box-sizing: border-box; }

.qrhsg-card h1 {
  text-align: center;
  color: #956fd6;
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: .4px;
}

.qrhsg-subtitle {
  text-align: center;
  opacity: .82;
  margin: 0 0 36px;
  font-size: 15px;
  line-height: 1.5;
}

.qrhsg-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
}

@media (max-width: 980px) {
  .qrhsg-grid { grid-template-columns: 1fr; }
}

.qrhsg-card label {
  font-size: 12px;
  color: #956fd6;
  display: block;
  margin-bottom: 8px;
  letter-spacing: .3px;
}

.qrhsg-card input[type="text"],
.qrhsg-card textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 15px;
}

.qrhsg-card textarea {
  min-height: 120px;
  resize: vertical;
}

.qrhsg-card input:focus,
.qrhsg-card textarea:focus {
  outline: none;
  border-color: #956fd6;
  box-shadow: 0 0 0 3px  rgba(187, 0, 255, 0.45);
}

.qrhsg-dropZone {
  border: 2px dashed rgba(187, 0, 255, 0.45);
  border-radius: 20px;
  padding: 34px;
  text-align: center;
  cursor: pointer;
  background:
      linear-gradient(180deg,
          rgba(212, 0, 255, 0.12),
          rgba(0,255,166,.02)
      );
  transition: .25s ease;
}

.qrhsg-dropZone:hover { box-shadow: 0 0 28px  rgba(187, 0, 255, 0.45); }
.qrhsg-dropZone.dragover {
  border-color: #956fd6;
  background:  rgba(187, 0, 255, 0.45);
}

.qrhsg-fileList { margin-top: 10px; font-size: 13px; color: #956fd6; }

.qrhsg-pill {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  margin: 6px 6px 0 0;
  font-size: 12px;
  border: 1px solid  rgba(187, 0, 255, 0.45);
  background: rgba(0,255,166,.08);
}

.qrhsg-btnRow { display: flex; gap: 12px; margin-top: 22px; }

.qrhsg-card button {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border: none;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(90deg,#956fd6,#bb52f3);
  color: #000;
  cursor: pointer;
  transition: .2s ease;
}

.qrhsg-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px  rgba(187, 0, 255, 0.45);
}

.qrhsg-btnGhost {
  background: transparent !important;
  color: #956fd6 !important;
  border: 1px solid #956fd6 !important;
}

.qrhsg-loader {
  display: none;
  text-align: center;
  margin-top: 22px;
  color: #956fd6;
  font-weight: 600;
}

.qrhsg-result {
  display: none;
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.qrhsg-qrBox {
  width: min(340px, 85vw);
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 16px;
  border-radius: 22px;
  margin: 22px auto;
  box-shadow: 0 0 20px  rgba(187, 0, 255, 0.45);
}

.qrhsg-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.qrhsg-actions a {
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.qrhsg-open { background: #956fd6; color: #000; }
.qrhsg-download { background: #956fd6; color: #000; }

.qrhsg-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 12px;
  opacity: .6;
}

.qrhsg-small { font-size: 12px; opacity: .75; }

@media (max-width: 520px) {
  .qrhsg-subtitle { font-size: 14px; }
  .qrhsg-actions a { width: 100%; text-align: center; }
}

/* ===== Session page design (matches your help.php styling) ===== */

.qrhsg-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
  color: #fff;
}

.qrhsg-header {
  background: rgba(255,255,255,.06);
  border-radius: 22px;
  padding: 26px;
  backdrop-filter: blur(22px);
  box-shadow:
      0 0 0 1px rgba(255,255,255,.04),
      0 30px 90px rgba(0,0,0,.6),
      0 0 60px rgba(187, 0, 255, 0.45);
      
}

.qrhsg-header h1 {
  margin: 0 0 6px;
  color: #956fd6;
  font-size: clamp(26px, 3.5vw, 36px);
  text-align: left;
}

.qrhsg-desc { opacity: .85; margin: 0; font-size: 15px; }

.qrhsg-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .qrhsg-cols { grid-template-columns: 1fr; }
}

.qrhsg-cardInner {
  background: rgba(255,255,255,.06);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(22px);
  box-shadow: 0 0 20px rgba(187, 0, 255, 0.45);
}

.qrhsg-sectionTitle {
  margin: 0 0 12px;
  color: #956fd6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.qrhsg-viewer {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.qrhsg-viewer iframe,
.qrhsg-viewer video,
.qrhsg-viewer img {
  width: 100%;
  height: min(65vh, 620px);
  border: 0;
  display: block;
}

.qrhsg-viewer audio {
  width: 100%;
  padding: 20px;
  background: #000;
}

.qrhsg-list {
  margin: 0;
  padding-left: 18px;
  opacity: .9;
  font-size: 14px;
}

.qrhsg-assetGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 700px) {
  .qrhsg-assetGrid { grid-template-columns: 1fr; }
}

.qrhsg-assetBtn {
  display: block;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,255,166,.18);
  background: rgba(0,0,0,.25);
  color: #fff;
  text-decoration: none;
  transition: .2s;
}

.qrhsg-assetBtn:hover {
  border-color: #956fd6;
  box-shadow: 0 0 20px rgba(187, 0, 255, 0.45);
}

/* Chat */
.qrhsg-chatBox {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qrhsg-chatLog {
  height: 360px;
  overflow: auto;
  border-radius: 16px;
  padding: 14px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
}

.qrhsg-msg {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  max-width: 92%;
  font-size: 14px;
  line-height: 1.45;
}

.qrhsg-user {
  background: rgba(0,255,166,.18);
  margin-left: auto;
  border: 1px solid rgba(0,255,166,.3);
}

.qrhsg-ai {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.qrhsg-ai.loading {
  opacity: .7;
  font-style: italic;
}

.qrhsg-row {
  display: flex;
  gap: 10px;
}

.qrhsg-row input { 
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.qrhsg-row button {
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  font-weight: 800;
  background: linear-gradient(90deg,#956fd6,#956fd6);
  cursor: pointer;
  color: #000;
}

@media (max-width: 600px) {
  .qrhsg-wrap { padding: 18px; }
  .qrhsg-chatLog { height: 280px; }
}

.qrhsg-session-error {
  max-width: 900px;
  margin: 30px auto;
  padding: 16px 18px;
  background: rgba(255, 0, 0, 0.10);
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: #fff;
  border-radius: 14px;
}


