/* ============================================
   ASSISTENTE INTELIGENTE - STYLE.CSS
   Visual: JARVIS / Futurista / Neon Blue
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ============ VARIABLES ============ */
:root {
  --black: #000000;
  --dark-1: #030508;
  --dark-2: #060c12;
  --dark-3: #0a1520;
  --neon: #00d4ff;
  --neon-dim: #0099bb;
  --neon-bright: #33e8ff;
  --neon-glow: rgba(0, 212, 255, 0.4);
  --neon-glow-sm: rgba(0, 212, 255, 0.15);
  --white: #ffffff;
  --text-white: #e0f7ff;
  --text-dim: #4a7a8a;
  --danger: #ff3355;
  --success: #00ff88;
  --warning: #ffaa00;
  --border: rgba(0, 212, 255, 0.3);
  --border-bright: rgba(0, 212, 255, 0.7);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text-white);
  height: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--dark-1); }
::-webkit-scrollbar-thumb { background: var(--neon-dim); border-radius: 2px; }

/* ============ BG ANIMATED ============ */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridPulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.bg-radial {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============ LOGIN SCREEN ============ */
#login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: var(--black);
  padding: 24px;
}

.login-logo-wrap {
  position: relative;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.login-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--neon)) drop-shadow(0 0 40px rgba(0,212,255,0.5));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 15px var(--neon)) drop-shadow(0 0 35px rgba(0,212,255,0.4)); }
  50% { filter: drop-shadow(0 0 30px var(--neon)) drop-shadow(0 0 60px rgba(0,212,255,0.7)); }
}

.login-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--neon);
  text-align: center;
  margin-bottom: 6px;
  text-shadow: 0 0 20px var(--neon);
}

.login-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.login-form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-wrap {
  position: relative;
}

.input-wrap label {
  display: block;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--neon-dim);
  margin-bottom: 6px;
}

.input-wrap input {
  width: 100%;
  background: rgba(0,212,255,0.05);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 4px;
  outline: none;
  transition: var(--transition);
  -webkit-text-fill-color: var(--white);
}

.input-wrap input:focus {
  border-color: var(--neon);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 0 1px var(--neon), 0 0 20px var(--neon-glow);
}

.btn-login {
  background: var(--neon);
  color: var(--black);
  border: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  margin-top: 6px;
  box-shadow: 0 0 20px var(--neon-glow);
}

.btn-login:hover, .btn-login:active {
  background: var(--neon-bright);
  box-shadow: 0 0 30px var(--neon-glow), 0 0 60px rgba(0,212,255,0.3);
  transform: scale(1.01);
}

.login-error {
  color: var(--danger);
  font-size: 12px;
  text-align: center;
  min-height: 16px;
  font-family: var(--font-body);
  letter-spacing: 1px;
}

/* ============ MAIN APP ============ */
#app {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  z-index: 10;
  overflow: hidden;
}

#app.active { display: flex; }

/* ============ HEADER ============ */
.app-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 20;
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--neon));
  animation: logoPulse 3s ease-in-out infinite;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.header-name {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
}

.header-status {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: blink 2s ease-in-out infinite;
}

.status-dot.offline { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.status-dot.listening { background: var(--neon); box-shadow: 0 0 12px var(--neon); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--neon);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.btn-icon:hover, .btn-icon:active {
  border-color: var(--neon);
  background: var(--neon-glow-sm);
  box-shadow: 0 0 10px var(--neon-glow);
}

/* ============ VOICE STATUS BAR ============ */
.voice-bar {
  flex-shrink: 0;
  background: rgba(0,212,255,0.05);
  border-bottom: 1px solid var(--border);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}

.voice-wave span {
  display: block;
  width: 3px;
  background: var(--neon-dim);
  border-radius: 2px;
  animation: waveIdle 1.5s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 16px; animation-delay: 0.15s; }
.voice-wave span:nth-child(5) { height: 10px; animation-delay: 0.05s; }

@keyframes waveIdle {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 0.8; }
}

.voice-wave.active span {
  background: var(--neon);
  animation: waveActive 0.4s ease-in-out infinite alternate;
}

.voice-wave.active span:nth-child(1) { animation-delay: 0s; }
.voice-wave.active span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave.active span:nth-child(3) { animation-delay: 0.05s; }
.voice-wave.active span:nth-child(4) { animation-delay: 0.15s; }
.voice-wave.active span:nth-child(5) { animation-delay: 0.08s; }

@keyframes waveActive {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1.5); }
}

