/* ============================================================
   AXJ SUPORTE — Design System v3.0 (ENHANCED)
   ============================================================ */

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

/* ── Variáveis — Paleta Melhorada ─────────────────────────── */
:root {
  --primary:        #2563eb;
  --primary-light:  #3b82f6;
  --primary-dark:   #1e40af;
  --primary-bg:     #dbeafe;

  --success:        #059669;
  --success-bg:     #d1fae5;
  --warning:        #d97706;
  --warning-bg:     #fef3c7;
  --danger:         #dc2626;
  --danger-bg:      #fee2e2;
  --info:           #0891b2;
  --info-bg:        #cffafe;

  --bg:             #f8fafc;
  --bg-2:           #f1f5f9;
  --surface:        #ffffff;
  --surface-2:      #f8fafc;

  --text:           #0f172a;
  --text-2:         #1e293b;
  --text-muted:     #475569;
  --text-light:     #64748b;

  --border:         #cbd5e1;
  --border-2:       #94a3b8;

  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow:         0 4px 6px -1px rgba(0,0,0,.15), 0 2px 4px -1px rgba(0,0,0,.08);
  --shadow-md:      0 10px 15px -3px rgba(0,0,0,.15), 0 4px 6px -2px rgba(0,0,0,.08);
  --shadow-lg:      0 20px 25px -5px rgba(0,0,0,.15), 0 10px 10px -5px rgba(0,0,0,.08);
  --shadow-xl:      0 25px 50px -12px rgba(0,0,0,.25);

  --sidebar-w:      260px;
  --navbar-h:       64px;

  --transition:     0.2s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   LAYOUT — AUTH PAGES (Login / Register)
   ══════════════════════════════════════════════════════════════ */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-brand {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  top: -100px; right: -100px;
}
.auth-brand::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  bottom: -80px; left: -80px;
}

.auth-brand-logo {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.auth-brand-logo span {
  background: rgba(255,255,255,.25);
  padding: 0.1em 0.3em;
  border-radius: 8px;
}

.auth-brand-tagline {
  color: rgba(255,255,255,.95);
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.auth-brand-features {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,.95);
  font-size: 0.9rem;
}

.auth-feature-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--surface);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card-header {
  margin-bottom: 2.5rem;
}

.auth-card-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.auth-card-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.auth-alert.error { background: var(--danger-bg); color: #7f1d1d; border-left: 3px solid var(--danger); }
.auth-alert.success { background: var(--success-bg); color: #065f46; border-left: 3px solid var(--success); }

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-control::placeholder { color: var(--text-light); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }

.auth-divider {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-test-info {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-test-info strong {
  display: block;
  color: var(--text-2);
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT — APP SHELL
   ══════════════════════════════════════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.sidebar-logo-text span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.7rem;
  display: block;
  letter-spacing: 0;
}

.sidebar-user {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.5rem 0.5rem 0.25rem;
  margin-top: 0.5rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  margin-bottom: 2px;
}

.sidebar-nav-item:hover {
  background: var(--bg-2);
  color: var(--text);
}

.sidebar-nav-item.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-nav-item svg, .sidebar-nav-item .nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-nav-item.active svg,
.sidebar-nav-item.active .nav-icon { opacity: 1; }

.sidebar-nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border);
}

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Top Bar ───────────────────────────────────────────────── */
.topbar {
  height: var(--navbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.topbar-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Page Content ──────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1400px;
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   COMPONENTS
   ══════════════════════════════════════════════════════════════ */

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.4);
}

.btn-secondary {
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--border);
  color: var(--text);
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,.4);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,38,38,.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-2);
  color: var(--text);
}

.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-icon { padding: 0.5rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-aguardando-ia   { background: rgba(37,99,235,.15); color: var(--primary); }
.badge-pendente        { background: rgba(217,119,6,.15); color: var(--warning); }
.badge-em-atendimento  { background: rgba(8,145,178,.15); color: var(--info); }
.badge-resolvido-pela-ia { background: rgba(5,150,105,.15); color: var(--success); }
.badge-resolvido       { background: rgba(5,150,105,.15); color: var(--success); }
.badge-cancelado       { background: rgba(220,38,38,.15); color: var(--danger); }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.card-body { padding: 1.5rem; }

/* ── Ticket Card ───────────────────────────────────────────── */
.ticket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.ticket-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--border);
  transition: background var(--transition);
}

.ticket-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.ticket-card:hover::before,
.ticket-card.active::before { background: var(--primary); }

.ticket-card.active {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.ticket-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ticket-id {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.ticket-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ticket-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Stats Cards ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon.blue   { background: var(--info-bg);    color: var(--info); }
.stat-icon.green  { background: var(--success-bg); color: var(--success); }
.stat-icon.yellow { background: var(--warning-bg); color: var(--warning); }
.stat-icon.red    { background: var(--danger-bg);  color: var(--danger); }
.stat-icon.purple { background: rgba(37,99,235,.15); color: var(--primary); }

.stat-info { flex: 1; }
.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.875rem;
  max-width: 280px;
}

/* ── Loading ───────────────────────────────────────────────── */
.loading-dots {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem;
  justify-content: center;
}

.loading-dots span {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Skeleton ──────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--border) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════════════════════
   MODAL — FULLSCREEN CHAT
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .15s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--surface);
  width: 100%;
  max-width: 1000px;
  height: 90vh;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: slideUp .2s ease;
}

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

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  flex-shrink: 0;
}

