/* ==========================================================================
   KODARI LiveTranslate - Premium Stylesheet
   Modern Glassmorphism, Dual Split View, 180deg Flip, Responsive Layout
   ========================================================================== */

:root {
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-card: rgba(22, 30, 46, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.5);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-user: #6366f1;
  --accent-user-glow: rgba(99, 102, 241, 0.35);
  --accent-partner: #ec4899;
  --accent-partner-glow: rgba(236, 72, 153, 0.35);
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  --shadow-glow-user: 0 0 25px var(--accent-user-glow);
  --shadow-glow-partner: 0 0 25px var(--accent-partner-glow);

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.05) 0px, transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ================= Header ================= */
.app-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.brand-info h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-info h1 span.pro-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #ec4899, #f59e0b);
  color: #fff;
  text-transform: uppercase;
}

.brand-info p {
  font-size: 11px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 16px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.icon-btn.active {
  background: var(--accent-user);
  border-color: transparent;
  color: #fff;
}

/* ================= View Mode Tabs ================= */
.mode-bar {
  display: flex;
  justify-content: center;
  padding: 10px 16px 0;
}

.segmented-control {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.segment-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.segment-btn.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

/* ================= Main Container ================= */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* ================= Dual Split View ================= */
.dual-view-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.panel-card {
  flex: 1;
  min-height: 220px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.partner-panel {
  border-top: 3px solid var(--accent-partner);
}

.partner-panel.rotated-180 {
  transform: rotate(180deg);
  transform-origin: center center;
}

.user-panel {
  border-bottom: 3px solid var(--accent-user);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lang-selector-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-selector-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition-smooth);
}

.mini-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.mini-btn.active {
  color: #fff;
  background: var(--accent-partner);
}

/* Panel Body & Transcript Text */
.panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.transcript-text {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-main);
  font-weight: 600;
  min-height: 60px;
  max-height: 160px;
  overflow-y: auto;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.transcript-text.placeholder {
  color: var(--text-dim);
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
}


.interim-text {
  color: var(--text-muted);
  font-weight: 400;
}

.translation-result {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 17px;
  font-weight: 600;
  color: #38bdf8;
  word-break: break-word;
}

/* Panel Footer & Actions */
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.speaker-status {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.status-dot.active {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Mic Action Buttons */
.mic-btn-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
}

.mic-btn-user {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.mic-btn-partner {
  background: linear-gradient(135deg, #ec4899, #db2777);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.mic-btn:hover {
  transform: scale(1.06);
}

.mic-btn.listening {
  animation: pulse-mic 1.2s infinite;
}

.mic-btn-user.listening {
  background: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.mic-btn-partner.listening {
  background: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

@keyframes pulse-mic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Center Swap Control Bar */
.center-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: -6px 0;
  z-index: 10;
}

.swap-languages-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.swap-languages-btn:hover {
  background: var(--accent-user);
  border-color: transparent;
  transform: rotate(180deg) scale(1.1);
}

/* Canvas Sound Wave Visualizer */
.visualizer-canvas {
  width: 100%;
  height: 40px;
  display: block;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

/* ================= Chat Transcript View ================= */
.chat-view-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  height: calc(100vh - 160px);
}

.chat-history-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble-card {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  line-height: 1.45;
  box-shadow: var(--shadow-card);
  animation: fadeInBubble 0.25s ease-out;
  position: relative;
}

@keyframes fadeInBubble {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.35));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-bottom-right-radius: 4px;
}

.chat-bubble-partner {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(219, 39, 119, 0.35));
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-bottom-left-radius: 4px;
}

.bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.bubble-origin-text {
  font-weight: 500;
  color: var(--text-main);
}

.bubble-translated-text {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: #38bdf8;
}

.bubble-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.bubble-action-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.bubble-action-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 10px 6px 16px;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.chat-send-btn {
  background: var(--accent-user);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

/* ================= Modals ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Language Search & Grid */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.popular-pairs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.pair-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pair-badge:hover {
  background: var(--accent-user);
  color: #fff;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.lang-item-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.lang-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.lang-item-btn.selected {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-user);
  color: #818cf8;
  font-weight: 600;
}

/* Settings Form Controls */
.setting-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.setting-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.setting-input:focus {
  border-color: var(--accent-user);
}

.setting-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-user);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast-msg {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.hidden {
  display: none !important;
}

/* ================= Model 2: Smart Auto Interpreter Styles ================= */
.auto-interpreter-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.auto-pair-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  backdrop-filter: blur(12px);
}

.auto-swap-badge {
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.auto-radar-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 12px;
}

.radar-pulse-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-smooth);
}

.radar-pulse-ring.pulsing {
  opacity: 1;
  animation: radarPulse 1.8s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes radarPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.radar-mic-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  transition: var(--transition-smooth);
}

.radar-mic-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6);
}

.radar-mic-btn.active {
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
  animation: buttonHeartbeat 1.5s infinite;
}

@keyframes buttonHeartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.auto-status-indicator {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auto-live-subtitle {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interim-bubble {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: toastIn 0.2s ease-out;
}

.interim-bubble.translating {
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
}

.interim-bubble .pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ec4899;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  from { transform: scale(0.8); opacity: 0.5; }
  to { transform: scale(1.3); opacity: 1; }
}

.auto-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 4px;
}

.auto-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.auto-empty-state {
  text-align: center;
  padding: 36px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-dim);
}

.auto-empty-state .empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.auto-empty-state p {
  font-size: 13px;
  line-height: 1.6;
}

.auto-interpret-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.3s ease-out;
  transition: var(--transition-smooth);
}

.auto-interpret-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.auto-interpret-card.card-lang-a {
  border-left: 4px solid var(--accent-user);
}

.auto-interpret-card.card-lang-b {
  border-left: 4px solid var(--accent-partner);
}

.auto-interpret-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.auto-interpret-card .card-route {
  font-weight: 700;
  color: #c7d2fe;
}

.auto-interpret-card .card-time {
  color: var(--text-dim);
}

.auto-interpret-card .card-origin {
  font-size: 15px;
  color: var(--text-muted);
}

.auto-interpret-card .card-translated {
  font-size: 18px;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1.4;
  word-break: break-word;
}

.auto-interpret-card .card-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.auto-stream-header .mini-btn,
.auto-interpret-card .card-actions .mini-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  height: auto;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.auto-stream-header .mini-btn:hover,
.auto-interpret-card .card-actions .mini-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .app-header {
    padding: 0 14px;
  }
  .brand-info h1 {
    font-size: 16px;
  }
  .main-container {
    padding: 8px 10px;
  }
  .panel-card {
    min-height: 180px;
    padding: 12px;
  }
  .transcript-text {
    font-size: 16px;
  }
  .translation-result {
    font-size: 15px;
  }
  .mic-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}