.voice-text {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-text.active { color: var(--neon); text-shadow: 0 0 8px var(--neon); }

/* ============ TABS ============ */
.tabs-nav {
  flex-shrink: 0;
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.9);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  min-width: 60px;
  padding: 10px 4px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.tab-btn .tab-icon { font-size: 18px; }

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transition: var(--transition);
  box-shadow: 0 0 8px var(--neon);
}

.tab-btn.active {
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon);
}

.tab-btn.active::after { transform: scaleX(1); }

/* ============ CONTENT AREA ============ */
.content-area {
  flex: 1;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.tab-panel {
  display: none;
  padding: 14px;
  min-height: 100%;
}

.tab-panel.active { display: block; }

/* ============ HOME / JARVIS PANEL ============ */
.jarvis-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.jarvis-ring {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ring-outer {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0,212,255,0.2);
  border-radius: 50%;
  animation: rotateRing 10s linear infinite;
}

.ring-mid {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(0,212,255,0.3);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: rotateRing 6s linear infinite reverse;
}

.ring-inner {
  position: absolute;
  inset: 24px;
  border: 2px solid rgba(0,212,255,0.4);
  border-left-color: var(--neon);
  border-radius: 50%;
  animation: rotateRing 4s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.jarvis-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--neon)) drop-shadow(0 0 40px rgba(0,212,255,0.5));
  animation: logoPulse 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.jarvis-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon), 0 0 40px rgba(0,212,255,0.5);
  text-align: center;
  margin-bottom: 4px;
}

.jarvis-mode {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 20px;
}

/* Response bubble */
.response-bubble {
  background: rgba(0,212,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 16px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.response-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.response-text.typing::after {
  content: '▊';
  animation: blink 0.7s infinite;
  color: var(--neon);
}

/* Quick stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

.stat-card {
  background: rgba(0,212,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 8px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:active {
  border-color: var(--neon);
  background: var(--neon-glow-sm);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
  display: block;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}

/* ============ SECTION TITLES ============ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--neon);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon);
}

/* ============ BUTTONS ============ */
.btn {
  background: var(--neon);
  color: var(--black);
  border: none;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  box-shadow: 0 0 12px var(--neon-glow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 20px var(--neon-glow);
}

.btn-outline {
  background: transparent;
  color: var(--neon);
  border: 1px solid var(--neon);
  box-shadow: 0 0 8px var(--neon-glow);
}

.btn-outline:active {
  background: var(--neon-glow-sm);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 9px;
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  box-shadow: 0 0 12px rgba(255,51,85,0.4);
}

.btn-success {
  background: var(--success);
  color: var(--black);
  box-shadow: 0 0 12px rgba(0,255,136,0.3);
}

/* ============ CARDS ============ */
.card {
  background: rgba(0,212,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:active::before, .card.active::before { opacity: 1; }
.card.active {
  border-color: var(--neon);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 20px var(--neon-glow-sm);
}

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

.card-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--neon);
  letter-spacing: 1px;
}

.card-badge {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid;
}

.badge-pending { color: var(--warning); border-color: var(--warning); }
.badge-done { color: var(--success); border-color: var(--success); }
.badge-active { color: var(--neon); border-color: var(--neon); }
.badge-blocked { color: var(--danger); border-color: var(--danger); }

.card-info {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-white);
  line-height: 1.5;
}

.card-meta {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ============ FORMS ============ */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--neon-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,212,255,0.3);
  color: #111;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: 4px;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ============ AGENDA ============ */
.agenda-date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,212,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.agenda-date {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon);
}

/* ============ GPS PANEL ============ */
.gps-info-card {
  background: rgba(0,212,255,0.06);
  border: 1px solid var(--neon);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 0 20px var(--neon-glow-sm), inset 0 0 30px rgba(0,212,255,0.03);
}

.gps-coords {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--neon-dim);
  letter-spacing: 1px;
  margin-top: 6px;
}

.proximity-meter {
  margin-top: 14px;
}

.proximity-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.proximity-bar-wrap {
  background: rgba(0,212,255,0.1);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.proximity-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-dim), var(--neon));
  border-radius: 4px;
  transition: width 1s ease;
  box-shadow: 0 0 10px var(--neon-glow);
}

/* ============ PLAYER ============ */
.player-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,212,255,0.02));
  border: 1px solid var(--neon);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 0 30px var(--neon-glow-sm);
}

.player-art {
  width: 80px;
  height: 80px;
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 14px;
  box-shadow: 0 0 20px var(--neon-glow-sm);
  animation: playerSpin 8s linear infinite;
  animation-play-state: paused;
}