.modal-header-info { flex: 1; min-width: 0; }

.modal-ticket-id {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-ticket-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-ticket-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ── Chat Messages ─────────────────────────────────────────── */
#chatMensagens {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  gap: 0.75rem;
  max-width: 80%;
  animation: msgIn .15s ease;
}

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

.message.usuario { align-self: flex-end; flex-direction: row-reverse; }
.message.ia      { align-self: flex-start; }
.message.tecnico { align-self: flex-start; }

.message-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.message.ia .message-avatar      { background: linear-gradient(135deg, #7c3aed, #a78bfa); color: white; }
.message.usuario .message-avatar { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.message.tecnico .message-avatar { background: linear-gradient(135deg, var(--success), #34d399); color: white; }

.message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  position: relative;
  max-width: 100%;
}

.message.ia .message-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.message.usuario .message-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.tecnico .message-bubble {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-bottom-left-radius: 4px;
  color: #065f46;
}

.message-sender {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

.message.ia .message-sender     { color: #7c3aed; }
.message.usuario .message-sender { color: rgba(255,255,255,.8); }
.message.tecnico .message-sender { color: var(--success); }

.message-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: right;
  font-weight: 500;
}

.message.ia .message-bubble strong { color: var(--primary); }
.message.ia .message-bubble ul,
.message.ia .message-bubble ol { margin-left: 1.25rem; margin-top: 0.5rem; }
.message.ia .message-bubble li { margin-bottom: 0.25rem; }

.message img, .message video {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 0.5rem;
  border: 1px solid rgba(0,0,0,.08);
  display: block;
}

.ai-footer-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-2);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

.ai-footer-note strong {
  color: var(--primary);
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
}

/* ── Chat Footer ───────────────────────────────────────────── */
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.decision-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.decision-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.decision-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.decision-actions {
  display: flex;
  gap: 0.75rem;
}

.chat-composer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-file-preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--info-bg);
  color: var(--info);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.chat-file-preview.show { display: flex; }

.progress-container {
  display: none;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-container.show { display: block; }

.progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 99px;
}

.upload-status {
  display: none;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}
.upload-status.show { display: block; }

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.375rem 0.5rem;
  transition: border-color var(--transition);
}

.chat-input-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
}

.chat-input::placeholder { color: var(--text-light); }

.chat-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* ── Emoji Picker ──────────────────────────────────────────── */
.emoji-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 0.75rem;
  z-index: 1001;
  max-height: 220px;
  overflow-y: auto;
  width: 300px;
}

.emoji-picker.open { display: flex; flex-direction: column; }

.emoji-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.emoji-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.emoji-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.emoji-grid-content {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.emoji-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition);
  line-height: 1;
}
.emoji-btn:hover { background: var(--bg-2); }

.sticker-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s;
}

.sticker-btn:hover {
  background: var(--bg-2);
  transform: scale(1.1);
}

.sticker-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.message-sticker {
  max-width: 120px;
  height: auto;
  display: block;
  margin-top: 0.5rem;
}

.ia-decision-banner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: fadeIn 0.3s ease;
}

.ia-decision-banner span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.ia-decision-btns {
  display: flex;
  gap: 0.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Tecnico Controls ──────────────────────────────────────── */
.tecnico-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tecnico-main-actions {
  display: flex;
  gap: 0.5rem;
}

.transfer-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.transfer-row select {
  flex: 1;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.transfer-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* ── Closed Ticket Banner ──────────────────────────────────── */
.closed-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.closed-banner-icon {
  font-size: 1.25rem;
}

/* ── Filter Tabs ───────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
}

.filter-tab {
  padding: 0.4rem 0.875rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition);
}

.filter-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ── Search ────────────────────────────────────────────────── */
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  transition: border-color var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: var(--surface);
}

.search-box input {
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  width: 200px;
}

.search-box input::placeholder { color: var(--text-light); }

/* ══════════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════════ */
.admin-page { display: none; }
.admin-page.active { display: block; }

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chart-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.chart-card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chart-card-body {
  padding: 1.25rem;
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Data Table ────────────────────────────────────────────── */
.data-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  background: var(--bg-2);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: var(--bg-2); }

.data-table .td-id {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Report Filters ────────────────────────────────────────── */
.report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.report-filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-filter-item label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.report-filter-item select,
.report-filter-item input {
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition);
}

.report-filter-item select:focus,
.report-filter-item input:focus {
  border-color: var(--primary);
}

/* ── Notification dot ──────────────────────────────────────── */
.notif-dot {
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  position: absolute;
  top: 6px; right: 6px;
  border: 2px solid var(--surface);
}

/* ── Tooltip ───────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 999;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-brand { display: none; }

  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }

  .charts-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .modal-content { height: 100vh; border-radius: 0; }
  .page-content { padding: 1rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .decision-actions { flex-direction: column; }
}


/* ══════════════════════════════════════════════════════════════
   ENHANCED ANIMATIONS & EFFECTS
   ══════════════════════════════════════════════════════════════ */

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  height: 20px;
  padding: 0.5rem 0;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-8px); }
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--surface) 50%, var(--bg-2) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }
.skeleton-card { height: 120px; }

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Fade In Up */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.3s ease-out; }

