/* ...existing styles... */
:root { --ink:#111; --ink2:#555; --paper:#fff; --line:#e9e9e9; --accent:#000; }
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--ink);
  background: url("https://images.unsplash.com/photo-1620646189294-5a676632485f?q=80&w=2070&auto=format&fit=crop") center/cover fixed;
  font-family:"Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
/* Header */
.shop-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; z-index:2;
}
.brand{display:flex; align-items:center; gap:12px}
.brand-mark{
  width:28px; height:28px;
  border:2px solid var(--ink);
  border-radius:4px;
  position:relative;
  background-image: repeating-linear-gradient(
    -45deg,
    #d13333,
    #d13333 10px,
    #ffffff 10px,
    #ffffff 20px,
    #3352d1 20px,
    #3352d1 30px,
    #ffffff 30px,
    #ffffff 40px
  );
  background-size: 282% 282%;
  animation: barber-pole-spin 8s linear infinite;
}
@keyframes barber-pole-spin {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.brand-name{margin:0; font-size:20px; letter-spacing:0.5px}
.brand-tag{margin:0; font-size:12px; color:var(--ink2)}
.header-right{display:flex; gap:8px}

/* Layout */
.layout{backdrop-filter: blur(8px); background:rgba(255,255,255,0.78); border:1px solid var(--line); border-radius:12px; display:grid; grid-template-columns:280px 1fr; gap:24px; padding:24px; max-width:1200px; margin:0 auto}
.reception{border-right:1px solid var(--line); padding-right:24px}
.receptionist{display:flex; gap:12px; align-items:flex-start}
.receptionist-img{width:84px; height:84px; object-fit:cover; border-radius:8px; border:1px solid var(--line)}
.speech{flex:1; border:1px solid var(--line); border-radius:8px; padding:12px; background:#fafafa}
.divider{height:1px; background:var(--line); margin:16px 0}
.tips h3{margin:0 0 8px 0; font-size:14px}
.tips ol{margin:0; padding-left:18px; color:var(--ink2); font-size:13px}

/* Content panels */
.content{min-height:60vh}
.panel{display:none}
.panel.active{display:block; animation:fade .2s ease-out}
@keyframes fade{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:translateY(0)}}

/* Character grid */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:18px;
}
.card{
  position:relative; 
  border:1px solid #2a2a2a; 
  background:#111; 
  color:#fff; 
  border-radius:8px; 
  overflow:hidden;
  display:flex; 
  flex-direction:column;
}
.card::before{content:""; position:absolute; inset:8px 8px auto 8px; height:22px; border-radius:4px; background:#2b2b2b; box-shadow:inset 0 1px 0 #3a3a3a}
.card:hover{transform:translateY(-2px)}
.card img{
  width:100%; 
  aspect-ratio:1/1; 
  object-fit:cover; 
  display:block; 
  filter:saturate(0.95);
  cursor: pointer;
}
.card .label{background:#1a1a1a; border-top:1px solid #2a2a2a; padding:10px 12px}
.card .title{font-weight:700; font-size:14px; margin:0 0 4px 0}
.card .file{display:none}

/* Prompt screen */
.selected-bar{display:flex; gap:12px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:10px; margin-bottom:12px}
.selected-bar img{width:72px; height:72px; object-fit:cover; border-radius:8px; border:1px solid var(--line)}
.hint{margin:6px 0 0 0; color:var(--ink2); font-size:12px}
.edit-form textarea{width:100%; border:1px solid var(--line); border-radius:10px; padding:12px; font-size:14px; resize:vertical; outline:none}
.row{display:flex; gap:8px; align-items:center; margin-top:10px}

/* Buttons */
.btn{appearance:none; border:1px solid var(--ink); background:#fff; color:var(--ink); padding:10px 14px; border-radius:999px; font-weight:600; cursor:pointer}
.btn:hover{filter:contrast(0.95)}
.btn.primary{background:#000; color:#fff; border-color:#000}
.btn.subtle{border-color:#ddd; color:#222}

/* Loading */
.loading{position:relative; text-align:center}
.loading-characters {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}
.character-wrap {
  text-align: center;
}
.character-wrap img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
  background-color: var(--line);
}
.character-wrap p {
  margin: 8px 0 0 0;
  font-weight: 600;
  font-size: 14px;
}
.gpt-character {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease-out;
}
.gpt-character.visible {
  opacity: 1;
  transform: scale(1);
}
#loadingBarber.talking, #loadingGpt.talking {
  animation: reception-talk 0.9s ease-in-out infinite;
  transform-origin: 50% 80%;
  filter:brightness(1.03);
}

.chair{width:54px; height:54px; border:2px solid var(--ink); border-radius:6px; position:relative; animation:breath 1.2s ease-in-out infinite}
.chair::before,.chair::after{content:""; position:absolute; background:var(--ink)}
.chair::before{width:60%; height:2px; left:20%; bottom:-6px}
.chair::after{width:6px; height:16px; left:calc(50% - 3px); bottom:-22px; border-radius:3px}
@keyframes breath{0%{transform:scale(1)} 50%{transform:scale(1.06)} 100%{transform:scale(1)}}
.loading-text{margin:0; font-weight:700}
.progress-wrap{width:100%; max-width:420px; height:8px; background:#f4f4f4; border-radius:999px; overflow:hidden; border:1px solid var(--line); margin: 0 auto 8px;}
.progress{height:100%; background:#000; width:0%}
.loading-sub{margin:0; color:var(--ink2); font-size:12px}

/* Result */
.result-wrap{display:grid; gap:16px}
.result-images{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px}
.result-images figure{margin:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff}
.result-images img{display:block; width:100%; height:auto}
figcaption{padding:8px 10px; font-size:12px; color:var(--ink2); border-top:1px solid var(--line)}

/* Footer */
.shop-footer{
  border-top:1px solid var(--line);
  padding:16px;
  text-align:center;
  color:var(--ink2);
  font-size:12px;
  background-image: url("https://images.unsplash.com/photo-1580234810449-3183559403d1?q=80&w=2071&auto=format&fit=crop");
  background-size: 300px;
}

/* Reception Prompt */
.reception-prompt{display:none; margin-bottom:14px; align-items:center; justify-content:center}
.reception-prompt.visible{display:flex}
.reception-desk{background:linear-gradient(#f3efe9,#e8dfd3); border-radius:12px; padding:12px; display:flex; align-items:end; justify-content:center; box-shadow:0 6px 18px rgba(0,0,0,.12); border:1px solid rgba(0,0,0,.06)}
.receptionist-large{width:120px; height:120px; object-fit:cover; border-radius:12px; border:2px solid #e6e0d9; transform:translateY(-8px); box-shadow:0 6px 18px rgba(0,0,0,.12)}
.receptionist-large.talking,
.receptionist-img.talking{
  transform-origin:50% 80%;
  animation:reception-talk 0.9s ease-in-out infinite;
  filter:brightness(1.03);
}
@keyframes reception-talk{
  0%{transform:translateY(-6px) rotate(-1deg) scale(1)}
  50%{transform:translateY(-2px) rotate(1deg) scale(1.01)}
  100%{transform:translateY(-6px) rotate(-1deg) scale(1)}
}

/* Responsive */
@media (max-width: 960px){
  .layout{grid-template-columns:1fr}
  .reception{border-right:none; padding-right:0; order:2}
  .content{order:1}
  .reception-prompt{justify-content:center}
  .receptionist-large{width:96px; height:96px}
}
/* ...existing styles... */
.hide-reception .reception{display:none}
.hide-reception .layout{grid-template-columns:1fr}
/* ...existing styles... */
.scissors{position:relative; width:220px; height:24px}
.scissors .blade{display:inline-block; width:44px; height:6px; background:#111; border-radius:3px; transform-origin:left center}
.scissors .right{transform:rotate(25deg)}
.scissors .left{transform:rotate(-25deg); margin-right:6px}
.scissors{animation:scissor-walk 1.2s linear infinite}
@keyframes scissor-walk{0%{transform:translateX(-90px)}100%{transform:translateX(90px)}}
/* ...existing styles... */
.mirror{position:relative; border:12px solid #3b2e22; border-radius:14px; background:#000; box-shadow:0 6px 18px rgba(0,0,0,.25), inset 0 0 0 2px #927457}
.mirror::after{content:""; position:absolute; inset:0; background:linear-gradient(120deg, rgba(255,255,255,.18), transparent 30%); pointer-events:none; mix-blend-mode:screen}
.mirror img{display:block; width:100%}
.mirror.flip{animation:mirrorFlip .7s ease-out forwards}
@keyframes mirrorFlip{0%{transform:rotateY(90deg); opacity:0}100%{transform:rotateY(0deg); opacity:1}}

/* Gallery */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gallery-overlay.visible {
  display: flex;
}
.gallery-content {
  position: relative;
  max-width: 60vh;
  width: 100%;
  text-align: center;
}
.gallery-content img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #fff;
  background: #222;
}
.gallery-info {
  margin-top: 16px;
  color: #fff;
}
.gallery-info h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
}
.gallery-info p {
    margin: 0;
    font-size: 14px;
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    max-width: 100%;
    line-height: 1.5;
    font-style: italic;
}
.gallery-nav, .gallery-close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav:hover, .gallery-close:hover {
  background: rgba(255,255,255,0.2);
}
.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }
.gallery-close {
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  transform: none;
}
@media (max-width: 768px) {
  .gallery-nav.prev { left: 5px; }
  .gallery-nav.next { right: 5px; }
  .gallery-content { max-width: 80vw; }
}

/* Waiting Room */
.waiting-room-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
  color: #fff;
}
.waiting-room-overlay.visible {
  display: flex;
  animation: fade .3s ease-out;
}
.waiting-room-content {
  text-align: center;
  width: 100%;
  max-width: 900px;
}
.waiting-room-content h2 {
  margin: 0;
  font-size: 24px;
}
.waiting-room-content p {
  margin: 4px 0 24px 0;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.waiting-room-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  cursor: pointer;
}
.waiting-room-close:hover {
  background: rgba(255,255,255,0.2);
}
.wandering-area {
  position: relative;
  width: 100%;
  height: 60vh;
  max-height: 500px;
  border-radius: 12px;
  background-image: url("https://images.unsplash.com/photo-1599355812135-22b071379cb3?q=80&w=1974&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
}
.wanderer {
  position: absolute;
  width: 100px;
  height: 100px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  animation-name: wander;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-direction: alternate;
  cursor: pointer;
}

@keyframes wander {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, 30px) scale(1.05); }
  50% { transform: translate(-10px, -20px) scale(0.95); }
  75% { transform: translate(30px, -10px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

.brand-tag {
  transition: opacity 0.4s ease-in-out;
}