.player-art.playing { animation-play-state: running; }

@keyframes playerSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.player-track-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--neon);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.player-artist {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.player-progress-wrap {
  position: relative;
  height: 4px;
  background: rgba(0,212,255,0.1);
  border-radius: 2px;
  margin-bottom: 14px;
  cursor: pointer;
}

.player-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-dim), var(--neon));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-glow);
  transition: width 0.5s linear;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.player-btn {
  background: transparent;
  border: none;
  color: var(--neon);
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
  padding: 6px;
}

.player-btn.main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--neon-glow);
}

.player-btn:active {
  transform: scale(0.9);
  text-shadow: 0 0 15px var(--neon);
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  width: 100%;
  padding: 20px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 2px solid var(--neon);
  box-shadow: 0 -10px 40px var(--neon-glow-sm);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
  margin-bottom: 16px;
}

/* ============ NOTIFICATION ============ */
.notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--neon);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 10px 16px;
  text-align: center;
  z-index: 500;
  transform: translateY(-100%);
  transition: transform 0.3s;
}

.notification.show { transform: translateY(0); }
.notification.error { background: var(--danger); color: var(--white); }
.notification.success { background: var(--success); }
.notification.warning { background: var(--warning); color: var(--black); }

/* ============ CONFIRM DIALOG ============ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-overlay.active { display: flex; }

.confirm-box {
  background: var(--dark-2);
  border: 1px solid var(--neon);
  border-radius: 10px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 0 40px var(--neon-glow);
}

.confirm-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--neon);
  margin-bottom: 10px;
}

.confirm-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-white);
  margin-bottom: 20px;
  line-height: 1.5;
}

.confirm-btns {
  display: flex;
  gap: 10px;
}

.confirm-btns .btn { flex: 1; justify-content: center; }

/* ============ EMPTY STATE ============ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 14px;
  opacity: 0.3;
}

.empty-text {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

/* ============ FLOATING ACTION ============ */
.fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--neon);
  color: var(--black);
  border: none;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--neon-glow), 0 4px 15px rgba(0,0,0,0.5);
  cursor: pointer;
  z-index: 50;
  transition: var(--transition);
}

.fab:active { transform: scale(0.92); }

/* ============ LOADING SPINNER ============ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0,212,255,0.2);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* ============ LIST ============ */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  background: rgba(0,212,255,0.02);
  transition: var(--transition);
  cursor: pointer;
}

.list-item:active {
  border-color: var(--neon);
  background: var(--neon-glow-sm);
}

.list-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.list-content { flex: 1; min-width: 0; }

.list-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.list-right { flex-shrink: 0; }

/* ============ COMANDOS VOICE ============ */
.voice-commands-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.voice-cmd {
  background: rgba(0,212,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.voice-cmd:active {
  border-color: var(--neon);
  background: var(--neon-glow-sm);
  box-shadow: 0 0 10px var(--neon-glow);
}

.voice-cmd-text {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--neon);
  margin-bottom: 3px;
}

.voice-cmd-desc {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-dim);
}

/* ============ UTILITIES ============ */
.hidden { display: none !important; }
.text-neon { color: var(--neon); text-shadow: 0 0 8px var(--neon); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-dim { color: var(--text-dim); }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-14 { margin-bottom: 14px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* ============ SAFE AREA ============ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .tabs-nav { padding-bottom: env(safe-area-inset-bottom); }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease forwards; }

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px var(--neon-glow); }
  50% { box-shadow: 0 0 25px var(--neon-glow), 0 0 50px rgba(0,212,255,0.2); }
}

.glow-pulse { animation: glowPulse 2s ease-in-out infinite; }

/* Scan line effect */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), transparent);
  animation: scanDown 4s linear infinite;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

@keyframes scanDown {
  from { top: 0; }
  to { top: 100%; }
}

/* Controles rápidos do Jarvis */
.voice-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ── WhatsApp Suporte ───────────────────────────────────── */
.whatsapp-suporte {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  width: 36px;
  height: 36px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: white;
}
.whatsapp-suporte:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(37,211,102,0.7);
}
.whatsapp-suporte svg {
  width: 20px;
  height: 20px;
}

/* ── Mic hint ───────────────────────────────────────────── */
.mic-hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin: 8px 0 4px;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 20px;
}
.mic-hint strong {
  color: var(--neon);
}

