* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  height: 100vh;
  overflow: hidden;
  background: #1a0a00;
}

/* â”€â”€â”€ WELCOME SCREEN â”€â”€â”€ */
.welcome-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #1a0a00;
}

.welcome-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 16px 24px;
  background: #ffffff;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.welcome-hero {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #c95d20 0%, #6b2a00 50%, #1a0a00 100%);
}

.yele-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 92%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
}

.welcome-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 24px 36px;
  background: linear-gradient(to top, rgba(26,10,0,0.95) 0%, rgba(26,10,0,0.7) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.welcome-text {
  text-align: center;
  color: white;
}

.welcome-text h1 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
}

.welcome-text h1.bold {
  font-weight: 700;
  font-size: 32px;
}

.welcome-text p {
  margin-top: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Lang selector â€” fond sombre (welcome screen) */
.lang-selector {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 3px;
  background: rgba(255,255,255,0.1);
}

.lang-btn {
  padding: 5px 14px;
  border: none;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.lang-btn.active {
  background: #ffffff;
  color: #1a0a00;
  font-weight: 600;
}

.lang-btn:hover:not(.active) {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* Lang selector â€” fond blanc (session screen) */
.session-header .lang-selector {
  border: 1px solid #d4cfc4;
  background: #f5f1eb;
}

.session-header .lang-btn {
  color: #555;
}

.session-header .lang-btn.active {
  background: #ffffff;
  color: #1a0a00;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.session-header .lang-btn:hover:not(.active) {
  background: #ece8e0;
  color: #1a0a00;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cta-start {
  padding: 18px 48px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #e8640a, #c95d20);
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232, 100, 10, 0.4);
  transition: all 0.3s;
  animation: pulse-start 2s ease-in-out infinite;
}

.cta-start:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(232,100,10,0.6); }
.cta-start:disabled { opacity: 0.6; cursor: not-allowed; animation: none; }

@keyframes pulse-start {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* â”€â”€â”€ SESSION SCREEN â”€â”€â”€ */
.session-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #000;
}

.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e5e0d8;
  flex-shrink: 0;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b6661;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9b9791;
  transition: background 0.3s;
}

.status-dot.connected { background: #10b981; }

.header-btn {
  padding: 6px 14px;
  border: 1px solid #d4cfc4;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #1a1a1a;
  transition: all 0.2s;
}

.header-btn:hover { background: #f5f1eb; }

.video-container {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-container video {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.input-container {
  background: #ffffff;
  border-top: 1px solid #e5e0d8;
  padding: 16px 20px;
  flex-shrink: 0;
}

.input-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.input-field {
  width: 100%;
  padding: 14px 80px 14px 18px;
  border: 1px solid #d4cfc4;
  border-radius: 12px;
  font-size: 15px;
  resize: none;
  font-family: inherit;
  line-height: 1.5;
  background: #fafaf9;
  transition: all 0.2s;
  min-height: 50px;
  max-height: 200px;
}

.input-field:focus {
  outline: none;
  border-color: #e8640a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,100,10,0.1);
}

.input-buttons {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #e8640a;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.send-btn:hover { background: #d45a08; }
.send-btn.secondary { background: #6b6661; }
.send-btn.secondary:hover { background: #5a5550; }

.send-btn.recording {
  background: #ef4444;
  animation: pulse-btn 1.5s ease-in-out infinite;
}

@keyframes pulse-btn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}