/* Slide In */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in { animation: slideIn 0.3s ease-out; }

/* ══════════════════════════════════════════════════════════════
   ENHANCED CHAT STYLES
   ══════════════════════════════════════════════════════════════ */

.chat-message-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.3s ease-out;
}

.message-status-indicator {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.message-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.message-status-dot.sending {
  background: var(--warning);
  animation: pulse 1s infinite;
}

.message-status-dot.error {
  background: var(--danger);
}

/* IA Response Styling */
.message.ia-response {
  background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(37,99,235,.05) 100%);
  border-left: 3px solid var(--primary);
}

.message.ia-response .message-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* User Response Styling */
.message.user-response .message-bubble {
  background: var(--primary);
  color: white;
  border: none;
}

/* Technician Response Styling */
.message.tech-response .message-bubble {
  background: var(--info-bg);
  border-left: 3px solid var(--info);
  color: #0c4a6e;
}

/* ══════════════════════════════════════════════════════════════
   ENHANCED DASHBOARD STYLES
   ══════════════════════════════════════════════════════════════ */

.dashboard-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.dashboard-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.dashboard-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* KPI Cards Enhanced */
.kpi-card {
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

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

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

.kpi-trend-icon {
  font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   ENHANCED REPORT STYLES
   ══════════════════════════════════════════════════════════════ */

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.report-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.report-actions {
  display: flex;
  gap: 0.75rem;
}

.report-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.report-export-btn:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,.4);
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.report-stat-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.report-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.report-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════════════════
   ENHANCED TABLE STYLES
   ══════════════════════════════════════════════════════════════ */

.table-row-highlight {
  background: linear-gradient(90deg, rgba(37,99,235,.05) 0%, transparent 100%);
  border-left: 3px solid var(--primary);
}

.table-cell-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.table-cell-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.table-cell-status-dot.active { background: var(--success); }
.table-cell-status-dot.pending { background: var(--warning); }
.table-cell-status-dot.inactive { background: var(--text-light); }

/* ══════════════════════════════════════════════════════════════
   ENHANCED FORM STYLES
   ══════════════════════════════════════════════════════════════ */

.form-group-enhanced {
  margin-bottom: 1.5rem;
}

.form-label-enhanced {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-label-required::after {
  content: '*';
  color: var(--danger);
}

.form-control-enhanced {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  transition: all var(--transition);
}

.form-control-enhanced:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: var(--surface);
}

.form-control-enhanced::placeholder {
  color: var(--text-light);
}

/* ══════════════════════════════════════════════════════════════
   STATUS BADGES ENHANCED
   ══════════════════════════════════════════════════════════════ */

.status-badge-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.status-badge-enhanced::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-badge-enhanced.aguardando-ia {
  background: rgba(37,99,235,.15);
  color: var(--primary);
}

.status-badge-enhanced.aguardando-ia::before {
  background: var(--primary);
  animation: pulse 2s infinite;
}

.status-badge-enhanced.em-atendimento {
  background: rgba(8,145,178,.15);
  color: var(--info);
}

.status-badge-enhanced.em-atendimento::before {
  background: var(--info);
}

.status-badge-enhanced.pendente {
  background: rgba(217,119,6,.15);
  color: var(--warning);
}

.status-badge-enhanced.pendente::before {
  background: var(--warning);
}

.status-badge-enhanced.resolvido {
  background: rgba(5,150,105,.15);
  color: var(--success);
}

.status-badge-enhanced.resolvido::before {
  background: var(--success);
}

.status-badge-enhanced.cancelado {
  background: rgba(220,38,38,.15);
  color: var(--danger);
}

.status-badge-enhanced.cancelado::before {
  background: var(--danger);
}

/* ══════════════════════════════════════════════════════════════
   LOADING & TRANSITION STATES
   ══════════════════════════════════════════════════════════════ */

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

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

.loading-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), transparent);
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ══════════════════════════════════════════════════════════════
   HOVER EFFECTS & INTERACTIONS
   ══════════════════════════════════════════════════════════════ */

.interactive-element {
  transition: all var(--transition);
  cursor: pointer;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

.interactive-element:active {
  transform: translateY(0);
}

/* Ripple Effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ripple-effect:active::after {
  animation: ripple 0.6s ease-out;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE ENHANCEMENTS (if needed in future)
   ══════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-2: #1e293b;
    --surface: #1e293b;
    --surface-2: #0f172a;
    --text: #f1f5f9;
    --text-2: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border: #334155;
    --border-2: #475569;
  }
}
