/* ==================== DESIGN SYSTEM & BASE STYLES ==================== */
:root {
  --font-main: 'Plus Jakarta Sans', sans-serif;
  
  /* Color Palette */
  --bg-primary: #08080C;
  --bg-secondary: #0F0F16;
  --bg-card: #151522;
  --bg-input: #1D1D2F;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.2);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  /* Brand Gradients */
  --primary-glow: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  --accent-color: #8B5CF6;
  --accent-secondary: #EC4899;
  
  /* Status Colors */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px 0 rgba(139, 92, 246, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: #030305;
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.card-glow {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

/* ==================== BUTTONS & INPUTS ==================== */
.btn {
  font-family: var(--font-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-glow);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
  opacity: 0.95;
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
}

.btn-large {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
}

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.app-phone-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 20px;
}

.phone-screen {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 90vh;
  max-height: 860px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(139, 92, 246, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Phone Status Bar */
.phone-status-bar {
  display: none !important;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battery-icon {
  width: 20px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  position: relative;
  padding: 1px;
}

.battery-icon::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--success);
  border-radius: 1px;
}

.battery-icon::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 0 1px 1px 0;
}

/* ==================== ONBOARDING / WIZARD ==================== */
.onboarding-screen {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.glow-bg {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
  pointer-events: none;
}

.wizard-header {
  padding: 16px 20px 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.wizard-title-wrap h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-right: 8px;
}

.wizard-step-label {
  font-size: 0.7rem;
  color: var(--accent-color);
  font-weight: 700;
  background-color: rgba(139, 92, 246, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

/* Progress track */
.wizard-progress-track {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  background-color: rgba(255, 255, 255, 0.01);
  z-index: 2;
}

.wizard-progress-track::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 35px;
  right: 35px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.wizard-progress-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wizard-progress-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.wizard-progress-step label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.wizard-progress-step.active span {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.wizard-progress-step.active label {
  color: var(--text-primary);
}

.wizard-progress-step.completed span {
  background-color: var(--success);
  border-color: var(--success);
  color: white;
}

.wizard-progress-step.completed label {
  color: var(--success);
}

/* Wizard Body */
.wizard-body {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  z-index: 2;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 20px;
}

/* ==================== STEP 1: PHOTO STYLES ==================== */
.drop-zone {
  border: 2px dashed rgba(139, 92, 246, 0.3);
  background-color: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-md);
  padding: 30px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.drop-zone.dragover, .drop-zone:hover {
  background-color: rgba(139, 92, 246, 0.05);
  border-color: var(--accent-color);
}

.drop-zone-placeholder svg {
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.drop-zone:hover svg {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.drop-zone-placeholder .primary-text {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.drop-zone-placeholder .primary-text span {
  color: var(--accent-color);
  text-decoration: underline;
}

.drop-zone-placeholder .secondary-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.preview-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.camera-capture-option {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.or-separator {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.webcam-container {
  margin-top: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: black;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#webcam-video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.webcam-controls {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
}

#switch-camera-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.hidden-input {
  display: none !important;
}

/* ==================== STEP 2: VOICE STYLES ==================== */
.script-prompt-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.badge-accent {
  background-color: rgba(236, 72, 153, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(236, 72, 153, 0.15);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

#reading-script-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-primary);
  font-style: italic;
}

.voice-tab-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background-color: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.recorder-card {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visualizer-wrapper {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px;
  margin-bottom: 12px;
}

#voice-wave-canvas {
  width: 100%;
  height: 50px;
  display: block;
}

.recorder-status {
  text-align: center;
  margin-bottom: 12px;
}

.timer-text {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: monospace;
  color: white;
  display: block;
}

.instruction-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.recorder-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.record-btn-main {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.15);
  border: 2px solid var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.record-icon-inner {
  width: 16px;
  height: 16px;
  background-color: var(--danger);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.record-btn-main.recording {
  animation: pulse-red-mobile 1.5s infinite;
}

.record-btn-main.recording .record-icon-inner {
  border-radius: 3px;
  width: 12px;
  height: 12px;
}

@keyframes pulse-red-mobile {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duration-error {
  font-size: 0.72rem;
  color: var(--danger);
  margin-top: 6px;
  text-align: center;
}

.audio-file-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.voice-file-name-txt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== STEP 3: GOOGLE ACCOUNT STYLES ==================== */
.google-onboarding-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  width: 100%;
}

.google-btn {
  width: 100%;
  background-color: white;
  color: #1F2937;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  font-family: var(--font-main);
}

.google-btn:hover {
  background-color: #F9FAFB;
}

.connected-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  width: 100%;
}

.google-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-input);
}

.google-user-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.google-user-info strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.google-user-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.badge-success {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 10px;
}

/* ==================== STEP 4: PHONE NUMBER STYLES ==================== */
.phone-input-card {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: var(--transition-smooth);
}

.phone-input-wrapper:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

.phone-prefix {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-right: 8px;
}

#cell-phone-input {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  flex-grow: 1;
}

.phone-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 10px;
}

/* ==================== STEP 5: VERIFICATION STYLES ==================== */
.verification-status-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.verification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator-dot.pending {
  background-color: var(--warning);
  box-shadow: 0 0 6px var(--warning);
  animation: pulse-yellow 1.2s infinite;
}

.status-indicator-dot.success {
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
}

@keyframes pulse-yellow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.verification-label-wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.verification-label-wrap strong {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.contact-dest {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.verify-status-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.verify-status-text.success-txt {
  color: var(--success);
}

/* ==================== WIZARD FOOTER ==================== */
.wizard-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.01);
  z-index: 2;
}

/* ==================== GOOGLE AUTH SIM DIALOG ==================== */
.google-auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-dialog {
  width: 100%;
  max-width: 320px;
  background-color: white;
  border-radius: var(--radius-md);
  color: #202124;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px;
}

.auth-prompt {
  font-size: 0.8rem;
  color: #5f6368;
  margin-bottom: 14px;
}

.accounts-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #dadce0;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid #dadce0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.account-row:hover {
  background-color: #f8f9fa;
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #dadce0;
}

.auth-details {
  display: flex;
  flex-direction: column;
}

.auth-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3c4043;
}

.auth-email {
  font-size: 0.68rem;
  color: #5f6368;
}

.account-row-use-another {
  font-size: 0.78rem;
  color: #1a73e8;
  font-weight: 500;
  padding: 12px 2px;
  cursor: pointer;
}

/* ==================== SIMULATED NOTIFICATION TOASTS ==================== */
.simulated-notification-area {
  position: absolute;
  top: 48px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast-notification {
  background-color: rgba(21, 21, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.toast-notification.slide-in {
  animation: slide-in-top 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-notification.slide-out {
  animation: slide-out-top 0.3s ease-in forwards;
}

@keyframes slide-in-top {
  0% { transform: translateY(-40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slide-out-top {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-40px); opacity: 0; }
}

.toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.toast-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.toast-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-grow: 1;
}

.toast-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.toast-body {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ==================== DASHBOARD SCREEN ==================== */
.dashboard-screen {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
}

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

.main-header h1 {
  font-size: 1.25rem;
  font-weight: 800;
}

.header-sub {
  color: var(--text-secondary);
  font-size: 0.78rem;
  margin-top: 2px;
}

.logout-btn-header {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.logout-btn-header:hover {
  color: var(--danger);
  background-color: var(--danger-bg);
}

.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.status-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

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

.status-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.badge-error {
  background-color: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.badge-warning {
  background-color: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.clone-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-grow: 1;
  padding: 10px 0;
}

.clone-loader-wrap {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.spinner {
  width: 100%;
  height: 100%;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.clone-state-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.clone-state-content p {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 16px;
  max-width: 280px;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--primary-glow);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.processing-log {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--accent-color);
  opacity: 0.8;
  height: 16px;
}

/* Active Clone Details */
.active-clone-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  width: 100%;
  text-align: left;
}

.clone-visual-preview {
  position: relative;
}

.clone-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.avatar-check-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background-color: var(--success);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-card);
}

.clone-meta-details h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.meta-tag-list {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.meta-tag {
  font-size: 0.65rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.play-btn:hover {
  background-color: rgba(139, 92, 246, 0.18);
}

.card-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 12px 0;
}

.clone-actions-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.stat-card {
  padding: 16px;
}

.stat-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.65rem;
.dashboard-stat-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.tier-val {
  color: var(--accent-color) !important;
}

.welcome-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.membership-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
}

.waveform-overlay {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: flex-end;
  height: 30px;
}

.wave-bar {
  width: 4px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 2px;
  animation: bounce 0.6s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; height: 14px; }
.wave-bar:nth-child(3) { animation-delay: 0.25s; height: 22px; }
.wave-bar:nth-child(4) { animation-delay: 0.15s; height: 12px; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; height: 6px; }

@keyframes bounce {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1.3); }
}

/* ==================== RESPONSIVE RESPONSIVENESS ==================== */
@media (max-width: 500px) {
  .app-phone-container {
    padding: 0;
  }
  
  .phone-screen {
    max-width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
  }
}