/* ── Botão Falar ────────────────────────────────────────── */
.btn-falar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.05));
  border: 2px solid var(--neon);
  border-radius: 50px;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  min-width: 180px;
}
.btn-falar:active,
.btn-falar.gravando {
  background: linear-gradient(135deg, rgba(0,212,255,0.4), rgba(0,212,255,0.2));
  border-color: #fff;
  box-shadow: 0 0 30px rgba(0,212,255,0.6), 0 0 60px rgba(0,212,255,0.3);
  transform: scale(0.97);
}
.btn-falar-icon {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.15s;
}
.btn-falar.gravando .btn-falar-icon {
  animation: pulseIcon 0.6s infinite alternate;
}
@keyframes pulseIcon {
  from { transform: scale(1); }
  to   { transform: scale(1.25); }
}
.btn-falar-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--neon);
  white-space: nowrap;
}


/* Versão de teste: escuta automática por palavra-chave, sem botão de fala e sem player. */
.voice-actions-auto { display:flex; align-items:center; justify-content:center; }
.auto-listening-badge {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--neon);
  border: 1px solid var(--border);
  background: rgba(0,212,255,.08);
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ==========================================================
   AJUSTE MAURÍCIO - MODO BOTÃO CENTRAL / SEM WAKE WORD
   ========================================================== */
.scan-line { display: none !important; }
.header-logo, .login-logo { display: none !important; }
.header-logo-wrap { padding-left: 4px; }
.voice-bar-manual .voice-text { color: var(--neon); }
.jarvis-center { padding: 42px 14px 24px; }
.jarvis-ring, .ring-outer, .ring-mid, .ring-inner, .jarvis-logo { display: none !important; }

.jarvis-talk-button {
  position: relative;
  width: min(72vw, 330px);
  height: min(72vw, 330px);
  min-width: 230px;
  min-height: 230px;
  border-radius: 50%;
  border: 4px solid rgba(0, 212, 255, 0.95);
  background:
    radial-gradient(circle at 50% 42%, rgba(0,212,255,0.24) 0%, rgba(0,117,145,0.18) 34%, rgba(0,0,0,0.88) 72%),
    linear-gradient(145deg, rgba(0,212,255,0.16), rgba(0,0,0,0.9));
  color: var(--neon);
  cursor: pointer;
  outline: none;
  margin: 0 auto 34px;
  box-shadow:
    0 0 18px rgba(0,212,255,0.9),
    0 0 52px rgba(0,212,255,0.45),
    inset 0 0 30px rgba(0,212,255,0.18),
    inset 0 -22px 42px rgba(0,0,0,0.75);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.jarvis-talk-button::before,
.jarvis-talk-button::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.32);
  pointer-events: none;
}

.jarvis-talk-button::after {
  inset: 30px;
  border-color: rgba(0,212,255,0.18);
  box-shadow: inset 0 0 35px rgba(0,212,255,0.14);
}

.jarvis-talk-glow {
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 235deg, rgba(0,212,255,0.95) 270deg, transparent 315deg, transparent 360deg);
  animation: jarvisButtonSweep 3.4s linear infinite;
  opacity: .62;
}

.jarvis-talk-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,20,26,0.22), rgba(0,0,0,0.15));
}

.jarvis-mic-icon {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.85));
}

.jarvis-talk-main {
  font-family: var(--font-display);
  font-size: clamp(19px, 4.8vw, 31px);
  font-weight: 900;
  letter-spacing: 6px;
  text-shadow: 0 0 16px var(--neon), 0 0 35px rgba(0,212,255,0.55);
}

.jarvis-talk-sub {
  font-family: var(--font-display);
  font-size: clamp(14px, 3.6vw, 22px);
  letter-spacing: 5px;
  color: rgba(226,246,255,0.72);
}

.jarvis-talk-button:active,
.jarvis-talk-button.gravando {
  transform: scale(.965);
  border-color: #fff;
  box-shadow:
    0 0 22px rgba(255,255,255,0.85),
    0 0 72px rgba(0,212,255,0.78),
    inset 0 0 48px rgba(0,212,255,0.36),
    inset 0 -22px 45px rgba(0,0,0,0.7);
}

.jarvis-talk-button.gravando .jarvis-talk-glow { animation-duration: 1.1s; opacity: .92; }
.jarvis-talk-button.gravando .jarvis-mic-icon { animation: pulseIcon .55s infinite alternate; }

@keyframes jarvisButtonSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .jarvis-center { padding-top: 28px; }
  .jarvis-talk-button {
    width: min(82vw, 300px);
    height: min(82vw, 300px);
    min-width: 220px;
    min-height: 220px;
  }
  .jarvis-name { font-size: 12px; letter-spacing: 4px; }
}
