/* ================================================================
   ZUKKU 音声対話UI — グラスモーフィズム × グラデーション
   ================================================================ */

.vc-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 18%, rgba(79,195,247,0.22), transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(146,96,255,0.20), transparent 45%),
    radial-gradient(circle at 70% 12%, rgba(231,76,60,0.10), transparent 40%),
    linear-gradient(160deg, #0b1c2c 0%, #10243a 45%, #1a1f3d 100%);
  color: #eaf2f8;
}

.vc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky; top: 0; z-index: 40;
}
.lang-select {
  background: rgba(255,255,255,0.08);
  color: #eaf2f8;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.lang-select option { color: #16283a; }

.vc-balance { background: rgba(10,25,40,0.55); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.07); }

/* ---------- センターステージ ---------- */
.vc-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 0;
  min-height: 0;
}

.vc-avatar-wrap { position: relative; display: grid; place-items: center; }
.vc-glow {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,195,247,0.35), transparent 65%);
  filter: blur(6px);
  animation: glowPulse 4s ease-in-out infinite;
  transition: background 0.4s;
}
@keyframes glowPulse { 0%,100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.12); opacity: 1; } }

.vc-avatar { width: 168px; filter: drop-shadow(0 14px 30px rgba(0,0,0,0.45)); position: relative; }
.zk-body { transform-origin: 120px 220px; animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.02, 0.985) translateY(2px); }
}
.zk-wing { transform-origin: 120px 130px; }

/* 発話中: 目のリングが光り、体がゆれ、グロー強化 */
.speaking .zk-eye { stroke: #7fe3ff; animation: eyeGlow 0.9s ease-in-out infinite; }
@keyframes eyeGlow {
  0%,100% { stroke: #7fe3ff; stroke-width: 5.5; }
  50% { stroke: #d2f4ff; stroke-width: 7; }
}
.speaking .zk-body { animation: talkSway 0.55s ease-in-out infinite; }
@keyframes talkSway {
  0%,100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg) translateY(1px); }
}
.speaking .vc-glow { background: radial-gradient(circle, rgba(127,227,255,0.55), transparent 65%); animation-duration: 1.2s; }

/* 聞き取り中（マイクON） */
.listening .vc-glow { background: radial-gradient(circle, rgba(255,120,120,0.45), transparent 65%); animation-duration: 1s; }
.listening .zk-eye { stroke: #ffb0a6; }

.vc-status {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #7fd8a2;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* ---------- 会話ログ（グラスカード） ---------- */
.vc-log {
  width: 100%;
  max-width: 720px;
  flex: 1;
  overflow-y: auto;
  padding: 18px 4px 24px;
  min-height: 120px;
}
.vc-log .msg { display: flex; margin-bottom: 12px; }
.vc-log .msg .bubble {
  max-width: 84%;
  padding: 13px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.vc-log .msg.zukku .bubble {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  border-bottom-left-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.vc-log .msg.user { justify-content: flex-end; }
.vc-log .msg.user .bubble {
  background: linear-gradient(135deg, rgba(52,152,219,0.85), rgba(93,95,233,0.85));
  border: 1px solid rgba(255,255,255,0.2);
  border-bottom-right-radius: 6px;
}
.vc-log .typing { display: inline-flex; gap: 4px; }
.vc-log .typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fd3f0; animation: blink 1.2s infinite; }
.vc-log .typing i:nth-child(2) { animation-delay: 0.2s; }
.vc-log .typing i:nth-child(3) { animation-delay: 0.4s; }

/* 検索プロセス / TXリンク（グラス版） */
.vc-log .search-process {
  background: rgba(8,20,34,0.75);
  border: 1px solid rgba(127,216,255,0.25);
  color: #bfe0f5;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 6px 0 14px 0;
  font-size: 13.5px;
  font-family: "SF Mono", Menlo, monospace;
  max-width: 88%;
  backdrop-filter: blur(12px);
}

/* 職人カード（グラス版に寄せる） */
.vc-log .craftsman-card {
  margin: 6px 0 14px 0;
  max-width: 92%;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(10,24,40,0.82);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
}

.vc-log .passport-wrap { margin: 8px 0 14px 0; max-width: 92%; }
.vc-log .passport-wrap img { border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,0.45); }
.vc-log .passport-wrap a { color: #8fd0ff; font-size: 13px; }

/* ---------- 入力ドック ---------- */
.vc-dock {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px;
}
.vc-mic {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: linear-gradient(135deg, rgba(52,152,219,0.9), rgba(93,95,233,0.9));
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(52,152,219,0.4);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.vc-mic:hover { transform: scale(1.07); }
.vc-mic.on {
  background: linear-gradient(135deg, #e74c3c, #ff7a6e);
  animation: micPulse 1.1s ease-in-out infinite;
}
@keyframes micPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.5); } 50% { box-shadow: 0 0 0 14px rgba(231,76,60,0); } }
.vc-mic:disabled { opacity: 0.4; cursor: not-allowed; }

.vc-dock input {
  flex: 1;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.09);
  color: #eaf2f8;
  font-size: 15px;
  backdrop-filter: blur(12px);
}
.vc-dock input::placeholder { color: #8aa5ba; }
.vc-dock input:focus { outline: none; border-color: rgba(127,216,255,0.6); }
.vc-send {
  padding: 15px 26px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.14);
  color: #eaf2f8;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18);
}
.vc-send:hover { background: rgba(255,255,255,0.22); }
.vc-send:disabled { opacity: 0.4; }

.vc-footer {
  text-align: center;
  padding: 8px 0 12px;
  font-size: 11.5px;
  color: #6f8fa8;
  display: flex; gap: 8px; justify-content: center;
}

@media (max-width: 640px) {
  .vc-avatar { width: 128px; }
  .vc-glow { width: 190px; height: 190px; }
}

/* ---------- 提案カード: 正直な映像エリア / PoJ認定 / レビュー ---------- */
.card-zukku {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.card-zukku svg { height: 82%; }
.card-zukku .zk-body { transform-origin: 120px 220px; animation: breathe 3.6s ease-in-out infinite; }
.card-zukku .zk-eye { animation: eyeGlow 2.4s ease-in-out infinite; }
.card-zukku .video-soon {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; letter-spacing: 0.06em;
  color: #cfe3f2;
  background: rgba(8,20,34,0.7);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.poj-badge {
  display: inline-block;
  margin-top: 9px;
  font-size: 12px; letter-spacing: 0.08em;
  color: #ffd97a;
  border: 1px solid rgba(255,217,122,0.55);
  background: rgba(255,217,122,0.10);
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--serif);
}
.reviews-soon {
  margin-top: 10px;
  font-size: 12.5px;
  color: #9db4c6;
  font-style: italic;
}
.real-review {
  margin-top: 8px;
  font-size: 13px;
  color: #ffd97a;
}

.price-strike { font-size: 13px; color: #7d95a9; text-decoration: line-through; }
.craftsman-card .price small { color: #ffd97a; font-size: 11px; }
.deposit-btn {
  margin-top: 10px; width: 100%;
  padding: 12px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #f5a623, #ffd97a);
  color: #4a3300; font-size: 14px; font-weight: 600; cursor: pointer;
}
.deposit-btn:disabled { opacity: 0.55; cursor: wait; }

.wallet-guide { margin: 10px 0 4px; font-size: 12.5px; color: #4b5b68; }
.wallet-guide summary { cursor: pointer; color: #3498db; font-weight: 600; }
.wallet-guide ol { margin: 8px 0 0 18px; display: grid; gap: 4px; }
